@h-rig/contracts 0.0.6-alpha.157 → 0.0.6-alpha.159
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/index.cjs +2340 -6832
- package/dist/index.mjs +2116 -6608
- package/dist/src/agent-roles.d.ts +8 -0
- package/dist/src/browser.d.ts +34 -4
- package/dist/src/browser.js +8 -1
- package/dist/src/capability-id.d.ts +22 -0
- package/dist/src/capability-id.js +8 -0
- package/dist/src/cli-output.d.ts +24 -0
- package/dist/src/cli-runner.d.ts +43 -0
- package/dist/src/cli-runner.js +13 -0
- package/dist/src/collab-session-viewer.d.ts +36 -0
- package/dist/src/collab-session-viewer.js +13 -0
- package/dist/src/config.d.ts +11 -0
- package/dist/src/config.js +279 -1098
- package/dist/src/control-plane-types.d.ts +41 -1
- package/dist/src/control-plane-types.js +9 -25
- package/dist/src/dependency-preflight.d.ts +43 -0
- package/dist/src/dependency-preflight.js +13 -0
- package/dist/src/doctor.d.ts +67 -4
- package/dist/src/doctor.js +8 -9
- package/dist/src/errors.d.ts +13 -0
- package/dist/src/errors.js +17 -0
- package/dist/src/github.d.ts +43 -0
- package/dist/src/github.js +12 -1
- package/dist/src/graph.d.ts +37 -0
- package/dist/src/graph.js +13 -0
- package/dist/src/guard.d.ts +111 -0
- package/dist/src/guard.js +6 -0
- package/dist/src/harness-events.d.ts +8 -0
- package/dist/src/harness-events.js +1 -0
- package/dist/src/help-catalog.d.ts +17 -10
- package/dist/src/help-catalog.js +9 -651
- package/dist/src/host.d.ts +41 -0
- package/dist/src/host.js +13 -0
- package/dist/src/identity.d.ts +44 -0
- package/dist/src/identity.js +1 -0
- package/dist/src/index.d.ts +27 -7
- package/dist/src/index.js +2116 -6608
- package/dist/src/isolation.d.ts +207 -15
- package/dist/src/isolation.js +8 -1
- package/dist/src/kernel.d.ts +11 -0
- package/dist/src/kernel.js +7 -0
- package/dist/src/layout.d.ts +49 -0
- package/dist/src/layout.js +10 -0
- package/dist/src/lifecycle-capabilities.d.ts +99 -0
- package/dist/src/lifecycle-capabilities.js +18 -1
- package/dist/src/managed-repos.d.ts +79 -16
- package/dist/src/managed-repos.js +12 -1
- package/dist/src/memory.d.ts +52 -4
- package/dist/src/memory.js +8 -1
- package/dist/src/notify.d.ts +46 -0
- package/dist/src/notify.js +13 -0
- package/dist/src/orchestration.d.ts +0 -3652
- package/dist/src/orchestration.js +28 -964
- package/dist/src/plugin-hooks.js +22 -3
- package/dist/src/plugin.d.ts +47 -0
- package/dist/src/plugin.js +24 -3
- package/dist/src/prompt.d.ts +29 -0
- package/dist/src/prompt.js +13 -0
- package/dist/src/provider-instructions.d.ts +26 -4
- package/dist/src/provider-instructions.js +8 -1
- package/dist/src/provider.js +1 -824
- package/dist/src/remote.d.ts +0 -8
- package/dist/src/remote.js +229 -1075
- package/dist/src/run-discovery.d.ts +79 -0
- package/dist/src/run-discovery.js +13 -0
- package/dist/src/run-dispatch.d.ts +34 -0
- package/dist/src/run-dispatch.js +13 -0
- package/dist/src/run-identity.d.ts +47 -0
- package/dist/src/run-identity.js +13 -0
- package/dist/src/run-journal.d.ts +0 -236
- package/dist/src/run-journal.js +249 -1321
- package/dist/src/run-read-model.d.ts +234 -0
- package/dist/src/run-read-model.js +13 -0
- package/dist/src/run-record.d.ts +0 -11
- package/dist/src/run-record.js +0 -16
- package/dist/src/run-registry-backbone.d.ts +56 -0
- package/dist/src/run-registry-backbone.js +13 -0
- package/dist/src/run-session-journal.d.ts +1 -25
- package/dist/src/run-session-journal.js +0 -1731
- package/dist/src/run-status.d.ts +0 -2
- package/dist/src/run-status.js +0 -11
- package/dist/src/run-timeline.d.ts +0 -3
- package/dist/src/run-timeline.js +0 -1498
- package/dist/src/runtime-task-context.d.ts +82 -0
- package/dist/src/runtime-task-context.js +1 -0
- package/dist/src/runtime.js +66 -904
- package/dist/src/session-asset-materializer.d.ts +35 -0
- package/dist/src/session-asset-materializer.js +13 -0
- package/dist/src/setup.d.ts +47 -0
- package/dist/src/setup.js +13 -0
- package/dist/src/supervisor-journal.js +117 -955
- package/dist/src/task-data.d.ts +239 -0
- package/dist/src/task-data.js +13 -0
- package/dist/src/task-graph-primitives.d.ts +0 -21
- package/dist/src/task-graph-primitives.js +0 -318
- package/dist/src/task-source.d.ts +65 -0
- package/dist/src/task-source.js +12 -0
- package/dist/src/task-state-metadata.d.ts +21 -0
- package/dist/src/task-state-metadata.js +1 -0
- package/dist/src/tool-materializer.d.ts +36 -0
- package/dist/src/tool-materializer.js +13 -0
- package/dist/src/tool-registry.d.ts +3 -0
- package/dist/src/tool-registry.js +58 -0
- package/dist/src/toolchain-sources.d.ts +54 -0
- package/dist/src/toolchain-sources.js +17 -0
- package/dist/src/workflow-journal.d.ts +0 -32
- package/dist/src/workflow-journal.js +0 -371
- package/dist/src/workspace-config.d.ts +18 -0
- package/dist/src/workspace-config.js +13 -0
- package/dist/src/workspace.js +73 -911
- package/package.json +1 -1
- package/dist/src/engine.d.ts +0 -2789
- package/dist/src/engine.js +0 -2392
- package/dist/src/ipc.d.ts +0 -248
- package/dist/src/providerRuntime.d.ts +0 -3949
- package/dist/src/providerRuntime.js +0 -1633
- package/dist/src/rig.d.ts +0 -783
- package/dist/src/rig.js +0 -2537
- package/dist/src/server.d.ts +0 -106
- package/dist/src/server.js +0 -1056
- package/dist/src/serviceFabric.d.ts +0 -62
- package/dist/src/serviceFabric.js +0 -1069
- package/dist/src/ws.d.ts +0 -747
- package/dist/src/ws.js +0 -3126
- /package/dist/src/{ipc.js → agent-roles.js} +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure runtime-task-context data shapes.
|
|
3
|
+
*
|
|
4
|
+
* These are behaviour-free data types describing the per-task runtime context
|
|
5
|
+
* the substrate materializes and threads to agents and capabilities. They carry
|
|
6
|
+
* no logic and import nothing but the sibling `RuntimeBrowserContext` contract,
|
|
7
|
+
* so they belong in the neutral contracts layer (exactly like `memory.ts` /
|
|
8
|
+
* `lifecycle-capabilities.ts`).
|
|
9
|
+
*
|
|
10
|
+
* The fs-backed loaders/serializers that PRODUCE and VALIDATE these shapes stay
|
|
11
|
+
* in `@rig/runtime/control-plane/runtime/context.ts`, which re-exports these
|
|
12
|
+
* types for back-compat so existing `import … from ".../runtime/context"` sites
|
|
13
|
+
* are unaffected.
|
|
14
|
+
*/
|
|
15
|
+
import type { RuntimeBrowserContext } from "./browser";
|
|
16
|
+
/** Retrieval weighting for shared-memory recall; pure config data. */
|
|
17
|
+
export type RuntimeMemoryRetrievalConfig = {
|
|
18
|
+
topK: number;
|
|
19
|
+
lexicalWeight: number;
|
|
20
|
+
vectorWeight: number;
|
|
21
|
+
recencyWeight: number;
|
|
22
|
+
confidenceWeight: number;
|
|
23
|
+
};
|
|
24
|
+
/** The materialized shared-memory context handed to a runtime task. */
|
|
25
|
+
export type RuntimeMemoryContext = {
|
|
26
|
+
canonicalPath: string;
|
|
27
|
+
canonicalRef: string;
|
|
28
|
+
canonicalBaseOid?: string;
|
|
29
|
+
hydratedPath: string;
|
|
30
|
+
createdFresh: boolean;
|
|
31
|
+
retrieval: RuntimeMemoryRetrievalConfig;
|
|
32
|
+
};
|
|
33
|
+
/** The source-task contract fields a runtime task carries through. */
|
|
34
|
+
export type RuntimeSourceTaskContract = {
|
|
35
|
+
id: string;
|
|
36
|
+
title?: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
body?: string;
|
|
39
|
+
acceptanceCriteria?: string;
|
|
40
|
+
acceptance_criteria?: string;
|
|
41
|
+
sourceIssueId?: string;
|
|
42
|
+
status?: string;
|
|
43
|
+
issueType?: string;
|
|
44
|
+
role?: string;
|
|
45
|
+
externalRef?: string;
|
|
46
|
+
scope?: string[];
|
|
47
|
+
validation?: string[];
|
|
48
|
+
validators?: string[];
|
|
49
|
+
labels?: string[];
|
|
50
|
+
};
|
|
51
|
+
/** The fully-resolved per-task runtime context. */
|
|
52
|
+
export type RuntimeTaskContext = {
|
|
53
|
+
runtimeId: string;
|
|
54
|
+
taskId: string;
|
|
55
|
+
role: string;
|
|
56
|
+
scopes: string[];
|
|
57
|
+
validation: string[];
|
|
58
|
+
sourceTask?: RuntimeSourceTaskContract;
|
|
59
|
+
browser?: RuntimeBrowserContext;
|
|
60
|
+
workspaceDir: string;
|
|
61
|
+
artifactRoot?: string;
|
|
62
|
+
hostProjectRoot?: string;
|
|
63
|
+
monorepoMainRoot?: string;
|
|
64
|
+
monorepoBaseRef?: string;
|
|
65
|
+
monorepoBaseCommit?: string;
|
|
66
|
+
initialHeadCommits?: {
|
|
67
|
+
project?: string;
|
|
68
|
+
monorepo?: string;
|
|
69
|
+
};
|
|
70
|
+
initialDirtyFiles?: {
|
|
71
|
+
project?: string[];
|
|
72
|
+
monorepo?: string[];
|
|
73
|
+
};
|
|
74
|
+
stateDir: string;
|
|
75
|
+
logsDir: string;
|
|
76
|
+
sessionDir: string;
|
|
77
|
+
sessionFile: string;
|
|
78
|
+
policyFile: string;
|
|
79
|
+
binDir: string;
|
|
80
|
+
createdAt: string;
|
|
81
|
+
memory?: RuntimeMemoryContext;
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|