@khorsheed/dsh-ankh-guard 0.1.0 → 0.2.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 (62) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.en.md +75 -29
  3. package/README.i18n.yaml +2 -2
  4. package/README.md +74 -29
  5. package/lib/cli.js +2383 -209
  6. package/lib/client.js +257 -0
  7. package/lib/exit-agent.js +5 -2
  8. package/lib/index.js +722 -38
  9. package/lib/invariant.js +1 -1
  10. package/lib/preflight-runner.js +125 -47
  11. package/lib/processes-BjZgJjQr.js +344 -0
  12. package/lib/restart-context-D6nISh28.js +1245 -0
  13. package/lib/restart-context-DUyExi9O.js +1245 -0
  14. package/lib/{state-Dhx9VG44.js → state-4f7yny39.js} +60 -13
  15. package/lib/state-CZMypGkB.js +323 -0
  16. package/lib/test-seam-DnvLWTeO.js +119 -0
  17. package/lib/test-seam-cli.js +24 -0
  18. package/lib/test-seam-dwvaKjRp.js +459 -0
  19. package/lib/test-seam.js +2 -0
  20. package/lib/types/browser-handoff.d.ts +55 -0
  21. package/lib/types/browser-handoff.js +489 -0
  22. package/lib/types/cli.d.ts +34 -4
  23. package/lib/types/cli.js +1487 -225
  24. package/lib/types/client/index.d.ts +15 -0
  25. package/lib/types/client/index.js +264 -0
  26. package/lib/types/deployment-proof.d.ts +24 -0
  27. package/lib/types/deployment-proof.js +314 -0
  28. package/lib/types/exit-agent.js +2 -0
  29. package/lib/types/git.d.ts +12 -3
  30. package/lib/types/git.js +69 -7
  31. package/lib/types/index.d.ts +66 -3
  32. package/lib/types/index.js +157 -39
  33. package/lib/types/launch-spec.d.ts +263 -0
  34. package/lib/types/launch-spec.js +823 -0
  35. package/lib/types/preflight-runner.d.ts +23 -12
  36. package/lib/types/preflight-runner.js +152 -57
  37. package/lib/types/processes.d.ts +38 -6
  38. package/lib/types/processes.js +236 -10
  39. package/lib/types/restart-context.d.ts +50 -0
  40. package/lib/types/restart-context.js +106 -0
  41. package/lib/types/restart-request.d.ts +32 -0
  42. package/lib/types/restart-request.js +128 -0
  43. package/lib/types/state-files.d.ts +30 -0
  44. package/lib/types/state-files.js +55 -0
  45. package/lib/types/state.d.ts +29 -2
  46. package/lib/types/state.js +52 -7
  47. package/lib/types/temp-artifact.d.ts +15 -0
  48. package/lib/types/temp-artifact.js +17 -0
  49. package/lib/types/test-seam-cli.d.ts +3 -0
  50. package/lib/types/test-seam-cli.js +27 -0
  51. package/lib/types/test-seam.d.ts +55 -0
  52. package/lib/types/test-seam.js +112 -0
  53. package/lib/types/transition.d.ts +118 -0
  54. package/lib/types/transition.js +717 -0
  55. package/package.json +29 -9
  56. package/scripts/dsh-watchdog.sh +1388 -80
  57. package/scripts/install-launchd.sh +43 -5
  58. package/scripts/install-systemd.sh +43 -5
  59. package/scripts/on-install.js +1 -1
  60. package/skills/dsh-self-restart-guard/SKILL.md +38 -12
  61. package/lib/processes-hCAmwma-.js +0 -127
  62. package/lib/restart-context-DmnQXNf-.js +0 -421
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@khorsheed/dsh-ankh-guard",
3
3
  "description": "Hard gate for self-modification restarts: a green-build credential bound to the git HEAD, checked before any restart of the running instance",
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/types/index.d.ts",
@@ -21,6 +21,10 @@
21
21
  "types": "./lib/types/cli.d.ts",
22
22
  "default": "./lib/cli.js"
23
23
  },
24
+ "./client": {
25
+ "types": "./lib/types/client/index.d.ts",
26
+ "default": "./lib/client.js"
27
+ },
24
28
  "./package.json": "./package.json"
25
29
  },
26
30
  "files": [
@@ -40,19 +44,30 @@
40
44
  "@deepseek-ai/cordis": "^4.0.1",
41
45
  "@deepseek-ai/dsh-agent": "^0.1.0-rc.6",
42
46
  "@deepseek-ai/dsh-agent-presets": "^0.1.0-rc.6",
47
+ "@deepseek-ai/dsh-client-connection": "^0.1.0-rc.6",
48
+ "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.6",
43
49
  "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",
44
50
  "@deepseek-ai/dsh-llm": "^0.1.0-rc.6",
45
51
  "@deepseek-ai/dsh-session-persistence": "^0.1.0-rc.6",
46
52
  "@deepseek-ai/schemastery": "^3.18.1"
47
53
  },
54
+ "peerDependenciesMeta": {
55
+ "@deepseek-ai/dsh-client-connection": {
56
+ "optional": true
57
+ },
58
+ "@deepseek-ai/dsh-host-webserver": {
59
+ "optional": true
60
+ }
61
+ },
48
62
  "devDependencies": {
49
63
  "@deepseek-ai/cordis": "^4.0.1",
50
64
  "@deepseek-ai/cordis-plugin-loader": "^1.0.2",
51
- "@deepseek-ai/dsh-agent": "^0.1.1-rc.1",
52
- "@deepseek-ai/dsh-agent-presets": "^0.1.1-rc.1",
53
- "@deepseek-ai/dsh-invariants": "^0.1.1-rc.1",
54
- "@deepseek-ai/dsh-llm": "^0.1.1-rc.1",
55
- "@deepseek-ai/dsh-session-persistence": "^0.1.1-rc.1",
65
+ "@deepseek-ai/dsh-agent": "^0.1.2-rc.1",
66
+ "@deepseek-ai/dsh-agent-presets": "^0.1.2-rc.1",
67
+ "@deepseek-ai/dsh-invariants": "^0.1.2-rc.1",
68
+ "@deepseek-ai/dsh-llm": "^0.1.2-rc.1",
69
+ "@deepseek-ai/dsh-session-persistence": "^0.1.2-rc.1",
70
+ "@deepseek-ai/dsh-skill": "^0.1.2-rc.1",
56
71
  "@deepseek-ai/schemastery": "^3.18.1",
57
72
  "@types/node": "^22.0.0",
58
73
  "tsdown": "^0.22.2",
@@ -74,10 +89,15 @@
74
89
  "bundle": {
75
90
  "patch": "./cordis.patch.yml"
76
91
  },
92
+ "client": {
93
+ "inject": [],
94
+ "platform": "web",
95
+ "immediately": true
96
+ },
77
97
  "compat": {
78
- "minHost": "0.1.0-rc.6",
79
- "notes": "composition-preflight gate runs via the standalone preflight-runner (resolves official packages from a live harness checkout, no fork patch); on the npm line without a checkout it degrades to a notice, every other capability intact",
80
- "verifiedHost": "0.1.1-rc.2"
98
+ "minHost": "0.1.2-rc.1",
99
+ "notes": "composition-preflight runs via the standalone preflight-runner and degrades to a notice when no live harness checkout resolves; original-tab browser handoff feature-probes optional WebServer/connection auth seams; reversible state quarantine was exercised in a live 0.1.1-rc.2 to 0.1.2-alpha.4 cutover",
100
+ "verifiedHost": "0.1.2-rc.1"
81
101
  }
82
102
  }
83
103
  }