Skip to content

Commit 33a0379

Browse files
authored
Merge pull request #1590 from appwrite/codex/cli-oauth-device-login
Add CLI OAuth device login
2 parents d08cfb6 + 9db7e4c commit 33a0379

27 files changed

Lines changed: 1586 additions & 495 deletions

src/SDK/Language/CLI.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,26 @@ public function getFiles(): array
456456
'destination' => 'lib/sdks.ts',
457457
'template' => 'cli/lib/sdks.ts',
458458
],
459+
[
460+
'scope' => 'copy',
461+
'destination' => 'lib/flags.ts',
462+
'template' => 'cli/lib/flags.ts',
463+
],
464+
[
465+
'scope' => 'copy',
466+
'destination' => 'lib/auth/oauth.ts',
467+
'template' => 'cli/lib/auth/oauth.ts',
468+
],
469+
[
470+
'scope' => 'copy',
471+
'destination' => 'lib/auth/session.ts',
472+
'template' => 'cli/lib/auth/session.ts',
473+
],
474+
[
475+
'scope' => 'copy',
476+
'destination' => 'lib/auth/login.ts',
477+
'template' => 'cli/lib/auth/login.ts',
478+
],
459479
[
460480
'scope' => 'copy',
461481
'destination' => 'lib/services.ts',

templates/cli/bun.lock.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"": {
66
"name": "{{ language.params.npmPackage|caseDash }}",
77
"dependencies": {
8-
"@appwrite.io/console": "^14.0.0",
8+
"@appwrite.io/console": "^15.0.0",
99
"chalk": "4.1.2",
1010
"chokidar": "^3.6.0",
1111
"cli-progress": "^3.12.0",
@@ -51,7 +51,7 @@
5151
"tmp": "^0.2.6",
5252
},
5353
"packages": {
54-
"@appwrite.io/console": ["@appwrite.io/console@14.0.0", "", { "dependencies": { "json-bigint": "1.0.0" } }, "sha512-OazmwL0CGA/a3KrbKx4ljEOlYd07/MBYVgJ6GlBMKv2O2etI1RLqLvXF29LV9QGwrOgN5EwYHmOotfw8r0PG8Q=="],
54+
"@appwrite.io/console": ["@appwrite.io/console@15.0.0", "", { "dependencies": { "json-bigint": "1.0.0" } }, "sha512-yjCjsUTcOUacR/O0/XEm9ax+EpcxxG3+h7TsY0YEd2fW32T2AimASOVMcRoEb8DrSHWqCn5kH1VRL/U6ZfAoJw=="],
5555

5656
"@babel/runtime": ["@babel/runtime@7.29.7", "", {}, "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw=="],
5757

templates/cli/bunfig.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ minimumReleaseAge = 604800 # 7d
66
# Exempt `tmp` from the release-age policy so the security fix for
77
# GHSA-ph9p-34f9-6g65 (landed in tmp@0.2.6) can be installed before the
88
# 7d window elapses. Remove this entry once 0.2.6+ ages out.
9-
minimumReleaseAgeExcludes = ["tmp"]
9+
# `@appwrite.io/console` is Appwrite's first-party SDK, released in lockstep
10+
# with this CLI, so it is exempt from the third-party release-age window.
11+
minimumReleaseAgeExcludes = ["tmp", "@appwrite.io/console"]

0 commit comments

Comments
 (0)