@tangle-network/agent-profile-materialize 1.0.1 → 1.0.2

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.
@@ -41,6 +41,16 @@ export function hashWorkspacePlan(plan) {
41
41
  });
42
42
  return `sha256:${sha256(canonical)}`;
43
43
  }
44
+ /**
45
+ * Candidate material records prompt intents as public values only: a secret
46
+ * reference there would put credential identity into sealed evidence.
47
+ */
48
+ function publicPromptValue(value) {
49
+ if (value.kind !== "public") {
50
+ throw new Error("Candidate plan material accepts public prompt values only");
51
+ }
52
+ return { kind: "public", value: value.value };
53
+ }
44
54
  /** Build the exact digest-free identity document required by agent-interface. */
45
55
  export function agentCandidateProfilePlanMaterial(plan) {
46
56
  const files = normalizePlanFiles(plan.files);
@@ -59,7 +69,7 @@ export function agentCandidateProfilePlanMaterial(plan) {
59
69
  files: materialFiles,
60
70
  env: Object.fromEntries(Object.entries(plan.env).sort(([left], [right]) => compareStrings(left, right))),
61
71
  flags: [...plan.flags],
62
- ...promptIntentFields(plan, samePromptIntentValue),
72
+ ...promptIntentFields(plan, publicPromptValue),
63
73
  unsupported: [...plan.unsupported].sort((left, right) => compareStrings(`${left.dimension}\0${left.reason}`, `${right.dimension}\0${right.reason}`)),
64
74
  };
65
75
  const hasAgentRoot = materialFiles.some((file) => file.root === "agent");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-profile-materialize",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Materialize an AgentProfile into the native per-harness workspace files (the one shared materializer for cli-bridge, agent-container, and VB).",
5
5
  "type": "module",
6
6
  "repository": {
@@ -25,8 +25,8 @@
25
25
  "dist"
26
26
  ],
27
27
  "devDependencies": {
28
- "@tangle-network/agent-interface": "5.0.0",
29
- "@tangle-network/agent-interface-current": "npm:@tangle-network/agent-interface@5.0.0",
28
+ "@tangle-network/agent-interface": "5.8.1",
29
+ "@tangle-network/agent-interface-current": "npm:@tangle-network/agent-interface@5.8.1",
30
30
  "@types/node": "25.6.0",
31
31
  "typescript": "^6.0.3",
32
32
  "vitest": "^4.1.12"
@@ -35,8 +35,8 @@
35
35
  "@tangle-network/agent-interface": "^3.0.0 || ^4.0.0 || ^5.0.0"
36
36
  },
37
37
  "tangleRelease": {
38
- "sourceSha": "ee7221645e1dd25f4bc3ebe69286b336ce92eda2",
39
- "mergedAt": "2026-10-27T01:07:43-06:00"
38
+ "sourceSha": "0f6ba1deca15d9e117553eae67ff01cae6425004",
39
+ "mergedAt": "2026-10-27T04:36:51-06:00"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsc -p tsconfig.json",