@tangle-network/agent-profile-materialize 0.3.1 → 0.3.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.
Files changed (3) hide show
  1. package/LICENSE +11 -0
  2. package/dist/index.d.ts +3 -3
  3. package/package.json +15 -25
package/LICENSE ADDED
@@ -0,0 +1,11 @@
1
+ Copyright (c) 2025 Tangle Network
2
+
3
+ All rights reserved.
4
+
5
+ This software and associated documentation files (the "Software") are proprietary
6
+ and confidential. No part of this Software may be reproduced, distributed, or
7
+ transmitted in any form or by any means, including photocopying, recording, or
8
+ other electronic or mechanical methods, without the prior written permission of
9
+ Tangle Network.
10
+
11
+ For licensing inquiries, contact: hello@tangle.tools
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, AgentCandidateProfilePlanMaterialV1, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
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): AgentCandidateProfilePlanMaterialV1;
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: AgentCandidateProfilePlanMaterialV1;
112
+ material: AgentCandidateProfilePlanEvidence["material"];
113
113
  bytes: Uint8Array;
114
114
  digest: Sha256Digest;
115
115
  };
package/package.json CHANGED
@@ -1,43 +1,33 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-profile-materialize",
3
- "version": "0.3.1",
3
+ "version": "0.3.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
- "main": "dist/index.js",
7
- "types": "src/index.ts",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": "./dist/index.js",
11
- "types": "./src/index.ts"
12
- }
13
- },
14
- "publishConfig": {
15
- "main": "./dist/index.js",
16
- "types": "./dist/index.d.ts",
17
- "exports": {
18
- ".": {
19
- "import": "./dist/index.js",
20
- "types": "./dist/index.d.ts",
21
- "default": "./dist/index.js"
22
- }
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
23
13
  }
24
14
  },
25
15
  "files": [
26
16
  "dist"
27
17
  ],
18
+ "peerDependencies": {
19
+ "@tangle-network/agent-interface": ">=0.25.0 <0.27.0"
20
+ },
21
+ "devDependencies": {
22
+ "@tangle-network/agent-interface": "0.25.0",
23
+ "@types/node": "25.6.0",
24
+ "typescript": "^6.0.3",
25
+ "vitest": "^4.1.5"
26
+ },
28
27
  "scripts": {
29
28
  "build": "tsc -p tsconfig.json",
30
29
  "clean": "rm -rf dist",
31
- "prepare": "pnpm run build",
32
30
  "test": "vitest run",
33
31
  "test:watch": "vitest"
34
- },
35
- "dependencies": {
36
- "@tangle-network/agent-interface": "^0.22.0"
37
- },
38
- "devDependencies": {
39
- "@types/node": "catalog:",
40
- "typescript": "^6.0.3",
41
- "vitest": "^4.1.5"
42
32
  }
43
- }
33
+ }