@odla-ai/cli 0.31.0 → 0.32.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/dist/bin.cjs +1669 -891
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-5VH4EWV7.js → chunk-L6YTOTWU.js} +1602 -838
- package/dist/chunk-L6YTOTWU.js.map +1 -0
- package/dist/{cli-CCQVA7VV.js → cli-LYFPBGNH.js} +2 -2
- package/dist/index.cjs +1629 -870
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -17
- package/dist/index.d.ts +1 -17
- package/dist/index.js +1 -5
- package/package.json +4 -4
- package/dist/chunk-5VH4EWV7.js.map +0 -1
- package/dist/runtime/pi-agent.js +0 -18747
- /package/dist/{cli-CCQVA7VV.js.map → cli-LYFPBGNH.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -56,10 +56,6 @@ interface PreparedCodeLocalSource {
|
|
|
56
56
|
/** Freeze the local Git tree and exact commit base before any approval request. */
|
|
57
57
|
declare function prepareCodeLocalSource(cwd: string, repository: string, readHead?: (cwd: string) => Promise<string>): Promise<PreparedCodeLocalSource>;
|
|
58
58
|
|
|
59
|
-
/** Release-owned Pi adapter bundled into the CLI. `prepareCodeImages` hashes
|
|
60
|
-
* the exact bundle and builds a content-addressed local image; no registry
|
|
61
|
-
* credential enters the terminal connection. */
|
|
62
|
-
declare const CODE_PI_IMAGE = "odla-ai/pi-agent:embedded";
|
|
63
59
|
/** Immutable CaMeL-registered build recipe available to an agent container. */
|
|
64
60
|
interface CodeBuildRule {
|
|
65
61
|
id: string;
|
|
@@ -76,14 +72,6 @@ interface CodeBuildRule {
|
|
|
76
72
|
* this once their owner-visible registration contract exists. */
|
|
77
73
|
declare const CODE_BUILD_RECIPES: readonly CodeBuildRule[];
|
|
78
74
|
|
|
79
|
-
type CodeImageCommandRunner = (command: string, args: readonly string[], stdio: "inherit" | "ignore") => Promise<void>;
|
|
80
|
-
type EmbeddedPiImageBuilder = (engine: CodeContainerEngine, image: string, run: CodeImageCommandRunner) => Promise<void>;
|
|
81
|
-
type EmbeddedPiImageNamer = () => Promise<string>;
|
|
82
|
-
/** Build the CLI-embedded Pi adapter and pull each immutable recipe image
|
|
83
|
-
* before an owner is asked to approve the terminal. Runtime attempts never
|
|
84
|
-
* pull, and fail closed if a prepared image disappears. */
|
|
85
|
-
declare function prepareCodeImages(engine: CodeContainerEngine, images: readonly string[], run?: CodeImageCommandRunner, buildEmbedded?: EmbeddedPiImageBuilder, nameEmbedded?: EmbeddedPiImageNamer): Promise<readonly string[]>;
|
|
86
|
-
|
|
87
75
|
/** Supported local isolation engines for an odla Code host runtime. */
|
|
88
76
|
type CodeContainerEngine = "container" | "podman" | "docker";
|
|
89
77
|
/** Bounded host facts reported on each outbound Code control-plane heartbeat. */
|
|
@@ -97,8 +85,6 @@ interface CodeHostCapabilities {
|
|
|
97
85
|
source: CodeLocalSourceDescriptor;
|
|
98
86
|
images: {
|
|
99
87
|
ready: true;
|
|
100
|
-
pi: string;
|
|
101
|
-
piSource: "cli_embedded";
|
|
102
88
|
recipes: Array<{
|
|
103
89
|
id: string;
|
|
104
90
|
image: string;
|
|
@@ -134,7 +120,6 @@ interface CodeConnectOptions {
|
|
|
134
120
|
runRuntime?: (input: CodeRuntimeInput) => Promise<void>;
|
|
135
121
|
readGitOrigin?: (cwd: string) => Promise<string>;
|
|
136
122
|
readGitHead?: (cwd: string) => Promise<string>;
|
|
137
|
-
prepareImages?: (engine: CodeContainerEngine, images: readonly string[]) => Promise<readonly string[]>;
|
|
138
123
|
prepareLocalSource?: typeof prepareCodeLocalSource;
|
|
139
124
|
}
|
|
140
125
|
/** Authority and runtime boundaries used after a Code host enrollment succeeds. */
|
|
@@ -153,7 +138,6 @@ interface CodeRuntimeInput {
|
|
|
153
138
|
trustedBaseDir: string;
|
|
154
139
|
sourceDir: string;
|
|
155
140
|
};
|
|
156
|
-
piImage?: string;
|
|
157
141
|
}
|
|
158
142
|
/** Enroll this machine from an odla project and keep the embedded Pi runtime
|
|
159
143
|
* online. Both the approval grant and host credential hashes are stored in
|
|
@@ -1277,4 +1261,4 @@ declare function installSkill(options?: SkillInstallOptions): SkillInstallResult
|
|
|
1277
1261
|
*/
|
|
1278
1262
|
declare function smoke(options: SmokeOptions): Promise<void>;
|
|
1279
1263
|
|
|
1280
|
-
export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AiModelsOptions, type AvailableGoogleCalendar, CAPABILITIES, CODE_BUILD_RECIPES,
|
|
1264
|
+
export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AiModelsOptions, type AvailableGoogleCalendar, CAPABILITIES, CODE_BUILD_RECIPES, 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, printCapabilities, provision, reconcileConfig, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
|
package/dist/index.d.ts
CHANGED
|
@@ -56,10 +56,6 @@ interface PreparedCodeLocalSource {
|
|
|
56
56
|
/** Freeze the local Git tree and exact commit base before any approval request. */
|
|
57
57
|
declare function prepareCodeLocalSource(cwd: string, repository: string, readHead?: (cwd: string) => Promise<string>): Promise<PreparedCodeLocalSource>;
|
|
58
58
|
|
|
59
|
-
/** Release-owned Pi adapter bundled into the CLI. `prepareCodeImages` hashes
|
|
60
|
-
* the exact bundle and builds a content-addressed local image; no registry
|
|
61
|
-
* credential enters the terminal connection. */
|
|
62
|
-
declare const CODE_PI_IMAGE = "odla-ai/pi-agent:embedded";
|
|
63
59
|
/** Immutable CaMeL-registered build recipe available to an agent container. */
|
|
64
60
|
interface CodeBuildRule {
|
|
65
61
|
id: string;
|
|
@@ -76,14 +72,6 @@ interface CodeBuildRule {
|
|
|
76
72
|
* this once their owner-visible registration contract exists. */
|
|
77
73
|
declare const CODE_BUILD_RECIPES: readonly CodeBuildRule[];
|
|
78
74
|
|
|
79
|
-
type CodeImageCommandRunner = (command: string, args: readonly string[], stdio: "inherit" | "ignore") => Promise<void>;
|
|
80
|
-
type EmbeddedPiImageBuilder = (engine: CodeContainerEngine, image: string, run: CodeImageCommandRunner) => Promise<void>;
|
|
81
|
-
type EmbeddedPiImageNamer = () => Promise<string>;
|
|
82
|
-
/** Build the CLI-embedded Pi adapter and pull each immutable recipe image
|
|
83
|
-
* before an owner is asked to approve the terminal. Runtime attempts never
|
|
84
|
-
* pull, and fail closed if a prepared image disappears. */
|
|
85
|
-
declare function prepareCodeImages(engine: CodeContainerEngine, images: readonly string[], run?: CodeImageCommandRunner, buildEmbedded?: EmbeddedPiImageBuilder, nameEmbedded?: EmbeddedPiImageNamer): Promise<readonly string[]>;
|
|
86
|
-
|
|
87
75
|
/** Supported local isolation engines for an odla Code host runtime. */
|
|
88
76
|
type CodeContainerEngine = "container" | "podman" | "docker";
|
|
89
77
|
/** Bounded host facts reported on each outbound Code control-plane heartbeat. */
|
|
@@ -97,8 +85,6 @@ interface CodeHostCapabilities {
|
|
|
97
85
|
source: CodeLocalSourceDescriptor;
|
|
98
86
|
images: {
|
|
99
87
|
ready: true;
|
|
100
|
-
pi: string;
|
|
101
|
-
piSource: "cli_embedded";
|
|
102
88
|
recipes: Array<{
|
|
103
89
|
id: string;
|
|
104
90
|
image: string;
|
|
@@ -134,7 +120,6 @@ interface CodeConnectOptions {
|
|
|
134
120
|
runRuntime?: (input: CodeRuntimeInput) => Promise<void>;
|
|
135
121
|
readGitOrigin?: (cwd: string) => Promise<string>;
|
|
136
122
|
readGitHead?: (cwd: string) => Promise<string>;
|
|
137
|
-
prepareImages?: (engine: CodeContainerEngine, images: readonly string[]) => Promise<readonly string[]>;
|
|
138
123
|
prepareLocalSource?: typeof prepareCodeLocalSource;
|
|
139
124
|
}
|
|
140
125
|
/** Authority and runtime boundaries used after a Code host enrollment succeeds. */
|
|
@@ -153,7 +138,6 @@ interface CodeRuntimeInput {
|
|
|
153
138
|
trustedBaseDir: string;
|
|
154
139
|
sourceDir: string;
|
|
155
140
|
};
|
|
156
|
-
piImage?: string;
|
|
157
141
|
}
|
|
158
142
|
/** Enroll this machine from an odla project and keep the embedded Pi runtime
|
|
159
143
|
* online. Both the approval grant and host credential hashes are stored in
|
|
@@ -1277,4 +1261,4 @@ declare function installSkill(options?: SkillInstallOptions): SkillInstallResult
|
|
|
1277
1261
|
*/
|
|
1278
1262
|
declare function smoke(options: SmokeOptions): Promise<void>;
|
|
1279
1263
|
|
|
1280
|
-
export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AiModelsOptions, type AvailableGoogleCalendar, CAPABILITIES, CODE_BUILD_RECIPES,
|
|
1264
|
+
export { AGENT_HARNESSES, type AdminAiOptions, type AgentHarness, type AgentHarnessSelector, type AiModelsOptions, type AvailableGoogleCalendar, CAPABILITIES, CODE_BUILD_RECIPES, 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, printCapabilities, provision, reconcileConfig, redactSecrets, repositoryFromGitRemote, runCli, runCodeRuntime, runHostedSecurity, secretsPush, secretsSet, secretsSetClerkKey, smoke, startHostedSecurityJob, surfacePaths, validateInvocation };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
AGENT_HARNESSES,
|
|
4
4
|
CAPABILITIES,
|
|
5
5
|
CODE_BUILD_RECIPES,
|
|
6
|
-
CODE_PI_IMAGE,
|
|
7
6
|
COMMAND_SURFACE,
|
|
8
7
|
ConfigOperationCommandError,
|
|
9
8
|
GOOGLE_CALENDAR_EVENTS_SCOPE,
|
|
@@ -41,7 +40,6 @@ import {
|
|
|
41
40
|
isTerminalHostedSecurityStatus,
|
|
42
41
|
listGitHubSecuritySources,
|
|
43
42
|
listHostedSecurityJobs,
|
|
44
|
-
prepareCodeImages,
|
|
45
43
|
printCapabilities,
|
|
46
44
|
provision,
|
|
47
45
|
reconcileConfig,
|
|
@@ -56,7 +54,7 @@ import {
|
|
|
56
54
|
startHostedSecurityJob,
|
|
57
55
|
surfacePaths,
|
|
58
56
|
validateInvocation
|
|
59
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-L6YTOTWU.js";
|
|
60
58
|
import {
|
|
61
59
|
exitCodeFor,
|
|
62
60
|
redactSecrets
|
|
@@ -65,7 +63,6 @@ export {
|
|
|
65
63
|
AGENT_HARNESSES,
|
|
66
64
|
CAPABILITIES,
|
|
67
65
|
CODE_BUILD_RECIPES,
|
|
68
|
-
CODE_PI_IMAGE,
|
|
69
66
|
COMMAND_SURFACE,
|
|
70
67
|
ConfigOperationCommandError,
|
|
71
68
|
GOOGLE_CALENDAR_EVENTS_SCOPE,
|
|
@@ -104,7 +101,6 @@ export {
|
|
|
104
101
|
isTerminalHostedSecurityStatus,
|
|
105
102
|
listGitHubSecuritySources,
|
|
106
103
|
listHostedSecurityJobs,
|
|
107
|
-
prepareCodeImages,
|
|
108
104
|
printCapabilities,
|
|
109
105
|
provision,
|
|
110
106
|
reconcileConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odla-ai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"description": "Agent-operable CLI for odla provisioning, calendar consent and connection lifecycle, System AI administration, Worker secrets, security jobs, and smoke checks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://odla.ai/docs/packages/cli",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"ai"
|
|
51
51
|
],
|
|
52
52
|
"scripts": {
|
|
53
|
-
"build": "tsup
|
|
53
|
+
"build": "tsup",
|
|
54
54
|
"clean": "rm -rf dist",
|
|
55
55
|
"typecheck": "tsc --noEmit",
|
|
56
56
|
"test": "vitest run",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"prepublishOnly": "npm run build"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@odla-ai/ai": "0.
|
|
61
|
+
"@odla-ai/ai": "0.14.0",
|
|
62
62
|
"@odla-ai/apps": "0.10.5",
|
|
63
63
|
"@odla-ai/brand": "0.5.0",
|
|
64
|
-
"@odla-ai/db": "0.10.
|
|
64
|
+
"@odla-ai/db": "0.10.3",
|
|
65
65
|
"@odla-ai/security": "0.3.3"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|