humanish 0.38.0 → 0.40.0

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 +5 -2
  2. package/dist/actor-contract.d.ts +24 -1
  3. package/dist/actor-contract.js +4 -0
  4. package/dist/actor-contract.js.map +1 -1
  5. package/dist/claude-agent-sdk.js +4 -0
  6. package/dist/claude-agent-sdk.js.map +1 -1
  7. package/dist/comms-catch-host.d.ts +31 -0
  8. package/dist/comms-catch-host.js +82 -4
  9. package/dist/comms-catch-host.js.map +1 -1
  10. package/dist/comms-sandbox-catch.d.ts +32 -1
  11. package/dist/comms-sandbox-catch.js +226 -19
  12. package/dist/comms-sandbox-catch.js.map +1 -1
  13. package/dist/computer-use-actor.d.ts +1 -1
  14. package/dist/computer-use.d.ts +13 -1
  15. package/dist/computer-use.js +100 -14
  16. package/dist/computer-use.js.map +1 -1
  17. package/dist/concurrent-shared-world-lab.js +7 -2
  18. package/dist/concurrent-shared-world-lab.js.map +1 -1
  19. package/dist/cua-actor-lab.d.ts +8 -0
  20. package/dist/cua-actor-lab.js +110 -9
  21. package/dist/cua-actor-lab.js.map +1 -1
  22. package/dist/e2b-desktop-executor.d.ts +21 -6
  23. package/dist/e2b-desktop-executor.js +65 -21
  24. package/dist/e2b-desktop-executor.js.map +1 -1
  25. package/dist/lab-config.d.ts +36 -0
  26. package/dist/lab-config.js +87 -2
  27. package/dist/lab-config.js.map +1 -1
  28. package/dist/observer-data.js +5 -0
  29. package/dist/observer-data.js.map +1 -1
  30. package/dist/openai-responses-cu.js +10 -1
  31. package/dist/openai-responses-cu.js.map +1 -1
  32. package/dist/orientation.d.ts +29 -0
  33. package/dist/orientation.js +95 -0
  34. package/dist/orientation.js.map +1 -0
  35. package/dist/persona-resolve.d.ts +44 -0
  36. package/dist/persona-resolve.js +109 -0
  37. package/dist/persona-resolve.js.map +1 -0
  38. package/dist/pi-agent-core.js +4 -0
  39. package/dist/pi-agent-core.js.map +1 -1
  40. package/dist/pricing.d.ts +8 -0
  41. package/dist/pricing.js +22 -6
  42. package/dist/pricing.js.map +1 -1
  43. package/dist/program.js +36 -1
  44. package/dist/program.js.map +1 -1
  45. package/dist/run.d.ts +1 -1
  46. package/dist/run.js +27 -1
  47. package/dist/run.js.map +1 -1
  48. package/dist/shared-world-lab.js +7 -2
  49. package/dist/shared-world-lab.js.map +1 -1
  50. package/dist/subject-runtime.d.ts +23 -0
  51. package/dist/subject-runtime.js +70 -0
  52. package/dist/subject-runtime.js.map +1 -0
  53. package/docs/contracts/schemas.md +1 -1
  54. package/docs/goals/current.md +2 -2
  55. package/docs/principles/three-roles.md +68 -0
  56. package/docs/ramp/README.md +1 -1
  57. package/package.json +1 -1
package/dist/run.js CHANGED
@@ -2869,7 +2869,29 @@ export async function doctor(cwdInput) {
2869
2869
  name: "runtime ignore",
2870
2870
  ok: await safeCheck(async () => (await readImplicitProjectFile(projectRoot, ".gitignore"))?.includes(".humanish/") ?? false),
2871
2871
  message: ".gitignore safely contains .humanish/"
2872
- }
2872
+ },
2873
+ // The optional peer dep every live browser and terminal lane needs (#346). `npx -y humanish`
2874
+ // does not pull optional peers, so an adopter's FIRST live run used to fail on it — safely and
2875
+ // at $0, but as a burned first impression on the flagship path. Answering it here means the
2876
+ // readiness command actually answers readiness.
2877
+ await (async () => {
2878
+ const present = await safeCheck(async () => {
2879
+ try {
2880
+ await import("@e2b/desktop");
2881
+ return true;
2882
+ }
2883
+ catch {
2884
+ return false;
2885
+ }
2886
+ });
2887
+ return {
2888
+ name: "e2b desktop sdk",
2889
+ ok: present,
2890
+ message: present
2891
+ ? "optional peer @e2b/desktop is installed; live desktop lanes can launch"
2892
+ : "optional peer @e2b/desktop is NOT installed — dry runs work, but any live desktop lane will fail closed. Install it with `npm i -D @e2b/desktop`."
2893
+ };
2894
+ })()
2873
2895
  ];
2874
2896
  return {
2875
2897
  schema: DOCTOR_SCHEMA,
@@ -5175,6 +5197,10 @@ function isRunSimulationStatus(value) {
5175
5197
  || value === "preparing"
5176
5198
  || value === "running"
5177
5199
  || value === "passed"
5200
+ // Participant outcomes (docs/principles/three-roles.md). This runtime allowlist is the actual
5201
+ // gate — the TS union alone does not validate a bundle read back from disk.
5202
+ || value === "abandoned"
5203
+ || value === "incomplete"
5178
5204
  || value === "complete"
5179
5205
  || value === "blocked"
5180
5206
  || value === "timed_out"