mikoshi-construct 0.1.2 → 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/README.md +16 -4
- package/dist/cli.js +1029 -188
- package/package.json +3 -2
- package/templates/ai/claude/_claude/agents/architect.md +7 -11
- package/templates/ai/claude/_claude/agents/harness.md +7 -11
- package/templates/ai/claude/_claude/agents/implementer.md +6 -10
- package/templates/ai/claude/_claude/skills/implement/SKILL.md +28 -7
- package/templates/ai/claude/scripts/construct/implement.workflow.mjs +53 -9
- package/templates/ai/cursor/_cursor/rules/construct.mdc +1 -1
- package/templates/ai/shared/_claude/commands/construct-discover.md +25 -4
- package/templates/presets/monorepo/baseline/eslint.config.mjs.eta +22 -6
- package/templates/presets/monorepo/baseline/scripts/tests/lint/syntax-policy.test.ts.eta +110 -0
- package/templates/presets/node-backend/baseline/eslint.config.mjs +11 -3
- package/templates/presets/node-backend/baseline/scripts/tests/lint/syntax-policy.test.ts +86 -0
- package/templates/presets/node-frontend/baseline/eslint.config.mjs +12 -3
- package/templates/presets/node-frontend/baseline/scripts/tests/lint/syntax-policy.test.ts +78 -0
- package/templates/presets/monorepo/sample/scripts/tests/lint/syntax-policy.test.ts.eta +0 -36
- package/templates/presets/node-backend/sample/scripts/tests/lint/syntax-policy.test.ts +0 -31
package/README.md
CHANGED
|
@@ -95,10 +95,22 @@ Every command, flag and exit code: [docs/cli.md](https://github.com/E1i/mikoshi-
|
|
|
95
95
|
runtime, composition models render the diagrams and are checked against the code, the dependency
|
|
96
96
|
policy lives in lint, and every security invariant names the check that enforces it.
|
|
97
97
|
|
|
98
|
-
The second principle in numbers, from
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
The second principle in numbers, from thirteen `/implement` runs on this repository (Claude Opus).
|
|
99
|
+
Two `low` tasks cost 557k and 740k billable tokens. Nine `medium` tasks cost between 847k and 5.9M —
|
|
100
|
+
the class is a weak predictor on its own. Two `high` tasks, each with an architect designing before
|
|
101
|
+
any code, cost 14.19M and 14.14M.
|
|
102
|
+
|
|
103
|
+
Almost none of that is the work. It is each agent's entry into the repository: a fresh exploration,
|
|
104
|
+
paid in full before anything is produced, and paid again by every agent that starts. A `low` run pays
|
|
105
|
+
it twice — an implementer, and the harness that refuses to let the implementer mark its own homework.
|
|
106
|
+
A `high` run pays it three times. The class mostly decides how deep each entry goes; the ladder
|
|
107
|
+
decides how many entries there are, and that is what it is for.
|
|
108
|
+
|
|
109
|
+
The same arithmetic prices a bad brief. One run escalated to an architect after the implementer
|
|
110
|
+
stopped on a contradiction in the task, and the architect spent 3.66M without returning a valid
|
|
111
|
+
answer — 4.16M for the run, for nothing. That is why a response the schema rejects is not re-asked by
|
|
112
|
+
default: a second attempt buys another entry, not another answer. `construct cost` prints all of this
|
|
113
|
+
for your own runs, and reconciles it against the ledger the ladder writes.
|
|
102
114
|
|
|
103
115
|
## The lifecycle
|
|
104
116
|
|