@hraness/wordcell 0.24.0 → 0.24.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.
Files changed (39) hide show
  1. package/README.md +14 -12
  2. package/dist/authoring.js +2 -1
  3. package/dist/cli.js +10 -9
  4. package/dist/clip/jobs.js +5 -1
  5. package/dist/evaluation-builder.js +5 -4
  6. package/dist/evaluation-kb.js +5 -4
  7. package/dist/graph-authority.js +2 -1
  8. package/dist/graph-percolation.js +3 -2
  9. package/dist/{index-1er88ckw.js → index-3gc2yk4k.js} +10 -5
  10. package/dist/{index-mvs6f7ne.js → index-59bcxqee.js} +1 -1
  11. package/dist/{index-1w0sp1q7.js → index-7drercgk.js} +1 -1
  12. package/dist/{index-tcaq1c7f.js → index-e26mdwxz.js} +1 -1
  13. package/dist/{index-f184qyh1.js → index-hz2wyggk.js} +1 -1
  14. package/dist/{index-44kw9tr8.js → index-jqkkb4fr.js} +14 -8
  15. package/dist/{index-5d1rd5v9.js → index-mcpppwbq.js} +2 -2
  16. package/dist/index-qkesh4c6.js +7 -0
  17. package/dist/{index-b0khj0h5.js → index-qt2zwza8.js} +6 -1
  18. package/dist/{index-0eacgvpv.js → index-t0fh8a1q.js} +7 -3
  19. package/dist/index.js +6 -5
  20. package/dist/portfolio.js +5 -4
  21. package/dist/sdk.js +4 -3
  22. package/dist/{support-1yhv6vm6.js → support-07jpt1z4.js} +9 -8
  23. package/dist/url-intelligence.js +2 -1
  24. package/dist/workflows/decision-context.js +5 -4
  25. package/dist/workflows/index.js +5 -4
  26. package/package.json +9 -6
  27. package/skills/wordcell/SKILL.md +1 -1
  28. package/skills/wordcell/references/publish.md +2 -1
  29. package/src/authoring-platform.ts +3 -0
  30. package/src/clip/jobs.ts +2 -1
  31. package/src/clip/metadata-search-tool/Cargo.lock +2 -0
  32. package/src/clip/metadata-search-tool/Cargo.toml +2 -0
  33. package/src/clip/metadata-search-tool/runner.ts +4 -1
  34. package/src/clip/metadata-search-tool/src/duckduckgo.rs +534 -0
  35. package/src/clip/metadata-search-tool/src/main.rs +31 -18
  36. package/src/clip/metadata-search.ts +4 -2
  37. package/src/clip/url-metadata.ts +2 -1
  38. package/src/directory-sync.ts +9 -0
  39. package/src/graph-authority.ts +5 -2
@@ -1,4 +1,5 @@
1
1
  import { createHash } from "node:crypto";
2
+ import { syncsDirectories } from "./directory-sync.js";
2
3
  import { constants } from "node:fs";
3
4
  import { mkdir, mkdtemp, realpath, rename, rm } from "node:fs/promises";
4
5
  import { join, resolve } from "node:path";
@@ -197,8 +198,10 @@ export async function rebuildGraph(rootInput: string, options: GraphRebuildOptio
197
198
  const handle = await fs.open(stagedPath, constants.O_RDONLY | constants.O_NOFOLLOW);
198
199
  try { await handle.sync(); } finally { await handle.close(); }
199
200
  await rename(stagedPath, path);
200
- const directory = await fs.open(cache, constants.O_RDONLY);
201
- try { await directory.sync(); } finally { await directory.close(); }
201
+ if (syncsDirectories()) {
202
+ const directory = await fs.open(cache, constants.O_RDONLY);
203
+ try { await directory.sync(); } finally { await directory.close(); }
204
+ }
202
205
  return result;
203
206
  } finally {
204
207
  try {