@aui.io/apollo 0.1.21 → 0.1.22
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 +183 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/bundles.js +34 -9
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/bundles.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/curl.d.ts +10 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/curl.js +63 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/curl.js.map +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/doctor.d.ts +13 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/doctor.js +89 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/doctor.js.map +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/hierarchy.js +24 -7
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/hierarchy.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/runtime-version.d.ts +10 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/runtime-version.js +116 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/runtime-version.js.map +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/status.js +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/status.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/index.d.ts +1 -0
- package/node_modules/@aui.io/apollo-cli/dist/src/index.js +26 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/package.json +3 -3
- package/node_modules/@aui.io/apollo-core/dist/src/api/agent-settings.d.ts +147 -5
- package/node_modules/@aui.io/apollo-core/dist/src/api/agent-settings.js +95 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/agent-settings.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/api/capture.d.ts +22 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/capture.js +75 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/capture.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/management.d.ts +0 -1
- package/node_modules/@aui.io/apollo-core/dist/src/api/management.js +0 -6
- package/node_modules/@aui.io/apollo-core/dist/src/api/management.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/api/network.d.ts +19 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/network.js +53 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/network.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/transport.d.ts +14 -2
- package/node_modules/@aui.io/apollo-core/dist/src/api/transport.js +15 -28
- package/node_modules/@aui.io/apollo-core/dist/src/api/transport.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/index.d.ts +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/index.js +16 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/store.d.ts +10 -0
- package/node_modules/@aui.io/apollo-core/dist/src/config/store.js +24 -0
- package/node_modules/@aui.io/apollo-core/dist/src/config/store.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/types.d.ts +18 -1
- package/node_modules/@aui.io/apollo-core/dist/src/index.d.ts +9 -4
- package/node_modules/@aui.io/apollo-core/dist/src/index.js +8 -3
- package/node_modules/@aui.io/apollo-core/dist/src/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/index.d.ts +72 -0
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/index.js +114 -0
- package/node_modules/@aui.io/apollo-core/dist/src/runtime-version/index.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.d.ts +47 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.js +60 -6
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/clients.d.ts +4 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/clients.js +19 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/clients.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/doctor.d.ts +39 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/doctor.js +586 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/doctor.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/hierarchy.d.ts +78 -2
- package/node_modules/@aui.io/apollo-core/dist/src/services/hierarchy.js +177 -17
- package/node_modules/@aui.io/apollo-core/dist/src/services/hierarchy.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/requests.d.ts +22 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/requests.js +73 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/requests.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/status.service.d.ts +2 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/status.service.js +10 -2
- package/node_modules/@aui.io/apollo-core/dist/src/services/status.service.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/package.json +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/actions/registry.js +16 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/actions/registry.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/ActivityDrawer.js +31 -16
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/ActivityDrawer.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/requests.d.ts +19 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/requests.js +29 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/requests.js.map +1 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/author/AuthorHome.d.ts +3 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/author/AuthorHome.js +6 -18
- package/node_modules/@aui.io/apollo-tui/dist/src/author/AuthorHome.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/author/ResourcesView.js +26 -4
- package/node_modules/@aui.io/apollo-tui/dist/src/author/ResourcesView.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/context/ContextSwitcher.js +6 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/context/ContextSwitcher.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.js +93 -14
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.d.ts +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.js +20 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/diagnostics.d.ts +8 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/diagnostics.js +109 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/diagnostics.js.map +1 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/scope.d.ts +2 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/scope.js +1 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/scope.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js +2 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/shell/Breadcrumb.d.ts +4 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/shell/Breadcrumb.js +5 -3
- package/node_modules/@aui.io/apollo-tui/dist/src/shell/Breadcrumb.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/SplashCard.d.ts +5 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/SplashCard.js +56 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/SplashCard.js.map +1 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/wordmark.d.ts +73 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/wordmark.js +488 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/ui/wordmark.js.map +1 -0
- package/node_modules/@aui.io/apollo-tui/package.json +2 -2
- package/package.json +4 -4
|
@@ -8,28 +8,33 @@ export { VaultClient, type VaultScope, type VaultSecret, type VaultSecretCreate,
|
|
|
8
8
|
export { KbmClient, type BulkFilesResponse, type BulkResourceResult, type BulkWebsitesResponse, type IndexingJob, type KnowledgeBase, type UploadFilePart, } from "./api/kbm.js";
|
|
9
9
|
export { RuntimeApiClient, type AgentOverride, type Message, type RuntimeTrace, type SendMessageRequest, type SendMessageResponse, type SkillFile, type SkillIndexItem, type Thread, } from "./api/runtime-api.js";
|
|
10
10
|
export { Transport, type FormBody, type FormFilePart, type RequestCapture, type TransportOptions, } from "./api/transport.js";
|
|
11
|
-
export {
|
|
11
|
+
export { CaptureLog, captureLog, defaultCapturePath, type CaptureSink, } from "./api/capture.js";
|
|
12
|
+
export { AgentSettingsClient, type AgentBlobStats, type AgentRecord, type AgentRecordKind, type AgentRecordScope, type AgentVersionRecord, type RuntimeVersionRecord, type BuildBundle, type BuildBundlePullResponse, type BuildBundlePushResponse, type BundleUploadFile, type EvaluationScorePush, type EvaluationScoreRead, type Scenario, type ScenarioResult, type ScenarioResultStatus, type ScoreReportBlocks, } from "./api/agent-settings.js";
|
|
13
|
+
export { NetworkClient, type Network } from "./api/network.js";
|
|
12
14
|
export { diffHashes, isClean, readBaseline, writeBaseline, type Baseline, type FileDiff, } from "./bundle/baseline.js";
|
|
13
15
|
export { contentDigest, hashFiles, readProgramFiles, type ProgramFiles, } from "./bundle/files.js";
|
|
14
16
|
export { assembleBundle, bundleFileLayout, bundleFiles, writeBundleFiles, type BundleDocument, } from "./bundle/materialize.js";
|
|
15
17
|
export { assertValidProgram, mapRuntimeValidation, type RuntimeValidateResponse, type RuntimeValidationFinding, type ValidationFinding, type ValidationResult, } from "./bundle/validate.js";
|
|
16
18
|
export { parseEnvironment, resolveContext, type ResolveConfigOptions, } from "./config/index.js";
|
|
17
19
|
export { clearMockDbKeys, keyPrefixes, loadMockDbKeys, saveMockDbKeys, type MockDbKeys, } from "./config/mockdb-keys.js";
|
|
18
|
-
export { apolloDir, findBinding, readBinding, readCredentials, readUserConfig, updateEnvironment, updateProfile, writeBinding, writeCredentials, writeUserConfig, type ConfigPaths, } from "./config/store.js";
|
|
20
|
+
export { apolloDir, findBinding, patchBinding, readBinding, readCredentials, readUserConfig, updateEnvironment, updateProfile, writeBinding, writeCredentials, writeUserConfig, type ConfigPaths, } from "./config/store.js";
|
|
19
21
|
export { environments, type BaseUrls, type ConfigFlags, type Context, type Credential, type CredentialsFile, type Environment, type ProjectBinding, type UserConfig, type WorkspacePreferences, } from "./config/types.js";
|
|
20
22
|
export { ApiError, AuthError, CliError, ConfigError, ExitCode, ValidationError, toCliError, type ExitCodeValue, } from "./errors/index.js";
|
|
21
23
|
export { Output, errorEnvelope, successEnvelope, type ErrorEnvelope, type OutputOptions, } from "./output/index.js";
|
|
22
24
|
export { loginWithBrowser, loginWithOtp, loginWithToken, logout, requestOtp, } from "./services/auth.js";
|
|
23
|
-
export { importBundle, listVersions, localDiff, pullBundle, pushBundle, remoteDiff, validateLocalBundle, validateProgramBundle, } from "./services/bundles.js";
|
|
25
|
+
export { DEFAULT_SKILL_TARGETS, importBundle, listVersions, localDiff, pullBundle, pullCheckout, pushBundle, remoteDiff, validateLocalBundle, validateProgramBundle, type PullCheckoutOptions, type PullCheckoutResult, } from "./services/bundles.js";
|
|
24
26
|
export { createClients, type Clients } from "./services/clients.js";
|
|
25
27
|
export { listEnvironments, setEnvironment, type EnvironmentResult, type EnvironmentSummary, } from "./services/env.service.js";
|
|
26
|
-
export { bindAgent, createAgent, createProject, initialVersionTag, listAgents, listOrganizations, listProjects, unlinkAgent, useOrganization, useProject, useVersion, } from "./services/hierarchy.js";
|
|
28
|
+
export { agentRuntimeVersion, bindAgent, createAgent, createProject, initialVersionTag, latestPublishedRuntimeVersion, listAgents, listOrganizations, listProjects, TEMPLATE_AGENT_ID, unlinkAgent, useOrganization, useProject, useVersion, type AgentCreateClients, } from "./services/hierarchy.js";
|
|
29
|
+
export { isLegacyRuntime, latestRuntimeVersion, matchRuntimeVersion, resolveRuntimeVersion, runtimeVersionLabel, runtimeVersionOptions, RUNTIME_VERSION_HEADER, type ResolvedRuntimeVersion, type RuntimeVersionOption, } from "./runtime-version/index.js";
|
|
27
30
|
export { createThread, debugInteraction, getThread, listMessages, listThreads, parseVariables, sendMessage, trace, } from "./services/messaging.js";
|
|
28
31
|
export { createCollection, createEndpoint, deleteEndpoint, deleteMockDb, describeMockDb, executeEndpoint, exportMockDb, getEndpoint, inspectSession, listCollections, listEndpoints, normalizeSchema, parseJsonFlag, provisionMockDb, resetSession, resolveMockDb, rotateMgmtKey, rotateRuntimeKey, seedRows, statusMockDb, storedKeys, updateCollection, updateEndpoint, wireMockDbConnection, type MockDbResolved, type MockDbServiceOptions, type WireResult, } from "./services/mockdb.js";
|
|
29
32
|
export { buildVaultScope, getSecretByName, listSecrets, parseVaultScopeLevel, removeSecretByName, scopeLevelLabel, setSecret, validateSecretName, vaultScopeLevels, type SetSecretParams, type VaultScopeLevel, type VaultServiceOptions, } from "./services/vault.js";
|
|
30
33
|
export { addFiles, addUrls, createHub, deleteHub, getHubByName, hubRefCheck, hubStatus, listHubs, programHubRefs, type HubStatus, type HubUploadResult, type KnowledgeServiceOptions, } from "./services/knowledge.js";
|
|
31
34
|
export { INTENT_DIR, REPORT_BLOCK_KEYS, SCENARIOS_DIR, SCENARIOS_FILE, SCORES_FILE, assembleBundleUpload, listIntentFiles, pullScenarios, pullScores, pushScenarioBundle, pushScores, readLocalScenarios, readLocalScores, scaffoldScenarios, scenariosPaths, scoresToPushBody, syncScenarios, validateScenariosFile, writeLocalScenarios, writeLocalScores, type AssembledBundle, type LocalScenario, type LocalScores, type PullScenariosResult, type PullScoresResult, type PushBundleResult, type PushScoresResult, type ScaffoldResult, type ScenariosFile, type ScenariosServiceOptions, type SyncScenariosResult, } from "./services/scenarios.js";
|
|
32
35
|
export { currentProfile, listProfiles, useProfile, type CurrentProfile, type ProfileSummary, } from "./services/profile.service.js";
|
|
36
|
+
export { captureFailed, filterCaptures, formatCurl, readCapturedRequests, type CaptureFilters, } from "./services/requests.js";
|
|
37
|
+
export { runDoctor, type DoctorCheck, type DoctorOptions, type DoctorReport, type DoctorSection, type DoctorStatus, } from "./services/doctor.js";
|
|
33
38
|
export { getStatus, type ServiceCheck, type StatusResult, } from "./services/status.service.js";
|
|
34
39
|
export { resolvePublishedVersion, upgradeCli, type NpmRunner, type UpgradeOptions, type UpgradeResult, } from "./services/upgrade.js";
|
|
35
40
|
export { enterCheckout, enterKnownCheckout, listKnownCheckouts, type EnteredCheckout, } from "./services/checkouts.service.js";
|
|
@@ -7,28 +7,33 @@ export { VaultClient, } from "./api/vault.js";
|
|
|
7
7
|
export { KbmClient, } from "./api/kbm.js";
|
|
8
8
|
export { RuntimeApiClient, } from "./api/runtime-api.js";
|
|
9
9
|
export { Transport, } from "./api/transport.js";
|
|
10
|
+
export { CaptureLog, captureLog, defaultCapturePath, } from "./api/capture.js";
|
|
10
11
|
export { AgentSettingsClient, } from "./api/agent-settings.js";
|
|
12
|
+
export { NetworkClient } from "./api/network.js";
|
|
11
13
|
export { diffHashes, isClean, readBaseline, writeBaseline, } from "./bundle/baseline.js";
|
|
12
14
|
export { contentDigest, hashFiles, readProgramFiles, } from "./bundle/files.js";
|
|
13
15
|
export { assembleBundle, bundleFileLayout, bundleFiles, writeBundleFiles, } from "./bundle/materialize.js";
|
|
14
16
|
export { assertValidProgram, mapRuntimeValidation, } from "./bundle/validate.js";
|
|
15
17
|
export { parseEnvironment, resolveContext, } from "./config/index.js";
|
|
16
18
|
export { clearMockDbKeys, keyPrefixes, loadMockDbKeys, saveMockDbKeys, } from "./config/mockdb-keys.js";
|
|
17
|
-
export { apolloDir, findBinding, readBinding, readCredentials, readUserConfig, updateEnvironment, updateProfile, writeBinding, writeCredentials, writeUserConfig, } from "./config/store.js";
|
|
19
|
+
export { apolloDir, findBinding, patchBinding, readBinding, readCredentials, readUserConfig, updateEnvironment, updateProfile, writeBinding, writeCredentials, writeUserConfig, } from "./config/store.js";
|
|
18
20
|
export { environments, } from "./config/types.js";
|
|
19
21
|
export { ApiError, AuthError, CliError, ConfigError, ExitCode, ValidationError, toCliError, } from "./errors/index.js";
|
|
20
22
|
export { Output, errorEnvelope, successEnvelope, } from "./output/index.js";
|
|
21
23
|
export { loginWithBrowser, loginWithOtp, loginWithToken, logout, requestOtp, } from "./services/auth.js";
|
|
22
|
-
export { importBundle, listVersions, localDiff, pullBundle, pushBundle, remoteDiff, validateLocalBundle, validateProgramBundle, } from "./services/bundles.js";
|
|
24
|
+
export { DEFAULT_SKILL_TARGETS, importBundle, listVersions, localDiff, pullBundle, pullCheckout, pushBundle, remoteDiff, validateLocalBundle, validateProgramBundle, } from "./services/bundles.js";
|
|
23
25
|
export { createClients } from "./services/clients.js";
|
|
24
26
|
export { listEnvironments, setEnvironment, } from "./services/env.service.js";
|
|
25
|
-
export { bindAgent, createAgent, createProject, initialVersionTag, listAgents, listOrganizations, listProjects, unlinkAgent, useOrganization, useProject, useVersion, } from "./services/hierarchy.js";
|
|
27
|
+
export { agentRuntimeVersion, bindAgent, createAgent, createProject, initialVersionTag, latestPublishedRuntimeVersion, listAgents, listOrganizations, listProjects, TEMPLATE_AGENT_ID, unlinkAgent, useOrganization, useProject, useVersion, } from "./services/hierarchy.js";
|
|
28
|
+
export { isLegacyRuntime, latestRuntimeVersion, matchRuntimeVersion, resolveRuntimeVersion, runtimeVersionLabel, runtimeVersionOptions, RUNTIME_VERSION_HEADER, } from "./runtime-version/index.js";
|
|
26
29
|
export { createThread, debugInteraction, getThread, listMessages, listThreads, parseVariables, sendMessage, trace, } from "./services/messaging.js";
|
|
27
30
|
export { createCollection, createEndpoint, deleteEndpoint, deleteMockDb, describeMockDb, executeEndpoint, exportMockDb, getEndpoint, inspectSession, listCollections, listEndpoints, normalizeSchema, parseJsonFlag, provisionMockDb, resetSession, resolveMockDb, rotateMgmtKey, rotateRuntimeKey, seedRows, statusMockDb, storedKeys, updateCollection, updateEndpoint, wireMockDbConnection, } from "./services/mockdb.js";
|
|
28
31
|
export { buildVaultScope, getSecretByName, listSecrets, parseVaultScopeLevel, removeSecretByName, scopeLevelLabel, setSecret, validateSecretName, vaultScopeLevels, } from "./services/vault.js";
|
|
29
32
|
export { addFiles, addUrls, createHub, deleteHub, getHubByName, hubRefCheck, hubStatus, listHubs, programHubRefs, } from "./services/knowledge.js";
|
|
30
33
|
export { INTENT_DIR, REPORT_BLOCK_KEYS, SCENARIOS_DIR, SCENARIOS_FILE, SCORES_FILE, assembleBundleUpload, listIntentFiles, pullScenarios, pullScores, pushScenarioBundle, pushScores, readLocalScenarios, readLocalScores, scaffoldScenarios, scenariosPaths, scoresToPushBody, syncScenarios, validateScenariosFile, writeLocalScenarios, writeLocalScores, } from "./services/scenarios.js";
|
|
31
34
|
export { currentProfile, listProfiles, useProfile, } from "./services/profile.service.js";
|
|
35
|
+
export { captureFailed, filterCaptures, formatCurl, readCapturedRequests, } from "./services/requests.js";
|
|
36
|
+
export { runDoctor, } from "./services/doctor.js";
|
|
32
37
|
export { getStatus, } from "./services/status.service.js";
|
|
33
38
|
export { resolvePublishedVersion, upgradeCli, } from "./services/upgrade.js";
|
|
34
39
|
export { enterCheckout, enterKnownCheckout, listKnownCheckouts, } from "./services/checkouts.service.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C,OAAO,EACL,cAAc,EACd,YAAY,GAGb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,gBAA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,UAAU,GAGX,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,aAAa,EACb,cAAc,EACd,UAAU,EACV,oBAAoB,GAErB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,SAAS,GAMV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,SAAS,GAGV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,UAAU,GAIX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAoB,MAAM,qBAAqB,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE1E,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,aAAa,GAEd,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which RUNTIME (engine build) a checkout is pinned to.
|
|
3
|
+
*
|
|
4
|
+
* The catalog lives in agent-settings (`GET /v1/runtime-versions`). Each
|
|
5
|
+
* record names a runtime FAMILY — `runtime_version` is the immutable family
|
|
6
|
+
* id ("0.2.0", "0.2.1" and "0.2.5" are all the 0.2 family) and
|
|
7
|
+
* `latest_version` is the exact build the gateway currently routes that
|
|
8
|
+
* family to. The build is what travels as the `runtime-version` header on
|
|
9
|
+
* every runtime-api call, and it is what `.apollorc` pins.
|
|
10
|
+
*
|
|
11
|
+
* Pinning a family therefore keeps following its patches: a checkout on 0.2
|
|
12
|
+
* re-resolves to whatever 0.2 build is current, and only a deliberate
|
|
13
|
+
* `apollo runtime use` moves it to a different family.
|
|
14
|
+
*
|
|
15
|
+
* Nothing here ever fails a command. An unreachable catalog leaves the pin
|
|
16
|
+
* unset, and an unpinned checkout behaves exactly as it did before runtime
|
|
17
|
+
* pinning existed: the gateway serves its own default route.
|
|
18
|
+
*/
|
|
19
|
+
import type { AgentSettingsClient, RuntimeVersionRecord } from "../api/agent-settings.js";
|
|
20
|
+
/** The HTTP header the gateway routes on. runtime-api itself never reads it. */
|
|
21
|
+
export declare const RUNTIME_VERSION_HEADER = "runtime-version";
|
|
22
|
+
/** A catalog record trimmed to what selection needs. */
|
|
23
|
+
export interface RuntimeVersionOption {
|
|
24
|
+
runtime_version: string;
|
|
25
|
+
latest_version: string;
|
|
26
|
+
display_name: string;
|
|
27
|
+
type: "published" | "custom";
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* True when the record names the LEGACY (schema-1) engine — the 1.x family,
|
|
31
|
+
* labelled "v1.0". It only ever serves schema-1 agent versions, so a
|
|
32
|
+
* runtime-v2 checkout must never resolve "latest" to it.
|
|
33
|
+
*/
|
|
34
|
+
export declare function isLegacyRuntime(option: RuntimeVersionOption): boolean;
|
|
35
|
+
/** Trim catalog records to selectable options; hidden records drop out. */
|
|
36
|
+
export declare function runtimeVersionOptions(records: RuntimeVersionRecord[]): RuntimeVersionOption[];
|
|
37
|
+
/**
|
|
38
|
+
* The catalog entry a stored value belongs to. Exact hits on `latest_version`
|
|
39
|
+
* (the current build) or `runtime_version` (the family id) win, then the
|
|
40
|
+
* display name — a pin written by another tool may carry the label ("v0.2"),
|
|
41
|
+
* whose family shares nothing with the record's id. Last, the PATCH NUMBER IS
|
|
42
|
+
* IGNORED: 0.2.0, 0.2.1 and 0.2.5 all resolve to the record naming the 0.2
|
|
43
|
+
* family. Custom runtimes have arbitrary names, so they only match exactly.
|
|
44
|
+
*/
|
|
45
|
+
export declare function matchRuntimeVersion(options: RuntimeVersionOption[], value: string | undefined): RuntimeVersionOption | undefined;
|
|
46
|
+
/** The display label for a raw build ("0.2.4" → "v0.2"); unknown shows as-is. */
|
|
47
|
+
export declare function runtimeVersionLabel(options: RuntimeVersionOption[], value: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* The newest runtime a checkout should land on by default: the highest
|
|
50
|
+
* published family, legacy excluded. Custom entries are bespoke deployments
|
|
51
|
+
* and are never "the latest" — they are only ever pinned by name.
|
|
52
|
+
*/
|
|
53
|
+
export declare function latestRuntimeVersion(options: RuntimeVersionOption[]): RuntimeVersionOption | undefined;
|
|
54
|
+
export interface ResolvedRuntimeVersion {
|
|
55
|
+
/** The build to pin and send as the header. Undefined = no catalog answer. */
|
|
56
|
+
version?: string;
|
|
57
|
+
/** The catalog entry it resolved to, when there was one. */
|
|
58
|
+
option?: RuntimeVersionOption;
|
|
59
|
+
/** The catalog as fetched; empty when it could not be read. */
|
|
60
|
+
options: RuntimeVersionOption[];
|
|
61
|
+
/** Why the catalog was unusable, for a note rather than a failure. */
|
|
62
|
+
error?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Read the catalog and name the runtime a NEW checkout should start on — the
|
|
66
|
+
* newest published family (see `latestRuntimeVersion`).
|
|
67
|
+
*
|
|
68
|
+
* Best-effort by design: this decorates create, import and the runtime
|
|
69
|
+
* commands, and none of those should fail because the catalog was
|
|
70
|
+
* unreachable. An error is reported, never thrown.
|
|
71
|
+
*/
|
|
72
|
+
export declare function resolveRuntimeVersion(client: Pick<AgentSettingsClient, "listRuntimeVersions">): Promise<ResolvedRuntimeVersion>;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/** The HTTP header the gateway routes on. runtime-api itself never reads it. */
|
|
2
|
+
export const RUNTIME_VERSION_HEADER = "runtime-version";
|
|
3
|
+
/**
|
|
4
|
+
* A semantic version's family — major.minor with the patch dropped
|
|
5
|
+
* ("0.2.5" → "0.2"). Undefined for non-semver values (custom runtime names).
|
|
6
|
+
*/
|
|
7
|
+
function familyOf(value) {
|
|
8
|
+
const match = /^(\d+)\.(\d+)(?:\.\S*)?$/.exec(value.trim());
|
|
9
|
+
return match ? `${match[1]}.${match[2]}` : undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* True when the record names the LEGACY (schema-1) engine — the 1.x family,
|
|
13
|
+
* labelled "v1.0". It only ever serves schema-1 agent versions, so a
|
|
14
|
+
* runtime-v2 checkout must never resolve "latest" to it.
|
|
15
|
+
*/
|
|
16
|
+
export function isLegacyRuntime(option) {
|
|
17
|
+
const family = familyOf(option.runtime_version);
|
|
18
|
+
if (family)
|
|
19
|
+
return family.split(".")[0] === "1";
|
|
20
|
+
return option.display_name.trim().toLowerCase() === "v1.0";
|
|
21
|
+
}
|
|
22
|
+
/** Trim catalog records to selectable options; hidden records drop out. */
|
|
23
|
+
export function runtimeVersionOptions(records) {
|
|
24
|
+
return records
|
|
25
|
+
.filter((record) => record.is_visible)
|
|
26
|
+
.map((record) => ({
|
|
27
|
+
runtime_version: record.runtime_version,
|
|
28
|
+
latest_version: record.latest_version,
|
|
29
|
+
display_name: record.display_name,
|
|
30
|
+
type: record.type,
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The catalog entry a stored value belongs to. Exact hits on `latest_version`
|
|
35
|
+
* (the current build) or `runtime_version` (the family id) win, then the
|
|
36
|
+
* display name — a pin written by another tool may carry the label ("v0.2"),
|
|
37
|
+
* whose family shares nothing with the record's id. Last, the PATCH NUMBER IS
|
|
38
|
+
* IGNORED: 0.2.0, 0.2.1 and 0.2.5 all resolve to the record naming the 0.2
|
|
39
|
+
* family. Custom runtimes have arbitrary names, so they only match exactly.
|
|
40
|
+
*/
|
|
41
|
+
export function matchRuntimeVersion(options, value) {
|
|
42
|
+
if (!value)
|
|
43
|
+
return undefined;
|
|
44
|
+
const wanted = value.trim();
|
|
45
|
+
const exact = options.find((option) => option.latest_version === wanted || option.runtime_version === wanted);
|
|
46
|
+
if (exact)
|
|
47
|
+
return exact;
|
|
48
|
+
const label = wanted.toLowerCase();
|
|
49
|
+
const byLabel = options.find((option) => option.display_name.trim().toLowerCase() === label);
|
|
50
|
+
if (byLabel)
|
|
51
|
+
return byLabel;
|
|
52
|
+
const family = familyOf(wanted);
|
|
53
|
+
if (!family)
|
|
54
|
+
return undefined;
|
|
55
|
+
return options.find((option) => familyOf(option.runtime_version) === family);
|
|
56
|
+
}
|
|
57
|
+
/** The display label for a raw build ("0.2.4" → "v0.2"); unknown shows as-is. */
|
|
58
|
+
export function runtimeVersionLabel(options, value) {
|
|
59
|
+
return matchRuntimeVersion(options, value)?.display_name ?? value;
|
|
60
|
+
}
|
|
61
|
+
/** Descending semver order; non-numeric segments sort last. */
|
|
62
|
+
function compareVersions(left, right) {
|
|
63
|
+
const parse = (value) => value
|
|
64
|
+
.trim()
|
|
65
|
+
.split(".")
|
|
66
|
+
.map((part) => {
|
|
67
|
+
const numeric = Number.parseInt(part, 10);
|
|
68
|
+
return Number.isNaN(numeric) ? -1 : numeric;
|
|
69
|
+
});
|
|
70
|
+
const a = parse(left);
|
|
71
|
+
const b = parse(right);
|
|
72
|
+
for (let index = 0; index < Math.max(a.length, b.length); index += 1) {
|
|
73
|
+
const difference = (b[index] ?? 0) - (a[index] ?? 0);
|
|
74
|
+
if (difference !== 0)
|
|
75
|
+
return difference;
|
|
76
|
+
}
|
|
77
|
+
return 0;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The newest runtime a checkout should land on by default: the highest
|
|
81
|
+
* published family, legacy excluded. Custom entries are bespoke deployments
|
|
82
|
+
* and are never "the latest" — they are only ever pinned by name.
|
|
83
|
+
*/
|
|
84
|
+
export function latestRuntimeVersion(options) {
|
|
85
|
+
return options
|
|
86
|
+
.filter((option) => option.type === "published" && !isLegacyRuntime(option))
|
|
87
|
+
.sort((left, right) => compareVersions(left.runtime_version, right.runtime_version))[0];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Read the catalog and name the runtime a NEW checkout should start on — the
|
|
91
|
+
* newest published family (see `latestRuntimeVersion`).
|
|
92
|
+
*
|
|
93
|
+
* Best-effort by design: this decorates create, import and the runtime
|
|
94
|
+
* commands, and none of those should fail because the catalog was
|
|
95
|
+
* unreachable. An error is reported, never thrown.
|
|
96
|
+
*/
|
|
97
|
+
export async function resolveRuntimeVersion(client) {
|
|
98
|
+
let catalog;
|
|
99
|
+
try {
|
|
100
|
+
catalog = runtimeVersionOptions(await client.listRuntimeVersions());
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
return {
|
|
104
|
+
options: [],
|
|
105
|
+
error: error instanceof Error ? error.message : String(error),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
const option = latestRuntimeVersion(catalog);
|
|
109
|
+
return {
|
|
110
|
+
...(option ? { version: option.latest_version, option } : {}),
|
|
111
|
+
options: catalog,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runtime-version/index.ts"],"names":[],"mappings":"AAuBA,gFAAgF;AAChF,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AAUxD;;;GAGG;AACH,SAAS,QAAQ,CAAC,KAAa;IAC7B,MAAM,KAAK,GAAG,0BAA0B,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5D,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACvD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,MAA4B;IAC1D,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAChD,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;IAChD,OAAO,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC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MAAM,CAAC,IAAI,KAAK,WAAW,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;SAC3E,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACpB,eAAe,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC,CAC7D,CAAC,CAAC,CAAC,CAAC;AACT,CAAC;AAaD;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,MAAwD;IAExD,IAAI,OAA+B,CAAC;IACpC,IAAI,CAAC;QACH,OAAO,GAAG,qBAAqB,CAAC,MAAM,MAAM,CAAC,mBAAmB,EAAE,CAAC,CAAC;IACtE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;SAC9D,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAC7C,OAAO;QACL,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7D,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { RuntimeApiClient } from "../api/runtime-api.js";
|
|
|
3
3
|
import { type FileDiff } from "../bundle/baseline.js";
|
|
4
4
|
import { type ValidationResult } from "../bundle/validate.js";
|
|
5
5
|
import { type Context, type ProjectBinding } from "../config/index.js";
|
|
6
|
+
import { type SkillTarget } from "../skills/install.js";
|
|
6
7
|
export declare function pullBundle(context: Context, management: ManagementClient, options?: {
|
|
7
8
|
tag?: string;
|
|
8
9
|
destination?: string;
|
|
@@ -13,11 +14,56 @@ export declare function pullBundle(context: Context, management: ManagementClien
|
|
|
13
14
|
files: Record<string, string>;
|
|
14
15
|
removed: string[];
|
|
15
16
|
}>;
|
|
16
|
-
export declare function importBundle(context: Context, management: ManagementClient, agentId: string, destination: string,
|
|
17
|
+
export declare function importBundle(context: Context, management: ManagementClient, agentId: string, destination: string, options?: {
|
|
18
|
+
tag?: string;
|
|
19
|
+
homeDir?: string;
|
|
20
|
+
/** The engine build to pin the new checkout to (see `runtime-version/`). */
|
|
21
|
+
runtimeVersion?: string;
|
|
22
|
+
}): Promise<{
|
|
17
23
|
pull: VersionPull;
|
|
18
24
|
files: Record<string, string>;
|
|
19
25
|
binding: ProjectBinding;
|
|
20
26
|
}>;
|
|
27
|
+
/** Skill packs a checkout gets unless the caller narrows or disables them. */
|
|
28
|
+
export declare const DEFAULT_SKILL_TARGETS: SkillTarget[];
|
|
29
|
+
export interface PullCheckoutOptions {
|
|
30
|
+
tag?: string;
|
|
31
|
+
destination?: string;
|
|
32
|
+
homeDir?: string;
|
|
33
|
+
force?: boolean;
|
|
34
|
+
/** Skill packs to refresh; `false` skips them. */
|
|
35
|
+
skills?: SkillTarget[] | false;
|
|
36
|
+
/** Refresh the authoring JSON Schemas (default true). */
|
|
37
|
+
schemas?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface PullCheckoutResult {
|
|
40
|
+
pull: VersionPull;
|
|
41
|
+
files: Record<string, string>;
|
|
42
|
+
removed: string[];
|
|
43
|
+
/** The engine build every fetch above was routed to, when pinned. */
|
|
44
|
+
runtimeVersion?: string;
|
|
45
|
+
skills?: string[];
|
|
46
|
+
schemas?: string[];
|
|
47
|
+
/**
|
|
48
|
+
* Why the runtime-served half was skipped. The bundle is already on disk
|
|
49
|
+
* by then, so a schema/skill fetch failure is reported, not thrown.
|
|
50
|
+
*/
|
|
51
|
+
note?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Refresh everything a checkout gets from the platform, in one pass: the
|
|
55
|
+
* agent bundle (its program, `agent.md` and every other authored file), the
|
|
56
|
+
* authoring JSON Schemas, and the skill packs.
|
|
57
|
+
*
|
|
58
|
+
* The last two come from runtime-api, so they are only coherent when they
|
|
59
|
+
* come from the SAME engine build that will run the agent — the checkout's
|
|
60
|
+
* pin routes all three (`clients.runtime` carries the `runtime-version`
|
|
61
|
+
* header), which is why they belong in one command rather than three.
|
|
62
|
+
*/
|
|
63
|
+
export declare function pullCheckout(context: Context, clients: {
|
|
64
|
+
management: ManagementClient;
|
|
65
|
+
runtime: RuntimeApiClient;
|
|
66
|
+
}, options?: PullCheckoutOptions): Promise<PullCheckoutResult>;
|
|
21
67
|
export declare function localDiff(context: Context, root?: string, homeDir?: string): Promise<FileDiff>;
|
|
22
68
|
export declare function remoteDiff(context: Context, management: ManagementClient, root?: string): Promise<FileDiff>;
|
|
23
69
|
export declare function pushBundle(context: Context, management: ManagementClient, runtime: RuntimeApiClient, options?: {
|
|
@@ -5,8 +5,10 @@ import { diffHashes, isClean, readBaseline, writeBaseline } from "../bundle/base
|
|
|
5
5
|
import { hashFiles, readProgramFiles } from "../bundle/files.js";
|
|
6
6
|
import { assembleBundle, bundleFileLayout, bundleFiles, writeBundleFiles, } from "../bundle/materialize.js";
|
|
7
7
|
import { assertValidProgram, mapRuntimeValidation, } from "../bundle/validate.js";
|
|
8
|
-
import { writeBinding } from "../config/index.js";
|
|
8
|
+
import { patchBinding, writeBinding, } from "../config/index.js";
|
|
9
9
|
import { ConfigError } from "../errors/index.js";
|
|
10
|
+
import { checkoutSchemasDir, installSchemas } from "../schemas/install.js";
|
|
11
|
+
import { installSkills } from "../skills/install.js";
|
|
10
12
|
function requireAgent(context) {
|
|
11
13
|
if (!context.agentId)
|
|
12
14
|
throw new ConfigError("Select or import an agent first.");
|
|
@@ -25,18 +27,22 @@ function agentRoot(context) {
|
|
|
25
27
|
function bundleSourceRoot(context, root = agentRoot(context)) {
|
|
26
28
|
return path.join(root, "bundle", "src");
|
|
27
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Move the checkout's bound tag. A patch, not a rewrite: pull and push run
|
|
32
|
+
* constantly, and rebuilding the binding from the command's context would
|
|
33
|
+
* erase every field context does not carry — the runtime pin first among
|
|
34
|
+
* them.
|
|
35
|
+
*/
|
|
28
36
|
async function updateTag(context, versionTag) {
|
|
29
37
|
if (!context.bindingPath) {
|
|
30
38
|
throw new ConfigError("No .apollorc is bound to this working directory.");
|
|
31
39
|
}
|
|
32
|
-
|
|
33
|
-
config_version: 1,
|
|
40
|
+
await patchBinding(context.bindingPath, {
|
|
34
41
|
...(context.orgId ? { org_id: context.orgId } : {}),
|
|
35
42
|
...(context.projectId ? { project_id: context.projectId } : {}),
|
|
36
43
|
...(context.agentId ? { agent_id: context.agentId } : {}),
|
|
37
44
|
version_tag: versionTag,
|
|
38
|
-
};
|
|
39
|
-
await writeBinding(context.bindingPath, binding);
|
|
45
|
+
});
|
|
40
46
|
}
|
|
41
47
|
function formatFileDiff(diff) {
|
|
42
48
|
return [
|
|
@@ -82,7 +88,9 @@ export async function pullBundle(context, management, options = {}) {
|
|
|
82
88
|
await writeBaseline(homeDir, agentId, pull.version_tag, files, bundleFileLayout(pull.bundle));
|
|
83
89
|
return { pull, files, removed: written.removed };
|
|
84
90
|
}
|
|
85
|
-
export async function importBundle(context, management, agentId, destination,
|
|
91
|
+
export async function importBundle(context, management, agentId, destination, options = {}) {
|
|
92
|
+
const { tag, runtimeVersion } = options;
|
|
93
|
+
const homeDir = options.homeDir ?? homedir();
|
|
86
94
|
const agent = await management.getAgent(agentId);
|
|
87
95
|
let selectedTag = tag;
|
|
88
96
|
if (!selectedTag && agent.live_version_id) {
|
|
@@ -103,11 +111,57 @@ export async function importBundle(context, management, agentId, destination, ta
|
|
|
103
111
|
project_id: agent.project_id,
|
|
104
112
|
agent_id: agent.id,
|
|
105
113
|
version_tag: pull.version_tag,
|
|
114
|
+
...(runtimeVersion ? { runtime_version: runtimeVersion } : {}),
|
|
106
115
|
};
|
|
107
116
|
await writeBinding(path.join(destination, ".apollorc"), binding);
|
|
108
117
|
await writeBaseline(homeDir, agent.id, pull.version_tag, files, bundleFileLayout(pull.bundle));
|
|
109
118
|
return { pull, files, binding };
|
|
110
119
|
}
|
|
120
|
+
/** Skill packs a checkout gets unless the caller narrows or disables them. */
|
|
121
|
+
export const DEFAULT_SKILL_TARGETS = ["cursor", "claude"];
|
|
122
|
+
/**
|
|
123
|
+
* Refresh everything a checkout gets from the platform, in one pass: the
|
|
124
|
+
* agent bundle (its program, `agent.md` and every other authored file), the
|
|
125
|
+
* authoring JSON Schemas, and the skill packs.
|
|
126
|
+
*
|
|
127
|
+
* The last two come from runtime-api, so they are only coherent when they
|
|
128
|
+
* come from the SAME engine build that will run the agent — the checkout's
|
|
129
|
+
* pin routes all three (`clients.runtime` carries the `runtime-version`
|
|
130
|
+
* header), which is why they belong in one command rather than three.
|
|
131
|
+
*/
|
|
132
|
+
export async function pullCheckout(context, clients, options = {}) {
|
|
133
|
+
const root = options.destination ?? agentRoot(context);
|
|
134
|
+
const bundle = await pullBundle(context, clients.management, {
|
|
135
|
+
...(options.tag ? { tag: options.tag } : {}),
|
|
136
|
+
...(options.destination ? { destination: options.destination } : {}),
|
|
137
|
+
...(options.homeDir ? { homeDir: options.homeDir } : {}),
|
|
138
|
+
force: options.force === true,
|
|
139
|
+
});
|
|
140
|
+
const wantSkills = options.skills === undefined ? DEFAULT_SKILL_TARGETS : options.skills;
|
|
141
|
+
const wantSchemas = options.schemas !== false;
|
|
142
|
+
let skills;
|
|
143
|
+
let schemas;
|
|
144
|
+
let note;
|
|
145
|
+
try {
|
|
146
|
+
if (wantSkills !== false && wantSkills.length > 0) {
|
|
147
|
+
skills = (await installSkills(clients.runtime, root, wantSkills)).skills;
|
|
148
|
+
}
|
|
149
|
+
if (wantSchemas) {
|
|
150
|
+
schemas = (await installSchemas(clients.runtime, checkoutSchemasDir(root)))
|
|
151
|
+
.files;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
note = `Schemas/skills not refreshed (${error instanceof Error ? error.message : String(error)}).`;
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
...bundle,
|
|
159
|
+
...(context.runtimeVersion ? { runtimeVersion: context.runtimeVersion } : {}),
|
|
160
|
+
...(skills ? { skills } : {}),
|
|
161
|
+
...(schemas ? { schemas } : {}),
|
|
162
|
+
...(note ? { note } : {}),
|
|
163
|
+
};
|
|
164
|
+
}
|
|
111
165
|
export async function localDiff(context, root = bundleSourceRoot(context), homeDir = homedir()) {
|
|
112
166
|
const agentId = requireAgent(context);
|
|
113
167
|
const baseline = await readBaseline(homeDir, agentId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundles.js","sourceRoot":"","sources":["../../../src/services/bundles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,eAAe,GAKhB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAiB,MAAM,uBAAuB,CAAC;AACxG,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,GAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAqC,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,SAAS,YAAY,CAAC,OAAgB;IACpC,IAAI,CAAC,OAAO,CAAC,OAAO;QAAE,MAAM,IAAI,WAAW,CAAC,kCAAkC,CAAC,CAAC;IAChF,OAAO,OAAO,CAAC,OAAO,CAAC;AACzB,CAAC;AAED,SAAS,UAAU,CAAC,OAAg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AAE,EAC5B,OAAO,EACP,IAAI,CAAC,eAAe,EACpB,OAAO,CAAC,KAAK,EACb,gBAAgB,CAAC,MAAM,CAAC,CACzB,CAAC;IACF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,OAAyB,EACzB,KAA6B;IAE7B,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC1D,OAAO,oBAAoB,CAAC,QAAQ,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAgB,EAChB,OAAyB,EACzB,IAAI,GAAG,gBAAgB,CAAC,OAAO,CAAC;IAEhC,MAAM,OAAO,GAAG,MAAM,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC7C,OAAO,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,OAAgB,EAChB,UAA4B;IAE5B,OAAO,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { AgentSettingsClient } from "../api/agent-settings.js";
|
|
|
2
2
|
import { IdentityClient } from "../api/identity.js";
|
|
3
3
|
import { KbmClient } from "../api/kbm.js";
|
|
4
4
|
import { ManagementClient } from "../api/management.js";
|
|
5
|
+
import { NetworkClient } from "../api/network.js";
|
|
5
6
|
import { RuntimeApiClient } from "../api/runtime-api.js";
|
|
6
7
|
import { VaultClient } from "../api/vault.js";
|
|
7
8
|
import { type Context } from "../config/index.js";
|
|
@@ -11,8 +12,10 @@ export interface Clients {
|
|
|
11
12
|
runtime: RuntimeApiClient;
|
|
12
13
|
vault: VaultClient;
|
|
13
14
|
kbm: KbmClient;
|
|
14
|
-
/** v1 agent-settings — scenarios
|
|
15
|
+
/** v1 agent-settings — scenarios + the `agent create` clone sequence. */
|
|
15
16
|
agentSettings: AgentSettingsClient;
|
|
17
|
+
/** network service — allocates the network a new agent is scoped to. */
|
|
18
|
+
network: NetworkClient;
|
|
16
19
|
}
|
|
17
20
|
export declare function createClients(context: Context, options?: {
|
|
18
21
|
homeDir?: string;
|
|
@@ -3,11 +3,13 @@ import { AgentSettingsClient } from "../api/agent-settings.js";
|
|
|
3
3
|
import { IdentityClient } from "../api/identity.js";
|
|
4
4
|
import { KbmClient } from "../api/kbm.js";
|
|
5
5
|
import { ManagementClient } from "../api/management.js";
|
|
6
|
+
import { NetworkClient } from "../api/network.js";
|
|
6
7
|
import { RuntimeApiClient } from "../api/runtime-api.js";
|
|
7
8
|
import { Transport } from "../api/transport.js";
|
|
8
9
|
import { VaultClient } from "../api/vault.js";
|
|
9
10
|
import { readCredentials, writeCredentials, } from "../config/index.js";
|
|
10
11
|
import { AuthError } from "../errors/index.js";
|
|
12
|
+
import { RUNTIME_VERSION_HEADER } from "../runtime-version/index.js";
|
|
11
13
|
function expiry(token) {
|
|
12
14
|
try {
|
|
13
15
|
const payload = token.split(".")[1];
|
|
@@ -76,9 +78,15 @@ export function createClients(context, options = {}) {
|
|
|
76
78
|
userId: context.userId,
|
|
77
79
|
...common,
|
|
78
80
|
});
|
|
81
|
+
// Everything the runtime serves is version-dependent — the program schemas,
|
|
82
|
+
// the authoring skills, what `validate` enforces and which engine runs a
|
|
83
|
+
// turn — so the pin rides every call to it, not just the sends.
|
|
79
84
|
const runtimeTransport = new Transport({
|
|
80
85
|
service: "runtime-api",
|
|
81
86
|
baseUrl: context.baseUrls.runtime,
|
|
87
|
+
...(context.runtimeVersion
|
|
88
|
+
? { headers: { [RUNTIME_VERSION_HEADER]: context.runtimeVersion } }
|
|
89
|
+
: {}),
|
|
82
90
|
...common,
|
|
83
91
|
});
|
|
84
92
|
// Vault rides the apollo legacy gateway: session bearer + org header (the
|
|
@@ -105,6 +113,16 @@ export function createClients(context, options = {}) {
|
|
|
105
113
|
orgHeader: "X-Organization-ID",
|
|
106
114
|
...common,
|
|
107
115
|
});
|
|
116
|
+
// The network service takes the session token in `x-access-token` (like
|
|
117
|
+
// identity, not like everything else) and spells the org header its own way.
|
|
118
|
+
const networkTransport = new Transport({
|
|
119
|
+
service: "network",
|
|
120
|
+
baseUrl: context.baseUrls.network,
|
|
121
|
+
authHeader: "x-access-token",
|
|
122
|
+
orgId: context.orgId,
|
|
123
|
+
orgHeader: "organization-id",
|
|
124
|
+
...common,
|
|
125
|
+
});
|
|
108
126
|
return {
|
|
109
127
|
identity,
|
|
110
128
|
management: new ManagementClient(managementTransport),
|
|
@@ -112,6 +130,7 @@ export function createClients(context, options = {}) {
|
|
|
112
130
|
vault: new VaultClient(vaultTransport),
|
|
113
131
|
kbm: new KbmClient(kbmTransport),
|
|
114
132
|
agentSettings: new AgentSettingsClient(agentSettingsTransport),
|
|
133
|
+
network: new NetworkClient(networkTransport),
|
|
115
134
|
};
|
|
116
135
|
}
|
|
117
136
|
//# sourceMappingURL=clients.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../src/services/clients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACL,eAAe,EACf,gBAAgB,GAGjB,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