@guiho/runx 0.2.7 → 0.4.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 (86) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/DOCS.md +127 -128
  3. package/README.md +56 -75
  4. package/devops/build-binaries.ts +44 -62
  5. package/devops/devops.xdocs.md +8 -5
  6. package/devops/install.ps1 +182 -152
  7. package/devops/install.sh +197 -262
  8. package/devops/installers.spec.ts +31 -0
  9. package/devops/verify-release-assets.ts +17 -0
  10. package/docs/docs.xdocs.md +3 -1
  11. package/docs/plans/plans.xdocs.md +7 -0
  12. package/docs/plans/rfc-0034-cli-compliance-migration.md +586 -0
  13. package/docs/plans/upgrade-reliability-implementation.md +95 -0
  14. package/docs/reviews/implementation/implementation.xdocs.md +2 -0
  15. package/docs/reviews/implementation/rfc-0034-cli-compliance-migration-review.md +59 -0
  16. package/docs/reviews/plans/plans.xdocs.md +6 -0
  17. package/docs/reviews/plans/rfc-0034-cli-compliance-migration-review.md +80 -0
  18. package/docs/reviews/plans/upgrade-reliability-implementation-review.md +65 -0
  19. package/docs/superpowers/specs/2026-07-15-upgrade-reliability-design.md +662 -0
  20. package/docs/superpowers/specs/specs.xdocs.md +24 -0
  21. package/docs/superpowers/superpowers.xdocs.md +21 -0
  22. package/docs/todo/rfc-0034-cli-compliance-migration-implementation.md +58 -0
  23. package/docs/todo/rfc-0034-cli-compliance-migration.md +151 -0
  24. package/docs/todo/todo.xdocs.md +6 -2
  25. package/docs/validation/rfc-0034-cli-compliance-migration.md +67 -0
  26. package/docs/validation/upgrade-reliability.md +124 -0
  27. package/docs/validation/validation.xdocs.md +5 -0
  28. package/library/agents.d.ts +28 -4
  29. package/library/agents.d.ts.map +1 -1
  30. package/library/agents.js +143 -41
  31. package/library/cli.d.ts.map +1 -1
  32. package/library/cli.js +296 -334
  33. package/library/configuration.d.ts +57 -0
  34. package/library/configuration.d.ts.map +1 -0
  35. package/library/configuration.js +111 -0
  36. package/library/embedded-resources.d.ts +6 -1
  37. package/library/embedded-resources.d.ts.map +1 -1
  38. package/library/embedded-resources.js +10 -4
  39. package/library/executor.d.ts +5 -1
  40. package/library/executor.d.ts.map +1 -1
  41. package/library/executor.js +10 -10
  42. package/library/help.d.ts +8 -4
  43. package/library/help.d.ts.map +1 -1
  44. package/library/help.js +70 -46
  45. package/library/init.d.ts +8 -27
  46. package/library/init.d.ts.map +1 -1
  47. package/library/init.js +37 -159
  48. package/library/manifest.d.ts +4 -43
  49. package/library/manifest.d.ts.map +1 -1
  50. package/library/manifest.js +4 -125
  51. package/library/path-utils.d.ts +13 -0
  52. package/library/path-utils.d.ts.map +1 -0
  53. package/library/path-utils.js +82 -0
  54. package/library/recovery.d.ts +7 -0
  55. package/library/recovery.d.ts.map +1 -0
  56. package/library/recovery.js +23 -0
  57. package/library/release-catalog.d.ts +32 -0
  58. package/library/release-catalog.d.ts.map +1 -0
  59. package/library/release-catalog.js +124 -0
  60. package/library/self-management.d.ts +24 -4
  61. package/library/self-management.d.ts.map +1 -1
  62. package/library/self-management.js +279 -99
  63. package/library/storage.d.ts +13 -0
  64. package/library/storage.d.ts.map +1 -0
  65. package/library/storage.js +38 -0
  66. package/library/types.d.ts +11 -16
  67. package/library/types.d.ts.map +1 -1
  68. package/library/types.js +3 -0
  69. package/library/update-cache.d.ts +21 -0
  70. package/library/update-cache.d.ts.map +1 -0
  71. package/library/update-cache.js +68 -0
  72. package/library/upgrade-reporting.d.ts +11 -0
  73. package/library/upgrade-reporting.d.ts.map +1 -0
  74. package/library/upgrade-reporting.js +67 -0
  75. package/library/upgrade-types.d.ts +72 -0
  76. package/library/upgrade-types.d.ts.map +1 -0
  77. package/library/upgrade-types.js +3 -0
  78. package/package.json +6 -3
  79. package/scripts/runx-bin.mjs +49 -0
  80. package/scripts/runx-bin.spec.ts +62 -0
  81. package/scripts/scripts.xdocs.md +3 -3
  82. package/skills/guiho-s-runx/SKILL.md +64 -59
  83. package/skills/guiho-s-runx/guiho-s-runx.xdocs.md +7 -4
  84. package/skills/skills.xdocs.md +1 -1
  85. package/docs/todo/implement-runx-alpha.md +0 -36
  86. package/scripts/runx-bin.ts +0 -24
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  subject: guiho-s-runx
3
- description: Agent workflow for inspecting, validating, getting Citty usage for, and safely executing RunX manifest commands.
3
+ description: Agent workflow for safe RunX catalog execution and verified native upgrade/list/recovery operations.
4
4
  parent: runx-skills
5
5
  children: []
6
6
  files:
7
- SKILL.md: RunX-specific agent instructions, help aliases, and safe execution workflow.
7
+ SKILL.md: RFC-aligned RunX catalog inspection, execution safety, YAML precedence, agent, and upgrade guidance.
8
8
  documents:
9
- SKILL.md: RunX-specific agent instructions, Citty help/version guidance, and safe execution workflow.
9
+ SKILL.md: RunX-specific command execution and verified native self-upgrade workflow.
10
10
  tags:
11
11
  - agents
12
12
  - runx
@@ -15,9 +15,12 @@ keywords:
15
15
  - citty
16
16
  - command catalog
17
17
  - dry run
18
+ - runx upgrade
19
+ - recovery install
18
20
  flags: []
19
21
  status: stable
20
22
  ---
21
23
 
22
24
  The skill makes manifest inspection, UID selection, dry runs, and explicit
23
- confirmation the default agent workflow for RunX commands.
25
+ confirmation the default agent workflow for RunX commands and teaches agents
26
+ how to interpret transactional native upgrades and their recovery contract.
@@ -16,4 +16,4 @@ flags: []
16
16
  status: stable
17
17
  ---
18
18
 
19
- Bundled skills ship with RunX and can be installed through `runx agents install`.
19
+ Bundled skills ship with RunX and can be managed through `runx agent skill`.
@@ -1,36 +0,0 @@
1
- ---
2
- name: Implement RunX Alpha Command Catalog
3
- purpose: Define the expected outcome, constraints, and completion signals for task 1 in TODO.md.
4
- description: Describes the first RunX CLI release and the safety, documentation, and validation constraints that govern it.
5
- created: 2026-07-12
6
- flags:
7
- - implementation
8
- tags:
9
- - todo
10
- - cli
11
- keywords:
12
- - runx
13
- - alpha
14
- owner: runx-todo
15
- ---
16
-
17
- # Implement RunX Alpha Command Catalog
18
-
19
- ## Todo Index
20
-
21
- - Task: `1. Implement RunX Alpha Command Catalog`
22
- - Status: completed
23
- - Index: [TODO.md](../../TODO.md)
24
-
25
- ## Outcome
26
-
27
- Deliver a documented, locally executable RunX alpha that meets the approved
28
- command-catalog acceptance criteria without publishing a package.
29
-
30
- ## Watch-outs
31
-
32
- - Preserve read-only behavior for list, describe, check, and dry run paths.
33
- - Never place secrets in a manifest or run confirmation-gated commands without
34
- `--yes`.
35
- - Keep every new module and document represented by XDocs metadata.
36
- - Use Mirror for the version transition and keep commits one file at a time.
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env bun
2
-
3
- const args = process.argv.slice(2)
4
- const binaryPath = new URL(`../vendor/runx${process.platform === 'win32' ? '.exe' : ''}`, import.meta.url)
5
- const libraryPath = new URL('../library/guiho-runx-bin.js', import.meta.url)
6
- const sourcePath = new URL('../source/guiho-runx-bin.ts', import.meta.url)
7
-
8
- if (await Bun.file(binaryPath).exists()) {
9
- const child = Bun.spawn([Bun.fileURLToPath(binaryPath), ...args], { stdin: 'inherit', stdout: 'inherit', stderr: 'inherit' })
10
- process.exit(await child.exited)
11
- }
12
-
13
- if (await Bun.file(libraryPath).exists()) {
14
- const child = Bun.spawn([process.execPath, Bun.fileURLToPath(libraryPath), ...args], { stdin: 'inherit', stdout: 'inherit', stderr: 'inherit' })
15
- process.exit(await child.exited)
16
- }
17
-
18
- if (await Bun.file(sourcePath).exists()) {
19
- const child = Bun.spawn([process.execPath, Bun.fileURLToPath(sourcePath), ...args], { stdin: 'inherit', stdout: 'inherit', stderr: 'inherit' })
20
- process.exit(await child.exited)
21
- }
22
-
23
- console.error('error: RunX executable is unavailable. Install an official native release or reinstall @guiho/runx.')
24
- process.exit(1)