@aui.io/apollo 0.1.84 → 0.1.86
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 +4 -4
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/bundles.js +227 -33
- 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/hierarchy.js +2 -2
- 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/mockdb.js +2 -3
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/mockdb.js.map +1 -1
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/operate.js +31 -12
- package/node_modules/@aui.io/apollo-cli/dist/src/commands/operate.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 +17 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/agent-settings.js +4 -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/builder-api.d.ts +36 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/builder-api.js +6 -0
- package/node_modules/@aui.io/apollo-core/dist/src/api/builder-api.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/api/management.d.ts +108 -4
- package/node_modules/@aui.io/apollo-core/dist/src/api/management.js +198 -18
- 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/mock-db.d.ts +1 -5
- package/node_modules/@aui.io/apollo-core/dist/src/api/mock-db.js +4 -10
- package/node_modules/@aui.io/apollo-core/dist/src/api/mock-db.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/bundle/baseline.d.ts +12 -2
- package/node_modules/@aui.io/apollo-core/dist/src/bundle/baseline.js +61 -14
- package/node_modules/@aui.io/apollo-core/dist/src/bundle/baseline.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/bundle/lineage.d.ts +29 -0
- package/node_modules/@aui.io/apollo-core/dist/src/bundle/lineage.js +65 -0
- package/node_modules/@aui.io/apollo-core/dist/src/bundle/lineage.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/bundle/materialize.d.ts +10 -0
- package/node_modules/@aui.io/apollo-core/dist/src/bundle/materialize.js +18 -0
- package/node_modules/@aui.io/apollo-core/dist/src/bundle/materialize.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/config/index.d.ts +2 -0
- package/node_modules/@aui.io/apollo-core/dist/src/config/index.js +7 -0
- package/node_modules/@aui.io/apollo-core/dist/src/config/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/errors/index.d.ts +75 -0
- package/node_modules/@aui.io/apollo-core/dist/src/errors/index.js +109 -0
- package/node_modules/@aui.io/apollo-core/dist/src/errors/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/index.d.ts +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/output/index.d.ts +2 -0
- package/node_modules/@aui.io/apollo-core/dist/src/output/index.js +5 -1
- package/node_modules/@aui.io/apollo-core/dist/src/output/index.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.d.ts +70 -2
- package/node_modules/@aui.io/apollo-core/dist/src/services/bundles.js +216 -69
- 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/doctor.js +4 -3
- package/node_modules/@aui.io/apollo-core/dist/src/services/doctor.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/hierarchy.d.ts +14 -21
- package/node_modules/@aui.io/apollo-core/dist/src/services/hierarchy.js +17 -27
- 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/messaging.d.ts +15 -9
- package/node_modules/@aui.io/apollo-core/dist/src/services/messaging.js +41 -18
- package/node_modules/@aui.io/apollo-core/dist/src/services/messaging.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/mockdb.d.ts +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/mockdb.js +24 -59
- package/node_modules/@aui.io/apollo-core/dist/src/services/mockdb.js.map +1 -1
- package/node_modules/@aui.io/apollo-core/dist/src/services/versions.d.ts +88 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/versions.js +202 -0
- package/node_modules/@aui.io/apollo-core/dist/src/services/versions.js.map +1 -0
- package/node_modules/@aui.io/apollo-core/dist/src/skills/agents-page.js +2 -2
- package/node_modules/@aui.io/apollo-core/dist/src/skills/agents-page.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 +13 -13
- 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/operationStore.js +2 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/activity/operationStore.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/author/data.js +3 -2
- package/node_modules/@aui.io/apollo-tui/dist/src/author/data.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.d.ts +11 -19
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/actions.js +79 -80
- 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 +2 -0
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.js +6 -6
- package/node_modules/@aui.io/apollo-tui/dist/src/lib/commands.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js +21 -13
- package/node_modules/@aui.io/apollo-tui/dist/src/opentui-app.js.map +1 -1
- package/node_modules/@aui.io/apollo-tui/package.json +2 -2
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,UAAU,EAAE,CAAC;IACb,aAAa,EAAE,CAAC;CACR,CAAC;AAIX,MAAM,OAAO,QAAS,SAAQ,KAAK;IACxB,IAAI,CAAS;IACb,QAAQ,CAAgB;IACxB,UAAU,CAAU;IAC7B;;wEAEoE;IAC3D,MAAM,CAAW;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,UAAU,EAAE,CAAC;IACb,aAAa,EAAE,CAAC;CACR,CAAC;AAIX,MAAM,OAAO,QAAS,SAAQ,KAAK;IACxB,IAAI,CAAS;IACb,QAAQ,CAAgB;IACxB,UAAU,CAAU;IAC7B;;wEAEoE;IAC3D,MAAM,CAAW;IAC1B,qFAAqF;IAC5E,eAAe,CAAU;IAElC,YACE,OAAe,EACf,UAOI,EAAE;QAEN,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,WAAW,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,OAAO,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC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,OAAO,SAAS,CAAC;IACxD,IAAI,IAAI,CAAC,IAAI,KAAK,8BAA8B;QAAE,OAAO,SAAS,CAAC;IACnE,MAAM,KAAK,GAAG,EAAE,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,GAAI,IAAI,CAAC,IAA0C,EAAE,CAAC;IACpG,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAC1F,OAAO,IAAI,iBAAiB,CAAC,KAAqB,EAAE,OAAO,CAAC,CAAC;AAC/D,CAAC;AAED,2EAA2E;AAC3E,SAAS,WAAW,CAAC,OAAgB;IACnC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC;IACvC,MAAM,GAAG,GAA2B,EAAE,CAAC;IACvC,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAG,KAA+C,CAAC;QAC5D,IAAI,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;YACrE,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC;QAC/B,CAAC;IACH,CAAC;IACD,OAAO,GAA4B,CAAC;AACtC,CAAC"}
|
|
@@ -3,7 +3,7 @@ export { normalizeArgv } from "./argv.js";
|
|
|
3
3
|
export type { HttpClient, Page, RequestOptions as HttpRequestOptions } from "./api/client-types.js";
|
|
4
4
|
export { IdentityClient, browserLogin, type LoginResult, type Organization, } from "./api/identity.js";
|
|
5
5
|
export { findLiveVersion, ManagementClient, parseVersionTag, type Agent, type AgentVersion, type Project, type VersionPull, type VersionPush, type VersionSource, type VersionStatus, } from "./api/management.js";
|
|
6
|
-
export { MOCKDB_SERVICE_NAME, MockDbClient, mockDbErrorCode, type MockDbAuth, type MockDbClientOptions, type MockDbCloneResponse, type MockDbIdentitiesResponse, type MockDbIdentitiesUpsertResponse, type
|
|
6
|
+
export { MOCKDB_SERVICE_NAME, MockDbClient, mockDbErrorCode, type MockDbAuth, type MockDbClientOptions, type MockDbCloneResponse, type MockDbIdentitiesResponse, type MockDbIdentitiesUpsertResponse, type MockDbProvisionResponse, type MockDbRuntimeAuth, type MockDbSampleData, type MockDbStatusResponse, type MockDbTokenAuth, } from "./api/mock-db.js";
|
|
7
7
|
export { CloneClient, type AgentCloneDryRun, type AgentCloneError, type AgentCloneReport, type AgentCloneRequest, type AgentCloneResult, type AgentCloneState, type AgentCloneStatus, type CloneEnvironment, } from "./api/clone.js";
|
|
8
8
|
export { VaultClient, type VaultScope, type VaultScopeType, type VaultSecret, type VaultSecretCreate, type VaultSecretUpdate, } from "./api/vault.js";
|
|
9
9
|
export { KbmClient, type BulkFilesResponse, type BulkResourceResult, type BulkWebsitesResponse, type IndexingJob, type KnowledgeBase, type UploadFilePart, } from "./api/kbm.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,gBAAgB,EAChB,eAAe,GAQhB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,eAAe,
|
|
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,gBAAgB,EAChB,eAAe,GAQhB,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AY,EACZ,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,kBAAkB,EAClB,SAAS,GAGV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,UAAU,GAIX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,gBAAgB,GAMjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,aAAa,EACb,mBAAmB,GAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,GAElB,MAAM,yBAAyB,CAAC;AAEjC,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"}
|
|
@@ -27,6 +27,8 @@ export interface ErrorEnvelope {
|
|
|
27
27
|
}
|
|
28
28
|
export declare function successEnvelope(data: unknown, update?: UpdateNotice): SuccessEnvelope;
|
|
29
29
|
export declare function errorEnvelope(error: CliError, update?: UpdateNotice): ErrorEnvelope;
|
|
30
|
+
/** A user as people are named: "you" for `me`, else their email, else "someone" — never an id. */
|
|
31
|
+
export declare function personName(id: string | null | undefined, email: string | null | undefined, me: string | undefined): string;
|
|
30
32
|
export declare class Output {
|
|
31
33
|
readonly options: OutputOptions;
|
|
32
34
|
private readonly stdout;
|
|
@@ -14,6 +14,10 @@ export function errorEnvelope(error, update) {
|
|
|
14
14
|
...(update === undefined ? {} : { update }),
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
+
/** A user as people are named: "you" for `me`, else their email, else "someone" — never an id. */
|
|
18
|
+
export function personName(id, email, me) {
|
|
19
|
+
return id && id === me ? "you" : email?.trim() || "someone";
|
|
20
|
+
}
|
|
17
21
|
/** How much of an upstream error body the default (non-verbose) human
|
|
18
22
|
* rendering shows — enough to read a server's refusal, not a stack dump. */
|
|
19
23
|
const DETAIL_PREVIEW_CHARS = 300;
|
|
@@ -51,7 +55,7 @@ export class Output {
|
|
|
51
55
|
error(error) {
|
|
52
56
|
const value = this.options.json
|
|
53
57
|
? JSON.stringify(errorEnvelope(error, this.update))
|
|
54
|
-
: `${pc.red("Error:")} ${error.message}${error.detail === undefined
|
|
58
|
+
: `${pc.red("Error:")} ${error.message}${error.detail === undefined || error.detailInMessage
|
|
55
59
|
? ""
|
|
56
60
|
: `\n${pc.dim(renderDetail(error.detail, this.options.verbose))}`}${error.suggestion === undefined ? "" : `\n${pc.dim(error.suggestion)}`}`;
|
|
57
61
|
const target = this.options.json ? this.stdout : this.stderr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/output/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAiC5B,MAAM,UAAU,eAAe,CAC7B,IAAa,EACb,MAAqB;IAErB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAC9E,CAAC;AAED,MAAM,U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5C,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,23 +1,46 @@
|
|
|
1
1
|
import type { AgentSettingsClient, BuildBundlePushResponse } from "../api/agent-settings.js";
|
|
2
|
-
import { type AgentVersion, type ManagementClient, type VersionPull, type VersionPush } from "../api/management.js";
|
|
2
|
+
import { type AgentVersion, type ManagementClient, type VersionPull, type VersionPush, type VersionStatus } from "../api/management.js";
|
|
3
3
|
import type { BuilderApiClient, BundleAudit, BundleFix, Certificate, EraCensus, OrphanCensus } from "../api/builder-api.js";
|
|
4
4
|
import type { RuntimeApiClient } from "../api/runtime-api.js";
|
|
5
|
-
import { type FileDiff } from "../bundle/baseline.js";
|
|
5
|
+
import { type BaselineCheckout, type FileDiff } from "../bundle/baseline.js";
|
|
6
6
|
import { type ValidationResult } from "../bundle/validate.js";
|
|
7
7
|
import { type Context, type ProjectBinding } from "../config/index.js";
|
|
8
8
|
import { type SkillTarget } from "../skills/install.js";
|
|
9
9
|
/** The bound agent id (exported for the sibling services that act on the
|
|
10
10
|
* checkout's agent remotely, e.g. the build lane). */
|
|
11
11
|
export declare function requireAgent(context: Context): string;
|
|
12
|
+
export declare function requireTag(context: Context): string;
|
|
13
|
+
/** The branch a checkout binds for `ref`, at its newest commit (`live`: the live branch, plus the commit customers get); an older commit throws. */
|
|
14
|
+
export declare function resolveBranch(management: ManagementClient, agentId: string, ref: string, bind: string, options?: {
|
|
15
|
+
inCheckoutAfter?: boolean;
|
|
16
|
+
}): Promise<{
|
|
17
|
+
version: AgentVersion;
|
|
18
|
+
tag: string;
|
|
19
|
+
live?: string;
|
|
20
|
+
}>;
|
|
12
21
|
/** The checkout root the context is bound to (exported for the sibling
|
|
13
22
|
* services that anchor per-checkout state there, e.g. the advisor thread). */
|
|
14
23
|
export declare function agentRoot(context: Context): string;
|
|
24
|
+
/** The checkout at `root` as a baseline owner — only the bound checkout's pin is known here. */
|
|
25
|
+
export declare function baselineCheckout(context: Context, root?: string): BaselineCheckout;
|
|
15
26
|
export declare function bundleSourceRoot(context: Context, root?: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Move the checkout's bound tag. A patch, not a rewrite: pull and push run
|
|
29
|
+
* constantly, and rebuilding the binding from the command's context would
|
|
30
|
+
* erase every field context does not carry — the runtime pin first among
|
|
31
|
+
* them.
|
|
32
|
+
*/
|
|
33
|
+
export declare function updateTag(context: Context, versionTag: string): Promise<void>;
|
|
16
34
|
/** What one pull moved in the build area, when the agent has a build bundle. */
|
|
17
35
|
export interface BuildAreaSync {
|
|
18
36
|
version: number;
|
|
19
37
|
written: string[];
|
|
20
38
|
removed: string[];
|
|
39
|
+
/** The program commit this material belongs with, when the bundle says. */
|
|
40
|
+
programVersionTag?: string;
|
|
41
|
+
/** The save that was ASKED for, when what came back belongs with another
|
|
42
|
+
* one — the caller says so rather than writing it in silently. */
|
|
43
|
+
askedFor?: string;
|
|
21
44
|
}
|
|
22
45
|
export declare function pullBundle(context: Context, clients: {
|
|
23
46
|
management: ManagementClient;
|
|
@@ -35,6 +58,8 @@ export declare function pullBundle(context: Context, clients: {
|
|
|
35
58
|
removed: string[];
|
|
36
59
|
/** Absent when the agent has no build bundle yet — the area is untouched. */
|
|
37
60
|
build?: BuildAreaSync;
|
|
61
|
+
/** The commit customers get, when the pull followed `live` to its branch. */
|
|
62
|
+
live?: string;
|
|
38
63
|
}>;
|
|
39
64
|
export declare function importBundle(context: Context, clients: {
|
|
40
65
|
management: ManagementClient;
|
|
@@ -52,6 +77,8 @@ export declare function importBundle(context: Context, clients: {
|
|
|
52
77
|
binding: ProjectBinding;
|
|
53
78
|
/** Absent when the agent has no build bundle yet. */
|
|
54
79
|
build?: BuildAreaSync;
|
|
80
|
+
/** The commit customers get: the import followed `live` (the default) to its branch. */
|
|
81
|
+
live?: string;
|
|
55
82
|
}>;
|
|
56
83
|
/** Skill packs a checkout gets unless the caller narrows or disables them. */
|
|
57
84
|
export declare const DEFAULT_SKILL_TARGETS: SkillTarget[];
|
|
@@ -112,6 +139,8 @@ export interface PullCheckoutResult {
|
|
|
112
139
|
removed: string[];
|
|
113
140
|
/** The build area sync, when the agent has a build bundle. */
|
|
114
141
|
build?: BuildAreaSync;
|
|
142
|
+
/** The commit customers get, when the pull followed `live` to its branch. */
|
|
143
|
+
live?: string;
|
|
115
144
|
/**
|
|
116
145
|
* The certificate written as `bundle/build/certification.yaml` — the
|
|
117
146
|
* pulled version's family has a completed full regression. Absent when it
|
|
@@ -168,6 +197,19 @@ export interface PushCheckoutResult {
|
|
|
168
197
|
/** The build lane (`bundle/build/**` vs the baseline), bare relative paths. */
|
|
169
198
|
buildDiff: FileDiff;
|
|
170
199
|
push?: VersionPush;
|
|
200
|
+
/** The commit customers still get, when the push landed on the branch it is on. */
|
|
201
|
+
live?: string;
|
|
202
|
+
/** The branch this push started, which the checkout now works on; `closed` is the bound branch when it took no commits. */
|
|
203
|
+
newBranch?: {
|
|
204
|
+
branch: string;
|
|
205
|
+
label: string;
|
|
206
|
+
/** The commit it was cut from. */
|
|
207
|
+
from: string;
|
|
208
|
+
closed?: {
|
|
209
|
+
branch: string;
|
|
210
|
+
status: VersionStatus;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
171
213
|
/** Present when the build area changed and was published as a new bundle. */
|
|
172
214
|
buildPush?: BuildBundlePushResponse;
|
|
173
215
|
validation?: ValidationResult;
|
|
@@ -220,6 +262,10 @@ export declare function pushBundle(context: Context, clients: {
|
|
|
220
262
|
commitMessage?: string;
|
|
221
263
|
homeDir?: string;
|
|
222
264
|
dryRun?: boolean;
|
|
265
|
+
/** Push these changes as a NEW version cut from the commit they are
|
|
266
|
+
* based on — the second way out when the version moved (or any time
|
|
267
|
+
* the author wants a line of their own). A string names it. */
|
|
268
|
+
newVersion?: string | boolean;
|
|
223
269
|
}): Promise<PushCheckoutResult>;
|
|
224
270
|
export declare function validateProgramBundle(runtime: RuntimeApiClient, files: Record<string, string>,
|
|
225
271
|
/** The agent whose vault resolves the connections' secret names. */
|
|
@@ -270,6 +316,28 @@ export declare function validateLocalBundle(context: Context, builder: BuilderAp
|
|
|
270
316
|
* the file. Returns the paths touched, in the plan's order.
|
|
271
317
|
*/
|
|
272
318
|
export declare function applyBundleFixes(fixes: BundleFix[], root: string): Promise<string[]>;
|
|
319
|
+
/** The agent's versions, and the commit it serves (`null` while nothing is live). */
|
|
273
320
|
export declare function listVersions(context: Context, management: ManagementClient): Promise<{
|
|
274
321
|
results: AgentVersion[];
|
|
322
|
+
live_version_tag: string | null;
|
|
323
|
+
}>;
|
|
324
|
+
/** One commit as `branch log` shows it. */
|
|
325
|
+
export interface BranchCommit {
|
|
326
|
+
tag: string;
|
|
327
|
+
created_at: string;
|
|
328
|
+
author: string;
|
|
329
|
+
message: string | null;
|
|
330
|
+
newest: boolean;
|
|
331
|
+
live: boolean;
|
|
332
|
+
}
|
|
333
|
+
/** The newest `limit` commits of the branch `ref` names (else the checkout's), and how many it has. */
|
|
334
|
+
export declare function branchLog(context: Context, management: ManagementClient, options: {
|
|
335
|
+
ref?: string;
|
|
336
|
+
limit: number;
|
|
337
|
+
}): Promise<{
|
|
338
|
+
branch: AgentVersion;
|
|
339
|
+
/** The commit customers get, when it is on this branch. */
|
|
340
|
+
live: string | null;
|
|
341
|
+
commits: BranchCommit[];
|
|
342
|
+
total: number;
|
|
275
343
|
}>;
|