@xemahq/kernel-contracts 0.13.4 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-composition/lib/agent.d.ts.map +1 -1
- package/dist/agent-composition/lib/agent.js.map +1 -1
- package/dist/agent-session/index.d.ts +2 -0
- package/dist/agent-session/index.d.ts.map +1 -0
- package/dist/{document-templates/lib → agent-session}/index.js +1 -2
- package/dist/agent-session/index.js.map +1 -0
- package/dist/agent-session/lib/lifecycle.d.ts +40 -0
- package/dist/agent-session/lib/lifecycle.d.ts.map +1 -0
- package/dist/agent-session/lib/lifecycle.js +73 -0
- package/dist/agent-session/lib/lifecycle.js.map +1 -0
- package/dist/agent-workspace/awp-spec.json +1 -1
- package/dist/agent-workspace/lib/workspace-layout.d.ts +0 -1
- package/dist/agent-workspace/lib/workspace-layout.d.ts.map +1 -1
- package/dist/agent-workspace/lib/workspace-layout.js +1 -6
- package/dist/agent-workspace/lib/workspace-layout.js.map +1 -1
- package/dist/biome/index.d.ts +0 -1
- package/dist/biome/index.d.ts.map +1 -1
- package/dist/biome/index.js +0 -1
- package/dist/biome/index.js.map +1 -1
- package/dist/biome/lib/biome-manifest.d.ts +12 -22
- package/dist/biome/lib/biome-manifest.d.ts.map +1 -1
- package/dist/biome/lib/biome-manifest.js +5 -27
- package/dist/biome/lib/biome-manifest.js.map +1 -1
- package/dist/biome/lib/biome-origin.d.ts.map +1 -1
- package/dist/biome/lib/biome-origin.js.map +1 -1
- package/dist/contribution/index.d.ts +1 -0
- package/dist/contribution/index.d.ts.map +1 -1
- package/dist/contribution/index.js +1 -0
- package/dist/contribution/index.js.map +1 -1
- package/dist/contribution/lib/sync.d.ts +75 -0
- package/dist/contribution/lib/sync.d.ts.map +1 -0
- package/dist/contribution/lib/sync.js +45 -0
- package/dist/contribution/lib/sync.js.map +1 -0
- package/dist/distribution/lib/distribution-lock.d.ts +2 -1
- package/dist/distribution/lib/distribution-lock.d.ts.map +1 -1
- package/dist/distribution/lib/distribution-lock.js +2 -1
- package/dist/distribution/lib/distribution-lock.js.map +1 -1
- package/dist/distribution/lib/distribution.d.ts +4 -2
- package/dist/distribution/lib/distribution.d.ts.map +1 -1
- package/dist/distribution/lib/distribution.js +6 -2
- package/dist/distribution/lib/distribution.js.map +1 -1
- package/dist/execution-context/lib/execution-context.d.ts.map +1 -1
- package/dist/execution-context/lib/execution-context.js.map +1 -1
- package/dist/execution-environment/lib/execution-environment.d.ts +0 -1
- package/dist/execution-environment/lib/execution-environment.d.ts.map +1 -1
- package/dist/execution-environment/lib/execution-environment.js +1 -2
- package/dist/execution-environment/lib/execution-environment.js.map +1 -1
- package/dist/object/lib/xema-object-kind.d.ts +0 -1
- package/dist/object/lib/xema-object-kind.d.ts.map +1 -1
- package/dist/object/lib/xema-object-kind.js +0 -1
- package/dist/object/lib/xema-object-kind.js.map +1 -1
- package/dist/object/lib/xema-object-ref.d.ts.map +1 -1
- package/dist/object/lib/xema-object-ref.js +20 -1
- package/dist/object/lib/xema-object-ref.js.map +1 -1
- package/dist/reference-resolution/lib/reference-resolution.d.ts.map +1 -1
- package/dist/reference-resolution/lib/reference-resolution.js.map +1 -1
- package/dist/resource/lib/resource-managed-by.d.ts +2 -0
- package/dist/resource/lib/resource-managed-by.d.ts.map +1 -1
- package/dist/resource/lib/resource-managed-by.js +2 -0
- package/dist/resource/lib/resource-managed-by.js.map +1 -1
- package/dist/runner/index.d.ts +0 -1
- package/dist/runner/index.d.ts.map +1 -1
- package/dist/runner/index.js +0 -1
- package/dist/runner/index.js.map +1 -1
- package/dist/runner-input-hash/index.d.ts +2 -0
- package/dist/runner-input-hash/index.d.ts.map +1 -0
- package/dist/{document-themes/lib → runner-input-hash}/index.js +1 -2
- package/dist/runner-input-hash/index.js.map +1 -0
- package/dist/runner-input-hash/lib/input-hash.d.ts.map +1 -0
- package/dist/runner-input-hash/lib/input-hash.js.map +1 -0
- package/dist/search-source/lib/search-replay.d.ts +0 -1
- package/dist/search-source/lib/search-replay.d.ts.map +1 -1
- package/dist/search-source/lib/search-replay.js +0 -5
- package/dist/search-source/lib/search-replay.js.map +1 -1
- package/dist/service-registry/lib/service-names.generated.d.ts +3 -0
- package/dist/service-registry/lib/service-names.generated.d.ts.map +1 -1
- package/dist/service-registry/lib/service-names.generated.js +3 -0
- package/dist/service-registry/lib/service-names.generated.js.map +1 -1
- package/dist/workflow/index.d.ts +0 -2
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +0 -2
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/lib/catalog-taxonomies.d.ts +0 -1
- package/dist/workflow/lib/catalog-taxonomies.d.ts.map +1 -1
- package/dist/workflow/lib/catalog-taxonomies.js +9 -12
- package/dist/workflow/lib/catalog-taxonomies.js.map +1 -1
- package/dist/workflow/lib/enums.d.ts +0 -7
- package/dist/workflow/lib/enums.d.ts.map +1 -1
- package/dist/workflow/lib/enums.js +1 -14
- package/dist/workflow/lib/enums.js.map +1 -1
- package/dist/workflow/lib/model-ref.d.ts.map +1 -1
- package/dist/workflow/lib/model-ref.js.map +1 -1
- package/dist/workflow/lib/mount-plan.d.ts.map +1 -1
- package/dist/workspace-storage/index.d.ts +0 -1
- package/dist/workspace-storage/index.d.ts.map +1 -1
- package/dist/workspace-storage/index.js +0 -1
- package/dist/workspace-storage/index.js.map +1 -1
- package/dist/workspace-storage/lib/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agent-composition/lib/agent.ts +3 -2
- package/src/agent-session/index.ts +1 -0
- package/src/agent-session/lib/lifecycle.ts +156 -0
- package/src/agent-workspace/lib/workspace-layout.ts +0 -13
- package/src/biome/index.ts +0 -1
- package/src/biome/lib/biome-manifest.ts +11 -52
- package/src/biome/lib/biome-origin.ts +4 -3
- package/src/contribution/index.ts +1 -0
- package/src/contribution/lib/sync.ts +132 -0
- package/src/distribution/lib/distribution-lock.ts +6 -2
- package/src/distribution/lib/distribution.ts +22 -3
- package/src/execution-context/lib/execution-context.ts +4 -7
- package/src/execution-environment/lib/execution-environment.ts +4 -7
- package/src/object/lib/xema-object-kind.ts +2 -2
- package/src/object/lib/xema-object-ref.ts +21 -1
- package/src/policy/lib/obligations.ts +5 -5
- package/src/reference-resolution/lib/reference-resolution.ts +4 -2
- package/src/resource/lib/resource-managed-by.ts +15 -2
- package/src/runner/index.ts +0 -1
- package/src/runner-input-hash/index.ts +1 -0
- package/src/{runner → runner-input-hash}/lib/input-hash.ts +7 -0
- package/src/search-source/lib/search-replay.ts +0 -10
- package/src/service-registry/lib/service-names.generated.ts +3 -0
- package/src/space/lib/skill-mirror-path.ts +2 -2
- package/src/workflow/index.ts +0 -2
- package/src/workflow/lib/catalog-taxonomies.ts +21 -15
- package/src/workflow/lib/enums.ts +0 -20
- package/src/workflow/lib/model-ref.ts +5 -6
- package/src/workflow/lib/mount-plan.ts +0 -1
- package/src/workspace-storage/index.ts +0 -1
- package/src/workspace-storage/lib/types.ts +11 -5
- package/dist/agent-composition/lib/composition-limits-schema.d.ts +0 -4
- package/dist/agent-composition/lib/composition-limits-schema.d.ts.map +0 -1
- package/dist/agent-composition/lib/composition-limits-schema.js +0 -13
- package/dist/agent-composition/lib/composition-limits-schema.js.map +0 -1
- package/dist/agent-composition/lib/composition-workspace.d.ts +0 -37
- package/dist/agent-composition/lib/composition-workspace.d.ts.map +0 -1
- package/dist/agent-composition/lib/composition-workspace.js +0 -9
- package/dist/agent-composition/lib/composition-workspace.js.map +0 -1
- package/dist/agent-composition/lib/composition.d.ts +0 -65
- package/dist/agent-composition/lib/composition.d.ts.map +0 -1
- package/dist/agent-composition/lib/composition.js +0 -18
- package/dist/agent-composition/lib/composition.js.map +0 -1
- package/dist/agent-workspace/lib/awp-v1.d.ts +0 -15
- package/dist/agent-workspace/lib/awp-v1.d.ts.map +0 -1
- package/dist/agent-workspace/lib/awp-v1.js +0 -197
- package/dist/agent-workspace/lib/awp-v1.js.map +0 -1
- package/dist/biome/lib/biome-api.d.ts +0 -12
- package/dist/biome/lib/biome-api.d.ts.map +0 -1
- package/dist/biome/lib/biome-api.js +0 -14
- package/dist/biome/lib/biome-api.js.map +0 -1
- package/dist/document-templates/lib/index.d.ts +0 -3
- package/dist/document-templates/lib/index.d.ts.map +0 -1
- package/dist/document-templates/lib/index.js.map +0 -1
- package/dist/document-themes/lib/index.d.ts +0 -3
- package/dist/document-themes/lib/index.d.ts.map +0 -1
- package/dist/document-themes/lib/index.js.map +0 -1
- package/dist/runner/lib/input-hash.d.ts.map +0 -1
- package/dist/runner/lib/input-hash.js.map +0 -1
- package/dist/workflow/lib/sampling-profiles.d.ts +0 -18
- package/dist/workflow/lib/sampling-profiles.d.ts.map +0 -1
- package/dist/workflow/lib/sampling-profiles.js +0 -56
- package/dist/workflow/lib/sampling-profiles.js.map +0 -1
- package/dist/workflow/lib/workflow-stage.d.ts +0 -11
- package/dist/workflow/lib/workflow-stage.d.ts.map +0 -1
- package/dist/workflow/lib/workflow-stage.js +0 -28
- package/dist/workflow/lib/workflow-stage.js.map +0 -1
- package/dist/workspace-storage/lib/schemas.d.ts +0 -56
- package/dist/workspace-storage/lib/schemas.d.ts.map +0 -1
- package/dist/workspace-storage/lib/schemas.js +0 -59
- package/dist/workspace-storage/lib/schemas.js.map +0 -1
- package/src/biome/lib/biome-api.ts +0 -33
- package/src/document-templates/lib/index.ts +0 -2
- package/src/document-themes/lib/index.ts +0 -2
- package/src/workflow/lib/sampling-profiles.ts +0 -153
- package/src/workflow/lib/workflow-stage.ts +0 -89
- package/src/workspace-storage/lib/schemas.ts +0 -75
- /package/dist/{runner → runner-input-hash}/lib/input-hash.d.ts +0 -0
- /package/dist/{runner → runner-input-hash}/lib/input-hash.js +0 -0
|
@@ -19,8 +19,8 @@ export enum XemaObjectKind {
|
|
|
19
19
|
ExternalSubject = 'external-subject',
|
|
20
20
|
DelegatedSession = 'delegated-session',
|
|
21
21
|
|
|
22
|
-
// Agent runtime primitives
|
|
23
|
-
AgentKernel
|
|
22
|
+
// Agent runtime primitives. A "kernel" is just an Agent with no subagents —
|
|
23
|
+
// there is no separate AgentKernel object kind (unified-Agent model).
|
|
24
24
|
Agent = 'agent',
|
|
25
25
|
Skill = 'skill',
|
|
26
26
|
Tool = 'tool',
|
|
@@ -106,10 +106,30 @@ function parseScope(segments: string[], ref: string): ScopeParse {
|
|
|
106
106
|
consumed: 2,
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
+
case 'sessions': {
|
|
110
|
+
const sessionId = requireSegment(segments, 1, ref, 'sessionId');
|
|
111
|
+
return {
|
|
112
|
+
scope: { tier: SpaceKind.Session, sessionId },
|
|
113
|
+
consumed: 2,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
109
116
|
case 'orgs': {
|
|
110
117
|
const orgId = requireSegment(segments, 1, ref, 'orgId');
|
|
111
118
|
if (segments.length >= 4 && segments[2] === 'projects') {
|
|
112
119
|
const projectId = requireSegment(segments, 3, ref, 'projectId');
|
|
120
|
+
// …/projects/<p>/apps/<a> — the App tier (most specific under a project).
|
|
121
|
+
if (segments.length >= 6 && segments[4] === 'apps') {
|
|
122
|
+
const appId = requireSegment(segments, 5, ref, 'appId');
|
|
123
|
+
return {
|
|
124
|
+
scope: {
|
|
125
|
+
tier: SpaceKind.App,
|
|
126
|
+
orgId,
|
|
127
|
+
projectId,
|
|
128
|
+
appId,
|
|
129
|
+
},
|
|
130
|
+
consumed: 6,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
113
133
|
return {
|
|
114
134
|
scope: {
|
|
115
135
|
tier: SpaceKind.Project,
|
|
@@ -127,7 +147,7 @@ function parseScope(segments: string[], ref: string): ScopeParse {
|
|
|
127
147
|
default:
|
|
128
148
|
throw new XemaObjectRefParseError(
|
|
129
149
|
ref,
|
|
130
|
-
`unknown scope head "${head}" (expected one of: system, biomes, orgs, users)`,
|
|
150
|
+
`unknown scope head "${head}" (expected one of: system, biomes, orgs, users, sessions)`,
|
|
131
151
|
);
|
|
132
152
|
}
|
|
133
153
|
}
|
|
@@ -36,11 +36,11 @@ export const PolicyObligationKindSchema = z.nativeEnum(PolicyObligationKind);
|
|
|
36
36
|
* (`require-runner-kind`) and by `RouteHint.preferredRunnerKind` (plan
|
|
37
37
|
* v4.3 §2 / §A.4).
|
|
38
38
|
*
|
|
39
|
-
* This is the
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* (
|
|
43
|
-
*
|
|
39
|
+
* This is the canonical `RunnerKind` — the policy decision layer is its
|
|
40
|
+
* primary author (policy selects on it to route an invocation), so it lives
|
|
41
|
+
* in the `policy` surface. The `runner` surface re-exports it
|
|
42
|
+
* (`runner/lib/runner-kind.ts`) so runner-side consumers get a single source
|
|
43
|
+
* of truth with no second declaration to drift against.
|
|
44
44
|
*/
|
|
45
45
|
export enum RunnerKind {
|
|
46
46
|
Local = 'local',
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
2
2
|
// ── Reference Resolution — graceful-degradation decision (DBM.1) ──
|
|
3
3
|
//
|
|
4
|
-
// The
|
|
4
|
+
// The shared contract a resolver SHOULD use when it walks a definition's
|
|
5
5
|
// declared references (an Agent node's `agentRef`, a skill's sub-skill, an
|
|
6
6
|
// action's capability, a workflow's `uses:`) and asks "is this reference
|
|
7
|
-
// available right now, and what do I do if it isn't?".
|
|
7
|
+
// available right now, and what do I do if it isn't?". This is the Layer-0
|
|
8
|
+
// vocabulary for DBM.1; the per-resolver wiring is rolled out incrementally,
|
|
9
|
+
// so not every resolver consumes it yet.
|
|
8
10
|
//
|
|
9
11
|
// It exists because of DYNAMIC BIOME MODULARITY: a definition authored while
|
|
10
12
|
// biome X was installed keeps referencing X's contributions after X is
|
|
@@ -4,10 +4,21 @@ import { z } from 'zod';
|
|
|
4
4
|
* `ResourceManagedBy` — the ownership marker stamped on every provisionable
|
|
5
5
|
* resource row. This single concept powers three behaviors with one switch:
|
|
6
6
|
*
|
|
7
|
-
* - `Seeder` — owned by a boot/event reconciler
|
|
8
|
-
* installed web biomes
|
|
7
|
+
* - `Seeder` — owned by a boot/event reconciler that is NOT a biome-bundle
|
|
8
|
+
* push (e.g. portals derived from installed web biomes, or genuine
|
|
9
|
+
* package/in-service seeds such as `@xemahq/system-skills` and
|
|
10
|
+
* `INITIAL_CAPABILITY_SEED`). The reconciler may create/update/retire these.
|
|
9
11
|
* Retire-removed deletes ONLY `Seeder`-owned rows whose `managedKey` no
|
|
10
12
|
* longer appears in the desired set.
|
|
13
|
+
* - `BiomeContributed` — owned by the biome-host contribution-sync push: a
|
|
14
|
+
* biome bundle's contributions (agents, skills, specs, …) materialized into
|
|
15
|
+
* an owning registry over HTTP at biome lifecycle time. Pruned biome-scoped
|
|
16
|
+
* (`owner.type=biome`, `owner.id=biomeId`) when a biome upgrade drops an item
|
|
17
|
+
* or the biome leaves the platform — NEVER on per-org/project enable/disable.
|
|
18
|
+
* - `RuntimeRegistered` — self-registered by a runtime service at boot (the
|
|
19
|
+
* `@XemaCapability` auto-register path: a service publishing its OWN
|
|
20
|
+
* capabilities). Owner is `owner.type=runtime_service`, `owner.id=serviceName`;
|
|
21
|
+
* its prune scope is the service, never a biome's content.
|
|
11
22
|
* - `Iac` — owned by a declarative source (Terraform / `xema.yaml`).
|
|
12
23
|
* Declared-state-wins: `plan` surfaces drift, `apply` reconciles back. No
|
|
13
24
|
* reconciler touches a row it does not own.
|
|
@@ -23,6 +34,8 @@ export enum ResourceManagedBy {
|
|
|
23
34
|
Ui = 'ui',
|
|
24
35
|
Iac = 'iac',
|
|
25
36
|
Seeder = 'seeder',
|
|
37
|
+
BiomeContributed = 'biome_contributed',
|
|
38
|
+
RuntimeRegistered = 'runtime_registered',
|
|
26
39
|
System = 'system',
|
|
27
40
|
}
|
|
28
41
|
|
package/src/runner/index.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/input-hash';
|
|
@@ -24,6 +24,13 @@ import { createHash } from 'node:crypto';
|
|
|
24
24
|
* - arrays preserve order;
|
|
25
25
|
* - non-JSON values (`bigint`, `function`, `symbol`, non-finite numbers)
|
|
26
26
|
* are rejected — capability input is JSON, never a host object.
|
|
27
|
+
*
|
|
28
|
+
* NOTE: this is the ONE module in `@xemahq/kernel-contracts` that depends on
|
|
29
|
+
* a Node built-in (`node:crypto`). It lives in its own `runner-input-hash`
|
|
30
|
+
* subpath — separate from the `runner` contract barrel — so the rest of the
|
|
31
|
+
* package stays isomorphic and browser-bundleable. Server-only consumers
|
|
32
|
+
* (router gateway, runner verifier, kernel-server) import it from
|
|
33
|
+
* `@xemahq/kernel-contracts/runner-input-hash`.
|
|
27
34
|
*/
|
|
28
35
|
export function canonicalCapabilityInputHash(input: unknown): string {
|
|
29
36
|
const canonical = canonicalize(input === undefined ? {} : input);
|
|
@@ -47,16 +47,6 @@ export function isSearchReplayCapabilityRef(ref: string): boolean {
|
|
|
47
47
|
return SEARCH_REPLAY_REF_REGEX.test(ref);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* Extract the `sourceKey` (domain segment) from a replay capability ref, or
|
|
52
|
-
* `null` when `ref` is not a replay ref. Used by the capability-router to map
|
|
53
|
-
* a replay ref to the owning source's HTTP endpoint.
|
|
54
|
-
*/
|
|
55
|
-
export function searchSourceKeyFromReplayRef(ref: string): string | null {
|
|
56
|
-
const match = SEARCH_REPLAY_REF_REGEX.exec(ref);
|
|
57
|
-
return match?.[1] ?? null;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
50
|
/**
|
|
61
51
|
* Backfill request search sends to a source's replay capability (via
|
|
62
52
|
* capability-router — NOT a direct client call). Paginated so a large source
|
|
@@ -25,8 +25,10 @@ export const ServiceName = {
|
|
|
25
25
|
BIOME_HOST_API: 'biome-host-api',
|
|
26
26
|
CAPABILITY_REGISTRY_API: 'capability-registry-api',
|
|
27
27
|
CATALOG_API: 'catalog-api',
|
|
28
|
+
CHANNEL_GATEWAY_API: 'channel-gateway-api',
|
|
28
29
|
CONNECTOR_GATEWAY_API: 'connector-gateway-api',
|
|
29
30
|
CONTAINER_REGISTRY_API: 'container-registry-api',
|
|
31
|
+
CONTROL_PLANE_API: 'control-plane-api',
|
|
30
32
|
CREDENTIAL_BROKER_API: 'credential-broker-api',
|
|
31
33
|
DELIVERABLE_SPECS_API: 'deliverable-specs-api',
|
|
32
34
|
DESIGN_SYSTEM_BUILDER_API: 'design-system-builder-api',
|
|
@@ -53,6 +55,7 @@ export const ServiceName = {
|
|
|
53
55
|
WORKFLOW_RUNTIME_WORKER: 'workflow-runtime-worker',
|
|
54
56
|
WORKLOAD_RUNTIME_API: 'workload-runtime-api',
|
|
55
57
|
WORKSPACE_GIT_API: 'workspace-git-api',
|
|
58
|
+
WORKSPACE_MATERIALIZATION_API: 'workspace-materialization-api',
|
|
56
59
|
WORKSPACE_ORCHESTRATOR_API: 'workspace-orchestrator-api',
|
|
57
60
|
WORKSPACE_PROXY: 'workspace-proxy',
|
|
58
61
|
WORKSPACE_STORAGE_POOL_API: 'workspace-storage-pool-api',
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
//
|
|
8
8
|
// Runtime-NEUTRAL: a skill bundle (SKILL.md + resources) is identical across
|
|
9
9
|
// every runtime; only WHERE it is finally placed inside the workspace differs
|
|
10
|
-
// (
|
|
10
|
+
// (each runtime mounts skills under its own per-runtime skills subtree), and
|
|
11
11
|
// that placement is owned by the worker's RuntimeLayout — NOT by this path.
|
|
12
12
|
// This module describes the STORAGE location of the pre-staged bytes only, so
|
|
13
|
-
// it works for
|
|
13
|
+
// it works for every runtime adapter alike, present and future.
|
|
14
14
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
15
15
|
import { SpaceKind, type SpaceRef } from './space';
|
|
16
16
|
|
package/src/workflow/index.ts
CHANGED
|
@@ -38,8 +38,6 @@ export * from './lib/domain-tag';
|
|
|
38
38
|
// hierarchy, and gate-reviewer map were relocated to the software-dev biome
|
|
39
39
|
// (`biomes/platform/software-dev/workflow-config/phase-config.json`) — the
|
|
40
40
|
// kernel carries no domain phase enum.
|
|
41
|
-
export * from './lib/workflow-stage';
|
|
42
41
|
export * from './lib/phase-report';
|
|
43
42
|
export * from './lib/work-item-payloads';
|
|
44
|
-
export * from './lib/sampling-profiles';
|
|
45
43
|
export * from './lib/canonical-concepts';
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
// Resource types use "group/name" notation (e.g. "database/postgresql").
|
|
15
15
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
16
16
|
|
|
17
|
+
import { COMPLEXITY_TIERS, type ComplexityTier } from './phase-report';
|
|
18
|
+
|
|
17
19
|
// ── Common Interfaces ──────────────────────────────────────────────────
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -129,42 +131,46 @@ export const ITEM_TYPE_VALUES = ITEM_TYPE_CATALOG.map((t) => t.value);
|
|
|
129
131
|
export type ItemType = (typeof ITEM_TYPE_VALUES)[number];
|
|
130
132
|
|
|
131
133
|
// ── Complexity Tiers ───────────────────────────────────────────────────
|
|
132
|
-
// Used by: pipeline runs, doc-template matching, agent model selection
|
|
133
|
-
//
|
|
134
|
-
//
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
// Used by: pipeline runs, doc-template matching, agent model selection.
|
|
135
|
+
//
|
|
136
|
+
// SINGLE SOURCE OF TRUTH for the value set is `COMPLEXITY_TIERS` /
|
|
137
|
+
// `ComplexityTier` in ./phase-report. This catalog only layers presentation
|
|
138
|
+
// metadata (label/hint/color/sortOrder) — keyed by `ComplexityTier`, so adding
|
|
139
|
+
// or removing a tier in phase-report makes this a COMPILE error rather than a
|
|
140
|
+
// silent drift between the two definitions.
|
|
141
|
+
const COMPLEXITY_PRESENTATION: Record<
|
|
142
|
+
ComplexityTier,
|
|
143
|
+
Omit<CatalogEntry, 'value'>
|
|
144
|
+
> = {
|
|
145
|
+
simple: {
|
|
139
146
|
label: 'Simple',
|
|
140
147
|
hint: 'Single service, few files, straightforward logic. ~1-3 day effort.',
|
|
141
148
|
color: 'bg-green-100 text-green-700',
|
|
142
149
|
sortOrder: 0,
|
|
143
150
|
},
|
|
144
|
-
{
|
|
145
|
-
value: 'standard',
|
|
151
|
+
standard: {
|
|
146
152
|
label: 'Standard',
|
|
147
153
|
hint: 'Multi-file changes within 1-2 services. Moderate complexity. ~3-7 day effort.',
|
|
148
154
|
color: 'bg-blue-100 text-blue-700',
|
|
149
155
|
sortOrder: 1,
|
|
150
156
|
},
|
|
151
|
-
{
|
|
152
|
-
value: 'complex',
|
|
157
|
+
complex: {
|
|
153
158
|
label: 'Complex',
|
|
154
159
|
hint: 'Multi-service changes, new APIs, database migrations. ~1-3 week effort.',
|
|
155
160
|
color: 'bg-orange-100 text-orange-700',
|
|
156
161
|
sortOrder: 2,
|
|
157
162
|
},
|
|
158
|
-
{
|
|
159
|
-
value: 'enterprise',
|
|
163
|
+
enterprise: {
|
|
160
164
|
label: 'Enterprise',
|
|
161
165
|
hint: 'Cross-system integration, new microservices, major architectural changes. ~1+ month effort.',
|
|
162
166
|
color: 'bg-red-100 text-red-700',
|
|
163
167
|
sortOrder: 3,
|
|
164
168
|
},
|
|
165
|
-
|
|
169
|
+
};
|
|
166
170
|
|
|
167
|
-
export const
|
|
171
|
+
export const COMPLEXITY_CATALOG: CatalogEntry[] = COMPLEXITY_TIERS.map(
|
|
172
|
+
(value) => ({ value, ...COMPLEXITY_PRESENTATION[value] }),
|
|
173
|
+
);
|
|
168
174
|
|
|
169
175
|
// ── Status Definitions ─────────────────────────────────────────────────
|
|
170
176
|
// Used by: backlog items
|
|
@@ -175,14 +175,6 @@ export enum JobRunStatus {
|
|
|
175
175
|
SKIPPED = 'skipped',
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
/** Terminal states — a job in one of these states accepts no further transitions. */
|
|
179
|
-
export const TERMINAL_JOB_RUN_STATUSES: readonly JobRunStatus[] = [
|
|
180
|
-
JobRunStatus.SUCCEEDED,
|
|
181
|
-
JobRunStatus.FAILED,
|
|
182
|
-
JobRunStatus.CANCELLED,
|
|
183
|
-
JobRunStatus.SKIPPED,
|
|
184
|
-
] as const;
|
|
185
|
-
|
|
186
178
|
/** Lifecycle states of a step run (single action invocation) inside a job. */
|
|
187
179
|
export enum StepRunStatus {
|
|
188
180
|
PENDING = 'pending',
|
|
@@ -270,18 +262,6 @@ export enum BuiltInActionId {
|
|
|
270
262
|
RUN_MIGRATIONS = 'xema/run-migrations',
|
|
271
263
|
}
|
|
272
264
|
|
|
273
|
-
/** Revision semantics exposed to the UI. Maps 1:1 to the 4 revision UIs in the pipeline redesign. */
|
|
274
|
-
export enum RevisionKind {
|
|
275
|
-
/** Deterministic automatic retry under a declared retry policy. */
|
|
276
|
-
AUTO_RETRY = 'auto-retry',
|
|
277
|
-
/** Operator override (extendRetries / forceApprove / rejectRun). */
|
|
278
|
-
MANUAL_OVERRIDE = 'manual-override',
|
|
279
|
-
/** Checkpoint revise & resume (reviseAndResume Update). */
|
|
280
|
-
CHECKPOINT_REVISE = 'checkpoint-revise',
|
|
281
|
-
/** Redo from a prior step (resetWorkflowExecution). */
|
|
282
|
-
REDO_FROM_STEP = 'redo-from-step',
|
|
283
|
-
}
|
|
284
|
-
|
|
285
265
|
/** Snapshot storage kinds. Extended when a new store is added. */
|
|
286
266
|
export enum SnapshotStoreKind {
|
|
287
267
|
ARTIFACT_STORE = 'artifact-store',
|
|
@@ -33,12 +33,11 @@ import type { PermissionMap } from '../../agent-permission';
|
|
|
33
33
|
* Mirrors `biomes/agent-runtime/api/llm-registry-api`'s Prisma `ModelClass` column.
|
|
34
34
|
*
|
|
35
35
|
* IMPORTANT — the one allowed copy is in `@xemahq/biome-sdk/builder`'s
|
|
36
|
-
* `contribution-schemas.ts`,
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* fast if they drift.
|
|
36
|
+
* `contribution-schemas.ts`, kept inline so the public biome-authoring SDK
|
|
37
|
+
* exposes a self-contained Zod schema surface. That copy carries a comment
|
|
38
|
+
* marker; keep both lists value-identical. The vitest at
|
|
39
|
+
* `packages/ui/biome-builder/tests/model-class-parity.spec.ts` fails fast if
|
|
40
|
+
* they drift.
|
|
42
41
|
*/
|
|
43
42
|
export enum ModelClass {
|
|
44
43
|
CODING = 'coding',
|
|
@@ -108,9 +108,12 @@ export interface StorageDriver {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
112
|
-
* the
|
|
113
|
-
*
|
|
111
|
+
* In-process row shape of a managed pool — the storage-pool service's Prisma
|
|
112
|
+
* row + the allocator/driver work against this directly, so byte counts are
|
|
113
|
+
* `bigint` (Prisma `BigInt` columns; the service does `>`/`<=` quota
|
|
114
|
+
* arithmetic on them). It is NOT a wire DTO: the service projects it to a
|
|
115
|
+
* JSON-safe decimal-string DTO at its HTTP boundary (`capacityBytes.toString()`).
|
|
116
|
+
* The browser/cross-service callers consume that string DTO, never this type.
|
|
114
117
|
*/
|
|
115
118
|
export interface StoragePool {
|
|
116
119
|
readonly id: string;
|
|
@@ -126,8 +129,11 @@ export interface StoragePool {
|
|
|
126
129
|
}
|
|
127
130
|
|
|
128
131
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
132
|
+
* In-process row shape of a single allocation (storage-pool service Prisma
|
|
133
|
+
* row). Like {@link StoragePool}, `bytesUsed` is a `bigint` because the
|
|
134
|
+
* service computes against it; the HTTP boundary projects it to a decimal
|
|
135
|
+
* string. NOT a wire DTO. `bytesUsed` is a best-effort snapshot — callers
|
|
136
|
+
* must not gate hard limits on this value alone.
|
|
131
137
|
*/
|
|
132
138
|
export interface StorageAllocation {
|
|
133
139
|
readonly id: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composition-limits-schema.d.ts","sourceRoot":"","sources":["../../../src/agent-composition/lib/composition-limits-schema.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AASjD,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAO1C,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentLimitsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.AgentLimitsSchema = zod_1.z
|
|
6
|
-
.object({
|
|
7
|
-
maxDepth: zod_1.z.number().int().positive(),
|
|
8
|
-
maxFanout: zod_1.z.number().int().positive(),
|
|
9
|
-
maxSpawns: zod_1.z.number().int().positive(),
|
|
10
|
-
tokenBudget: zod_1.z.number().int().positive().optional(),
|
|
11
|
-
})
|
|
12
|
-
.strict();
|
|
13
|
-
//# sourceMappingURL=composition-limits-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composition-limits-schema.js","sourceRoot":"","sources":["../../../src/agent-composition/lib/composition-limits-schema.ts"],"names":[],"mappings":";;;AAmBA,6BAAwB;AAWX,QAAA,iBAAiB,GAA2B,OAAC;KACvD,MAAM,CAAC;IACN,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACpD,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { WorkingFileBinding, WorkspaceEnvVar, WorkspacePersistenceSpec } from '../../agent-workspace';
|
|
2
|
-
import type { AgentRunRole, CompiledManifestCredential, CompiledManifestPermissions, OutputSurfaceKind } from '../../workflow';
|
|
3
|
-
export type { WorkingFileBinding, WorkspaceEnvVar, WorkspacePersistenceSpec, } from '../../agent-workspace';
|
|
4
|
-
export declare enum AgentOutputSurfaceMode {
|
|
5
|
-
Single = "single",
|
|
6
|
-
Multi = "multi"
|
|
7
|
-
}
|
|
8
|
-
export interface AgentOutputSurface {
|
|
9
|
-
readonly kind: OutputSurfaceKind;
|
|
10
|
-
readonly port?: number;
|
|
11
|
-
readonly healthPath?: string;
|
|
12
|
-
readonly autoOpen?: boolean;
|
|
13
|
-
readonly mode?: AgentOutputSurfaceMode;
|
|
14
|
-
readonly root?: string;
|
|
15
|
-
readonly defaultDocument?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface AgentRunConfig {
|
|
18
|
-
readonly stage: string;
|
|
19
|
-
readonly role: AgentRunRole;
|
|
20
|
-
readonly deliverableSpecRef?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface AgentMountLayout {
|
|
23
|
-
readonly mounts: Readonly<Record<string, unknown>>;
|
|
24
|
-
readonly agentRunConfig: AgentRunConfig;
|
|
25
|
-
readonly seedFiles: readonly Readonly<Record<string, unknown>>[];
|
|
26
|
-
readonly inputs: Readonly<Record<string, unknown>>;
|
|
27
|
-
}
|
|
28
|
-
export interface AgentWorkspaceConfig {
|
|
29
|
-
readonly persistence?: WorkspacePersistenceSpec;
|
|
30
|
-
readonly env?: readonly WorkspaceEnvVar[];
|
|
31
|
-
readonly outputSurface?: AgentOutputSurface;
|
|
32
|
-
readonly mountLayout?: AgentMountLayout;
|
|
33
|
-
readonly workingFiles?: readonly WorkingFileBinding[];
|
|
34
|
-
readonly credentials?: readonly CompiledManifestCredential[];
|
|
35
|
-
readonly permissions?: CompiledManifestPermissions;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=composition-workspace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composition-workspace.d.ts","sourceRoot":"","sources":["../../../src/agent-composition/lib/composition-workspace.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,YAAY,EACZ,0BAA0B,EAC1B,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAQ/B,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAsBD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAE5B,QAAQ,CAAC,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAMvC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAMvB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AAcD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CACtC;AA6BD,MAAM,WAAW,gBAAgB;IAO/B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAEnD,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAOxC,QAAQ,CAAC,SAAS,EAAE,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC;IAOjE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACpD;AAQD,MAAM,WAAW,oBAAoB;IAKnC,QAAQ,CAAC,WAAW,CAAC,EAAE,wBAAwB,CAAC;IAOhD,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IAK1C,QAAQ,CAAC,aAAa,CAAC,EAAE,kBAAkB,CAAC;IAQ5C,QAAQ,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAgBxC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAWtD,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,0BAA0B,EAAE,CAAC;IAW7D,QAAQ,CAAC,WAAW,CAAC,EAAE,2BAA2B,CAAC;CACpD"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentOutputSurfaceMode = void 0;
|
|
4
|
-
var AgentOutputSurfaceMode;
|
|
5
|
-
(function (AgentOutputSurfaceMode) {
|
|
6
|
-
AgentOutputSurfaceMode["Single"] = "single";
|
|
7
|
-
AgentOutputSurfaceMode["Multi"] = "multi";
|
|
8
|
-
})(AgentOutputSurfaceMode || (exports.AgentOutputSurfaceMode = AgentOutputSurfaceMode = {}));
|
|
9
|
-
//# sourceMappingURL=composition-workspace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composition-workspace.js","sourceRoot":"","sources":["../../../src/agent-composition/lib/composition-workspace.ts"],"names":[],"mappings":";;;AA6CA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,2CAAiB,CAAA;IACjB,yCAAe,CAAA;AACjB,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { ToolSelectionEntry } from '../../mcp-tool';
|
|
2
|
-
import type { NodeOverlayFragment } from '../../workflow';
|
|
3
|
-
import type { SkillRef } from '../../skill';
|
|
4
|
-
import type { BiomeAvailabilityScoped } from '../../biome-availability';
|
|
5
|
-
import type { CapabilityLayer } from './capability-layer';
|
|
6
|
-
import type { AgentWorkspaceConfig } from './composition-workspace';
|
|
7
|
-
export interface AgentKernelRef {
|
|
8
|
-
readonly slug: string;
|
|
9
|
-
readonly version?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare enum AgentSpace {
|
|
12
|
-
System = "system",
|
|
13
|
-
Biome = "biome",
|
|
14
|
-
Org = "org",
|
|
15
|
-
Project = "project",
|
|
16
|
-
User = "user"
|
|
17
|
-
}
|
|
18
|
-
export declare enum AgentLifecycle {
|
|
19
|
-
Draft = "draft",
|
|
20
|
-
Published = "published",
|
|
21
|
-
Archived = "archived"
|
|
22
|
-
}
|
|
23
|
-
export interface AgentLimits {
|
|
24
|
-
readonly maxDepth: number;
|
|
25
|
-
readonly maxFanout: number;
|
|
26
|
-
readonly maxSpawns: number;
|
|
27
|
-
readonly tokenBudget?: number | undefined;
|
|
28
|
-
}
|
|
29
|
-
export interface AgentNode extends NodeOverlayFragment, BiomeAvailabilityScoped {
|
|
30
|
-
readonly kernel: AgentKernelRef;
|
|
31
|
-
readonly alias?: string;
|
|
32
|
-
readonly skills: readonly SkillRef[];
|
|
33
|
-
readonly tools: readonly ToolSelectionEntry[];
|
|
34
|
-
readonly children: readonly AgentNode[];
|
|
35
|
-
readonly limits?: AgentLimits;
|
|
36
|
-
}
|
|
37
|
-
export interface Agent {
|
|
38
|
-
readonly slug: string;
|
|
39
|
-
readonly version: string;
|
|
40
|
-
readonly displayName: string;
|
|
41
|
-
readonly description?: string;
|
|
42
|
-
readonly scope: AgentSpace;
|
|
43
|
-
readonly lifecycle: AgentLifecycle;
|
|
44
|
-
readonly root: AgentNode;
|
|
45
|
-
readonly capability?: CapabilityLayer;
|
|
46
|
-
readonly workspace?: AgentWorkspaceConfig;
|
|
47
|
-
}
|
|
48
|
-
export interface ResolvedAgentNode extends NodeOverlayFragment, BiomeAvailabilityScoped {
|
|
49
|
-
readonly kernel: Required<AgentKernelRef>;
|
|
50
|
-
readonly alias?: string;
|
|
51
|
-
readonly skills: readonly SkillRef[];
|
|
52
|
-
readonly tools: readonly ToolSelectionEntry[];
|
|
53
|
-
readonly children: readonly ResolvedAgentNode[];
|
|
54
|
-
readonly limits?: AgentLimits;
|
|
55
|
-
}
|
|
56
|
-
export interface ResolvedAgent {
|
|
57
|
-
readonly slug: string;
|
|
58
|
-
readonly version: string;
|
|
59
|
-
readonly displayName: string;
|
|
60
|
-
readonly scope: AgentSpace;
|
|
61
|
-
readonly root: ResolvedAgentNode;
|
|
62
|
-
readonly capability: CapabilityLayer;
|
|
63
|
-
readonly workspace?: AgentWorkspaceConfig;
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=composition.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../../src/agent-composition/lib/composition.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAKpE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAOD,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAQD,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAwBD,MAAM,WAAW,WAAW;IAE1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAQ3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3C;AASD,MAAM,WAAW,SACf,SAAQ,mBAAmB,EACzB,uBAAuB;IAEzB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEhC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,CAAC;IAErC,QAAQ,CAAC,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAM9C,QAAQ,CAAC,QAAQ,EAAE,SAAS,SAAS,EAAE,CAAC;IAQxC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAKD,MAAM,WAAW,KAAK;IAEpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IAEnC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAEzB,QAAQ,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC;IAStC,QAAQ,CAAC,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAC3C;AAWD,MAAM,WAAW,iBACf,SAAQ,mBAAmB,EACzB,uBAAuB;IAEzB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,CAAC;IAErC,QAAQ,CAAC,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAM9C,QAAQ,CAAC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAQhD,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAMD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAE3B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAEjC,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;IAOrC,QAAQ,CAAC,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAC3C"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentLifecycle = exports.AgentSpace = void 0;
|
|
4
|
-
var AgentSpace;
|
|
5
|
-
(function (AgentSpace) {
|
|
6
|
-
AgentSpace["System"] = "system";
|
|
7
|
-
AgentSpace["Biome"] = "biome";
|
|
8
|
-
AgentSpace["Org"] = "org";
|
|
9
|
-
AgentSpace["Project"] = "project";
|
|
10
|
-
AgentSpace["User"] = "user";
|
|
11
|
-
})(AgentSpace || (exports.AgentSpace = AgentSpace = {}));
|
|
12
|
-
var AgentLifecycle;
|
|
13
|
-
(function (AgentLifecycle) {
|
|
14
|
-
AgentLifecycle["Draft"] = "draft";
|
|
15
|
-
AgentLifecycle["Published"] = "published";
|
|
16
|
-
AgentLifecycle["Archived"] = "archived";
|
|
17
|
-
})(AgentLifecycle || (exports.AgentLifecycle = AgentLifecycle = {}));
|
|
18
|
-
//# sourceMappingURL=composition.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composition.js","sourceRoot":"","sources":["../../../src/agent-composition/lib/composition.ts"],"names":[],"mappings":";;;AAoCA,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,iCAAmB,CAAA;IACnB,2BAAa,CAAA;AACf,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB;AAQD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GitPushBranchSuffix, GitPushConcurrencyMode, type WorkspaceSpec } from './workspace-spec';
|
|
2
|
-
export declare const AWP_V1_SPEC: WorkspaceSpec;
|
|
3
|
-
export declare function findSlot(spec: WorkspaceSpec, key: string): import("./workspace-spec").SlotDefinition | undefined;
|
|
4
|
-
export declare function isKnownSlotKey(spec: WorkspaceSpec, key: string): boolean;
|
|
5
|
-
export declare function listAlwaysOnSlotKeys(spec: WorkspaceSpec): readonly string[];
|
|
6
|
-
export declare function listTarballPersistedRelPaths(spec: WorkspaceSpec): readonly string[];
|
|
7
|
-
export interface ResolvedGitPushSlot {
|
|
8
|
-
readonly key: string;
|
|
9
|
-
readonly path: string;
|
|
10
|
-
readonly branchPrefix: string;
|
|
11
|
-
readonly branchSuffix: GitPushBranchSuffix;
|
|
12
|
-
readonly concurrencyMode: GitPushConcurrencyMode;
|
|
13
|
-
}
|
|
14
|
-
export declare function listGitPushPersistedSlots(spec: WorkspaceSpec): readonly ResolvedGitPushSlot[];
|
|
15
|
-
//# sourceMappingURL=awp-v1.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"awp-v1.d.ts","sourceRoot":"","sources":["../../../src/agent-workspace/lib/awp-v1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EAEtB,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAgB1B,eAAO,MAAM,WAAW,EAAE,aAwMzB,CAAC;AAMF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,yDAExD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAExE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS,MAAM,EAAE,CAE3E;AAQD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS,MAAM,EAAE,CAInF;AAQD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,QAAQ,CAAC,eAAe,EAAE,sBAAsB,CAAC;CAClD;AAOD,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,aAAa,GAClB,SAAS,mBAAmB,EAAE,CAgBhC"}
|