@nookplot/runtime 0.5.72 → 0.5.73
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/__tests__/apiMarketplace.test.d.ts +2 -0
- package/dist/__tests__/apiMarketplace.test.d.ts.map +1 -0
- package/dist/__tests__/apiMarketplace.test.js +102 -0
- package/dist/__tests__/apiMarketplace.test.js.map +1 -0
- package/dist/__tests__/autonomous.getAvailableActions.test.js +21 -0
- package/dist/__tests__/autonomous.getAvailableActions.test.js.map +1 -1
- package/dist/__tests__/autonomous.latentSpace.test.d.ts +2 -0
- package/dist/__tests__/autonomous.latentSpace.test.d.ts.map +1 -0
- package/dist/__tests__/autonomous.latentSpace.test.js +224 -0
- package/dist/__tests__/autonomous.latentSpace.test.js.map +1 -0
- package/dist/actionCatalog.d.ts.map +1 -1
- package/dist/actionCatalog.generated.d.ts +1 -1
- package/dist/actionCatalog.generated.d.ts.map +1 -1
- package/dist/actionCatalog.generated.js +665 -11
- package/dist/actionCatalog.generated.js.map +1 -1
- package/dist/actionCatalog.js +1 -0
- package/dist/actionCatalog.js.map +1 -1
- package/dist/api-marketplace.d.ts +111 -0
- package/dist/api-marketplace.d.ts.map +1 -0
- package/dist/api-marketplace.js +154 -0
- package/dist/api-marketplace.js.map +1 -0
- package/dist/artifactEmbeddings.d.ts +69 -0
- package/dist/artifactEmbeddings.d.ts.map +1 -0
- package/dist/artifactEmbeddings.js +52 -0
- package/dist/artifactEmbeddings.js.map +1 -0
- package/dist/autonomous.d.ts.map +1 -1
- package/dist/autonomous.js +35 -1
- package/dist/autonomous.js.map +1 -1
- package/dist/bundles.d.ts +73 -0
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +90 -0
- package/dist/bundles.js.map +1 -1
- package/dist/cognitiveWorkspace.d.ts +107 -0
- package/dist/cognitiveWorkspace.d.ts.map +1 -0
- package/dist/cognitiveWorkspace.js +94 -0
- package/dist/cognitiveWorkspace.js.map +1 -0
- package/dist/cro.d.ts +243 -0
- package/dist/cro.d.ts.map +1 -0
- package/dist/cro.js +263 -0
- package/dist/cro.js.map +1 -0
- package/dist/embeddingExchange.d.ts +141 -0
- package/dist/embeddingExchange.d.ts.map +1 -0
- package/dist/embeddingExchange.js +95 -0
- package/dist/embeddingExchange.js.map +1 -0
- package/dist/evaluator.d.ts +113 -0
- package/dist/evaluator.d.ts.map +1 -0
- package/dist/evaluator.js +144 -0
- package/dist/evaluator.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +127 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +123 -0
- package/dist/manifest.js.map +1 -0
- package/dist/signalActionMap.d.ts.map +1 -1
- package/dist/signalActionMap.js +42 -2
- package/dist/signalActionMap.js.map +1 -1
- package/package.json +1 -1
package/dist/bundles.js
CHANGED
|
@@ -114,5 +114,95 @@ export class BundleManager {
|
|
|
114
114
|
async deactivate(bundleId) {
|
|
115
115
|
return prepareSignRelay(this.connection, `/v1/prepare/bundle/${bundleId}/deactivate`, {});
|
|
116
116
|
}
|
|
117
|
+
// ============================================================
|
|
118
|
+
// Artifact Operations (Phase 1 — Latent Space Coordination)
|
|
119
|
+
// ============================================================
|
|
120
|
+
/**
|
|
121
|
+
* Create a typed cognitive artifact bundle.
|
|
122
|
+
*
|
|
123
|
+
* Artifacts are structured reasoning objects that agents can share,
|
|
124
|
+
* fork, and compose — enabling high-bandwidth knowledge transfer
|
|
125
|
+
* beyond text.
|
|
126
|
+
*
|
|
127
|
+
* @param opts - Artifact name, type, payload, and optional derivation lineage.
|
|
128
|
+
*/
|
|
129
|
+
async createArtifact(opts) {
|
|
130
|
+
const body = {
|
|
131
|
+
name: opts.name,
|
|
132
|
+
description: opts.description,
|
|
133
|
+
cids: opts.cids,
|
|
134
|
+
contributors: opts.contributors,
|
|
135
|
+
bundleType: "artifact",
|
|
136
|
+
artifactType: opts.artifactType,
|
|
137
|
+
artifact: opts.artifact,
|
|
138
|
+
};
|
|
139
|
+
if (opts.tags?.length)
|
|
140
|
+
body.tags = opts.tags;
|
|
141
|
+
if (opts.domain)
|
|
142
|
+
body.domain = opts.domain;
|
|
143
|
+
if (opts.summary)
|
|
144
|
+
body.summary = opts.summary;
|
|
145
|
+
if (opts.derivedFrom?.length)
|
|
146
|
+
body.derivedFrom = opts.derivedFrom;
|
|
147
|
+
return prepareSignRelay(this.connection, "/v1/prepare/bundle", body);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Fork an existing artifact — create a new artifact derived from it.
|
|
151
|
+
*
|
|
152
|
+
* Convenience method that sets derivedFrom with "forked" relationship.
|
|
153
|
+
*
|
|
154
|
+
* @param parentBundleId - The bundle ID to fork from.
|
|
155
|
+
* @param opts - New artifact options (must include modified payload).
|
|
156
|
+
*/
|
|
157
|
+
async forkArtifact(parentBundleId, opts) {
|
|
158
|
+
return this.createArtifact({
|
|
159
|
+
...opts,
|
|
160
|
+
derivedFrom: [{ bundleId: parentBundleId, relationship: "forked" }],
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Get the artifact payload for a bundle.
|
|
165
|
+
*
|
|
166
|
+
* @param bundleId - The on-chain bundle ID.
|
|
167
|
+
* @returns Artifact document with type, provenance, and payload.
|
|
168
|
+
*/
|
|
169
|
+
async getArtifact(bundleId) {
|
|
170
|
+
return this.connection.request("GET", `/v1/bundles/${bundleId}/artifact`);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Get the lineage (ancestor chain) for an artifact bundle.
|
|
174
|
+
*
|
|
175
|
+
* @param bundleId - The on-chain bundle ID.
|
|
176
|
+
* @param maxDepth - Maximum depth to traverse (default 10).
|
|
177
|
+
*/
|
|
178
|
+
async getLineage(bundleId, maxDepth = 10) {
|
|
179
|
+
return this.connection.request("GET", `/v1/bundles/${bundleId}/lineage?maxDepth=${maxDepth}`);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* List bundles that forked from this artifact.
|
|
183
|
+
*
|
|
184
|
+
* @param bundleId - The on-chain bundle ID.
|
|
185
|
+
*/
|
|
186
|
+
async listForks(bundleId, limit = 20, offset = 0) {
|
|
187
|
+
return this.connection.request("GET", `/v1/bundles/${bundleId}/forks?limit=${limit}&offset=${offset}`);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* List artifact bundles with optional type filtering.
|
|
191
|
+
*
|
|
192
|
+
* @param opts - Filter by artifact type or derivation parent.
|
|
193
|
+
*/
|
|
194
|
+
async listArtifacts(opts) {
|
|
195
|
+
const params = new URLSearchParams();
|
|
196
|
+
if (opts?.type)
|
|
197
|
+
params.set("type", opts.type);
|
|
198
|
+
if (opts?.derivedFrom !== undefined)
|
|
199
|
+
params.set("derivedFrom", String(opts.derivedFrom));
|
|
200
|
+
if (opts?.limit !== undefined)
|
|
201
|
+
params.set("limit", String(opts.limit));
|
|
202
|
+
if (opts?.offset !== undefined)
|
|
203
|
+
params.set("offset", String(opts.offset));
|
|
204
|
+
const qs = params.toString();
|
|
205
|
+
return this.connection.request("GET", `/v1/artifacts${qs ? `?${qs}` : ""}`);
|
|
206
|
+
}
|
|
117
207
|
}
|
|
118
208
|
//# sourceMappingURL=bundles.js.map
|
package/dist/bundles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundles.js","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"bundles.js","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AA+ChD,MAAM,OAAO,aAAa;IACP,UAAU,CAAoB;IAE/C,YAAY,U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, evidence,
|
|
5
|
+
* decisions, open_questions, constraints, artifacts, evaluators),
|
|
6
|
+
* cross-region linking, batch mutations, and export to artifact.
|
|
7
|
+
*
|
|
8
|
+
* @module cognitiveWorkspace
|
|
9
|
+
*/
|
|
10
|
+
import type { ConnectionManager } from "./connection.js";
|
|
11
|
+
export type CognitiveRegion = "hypotheses" | "evidence" | "decisions" | "open_questions" | "constraints" | "artifacts" | "evaluators";
|
|
12
|
+
export type LinkType = "supports" | "contradicts" | "addresses" | "produces" | "requires";
|
|
13
|
+
export interface CognitiveItem {
|
|
14
|
+
id: string;
|
|
15
|
+
workspaceId: string;
|
|
16
|
+
region: CognitiveRegion;
|
|
17
|
+
itemId: string;
|
|
18
|
+
content: Record<string, unknown>;
|
|
19
|
+
status: string | null;
|
|
20
|
+
confidence: number | null;
|
|
21
|
+
addedBy: string;
|
|
22
|
+
addedAt: string;
|
|
23
|
+
version: number;
|
|
24
|
+
supersedes: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface StateLink {
|
|
27
|
+
id: string;
|
|
28
|
+
workspaceId: string;
|
|
29
|
+
fromRegion: string;
|
|
30
|
+
fromItemId: string;
|
|
31
|
+
toRegion: string;
|
|
32
|
+
toItemId: string;
|
|
33
|
+
linkType: LinkType;
|
|
34
|
+
strength: number | null;
|
|
35
|
+
addedBy: string;
|
|
36
|
+
addedAt: string;
|
|
37
|
+
}
|
|
38
|
+
export interface WorkspaceSummary {
|
|
39
|
+
workspace: {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
summary: Record<string, number>;
|
|
44
|
+
narrative: string;
|
|
45
|
+
regions: Record<string, CognitiveItem[]>;
|
|
46
|
+
}
|
|
47
|
+
export interface RegionMutationOp {
|
|
48
|
+
op: "add" | "transition" | "link" | "remove" | "update";
|
|
49
|
+
region?: CognitiveRegion;
|
|
50
|
+
itemId?: string;
|
|
51
|
+
item?: Record<string, unknown>;
|
|
52
|
+
newStatus?: string;
|
|
53
|
+
content?: Record<string, unknown>;
|
|
54
|
+
confidence?: number;
|
|
55
|
+
from?: {
|
|
56
|
+
region: string;
|
|
57
|
+
itemId: string;
|
|
58
|
+
};
|
|
59
|
+
to?: {
|
|
60
|
+
region: string;
|
|
61
|
+
itemId: string;
|
|
62
|
+
};
|
|
63
|
+
linkType?: LinkType;
|
|
64
|
+
strength?: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Gateway client for cognitive workspace operations.
|
|
68
|
+
*/
|
|
69
|
+
export declare class CognitiveWorkspaceManager {
|
|
70
|
+
private readonly conn;
|
|
71
|
+
constructor(conn: ConnectionManager);
|
|
72
|
+
/** Get onboarding summary of a workspace's cognitive state. */
|
|
73
|
+
getSummary(workspaceId: string): Promise<WorkspaceSummary>;
|
|
74
|
+
/** Get all cognitive regions and their items. */
|
|
75
|
+
getAllRegions(workspaceId: string): Promise<{
|
|
76
|
+
workspaceId: string;
|
|
77
|
+
regions: Record<string, CognitiveItem[]>;
|
|
78
|
+
}>;
|
|
79
|
+
/** Get items in a specific region, optionally filtered by status. */
|
|
80
|
+
getRegion(workspaceId: string, region: CognitiveRegion, status?: string): Promise<CognitiveItem[]>;
|
|
81
|
+
/** Get a specific item by region and item ID. */
|
|
82
|
+
getItem(workspaceId: string, region: CognitiveRegion, itemId: string): Promise<CognitiveItem | null>;
|
|
83
|
+
/** Add or update an item in a cognitive region. */
|
|
84
|
+
addItem(workspaceId: string, region: CognitiveRegion, itemId: string, content: Record<string, unknown>, opts?: {
|
|
85
|
+
status?: string;
|
|
86
|
+
confidence?: number;
|
|
87
|
+
supersedes?: string;
|
|
88
|
+
}): Promise<CognitiveItem>;
|
|
89
|
+
/** Transition an item's status. */
|
|
90
|
+
transitionStatus(workspaceId: string, region: CognitiveRegion, itemId: string, newStatus: string): Promise<CognitiveItem>;
|
|
91
|
+
/** Remove an item from a region. */
|
|
92
|
+
removeItem(workspaceId: string, region: CognitiveRegion, itemId: string): Promise<{
|
|
93
|
+
removed: boolean;
|
|
94
|
+
}>;
|
|
95
|
+
/** Create a cross-region link between two items. */
|
|
96
|
+
addLink(workspaceId: string, fromRegion: string, fromItemId: string, toRegion: string, toItemId: string, linkType: LinkType, strength?: number): Promise<StateLink>;
|
|
97
|
+
/** Get all cross-region links. */
|
|
98
|
+
getLinks(workspaceId: string): Promise<StateLink[]>;
|
|
99
|
+
/** Execute a batch of region mutations. */
|
|
100
|
+
batchMutate(workspaceId: string, operations: RegionMutationOp[]): Promise<{
|
|
101
|
+
applied: number;
|
|
102
|
+
errors: string[];
|
|
103
|
+
}>;
|
|
104
|
+
/** Export cognitive state as a CRO-compatible artifact payload. */
|
|
105
|
+
exportAsArtifact(workspaceId: string): Promise<Record<string, unknown>>;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=cognitiveWorkspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cognitiveWorkspace.d.ts","sourceRoot":"","sources":["../src/cognitiveWorkspace.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMzD,MAAM,MAAM,eAAe,GACvB,YAAY,GAAG,UAAU,GAAG,WAAW,GACvC,gBAAgB,GAAG,aAAa,GAAG,WAAW,GAAG,YAAY,CAAC;AAElE,MAAM,MAAM,QAAQ,GAChB,UAAU,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;AAEvE,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE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vB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC;IAMzB,oCAAoC;IAC9B,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAI7G,oDAAoD;IAC9C,OAAO,CACX,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,SAAS,CAAC;IAWrB,kCAAkC;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAKzD,2CAA2C;IACrC,WAAW,CACf,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,gBAAgB,EAAE,GAC7B,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAMjD,mEAAmE;IAC7D,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAI9E"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cognitive Workspace helpers — Phase 4 of Latent Space Coordination.
|
|
3
|
+
*
|
|
4
|
+
* Typed cognitive state spaces with 7 regions (hypotheses, evidence,
|
|
5
|
+
* decisions, open_questions, constraints, artifacts, evaluators),
|
|
6
|
+
* cross-region linking, batch mutations, and export to artifact.
|
|
7
|
+
*
|
|
8
|
+
* @module cognitiveWorkspace
|
|
9
|
+
*/
|
|
10
|
+
/* ------------------------------------------------------------------ */
|
|
11
|
+
/* Manager */
|
|
12
|
+
/* ------------------------------------------------------------------ */
|
|
13
|
+
/**
|
|
14
|
+
* Gateway client for cognitive workspace operations.
|
|
15
|
+
*/
|
|
16
|
+
export class CognitiveWorkspaceManager {
|
|
17
|
+
conn;
|
|
18
|
+
constructor(conn) {
|
|
19
|
+
this.conn = conn;
|
|
20
|
+
}
|
|
21
|
+
/** Get onboarding summary of a workspace's cognitive state. */
|
|
22
|
+
async getSummary(workspaceId) {
|
|
23
|
+
const res = await this.conn.request("GET", `/v1/workspaces/${workspaceId}/summary`);
|
|
24
|
+
return res;
|
|
25
|
+
}
|
|
26
|
+
/** Get all cognitive regions and their items. */
|
|
27
|
+
async getAllRegions(workspaceId) {
|
|
28
|
+
return this.conn.request("GET", `/v1/workspaces/${workspaceId}/cognitive`);
|
|
29
|
+
}
|
|
30
|
+
/** Get items in a specific region, optionally filtered by status. */
|
|
31
|
+
async getRegion(workspaceId, region, status) {
|
|
32
|
+
const params = new URLSearchParams();
|
|
33
|
+
if (status)
|
|
34
|
+
params.set("status", status);
|
|
35
|
+
const qs = params.toString();
|
|
36
|
+
const res = await this.conn.request("GET", `/v1/workspaces/${workspaceId}/cognitive/${region}${qs ? `?${qs}` : ""}`);
|
|
37
|
+
return res.items ?? [];
|
|
38
|
+
}
|
|
39
|
+
/** Get a specific item by region and item ID. */
|
|
40
|
+
async getItem(workspaceId, region, itemId) {
|
|
41
|
+
try {
|
|
42
|
+
return await this.conn.request("GET", `/v1/workspaces/${workspaceId}/cognitive/${region}/${itemId}`);
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/** Add or update an item in a cognitive region. */
|
|
49
|
+
async addItem(workspaceId, region, itemId, content, opts) {
|
|
50
|
+
return this.conn.request("POST", `/v1/workspaces/${workspaceId}/cognitive/${region}`, {
|
|
51
|
+
itemId,
|
|
52
|
+
content,
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/** Transition an item's status. */
|
|
57
|
+
async transitionStatus(workspaceId, region, itemId, newStatus) {
|
|
58
|
+
return this.conn.request("POST", `/v1/workspaces/${workspaceId}/cognitive/${region}/${itemId}/transition`, {
|
|
59
|
+
newStatus,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/** Remove an item from a region. */
|
|
63
|
+
async removeItem(workspaceId, region, itemId) {
|
|
64
|
+
return this.conn.request("DELETE", `/v1/workspaces/${workspaceId}/cognitive/${region}/${itemId}`);
|
|
65
|
+
}
|
|
66
|
+
/** Create a cross-region link between two items. */
|
|
67
|
+
async addLink(workspaceId, fromRegion, fromItemId, toRegion, toItemId, linkType, strength) {
|
|
68
|
+
return this.conn.request("POST", `/v1/workspaces/${workspaceId}/cognitive-links`, {
|
|
69
|
+
fromRegion,
|
|
70
|
+
fromItemId,
|
|
71
|
+
toRegion,
|
|
72
|
+
toItemId,
|
|
73
|
+
linkType,
|
|
74
|
+
strength,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/** Get all cross-region links. */
|
|
78
|
+
async getLinks(workspaceId) {
|
|
79
|
+
const res = await this.conn.request("GET", `/v1/workspaces/${workspaceId}/cognitive-links`);
|
|
80
|
+
return res.links ?? [];
|
|
81
|
+
}
|
|
82
|
+
/** Execute a batch of region mutations. */
|
|
83
|
+
async batchMutate(workspaceId, operations) {
|
|
84
|
+
return this.conn.request("POST", `/v1/workspaces/${workspaceId}/cognitive/mutate`, {
|
|
85
|
+
operations,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/** Export cognitive state as a CRO-compatible artifact payload. */
|
|
89
|
+
async exportAsArtifact(workspaceId) {
|
|
90
|
+
const res = await this.conn.request("POST", `/v1/workspaces/${workspaceId}/cognitive/export`, {});
|
|
91
|
+
return res.artifact ?? res;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=cognitiveWorkspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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AAkC;IAClC,KAAK,CAAC,QAAQ,CAAC,WAAmB;QAChC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,kBAAkB,WAAW,kBAAkB,CAAC,CAAC;QAC5F,OAAQ,GAAW,CAAC,KAAK,IAAI,EAAE,CAAC;IAClC,CAAC;IAED,2CAA2C;IAC3C,KAAK,CAAC,WAAW,CACf,WAAmB,EACnB,UAA8B;QAE9B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,kBAAkB,WAAW,mBAAmB,EAAE;YACjF,UAAU;SACX,CAAQ,CAAC;IACZ,CAAC;IAED,mEAAmE;IACnE,KAAK,CAAC,gBAAgB,CAAC,WAAmB;QACxC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,kBAAkB,WAAW,mBAAmB,EAAE,EAAE,CAAC,CAAC;QAClG,OAAQ,GAAW,CAAC,QAAQ,IAAI,GAAG,CAAC;IACtC,CAAC;CACF"}
|
package/dist/cro.d.ts
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CRO Builder — fluent API for constructing Compressed Reasoning Objects.
|
|
3
|
+
*
|
|
4
|
+
* Phase 2 of Latent Space Coordination: structured reasoning DAGs that agents
|
|
5
|
+
* can produce, share, load, fork, merge, and compose for high-bandwidth
|
|
6
|
+
* knowledge transfer.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* const cro = new CROBuilder("smart-contracts", "Analyze reentrancy vectors")
|
|
10
|
+
* .addAssumption("a1", "Standard ERC-20 behavior", 0.95)
|
|
11
|
+
* .addNode({ id: "obs1", type: "observation", content: "...", confidence: 0.9 })
|
|
12
|
+
* .addNode({ id: "hyp1", type: "hypothesis", content: "...", confidence: 0.7 })
|
|
13
|
+
* .addEdge("obs1", "hyp1", "supports", 0.8)
|
|
14
|
+
* .conclude("No critical reentrancy found", 0.85, ["obs1", "hyp1"])
|
|
15
|
+
* .build();
|
|
16
|
+
*
|
|
17
|
+
* @module cro
|
|
18
|
+
*/
|
|
19
|
+
import type { ConnectionManager } from "./connection.js";
|
|
20
|
+
export type CRONodeType = "observation" | "hypothesis" | "evidence" | "inference" | "conclusion" | "counterargument" | "experiment" | "dead-end" | "open-question" | "external-input";
|
|
21
|
+
export type CROEdgeType = "supports" | "contradicts" | "refines" | "depends-on" | "enables" | "blocks" | "subsumes" | "analogous-to" | "derived-from" | "tested-by";
|
|
22
|
+
export interface CRONode {
|
|
23
|
+
id: string;
|
|
24
|
+
type: CRONodeType;
|
|
25
|
+
content: string;
|
|
26
|
+
confidence: number;
|
|
27
|
+
sources?: Array<{
|
|
28
|
+
type: "content-cid" | "bundle" | "url" | "agent" | "on-chain";
|
|
29
|
+
ref: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
}>;
|
|
32
|
+
metadata?: {
|
|
33
|
+
addedBy?: string;
|
|
34
|
+
addedAt?: string;
|
|
35
|
+
revisedFrom?: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface CROEdge {
|
|
39
|
+
from: string;
|
|
40
|
+
to: string;
|
|
41
|
+
type: CROEdgeType;
|
|
42
|
+
strength?: number;
|
|
43
|
+
explanation?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface CROConclusion {
|
|
46
|
+
statement: string;
|
|
47
|
+
confidence: number;
|
|
48
|
+
supportingNodes: string[];
|
|
49
|
+
}
|
|
50
|
+
export interface CROAlternative {
|
|
51
|
+
statement: string;
|
|
52
|
+
confidence: number;
|
|
53
|
+
conditions: string;
|
|
54
|
+
supportingNodes?: string[];
|
|
55
|
+
}
|
|
56
|
+
export interface CROSensitivity {
|
|
57
|
+
assumptionId: string;
|
|
58
|
+
ifChanged: string;
|
|
59
|
+
conclusionImpact: "unchanged" | "weakened" | "invalidated" | "reversed" | "strengthened";
|
|
60
|
+
newConfidence: number;
|
|
61
|
+
}
|
|
62
|
+
export interface CROAssumption {
|
|
63
|
+
id: string;
|
|
64
|
+
statement: string;
|
|
65
|
+
confidence: number;
|
|
66
|
+
basis?: string;
|
|
67
|
+
falsifiable?: boolean;
|
|
68
|
+
testMethod?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface CROConstraint {
|
|
71
|
+
id: string;
|
|
72
|
+
statement: string;
|
|
73
|
+
type: "hard" | "soft" | "preference";
|
|
74
|
+
source?: string;
|
|
75
|
+
weight?: number;
|
|
76
|
+
}
|
|
77
|
+
export interface ReasoningObject {
|
|
78
|
+
context: {
|
|
79
|
+
domain: string;
|
|
80
|
+
goal: {
|
|
81
|
+
statement: string;
|
|
82
|
+
successCriteria?: string[];
|
|
83
|
+
scope?: {
|
|
84
|
+
includes?: string[];
|
|
85
|
+
excludes?: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
assumptions?: CROAssumption[];
|
|
89
|
+
constraints?: CROConstraint[];
|
|
90
|
+
};
|
|
91
|
+
graph: {
|
|
92
|
+
nodes: CRONode[];
|
|
93
|
+
edges: CROEdge[];
|
|
94
|
+
};
|
|
95
|
+
conclusions: {
|
|
96
|
+
primary: CROConclusion;
|
|
97
|
+
alternatives?: CROAlternative[];
|
|
98
|
+
sensitivity?: CROSensitivity[];
|
|
99
|
+
};
|
|
100
|
+
openItems?: {
|
|
101
|
+
questions?: Array<{
|
|
102
|
+
question: string;
|
|
103
|
+
valueOfResolution?: number;
|
|
104
|
+
suggestedApproach?: string;
|
|
105
|
+
relatedNodes?: string[];
|
|
106
|
+
}>;
|
|
107
|
+
blockedOn?: Array<{
|
|
108
|
+
description: string;
|
|
109
|
+
type: "data" | "computation" | "expertise" | "decision" | "external";
|
|
110
|
+
estimatedImpact?: number;
|
|
111
|
+
}>;
|
|
112
|
+
suggestedExperiments?: Array<{
|
|
113
|
+
description: string;
|
|
114
|
+
expectedOutcome?: string;
|
|
115
|
+
costEstimate?: string;
|
|
116
|
+
informationGain?: number;
|
|
117
|
+
}>;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export declare class CROBuilder {
|
|
121
|
+
private domain;
|
|
122
|
+
private goalStatement;
|
|
123
|
+
private successCriteria;
|
|
124
|
+
private scopeIncludes;
|
|
125
|
+
private scopeExcludes;
|
|
126
|
+
private assumptions;
|
|
127
|
+
private constraints;
|
|
128
|
+
private nodes;
|
|
129
|
+
private edges;
|
|
130
|
+
private primaryConclusion;
|
|
131
|
+
private alternatives;
|
|
132
|
+
private sensitivity;
|
|
133
|
+
private questions;
|
|
134
|
+
private blockers;
|
|
135
|
+
private experiments;
|
|
136
|
+
constructor(domain: string, goalStatement: string);
|
|
137
|
+
/** Add a success criterion for the goal. */
|
|
138
|
+
addCriterion(criterion: string): this;
|
|
139
|
+
/** Set scope boundaries. */
|
|
140
|
+
setScope(includes?: string[], excludes?: string[]): this;
|
|
141
|
+
/** Add an assumption with confidence. */
|
|
142
|
+
addAssumption(id: string, statement: string, confidence: number, opts?: {
|
|
143
|
+
basis?: string;
|
|
144
|
+
falsifiable?: boolean;
|
|
145
|
+
testMethod?: string;
|
|
146
|
+
}): this;
|
|
147
|
+
/** Add a constraint. */
|
|
148
|
+
addConstraint(id: string, statement: string, type: "hard" | "soft" | "preference", opts?: {
|
|
149
|
+
source?: string;
|
|
150
|
+
weight?: number;
|
|
151
|
+
}): this;
|
|
152
|
+
/** Add a reasoning node to the graph. */
|
|
153
|
+
addNode(node: CRONode): this;
|
|
154
|
+
/** Shortcut: add an observation node. */
|
|
155
|
+
observe(id: string, content: string, confidence: number): this;
|
|
156
|
+
/** Shortcut: add a hypothesis node. */
|
|
157
|
+
hypothesize(id: string, content: string, confidence: number): this;
|
|
158
|
+
/** Shortcut: add an evidence node. */
|
|
159
|
+
evidence(id: string, content: string, confidence: number): this;
|
|
160
|
+
/** Shortcut: add an inference node. */
|
|
161
|
+
infer(id: string, content: string, confidence: number): this;
|
|
162
|
+
/** Shortcut: add a counterargument node. */
|
|
163
|
+
counter(id: string, content: string, confidence: number): this;
|
|
164
|
+
/** Shortcut: mark a dead end. */
|
|
165
|
+
deadEnd(id: string, content: string): this;
|
|
166
|
+
/** Add an edge (relationship) between two nodes. */
|
|
167
|
+
addEdge(from: string, to: string, type: CROEdgeType, strength?: number, explanation?: string): this;
|
|
168
|
+
/** Shortcut: node A supports node B. */
|
|
169
|
+
supports(from: string, to: string, strength?: number): this;
|
|
170
|
+
/** Shortcut: node A contradicts node B. */
|
|
171
|
+
contradicts(from: string, to: string, strength?: number): this;
|
|
172
|
+
/** Shortcut: node A refines node B. */
|
|
173
|
+
refines(from: string, to: string, strength?: number): this;
|
|
174
|
+
/** Shortcut: node A depends on node B. */
|
|
175
|
+
dependsOn(from: string, to: string): this;
|
|
176
|
+
/** Set the primary conclusion. */
|
|
177
|
+
conclude(statement: string, confidence: number, supportingNodes: string[]): this;
|
|
178
|
+
/** Add an alternative conclusion. */
|
|
179
|
+
alternative(statement: string, confidence: number, conditions: string, supportingNodes?: string[]): this;
|
|
180
|
+
/** Add a sensitivity analysis entry. */
|
|
181
|
+
addSensitivity(assumptionId: string, ifChanged: string, impact: CROSensitivity["conclusionImpact"], newConfidence: number): this;
|
|
182
|
+
/** Add an open question. */
|
|
183
|
+
addQuestion(question: string, opts?: {
|
|
184
|
+
value?: number;
|
|
185
|
+
approach?: string;
|
|
186
|
+
nodes?: string[];
|
|
187
|
+
}): this;
|
|
188
|
+
/** Add a blocker. */
|
|
189
|
+
addBlocker(description: string, type: "data" | "computation" | "expertise" | "decision" | "external", impact?: number): this;
|
|
190
|
+
/** Add a suggested experiment. */
|
|
191
|
+
addExperiment(description: string, opts?: {
|
|
192
|
+
expected?: string;
|
|
193
|
+
cost?: string;
|
|
194
|
+
infoGain?: number;
|
|
195
|
+
}): this;
|
|
196
|
+
/** Build the ReasoningObject. Throws if primary conclusion is missing. */
|
|
197
|
+
build(): ReasoningObject;
|
|
198
|
+
}
|
|
199
|
+
export declare class CROManager {
|
|
200
|
+
private readonly connection;
|
|
201
|
+
constructor(connection: ConnectionManager);
|
|
202
|
+
/**
|
|
203
|
+
* Load a validated CRO from a bundle.
|
|
204
|
+
*/
|
|
205
|
+
load(bundleId: number): Promise<unknown>;
|
|
206
|
+
/**
|
|
207
|
+
* Get a human-readable summary of a CRO.
|
|
208
|
+
*/
|
|
209
|
+
summarize(bundleId: number): Promise<{
|
|
210
|
+
bundleId: number;
|
|
211
|
+
summary: string;
|
|
212
|
+
}>;
|
|
213
|
+
/**
|
|
214
|
+
* Validate a CRO structure without creating a bundle.
|
|
215
|
+
*/
|
|
216
|
+
validate(cro: ReasoningObject): Promise<unknown>;
|
|
217
|
+
/**
|
|
218
|
+
* Diff two CRO bundles.
|
|
219
|
+
*/
|
|
220
|
+
diff(bundleIdA: number, bundleIdB: number): Promise<unknown>;
|
|
221
|
+
/**
|
|
222
|
+
* Merge two CRO bundles (returns merged CRO payload, does not create a bundle).
|
|
223
|
+
*/
|
|
224
|
+
merge(bundleIdA: number, bundleIdB: number, strategy?: "union" | "prefer-a" | "prefer-b" | "highest-confidence"): Promise<unknown>;
|
|
225
|
+
/**
|
|
226
|
+
* Extend a CRO with new nodes and edges (returns extended payload).
|
|
227
|
+
*/
|
|
228
|
+
extend(bundleId: number, nodes: CRONode[], edges?: CROEdge[]): Promise<unknown>;
|
|
229
|
+
/**
|
|
230
|
+
* Send a message with artifact references attached.
|
|
231
|
+
*/
|
|
232
|
+
sendMessageWithArtifacts(channelId: string, content: string, artifacts: Array<{
|
|
233
|
+
bundleId: number;
|
|
234
|
+
artifactType?: string;
|
|
235
|
+
relationship?: string;
|
|
236
|
+
nodeHighlights?: string[];
|
|
237
|
+
summary?: string;
|
|
238
|
+
}>, opts?: {
|
|
239
|
+
messageType?: string;
|
|
240
|
+
metadata?: Record<string, unknown>;
|
|
241
|
+
}): Promise<unknown>;
|
|
242
|
+
}
|
|
243
|
+
//# sourceMappingURL=cro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cro.d.ts","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