@tangle-network/agent-profile-materialize 0.9.0 → 0.9.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.
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -1
- package/package.json +10 -5
package/dist/index.d.ts
CHANGED
|
@@ -171,7 +171,10 @@ export interface ResolveAgentProfileResourcesOptions {
|
|
|
171
171
|
fetch?: typeof globalThis.fetch;
|
|
172
172
|
timeoutMs?: number;
|
|
173
173
|
}
|
|
174
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Resolve every GitHub resource to exact inline bytes before materialization.
|
|
176
|
+
* The profile's default harness does not affect resource resolution.
|
|
177
|
+
*/
|
|
175
178
|
export declare function resolveAgentProfileResources(inputProfile: AgentProfile, options?: ResolveAgentProfileResourcesOptions): Promise<AgentProfile>;
|
|
176
179
|
/** Normalize any skill markdown (VB frontmatter `skill:`/`description:`, or raw) into a
|
|
177
180
|
* harness SKILL.md with `name:`/`description:` frontmatter the harnesses require. */
|
|
@@ -179,6 +182,7 @@ export declare function normalizeSkillMd(name: string, raw: string): string;
|
|
|
179
182
|
/**
|
|
180
183
|
* Build the WorkspacePlan for `profile` on `harness`. Pure — no IO. The caller
|
|
181
184
|
* writes plan.files into the run cwd and applies plan.env/plan.flags to the spawn.
|
|
185
|
+
* The explicit target harness takes precedence over the profile's default.
|
|
182
186
|
*/
|
|
183
187
|
export declare function materializeProfile(inputProfile: AgentProfile, harness: HarnessId, opts?: {
|
|
184
188
|
skip?: Unsupported["dimension"][];
|
package/dist/index.js
CHANGED
|
@@ -292,7 +292,10 @@ function validateFileMode(mode) {
|
|
|
292
292
|
}
|
|
293
293
|
return normalized;
|
|
294
294
|
}
|
|
295
|
-
/**
|
|
295
|
+
/**
|
|
296
|
+
* Resolve every GitHub resource to exact inline bytes before materialization.
|
|
297
|
+
* The profile's default harness does not affect resource resolution.
|
|
298
|
+
*/
|
|
296
299
|
export async function resolveAgentProfileResources(inputProfile, options = {}) {
|
|
297
300
|
const profile = agentProfileSchema.parse(inputProfile);
|
|
298
301
|
const resources = profile.resources;
|
|
@@ -438,6 +441,7 @@ const tomlStr = (s) => JSON.stringify(s); // valid TOML basic string
|
|
|
438
441
|
/**
|
|
439
442
|
* Build the WorkspacePlan for `profile` on `harness`. Pure — no IO. The caller
|
|
440
443
|
* writes plan.files into the run cwd and applies plan.env/plan.flags to the spawn.
|
|
444
|
+
* The explicit target harness takes precedence over the profile's default.
|
|
441
445
|
*/
|
|
442
446
|
export function materializeProfile(inputProfile, harness, opts = {}) {
|
|
443
447
|
assertMaterializerHarness(harness);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-profile-materialize",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
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",
|
|
@@ -12,16 +12,21 @@
|
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public",
|
|
17
|
+
"registry": "https://registry.npmjs.org"
|
|
18
|
+
},
|
|
15
19
|
"files": [
|
|
16
20
|
"dist"
|
|
17
21
|
],
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"@tangle-network/agent-interface": "0.34.0"
|
|
20
|
-
},
|
|
21
22
|
"devDependencies": {
|
|
23
|
+
"@tangle-network/agent-interface": "0.36.0",
|
|
22
24
|
"@types/node": "25.6.0",
|
|
23
25
|
"typescript": "^6.0.3",
|
|
24
|
-
"vitest": "^4.1.
|
|
26
|
+
"vitest": "^4.1.10"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@tangle-network/agent-interface": ">=0.36.0 <0.37.0"
|
|
25
30
|
},
|
|
26
31
|
"scripts": {
|
|
27
32
|
"build": "tsc -p tsconfig.json",
|