@xemahq/kernel-contracts 0.22.2 → 0.23.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-workspace/awp-spec.json +0 -1
- package/dist/agent-workspace/lib/workspace-layout.d.ts.map +1 -1
- package/dist/agent-workspace/lib/workspace-layout.js.map +1 -1
- package/dist/biome/lib/biome-manifest.d.ts +0 -8
- package/dist/biome/lib/biome-manifest.d.ts.map +1 -1
- package/dist/biome/lib/biome-manifest.js +4 -50
- package/dist/biome/lib/biome-manifest.js.map +1 -1
- package/dist/capability/lib/errors.d.ts.map +1 -1
- package/dist/capability/lib/errors.js.map +1 -1
- package/dist/capability/lib/meta-tool.d.ts.map +1 -1
- package/dist/capability/lib/meta-tool.js.map +1 -1
- package/dist/connector/index.d.ts +2 -0
- package/dist/connector/index.d.ts.map +1 -1
- package/dist/connector/index.js +2 -0
- package/dist/connector/index.js.map +1 -1
- package/dist/connector/lib/connector-descriptor.d.ts +13 -0
- package/dist/connector/lib/connector-descriptor.d.ts.map +1 -0
- package/dist/connector/lib/connector-descriptor.js +3 -0
- package/dist/connector/lib/connector-descriptor.js.map +1 -0
- package/dist/connector/lib/credential-kind.d.ts.map +1 -1
- package/dist/connector/lib/credential-kind.js.map +1 -1
- package/dist/connector/lib/filter-expr.js +6 -0
- package/dist/connector/lib/filter-expr.js.map +1 -1
- package/dist/connector/lib/provider-descriptor.d.ts +37 -0
- package/dist/connector/lib/provider-descriptor.d.ts.map +1 -0
- package/dist/connector/lib/provider-descriptor.js +26 -0
- package/dist/connector/lib/provider-descriptor.js.map +1 -0
- package/dist/contribution/lib/contribution-kind.d.ts.map +1 -1
- package/dist/contribution/lib/contribution-kind.js.map +1 -1
- package/dist/contribution/lib/contribution-source.d.ts.map +1 -1
- package/dist/contribution/lib/contribution-source.js.map +1 -1
- package/dist/contribution/lib/contribution.d.ts.map +1 -1
- package/dist/contribution/lib/contribution.js.map +1 -1
- package/dist/document-render/lib/render-enums.d.ts.map +1 -1
- package/dist/document-render/lib/render-enums.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/built-in-environments.d.ts.map +1 -1
- package/dist/execution-environment/lib/built-in-environments.js.map +1 -1
- package/dist/execution-environment/lib/execution-environment.d.ts.map +1 -1
- package/dist/execution-environment/lib/execution-environment.js +1 -1
- package/dist/execution-environment/lib/execution-environment.js.map +1 -1
- package/dist/inquiry/index.d.ts.map +1 -1
- package/dist/inquiry/index.js.map +1 -1
- package/dist/object/lib/object-lifecycle.d.ts.map +1 -1
- package/dist/object/lib/object-lifecycle.js.map +1 -1
- package/dist/policy/lib/obligations.d.ts.map +1 -1
- package/dist/policy/lib/obligations.js.map +1 -1
- package/dist/policy/lib/policy.d.ts +2 -1
- package/dist/policy/lib/policy.d.ts.map +1 -1
- package/dist/policy/lib/policy.js +1 -0
- package/dist/policy/lib/policy.js.map +1 -1
- package/dist/runner/lib/runner-registration.d.ts.map +1 -1
- package/dist/runner/lib/runner-registration.js.map +1 -1
- package/dist/service-registry/lib/service-names.generated.d.ts.map +1 -1
- package/dist/service-registry/lib/service-names.generated.js.map +1 -1
- package/dist/space/lib/space.d.ts.map +1 -1
- package/dist/space/lib/space.js.map +1 -1
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/lib/activity-outputs.d.ts.map +1 -1
- package/package.json +28 -19
- package/src/agent-composition/lib/agent-workspace-config.ts +3 -3
- package/src/agent-composition/lib/capability-layer.ts +2 -2
- package/src/agent-composition/lib/intrinsic-floor.ts +1 -1
- package/src/agent-session/lib/participant.ts +1 -1
- package/src/agent-workspace/lib/context-json.ts +1 -1
- package/src/agent-workspace/lib/mount-apply.ts +2 -2
- package/src/agent-workspace/lib/workspace-layout.ts +2 -4
- package/src/app-runtime/lib/app-client.ts +1 -1
- package/src/app-runtime/lib/app-lockfile.ts +2 -2
- package/src/app-runtime/lib/app.ts +4 -4
- package/src/app-runtime/lib/audience-policy.ts +2 -2
- package/src/app-runtime/lib/biome-install.ts +3 -3
- package/src/app-runtime/lib/branding-config.ts +1 -1
- package/src/app-runtime/lib/delegated-session.ts +1 -1
- package/src/app-runtime/lib/external-subject.ts +1 -1
- package/src/biome/lib/biome-capability-refs.ts +3 -3
- package/src/biome/lib/biome-engines.ts +2 -2
- package/src/biome/lib/biome-lifecycle-hooks.ts +1 -1
- package/src/biome/lib/biome-lifecycle.ts +3 -3
- package/src/biome/lib/biome-manifest.ts +68 -122
- package/src/biome/lib/biome-permissions.ts +2 -2
- package/src/biome/lib/biome-scope.ts +2 -2
- package/src/biome/lib/biome-trust-tier.ts +1 -1
- package/src/biome/lib/trust-tier-policies.ts +2 -2
- package/src/biome-availability/lib/biome-availability.ts +1 -1
- package/src/capability/lib/capability-contribution.ts +3 -3
- package/src/capability/lib/capability-grant.ts +5 -5
- package/src/capability/lib/capability-policy.ts +2 -2
- package/src/capability/lib/capability-ref.ts +4 -4
- package/src/capability/lib/errors.ts +4 -10
- package/src/capability/lib/meta-tool.ts +2 -5
- package/src/capability/lib/permission-profile.ts +7 -7
- package/src/capability/lib/shell-command-descriptor.ts +3 -3
- package/src/connector/index.ts +2 -0
- package/src/connector/lib/adapter-kind.ts +1 -1
- package/src/connector/lib/capability-refs.ts +1 -1
- package/src/connector/lib/connector-descriptor.ts +67 -0
- package/src/connector/lib/credential-kind.ts +3 -4
- package/src/connector/lib/envelope-schema.ts +2 -2
- package/src/connector/lib/filter-expr-validate.ts +1 -1
- package/src/connector/lib/filter-expr.ts +8 -0
- package/src/connector/lib/provider-descriptor.ts +181 -0
- package/src/contribution/lib/contribution-kind.ts +11 -12
- package/src/contribution/lib/contribution-source.ts +1 -2
- package/src/contribution/lib/contribution.ts +3 -6
- package/src/document-render/lib/render-enums.ts +1 -2
- package/src/execution-context/lib/caller.ts +2 -2
- package/src/execution-context/lib/execution-context.ts +12 -18
- package/src/execution-environment/lib/approval-rule.ts +2 -2
- package/src/execution-environment/lib/built-in-environments.ts +9 -11
- package/src/execution-environment/lib/execution-environment.ts +25 -26
- package/src/inquiry/index.ts +1 -2
- package/src/invocation/lib/invocation-mode.ts +1 -1
- package/src/invocation/lib/invocation-record.ts +1 -1
- package/src/invocation/lib/isolation-level.ts +1 -1
- package/src/kernel-state/lib/adapter-kind.ts +3 -3
- package/src/kernel-state/lib/kernel-state.ts +1 -1
- package/src/kernel-state/lib/key-grammar.ts +1 -1
- package/src/mcp-tool/lib/tool-selection.ts +1 -1
- package/src/object/lib/object-lifecycle.ts +1 -2
- package/src/object/lib/xema-object-kind.ts +1 -1
- package/src/object/lib/xema-object-ref.ts +2 -2
- package/src/org-database/lib/db-result-event.ts +3 -3
- package/src/policy/lib/obligations.ts +5 -6
- package/src/policy/lib/policy.ts +17 -8
- package/src/policy/lib/route-hints.ts +1 -1
- package/src/provisioning/index.ts +1 -1
- package/src/provisioning/lib/provisioning.ts +4 -4
- package/src/resource/lib/resource-ownership-contribution.ts +2 -2
- package/src/runner/lib/dispatch.ts +5 -5
- package/src/runner/lib/job-token.ts +2 -2
- package/src/runner/lib/runner-attestation.ts +2 -2
- package/src/runner/lib/runner-job.ts +2 -2
- package/src/runner/lib/runner-mode.ts +1 -1
- package/src/runner/lib/runner-plane.ts +2 -2
- package/src/runner/lib/runner-registration.ts +9 -10
- package/src/runner/lib/runner.ts +7 -7
- package/src/runner-input-hash/lib/input-hash.ts +2 -2
- package/src/service-registry/lib/service-descriptor.ts +1 -1
- package/src/service-registry/lib/service-names.generated.ts +1 -3
- package/src/space/lib/space-ref-parser.ts +1 -1
- package/src/space/lib/space.ts +4 -5
- package/src/widget/lib/chat-widget-envelope.ts +1 -1
- package/src/worker-runtime/lib/capabilities.ts +1 -1
- package/src/workflow/index.ts +2 -3
- package/src/workflow/lib/activity-outputs.ts +3 -4
- package/src/workflow/lib/agent-role.ts +5 -5
- package/src/workflow/lib/artifact-ref.ts +1 -1
- package/src/workflow/lib/compiled-run.ts +2 -2
- package/src/workflow/lib/compiled-workspace-manifest.ts +2 -2
- package/src/workflow/lib/enums.ts +4 -4
- package/src/workflow/lib/errors.ts +1 -1
- package/src/workflow/lib/model-ref.ts +1 -1
- package/src/workflow/lib/mount-plan.ts +1 -1
- package/src/workflow/lib/platform-task-queue.ts +3 -3
- package/src/workflow/lib/role-capability.ts +1 -1
- package/src/workflow/lib/run-progress.ts +2 -2
- package/src/workflow/lib/trigger-payload.ts +2 -2
- package/src/workflow/lib/variable-requirement.ts +1 -1
- package/src/workflow/lib/workspace-manifest-enums.ts +1 -1
- package/src/workspace-storage/lib/types.ts +1 -1
- package/LICENSE +0 -176
|
@@ -5,8 +5,7 @@ import { RunnerTransportMode } from './runner-mode';
|
|
|
5
5
|
import { RunnerTrustTier } from './runner';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* High-level execution mode a runner declares at registration time
|
|
9
|
-
* (plan §6 Phase F, north-star §3 "three biome execution modes").
|
|
8
|
+
* High-level execution mode a runner declares at registration time.
|
|
10
9
|
*
|
|
11
10
|
* This is the *biome execution mode* (where the biome physically runs)
|
|
12
11
|
* — DISTINCT from `RunnerTransportMode` (push vs pull, how the runner
|
|
@@ -17,19 +16,19 @@ import { RunnerTrustTier } from './runner';
|
|
|
17
16
|
*/
|
|
18
17
|
export enum RunnerMode {
|
|
19
18
|
/**
|
|
20
|
-
* Runs inside `xema-kernel-server` itself
|
|
19
|
+
* Runs inside `xema-kernel-server` itself. The kernel
|
|
21
20
|
* registers a synthetic runner descriptor under this mode so the
|
|
22
21
|
* dispatcher sees embedded biomes as ordinary registry entries.
|
|
23
22
|
*/
|
|
24
23
|
Embedded = 'embedded',
|
|
25
24
|
/**
|
|
26
25
|
* Sidecar process supervised by `biome-host-api`'s local-module
|
|
27
|
-
* supervisor
|
|
26
|
+
* supervisor. The default for dev + first-party.
|
|
28
27
|
*/
|
|
29
28
|
LocalModule = 'local-module',
|
|
30
29
|
/**
|
|
31
30
|
* Out-of-cluster runner reachable via event-hub Push or long-poll
|
|
32
|
-
* Pull
|
|
31
|
+
* Pull.
|
|
33
32
|
*/
|
|
34
33
|
Remote = 'remote',
|
|
35
34
|
}
|
|
@@ -54,7 +53,7 @@ export enum DataLocality {
|
|
|
54
53
|
export const DataLocalitySchema = z.nativeEnum(DataLocality);
|
|
55
54
|
|
|
56
55
|
/**
|
|
57
|
-
* Embedded biome registration
|
|
56
|
+
* Embedded biome registration.
|
|
58
57
|
*
|
|
59
58
|
* Lives on a `RunnerRegistration` whose `mode === RunnerMode.Embedded`.
|
|
60
59
|
* The `xema-kernel-server` enumerates its built-in biomes (concept
|
|
@@ -152,9 +151,9 @@ export const RunnerHealthcheckSchema = z.object({
|
|
|
152
151
|
|
|
153
152
|
/**
|
|
154
153
|
* Top-level registration a runner publishes to the Service Registry at
|
|
155
|
-
* boot
|
|
154
|
+
* boot. One row per runner instance; biomes hang underneath.
|
|
156
155
|
*
|
|
157
|
-
* Carry-forwards (
|
|
156
|
+
* Carry-forwards (planned):
|
|
158
157
|
* - Keycloak service-account JWT validation
|
|
159
158
|
* - Org-admin-countersigned `allowedEnvironments`
|
|
160
159
|
* - RS256 signed job tokens with ≤60s TTL
|
|
@@ -167,7 +166,7 @@ export interface RunnerRegistration {
|
|
|
167
166
|
region?: string;
|
|
168
167
|
/**
|
|
169
168
|
* IDs of `ExecutionEnvironment`s this runner is permitted to serve.
|
|
170
|
-
*
|
|
169
|
+
* A future step will countersign this list via the Keycloak service
|
|
171
170
|
* account; until then the runner is trusted to declare its own set.
|
|
172
171
|
*/
|
|
173
172
|
allowedEnvironments?: string[];
|
|
@@ -177,7 +176,7 @@ export interface RunnerRegistration {
|
|
|
177
176
|
*/
|
|
178
177
|
dataLocality?: DataLocality;
|
|
179
178
|
/**
|
|
180
|
-
* Trust tier assigned at attestation time
|
|
179
|
+
* Trust tier assigned at attestation time. Absent until
|
|
181
180
|
* the kernel-server attests the runner; the policy bundle MAY gate
|
|
182
181
|
* sensitive capabilities to `Trusted`/`System` tiers only.
|
|
183
182
|
*/
|
package/src/runner/lib/runner.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RunnerKind } from '../../policy';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Runner-plane contracts
|
|
4
|
+
* Runner-plane contracts.
|
|
5
5
|
*
|
|
6
6
|
* A runner is the executor that picks up a `RunnerJobDispatch` and
|
|
7
7
|
* actually invokes the capability.
|
|
@@ -14,7 +14,7 @@ import { RunnerKind } from '../../policy';
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Trust tier assigned to a runner at attestation time
|
|
17
|
+
* Trust tier assigned to a runner at attestation time. The
|
|
18
18
|
* authorization-api's policy bundle MAY gate sensitive capabilities to
|
|
19
19
|
* `Trusted` or `System` tiers only.
|
|
20
20
|
*
|
|
@@ -32,8 +32,8 @@ export enum RunnerTrustTier {
|
|
|
32
32
|
/**
|
|
33
33
|
* Canonical ordinal rank for each {@link RunnerTrustTier}. Higher = more
|
|
34
34
|
* authority. This is the SINGLE source of trust ordering — the router's
|
|
35
|
-
* dispatch min-trust gate
|
|
36
|
-
* min-trust gate
|
|
35
|
+
* dispatch min-trust gate and the runner's per-capability
|
|
36
|
+
* min-trust gate MUST both rank through this map so a runner
|
|
37
37
|
* the router accepts is ranked identically by the executor. Do not inline a
|
|
38
38
|
* second ordering.
|
|
39
39
|
*/
|
|
@@ -75,9 +75,9 @@ export type RunnerId = string & { readonly __brand: 'RunnerId' };
|
|
|
75
75
|
/**
|
|
76
76
|
* Self-description a runner publishes at registration time. Mirrors
|
|
77
77
|
* `ServiceDescriptor` in spirit but carries runner-specific labels
|
|
78
|
-
* (data locality, region) consumed by `Policy.routeHints
|
|
78
|
+
* (data locality, region) consumed by `Policy.routeHints`.
|
|
79
79
|
*
|
|
80
|
-
* For the richer
|
|
80
|
+
* For the richer registration shape (mode + biome
|
|
81
81
|
* provisioning + transport) see `RunnerRegistration`.
|
|
82
82
|
*/
|
|
83
83
|
export interface RunnerDescriptor {
|
|
@@ -87,7 +87,7 @@ export interface RunnerDescriptor {
|
|
|
87
87
|
version: string;
|
|
88
88
|
/**
|
|
89
89
|
* IDs of `ExecutionEnvironment`s this runner is allowed to serve.
|
|
90
|
-
* The list is signed by the org admin via
|
|
90
|
+
* The list is signed by the org admin via attestation; a
|
|
91
91
|
* runner MUST refuse a dispatch whose `executionContext.environmentId`
|
|
92
92
|
* is not in this list.
|
|
93
93
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Deterministic canonical hash of a capability invocation input
|
|
5
|
-
*
|
|
4
|
+
* Deterministic canonical hash of a capability invocation input
|
|
5
|
+
* (input-integrity binding).
|
|
6
6
|
*
|
|
7
7
|
* The runner plane separates execution authority: the kernel-server mints
|
|
8
8
|
* the RS256 `JobToken` and the router dispatches the `RunnerDispatch`. Under
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
//
|
|
2
|
-
// names verbatim (e.g. 'opencode-worker'); those names ARE the data, not a
|
|
3
|
-
// tech-stack leak, so the stack-confidentiality scan is opted out here.
|
|
1
|
+
// Canonical first-party service names for the platform.
|
|
4
2
|
// AUTO-GENERATED by tooling/codegen/generate-service-names.mjs — DO NOT EDIT.
|
|
5
3
|
// Source of truth: each biome's xema-biome.json ships.apis[].name + every
|
|
6
4
|
// ServiceRegistryModule descriptor name. Regenerate: `node tooling/codegen/generate-service-names.mjs`.
|
package/src/space/lib/space.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Closed kind set — Spaces have exactly these 7 layers
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* ownership plane introduced in Phase A.2.
|
|
4
|
+
* Closed kind set — Spaces have exactly these 7 layers. Replaces the
|
|
5
|
+
* legacy 5-tier `ScopeTier` (System / Biome / Org / Project / User) by
|
|
6
|
+
* adding `App` and `Session` for the runtime ownership plane.
|
|
8
7
|
*
|
|
9
8
|
* Precedence is **most specific wins**:
|
|
10
9
|
* User > Session > Biome > App > Project > Org > System
|
|
@@ -38,7 +37,7 @@ export enum DataClassification {
|
|
|
38
37
|
* `orgId` and `projectId`). Optional `path` carries the fully-formatted
|
|
39
38
|
* `xema://...` URI when materialised.
|
|
40
39
|
*
|
|
41
|
-
*
|
|
40
|
+
* Value-identical rename from `ScopeRef`. Field
|
|
42
41
|
* names (`tier`, `orgId`, `projectId`, `biomeId`, `userId`) are
|
|
43
42
|
* unchanged so the rename is a single identifier swap at every consumer.
|
|
44
43
|
*/
|
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
/**
|
|
4
4
|
* `ChatWidgetEnvelope` — a single widget instance recorded on an assistant
|
|
5
5
|
* message's `metadata.widgets[]` and rendered by the host-web ChatWidget
|
|
6
|
-
* registry
|
|
6
|
+
* registry.
|
|
7
7
|
*
|
|
8
8
|
* `kind` is a first-party {@link ChatWidgetKind} value OR a namespaced biome
|
|
9
9
|
* string (`<biomeId>:<kind>`). `version` is the monotonic schema version for
|
|
@@ -38,7 +38,7 @@ export interface WorkerRuntimeCapabilityBits {
|
|
|
38
38
|
* Scheduler-side capability bits. The runtime declares which scheduler
|
|
39
39
|
* features it depends on; the scheduler advertises which it provides. The
|
|
40
40
|
* composer matches the two — a required capability missing on the
|
|
41
|
-
* scheduler is a fail-fast error (
|
|
41
|
+
* scheduler is a fail-fast error (no silent degradation).
|
|
42
42
|
*/
|
|
43
43
|
export interface SchedulerCapabilityBits {
|
|
44
44
|
readonly autoRestart: boolean;
|
package/src/workflow/index.ts
CHANGED
|
@@ -35,9 +35,8 @@ export * from './lib/briefcase';
|
|
|
35
35
|
export * from './lib/catalog-taxonomies';
|
|
36
36
|
export * from './lib/domain-tag';
|
|
37
37
|
// Generic ordered-stage contract. The software-delivery-specific stage list,
|
|
38
|
-
// hierarchy, and gate-reviewer map were relocated to the software-dev biome
|
|
39
|
-
//
|
|
40
|
-
// kernel carries no domain phase enum.
|
|
38
|
+
// hierarchy, and gate-reviewer map were relocated to the software-dev biome's
|
|
39
|
+
// workflow config — the kernel carries no domain phase enum.
|
|
41
40
|
export * from './lib/phase-report';
|
|
42
41
|
export * from './lib/work-item-payloads';
|
|
43
42
|
export * from './lib/canonical-concepts';
|
|
@@ -17,10 +17,9 @@
|
|
|
17
17
|
// output was conditionally absent).
|
|
18
18
|
//
|
|
19
19
|
// Activity authors do NOT construct ArtifactRefs themselves. They pass
|
|
20
|
-
// content + type to the `finalizeOutputs` helper
|
|
21
|
-
// `
|
|
22
|
-
//
|
|
23
|
-
// replaces the values with refs.
|
|
20
|
+
// content + type to the `finalizeOutputs` helper, which promotes content
|
|
21
|
+
// to artifacts via `workflow-artifact-emitter` and replaces the values
|
|
22
|
+
// with refs.
|
|
24
23
|
//
|
|
25
24
|
// Orchestration metadata (worker IDs, allocation status, page IDs, repo
|
|
26
25
|
// SHAs, etc.) stays on the envelope alongside `outputs`. The discipline
|
|
@@ -60,7 +60,7 @@ export const AGENT_RUN_ROLES = [
|
|
|
60
60
|
/**
|
|
61
61
|
* Studio chat-author. Read-only authoring co-pilot bound to the
|
|
62
62
|
* `studio-{workflow|manifest|spec}-author` workspace manifests
|
|
63
|
-
* shipped by `
|
|
63
|
+
* shipped by the `studio-author` biome. The agent emits typed
|
|
64
64
|
* proposals only — apply goes through the standard write APIs on
|
|
65
65
|
* user confirmation. Interactive surface; never runs in a pipeline.
|
|
66
66
|
*/
|
|
@@ -70,8 +70,8 @@ export const AGENT_RUN_ROLES = [
|
|
|
70
70
|
* project's attached repo. Planner-only `webapp-coordinator` agent
|
|
71
71
|
* orchestrates scaffolder + page-builder + data-builder sub-agents.
|
|
72
72
|
* Interactive surface; never runs in a pipeline. Bound to the
|
|
73
|
-
* `webapp-studio-default` workspace manifest shipped by
|
|
74
|
-
* `
|
|
73
|
+
* `webapp-studio-default` workspace manifest shipped by the
|
|
74
|
+
* `webapp-studio` biome.
|
|
75
75
|
*/
|
|
76
76
|
'webapp-studio',
|
|
77
77
|
/**
|
|
@@ -81,8 +81,8 @@ export const AGENT_RUN_ROLES = [
|
|
|
81
81
|
* workspace-proxy's document-sync component derives the reviewable
|
|
82
82
|
* diff and persists it to knowledge-base-api. Interactive surface;
|
|
83
83
|
* never runs in a pipeline. Bound to the `document-md-default` /
|
|
84
|
-
* `document-rich-default` workspace manifests shipped by
|
|
85
|
-
* `
|
|
84
|
+
* `document-rich-default` workspace manifests shipped by the
|
|
85
|
+
* `document-buddy` biome.
|
|
86
86
|
*/
|
|
87
87
|
'document',
|
|
88
88
|
] as const;
|
|
@@ -74,7 +74,7 @@ export function isArtifactRef(value: unknown): value is ArtifactRef {
|
|
|
74
74
|
* Closed set of `ArtifactRef` member names — i.e. the fields a DSL
|
|
75
75
|
* expression `outputs.<name>.<field>` can read directly off the
|
|
76
76
|
* envelope without fetching artifact bytes. Anything else is treated
|
|
77
|
-
* as a payload-reach-in by the DSL compiler
|
|
77
|
+
* as a payload-reach-in by the DSL compiler.
|
|
78
78
|
*
|
|
79
79
|
* Kept here so the DSL compiler, the worker evaluator, and any future
|
|
80
80
|
* static-analysis tools share one source of truth.
|
|
@@ -297,7 +297,7 @@ export interface CompiledJob extends BiomeAvailabilityScoped {
|
|
|
297
297
|
* The compiler emits at most one pin per `(consumerJob, upstreamJob)`
|
|
298
298
|
* pair because the deliverable-spec binding on an upstream activity is
|
|
299
299
|
* job-level today (`with.deliverableSpecRef`). When per-output spec
|
|
300
|
-
* bindings land
|
|
300
|
+
* bindings land, this shape extends with `outputName` and the
|
|
301
301
|
* cardinality changes to `(consumerJob, upstreamJob, outputName)`.
|
|
302
302
|
*/
|
|
303
303
|
export interface PayloadReachInPin {
|
|
@@ -342,7 +342,7 @@ export interface CompiledStaticMatrixStrategy {
|
|
|
342
342
|
* Matrix expanded at runtime. `fromExpression` is the expression the root
|
|
343
343
|
* workflow evaluates once upstream outputs are available; it must resolve
|
|
344
344
|
* to an array of bindings. `maxParallel` caps concurrent child spawns.
|
|
345
|
-
* The compile-time cardinality cap
|
|
345
|
+
* The compile-time cardinality cap is enforced at runtime by
|
|
346
346
|
* rejecting arrays > maxEntries.
|
|
347
347
|
*/
|
|
348
348
|
export interface CompiledDynamicMatrixStrategy {
|
|
@@ -77,7 +77,7 @@ export interface CompiledManifestAgent {
|
|
|
77
77
|
readonly defaultModel?: ModelRef;
|
|
78
78
|
/**
|
|
79
79
|
* Optional node-level instructions carried through from the authored
|
|
80
|
-
* manifest's `spec.agent.instructions` (
|
|
80
|
+
* manifest's `spec.agent.instructions` (authoring a migrated
|
|
81
81
|
* agent as `base agent slug + instructions`). A prompt fragment the
|
|
82
82
|
* runtime layers ONTO the referenced base agent's intrinsic system
|
|
83
83
|
* prompt — semantically the same as `AgentNode.instructions`.
|
|
@@ -94,7 +94,7 @@ export interface CompiledManifestAgent {
|
|
|
94
94
|
readonly promptMode?: PromptMergeMode;
|
|
95
95
|
/**
|
|
96
96
|
* Optional node-level permission override carried through from the
|
|
97
|
-
* authored manifest's `spec.agent.permission` (
|
|
97
|
+
* authored manifest's `spec.agent.permission` (kernel extension).
|
|
98
98
|
* Deep-merged (per top-level key) over the referenced base agent's
|
|
99
99
|
* authored permission before the system tiers run — lets a generic base
|
|
100
100
|
* agent (e.g. `coder`/`planner`) be specialized into a bounded role
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
// Closed domains for every workflow/job/step state + policy value.
|
|
5
5
|
// Every workflow-plane decision point uses one of these enums. Free-form
|
|
6
|
-
// strings are forbidden for closed sets
|
|
6
|
+
// strings are forbidden for closed sets per the API standards.
|
|
7
7
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
8
8
|
|
|
9
9
|
/** How a workflow run was initiated. */
|
|
@@ -227,8 +227,8 @@ export enum BuiltInActionId {
|
|
|
227
227
|
SCM_POST_REVIEW = 'software-dev/scm-post-review',
|
|
228
228
|
DISPATCH_WORKFLOW = 'xema/dispatch-workflow',
|
|
229
229
|
/**
|
|
230
|
-
* Send an email via AWS Simple Email Service. Shipped by
|
|
231
|
-
* `
|
|
230
|
+
* Send an email via AWS Simple Email Service. Shipped by the
|
|
231
|
+
* `aws-integration` biome. Credentials come from the
|
|
232
232
|
* caller's wallet via `${{ secrets.AWS_SECRET_ACCESS_KEY }}` etc.
|
|
233
233
|
*/
|
|
234
234
|
AWS_SES_SEND = 'aws-integration/ses-send',
|
|
@@ -252,7 +252,7 @@ export enum BuiltInActionId {
|
|
|
252
252
|
/**
|
|
253
253
|
* Trigger an org-database migration via org-database-pool-api and
|
|
254
254
|
* block until the run reaches a terminal state. Generic primitive
|
|
255
|
-
*
|
|
255
|
+
* — any sub-app that
|
|
256
256
|
* needs to materialize a schema against a pool-managed database
|
|
257
257
|
* dispatches this action; the caller is responsible for resolving
|
|
258
258
|
* the `databaseId` and providing a `workspaceDir` containing the
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* the engine, compiler, evaluator, or worker picks a code from this enum.
|
|
4
4
|
*
|
|
5
5
|
* Enum-based so:
|
|
6
|
-
* - OpenAPI emits a stable `code` field
|
|
6
|
+
* - OpenAPI emits a stable `code` field per the API standards.
|
|
7
7
|
* - The retry policy can mark specific codes as non-retryable
|
|
8
8
|
* deterministically (see CompiledRetryPolicy.nonRetryableErrorTypes).
|
|
9
9
|
* - Frontend switches are exhaustive.
|
|
@@ -30,7 +30,7 @@ import type { PermissionMap } from '../../agent-permission';
|
|
|
30
30
|
* consumer (DTOs, Zod schemas, frontend lookups) MUST import from here
|
|
31
31
|
* (or re-export this enum) instead of restating the literal list.
|
|
32
32
|
*
|
|
33
|
-
* Mirrors
|
|
33
|
+
* Mirrors llm-registry-api's Prisma `ModelClass` column.
|
|
34
34
|
*
|
|
35
35
|
* IMPORTANT — the one allowed copy is in `@xemahq/biome-sdk/builder`'s
|
|
36
36
|
* `contribution-schemas.ts`, kept inline so the public biome-authoring SDK
|
|
@@ -110,7 +110,7 @@ export type MountSource =
|
|
|
110
110
|
| { readonly kind: 'deliverable-specs'; readonly contractKey: string }
|
|
111
111
|
| { readonly kind: 'deliverables'; readonly contractKey: string }
|
|
112
112
|
| { readonly kind: 'static-literal'; readonly pathWithinWorkspace: string; readonly bytes: string }
|
|
113
|
-
// Platform-rendered
|
|
113
|
+
// Platform-rendered:
|
|
114
114
|
| {
|
|
115
115
|
readonly kind: 'agent-kernel';
|
|
116
116
|
readonly orgId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Internal-workflow task-queue naming
|
|
3
|
-
* platform
|
|
2
|
+
* Internal-workflow task-queue naming for the Temporal internal-workflow
|
|
3
|
+
* platform.
|
|
4
4
|
*
|
|
5
5
|
* Every internal/platform workflow runs in the `xema` namespace
|
|
6
6
|
* (`PLATFORM_TEMPORAL_NAMESPACE`) on a task queue named for its domain. One
|
|
@@ -43,7 +43,7 @@ export enum PlatformWorkflowDomain {
|
|
|
43
43
|
/** Biome-installation cleanup cascade. */
|
|
44
44
|
BIOME_LIFECYCLE = 'biome-lifecycle',
|
|
45
45
|
/**
|
|
46
|
-
* Integration-ingress webhook-outbox forward dispatch
|
|
46
|
+
* Integration-ingress webhook-outbox forward dispatch. One
|
|
47
47
|
* workflow per outbox row; Temporal owns retries + DLQ semantics.
|
|
48
48
|
*/
|
|
49
49
|
INTEGRATION_INGRESS = 'integration-ingress',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// ── RoleCapabilityProfile types + closed-domain enums ──
|
|
3
3
|
//
|
|
4
4
|
// The DATA (one profile per `AgentRunRole`) lives in biome contributions
|
|
5
|
-
//
|
|
5
|
+
// as per-role role-capability definitions.
|
|
6
6
|
// llm-registry-api's `RoleCapabilityRegistryService` loads + serves them
|
|
7
7
|
// in-process, exposes them via `GET /role-capabilities/:role`, and writes
|
|
8
8
|
// the resolved `allowedXemaTools` array into each invocation's
|
|
@@ -52,8 +52,8 @@ export enum RunActivityKind {
|
|
|
52
52
|
SCHEDULED_DISPATCH = 'scheduled_dispatch',
|
|
53
53
|
REVIEW = 'review',
|
|
54
54
|
/**
|
|
55
|
-
* Org-database migration dispatched via `xema/run-migrations@v1
|
|
56
|
-
*
|
|
55
|
+
* Org-database migration dispatched via `xema/run-migrations@v1`.
|
|
56
|
+
* The activity calls
|
|
57
57
|
* org-database-pool-api to start a migration workflow and polls
|
|
58
58
|
* the per-database migration listing until the run reaches a
|
|
59
59
|
* terminal state.
|
|
@@ -6,8 +6,8 @@ import { WorkflowTriggerKind } from './enums';
|
|
|
6
6
|
* every consumer switches exhaustively; unknown `kind` is a compile error.
|
|
7
7
|
*
|
|
8
8
|
* Webhook trigger payloads are the canonical envelopes produced by
|
|
9
|
-
* `integration-adapters-api
|
|
10
|
-
*
|
|
9
|
+
* `integration-adapters-api`, so the workflow plane never touches
|
|
10
|
+
* provider-specific shapes.
|
|
11
11
|
*/
|
|
12
12
|
export type TriggerPayload =
|
|
13
13
|
| WorkflowDispatchTriggerPayload
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Variable + secret contract a workflow declares it needs.
|
|
3
3
|
*
|
|
4
4
|
* Authored in YAML under `requires.variables`. Each entry is the name of an
|
|
5
|
-
* org/project Variable (
|
|
5
|
+
* org/project Variable (managed by project-registry-api) that the workflow
|
|
6
6
|
* expects to be present at dispatch time. Names follow the same
|
|
7
7
|
* `[A-Z][A-Z0-9_]*` convention as `CreateVariableDto.key`.
|
|
8
8
|
*
|
|
@@ -69,7 +69,7 @@ export const CREDENTIAL_KINDS: readonly CredentialKind[] = [
|
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Kinds of output surface a workspace can expose. Consumed by
|
|
72
|
-
*
|
|
72
|
+
* workspace-proxy's output-surface engine to wire route lifecycle.
|
|
73
73
|
*
|
|
74
74
|
* `none` is the explicit no-output-surface default (omitting `outputSurface`
|
|
75
75
|
* is equivalent). `web` is a long-running webserver on `port`. `static`
|
|
@@ -47,7 +47,7 @@ export interface PoolSpec {
|
|
|
47
47
|
*/
|
|
48
48
|
readonly driverConfig: Record<string, unknown>;
|
|
49
49
|
readonly capacityBytes: bigint;
|
|
50
|
-
/** Required for region-aware co-scheduling
|
|
50
|
+
/** Required for region-aware co-scheduling. */
|
|
51
51
|
readonly region: string;
|
|
52
52
|
readonly environment?: string;
|
|
53
53
|
/** Free-form cost class label for billing/observability dashboards. */
|
package/LICENSE
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|