@odla-ai/cli 0.27.14 → 0.27.17
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 +15 -1
- package/dist/bin.cjs +2832 -1515
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +106 -12
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-3SQ2XUBB.js → chunk-3WVVHH3Y.js} +9148 -9172
- package/dist/chunk-3WVVHH3Y.js.map +1 -0
- package/dist/chunk-UKLSRQ5J.js +129 -0
- package/dist/chunk-UKLSRQ5J.js.map +1 -0
- package/dist/cli-DCSVQAZ6.js +12 -0
- package/dist/cli-DCSVQAZ6.js.map +1 -0
- package/dist/index.cjs +99 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -6
- package/dist/index.d.ts +18 -6
- package/dist/index.js +7 -3
- package/dist/runtime/pi-agent.js +15 -314577
- package/package.json +6 -6
- package/dist/chunk-3SQ2XUBB.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -173,12 +173,11 @@ type CommandRunner = (cmd: string, args: string[], opts?: {
|
|
|
173
173
|
cwd?: string;
|
|
174
174
|
}) => Promise<RunResult>;
|
|
175
175
|
|
|
176
|
-
/** Map a CLI failure to its process exit code
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* `discuss watch` that timed out before anyone replied. A stale checkpoint is
|
|
180
|
-
* a consistency failure (3); an exhausted remote retry is retryable (6). */
|
|
176
|
+
/** Map a CLI failure to its documented process exit code without importing the
|
|
177
|
+
* command graph. The binary needs this tiny module before it verifies that its
|
|
178
|
+
* external runtime dependencies are coherent. */
|
|
181
179
|
declare function exitCodeFor(err: unknown): number;
|
|
180
|
+
|
|
182
181
|
/** Injectable side-effect boundaries used to run and test the command dispatcher. */
|
|
183
182
|
interface CliDependencies {
|
|
184
183
|
fetch?: typeof fetch;
|
|
@@ -276,6 +275,19 @@ type Output = Pick<typeof console, "log">;
|
|
|
276
275
|
/** Print the stable responsibility boundary for humans or agent tooling. */
|
|
277
276
|
declare function printCapabilities(json?: boolean, out?: Output): void;
|
|
278
277
|
|
|
278
|
+
interface AiModelsOptions {
|
|
279
|
+
configPath?: string;
|
|
280
|
+
env?: string;
|
|
281
|
+
provider?: string;
|
|
282
|
+
json?: boolean;
|
|
283
|
+
fetch?: typeof fetch;
|
|
284
|
+
stdout?: Pick<typeof console, "log" | "error">;
|
|
285
|
+
}
|
|
286
|
+
/** List the exact models an app may select. Hosted mode reads the public,
|
|
287
|
+
* app-safe catalog projection; BYOK mode lists the library catalog for the
|
|
288
|
+
* configured provider. No platform-admin grant is required. */
|
|
289
|
+
declare function aiModels(options?: AiModelsOptions): Promise<void>;
|
|
290
|
+
|
|
279
291
|
/** A node in the invocation tree. An empty node is a leaf: everything after it
|
|
280
292
|
* is arguments, not sub-actions, and is not validated here. */
|
|
281
293
|
interface SurfaceNode {
|
|
@@ -1258,4 +1270,4 @@ declare function installSkill(options?: SkillInstallOptions): SkillInstallResult
|
|
|
1258
1270
|
*/
|
|
1259
1271
|
declare function smoke(options: SmokeOptions): Promise<void>;
|
|
1260
1272
|
|
|
1261
|
-
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 ConfigApplyOptions, type ConfigCoverage, type ConfigDiffDocument, type ConfigDifference, type ConfigDigest, type ConfigDrift, type ConfigInspectOptions, ConfigOperationCommandError, type ConfigOperationInspectOptions, type ConfigOperationResult, type ConfigPlanAction, type ConfigPlanDocument, type ConfigReconciliation, type ConfigRisk, type ConfigSource, type ConnectGitHubSecuritySourceOptions, type DesiredRegistryState, 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 ReconciliationInput, 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, configApply, configDiff, configOperationGet, configOperationWait, configPlan, connectGitHubSecuritySource, describeProblem, desiredRegistryState, disconnectGitHubSecuritySource, doctor, exitCodeFor, followHostedSecurityJob, getHostedSecurityIntent, getHostedSecurityJob, getHostedSecurityPlan, getHostedSecurityReport, getScopedPlatformToken, inferGitHubRepository, initProject, installSkill, invocationPath, isTerminalHostedSecurityStatus, listGitHubSecuritySources, listHostedSecurityJobs, prepareCodeImages, printCapabilities, provision, reconcileConfig, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
|
|
1273
|
+
export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AiModelsOptions, 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 ConfigApplyOptions, type ConfigCoverage, type ConfigDiffDocument, type ConfigDifference, type ConfigDigest, type ConfigDrift, type ConfigInspectOptions, ConfigOperationCommandError, type ConfigOperationInspectOptions, type ConfigOperationResult, type ConfigPlanAction, type ConfigPlanDocument, type ConfigReconciliation, type ConfigRisk, type ConfigSource, type ConnectGitHubSecuritySourceOptions, type DesiredRegistryState, 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 ReconciliationInput, 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, aiModels, calendarBookingPageUrl, calendarCalendars, calendarConnect, calendarDisconnect, calendarServiceConfig, calendarStatus, codeConnect, configApply, configDiff, configOperationGet, configOperationWait, configPlan, connectGitHubSecuritySource, describeProblem, desiredRegistryState, disconnectGitHubSecuritySource, doctor, exitCodeFor, followHostedSecurityJob, getHostedSecurityIntent, getHostedSecurityJob, getHostedSecurityPlan, getHostedSecurityReport, getScopedPlatformToken, inferGitHubRepository, initProject, installSkill, invocationPath, isTerminalHostedSecurityStatus, listGitHubSecuritySources, listHostedSecurityJobs, prepareCodeImages, printCapabilities, provision, reconcileConfig, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
|
package/dist/index.d.ts
CHANGED
|
@@ -173,12 +173,11 @@ type CommandRunner = (cmd: string, args: string[], opts?: {
|
|
|
173
173
|
cwd?: string;
|
|
174
174
|
}) => Promise<RunResult>;
|
|
175
175
|
|
|
176
|
-
/** Map a CLI failure to its process exit code
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* `discuss watch` that timed out before anyone replied. A stale checkpoint is
|
|
180
|
-
* a consistency failure (3); an exhausted remote retry is retryable (6). */
|
|
176
|
+
/** Map a CLI failure to its documented process exit code without importing the
|
|
177
|
+
* command graph. The binary needs this tiny module before it verifies that its
|
|
178
|
+
* external runtime dependencies are coherent. */
|
|
181
179
|
declare function exitCodeFor(err: unknown): number;
|
|
180
|
+
|
|
182
181
|
/** Injectable side-effect boundaries used to run and test the command dispatcher. */
|
|
183
182
|
interface CliDependencies {
|
|
184
183
|
fetch?: typeof fetch;
|
|
@@ -276,6 +275,19 @@ type Output = Pick<typeof console, "log">;
|
|
|
276
275
|
/** Print the stable responsibility boundary for humans or agent tooling. */
|
|
277
276
|
declare function printCapabilities(json?: boolean, out?: Output): void;
|
|
278
277
|
|
|
278
|
+
interface AiModelsOptions {
|
|
279
|
+
configPath?: string;
|
|
280
|
+
env?: string;
|
|
281
|
+
provider?: string;
|
|
282
|
+
json?: boolean;
|
|
283
|
+
fetch?: typeof fetch;
|
|
284
|
+
stdout?: Pick<typeof console, "log" | "error">;
|
|
285
|
+
}
|
|
286
|
+
/** List the exact models an app may select. Hosted mode reads the public,
|
|
287
|
+
* app-safe catalog projection; BYOK mode lists the library catalog for the
|
|
288
|
+
* configured provider. No platform-admin grant is required. */
|
|
289
|
+
declare function aiModels(options?: AiModelsOptions): Promise<void>;
|
|
290
|
+
|
|
279
291
|
/** A node in the invocation tree. An empty node is a leaf: everything after it
|
|
280
292
|
* is arguments, not sub-actions, and is not validated here. */
|
|
281
293
|
interface SurfaceNode {
|
|
@@ -1258,4 +1270,4 @@ declare function installSkill(options?: SkillInstallOptions): SkillInstallResult
|
|
|
1258
1270
|
*/
|
|
1259
1271
|
declare function smoke(options: SmokeOptions): Promise<void>;
|
|
1260
1272
|
|
|
1261
|
-
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 ConfigApplyOptions, type ConfigCoverage, type ConfigDiffDocument, type ConfigDifference, type ConfigDigest, type ConfigDrift, type ConfigInspectOptions, ConfigOperationCommandError, type ConfigOperationInspectOptions, type ConfigOperationResult, type ConfigPlanAction, type ConfigPlanDocument, type ConfigReconciliation, type ConfigRisk, type ConfigSource, type ConnectGitHubSecuritySourceOptions, type DesiredRegistryState, 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 ReconciliationInput, 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, configApply, configDiff, configOperationGet, configOperationWait, configPlan, connectGitHubSecuritySource, describeProblem, desiredRegistryState, disconnectGitHubSecuritySource, doctor, exitCodeFor, followHostedSecurityJob, getHostedSecurityIntent, getHostedSecurityJob, getHostedSecurityPlan, getHostedSecurityReport, getScopedPlatformToken, inferGitHubRepository, initProject, installSkill, invocationPath, isTerminalHostedSecurityStatus, listGitHubSecuritySources, listHostedSecurityJobs, prepareCodeImages, printCapabilities, provision, reconcileConfig, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
|
|
1273
|
+
export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AiModelsOptions, 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 ConfigApplyOptions, type ConfigCoverage, type ConfigDiffDocument, type ConfigDifference, type ConfigDigest, type ConfigDrift, type ConfigInspectOptions, ConfigOperationCommandError, type ConfigOperationInspectOptions, type ConfigOperationResult, type ConfigPlanAction, type ConfigPlanDocument, type ConfigReconciliation, type ConfigRisk, type ConfigSource, type ConnectGitHubSecuritySourceOptions, type DesiredRegistryState, 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 ReconciliationInput, 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, aiModels, calendarBookingPageUrl, calendarCalendars, calendarConnect, calendarDisconnect, calendarServiceConfig, calendarStatus, codeConnect, configApply, configDiff, configOperationGet, configOperationWait, configPlan, connectGitHubSecuritySource, describeProblem, desiredRegistryState, disconnectGitHubSecuritySource, doctor, exitCodeFor, followHostedSecurityJob, getHostedSecurityIntent, getHostedSecurityJob, getHostedSecurityPlan, getHostedSecurityReport, getScopedPlatformToken, inferGitHubRepository, initProject, installSkill, invocationPath, isTerminalHostedSecurityStatus, listGitHubSecuritySources, listHostedSecurityJobs, prepareCodeImages, printCapabilities, provision, reconcileConfig, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
SYSTEM_AI_PURPOSES,
|
|
11
11
|
acceptedAfter,
|
|
12
12
|
adminAi,
|
|
13
|
+
aiModels,
|
|
13
14
|
calendarBookingPageUrl,
|
|
14
15
|
calendarCalendars,
|
|
15
16
|
calendarConnect,
|
|
@@ -27,7 +28,6 @@ import {
|
|
|
27
28
|
desiredRegistryState,
|
|
28
29
|
disconnectGitHubSecuritySource,
|
|
29
30
|
doctor,
|
|
30
|
-
exitCodeFor,
|
|
31
31
|
followHostedSecurityJob,
|
|
32
32
|
getHostedSecurityIntent,
|
|
33
33
|
getHostedSecurityJob,
|
|
@@ -45,7 +45,6 @@ import {
|
|
|
45
45
|
printCapabilities,
|
|
46
46
|
provision,
|
|
47
47
|
reconcileConfig,
|
|
48
|
-
redactSecrets,
|
|
49
48
|
repositoryFromGitRemote,
|
|
50
49
|
runCli,
|
|
51
50
|
runCodeRuntime,
|
|
@@ -57,7 +56,11 @@ import {
|
|
|
57
56
|
startHostedSecurityJob,
|
|
58
57
|
surfacePaths,
|
|
59
58
|
validateInvocation
|
|
60
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-3WVVHH3Y.js";
|
|
60
|
+
import {
|
|
61
|
+
exitCodeFor,
|
|
62
|
+
redactSecrets
|
|
63
|
+
} from "./chunk-UKLSRQ5J.js";
|
|
61
64
|
export {
|
|
62
65
|
AGENT_HARNESSES,
|
|
63
66
|
CAPABILITIES,
|
|
@@ -69,6 +72,7 @@ export {
|
|
|
69
72
|
SYSTEM_AI_PURPOSES,
|
|
70
73
|
acceptedAfter,
|
|
71
74
|
adminAi,
|
|
75
|
+
aiModels,
|
|
72
76
|
calendarBookingPageUrl,
|
|
73
77
|
calendarCalendars,
|
|
74
78
|
calendarConnect,
|