@tangle-network/agent-profile-materialize 0.20.1 → 0.20.3
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/harness.d.ts +0 -2
- package/dist/harness.js +1 -1
- package/dist/plan-normalize.d.ts +0 -3
- package/dist/plan-normalize.js +3 -3
- package/dist/resource-lowering.d.ts +0 -1
- package/dist/resource-lowering.js +1 -1
- package/dist/workspace-apply.d.ts +1 -2
- package/dist/workspace-apply.js +1 -1
- package/package.json +4 -4
package/dist/harness.d.ts
CHANGED
|
@@ -133,8 +133,6 @@ export declare function markMaterializerContextFile(relPath: string, content: st
|
|
|
133
133
|
* An output marker proves ownership before replacement.
|
|
134
134
|
*/
|
|
135
135
|
export declare function isMaterializerOwnedPath(relPath: string): boolean;
|
|
136
|
-
/** The top-level keys this package writes into `opencode.json`. */
|
|
137
|
-
export declare const OPENCODE_CONFIG_KEYS: ReadonlySet<string>;
|
|
138
136
|
/**
|
|
139
137
|
* Whether the file already at owned path `relPath` is this package's own
|
|
140
138
|
* earlier output. A reserved name proves that by itself. Native agent files
|
package/dist/harness.js
CHANGED
|
@@ -259,7 +259,7 @@ export function isMaterializerOwnedPath(relPath) {
|
|
|
259
259
|
MATERIALIZER_SUBAGENT_PATH.test(relPath));
|
|
260
260
|
}
|
|
261
261
|
/** The top-level keys this package writes into `opencode.json`. */
|
|
262
|
-
|
|
262
|
+
const OPENCODE_CONFIG_KEYS = new Set([
|
|
263
263
|
"$schema",
|
|
264
264
|
"instructions",
|
|
265
265
|
"mcp",
|
package/dist/plan-normalize.d.ts
CHANGED
|
@@ -10,9 +10,6 @@ export interface NormalizedPlanFile {
|
|
|
10
10
|
export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
11
11
|
[key: string]: JsonValue;
|
|
12
12
|
};
|
|
13
|
-
export declare function normalizePlanFileRoot(root: PlanFileRoot | undefined): PlanFileRoot;
|
|
14
|
-
export declare function valueAtJsonPath(root: JsonValue, path: readonly (string | number)[]): JsonValue | undefined;
|
|
15
|
-
export declare function normalizePlanFileSecretSlots(file: PlanFile): PlanFileSecretSlot[];
|
|
16
13
|
export declare function normalizePlanFiles(files: PlanFile[]): NormalizedPlanFile[];
|
|
17
14
|
export declare function normalizeWorkspacePlanArgument(value: WorkspacePlanArgument): WorkspacePlanArgument;
|
|
18
15
|
import type { PlanFile, PlanFileRoot, PlanFileSecretSlot, WorkspacePlanArgument } from "./plan-types.js";
|
package/dist/plan-normalize.js
CHANGED
|
@@ -38,14 +38,14 @@ export function mergeJsonFiles(files) {
|
|
|
38
38
|
}
|
|
39
39
|
return [...byPath.values()];
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
function normalizePlanFileRoot(root) {
|
|
42
42
|
if (root === undefined || root === "workspace")
|
|
43
43
|
return "workspace";
|
|
44
44
|
if (root === "agent")
|
|
45
45
|
return root;
|
|
46
46
|
throw new Error(`Unsupported workspace plan file root: ${String(root)}`);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
function valueAtJsonPath(root, path) {
|
|
49
49
|
let current = root;
|
|
50
50
|
for (const segment of path) {
|
|
51
51
|
if (current === null ||
|
|
@@ -57,7 +57,7 @@ export function valueAtJsonPath(root, path) {
|
|
|
57
57
|
}
|
|
58
58
|
return current;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
function normalizePlanFileSecretSlots(file) {
|
|
61
61
|
if (file.secretSlots === undefined)
|
|
62
62
|
return [];
|
|
63
63
|
if (file.source !== "generated" ||
|
|
@@ -4,4 +4,3 @@ import type { ProfilePlanBuilder } from "./profile-plan.js";
|
|
|
4
4
|
export declare function lowerProfileResources(profile: AgentProfile, harness: HarnessId, builder: ProfilePlanBuilder): void;
|
|
5
5
|
export declare function lowerProfileSkills(profile: AgentProfile, harness: HarnessId, builder: ProfilePlanBuilder): void;
|
|
6
6
|
export declare function lowerProfileCommands(profile: AgentProfile, harness: HarnessId, builder: ProfilePlanBuilder): void;
|
|
7
|
-
export declare function agentResourceDirectory(harness: HarnessId): string | null;
|
|
@@ -86,7 +86,7 @@ export function lowerProfileCommands(profile, harness, builder) {
|
|
|
86
86
|
materializeCommand(harness, resource.name, resource.content, (path, content, mode) => addExplicitResource("commands", path, content, mode), unsupported);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
function agentResourceDirectory(harness) {
|
|
90
90
|
switch (harness) {
|
|
91
91
|
case "claude-code":
|
|
92
92
|
case "nanoclaw":
|
|
@@ -7,6 +7,5 @@ export interface ResolvedWorkspacePlan {
|
|
|
7
7
|
appendSystemPrompt?: string;
|
|
8
8
|
systemPromptBinding?: WorkspacePlanSystemPromptBinding;
|
|
9
9
|
}
|
|
10
|
-
export declare function safeWorkspacePlanReceipt(plan: WorkspacePlan, writtenFiles: WorkspacePlanWrittenFile[], workspacePlanDigest?: string): WorkspacePlanReceipt;
|
|
11
10
|
import { type NormalizedPlanFile } from "./plan-normalize.js";
|
|
12
|
-
import type { ApplyWorkspacePlanOptions, WorkspacePlan, WorkspacePlanApplication,
|
|
11
|
+
import type { ApplyWorkspacePlanOptions, WorkspacePlan, WorkspacePlanApplication, WorkspacePlanSystemPromptBinding } from "./plan-types.js";
|
package/dist/workspace-apply.js
CHANGED
|
@@ -199,7 +199,7 @@ export function applyResolvedWorkspacePlan(publicPlan, resolvedPlan, workspaceDi
|
|
|
199
199
|
runtimeOnlyFiles: privateRuntimeFiles,
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
function safeWorkspacePlanReceipt(plan, writtenFiles, workspacePlanDigest = hashWorkspacePlan(plan)) {
|
|
203
203
|
return {
|
|
204
204
|
workspacePlanDigest,
|
|
205
205
|
env: Object.fromEntries(Object.entries(plan.env).map(([name, value]) => [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-profile-materialize",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.3",
|
|
4
4
|
"description": "Materialize an AgentProfile into the native per-harness workspace files (the one shared materializer for cli-bridge, agent-dev-container, and VB).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@tangle-network/agent-interface": "2.
|
|
29
|
-
"@tangle-network/agent-interface-current": "npm:@tangle-network/agent-interface@2.
|
|
28
|
+
"@tangle-network/agent-interface": "2.13.0",
|
|
29
|
+
"@tangle-network/agent-interface-current": "npm:@tangle-network/agent-interface@2.13.0",
|
|
30
30
|
"@types/node": "25.6.0",
|
|
31
31
|
"typescript": "^6.0.3",
|
|
32
32
|
"vitest": "^4.1.10"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@tangle-network/agent-interface": "^2.
|
|
35
|
+
"@tangle-network/agent-interface": "^2.13.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc -p tsconfig.json",
|