@tangle-network/agent-profile-materialize 0.28.1 → 0.28.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 CHANGED
@@ -22,7 +22,6 @@ export type { PrimeProfileControls, PrimeProfileSkill, PrimeProfileSubagent, } f
22
22
  export { assertPrimeModelAgreement, hasPrimeProfileMaterial, primeProfileNeedsAgentDir, primeSubagentEntryId, readPrimeProfileControls, } from "./prime-profile.js";
23
23
  export * from "./profile-bundle-cache.js";
24
24
  export { executionControlConflict, materializeProfile, UNAVAILABLE_AGENT_PROFILE_SECRET_PROVIDER, } from "./profile-materializer.js";
25
- export * from "./profile-start-check.js";
26
25
  export type { ResolveAgentProfileResourcesOptions } from "./resource-resolution.js";
27
26
  export { normalizeSkillMd, resolveAgentProfileResources, } from "./resource-resolution.js";
28
27
  export { prepareSecretConcurrentProfileRevision } from "./secret-concurrent-revision.js";
package/dist/index.js CHANGED
@@ -17,7 +17,6 @@ export { matchPrimeKernelDeadMarker, PRIME_AGENT_DIR_ENV_VAR, PRIME_AGENT_DIR_EN
17
17
  export { assertPrimeModelAgreement, hasPrimeProfileMaterial, primeProfileNeedsAgentDir, primeSubagentEntryId, readPrimeProfileControls, } from "./prime-profile.js";
18
18
  export * from "./profile-bundle-cache.js";
19
19
  export { executionControlConflict, materializeProfile, UNAVAILABLE_AGENT_PROFILE_SECRET_PROVIDER, } from "./profile-materializer.js";
20
- export * from "./profile-start-check.js";
21
20
  export { normalizeSkillMd, resolveAgentProfileResources, } from "./resource-resolution.js";
22
21
  export { prepareSecretConcurrentProfileRevision } from "./secret-concurrent-revision.js";
23
22
  export * from "./secret-session-view.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-profile-materialize",
3
- "version": "0.28.1",
3
+ "version": "0.28.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": {
@@ -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": "17485174d5fa747c0c03376da7b1c0def19a5d42",
39
- "mergedAt": "2026-10-25T19:02:09-06:00"
38
+ "sourceSha": "f5bf5b9612476b166863eabafae4ae58112a861a",
39
+ "mergedAt": "2026-10-26T02:56:59-06:00"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsc -p tsconfig.json",
@@ -1,32 +0,0 @@
1
- import type { BindableLaunchControl } from "./plan-types.js";
2
- import { type ResolveAgentProfileResourcesOptions } from "./resource-resolution.js";
3
- /** Whether a profile starts on a harness, answered before any spawn. */
4
- export interface ProfileStartCheck {
5
- readonly ok: boolean;
6
- /** Each error a spawn would raise, in the materializer's own words. */
7
- readonly refusals: readonly string[];
8
- /** Controls `resources.failOnError: false` lets the run skip, as a spawn logs them. */
9
- readonly warnings: readonly string[];
10
- }
11
- export interface CheckProfileStartsOptions extends ResolveAgentProfileResourcesOptions {
12
- /** Harness to check; defaults to the profile's own `harness`. */
13
- harness?: string;
14
- /**
15
- * Launch controls the launcher binds. Defaults to what the maintained
16
- * launchers bind: `systemPrompt` on opencode (the sidecar and the opencode
17
- * provider both pass it), nothing elsewhere, where binds change no refusal.
18
- */
19
- binds?: readonly BindableLaunchControl[];
20
- }
21
- /**
22
- * Run the spawn path's profile steps without spawning: resolve resources,
23
- * materialize for the harness, then enforce `resources.failOnError`.
24
- *
25
- * A refusal here is the error a spawn gives, word for word, because it is the
26
- * same code. Profile builders and validators call this instead of copying the
27
- * native tool maps, which change whenever a harness does. Inline resources
28
- * need no network; GitHub refs are fetched exactly as a spawn fetches them.
29
- * Model and harness compatibility is not decided here: its owner is
30
- * `harnessModelSupportFor` in `@tangle-network/cli-agent-registry`.
31
- */
32
- export declare function checkProfileStarts(input: unknown, options?: CheckProfileStartsOptions): Promise<ProfileStartCheck>;
@@ -1,39 +0,0 @@
1
- import { agentProfileSchema } from "@tangle-network/agent-interface";
2
- import { assertMaterializerHarness } from "./harness.js";
3
- import { enforceWorkspacePlanSupport } from "./plan-support.js";
4
- import { materializeProfile } from "./profile-materializer.js";
5
- import { resolveAgentProfileResources, } from "./resource-resolution.js";
6
- /**
7
- * Run the spawn path's profile steps without spawning: resolve resources,
8
- * materialize for the harness, then enforce `resources.failOnError`.
9
- *
10
- * A refusal here is the error a spawn gives, word for word, because it is the
11
- * same code. Profile builders and validators call this instead of copying the
12
- * native tool maps, which change whenever a harness does. Inline resources
13
- * need no network; GitHub refs are fetched exactly as a spawn fetches them.
14
- * Model and harness compatibility is not decided here: its owner is
15
- * `harnessModelSupportFor` in `@tangle-network/cli-agent-registry`.
16
- */
17
- export async function checkProfileStarts(input, options = {}) {
18
- const { harness: harnessOption, binds, ...resolveOptions } = options;
19
- try {
20
- const parsed = agentProfileSchema.parse(input);
21
- const harness = harnessOption ?? parsed.harness;
22
- if (harness === undefined) {
23
- return refused(["harness: the profile names no harness to start on"]);
24
- }
25
- assertMaterializerHarness(harness);
26
- const profile = await resolveAgentProfileResources(parsed, resolveOptions);
27
- const plan = materializeProfile(profile, harness, {
28
- binds: binds ?? (harness === "opencode" ? ["systemPrompt"] : []),
29
- });
30
- const warnings = enforceWorkspacePlanSupport(plan, profile.resources?.failOnError);
31
- return { ok: true, refusals: [], warnings };
32
- }
33
- catch (error) {
34
- return refused([error instanceof Error ? error.message : String(error)]);
35
- }
36
- }
37
- function refused(refusals) {
38
- return { ok: false, refusals, warnings: [] };
39
- }