@odla-ai/cli 0.20.2 → 0.22.0

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/dist/index.d.cts CHANGED
@@ -12,7 +12,7 @@ interface ScopedPlatformTokenOptions {
12
12
  email?: string;
13
13
  open?: boolean;
14
14
  fetch?: typeof fetch;
15
- stdout?: Pick<typeof console, "log">;
15
+ stdout?: Pick<typeof console, "log" | "error">;
16
16
  openApprovalUrl?: (url: string) => Promise<void>;
17
17
  tokenFile?: string;
18
18
  /**
@@ -216,7 +216,7 @@ interface AdminAiOptions {
216
216
  json?: boolean;
217
217
  open?: boolean;
218
218
  fetch?: typeof fetch;
219
- stdout?: Pick<typeof console, "log">;
219
+ stdout?: Pick<typeof console, "log" | "error">;
220
220
  openApprovalUrl?: (url: string) => Promise<void>;
221
221
  credentialProvider?: string;
222
222
  fromEnv?: string;
@@ -289,6 +289,14 @@ declare function validateInvocation(words: readonly string[]): InvocationProblem
289
289
  /** Render a problem as the sentence a dispatcher throws, so the message a user
290
290
  * sees and the message a gate prints come from the same place. */
291
291
  declare function describeProblem(problem: InvocationProblem): string;
292
+ /**
293
+ * The words of an argv that NAME the command, stopping at the first leaf.
294
+ *
295
+ * `["runbook", "get", "release"]` → `["runbook", "get"]`, because `release` is a
296
+ * slug rather than a sub-action. This is what lets the recorder log which
297
+ * command ran without knowing anything about that command's arguments.
298
+ */
299
+ declare function invocationPath(words: readonly string[]): string[];
292
300
  /** Every complete path through the surface, as word arrays. Used by the test
293
301
  * that drives each one through the real dispatcher, and by the published-surface
294
302
  * gate to know what a version is expected to carry. */
@@ -1042,4 +1050,4 @@ declare function installSkill(options?: SkillInstallOptions): SkillInstallResult
1042
1050
  */
1043
1051
  declare function smoke(options: SmokeOptions): Promise<void>;
1044
1052
 
1045
- export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AvailableGoogleCalendar, CAPABILITIES, CODE_BUILD_RECIPES, CODE_PI_IMAGE, COMMAND_SURFACE, type CalendarConfig, type CalendarConnectionState, type CalendarLifecycleOptions, type CalendarServiceConfig, type CalendarStatus, type CliDependencies, type CodeBuildRule, type CodeConnectOptions, type CodeContainerEngine, type CodeHostCapabilities, type CodeLocalSourceDescriptor, type CodeRuntimeInput, type ConnectGitHubSecuritySourceOptions, type DisconnectGitHubSecuritySourceOptions, type FollowHostedSecurityJobOptions, GOOGLE_CALENDAR_EVENTS_SCOPE, type GetHostedSecurityIntentOptions, type GetHostedSecurityJobOptions, type GoogleCalendarConfig, type HarnessInstallResult, type HostedSecurityProfile, type HostedSecurityResult, type HostedSecurityTokenRequest, type IntegrationProbe, type IntegrationSeed, type InvocationProblem, type ListGitHubSecuritySourcesOptions, type ListHostedSecurityJobsOptions, type LoadedProjectConfig, type LocalCredentials, type OdlaIntegration, type OdlaProjectConfig, type ProvisionOptions, type ProvisionPlan, type RunHostedSecurityOptions, SYSTEM_AI_PURPOSES, type ScopedPlatformTokenOptions, type SecretsPushOptions, type SecretsSetOptions, type SkillInstallOptions, type SkillInstallResult, type SmokeOptions, type StartHostedSecurityJobOptions, type SurfaceNode, type SystemAiPurpose, acceptedAfter, adminAi, calendarBookingPageUrl, calendarCalendars, calendarConnect, calendarDisconnect, calendarServiceConfig, calendarStatus, codeConnect, connectGitHubSecuritySource, describeProblem, disconnectGitHubSecuritySource, doctor, exitCodeFor, followHostedSecurityJob, getHostedSecurityIntent, getHostedSecurityJob, getHostedSecurityPlan, getHostedSecurityReport, getScopedPlatformToken, inferGitHubRepository, initProject, installSkill, isTerminalHostedSecurityStatus, listGitHubSecuritySources, listHostedSecurityJobs, prepareCodeImages, printCapabilities, provision, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
1053
+ export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AvailableGoogleCalendar, CAPABILITIES, CODE_BUILD_RECIPES, CODE_PI_IMAGE, COMMAND_SURFACE, type CalendarConfig, type CalendarConnectionState, type CalendarLifecycleOptions, type CalendarServiceConfig, type CalendarStatus, type CliDependencies, type CodeBuildRule, type CodeConnectOptions, type CodeContainerEngine, type CodeHostCapabilities, type CodeLocalSourceDescriptor, type CodeRuntimeInput, type ConnectGitHubSecuritySourceOptions, type DisconnectGitHubSecuritySourceOptions, type FollowHostedSecurityJobOptions, GOOGLE_CALENDAR_EVENTS_SCOPE, type GetHostedSecurityIntentOptions, type GetHostedSecurityJobOptions, type GoogleCalendarConfig, type HarnessInstallResult, type HostedSecurityProfile, type HostedSecurityResult, type HostedSecurityTokenRequest, type IntegrationProbe, type IntegrationSeed, type InvocationProblem, type ListGitHubSecuritySourcesOptions, type ListHostedSecurityJobsOptions, type LoadedProjectConfig, type LocalCredentials, type OdlaIntegration, type OdlaProjectConfig, type ProvisionOptions, type ProvisionPlan, type RunHostedSecurityOptions, SYSTEM_AI_PURPOSES, type ScopedPlatformTokenOptions, type SecretsPushOptions, type SecretsSetOptions, type SkillInstallOptions, type SkillInstallResult, type SmokeOptions, type StartHostedSecurityJobOptions, type SurfaceNode, type SystemAiPurpose, acceptedAfter, adminAi, calendarBookingPageUrl, calendarCalendars, calendarConnect, calendarDisconnect, calendarServiceConfig, calendarStatus, codeConnect, connectGitHubSecuritySource, describeProblem, disconnectGitHubSecuritySource, doctor, exitCodeFor, followHostedSecurityJob, getHostedSecurityIntent, getHostedSecurityJob, getHostedSecurityPlan, getHostedSecurityReport, getScopedPlatformToken, inferGitHubRepository, initProject, installSkill, invocationPath, isTerminalHostedSecurityStatus, listGitHubSecuritySources, listHostedSecurityJobs, prepareCodeImages, printCapabilities, provision, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ interface ScopedPlatformTokenOptions {
12
12
  email?: string;
13
13
  open?: boolean;
14
14
  fetch?: typeof fetch;
15
- stdout?: Pick<typeof console, "log">;
15
+ stdout?: Pick<typeof console, "log" | "error">;
16
16
  openApprovalUrl?: (url: string) => Promise<void>;
17
17
  tokenFile?: string;
18
18
  /**
@@ -216,7 +216,7 @@ interface AdminAiOptions {
216
216
  json?: boolean;
217
217
  open?: boolean;
218
218
  fetch?: typeof fetch;
219
- stdout?: Pick<typeof console, "log">;
219
+ stdout?: Pick<typeof console, "log" | "error">;
220
220
  openApprovalUrl?: (url: string) => Promise<void>;
221
221
  credentialProvider?: string;
222
222
  fromEnv?: string;
@@ -289,6 +289,14 @@ declare function validateInvocation(words: readonly string[]): InvocationProblem
289
289
  /** Render a problem as the sentence a dispatcher throws, so the message a user
290
290
  * sees and the message a gate prints come from the same place. */
291
291
  declare function describeProblem(problem: InvocationProblem): string;
292
+ /**
293
+ * The words of an argv that NAME the command, stopping at the first leaf.
294
+ *
295
+ * `["runbook", "get", "release"]` → `["runbook", "get"]`, because `release` is a
296
+ * slug rather than a sub-action. This is what lets the recorder log which
297
+ * command ran without knowing anything about that command's arguments.
298
+ */
299
+ declare function invocationPath(words: readonly string[]): string[];
292
300
  /** Every complete path through the surface, as word arrays. Used by the test
293
301
  * that drives each one through the real dispatcher, and by the published-surface
294
302
  * gate to know what a version is expected to carry. */
@@ -1042,4 +1050,4 @@ declare function installSkill(options?: SkillInstallOptions): SkillInstallResult
1042
1050
  */
1043
1051
  declare function smoke(options: SmokeOptions): Promise<void>;
1044
1052
 
1045
- export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AvailableGoogleCalendar, CAPABILITIES, CODE_BUILD_RECIPES, CODE_PI_IMAGE, COMMAND_SURFACE, type CalendarConfig, type CalendarConnectionState, type CalendarLifecycleOptions, type CalendarServiceConfig, type CalendarStatus, type CliDependencies, type CodeBuildRule, type CodeConnectOptions, type CodeContainerEngine, type CodeHostCapabilities, type CodeLocalSourceDescriptor, type CodeRuntimeInput, type ConnectGitHubSecuritySourceOptions, type DisconnectGitHubSecuritySourceOptions, type FollowHostedSecurityJobOptions, GOOGLE_CALENDAR_EVENTS_SCOPE, type GetHostedSecurityIntentOptions, type GetHostedSecurityJobOptions, type GoogleCalendarConfig, type HarnessInstallResult, type HostedSecurityProfile, type HostedSecurityResult, type HostedSecurityTokenRequest, type IntegrationProbe, type IntegrationSeed, type InvocationProblem, type ListGitHubSecuritySourcesOptions, type ListHostedSecurityJobsOptions, type LoadedProjectConfig, type LocalCredentials, type OdlaIntegration, type OdlaProjectConfig, type ProvisionOptions, type ProvisionPlan, type RunHostedSecurityOptions, SYSTEM_AI_PURPOSES, type ScopedPlatformTokenOptions, type SecretsPushOptions, type SecretsSetOptions, type SkillInstallOptions, type SkillInstallResult, type SmokeOptions, type StartHostedSecurityJobOptions, type SurfaceNode, type SystemAiPurpose, acceptedAfter, adminAi, calendarBookingPageUrl, calendarCalendars, calendarConnect, calendarDisconnect, calendarServiceConfig, calendarStatus, codeConnect, connectGitHubSecuritySource, describeProblem, disconnectGitHubSecuritySource, doctor, exitCodeFor, followHostedSecurityJob, getHostedSecurityIntent, getHostedSecurityJob, getHostedSecurityPlan, getHostedSecurityReport, getScopedPlatformToken, inferGitHubRepository, initProject, installSkill, isTerminalHostedSecurityStatus, listGitHubSecuritySources, listHostedSecurityJobs, prepareCodeImages, printCapabilities, provision, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
1053
+ export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AvailableGoogleCalendar, CAPABILITIES, CODE_BUILD_RECIPES, CODE_PI_IMAGE, COMMAND_SURFACE, type CalendarConfig, type CalendarConnectionState, type CalendarLifecycleOptions, type CalendarServiceConfig, type CalendarStatus, type CliDependencies, type CodeBuildRule, type CodeConnectOptions, type CodeContainerEngine, type CodeHostCapabilities, type CodeLocalSourceDescriptor, type CodeRuntimeInput, type ConnectGitHubSecuritySourceOptions, type DisconnectGitHubSecuritySourceOptions, type FollowHostedSecurityJobOptions, GOOGLE_CALENDAR_EVENTS_SCOPE, type GetHostedSecurityIntentOptions, type GetHostedSecurityJobOptions, type GoogleCalendarConfig, type HarnessInstallResult, type HostedSecurityProfile, type HostedSecurityResult, type HostedSecurityTokenRequest, type IntegrationProbe, type IntegrationSeed, type InvocationProblem, type ListGitHubSecuritySourcesOptions, type ListHostedSecurityJobsOptions, type LoadedProjectConfig, type LocalCredentials, type OdlaIntegration, type OdlaProjectConfig, type ProvisionOptions, type ProvisionPlan, type RunHostedSecurityOptions, SYSTEM_AI_PURPOSES, type ScopedPlatformTokenOptions, type SecretsPushOptions, type SecretsSetOptions, type SkillInstallOptions, type SkillInstallResult, type SmokeOptions, type StartHostedSecurityJobOptions, type SurfaceNode, type SystemAiPurpose, acceptedAfter, adminAi, calendarBookingPageUrl, calendarCalendars, calendarConnect, calendarDisconnect, calendarServiceConfig, calendarStatus, codeConnect, connectGitHubSecuritySource, describeProblem, disconnectGitHubSecuritySource, doctor, exitCodeFor, followHostedSecurityJob, getHostedSecurityIntent, getHostedSecurityJob, getHostedSecurityPlan, getHostedSecurityReport, getScopedPlatformToken, inferGitHubRepository, initProject, installSkill, invocationPath, isTerminalHostedSecurityStatus, listGitHubSecuritySources, listHostedSecurityJobs, prepareCodeImages, printCapabilities, provision, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ import {
30
30
  inferGitHubRepository,
31
31
  initProject,
32
32
  installSkill,
33
+ invocationPath,
33
34
  isTerminalHostedSecurityStatus,
34
35
  listGitHubSecuritySources,
35
36
  listHostedSecurityJobs,
@@ -48,7 +49,7 @@ import {
48
49
  startHostedSecurityJob,
49
50
  surfacePaths,
50
51
  validateInvocation
51
- } from "./chunk-XBPDHNWO.js";
52
+ } from "./chunk-DINDRUDA.js";
52
53
  export {
53
54
  AGENT_HARNESSES,
54
55
  CAPABILITIES,
@@ -80,6 +81,7 @@ export {
80
81
  inferGitHubRepository,
81
82
  initProject,
82
83
  installSkill,
84
+ invocationPath,
83
85
  isTerminalHostedSecurityStatus,
84
86
  listGitHubSecuritySources,
85
87
  listHostedSecurityJobs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odla-ai/cli",
3
- "version": "0.20.2",
3
+ "version": "0.22.0",
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",