@tangle-network/agent-profile-materialize 0.13.0 → 0.13.1

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/index.d.ts CHANGED
@@ -359,6 +359,12 @@ export declare function takeSystemPromptBinding(spawn: Pick<WorkspacePlanSpawnIn
359
359
  export interface MaterializeCandidateProfileOptions {
360
360
  /** Exact text fetched from pinned resource refs, keyed by declared SHA-256. */
361
361
  resolvedResources?: ReadonlyMap<Sha256Digest, string>;
362
+ /**
363
+ * Launcher controls this caller owns and will bind itself. The declaration
364
+ * is forwarded to the classic materializer so candidate execution uses the
365
+ * same lowering as ordinary profile execution.
366
+ */
367
+ binds?: readonly BindableLaunchControl[];
362
368
  }
363
369
  /**
364
370
  * Whether the harness LOADS its {@link CONTEXT_FILE} from cwd on its own.
package/dist/index.js CHANGED
@@ -1195,7 +1195,15 @@ export function materializeCandidateProfile(profile, harness, opts = {}) {
1195
1195
  mcp: candidateMcpRecordForClassicMaterializer(candidate.mcp),
1196
1196
  hooks: hookLowering.hooks,
1197
1197
  };
1198
- const classicPlan = materializeProfile(classicProfile, harness);
1198
+ const classicPlan = materializeProfile(classicProfile, harness, {
1199
+ binds: opts.binds,
1200
+ });
1201
+ // Canonical candidate evidence has no field for a launcher-addressed binding.
1202
+ // Refuse that shape instead of returning a candidate plan whose receipt would
1203
+ // omit the exact control still owed by the launcher.
1204
+ if (classicPlan.systemPromptBinding !== undefined) {
1205
+ throw new Error(`Sealed candidate evidence cannot represent a system-prompt binding to ${classicPlan.systemPromptBinding.control}`);
1206
+ }
1199
1207
  if (hookLowering.unsupportedReason) {
1200
1208
  classicPlan.unsupported.push({
1201
1209
  dimension: "hooks",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-profile-materialize",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
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
  "main": "./dist/index.js",
@@ -20,13 +20,13 @@
20
20
  "dist"
21
21
  ],
22
22
  "devDependencies": {
23
- "@tangle-network/agent-interface": "0.45.0",
23
+ "@tangle-network/agent-interface": "0.46.1",
24
24
  "@types/node": "25.6.0",
25
25
  "typescript": "^6.0.3",
26
26
  "vitest": "^4.1.10"
27
27
  },
28
28
  "peerDependencies": {
29
- "@tangle-network/agent-interface": ">=0.45.0 <0.46.0"
29
+ "@tangle-network/agent-interface": ">=0.46.0 <0.47.0"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsc -p tsconfig.json",