@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.
- package/CHANGELOG.md +27 -0
- package/DOCS.md +127 -128
- package/README.md +56 -75
- package/devops/build-binaries.ts +44 -62
- package/devops/devops.xdocs.md +8 -5
- package/devops/install.ps1 +182 -152
- package/devops/install.sh +197 -262
- package/devops/installers.spec.ts +31 -0
- package/devops/verify-release-assets.ts +17 -0
- package/docs/docs.xdocs.md +3 -1
- package/docs/plans/plans.xdocs.md +7 -0
- package/docs/plans/rfc-0034-cli-compliance-migration.md +586 -0
- package/docs/plans/upgrade-reliability-implementation.md +95 -0
- package/docs/reviews/implementation/implementation.xdocs.md +2 -0
- package/docs/reviews/implementation/rfc-0034-cli-compliance-migration-review.md +59 -0
- package/docs/reviews/plans/plans.xdocs.md +6 -0
- package/docs/reviews/plans/rfc-0034-cli-compliance-migration-review.md +80 -0
- package/docs/reviews/plans/upgrade-reliability-implementation-review.md +65 -0
- package/docs/superpowers/specs/2026-07-15-upgrade-reliability-design.md +662 -0
- package/docs/superpowers/specs/specs.xdocs.md +24 -0
- package/docs/superpowers/superpowers.xdocs.md +21 -0
- package/docs/todo/rfc-0034-cli-compliance-migration-implementation.md +58 -0
- package/docs/todo/rfc-0034-cli-compliance-migration.md +151 -0
- package/docs/todo/todo.xdocs.md +6 -2
- package/docs/validation/rfc-0034-cli-compliance-migration.md +67 -0
- package/docs/validation/upgrade-reliability.md +124 -0
- package/docs/validation/validation.xdocs.md +5 -0
- package/library/agents.d.ts +28 -4
- package/library/agents.d.ts.map +1 -1
- package/library/agents.js +143 -41
- package/library/cli.d.ts.map +1 -1
- package/library/cli.js +296 -334
- package/library/configuration.d.ts +57 -0
- package/library/configuration.d.ts.map +1 -0
- package/library/configuration.js +111 -0
- package/library/embedded-resources.d.ts +6 -1
- package/library/embedded-resources.d.ts.map +1 -1
- package/library/embedded-resources.js +10 -4
- package/library/executor.d.ts +5 -1
- package/library/executor.d.ts.map +1 -1
- package/library/executor.js +10 -10
- package/library/help.d.ts +8 -4
- package/library/help.d.ts.map +1 -1
- package/library/help.js +70 -46
- package/library/init.d.ts +8 -27
- package/library/init.d.ts.map +1 -1
- package/library/init.js +37 -159
- package/library/manifest.d.ts +4 -43
- package/library/manifest.d.ts.map +1 -1
- package/library/manifest.js +4 -125
- package/library/path-utils.d.ts +13 -0
- package/library/path-utils.d.ts.map +1 -0
- package/library/path-utils.js +82 -0
- package/library/recovery.d.ts +7 -0
- package/library/recovery.d.ts.map +1 -0
- package/library/recovery.js +23 -0
- package/library/release-catalog.d.ts +32 -0
- package/library/release-catalog.d.ts.map +1 -0
- package/library/release-catalog.js +124 -0
- package/library/self-management.d.ts +24 -4
- package/library/self-management.d.ts.map +1 -1
- package/library/self-management.js +279 -99
- package/library/storage.d.ts +13 -0
- package/library/storage.d.ts.map +1 -0
- package/library/storage.js +38 -0
- package/library/types.d.ts +11 -16
- package/library/types.d.ts.map +1 -1
- package/library/types.js +3 -0
- package/library/update-cache.d.ts +21 -0
- package/library/update-cache.d.ts.map +1 -0
- package/library/update-cache.js +68 -0
- package/library/upgrade-reporting.d.ts +11 -0
- package/library/upgrade-reporting.d.ts.map +1 -0
- package/library/upgrade-reporting.js +67 -0
- package/library/upgrade-types.d.ts +72 -0
- package/library/upgrade-types.d.ts.map +1 -0
- package/library/upgrade-types.js +3 -0
- package/package.json +6 -3
- package/scripts/runx-bin.mjs +49 -0
- package/scripts/runx-bin.spec.ts +62 -0
- package/scripts/scripts.xdocs.md +3 -3
- package/skills/guiho-s-runx/SKILL.md +64 -59
- package/skills/guiho-s-runx/guiho-s-runx.xdocs.md +7 -4
- package/skills/skills.xdocs.md +1 -1
- package/docs/todo/implement-runx-alpha.md +0 -36
- package/scripts/runx-bin.ts +0 -24
|
@@ -7,10 +7,12 @@ files:
|
|
|
7
7
|
citty-cli-migration-review.md: Reviews the implemented Citty command tree, compatibility adapter, tests, documentation, packaging, and release readiness.
|
|
8
8
|
interactive-init-manifest-review.md: Reviews the implemented RunX initializer, strict manifest contract, tests, documentation, and delivery readiness.
|
|
9
9
|
windows-self-upgrade-review.md: Reviews synchronous Windows replacement, rollback, cleanup, tests, CI coverage, and release readiness.
|
|
10
|
+
rfc-0034-cli-compliance-migration-review.md: Accepts the complete RFC 0034 runtime, CLI, agent, installer, packaging, documentation, and release migration.
|
|
10
11
|
documents:
|
|
11
12
|
citty-cli-migration-review.md: Accepted implementation review for the full Citty CLI migration.
|
|
12
13
|
interactive-init-manifest-review.md: Accepted implementation review for the RunX interactive init manifest feature.
|
|
13
14
|
windows-self-upgrade-review.md: Accepted implementation review for the Windows native self-upgrade fix.
|
|
15
|
+
rfc-0034-cli-compliance-migration-review.md: Accepted implementation review for RX-01 through RX-16.
|
|
14
16
|
tags:
|
|
15
17
|
- reviews
|
|
16
18
|
- implementation
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: RunX RFC 0034 CLI Compliance Migration Implementation Review
|
|
3
|
+
purpose: Review the delivered migration against all RX units and RFC completion gates.
|
|
4
|
+
description: Findings-first delivery review of runtime, CLI, agents, upgrades, installers, packaging, tests, docs, and release assets.
|
|
5
|
+
created: 2026-07-18
|
|
6
|
+
flags:
|
|
7
|
+
- accepted
|
|
8
|
+
tags:
|
|
9
|
+
- review
|
|
10
|
+
- cli
|
|
11
|
+
keywords:
|
|
12
|
+
- RFC 0034
|
|
13
|
+
- implementation review
|
|
14
|
+
- RunX
|
|
15
|
+
owner: runx-implementation-reviews
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# RunX RFC 0034 CLI Compliance Migration Implementation Review
|
|
19
|
+
|
|
20
|
+
## Verdict
|
|
21
|
+
|
|
22
|
+
Accepted.
|
|
23
|
+
|
|
24
|
+
## Findings
|
|
25
|
+
|
|
26
|
+
No blocker, high, medium, or low finding remains.
|
|
27
|
+
|
|
28
|
+
The review found and corrected three implementation-stage issues before
|
|
29
|
+
acceptance: nested Citty execution initially allowed the root banner to pollute
|
|
30
|
+
JSON output, directory existence checking initially rejected valid command
|
|
31
|
+
working directories, and legacy Windows cleanup tests waited indefinitely.
|
|
32
|
+
Focused tests now cover each corrected behavior.
|
|
33
|
+
|
|
34
|
+
## Acceptance Criteria Check
|
|
35
|
+
|
|
36
|
+
- Mandatory Bun, TypeScript, Citty, and TypeBox stack: accepted.
|
|
37
|
+
- Core prohibited-import scan: accepted.
|
|
38
|
+
- YAML precedence and configuration exit behavior: accepted.
|
|
39
|
+
- Exact startup banner and detached cache worker: accepted.
|
|
40
|
+
- Complete help modes at every public scope: accepted.
|
|
41
|
+
- Singular agent namespace and idempotent resources: accepted.
|
|
42
|
+
- Output/exit codes and delegated exit preservation: accepted.
|
|
43
|
+
- Upgrade selection, catalog, replacement, rollback, and reconciliation:
|
|
44
|
+
accepted.
|
|
45
|
+
- Direct installers and Node-only npm bootstrap: accepted.
|
|
46
|
+
- Twelve native binaries plus two named agent assets: accepted.
|
|
47
|
+
- Docs, TODO, xdocs, tests, and build evidence: accepted.
|
|
48
|
+
|
|
49
|
+
## Residual Risk
|
|
50
|
+
|
|
51
|
+
Publishing and GitHub Release creation are intentionally outside this delivery.
|
|
52
|
+
The workflows are validated locally and will execute only on a protected
|
|
53
|
+
Mirror-managed version tag.
|
|
54
|
+
|
|
55
|
+
## References
|
|
56
|
+
|
|
57
|
+
- [Implementation plan](../../plans/rfc-0034-cli-compliance-migration.md)
|
|
58
|
+
- [Implementation notes](../../todo/rfc-0034-cli-compliance-migration-implementation.md)
|
|
59
|
+
- [Validation report](../../validation/rfc-0034-cli-compliance-migration.md)
|
|
@@ -8,13 +8,17 @@ files:
|
|
|
8
8
|
interactive-init-manifest-review.md: Reviews the RunX init manifest schema, terminal workflow, tests, XDocs, and pull-request delivery.
|
|
9
9
|
mirror-automatic-push-review.md: Reviews synchronized-main safeguards, read-only validation, protected delivery, and release side effects.
|
|
10
10
|
npm-trusted-publishing-release-review.md: Reviews sequencing, acceptance criteria, safety gates, and validation for the RunX 0.2.1 trusted-publishing plan.
|
|
11
|
+
rfc-0034-cli-compliance-migration-review.md: Reviews the full breaking RunX RFC 0034 migration for sequencing, command/agent coverage, distribution, validation, and approval gates.
|
|
11
12
|
windows-self-upgrade-review.md: Reviews synchronous replacement, rollback, regression coverage, issue closure, and patch delivery.
|
|
13
|
+
upgrade-reliability-implementation-review.md: Reviews execution readiness for complete release discovery, transactional upgrades, recovery, installers, and validation.
|
|
12
14
|
documents:
|
|
13
15
|
citty-cli-migration-review.md: Ready-for-execution review of the full Citty CLI migration plan.
|
|
14
16
|
interactive-init-manifest-review.md: Ready-for-execution review of the RunX interactive init manifest plan.
|
|
15
17
|
mirror-automatic-push-review.md: Ready-for-execution review of the Mirror automatic-push configuration plan.
|
|
16
18
|
npm-trusted-publishing-release-review.md: Ready-for-execution review of the npm trusted-publishing release plan.
|
|
19
|
+
rfc-0034-cli-compliance-migration-review.md: Ready-for-execution review of the complete RFC 0034 migration plan.
|
|
17
20
|
windows-self-upgrade-review.md: Ready-for-execution review of the Windows native self-upgrade fix plan.
|
|
21
|
+
upgrade-reliability-implementation-review.md: Ready-for-execution review for GitHub issues 12 and 13.
|
|
18
22
|
tags:
|
|
19
23
|
- reviews
|
|
20
24
|
- plans
|
|
@@ -26,6 +30,8 @@ keywords:
|
|
|
26
30
|
- scripts directory
|
|
27
31
|
- mirror push
|
|
28
32
|
- trusted publishing
|
|
33
|
+
- RFC 0034
|
|
34
|
+
- cli compliance
|
|
29
35
|
- windows self-upgrade
|
|
30
36
|
flags: []
|
|
31
37
|
status: stable
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: RunX RFC 0034 CLI Compliance Migration Plan Review
|
|
3
|
+
purpose: Verify that the RunX RFC 0034 migration plan is sequenced, explicit, testable, and safe to execute.
|
|
4
|
+
description: Reviews the breaking migration plan against the CLI contract, current RunX architecture, TODO tracking, documentation duties, and release approval gates.
|
|
5
|
+
created: 2026-07-18
|
|
6
|
+
flags:
|
|
7
|
+
- approved
|
|
8
|
+
- ready-for-execution
|
|
9
|
+
tags:
|
|
10
|
+
- review
|
|
11
|
+
- plan
|
|
12
|
+
- cli
|
|
13
|
+
keywords:
|
|
14
|
+
- runx
|
|
15
|
+
- RFC 0034
|
|
16
|
+
- plan readiness
|
|
17
|
+
- breaking migration
|
|
18
|
+
owner: runx-plan-reviews
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# RunX RFC 0034 CLI Compliance Migration Plan Review
|
|
22
|
+
|
|
23
|
+
## Verdict
|
|
24
|
+
|
|
25
|
+
Ready for execution.
|
|
26
|
+
|
|
27
|
+
## Findings
|
|
28
|
+
|
|
29
|
+
No blocker or high-severity finding remains.
|
|
30
|
+
|
|
31
|
+
- Medium, resolved: Earlier RunX requirements and decisions require `runx r`,
|
|
32
|
+
root selector shorthand, `--file`, upward discovery, and a home page. The new
|
|
33
|
+
plan records the developer-approved breaking boundary and requires conflicting
|
|
34
|
+
durable documents to be superseded.
|
|
35
|
+
- Medium, resolved: Current agent code only installs/updates one selected tool,
|
|
36
|
+
writes AGENTS only, uses non-RFC markers, and has no prompt catalog. RX-09
|
|
37
|
+
explicitly covers both skill paths, all actions, instruction resolution,
|
|
38
|
+
idempotency, prompts, embedding, and isolated tests.
|
|
39
|
+
- Medium, resolved: Current release work builds twelve `macos` binaries but no
|
|
40
|
+
agent assets. RX-12 through RX-14 sequence installer, bootstrap, naming,
|
|
41
|
+
packaging, workflow, and exact-set verification.
|
|
42
|
+
- Medium, resolved: The npm launcher requirement could conflict with Bun-only
|
|
43
|
+
core source. RX-13 names `scripts/runx-bin.mjs` as the isolated Node exception.
|
|
44
|
+
- Low, resolved: Creating plans/specs/reviews requires xdocs companion metadata.
|
|
45
|
+
The affected descriptors are included in this planning unit.
|
|
46
|
+
|
|
47
|
+
## Sequencing Risks
|
|
48
|
+
|
|
49
|
+
The Bun-only source foundation and TypeBox boundaries correctly precede
|
|
50
|
+
configuration, startup, agent, and upgrade behavior. The command tree precedes
|
|
51
|
+
generated help. Agent resources precede installers and release packaging.
|
|
52
|
+
Documentation follows stable behavior and precedes final validation.
|
|
53
|
+
|
|
54
|
+
## Acceptance Criteria Review
|
|
55
|
+
|
|
56
|
+
Every unit states a goal, dependencies, files or modules, actions, acceptance
|
|
57
|
+
signals, and stop/approval conditions where risk exists. The validation unit
|
|
58
|
+
covers source, CLI, native binaries, npm bootstrap, installers, prohibited
|
|
59
|
+
imports, fourteen assets, xdocs, review, and release boundaries.
|
|
60
|
+
|
|
61
|
+
## TODO Alignment
|
|
62
|
+
|
|
63
|
+
RunX TODO task `1` links the task specification and executable plan. It remains
|
|
64
|
+
`todo` and cannot become completed until validation evidence proves every RFC
|
|
65
|
+
completion-gate item.
|
|
66
|
+
|
|
67
|
+
## First Executable Unit
|
|
68
|
+
|
|
69
|
+
RX-01: record baseline commands, checks, prohibited imports, agent behavior, and
|
|
70
|
+
release assets in an understood worktree.
|
|
71
|
+
|
|
72
|
+
## Recommended Next Skill
|
|
73
|
+
|
|
74
|
+
Use `guiho-s-0023-plan-executor` with `guiho-s-0034-cli-engineer`.
|
|
75
|
+
|
|
76
|
+
## References
|
|
77
|
+
|
|
78
|
+
- [Migration plan](../../plans/rfc-0034-cli-compliance-migration.md)
|
|
79
|
+
- [Task specification](../../todo/rfc-0034-cli-compliance-migration.md)
|
|
80
|
+
- [TODO.md](../../../TODO.md)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: RunX Upgrade Reliability Implementation Plan Review
|
|
3
|
+
purpose: Establish whether the upgrade reliability plan is safe and specific enough for uninterrupted execution.
|
|
4
|
+
description: Reviews traceability, sequencing, failure handling, tests, documentation, and release boundaries for GitHub issues 12 and 13.
|
|
5
|
+
created: 2026-07-15
|
|
6
|
+
flags:
|
|
7
|
+
- approved
|
|
8
|
+
tags:
|
|
9
|
+
- reviews
|
|
10
|
+
- plans
|
|
11
|
+
- reliability
|
|
12
|
+
keywords:
|
|
13
|
+
- runx upgrade
|
|
14
|
+
- plan review
|
|
15
|
+
- issue 12
|
|
16
|
+
- issue 13
|
|
17
|
+
owner: runx-plan-reviews
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# RunX Upgrade Reliability Implementation Plan Review
|
|
21
|
+
|
|
22
|
+
## Verdict
|
|
23
|
+
|
|
24
|
+
Ready for execution.
|
|
25
|
+
|
|
26
|
+
## Findings
|
|
27
|
+
|
|
28
|
+
No blocker or high-severity findings remain.
|
|
29
|
+
|
|
30
|
+
- Medium, resolved in the plan: installer validation could otherwise be deferred as a platform concern. Unit 4 now requires contract tests and records unavailable live platform checks without weakening verification semantics.
|
|
31
|
+
- Medium, resolved in the plan: CLI recovery output could be lost at the generic error boundary. Units 2 and 3 explicitly require command-specific failure envelopes, concise stderr, stdout recovery, and a single JSON document.
|
|
32
|
+
- Low, accepted: the release catalog may expose invalid SemVer tags. The approved design deliberately keeps them after valid SemVer entries with channel `other`, preserving complete publication visibility.
|
|
33
|
+
|
|
34
|
+
## Sequencing Risks
|
|
35
|
+
|
|
36
|
+
The sequence is correct: release normalization and recovery are prerequisites for the planner, reporter, CLI, and installers. Documentation follows implemented behavior, and full validation is last. Each unit is bounded to one repository and names its affected modules.
|
|
37
|
+
|
|
38
|
+
## Acceptance Criteria Coverage
|
|
39
|
+
|
|
40
|
+
- Plan before download and ordered phases: Units 2 and 3.
|
|
41
|
+
- Immediate canonical replacement, exact verification, rollback, and deferred backup cleanup only: Unit 2.
|
|
42
|
+
- Complete paginated SemVer catalog with channel/date/current/latest/asset metadata: Units 1 and 3.
|
|
43
|
+
- Recovery and stop commands after every outcome: Units 1-3.
|
|
44
|
+
- Exact-version direct installers with rollback: Unit 4.
|
|
45
|
+
- Help, public docs, skill, XDocs, and release gates: Units 5 and 6.
|
|
46
|
+
|
|
47
|
+
No database, authentication, permission, or persistent cache behavior exists in scope. The plan explicitly marks the upgrade cache phase skipped instead of inventing storage.
|
|
48
|
+
|
|
49
|
+
## TODO and XDocs Alignment
|
|
50
|
+
|
|
51
|
+
Task 2 in `TODO.md` links the approved design, executable plan, and GitHub issues. The plan and task spec are registered in their owning XDocs descriptors. Unit 5 requires affected source, devops, root-doc, and skill metadata to be synchronized before completion.
|
|
52
|
+
|
|
53
|
+
## Stop Conditions
|
|
54
|
+
|
|
55
|
+
The plan correctly stops on release naming contradictions, Citty bypass, architecture changes, destructive operations, or publication/version mutations. The user has already approved uninterrupted implementation within these boundaries.
|
|
56
|
+
|
|
57
|
+
## First Executable Unit
|
|
58
|
+
|
|
59
|
+
Unit 1: implement and test the release catalog and recovery contract.
|
|
60
|
+
|
|
61
|
+
## References
|
|
62
|
+
|
|
63
|
+
- [Implementation plan](../../plans/upgrade-reliability-implementation.md)
|
|
64
|
+
- [Approved design](../../superpowers/specs/2026-07-15-upgrade-reliability-design.md)
|
|
65
|
+
- [Task specification](../../todo/upgrade-reliability.md)
|