@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 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
- export const OPENCODE_CONFIG_KEYS = new Set([
262
+ const OPENCODE_CONFIG_KEYS = new Set([
263
263
  "$schema",
264
264
  "instructions",
265
265
  "mcp",
@@ -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";
@@ -38,14 +38,14 @@ export function mergeJsonFiles(files) {
38
38
  }
39
39
  return [...byPath.values()];
40
40
  }
41
- export function normalizePlanFileRoot(root) {
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
- export function valueAtJsonPath(root, path) {
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
- export function normalizePlanFileSecretSlots(file) {
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
- export function agentResourceDirectory(harness) {
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, WorkspacePlanReceipt, WorkspacePlanSystemPromptBinding, WorkspacePlanWrittenFile } from "./plan-types.js";
11
+ import type { ApplyWorkspacePlanOptions, WorkspacePlan, WorkspacePlanApplication, WorkspacePlanSystemPromptBinding } from "./plan-types.js";
@@ -199,7 +199,7 @@ export function applyResolvedWorkspacePlan(publicPlan, resolvedPlan, workspaceDi
199
199
  runtimeOnlyFiles: privateRuntimeFiles,
200
200
  };
201
201
  }
202
- export function safeWorkspacePlanReceipt(plan, writtenFiles, workspacePlanDigest = hashWorkspacePlan(plan)) {
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.1",
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.6.1",
29
- "@tangle-network/agent-interface-current": "npm:@tangle-network/agent-interface@2.6.1",
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.6.1"
35
+ "@tangle-network/agent-interface": "^2.13.0"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "tsc -p tsconfig.json",