cortad 0.3.1-rc.9 → 0.3.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.
Files changed (57) hide show
  1. package/README.md +8 -5
  2. package/lib/app-port.mjs +9 -0
  3. package/lib/auto-reach.mjs +88 -0
  4. package/lib/backing.mjs +230 -0
  5. package/lib/calls.mjs +23 -0
  6. package/lib/cli.mjs +115 -30
  7. package/lib/contact-text.mjs +167 -0
  8. package/lib/data.mjs +16 -22
  9. package/lib/dissection-text.mjs +232 -0
  10. package/lib/document.mjs +75 -0
  11. package/lib/env-secrets.mjs +48 -0
  12. package/lib/failed-text.mjs +36 -0
  13. package/lib/fresh.mjs +33 -12
  14. package/lib/health.mjs +61 -0
  15. package/lib/held.mjs +67 -0
  16. package/lib/home.mjs +55 -17
  17. package/lib/hosted.mjs +201 -0
  18. package/lib/identities.mjs +1 -1
  19. package/lib/keeping.mjs +162 -0
  20. package/lib/ledger.mjs +20 -0
  21. package/lib/lock.mjs +6 -1
  22. package/lib/mcp.mjs +52 -18
  23. package/lib/mint.mjs +179 -38
  24. package/lib/mongo.mjs +74 -0
  25. package/lib/numbers-text.mjs +68 -0
  26. package/lib/pg.mjs +118 -0
  27. package/lib/proc.mjs +100 -0
  28. package/lib/proof.mjs +1014 -0
  29. package/lib/proxy.mjs +184 -0
  30. package/lib/pyhook/cortad_sites.py +218 -0
  31. package/lib/pyhook/cortad_tied.py +291 -0
  32. package/lib/pyhook/sitecustomize.py +1175 -166
  33. package/lib/qdrant.mjs +47 -0
  34. package/lib/reach.mjs +223 -0
  35. package/lib/read-text.mjs +78 -24
  36. package/lib/redis.mjs +130 -0
  37. package/lib/register.mjs +36 -27
  38. package/lib/replay.mjs +464 -34
  39. package/lib/runner.mjs +85 -0
  40. package/lib/service.mjs +25 -0
  41. package/lib/spec.mjs +7 -4
  42. package/lib/start.mjs +33 -2
  43. package/lib/stick.mjs +65 -25
  44. package/lib/stores.mjs +347 -0
  45. package/lib/switches.mjs +36 -0
  46. package/lib/tether.mjs +9 -0
  47. package/lib/text.mjs +314 -179
  48. package/lib/tied.cjs +217 -0
  49. package/lib/trace.cjs +386 -514
  50. package/lib/verbs.mjs +155 -38
  51. package/lib/wire.cjs +882 -0
  52. package/lib/words.mjs +2 -0
  53. package/lib/writes.mjs +2 -2
  54. package/local.mjs +661 -297
  55. package/package.json +31 -1
  56. package/skill/SKILL.md +49 -42
  57. package/skill/references/results.md +279 -102
package/lib/words.mjs CHANGED
@@ -12,6 +12,8 @@ export const has = (v) => v !== undefined && v !== null;
12
12
  export const num = (x) => (typeof x === "number" ? Math.round(x).toLocaleString("en-US") : String(x));
13
13
  export const plural = (n, one, many = `${one}s`) => `${num(n)} ${n === 1 ? one : many}`;
14
14
  export const upper = (s) => `${s.charAt(0).toUpperCase()}${s.slice(1)}`;
15
+ // A reading between 35 and 85 in 100 is too close to call; a block says that band the first time.
16
+ export const closeToCall = (n, said = {}) => { const band = said.close ? "" : " (between 35 and 85 in 100)"; said.close = true; return `${num(n)} too close to call${band}`; };
15
17
  // A line past the end of the file as it stands on this machine is not an address: the file moved
16
18
  // on since it was read, and an agent was sent to line 204 of a 172-line file. The file stays.
17
19
  // Read each time, never kept: the agent edits these files while this server runs. Only a path
package/lib/writes.mjs CHANGED
@@ -54,6 +54,6 @@ export function saidOf(paths) {
54
54
  if (!paths.length) return "";
55
55
  const named = paths.slice(0, 3).join(", ") + (paths.length > 3 ? ` and ${paths.length - 3} more` : "");
56
56
  return paths.length === 1
57
- ? `Your app wrote to ${named} during this run; it was put back to what it was before it.`
58
- : `Your app wrote to ${named} during this run; all were put back to what they were before it.`;
57
+ ? `Your app wrote to ${named} during this run; Cortad restored it afterwards.`
58
+ : `Your app wrote to ${named} during this run; Cortad restored them afterwards.`;
59
59
  }