@duypham93/openkit 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.
- package/.opencode/README.md +47 -0
- package/.opencode/install-manifest.json +41 -0
- package/.opencode/lib/artifact-scaffolder.js +111 -0
- package/.opencode/lib/contract-consistency.js +218 -0
- package/.opencode/lib/parallel-execution-rules.js +261 -0
- package/.opencode/lib/runtime-paths.js +95 -0
- package/.opencode/lib/runtime-summary.js +82 -0
- package/.opencode/lib/state-guard.js +99 -0
- package/.opencode/lib/task-board-rules.js +375 -0
- package/.opencode/lib/work-item-store.js +280 -0
- package/.opencode/lib/workflow-state-controller.js +1739 -0
- package/.opencode/lib/workflow-state-rules.js +331 -0
- package/.opencode/opencode.json +93 -0
- package/.opencode/package.json +3 -0
- package/.opencode/tests/artifact-scaffolder.test.js +733 -0
- package/.opencode/tests/multi-work-item-runtime.test.js +369 -0
- package/.opencode/tests/parallel-execution-runtime.test.js +259 -0
- package/.opencode/tests/session-start-hook.test.js +357 -0
- package/.opencode/tests/state-guard.test.js +124 -0
- package/.opencode/tests/task-board-rules.test.js +204 -0
- package/.opencode/tests/work-item-store.test.js +380 -0
- package/.opencode/tests/workflow-behavior.test.js +149 -0
- package/.opencode/tests/workflow-contract-consistency.test.js +387 -0
- package/.opencode/tests/workflow-state-cli.test.js +1275 -0
- package/.opencode/tests/workflow-state-controller.test.js +1038 -0
- package/.opencode/work-items/feature-001/state.json +70 -0
- package/.opencode/work-items/index.json +13 -0
- package/.opencode/workflow-state.js +489 -0
- package/.opencode/workflow-state.json +70 -0
- package/AGENTS.md +265 -0
- package/README.md +401 -0
- package/agents/architect-agent.md +63 -0
- package/agents/ba-agent.md +56 -0
- package/agents/code-reviewer.md +77 -0
- package/agents/fullstack-agent.md +115 -0
- package/agents/master-orchestrator.md +60 -0
- package/agents/pm-agent.md +56 -0
- package/agents/qa-agent.md +124 -0
- package/agents/tech-lead-agent.md +60 -0
- package/assets/install-bundle/README.md +7 -0
- package/assets/install-bundle/opencode/README.md +11 -0
- package/assets/install-bundle/opencode/agents/ArchitectAgent.md +63 -0
- package/assets/install-bundle/opencode/agents/BAAgent.md +56 -0
- package/assets/install-bundle/opencode/agents/CodeReviewer.md +77 -0
- package/assets/install-bundle/opencode/agents/FullstackAgent.md +115 -0
- package/assets/install-bundle/opencode/agents/MasterOrchestrator.md +60 -0
- package/assets/install-bundle/opencode/agents/PMAgent.md +56 -0
- package/assets/install-bundle/opencode/agents/QAAgent.md +124 -0
- package/assets/install-bundle/opencode/agents/TechLeadAgent.md +60 -0
- package/assets/install-bundle/opencode/commands/brainstorm.md +44 -0
- package/assets/install-bundle/opencode/commands/delivery.md +45 -0
- package/assets/install-bundle/opencode/commands/execute-plan.md +44 -0
- package/assets/install-bundle/opencode/commands/migrate.md +61 -0
- package/assets/install-bundle/opencode/commands/quick-task.md +45 -0
- package/assets/install-bundle/opencode/commands/task.md +46 -0
- package/assets/install-bundle/opencode/commands/write-plan.md +50 -0
- package/assets/install-bundle/opencode/context/core/lane-selection.md +54 -0
- package/assets/install-bundle/opencode/skills/brainstorming/SKILL.md +51 -0
- package/assets/install-bundle/opencode/skills/code-review/SKILL.md +48 -0
- package/assets/install-bundle/opencode/skills/subagent-driven-development/SKILL.md +79 -0
- package/assets/install-bundle/opencode/skills/systematic-debugging/SKILL.md +61 -0
- package/assets/install-bundle/opencode/skills/test-driven-development/SKILL.md +48 -0
- package/assets/install-bundle/opencode/skills/using-skills/SKILL.md +39 -0
- package/assets/install-bundle/opencode/skills/verification-before-completion/SKILL.md +137 -0
- package/assets/install-bundle/opencode/skills/writing-plans/SKILL.md +68 -0
- package/assets/install-bundle/opencode/skills/writing-specs/SKILL.md +47 -0
- package/assets/opencode.json.template +11 -0
- package/assets/openkit-install.json.template +19 -0
- package/bin/openkit.js +9 -0
- package/commands/brainstorm.md +44 -0
- package/commands/delivery.md +45 -0
- package/commands/execute-plan.md +44 -0
- package/commands/migrate.md +61 -0
- package/commands/quick-task.md +45 -0
- package/commands/task.md +46 -0
- package/commands/write-plan.md +50 -0
- package/context/core/approval-gates.md +146 -0
- package/context/core/code-quality.md +42 -0
- package/context/core/issue-routing.md +85 -0
- package/context/core/lane-selection.md +54 -0
- package/context/core/project-config.md +143 -0
- package/context/core/session-resume.md +85 -0
- package/context/core/workflow-state-schema.md +224 -0
- package/context/core/workflow.md +442 -0
- package/context/navigation.md +94 -0
- package/docs/adr/README.md +6 -0
- package/docs/architecture/2026-03-20-task-intake-dashboard.md +54 -0
- package/docs/architecture/README.md +7 -0
- package/docs/briefs/2026-03-20-task-intake-dashboard.md +48 -0
- package/docs/briefs/README.md +7 -0
- package/docs/governance/README.md +25 -0
- package/docs/governance/adr-policy.md +27 -0
- package/docs/governance/definition-of-done.md +17 -0
- package/docs/governance/naming-conventions.md +21 -0
- package/docs/governance/severity-levels.md +12 -0
- package/docs/maintainer/README.md +51 -0
- package/docs/operations/README.md +79 -0
- package/docs/operations/internal-records/2026-03-24-release-checklist.md +79 -0
- package/docs/operations/internal-records/2026-03-24-simplified-install-ux.md +36 -0
- package/docs/operations/internal-records/README.md +18 -0
- package/docs/operations/runbooks/README.md +23 -0
- package/docs/operations/runbooks/openkit-daily-usage.md +288 -0
- package/docs/operations/runbooks/workflow-state-smoke-tests.md +302 -0
- package/docs/operator/README.md +50 -0
- package/docs/plans/2026-03-20-task-intake-dashboard.md +49 -0
- package/docs/plans/2026-03-21-openkit-full-delivery-multi-task-runtime.md +521 -0
- package/docs/plans/2026-03-23-openkit-global-install-runtime.md +157 -0
- package/docs/plans/README.md +7 -0
- package/docs/qa/2026-03-20-task-intake-dashboard.md +41 -0
- package/docs/qa/README.md +7 -0
- package/docs/specs/2026-03-20-task-intake-dashboard.md +50 -0
- package/docs/specs/2026-03-21-openkit-full-delivery-multi-task-runtime.md +462 -0
- package/docs/specs/README.md +7 -0
- package/docs/templates/README.md +36 -0
- package/docs/templates/adr-template.md +18 -0
- package/docs/templates/architecture-template.md +31 -0
- package/docs/templates/implementation-plan-template.md +32 -0
- package/docs/templates/migration-baseline-checklist.md +48 -0
- package/docs/templates/migration-plan-template.md +52 -0
- package/docs/templates/migration-report-template.md +74 -0
- package/docs/templates/migration-verify-checklist.md +39 -0
- package/docs/templates/product-brief-template.md +32 -0
- package/docs/templates/qa-report-template.md +37 -0
- package/docs/templates/quick-task-template.md +36 -0
- package/docs/templates/spec-template.md +31 -0
- package/hooks/hooks.json +16 -0
- package/hooks/session-start +162 -0
- package/package.json +24 -0
- package/registry.json +328 -0
- package/skills/brainstorming/SKILL.md +51 -0
- package/skills/code-review/SKILL.md +48 -0
- package/skills/subagent-driven-development/SKILL.md +79 -0
- package/skills/systematic-debugging/SKILL.md +61 -0
- package/skills/test-driven-development/SKILL.md +48 -0
- package/skills/using-skills/SKILL.md +39 -0
- package/skills/verification-before-completion/SKILL.md +137 -0
- package/skills/writing-plans/SKILL.md +68 -0
- package/skills/writing-specs/SKILL.md +47 -0
- package/src/audit/vietnamese-detection.js +259 -0
- package/src/cli/commands/detect-vietnamese.js +24 -0
- package/src/cli/commands/doctor.js +33 -0
- package/src/cli/commands/help.js +33 -0
- package/src/cli/commands/init.js +25 -0
- package/src/cli/commands/install-global.js +26 -0
- package/src/cli/commands/install.js +25 -0
- package/src/cli/commands/run.js +63 -0
- package/src/cli/commands/uninstall.js +32 -0
- package/src/cli/commands/upgrade.js +25 -0
- package/src/cli/conflict-output.js +19 -0
- package/src/cli/index.js +56 -0
- package/src/global/doctor.js +101 -0
- package/src/global/ensure-install.js +32 -0
- package/src/global/install-state.js +73 -0
- package/src/global/launcher.js +51 -0
- package/src/global/materialize.js +123 -0
- package/src/global/paths.js +85 -0
- package/src/global/uninstall.js +25 -0
- package/src/global/workspace-state.js +63 -0
- package/src/install/asset-manifest.js +284 -0
- package/src/install/conflicts.js +43 -0
- package/src/install/discovery.js +138 -0
- package/src/install/install-state.js +136 -0
- package/src/install/materialize.js +158 -0
- package/src/install/merge-policy.js +145 -0
- package/src/runtime/doctor.js +281 -0
- package/src/runtime/launcher.js +49 -0
- package/src/runtime/opencode-layering.js +135 -0
- package/src/runtime/openkit-managed-summary.js +27 -0
- package/tests/cli/openkit-cli.test.js +417 -0
- package/tests/global/doctor.test.js +130 -0
- package/tests/global/ensure-install.test.js +105 -0
- package/tests/install/discovery.test.js +124 -0
- package/tests/install/install-state.test.js +346 -0
- package/tests/install/materialize.test.js +244 -0
- package/tests/install/merge-policy.test.js +177 -0
- package/tests/runtime/doctor.test.js +430 -0
- package/tests/runtime/launcher.test.js +230 -0
- package/tests/runtime/module-boundary.test.js +16 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Governance
|
|
2
|
+
|
|
3
|
+
This directory defines durable policy for naming, severity, ADR usage, and definition of done.
|
|
4
|
+
|
|
5
|
+
Use these documents to keep OpenKit maintainable as a reusable operating kit rather than a pile of one-off workflow notes.
|
|
6
|
+
|
|
7
|
+
Current governance surface:
|
|
8
|
+
|
|
9
|
+
- `naming-conventions.md`: filename, slug, and durable ID rules for workflow artifacts
|
|
10
|
+
- `severity-levels.md`: issue severity language used by QA and rework routing
|
|
11
|
+
- `adr-policy.md`: when to record a durable architecture decision
|
|
12
|
+
- `definition-of-done.md`: minimum completion criteria for the current workflow contract
|
|
13
|
+
|
|
14
|
+
Current-state guardrails:
|
|
15
|
+
|
|
16
|
+
- Govern the live lane contract: `Quick Task`, `Migration`, and `Full Delivery`.
|
|
17
|
+
- Treat `Quick Task+` as the live successor semantics of the existing quick lane, not as a third live mode or naming scheme.
|
|
18
|
+
- Keep artifact names aligned with the directories and examples that actually exist in the repository.
|
|
19
|
+
- Do not require build, lint, or test evidence that the repository has not adopted yet; when tooling is absent, require honest verification notes instead.
|
|
20
|
+
- When runtime commands, workflow-state fields, or checked-in templates change, update the related smoke tests and operator docs in the same change.
|
|
21
|
+
|
|
22
|
+
Maintainer note:
|
|
23
|
+
|
|
24
|
+
- When runtime commands, workflow state fields, or artifact expectations change, update the relevant governance docs in the same change so policy stays aligned with the repository's real behavior.
|
|
25
|
+
- When a change updates canonical workflow semantics, also review `doctor` consistency checks and any examples that act as runtime walkthroughs.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ADR Policy
|
|
2
|
+
|
|
3
|
+
Create an ADR when a decision changes architecture boundaries, technology choices, or long-term operational behavior.
|
|
4
|
+
|
|
5
|
+
For the profile/install-manifest layer, create an ADR when a change does any of the following:
|
|
6
|
+
|
|
7
|
+
- changes the meaning or schema of `registry.json` or `.opencode/install-manifest.json`
|
|
8
|
+
- changes the long-term semantics of profile selection, profile composition, or install-manifest ownership
|
|
9
|
+
- adds, removes, or renames workflow-state CLI commands that operators rely on for runtime inspection or manifest management
|
|
10
|
+
- changes session-start or runtime diagnostics in a way that materially affects how maintainers inspect or resume the kit
|
|
11
|
+
- changes scaffold-artifact semantics beyond the current narrow `task_card`/`plan` scope, or changes the required workflow-state prerequisites for scaffolded artifacts
|
|
12
|
+
- introduces a new extension policy that changes how agents, skills, commands, hooks, artifacts, or anchor docs must be registered
|
|
13
|
+
|
|
14
|
+
A lighter decision log is usually enough when the change only:
|
|
15
|
+
|
|
16
|
+
- adds a new registry entry for an already-established component type
|
|
17
|
+
- adds a new profile that only recombines existing component categories without changing command or schema behavior
|
|
18
|
+
- clarifies operator-facing docs, smoke tests, or examples to match existing runtime behavior
|
|
19
|
+
- updates naming, descriptions, or local guidance without changing the runtime contract
|
|
20
|
+
- tightens scaffold command guardrails, tests, or docs without expanding the supported artifact kinds or changing workflow-state meaning
|
|
21
|
+
|
|
22
|
+
## Minimum ADR Content
|
|
23
|
+
|
|
24
|
+
- Context
|
|
25
|
+
- Decision
|
|
26
|
+
- Consequences
|
|
27
|
+
- Alternatives considered
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Definition Of Done
|
|
2
|
+
|
|
3
|
+
A work item is only done when:
|
|
4
|
+
|
|
5
|
+
1. The required artifact for the current stage exists.
|
|
6
|
+
2. The relevant approval gate is recorded.
|
|
7
|
+
3. Implementation and QA evidence are attached when code changes exist.
|
|
8
|
+
4. Open critical and high issues are resolved.
|
|
9
|
+
5. Workflow state reflects the final stage accurately.
|
|
10
|
+
6. Handoff and closure notes are inspectable enough for a later session to understand why the item was allowed to advance or close.
|
|
11
|
+
|
|
12
|
+
Current-state notes:
|
|
13
|
+
|
|
14
|
+
- In `Quick Task`, this means the `quick_plan` checklist, acceptance bullets, verification path, QA Lite evidence, and `quick_verified` approval are recorded honestly; it does not imply a full artifact chain.
|
|
15
|
+
- In `Full Delivery`, this means the required stage artifacts, handoff readiness, and approvals exist for the live full-delivery contract.
|
|
16
|
+
- If the repository has no build, lint, or test tooling for the work, done status requires explicit reporting of the real verification path rather than invented automation claims.
|
|
17
|
+
- Runtime or workflow maintenance work should leave the repository documentation aligned with any newly introduced commands or bootstrap behavior.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Naming Conventions
|
|
2
|
+
|
|
3
|
+
## Artifact Filenames
|
|
4
|
+
|
|
5
|
+
- Use `YYYY-MM-DD-<slug>.md`
|
|
6
|
+
- Keep slugs lowercase and hyphen-separated
|
|
7
|
+
- Reuse the same slug across brief, spec, architecture, plan, and QA artifacts for one feature
|
|
8
|
+
|
|
9
|
+
## IDs
|
|
10
|
+
|
|
11
|
+
- Feature IDs use `FEATURE-###`
|
|
12
|
+
- ADR IDs use `ADR-###`
|
|
13
|
+
- QA issue IDs use `ISSUE-###`
|
|
14
|
+
|
|
15
|
+
## Registry And Profile Metadata
|
|
16
|
+
|
|
17
|
+
- Registry schemas use the form `openkit/<surface>@<version>`; current local metadata uses `openkit/component-registry@1` and `openkit/install-manifest@1`
|
|
18
|
+
- Registry profile names use lowercase kebab-case such as `openkit-core`
|
|
19
|
+
- Registry component IDs use `<category>.<slug>` such as `agent.master-orchestrator` or `command.quick-task`
|
|
20
|
+
- Keep registry category names aligned with real checked-in repository surfaces, not planned future surfaces
|
|
21
|
+
- Treat registry and install-manifest entries as local metadata describing this repository; do not name them as if they fetch remote packages
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Severity Levels
|
|
2
|
+
|
|
3
|
+
## Levels
|
|
4
|
+
|
|
5
|
+
- `critical`: blocks release or risks security/data loss
|
|
6
|
+
- `high`: breaks required behavior or approval criteria
|
|
7
|
+
- `medium`: partial degradation or incorrect edge-case handling
|
|
8
|
+
- `low`: minor quality issue that does not block workflow completion
|
|
9
|
+
|
|
10
|
+
## Rule
|
|
11
|
+
|
|
12
|
+
Critical and high issues block `qa_to_done` approval.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Maintainer Guide
|
|
2
|
+
|
|
3
|
+
This directory is the maintainer-facing index layer for phase 1 information architecture.
|
|
4
|
+
|
|
5
|
+
Use it to find canonical repository docs and upkeep surfaces quickly. Do not treat it as a canonical replacement for the docs it points to.
|
|
6
|
+
|
|
7
|
+
## Phase-1 Authority Rule
|
|
8
|
+
|
|
9
|
+
- this directory is an index, not a relocated source-of-truth layer
|
|
10
|
+
- `AGENTS.md` remains the repository-wide rules and current-state guide
|
|
11
|
+
- `context/core/workflow.md` remains the canonical live workflow-semantics document
|
|
12
|
+
- companion operational details remain canonical in `context/core/`
|
|
13
|
+
- governance, operations, and artifact docs remain canonical in their existing directories
|
|
14
|
+
|
|
15
|
+
## Start Here
|
|
16
|
+
|
|
17
|
+
- Read `AGENTS.md` first for repository rules, tooling caveats, and authority order
|
|
18
|
+
- Read `context/navigation.md` next for context discovery across live docs and retained artifact surfaces
|
|
19
|
+
- Read `context/core/project-config.md` when you need the maintained workflow-state command inventory
|
|
20
|
+
|
|
21
|
+
## Maintainer Routes
|
|
22
|
+
|
|
23
|
+
- Workflow semantics: `context/core/workflow.md`
|
|
24
|
+
- Approval rules: `context/core/approval-gates.md`
|
|
25
|
+
- Issue routing: `context/core/issue-routing.md`
|
|
26
|
+
- Session resume: `context/core/session-resume.md`
|
|
27
|
+
- Workflow-state schema: `context/core/workflow-state-schema.md`
|
|
28
|
+
- Governance policy: `docs/governance/README.md`
|
|
29
|
+
- Operations and diagnostics: `docs/operations/README.md`
|
|
30
|
+
- Artifact guidance: `docs/briefs/README.md`, `docs/specs/README.md`, `docs/architecture/README.md`, `docs/plans/README.md`, `docs/qa/README.md`, `docs/adr/README.md`, `docs/templates/README.md`
|
|
31
|
+
|
|
32
|
+
## Repository Internals To Keep Honest
|
|
33
|
+
|
|
34
|
+
- `.opencode/opencode.json` remains the checked-in authoring and compatibility runtime manifest even though the preferred end-user install path is now global
|
|
35
|
+
- `.opencode/workflow-state.json` remains the active compatibility mirror for the active work item
|
|
36
|
+
- `.opencode/work-items/` remains the per-item backing store for managed runtime state
|
|
37
|
+
- `registry.json` and `.opencode/install-manifest.json` remain additive local metadata, not destructive install machinery
|
|
38
|
+
|
|
39
|
+
## Global Install Notes
|
|
40
|
+
|
|
41
|
+
- The preferred end-user onboarding path is `npm install -g openkit` followed by `openkit run`.
|
|
42
|
+
- The first `openkit run` materializes the managed kit into the OpenCode home directory automatically.
|
|
43
|
+
- `openkit doctor` is the read-only check for the global install and workspace bootstrap state.
|
|
44
|
+
- `openkit install-global`, `openkit install`, and `openkit init` remain available as manual or compatibility commands.
|
|
45
|
+
- The package intentionally avoids npm `postinstall` side effects; setup happens inside the OpenKit CLI where failures and recovery steps are easier to explain.
|
|
46
|
+
|
|
47
|
+
## Historical And Roadmap Notes
|
|
48
|
+
|
|
49
|
+
- Most historical planning and archive docs were intentionally pruned from the working tree during cleanup.
|
|
50
|
+
- Use git history when you need older rationale that is no longer kept as checked-in documentation.
|
|
51
|
+
- If older guidance conflicts with checked-in runtime state, update docs to match reality rather than inventing missing infrastructure.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Operations
|
|
2
|
+
|
|
3
|
+
This directory is the routing index for operational support docs.
|
|
4
|
+
|
|
5
|
+
Use it to decide whether you need an executable runbook, an internal record, operator-facing routing, or lower-level runtime command details.
|
|
6
|
+
|
|
7
|
+
This is an index layer for operations support, not a replacement for canonical workflow docs or audience routing.
|
|
8
|
+
|
|
9
|
+
The current operations surface includes both the global OpenKit install path and the checked-in registry/install-manifest metadata used by this repository as an authoring and compatibility surface.
|
|
10
|
+
|
|
11
|
+
## Directory Routes
|
|
12
|
+
|
|
13
|
+
- `runbooks/README.md`: executable operator guidance and repeatable maintenance procedures
|
|
14
|
+
- `internal-records/README.md`: durable project memory and lightweight record-keeping guidance
|
|
15
|
+
- `docs/operator/README.md`: audience-facing operator routing before deeper operational detail
|
|
16
|
+
- `docs/maintainer/README.md`: audience-facing maintainer routing before lower-level runtime detail
|
|
17
|
+
|
|
18
|
+
## Key Docs
|
|
19
|
+
|
|
20
|
+
- `runbooks/openkit-daily-usage.md`: detailed day-to-day usage guidance for the global install path plus the checked-in compatibility runtime
|
|
21
|
+
- `runbooks/workflow-state-smoke-tests.md`: smoke checks for both the global install path and the workflow-state/session-start internals
|
|
22
|
+
- `internal-records/README.md`: policy for when to keep a sparse durable operational record in-tree
|
|
23
|
+
|
|
24
|
+
## Primary Operator Path
|
|
25
|
+
|
|
26
|
+
Prefer the global install path first for everyday use. Use the checked-in repository/runtime path when maintaining or validating the authoring source in this repository.
|
|
27
|
+
|
|
28
|
+
When OpenKit is installed globally, start with:
|
|
29
|
+
|
|
30
|
+
- `npm install -g openkit`
|
|
31
|
+
- `openkit run`
|
|
32
|
+
- `openkit doctor` for global install readiness, drift, and missing-prerequisite checks
|
|
33
|
+
- `openkit run <args>` for the supported global launcher path and first-time setup
|
|
34
|
+
- `openkit upgrade` to refresh the global kit bundle
|
|
35
|
+
- `openkit uninstall [--remove-workspaces]` to remove the global kit and optionally clear workspace state
|
|
36
|
+
|
|
37
|
+
When the global layer is not installed or when you are maintaining the checked-in runtime itself, use the compatibility surface directly through `node .opencode/workflow-state.js ...` and the canonical docs under `context/core/`.
|
|
38
|
+
|
|
39
|
+
## Lower-Level Runtime Command Surface
|
|
40
|
+
|
|
41
|
+
Current repository/runtime command surface under the checked-in compatibility runtime:
|
|
42
|
+
|
|
43
|
+
- inspection and diagnostics: `show`, `status`, `doctor`, `version`, `profiles`, `show-profile <name>`, `validate`
|
|
44
|
+
- install-manifest metadata: `sync-install-manifest <name>`
|
|
45
|
+
- compatibility entrypoints: `start-feature <feature_id> <feature_slug>` and `start-task <mode> <feature_id> <feature_slug> <mode_reason>`
|
|
46
|
+
- work-item management: `create-work-item <mode> <feature_id> <feature_slug> <mode_reason>`, `list-work-items`, `show-work-item <work_item_id>`, `activate-work-item <work_item_id>`
|
|
47
|
+
- feature-state mutation: `advance-stage <stage>`, `set-approval <gate> <status> [approved_by] [approved_at] [notes]`, `link-artifact <kind> <path>`, `scaffold-artifact <task_card|plan|migration_report> <slug>`
|
|
48
|
+
- task-board management: `list-tasks <work_item_id>`, `create-task <work_item_id> <task_id> <title> <kind> [branch] [worktree_path]`, `claim-task <work_item_id> <task_id> <owner> <requested_by>`, `release-task <work_item_id> <task_id> <requested_by>`, `reassign-task <work_item_id> <task_id> <owner> <requested_by>`, `assign-qa-owner <work_item_id> <task_id> <qa_owner> <requested_by>`, `set-task-status <work_item_id> <task_id> <status>`, `validate-work-item-board <work_item_id>`
|
|
49
|
+
- issue routing: `record-issue <issue_id> <title> <type> <severity> <rooted_in> <recommended_owner> <evidence> <artifact_refs>`, `clear-issues`, `route-rework <issue_type> [repeat_failed_fix=true|false]`
|
|
50
|
+
|
|
51
|
+
Task-board guardrail:
|
|
52
|
+
|
|
53
|
+
- task-board commands remain full-delivery only; quick and migration work items stay task-board free in the current runtime
|
|
54
|
+
|
|
55
|
+
## Global Install Vs. Runtime Checks
|
|
56
|
+
|
|
57
|
+
Keep this distinction explicit:
|
|
58
|
+
|
|
59
|
+
- `openkit doctor` checks the supported global installation path.
|
|
60
|
+
- `node .opencode/workflow-state.js doctor` checks the underlying repository/runtime state.
|
|
61
|
+
- Both are useful, but they answer different questions and should not be described as interchangeable.
|
|
62
|
+
|
|
63
|
+
## Route By Need
|
|
64
|
+
|
|
65
|
+
- audience-specific operator routing: `docs/operator/README.md`
|
|
66
|
+
- workflow and command reality: `context/core/project-config.md`
|
|
67
|
+
- workflow semantics and resume rules: `context/core/workflow.md` and `context/core/session-resume.md`
|
|
68
|
+
- daily operator path and command usage: `runbooks/openkit-daily-usage.md`
|
|
69
|
+
- status, diagnostics, and repeatable verification steps: `runbooks/workflow-state-smoke-tests.md`
|
|
70
|
+
- durable-record policy and any intentionally kept records: `internal-records/README.md`
|
|
71
|
+
|
|
72
|
+
## Index Guardrails
|
|
73
|
+
|
|
74
|
+
Current-state guardrails:
|
|
75
|
+
|
|
76
|
+
- These docs describe repository runtime support only. They do not imply application build, lint, or test tooling.
|
|
77
|
+
- Keep this file index-first; procedural verification belongs in `runbooks/` and durable project memory belongs in `internal-records/`.
|
|
78
|
+
- Keep global-kit language aligned with the current repository reality: global install is the preferred user path, while the checked-in runtime remains the maintainer and compatibility surface.
|
|
79
|
+
- Keep lower-level command details concise here and route canonical command behavior to `context/core/project-config.md`.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# OpenKit 0.2.0 Release Checklist
|
|
2
|
+
|
|
3
|
+
Date: 2026-03-24
|
|
4
|
+
|
|
5
|
+
## Scope
|
|
6
|
+
|
|
7
|
+
- simplified onboarding with `npm install -g openkit` followed by `openkit run`
|
|
8
|
+
- automatic first-run global kit setup when the install is missing
|
|
9
|
+
- doctor guidance with `Next:` and `Recommended command:` output
|
|
10
|
+
- manual and compatibility retention for `openkit install-global`, `openkit install`, and `openkit init`
|
|
11
|
+
|
|
12
|
+
## Pre-Publish
|
|
13
|
+
|
|
14
|
+
- confirm `package.json` version is `0.2.0`
|
|
15
|
+
- confirm docs describe `npm install -g openkit` and `openkit run` as the preferred path
|
|
16
|
+
- confirm release note draft is up to date in `docs/operations/internal-records/2026-03-24-simplified-install-ux.md`
|
|
17
|
+
- run:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
node --test tests/cli/openkit-cli.test.js tests/global/*.test.js tests/runtime/*.test.js tests/install/*.test.js
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
- run:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm pack
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- verify the tarball name is `openkit-0.2.0.tgz`
|
|
30
|
+
|
|
31
|
+
## Local Smoke Test
|
|
32
|
+
|
|
33
|
+
- install the tarball into a temporary prefix
|
|
34
|
+
- verify `openkit --help` shows the new quickstart
|
|
35
|
+
- verify `openkit run` performs first-time setup and hands off to `opencode`
|
|
36
|
+
|
|
37
|
+
## Publish
|
|
38
|
+
|
|
39
|
+
- authenticate to npm if needed
|
|
40
|
+
- publish the package from the repository root:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm publish
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
- if using the packed tarball path explicitly, publish the generated archive instead
|
|
47
|
+
|
|
48
|
+
## Post-Publish
|
|
49
|
+
|
|
50
|
+
- verify the published version:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm view openkit version
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- install globally on a clean machine or temporary prefix:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm install -g openkit
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
- verify:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
openkit --help
|
|
66
|
+
openkit run
|
|
67
|
+
openkit doctor
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- confirm `openkit run` auto-installs the managed kit when the global install is missing
|
|
71
|
+
- confirm invalid-install guidance points users to `openkit upgrade`
|
|
72
|
+
|
|
73
|
+
## Suggested Commit Message
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
simplify global OpenKit onboarding
|
|
77
|
+
|
|
78
|
+
Make `openkit run` perform first-time global setup automatically so users can start with `npm install -g openkit` and launch immediately. Update doctor guidance, command help, docs, and tests to support the new onboarding flow while keeping manual install commands for compatibility.
|
|
79
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Simplified Install UX
|
|
2
|
+
|
|
3
|
+
Date: 2026-03-24
|
|
4
|
+
|
|
5
|
+
## Change Summary
|
|
6
|
+
|
|
7
|
+
- the preferred onboarding flow is now `npm install -g openkit` followed by `openkit run`
|
|
8
|
+
- `openkit run` performs first-time global kit setup automatically when the install is missing
|
|
9
|
+
- `openkit doctor` now reports next-step guidance and recommended commands
|
|
10
|
+
- `openkit install-global`, `openkit install`, and `openkit init` remain available as manual or compatibility commands
|
|
11
|
+
|
|
12
|
+
## Why This Changed
|
|
13
|
+
|
|
14
|
+
- the previous onboarding path required users to remember `openkit install-global` before they could do useful work
|
|
15
|
+
- the new flow reduces friction for first-time users while keeping install behavior explicit and debuggable inside the OpenKit CLI
|
|
16
|
+
- the project intentionally avoids npm `postinstall` side effects so failures remain easier to explain and recover from
|
|
17
|
+
|
|
18
|
+
## Operator Impact
|
|
19
|
+
|
|
20
|
+
- new-user quickstart:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g openkit
|
|
24
|
+
openkit run
|
|
25
|
+
openkit doctor
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- if the global install is invalid rather than missing, `openkit run` stops and points the user to `openkit upgrade`
|
|
29
|
+
- if `opencode` is missing from `PATH`, first-time setup can still complete, but launch fails with a clear launcher error
|
|
30
|
+
|
|
31
|
+
## Release Notes Draft
|
|
32
|
+
|
|
33
|
+
- Simplified onboarding so users can install the CLI with `npm install -g openkit` and start with `openkit run`
|
|
34
|
+
- Added automatic first-run global kit setup when the managed install is missing
|
|
35
|
+
- Added doctor guidance with `Next:` and `Recommended command:` output for missing, invalid, healthy, and workspace-issue states
|
|
36
|
+
- Kept `openkit install-global`, `openkit install`, and `openkit init` for manual and compatibility workflows
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Internal Records
|
|
2
|
+
|
|
3
|
+
This directory holds project memory for operations work.
|
|
4
|
+
|
|
5
|
+
Use these docs to preserve durable context, lightweight records, and guidance that explains how to capture operational history.
|
|
6
|
+
|
|
7
|
+
Guardrails:
|
|
8
|
+
|
|
9
|
+
- keep these docs descriptive, not procedural
|
|
10
|
+
- store repeatable command walkthroughs in `docs/operations/runbooks/`
|
|
11
|
+
- prefer concise records that help future maintainers recover context quickly
|
|
12
|
+
- escalate architecture-shaping decisions to ADRs when repository policy requires it
|
|
13
|
+
|
|
14
|
+
Current state:
|
|
15
|
+
|
|
16
|
+
- no standing internal-record files are kept checked in after the repository cleanup pass
|
|
17
|
+
- add a focused record here only when it preserves durable operational context that does not belong in an ADR or runbook
|
|
18
|
+
- prefer one clearly named file per topic and delete stale records once they stop helping maintainers
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Runbooks
|
|
2
|
+
|
|
3
|
+
This directory holds executable operator guidance.
|
|
4
|
+
|
|
5
|
+
Use these docs when you need step-by-step checks, commands, or repeatable maintenance procedures.
|
|
6
|
+
|
|
7
|
+
Current runbooks:
|
|
8
|
+
|
|
9
|
+
- `openkit-daily-usage.md`: practical day-to-day operator flow for the checked-in runtime
|
|
10
|
+
- `workflow-state-smoke-tests.md`: repeatable smoke checks for runtime and wrapper-related surfaces
|
|
11
|
+
|
|
12
|
+
Related reusable migration checklists live under `docs/templates/`:
|
|
13
|
+
|
|
14
|
+
- `migration-baseline-checklist.md`
|
|
15
|
+
- `migration-verify-checklist.md`
|
|
16
|
+
- `migration-report-template.md`
|
|
17
|
+
|
|
18
|
+
Guardrails:
|
|
19
|
+
|
|
20
|
+
- keep runbooks action-oriented and safe to follow
|
|
21
|
+
- include command expectations when they materially reduce ambiguity
|
|
22
|
+
- move historical notes or durable project memory to `docs/operations/internal-records/`
|
|
23
|
+
- do not treat this directory as the canonical workflow contract; keep that in `context/core/`
|