omp-fabric 1.23.0 → 1.24.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/CHANGELOG.md +22 -0
- package/dist/capture/wrapper.d.ts.map +1 -1
- package/dist/chunks/{chunk-SDZXNTBF.js → chunk-2DY7NDAZ.js} +2 -2
- package/dist/chunks/{chunk-DTG3DYVC.js → chunk-2HOIGAHB.js} +3 -3
- package/dist/chunks/{chunk-3GMSYFLT.js → chunk-5EZWO4C5.js} +3 -3
- package/dist/chunks/{chunk-BPMSLBX4.js → chunk-5LNZXB4X.js} +2 -2
- package/dist/chunks/{chunk-RA2IB2QT.js → chunk-5P4VR2IZ.js} +4 -4
- package/dist/chunks/{chunk-R4EFMCIY.js → chunk-6DJFJLM6.js} +2 -2
- package/dist/chunks/{chunk-ZQ72MAHY.js → chunk-7OEFSXWZ.js} +3 -2
- package/dist/chunks/{chunk-ZQ72MAHY.js.map → chunk-7OEFSXWZ.js.map} +2 -2
- package/dist/chunks/{chunk-WCV26AOT.js → chunk-CBQOS3IW.js} +112 -4
- package/dist/chunks/chunk-CBQOS3IW.js.map +7 -0
- package/dist/chunks/{chunk-GUJNTA7Z.js → chunk-H63XBYD3.js} +4 -2
- package/dist/chunks/chunk-H63XBYD3.js.map +7 -0
- package/dist/chunks/{chunk-4J65SMNI.js → chunk-I5ZKJNKL.js} +173 -71
- package/dist/chunks/chunk-I5ZKJNKL.js.map +7 -0
- package/dist/chunks/{chunk-YBNCEX5E.js → chunk-IH3JJDYL.js} +2 -2
- package/dist/chunks/{chunk-52JBWP2C.js → chunk-K5YUDXMV.js} +2 -2
- package/dist/chunks/{chunk-MQSRZC2O.js → chunk-MJOGV6CR.js} +2 -2
- package/dist/chunks/chunk-QW5LEEFV.js +130 -0
- package/dist/chunks/chunk-QW5LEEFV.js.map +7 -0
- package/dist/chunks/{chunk-LNP6JVCZ.js → chunk-QYDOKSGI.js} +5 -4
- package/dist/chunks/chunk-QYDOKSGI.js.map +7 -0
- package/dist/chunks/{chunk-P4GPBAQS.js → chunk-RT6AUW5S.js} +3 -3
- package/dist/chunks/{chunk-ZFMSJLQE.js → chunk-S3CWAHSO.js} +11 -1
- package/dist/chunks/chunk-S3CWAHSO.js.map +7 -0
- package/dist/compaction/hook.d.ts +1 -0
- package/dist/compaction/hook.d.ts.map +1 -1
- package/dist/compaction/hook.js +4 -4
- package/dist/compaction/lcm-addresses.d.ts.map +1 -1
- package/dist/compaction/lcm-maintenance.d.ts +2 -0
- package/dist/compaction/lcm-maintenance.d.ts.map +1 -1
- package/dist/compaction/lcm-model.d.ts +1 -0
- package/dist/compaction/lcm-model.d.ts.map +1 -1
- package/dist/compaction/lcm-recovery.d.ts +7 -0
- package/dist/compaction/lcm-recovery.d.ts.map +1 -0
- package/dist/compaction/lcm-runtime.d.ts +6 -1
- package/dist/compaction/lcm-runtime.d.ts.map +1 -1
- package/dist/compaction/lcm-runtime.js +281 -93
- package/dist/compaction/lcm-runtime.js.map +3 -3
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-registry.js +3 -3
- package/dist/core/omp-tools.d.ts +4 -0
- package/dist/core/omp-tools.d.ts.map +1 -1
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/core/tool-ownership.d.ts.map +1 -1
- package/dist/entropy/index.js +6 -6
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +15 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -18
- package/dist/index.js.map +3 -3
- package/dist/memory/discovery.js +5 -5
- package/dist/memory/lcm-adapter.d.ts +7 -2
- package/dist/memory/lcm-adapter.d.ts.map +1 -1
- package/dist/memory/normalize.js +4 -4
- package/dist/memory/search.js +5 -5
- package/dist/providers/memory-provider.d.ts +2 -1
- package/dist/providers/memory-provider.d.ts.map +1 -1
- package/dist/providers/memory-provider.js +8 -8
- package/dist/residency/host.js +10 -10
- package/dist/residency/omp-entry.js +10 -10
- package/dist/runtime/core-override-guest-types.js +1 -1
- package/dist/runtime/node-process-runtime.js +1 -1
- package/dist/storage/lcm-identity.d.ts +4 -0
- package/dist/storage/lcm-identity.d.ts.map +1 -1
- package/dist/storage/lcm-ledger.d.ts +11 -2
- package/dist/storage/lcm-ledger.d.ts.map +1 -1
- package/dist/storage/lcm-migration.d.ts.map +1 -1
- package/dist/ui/settings.d.ts.map +1 -1
- package/dist/ui/settings.js +22 -2
- package/dist/ui/settings.js.map +2 -2
- package/docs/compaction.md +16 -4
- package/docs/configuration.md +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-4J65SMNI.js.map +0 -7
- package/dist/chunks/chunk-GUJNTA7Z.js.map +0 -7
- package/dist/chunks/chunk-LNP6JVCZ.js.map +0 -7
- package/dist/chunks/chunk-NX2G7BRO.js +0 -87
- package/dist/chunks/chunk-NX2G7BRO.js.map +0 -7
- package/dist/chunks/chunk-WCV26AOT.js.map +0 -7
- package/dist/chunks/chunk-ZFMSJLQE.js.map +0 -7
- /package/dist/chunks/{chunk-SDZXNTBF.js.map → chunk-2DY7NDAZ.js.map} +0 -0
- /package/dist/chunks/{chunk-DTG3DYVC.js.map → chunk-2HOIGAHB.js.map} +0 -0
- /package/dist/chunks/{chunk-3GMSYFLT.js.map → chunk-5EZWO4C5.js.map} +0 -0
- /package/dist/chunks/{chunk-BPMSLBX4.js.map → chunk-5LNZXB4X.js.map} +0 -0
- /package/dist/chunks/{chunk-RA2IB2QT.js.map → chunk-5P4VR2IZ.js.map} +0 -0
- /package/dist/chunks/{chunk-R4EFMCIY.js.map → chunk-6DJFJLM6.js.map} +0 -0
- /package/dist/chunks/{chunk-YBNCEX5E.js.map → chunk-IH3JJDYL.js.map} +0 -0
- /package/dist/chunks/{chunk-52JBWP2C.js.map → chunk-K5YUDXMV.js.map} +0 -0
- /package/dist/chunks/{chunk-MQSRZC2O.js.map → chunk-MJOGV6CR.js.map} +0 -0
- /package/dist/chunks/{chunk-P4GPBAQS.js.map → chunk-RT6AUW5S.js.map} +0 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import {
|
|
2
|
+
utf8Bytes
|
|
3
|
+
} from "./chunk-3XPR2AZL.js";
|
|
4
|
+
|
|
5
|
+
// src/storage/lcm-identity.ts
|
|
6
|
+
import fs from "node:fs";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import crypto from "node:crypto";
|
|
9
|
+
var hash = (value) => crypto.createHash("sha256").update(value).digest("hex");
|
|
10
|
+
var normalize = (target) => path.normalize(path.resolve(target));
|
|
11
|
+
var statIdentity = (target) => {
|
|
12
|
+
try {
|
|
13
|
+
const stats = fs.statSync(target);
|
|
14
|
+
return { device: Number(stats.dev), inode: Number(stats.ino) };
|
|
15
|
+
} catch {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
var encodeCanonical = (item) => {
|
|
20
|
+
if (Array.isArray(item)) return `[${item.map(encodeCanonical).join(",")}]`;
|
|
21
|
+
if (item !== null && typeof item === "object") return `{${Object.keys(item).sort().map((key) => `${JSON.stringify(key)}:${encodeCanonical(item[key])}`).join(",")}}`;
|
|
22
|
+
return JSON.stringify(item);
|
|
23
|
+
};
|
|
24
|
+
function canonicalLcmPayload(value) {
|
|
25
|
+
return encodeCanonical(JSON.parse(JSON.stringify(value)));
|
|
26
|
+
}
|
|
27
|
+
function hashLcmPayload(value) {
|
|
28
|
+
return crypto.createHash("sha256").update(canonicalLcmPayload(value), "utf8").digest("hex");
|
|
29
|
+
}
|
|
30
|
+
var BLOB_PREFIX = "blob:sha256:";
|
|
31
|
+
var SIGNATURE_KEYS = /* @__PURE__ */ new Set(["thinkingSignature", "textSignature", "thoughtSignature"]);
|
|
32
|
+
var VOLATILE_MESSAGE_KEYS = ["retryRecovery"];
|
|
33
|
+
var blobRef = (bytes) => `${BLOB_PREFIX}${crypto.createHash("sha256").update(bytes).digest("hex")}`;
|
|
34
|
+
var imageDataRef = (data) => data.startsWith(BLOB_PREFIX) ? data : blobRef(Buffer.from(data, "base64"));
|
|
35
|
+
var isImageMime = (value) => typeof value === "string" && value.toLowerCase().startsWith("image/");
|
|
36
|
+
var normalizeNode = (value, key) => {
|
|
37
|
+
if (typeof value === "string") {
|
|
38
|
+
return key === "image_url" && value.startsWith("data:image/") && value.includes(";base64,") ? blobRef(Buffer.from(value, "utf8")) : value;
|
|
39
|
+
}
|
|
40
|
+
if (Array.isArray(value)) return value.map((item) => normalizeNode(item, key));
|
|
41
|
+
if (value === null || typeof value !== "object") return value;
|
|
42
|
+
const record = value;
|
|
43
|
+
const image = typeof record.data === "string" && (record.type === "image" || isImageMime(record.mimeType));
|
|
44
|
+
const generated = record.type === "image_generation_call" && typeof record.result === "string";
|
|
45
|
+
const out = {};
|
|
46
|
+
for (const [childKey, child] of Object.entries(record)) {
|
|
47
|
+
if (SIGNATURE_KEYS.has(childKey)) continue;
|
|
48
|
+
if (image && childKey === "data" || generated && childKey === "result") out[childKey] = imageDataRef(child);
|
|
49
|
+
else out[childKey] = normalizeNode(child, childKey);
|
|
50
|
+
}
|
|
51
|
+
return out;
|
|
52
|
+
};
|
|
53
|
+
function isPrunedLcmEntry(value) {
|
|
54
|
+
if (value === null || typeof value !== "object") return false;
|
|
55
|
+
const message = value.message;
|
|
56
|
+
return message !== null && typeof message === "object" && typeof message.prunedAt === "number";
|
|
57
|
+
}
|
|
58
|
+
function normalizeLcmEntry(value) {
|
|
59
|
+
const normalized = normalizeNode(JSON.parse(JSON.stringify(value)), void 0);
|
|
60
|
+
const message = normalized !== null && typeof normalized === "object" ? normalized.message : void 0;
|
|
61
|
+
if (message !== null && typeof message === "object" && !Array.isArray(message)) {
|
|
62
|
+
const fields = message;
|
|
63
|
+
for (const field of VOLATILE_MESSAGE_KEYS) delete fields[field];
|
|
64
|
+
if (fields.errorId === 0) delete fields.errorId;
|
|
65
|
+
}
|
|
66
|
+
return normalized;
|
|
67
|
+
}
|
|
68
|
+
function canonicalLcmEntry(value) {
|
|
69
|
+
return encodeCanonical(normalizeLcmEntry(value));
|
|
70
|
+
}
|
|
71
|
+
function canonicalProjectIdentity(input) {
|
|
72
|
+
const source = input.recordedCwd?.trim() || input.liveCwd?.trim();
|
|
73
|
+
if (!source) throw new Error("project cwd is required");
|
|
74
|
+
const normalized = normalize(source);
|
|
75
|
+
let canonicalPath = normalized;
|
|
76
|
+
try {
|
|
77
|
+
canonicalPath = fs.realpathSync.native(normalized);
|
|
78
|
+
} catch {
|
|
79
|
+
}
|
|
80
|
+
const ids = statIdentity(canonicalPath);
|
|
81
|
+
const key = ids.device !== void 0 && ids.inode !== void 0 ? `v1:devino:${ids.device}:${ids.inode}` : `v1:path:${canonicalPath}`;
|
|
82
|
+
return { version: 1, key, canonicalPath, ...ids, aliases: [normalized, canonicalPath] };
|
|
83
|
+
}
|
|
84
|
+
function defaultLedgerRoot() {
|
|
85
|
+
return path.join(process.env.XDG_STATE_HOME || path.join(process.env.HOME || ".", ".local", "state"), "omp-fabric", "lcm");
|
|
86
|
+
}
|
|
87
|
+
function defaultLedgerPath(rootDir = defaultLedgerRoot(), projectKey = "default") {
|
|
88
|
+
return path.join(rootDir, `${hash(projectKey).slice(0, 24)}.sqlite`);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// src/compaction/lcm-addresses.ts
|
|
92
|
+
var SOURCES_LABEL = "sources: ";
|
|
93
|
+
var CHILDREN_LABEL = "children: ";
|
|
94
|
+
var renderAddressList = (label, addresses, budget) => {
|
|
95
|
+
if (budget <= 0 || addresses.length === 0) return "";
|
|
96
|
+
const markerReserve = utf8Bytes(`+${addresses.length} older, `);
|
|
97
|
+
const kept = [];
|
|
98
|
+
let used = utf8Bytes(label);
|
|
99
|
+
for (let index = addresses.length - 1; index >= 0; index -= 1) {
|
|
100
|
+
const address = addresses[index];
|
|
101
|
+
const cost = utf8Bytes(kept.length === 0 ? address : `, ${address}`);
|
|
102
|
+
const reserve = index > 0 ? markerReserve : 0;
|
|
103
|
+
if (used + cost + reserve > budget) break;
|
|
104
|
+
used += cost;
|
|
105
|
+
kept.unshift(address);
|
|
106
|
+
}
|
|
107
|
+
if (kept.length === 0) return "";
|
|
108
|
+
const omitted = addresses.length - kept.length;
|
|
109
|
+
return `${label}${omitted > 0 ? `+${omitted} older, ` : ""}${kept.join(", ")}`;
|
|
110
|
+
};
|
|
111
|
+
var lcmRawAddress = (source) => `lcm.raw:${source.sessionId}:${source.entryId}:${source.revision}`;
|
|
112
|
+
var lcmSummaryAddress = (nodeId) => `lcm.summary:${nodeId}`;
|
|
113
|
+
var renderLcmSourceAddresses = (sources, budget) => renderAddressList(SOURCES_LABEL, sources.map(lcmRawAddress), budget);
|
|
114
|
+
var renderLcmChildAddresses = (nodeIds, budget) => renderAddressList(CHILDREN_LABEL, nodeIds.map(lcmSummaryAddress), budget);
|
|
115
|
+
|
|
116
|
+
export {
|
|
117
|
+
hash,
|
|
118
|
+
canonicalLcmPayload,
|
|
119
|
+
hashLcmPayload,
|
|
120
|
+
isPrunedLcmEntry,
|
|
121
|
+
canonicalLcmEntry,
|
|
122
|
+
canonicalProjectIdentity,
|
|
123
|
+
defaultLedgerRoot,
|
|
124
|
+
defaultLedgerPath,
|
|
125
|
+
lcmRawAddress,
|
|
126
|
+
lcmSummaryAddress,
|
|
127
|
+
renderLcmSourceAddresses,
|
|
128
|
+
renderLcmChildAddresses
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=chunk-QW5LEEFV.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/storage/lcm-identity.ts", "../../src/compaction/lcm-addresses.ts"],
|
|
4
|
+
"sourcesContent": ["import fs from \"node:fs\";\nimport path from \"node:path\";\nimport crypto from \"node:crypto\";\n\nexport interface ProjectIdentityInput { recordedCwd?: string; liveCwd?: string }\nexport interface ProjectIdentity { version: 1; key: string; canonicalPath?: string; device?: number; inode?: number; aliases: string[] }\nexport interface SessionEntry { projectKey: string; sessionId: string; entryId: string; revision?: number; role: string; content: string; payloadJson: string; parentEntryId?: string | null; branch?: string | null; recordedCwd?: string; createdAt?: number }\nexport interface RawEntry extends SessionEntry { revision: number; contentHash: string; payloadHash: string; createdAt: number }\nexport interface DeleteConfirmationToken { readonly projectKey: string; readonly value: string; readonly __brand: \"DeleteConfirmationToken\" }\n\nexport const hash = (value: string): string => crypto.createHash(\"sha256\").update(value).digest(\"hex\");\nconst normalize = (target: string): string => path.normalize(path.resolve(target));\nconst statIdentity = (target: string) => { try { const stats = fs.statSync(target); return { device: Number(stats.dev), inode: Number(stats.ino) }; } catch { return {}; } };\n\nconst encodeCanonical = (item: unknown): string => {\n if (Array.isArray(item)) return `[${item.map(encodeCanonical).join(\",\")}]`;\n if (item !== null && typeof item === \"object\") return `{${Object.keys(item).sort().map(key => `${JSON.stringify(key)}:${encodeCanonical((item as Record<string, unknown>)[key])}`).join(\",\")}}`;\n return JSON.stringify(item);\n};\n\nexport function canonicalLcmPayload(value: unknown): string {\n return encodeCanonical(JSON.parse(JSON.stringify(value)));\n}\n\nexport function hashLcmPayload(value: unknown): string { return crypto.createHash(\"sha256\").update(canonicalLcmPayload(value), \"utf8\").digest(\"hex\"); }\n\nconst BLOB_PREFIX = \"blob:sha256:\";\nconst SIGNATURE_KEYS: ReadonlySet<string> = new Set([\"thinkingSignature\", \"textSignature\", \"thoughtSignature\"]);\nconst VOLATILE_MESSAGE_KEYS = [\"retryRecovery\"] as const;\nconst blobRef = (bytes: Buffer): string => `${BLOB_PREFIX}${crypto.createHash(\"sha256\").update(bytes).digest(\"hex\")}`;\nconst imageDataRef = (data: string): string => data.startsWith(BLOB_PREFIX) ? data : blobRef(Buffer.from(data, \"base64\"));\nconst isImageMime = (value: unknown): boolean => typeof value === \"string\" && value.toLowerCase().startsWith(\"image/\");\n\nconst normalizeNode = (value: unknown, key: string | undefined): unknown => {\n if (typeof value === \"string\") {\n return key === \"image_url\" && value.startsWith(\"data:image/\") && value.includes(\";base64,\") ? blobRef(Buffer.from(value, \"utf8\")) : value;\n }\n if (Array.isArray(value)) return value.map(item => normalizeNode(item, key));\n if (value === null || typeof value !== \"object\") return value;\n const record = value as Record<string, unknown>;\n const image = typeof record.data === \"string\" && (record.type === \"image\" || isImageMime(record.mimeType));\n const generated = record.type === \"image_generation_call\" && typeof record.result === \"string\";\n const out: Record<string, unknown> = {};\n for (const [childKey, child] of Object.entries(record)) {\n if (SIGNATURE_KEYS.has(childKey)) continue;\n if ((image && childKey === \"data\") || (generated && childKey === \"result\")) out[childKey] = imageDataRef(child as string);\n else out[childKey] = normalizeNode(child, childKey);\n }\n return out;\n};\n\n/** True for a tool result the host has already replaced with a pruning notice. */\nexport function isPrunedLcmEntry(value: unknown): boolean {\n if (value === null || typeof value !== \"object\") return false;\n const message = (value as Record<string, unknown>).message;\n return message !== null && typeof message === \"object\" && typeof (message as Record<string, unknown>).prunedAt === \"number\";\n}\n\n/** Drops the signatures, externalized blob bytes, retry bookkeeping and zero errorId the host rewrites after the fact. */\nfunction normalizeLcmEntry(value: unknown): unknown {\n const normalized = normalizeNode(JSON.parse(JSON.stringify(value)), undefined);\n const message = normalized !== null && typeof normalized === \"object\" ? (normalized as Record<string, unknown>).message : undefined;\n if (message !== null && typeof message === \"object\" && !Array.isArray(message)) {\n const fields = message as Record<string, unknown>;\n for (const field of VOLATILE_MESSAGE_KEYS) delete fields[field];\n if (fields.errorId === 0) delete fields.errorId;\n }\n return normalized;\n}\n\n/** Canonical JSON of the normalized entry: the stored payload and the source of its identity hash. */\nexport function canonicalLcmEntry(value: unknown): string { return encodeCanonical(normalizeLcmEntry(value)); }\n\nexport function createDeleteConfirmationToken(projectKey: string): DeleteConfirmationToken { return { projectKey, value: hash(`delete:${projectKey}`), __brand: \"DeleteConfirmationToken\" }; }\n\nexport function canonicalProjectIdentity(input: ProjectIdentityInput): ProjectIdentity {\n const source = input.recordedCwd?.trim() || input.liveCwd?.trim();\n if (!source) throw new Error(\"project cwd is required\");\n const normalized = normalize(source);\n let canonicalPath = normalized;\n try { canonicalPath = fs.realpathSync.native(normalized); } catch {}\n const ids = statIdentity(canonicalPath);\n const key = ids.device !== undefined && ids.inode !== undefined ? `v1:devino:${ids.device}:${ids.inode}` : `v1:path:${canonicalPath}`;\n return { version: 1, key, canonicalPath, ...ids, aliases: [normalized, canonicalPath] };\n}\n\nexport function defaultLedgerRoot(): string {\n return path.join(process.env.XDG_STATE_HOME || path.join(process.env.HOME || \".\", \".local\", \"state\"), \"omp-fabric\", \"lcm\");\n}\n\nexport function defaultLedgerPath(rootDir = defaultLedgerRoot(), projectKey = \"default\"): string {\n return path.join(rootDir, `${hash(projectKey).slice(0, 24)}.sqlite`);\n}\n", "import { utf8Bytes } from \"./bounds.js\";\n\nexport interface LcmAddressSource {\n sessionId: string;\n entryId: string;\n revision: number;\n}\n\nconst SOURCES_LABEL = \"sources: \";\nconst CHILDREN_LABEL = \"children: \";\n\nconst renderAddressList = (label: string, addresses: readonly string[], budget: number): string => {\n if (budget <= 0 || addresses.length === 0) return \"\";\n const markerReserve = utf8Bytes(`+${addresses.length} older, `);\n const kept: string[] = [];\n let used = utf8Bytes(label);\n for (let index = addresses.length - 1; index >= 0; index -= 1) {\n const address = addresses[index]!;\n const cost = utf8Bytes(kept.length === 0 ? address : `, ${address}`);\n const reserve = index > 0 ? markerReserve : 0;\n if (used + cost + reserve > budget) break;\n used += cost;\n kept.unshift(address);\n }\n if (kept.length === 0) return \"\";\n const omitted = addresses.length - kept.length;\n return `${label}${omitted > 0 ? `+${omitted} older, ` : \"\"}${kept.join(\", \")}`;\n};\n\nexport const lcmRawAddress = (source: LcmAddressSource): string =>\n `lcm.raw:${source.sessionId}:${source.entryId}:${source.revision}`;\n\nexport const lcmSummaryAddress = (nodeId: string): string => `lcm.summary:${nodeId}`;\n\nexport const renderLcmSourceAddresses = (\n sources: readonly LcmAddressSource[],\n budget: number,\n): string => renderAddressList(SOURCES_LABEL, sources.map(lcmRawAddress), budget);\n\nexport const renderLcmChildAddresses = (\n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
|
+
} from "./chunk-6DJFJLM6.js";
|
|
10
10
|
import {
|
|
11
11
|
THINKING_DIGEST_CUSTOM_TYPE,
|
|
12
12
|
buildThinkingDigest,
|
|
13
13
|
snapshotHandoffSession,
|
|
14
14
|
thinkingTransferPolicy
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5P4VR2IZ.js";
|
|
16
16
|
import {
|
|
17
17
|
isFabricThinking
|
|
18
18
|
} from "./chunk-SKYNDRW5.js";
|
|
19
19
|
import {
|
|
20
20
|
FabricTraceSafeError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-K5YUDXMV.js";
|
|
22
22
|
|
|
23
23
|
// src/capture/wrapper.ts
|
|
24
24
|
var wrapToolDefinition = (definition, ctxFactory) => {
|
|
25
25
|
const execute = definition.execute;
|
|
26
26
|
return {
|
|
27
|
+
...definition,
|
|
27
28
|
name: definition.name,
|
|
28
29
|
label: definition.label,
|
|
29
30
|
description: definition.description,
|
|
@@ -2809,4 +2810,4 @@ export {
|
|
|
2809
2810
|
resolveFabricIdentity,
|
|
2810
2811
|
MainAgentController
|
|
2811
2812
|
};
|
|
2812
|
-
//# sourceMappingURL=chunk-
|
|
2813
|
+
//# sourceMappingURL=chunk-QYDOKSGI.js.map
|