@odla-ai/cli 0.10.2 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/bin.cjs +58 -23
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-MWVKOIGR.js → chunk-DC4MIB4X.js} +59 -24
- package/dist/chunk-DC4MIB4X.js.map +1 -0
- package/dist/index.cjs +58 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-MWVKOIGR.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -151,7 +151,6 @@ interface CalendarLifecycleOptions {
|
|
|
151
151
|
/** Existing developer-token override. */ token?: string;
|
|
152
152
|
/** Existing odla account email used only for a fresh handshake. */ email?: string;
|
|
153
153
|
open?: boolean;
|
|
154
|
-
interactive?: boolean;
|
|
155
154
|
yes?: boolean;
|
|
156
155
|
json?: boolean;
|
|
157
156
|
fetch?: typeof fetch;
|
|
@@ -323,10 +322,9 @@ interface ProvisionOptions {
|
|
|
323
322
|
token?: string;
|
|
324
323
|
/** Existing odla account email used only when a fresh device handshake is required. */
|
|
325
324
|
email?: string;
|
|
326
|
-
/** true forces browser launch, false disables it, undefined auto-opens
|
|
325
|
+
/** true forces browser launch, false disables it, undefined auto-opens whenever
|
|
326
|
+
* this machine can show a browser (skipped in CI, over SSH, or with no display). */
|
|
327
327
|
open?: boolean;
|
|
328
|
-
/** Test/embedding override for terminal interactivity. Defaults to stdin/stdout TTY detection. */
|
|
329
|
-
interactive?: boolean;
|
|
330
328
|
/** Test/embedding override for opening the approval URL. Defaults to the OS browser opener. */
|
|
331
329
|
openApprovalUrl?: (url: string) => Promise<void>;
|
|
332
330
|
/** Test/embedding override for calendar connection polling. */
|
|
@@ -361,7 +359,6 @@ interface SmokeOptions {
|
|
|
361
359
|
/** Existing odla account email used only when a fresh device handshake is required. */
|
|
362
360
|
email?: string;
|
|
363
361
|
open?: boolean;
|
|
364
|
-
interactive?: boolean;
|
|
365
362
|
openApprovalUrl?: (url: string) => Promise<void>;
|
|
366
363
|
fetch?: typeof fetch;
|
|
367
364
|
stdout?: Pick<typeof console, "log" | "error">;
|
|
@@ -447,13 +444,17 @@ declare function initProject(options: InitOptions): void;
|
|
|
447
444
|
* Clerk auth and links, then per env mints or reuses credentials only for the
|
|
448
445
|
* configured services, pushes the schema with the db key and the
|
|
449
446
|
* rules with the developer token, and stores the provider key in the tenant
|
|
450
|
-
* vault when `ai.keyEnv` is set and present.
|
|
451
|
-
* (mode 0600, gitignored) and, when requested, `.dev.vars`.
|
|
447
|
+
* vault when `ai.keyEnv` is set and present. Writes the credentials file
|
|
448
|
+
* (mode 0600, gitignored) and, when requested, `.dev.vars`. Google Calendar
|
|
449
|
+
* consent runs last, per env; when the platform connector itself is not yet
|
|
450
|
+
* configured (`calendar_*_not_configured`), provision prints a resume hint
|
|
451
|
+
* (`odla-ai calendar connect`) instead of aborting.
|
|
452
452
|
*
|
|
453
453
|
* The developer token comes from (in order) `options.token`, `$ODLA_DEV_TOKEN`,
|
|
454
454
|
* the cached `.odla` token, or a fresh email-bound device handshake — which
|
|
455
|
-
* prints a user code for the same signed-in account to review and
|
|
456
|
-
*
|
|
455
|
+
* prints a user code for the same signed-in account to review and auto-opens
|
|
456
|
+
* the browser whenever this machine can show one — including scripted and
|
|
457
|
+
* agent-driven runs; only CI, SSH, and display-less hosts skip it
|
|
457
458
|
* (`open: true`/`false` forces/suppresses it). Network error bodies pass through
|
|
458
459
|
* `redactSecrets` before display.
|
|
459
460
|
*
|
|
@@ -522,7 +523,6 @@ interface SecretsSetOptions {
|
|
|
522
523
|
/** Existing odla account email used only when a fresh handshake is required. */
|
|
523
524
|
email?: string;
|
|
524
525
|
open?: boolean;
|
|
525
|
-
interactive?: boolean;
|
|
526
526
|
openApprovalUrl?: (url: string) => Promise<void>;
|
|
527
527
|
fetch?: typeof fetch;
|
|
528
528
|
readStdin?: () => Promise<string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -151,7 +151,6 @@ interface CalendarLifecycleOptions {
|
|
|
151
151
|
/** Existing developer-token override. */ token?: string;
|
|
152
152
|
/** Existing odla account email used only for a fresh handshake. */ email?: string;
|
|
153
153
|
open?: boolean;
|
|
154
|
-
interactive?: boolean;
|
|
155
154
|
yes?: boolean;
|
|
156
155
|
json?: boolean;
|
|
157
156
|
fetch?: typeof fetch;
|
|
@@ -323,10 +322,9 @@ interface ProvisionOptions {
|
|
|
323
322
|
token?: string;
|
|
324
323
|
/** Existing odla account email used only when a fresh device handshake is required. */
|
|
325
324
|
email?: string;
|
|
326
|
-
/** true forces browser launch, false disables it, undefined auto-opens
|
|
325
|
+
/** true forces browser launch, false disables it, undefined auto-opens whenever
|
|
326
|
+
* this machine can show a browser (skipped in CI, over SSH, or with no display). */
|
|
327
327
|
open?: boolean;
|
|
328
|
-
/** Test/embedding override for terminal interactivity. Defaults to stdin/stdout TTY detection. */
|
|
329
|
-
interactive?: boolean;
|
|
330
328
|
/** Test/embedding override for opening the approval URL. Defaults to the OS browser opener. */
|
|
331
329
|
openApprovalUrl?: (url: string) => Promise<void>;
|
|
332
330
|
/** Test/embedding override for calendar connection polling. */
|
|
@@ -361,7 +359,6 @@ interface SmokeOptions {
|
|
|
361
359
|
/** Existing odla account email used only when a fresh device handshake is required. */
|
|
362
360
|
email?: string;
|
|
363
361
|
open?: boolean;
|
|
364
|
-
interactive?: boolean;
|
|
365
362
|
openApprovalUrl?: (url: string) => Promise<void>;
|
|
366
363
|
fetch?: typeof fetch;
|
|
367
364
|
stdout?: Pick<typeof console, "log" | "error">;
|
|
@@ -447,13 +444,17 @@ declare function initProject(options: InitOptions): void;
|
|
|
447
444
|
* Clerk auth and links, then per env mints or reuses credentials only for the
|
|
448
445
|
* configured services, pushes the schema with the db key and the
|
|
449
446
|
* rules with the developer token, and stores the provider key in the tenant
|
|
450
|
-
* vault when `ai.keyEnv` is set and present.
|
|
451
|
-
* (mode 0600, gitignored) and, when requested, `.dev.vars`.
|
|
447
|
+
* vault when `ai.keyEnv` is set and present. Writes the credentials file
|
|
448
|
+
* (mode 0600, gitignored) and, when requested, `.dev.vars`. Google Calendar
|
|
449
|
+
* consent runs last, per env; when the platform connector itself is not yet
|
|
450
|
+
* configured (`calendar_*_not_configured`), provision prints a resume hint
|
|
451
|
+
* (`odla-ai calendar connect`) instead of aborting.
|
|
452
452
|
*
|
|
453
453
|
* The developer token comes from (in order) `options.token`, `$ODLA_DEV_TOKEN`,
|
|
454
454
|
* the cached `.odla` token, or a fresh email-bound device handshake — which
|
|
455
|
-
* prints a user code for the same signed-in account to review and
|
|
456
|
-
*
|
|
455
|
+
* prints a user code for the same signed-in account to review and auto-opens
|
|
456
|
+
* the browser whenever this machine can show one — including scripted and
|
|
457
|
+
* agent-driven runs; only CI, SSH, and display-less hosts skip it
|
|
457
458
|
* (`open: true`/`false` forces/suppresses it). Network error bodies pass through
|
|
458
459
|
* `redactSecrets` before display.
|
|
459
460
|
*
|
|
@@ -522,7 +523,6 @@ interface SecretsSetOptions {
|
|
|
522
523
|
/** Existing odla account email used only when a fresh handshake is required. */
|
|
523
524
|
email?: string;
|
|
524
525
|
open?: boolean;
|
|
525
|
-
interactive?: boolean;
|
|
526
526
|
openApprovalUrl?: (url: string) => Promise<void>;
|
|
527
527
|
fetch?: typeof fetch;
|
|
528
528
|
readStdin?: () => Promise<string>;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odla-ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Agent-operable CLI for odla provisioning, calendar consent and sync lifecycle, System AI administration, Worker secrets, security jobs, and smoke checks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://odla.ai/docs/packages/cli",
|