@tangle-network/agent-profile-materialize 0.27.0 → 0.27.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.
@@ -7,9 +7,6 @@ export interface NormalizedPlanFile {
7
7
  ownership: NonNullable<PlanFile["ownership"]>;
8
8
  secretSlots: PlanFileSecretSlot[];
9
9
  }
10
- export type JsonValue = null | boolean | number | string | JsonValue[] | {
11
- [key: string]: JsonValue;
12
- };
13
10
  export declare function normalizePlanFiles(files: PlanFile[]): NormalizedPlanFile[];
14
11
  export declare function normalizeWorkspacePlanArgument(value: WorkspacePlanArgument): WorkspacePlanArgument;
15
12
  import type { PlanFile, PlanFileRoot, PlanFileSecretSlot, WorkspacePlanArgument } from "./plan-types.js";
@@ -3,7 +3,7 @@ import { mkdirSync, readdirSync, rmSync } from "node:fs";
3
3
  import { mkdir, open, readFile, rename, rm, stat, writeFile, } from "node:fs/promises";
4
4
  import { join } from "node:path";
5
5
  import { PROFILE_BUNDLE_DEFAULT_MAX_BYTES, PROFILE_BUNDLE_MAX_BYTES, PROFILE_BUNDLE_MAX_FILE_BYTES, PROFILE_BUNDLE_MAX_FILES, PROFILE_BUNDLE_SCHEMA, } from "./profile-bundle-key.js";
6
- import { evictProfileBundles, evictUnlocked, fsyncDir, hasPendingRootWork, loadLru, pathExists, profileBundleManifestPath, readManifestFile, saveLru, sweepProfileBundleCache, sweepUnlocked, withRootLock, } from "./profile-bundle-lru.js";
6
+ import { evictProfileBundles, evictUnlocked, fsyncDir, hasPendingRootWork, loadLru, pathExistsFollowingLinks, profileBundleManifestPath, readManifestFile, saveLru, sweepProfileBundleCache, sweepUnlocked, withRootLock, } from "./profile-bundle-lru.js";
7
7
  import { hasControlCharacter, normalizeWorkspaceRelativePath, validateFileMode, } from "./workspace-files.js";
8
8
  export * from "./profile-bundle-key.js";
9
9
  export { evictProfileBundles, profileBundleManifestPath, sweepProfileBundleCache, } from "./profile-bundle-lru.js";
@@ -142,7 +142,7 @@ export async function admitProfileBundle(root, manifest, readObject) {
142
142
  }
143
143
  totalBytes += buffer.byteLength;
144
144
  const object = join(root, "objects", entry.sha256);
145
- if (await pathExists(object)) {
145
+ if (await pathExistsFollowingLinks(object)) {
146
146
  // Already admitted; the bytes above were re-verified, so drop the temp.
147
147
  continue;
148
148
  }
@@ -17,7 +17,7 @@ export interface ProfileBundleLru {
17
17
  createdAt: string;
18
18
  }>;
19
19
  }
20
- export declare function pathExists(path: string): Promise<boolean>;
20
+ export declare function pathExistsFollowingLinks(path: string): Promise<boolean>;
21
21
  export declare function fsyncDir(dir: string): Promise<void>;
22
22
  export declare function withRootLock<T>(root: string, run: () => Promise<T>): Promise<T>;
23
23
  /** Synchronous open must not sweep a root with pending asynchronous work. */
@@ -2,7 +2,7 @@ import { randomUUID } from "node:crypto";
2
2
  import { open, readdir, readFile, rename, rm, stat, writeFile, } from "node:fs/promises";
3
3
  import { join, resolve } from "node:path";
4
4
  import { compareStrings } from "./workspace-files.js";
5
- export async function pathExists(path) {
5
+ export async function pathExistsFollowingLinks(path) {
6
6
  try {
7
7
  await stat(path);
8
8
  return true;
@@ -150,7 +150,7 @@ export async function evictUnlocked(root, maxBytes) {
150
150
  const lru = await loadLru(root);
151
151
  const objectsDir = join(root, "objects");
152
152
  for (const sha of Object.keys(lru.objects)) {
153
- if (!(await pathExists(join(objectsDir, sha)))) {
153
+ if (!(await pathExistsFollowingLinks(join(objectsDir, sha)))) {
154
154
  delete lru.objects[sha];
155
155
  }
156
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-profile-materialize",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
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": "f4c8596359a591a5139a8180fba415239536202c",
39
- "mergedAt": "2026-10-20T13:35:56-06:00"
38
+ "sourceSha": "5a536a79fbd83dfa11da194bf5348cf0d73f224d",
39
+ "mergedAt": "2026-10-21T05:59:51-06:00"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsc -p tsconfig.json",