@nodii/dev 0.6.49 → 0.6.51
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 -1
- package/dist/api.js +2 -2
- package/dist/cli.js +7 -0
- package/dist/core.js +2 -2
- package/dist/devops-openapi.json +1 -1
- package/dist/figma-scope.js +120 -8
- package/dist/lane-supervisor.js +2 -2
- package/dist/lanes.js +13 -2
- package/dist/nudges.js +83 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -369,7 +369,15 @@ nodii-dev lane done-check KEY --evidence TEXT|URL
|
|
|
369
369
|
# lane already on_dev (land → verify first) it is a no-op
|
|
370
370
|
nodii-dev lane subagent-quota KEY N
|
|
371
371
|
nodii-dev lane heartbeat KEY [--note TEXT]
|
|
372
|
-
|
|
372
|
+
# a note starting "BLOCKED" or "WAITING:" (capitals) marks
|
|
373
|
+
# the lane blocked: an exit then ends its run blocked and
|
|
374
|
+
# never counts toward the two-deaths stop (AGENT-HARNESS-46)
|
|
375
|
+
nodii-dev lane resume KEY [--override --reason TEXT]
|
|
376
|
+
# --override (coordinator): resume a lane the two-identical-
|
|
377
|
+
# deaths rule stopped; Dev refuses it with
|
|
378
|
+
# RESUME_OVERRIDE_NEEDS_CHANGE unless the lane was amended
|
|
379
|
+
# since its last death, keeps the reason on the new run, and
|
|
380
|
+
# restarts the death count (AGENT-HARNESS-46)
|
|
373
381
|
nodii-dev lane review KEY --file REVIEW.json
|
|
374
382
|
nodii-dev lane reviews KEY
|
|
375
383
|
nodii-dev lane land KEY
|
|
@@ -502,6 +510,7 @@ in any session that is not a Dev lane. Each cites the clause it protects.
|
|
|
502
510
|
| Edit or write | `className` or `style` on a DS component (U07-19) | the tag is not a DS import, or has neither prop |
|
|
503
511
|
| Edit or write | A new migration: journal `when` = max + 1, then a Delta gather. A `_journal.json` write whose `when` values do not rise | the migration is covered by a Delta gather, or already exists |
|
|
504
512
|
| Edit or write | Code renders a person: `PiiText` without `self`, a raw `.email`/`.phone`/`.displayName`, or the page masks a value itself (R5, U05-25) | `PiiText` carries `self`, or no person is rendered |
|
|
513
|
+
| Figma write | `use_figma` or another Figma write touches a DS component, block or pattern whose guideline is not in the lane's gathered set (MW6-4, DEC-0010). Touched = a published component(-set) key it imports (a Surface's key brings the entries it is built from), a component it compares a node name with (`.name === "Icon Button"`, `.name === "Button/Cancel"`, `.name.startsWith("PiiText")`; capitalised, DS-FIG-2 normalized exact name, never on a line that looks for a TEXT node), or on the DS file an entry node it addresses; a canvas script (`use_figma`'s code) that names none falls back to the Surfaces its lane's Figma scope names in that file (a whole-file scope names none) | the guideline is in the gathered set or was read; the DS catalogue is unreachable with no cached copy |
|
|
505
514
|
| Figma read | A code lane reads by node id (`get_design_context`, `get_metadata`, `get_screenshot`, ...) instead of the published key (MW8-20) | a Figma lane, or no node id |
|
|
506
515
|
| `figma submit CS-n` | The unused-property, stale `Blocked on DS` placeholder and Dialog-without-body hand checks (F-34, CS-2453) | all three are recorded with `figma checked CS-n --unused-properties --stale-placeholders --dialog-body` |
|
|
507
516
|
| AskUserQuestion | The question is also an item in `docs/figma-ux-drive/qa-with-abhi/open.md` (R7) | open.md already holds the question |
|
|
@@ -515,6 +524,12 @@ show` adds to `guidelinesRead`. A part's guideline is its root's (`dialog`
|
|
|
515
524
|
covers `dialog-content`). Edits are judged against the file they produce, so
|
|
516
525
|
an Edit or `apply_patch` that only changes an attribute is read in full.
|
|
517
526
|
|
|
527
|
+
The Figma write nudge reads the design catalogue
|
|
528
|
+
(`https://design.nodii.co/design-catalog.json`) and the DS registry, kept as a
|
|
529
|
+
compact index in `~/.cache/nodii-dev/ds-figma-index.json` for an hour
|
|
530
|
+
(`NODII_DEV_DS_FIGMA_INDEX_CACHE`); a failed refresh keeps the last good index
|
|
531
|
+
and is retried after ten minutes, not on every write.
|
|
532
|
+
|
|
518
533
|
The Stop nudge asks the session to continue once (`decision: block`, skipped
|
|
519
534
|
when `stop_hook_active`); Codex passes it through its managed dispatcher.
|
|
520
535
|
Before that, in a lane session (a `lane-*.json` identity), the same hook holds
|
package/dist/api.js
CHANGED
|
@@ -30,7 +30,7 @@ const isSpec = (value) => value && typeof value === "object" && typeof value.ope
|
|
|
30
30
|
// Only Dev's own API is reachable through the edge's /devops prefix.
|
|
31
31
|
const edgeReachable = (spec) => ({ ...spec, paths: Object.fromEntries(Object.entries(spec.paths).filter(([path]) => path.startsWith("/api/v1/"))) });
|
|
32
32
|
|
|
33
|
-
async function readCache(path) {
|
|
33
|
+
export async function readCache(path) {
|
|
34
34
|
try {
|
|
35
35
|
return JSON.parse(await readFile(path, "utf8"));
|
|
36
36
|
} catch {
|
|
@@ -38,7 +38,7 @@ async function readCache(path) {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
async function writeCache(path, value) {
|
|
41
|
+
export async function writeCache(path, value) {
|
|
42
42
|
try {
|
|
43
43
|
await mkdir(dirname(path), { recursive: true });
|
|
44
44
|
const tmp = `${path}.${process.pid}.tmp`;
|
package/dist/cli.js
CHANGED
|
@@ -229,6 +229,13 @@ Usage: nodii-dev <command> [options] [--json]
|
|
|
229
229
|
lane done-check <key> --evidence TEXT|URL # the done check is met; a launched run that exits after it ends finished
|
|
230
230
|
lane subagent-quota <key> <n> # coordinator assigns 0-100 subagent slots
|
|
231
231
|
lane heartbeat|resume|land|verify|prioritize|deprioritize|stop <key>
|
|
232
|
+
lane heartbeat <key> --note "BLOCKED: ..."|"WAITING: ..."
|
|
233
|
+
# a note starting BLOCKED or WAITING: (capitals) marks the lane blocked:
|
|
234
|
+
# an exit then ends its run blocked and never counts as a death
|
|
235
|
+
lane resume <key> --override --reason TEXT
|
|
236
|
+
# coordinator: resume past the two-identical-deaths stop; Dev refuses
|
|
237
|
+
# it (RESUME_OVERRIDE_NEEDS_CHANGE) unless the lane was amended since
|
|
238
|
+
# its last death; the reason is kept on the new run
|
|
232
239
|
lane review <key> --file REVIEW.json # base/head, outcome and clause-cited findings
|
|
233
240
|
lane review <key> --not-required --decision DEC-nnnn|--question ID|--quote TEXT --at ISO-TIME
|
|
234
241
|
# no review needed for this diff: cites the ruling Dev validates (hub-58)
|
package/dist/core.js
CHANGED
|
@@ -4,7 +4,7 @@ import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
|
4
4
|
import { homedir, platform } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
|
|
7
|
-
export const VERSION = "0.6.
|
|
7
|
+
export const VERSION = "0.6.51";
|
|
8
8
|
export const configPath = () =>
|
|
9
9
|
process.env.NODII_DEV_CONFIG_PATH ??
|
|
10
10
|
join(homedir(), ".config/nodii-dev/config.json");
|
|
@@ -222,7 +222,7 @@ export async function checkLogin() {
|
|
|
222
222
|
export const encode = (value) => encodeURIComponent(value);
|
|
223
223
|
// Switches never take the next token as their value, so
|
|
224
224
|
// `docs upload --wait rulebook/` keeps rulebook/ as a path.
|
|
225
|
-
const SWITCHES = new Set(["json", "wait", "pending", "dry-run", "check", "all", "fleet", "help", "yes", "mine", "no-browser", "include-drafts", "drafted", "library", "async", "sync", "force", "system", "delta", "probe", "no-probe", "not-required"]);
|
|
225
|
+
const SWITCHES = new Set(["json", "wait", "pending", "dry-run", "check", "all", "fleet", "help", "yes", "mine", "no-browser", "include-drafts", "drafted", "library", "async", "sync", "force", "system", "delta", "probe", "no-probe", "not-required", "override"]);
|
|
226
226
|
export function parseArgs(argv) {
|
|
227
227
|
const flags = {};
|
|
228
228
|
const args = [];
|