@tangle-network/agent-profile-materialize 0.3.2 → 0.4.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/dist/index.d.ts +3 -3
- package/dist/index.js +0 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* `node:fs` IO consumer. It was previously copied byte-for-byte into both
|
|
22
22
|
* cli-bridge and agent-dev-container — this is the single source those re-export.
|
|
23
23
|
*/
|
|
24
|
-
import type { AgentCandidateConfigValue, AgentCandidateProfile, AgentCandidateProfileApplication, AgentCandidateProfilePlanEvidence,
|
|
24
|
+
import type { AgentCandidateConfigValue, AgentCandidateProfile, AgentCandidateProfileApplication, AgentCandidateProfilePlanEvidence, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
|
|
25
25
|
export type HarnessId = "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw";
|
|
26
26
|
export interface PlanFile {
|
|
27
27
|
relPath: string;
|
|
@@ -103,13 +103,13 @@ export declare function materializeCandidateProfile(profile: AgentCandidateProfi
|
|
|
103
103
|
*/
|
|
104
104
|
export declare function hashWorkspacePlan(plan: WorkspacePlan): string;
|
|
105
105
|
/** Build the exact digest-free identity document required by agent-interface. */
|
|
106
|
-
export declare function agentCandidateProfilePlanMaterial(plan: AgentCandidateWorkspacePlan):
|
|
106
|
+
export declare function agentCandidateProfilePlanMaterial(plan: AgentCandidateWorkspacePlan): AgentCandidateProfilePlanEvidence["material"];
|
|
107
107
|
/**
|
|
108
108
|
* Return the RFC 8785 UTF-8 bytes and SHA-256 identity of a candidate profile
|
|
109
109
|
* plan. The returned bytes are the exact bytes embedded in receipt evidence.
|
|
110
110
|
*/
|
|
111
111
|
export declare function canonicalizeAgentCandidateProfilePlan(plan: AgentCandidateWorkspacePlan): {
|
|
112
|
-
material:
|
|
112
|
+
material: AgentCandidateProfilePlanEvidence["material"];
|
|
113
113
|
bytes: Uint8Array;
|
|
114
114
|
digest: Sha256Digest;
|
|
115
115
|
};
|
package/dist/index.js
CHANGED
|
@@ -618,7 +618,6 @@ export function hashWorkspacePlan(plan) {
|
|
|
618
618
|
const env = Object.fromEntries(Object.entries(plan.env).sort(([a], [b]) => compareStrings(a, b)));
|
|
619
619
|
const unsupported = [...plan.unsupported].sort((a, b) => compareStrings(`${a.dimension}\0${a.reason}`, `${b.dimension}\0${b.reason}`));
|
|
620
620
|
const canonical = JSON.stringify({
|
|
621
|
-
version: 1,
|
|
622
621
|
harness: canonicalHarness(plan.harness),
|
|
623
622
|
files,
|
|
624
623
|
env,
|
|
@@ -630,7 +629,6 @@ export function hashWorkspacePlan(plan) {
|
|
|
630
629
|
/** Build the exact digest-free identity document required by agent-interface. */
|
|
631
630
|
export function agentCandidateProfilePlanMaterial(plan) {
|
|
632
631
|
const material = {
|
|
633
|
-
version: 1,
|
|
634
632
|
harness: canonicalHarness(plan.harness),
|
|
635
633
|
files: normalizePlanFiles(plan.files).map((file) => ({
|
|
636
634
|
relPath: file.relPath,
|
|
@@ -665,7 +663,6 @@ export function captureAgentCandidateProfilePlan(plan) {
|
|
|
665
663
|
byteLength: canonical.bytes.byteLength,
|
|
666
664
|
};
|
|
667
665
|
return agentCandidateProfilePlanEvidenceSchema.parse({
|
|
668
|
-
schemaVersion: 1,
|
|
669
666
|
kind: "agent-profile-workspace-plan",
|
|
670
667
|
digest: canonical.digest,
|
|
671
668
|
material: canonical.material,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-profile-materialize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@tangle-network/agent-interface": "
|
|
19
|
+
"@tangle-network/agent-interface": "0.28.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "25.6.0",
|