@apptoolkit/harness 1.0.3 → 1.0.5

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 (80) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +18 -47
  3. package/harness.js +123 -0
  4. package/package.json +85 -24
  5. package/payload/HARNESS.md +28 -0
  6. package/payload/author-style/README.md +58 -0
  7. package/payload/author-style/biome-core.json +57 -0
  8. package/payload/author-style/biome-react.json +9 -0
  9. package/payload/author-style/biome-sql.json +9 -0
  10. package/payload/author-style/bun.lock +37 -0
  11. package/payload/author-style/check.llm.md +17 -0
  12. package/payload/author-style/check.test.llm.md +17 -0
  13. package/payload/author-style/check.test.ts +264 -0
  14. package/payload/author-style/check.ts +200 -0
  15. package/payload/author-style/member-spacing.test.ts +172 -0
  16. package/payload/author-style/member-spacing.ts +106 -0
  17. package/payload/author-style/package.json +18 -0
  18. package/payload/author-style/plugins/class-member-order.grit +133 -0
  19. package/payload/author-style/plugins/event-handler-names.grit +110 -0
  20. package/payload/author-style/plugins/explicit-arrow-body.grit +15 -0
  21. package/payload/author-style/plugins/explicit-source-constructs.grit +10 -0
  22. package/payload/author-style/plugins/react-arrow-body.grit +85 -0
  23. package/payload/author-style/plugins/sql-style.grit +125 -0
  24. package/payload/author-style/react-module.llm.md +17 -0
  25. package/payload/author-style/react-module.test.ts +150 -0
  26. package/payload/author-style/react-module.ts +255 -0
  27. package/payload/author-style/source-policy.llm.md +17 -0
  28. package/payload/author-style/source-policy.test.ts +82 -0
  29. package/payload/author-style/source-policy.ts +238 -0
  30. package/payload/author-style/spacing.llm.md +17 -0
  31. package/payload/author-style/spacing.test.ts +174 -0
  32. package/payload/author-style/spacing.ts +211 -0
  33. package/payload/harness/LEARNING.md +18 -0
  34. package/payload/harness/POLICY.md +35 -0
  35. package/payload/harness/PROJECT.md +26 -0
  36. package/payload/harness/REVIEW.md +17 -0
  37. package/payload/harness/TEMPLATES.md +20 -0
  38. package/payload/harness/WORKFLOWS.md +65 -0
  39. package/payload/harness/runtime/ZOD-LICENSE +21 -0
  40. package/payload/harness/runtime/harness.mjs +123 -0
  41. package/payload/harness/services/README.md +26 -0
  42. package/payload/harness/services/penpot.json +7 -0
  43. package/payload/harness/services/plane.json +9 -0
  44. package/payload/harness/workflows/W01.md +13 -0
  45. package/payload/harness/workflows/W02.md +13 -0
  46. package/payload/harness/workflows/W03.md +13 -0
  47. package/payload/harness/workflows/W04.md +13 -0
  48. package/payload/harness/workflows/W05.md +13 -0
  49. package/payload/harness/workflows/W06.md +13 -0
  50. package/payload/harness/workflows/W07.md +13 -0
  51. package/payload/harness/workflows/W08.md +13 -0
  52. package/payload/harness/workflows/W09.md +13 -0
  53. package/payload/harness/workflows/W10.md +13 -0
  54. package/payload/harness/workflows/W11.md +13 -0
  55. package/payload/harness/workflows/W12.md +13 -0
  56. package/payload/harness/workflows/W13.md +13 -0
  57. package/payload/harness/workflows/W14.md +13 -0
  58. package/payload/harness/workflows/W15.md +13 -0
  59. package/payload/harness/workflows/W16.md +13 -0
  60. package/payload/harness/workflows/W17.md +13 -0
  61. package/payload/harness/workflows/W18.md +13 -0
  62. package/payload/harness/workflows/W19.md +13 -0
  63. package/payload/harness/workflows/W20.md +27 -0
  64. package/payload/harness/workflows/W21.md +19 -0
  65. package/payload/harness/workflows/W22.md +13 -0
  66. package/payload/harness/workflows/W23.md +21 -0
  67. package/payload/harness/workflows/W24.md +13 -0
  68. package/payload/harness/workflows/W25.md +13 -0
  69. package/payload/harness/workflows/W26.md +13 -0
  70. package/payload/harness/workflows/W27.md +13 -0
  71. package/payload/harness/workflows/W28.md +13 -0
  72. package/payload/harness/workflows/W29.md +13 -0
  73. package/payload/harness/workflows/W30.md +13 -0
  74. package/payload/harness/workflows/W31.md +13 -0
  75. package/payload/harness/workflows/W32.md +13 -0
  76. package/payload/harness/workflows/W33.md +13 -0
  77. package/payload/harness/workflows/W34.md +13 -0
  78. package/payload/harness/workflows/W35.md +13 -0
  79. package/payload/harness/workflows/W36.md +13 -0
  80. package/payload/harness/workflows/W37.md +13 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AppToolkit contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,64 +1,35 @@
1
- # Model-agnostic working practice source archive
1
+ # AppToolkit Harness
2
2
 
3
- The user approved the common policy and all 37 workflow families. Start with the [tool and technology audit](llm/HARNESS-TOOL-AUDIT.md), [workflow catalog](llm/HARNESS-FLOWS-REVIEW.md) and [accepted user decisions](docs/harness-user-decisions.md).
3
+ AppToolkit Harness installs project guidance, deterministic verification tools and 37 reusable engineering workflows for Codex, Claude Code and OpenCode. It supports new projects, existing repositories and a shared harness for related repositories.
4
4
 
5
- The [personal code style profile](src/author-style/README.md) includes the recovered writing rules, independent Biome installation and commands for verifying edited TypeScript.
6
-
7
- The product source is in [`src/harness/`](src/harness/), the author style source is in [`src/author-style/`](src/author-style/) and the acquisition utilities are in [`src/acquisition/`](src/acquisition/). The [development and local installation guide](docs/harness-release-verification.md#first-installation-in-this-repository) explains how to try the unpublished package in this repository. The [`llm/` catalog](llm/README.md) also documents the development commands.
8
-
9
- Develop and build with Bun. The npm artifact runs through `npx` or `bunx`, and `rtk proxy bun run build:harness:native` compiles the installer into a host executable for direct use.
10
-
11
- Run the public installer from the target directory.
5
+ Use macOS or Linux with Bun 1.4.2 or later, or Node.js 24 or later with npm. Use Git for versioned projects and RTK for project tooling. Run the installer from the target directory using one of these commands.
12
6
 
13
7
  ```sh
14
8
  rtk proxy bunx --bun @apptoolkit/harness install
9
+ rtk proxy npx @apptoolkit/harness install
15
10
  ```
16
11
 
17
- This workspace collects the original rules, writing guidance, workflows, prompts, tooling, project knowledge, and historical evidence from the user's selected projects. The first phase preserves raw material. Synthesis is a later phase.
12
+ `bunx --bun` selects Bun even when Node.js is absent. Plain `bunx` also works when Node.js is on `PATH`.
18
13
 
19
- - [Intake and decisions](docs/intake.md)
20
- - [Raw acquisition index](raw/2026-11-04/README.md)
21
- - [Coverage and limitations](docs/coverage.md)
22
- - [Proposed gradual processing plan](docs/processing-plan.md)
23
- - [Derived coverage workspace](processing/README.md)
24
- - [Completed stage 1 coverage](docs/stage1-coverage.md)
25
- - [Stage 2 writing and communication pilot](docs/stage2-pilot.md)
26
- - [Stage 2 second extraction batch](docs/stage2-batch2.md)
27
- - [Stage 2 third extraction batch](docs/stage2-batch3.md)
28
- - [Stage 2 fourth extraction batch](docs/stage2-batch4.md)
29
- - [Stage 2 fifth extraction batch](docs/stage2-batch5.md)
30
- - [Stage 2 sixth extraction batch](docs/stage2-batch6.md)
31
- - [Stage 2 seventh extraction batch](docs/stage2-batch7.md)
32
- - [Stage 2 eighth extraction batch](docs/stage2-batch8.md)
33
- - [Stage 2 ninth extraction batch](docs/stage2-batch9.md)
34
- - [Stage 2 continuous extraction, first checkpoint](docs/stage2-continuous01.md)
35
- - [Stage 2 continuous extraction, second checkpoint](docs/stage2-continuous02.md)
36
- - [Stage 2 continuous extraction, third checkpoint](docs/stage2-continuous03.md)
37
- - [Stage 2 continuous extraction, fourth checkpoint](docs/stage2-continuous04.md)
38
- - [Stage 2 continuous extraction, fifth checkpoint](docs/stage2-continuous05.md)
39
- - [Stage 2 continuous extraction, sixth checkpoint](docs/stage2-continuous06.md)
40
- - [Stage 2 continuous extraction, seventh checkpoint](docs/stage2-continuous07.md)
41
- - [Stage 2 continuous extraction, eighth checkpoint](docs/stage2-continuous08.md)
42
- - [Stage 2 primary PDF source integration](docs/stage2-primary-pdf.md)
43
- - [Stage 2 continuous extraction, ninth checkpoint](docs/stage2-continuous09.md)
44
- - [Stage 2 continuous extraction, tenth mixed source checkpoint](docs/stage2-continuous10.md)
45
- - [Stage 2 continuous extraction, eleventh checkpoint](docs/stage2-continuous11.md)
46
- - [Tool catalog](llm/README.md)
14
+ Choose the agents with the arrow keys and Space, then press Enter. Select the repository and service options and review the summary before applying. Open the same directory in your agent and run `$apptoolkit init` in Codex or `/apptoolkit init` in Claude Code or OpenCode. Choose project-wide or agent-only Biome as part of setup. Fresh sessions load the native bootstrap and reach the installed `llm/HARNESS.md` for ordinary work.
47
15
 
48
- Acquired source files are evidence. They do not govern this workspace and must not be executed.
16
+ In a directory of related repositories, start the agent in the parent directory. The central harness keeps shared decisions and scoped repository context. For a newly cloned checkout, follow W20 and run `add repo <path>` through the installed CLI. Repositories can keep their own guidance and toolchain.
49
17
 
50
- The accepted C22 baseline has 30,454 provisional passage groups and 1,984 unexecuted procedures across 30 text streams, one PDF family and five archive families. Stage 2 remains active. Standalone references, captures and fixtures retain traceable context. Later stages compare duplicates and conflicts and develop portable guidance. [C22 report](docs/stage2-continuous22.md) · [Current queue](processing/stage2-completion-2026-11-04-v1/post-C22-source-review-queue-v2.json) · [C21 final receipt](processing/stage2-completion-2026-11-04-v1/validation/twenty-first-pass-final-closure-v1.json)
18
+ To preview an installation in a noninteractive session, inspect the target and supply the explicit choices.
51
19
 
52
- ## Earlier Stage 2 source checkpoint
20
+ ```sh
21
+ rtk proxy bunx --bun @apptoolkit/harness inspect --root /absolute/workspace --json
22
+ rtk proxy bunx --bun @apptoolkit/harness install --root /absolute/workspace --hosts codex,claude,opencode --local --repo-mode .=local --plan --json
23
+ ```
53
24
 
54
- C24 has 31,022 accepted provisional passage groups, 2,081 unexecuted procedures and 1,544 refined source questions. The source and context queues remain open. Follow the [C24 report](docs/stage2-continuous24.md) and [current exact resume queue](processing/stage2-completion-2026-11-04-v1/post-C24-source-review-queue-v1.json). The [C23 report](docs/stage2-continuous23.md) retains the preceding checkpoint. No model-agnostic guidance has been adopted.
25
+ Use `--plan --json` with explicit choices when you need the exact file changes. Use `--yes` in place of `--plan` to apply a reviewed noninteractive plan. Select the workspace mode separately from each Git repository's generated files. Local mode uses the repository's `info/exclude` metadata for the planned files. Use `--repo-mode <path>=local|versioned` for each selected Git repository.
55
26
 
56
- ## Current Stage 2 continuation
27
+ Run `$apptoolkit update` in Codex or `/apptoolkit update` in Claude Code or OpenCode. An older shortcut can use the same path through the release launcher, `rtk proxy bunx --bun @apptoolkit/harness@latest update --plan --json` or `rtk proxy npx @apptoolkit/harness@latest update --plan --json`. The updater preserves project settings and learning records and compares managed files with the installation receipt. When those files conflict, choose the local version or the release using the exact hashes in the preview. A replaced local file is saved in the project's private update history. See W20 in the installed index for the resolution input and verification.
57
28
 
58
- C26 had 31,128 independently reviewed provisional passage groups, 2,135 unexecuted procedures and 1,544 refined source questions. The corrected C24 report and queue supersede the corresponding C24 navigation above. [C26 report](docs/stage2-continuous26.md) · [C26 source queue](processing/stage2-completion-2026-11-04-v1/post-C26-source-review-queue-v1.json) · [Corrected C24 report](docs/stage2-continuous24-v2.md) · [Corrected C24 queue](processing/stage2-completion-2026-11-04-v1/post-C24-source-review-queue-v2.json)
29
+ Local installations prefer host discovery without changes to tracked instructions. Codex can use an excluded `AGENTS.override.md` that directs it to consult the original `AGENTS.md`. Claude Code can use an excluded rules file. OpenCode can use an excluded project config to include the bootstrap. An occupied or higher-priority host path may need a project-specific setup choice. Review the install and init notices.
59
30
 
60
- C62 has 130,975 independently reviewed provisional groups, 13,744 unexecuted procedures, 1,558 refined source questions and 962 separately typed source contexts. Stage 2 remains open. [C62 report](docs/stage2-continuous62.md) · [Current source queue](processing/stage2-completion-2026-11-04-v1/post-C62-source-review-queue-v1.json) · [C61 report](docs/stage2-continuous61.md)
31
+ Plane and Penpot are separate opt-ins. To make a provider available after installation, preview an update with `--enable-service plane` or `--enable-service penpot`, apply it, and complete the project connection through `init`. The installed runbooks explain instance setup, private credentials, authorization and readiness checks. Snapshot verification requires a versioned harness and project-level opt-in. Use Bun to install the isolated Biome dependency before first using the author style profile.
61
32
 
62
- ## Current Stage 2 scope
33
+ The installed local CLI reads the workflow index, retrieves one workflow at a time and checks Markdown against a local document policy. See `llm/HARNESS.md` for the exact commands. The agent records which operations are configured and which were verified in the current environment.
63
34
 
64
- The user narrowed Stage 2 to an inventory of their decisions and mechanisms for working with LLMs. Start with the focused inventory and its source links. C62 remains the last accepted broader source checkpoint and supplies archival evidence. [Focused LLM working practices](docs/intake.md#focused-llm-working-practices) · [C62 report](docs/stage2-continuous62.md)
35
+ Distributed under the MIT license.