@dialecte/cli 0.10.0 → 0.11.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/dist/cli.js +2457 -1301
- package/dist/lookups.js +46 -19
- package/package.json +3 -1
package/dist/lookups.js
CHANGED
|
@@ -697,11 +697,26 @@ function inferredToolsLabel() {
|
|
|
697
697
|
}).join("; ");
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
+
// src/lib/package-json.constants.ts
|
|
701
|
+
var DECLARING_FIELDS = [
|
|
702
|
+
"dependencies",
|
|
703
|
+
"devDependencies",
|
|
704
|
+
"optionalDependencies",
|
|
705
|
+
"peerDependencies"
|
|
706
|
+
];
|
|
707
|
+
|
|
700
708
|
// src/lib/package-json.ts
|
|
701
709
|
function readPackageJson(root) {
|
|
702
710
|
const source = readStepSource(root);
|
|
703
711
|
return "refusal" in source ? {} : source.packageJson;
|
|
704
712
|
}
|
|
713
|
+
function declaredSpecOf(params) {
|
|
714
|
+
const field = DECLARING_FIELDS.find(
|
|
715
|
+
(candidate) => typeof params.manifest[candidate]?.[params.name] === "string"
|
|
716
|
+
);
|
|
717
|
+
const spec = field === void 0 ? void 0 : params.manifest[field]?.[params.name];
|
|
718
|
+
return field === void 0 || typeof spec !== "string" ? void 0 : { field, spec };
|
|
719
|
+
}
|
|
705
720
|
|
|
706
721
|
// src/lib/process-alive.ts
|
|
707
722
|
function isProcessAlive(pid) {
|
|
@@ -741,6 +756,19 @@ import { dirname as dirname5, join as join10, resolve as resolve3 } from "path";
|
|
|
741
756
|
import { existsSync as existsSync4, readdirSync as readdirSync3, readFileSync as readFileSync4 } from "fs";
|
|
742
757
|
import { join as join6, sep as sep2 } from "path";
|
|
743
758
|
|
|
759
|
+
// src/lib/skills/cli-invocations.constants.ts
|
|
760
|
+
var CLI_PACKAGE = "@dialecte/cli";
|
|
761
|
+
var CLI_BIN = "dialecte";
|
|
762
|
+
var UNTAGGED_FENCE_INVOCATION_PATTERN = new RegExp(`^\\s*${CLI_BIN}\\s+(\\S+)`);
|
|
763
|
+
var UNAVAILABLE_REASONS = {
|
|
764
|
+
noCli: `no ${CLI_PACKAGE} installed in this package`,
|
|
765
|
+
noBin: `the installed ${CLI_PACKAGE} {version} has no \`${CLI_BIN}\` bin`,
|
|
766
|
+
failed: `the installed ${CLI_PACKAGE} {version} did not answer \`${CLI_BIN} --help --json\`: {detail}`,
|
|
767
|
+
badManifest: `the installed ${CLI_PACKAGE} has a package.json that is no JSON`,
|
|
768
|
+
noJson: `the installed ${CLI_PACKAGE} {version} answers \`--help --json\` with no JSON`,
|
|
769
|
+
noMap: `the installed ${CLI_PACKAGE} {version} answers \`--help --json\` without the verbs and flags of its commands (a cli before the command map)`
|
|
770
|
+
};
|
|
771
|
+
|
|
744
772
|
// src/lib/store/identity.ts
|
|
745
773
|
import { readFileSync as readFileSync5 } from "fs";
|
|
746
774
|
import { join as join7 } from "path";
|
|
@@ -2438,6 +2466,7 @@ var COMMAND_MAP = {
|
|
|
2438
2466
|
"dialecte lot prune [<id>...] [--feature <name>] [--all] [--yes] [--json]"
|
|
2439
2467
|
],
|
|
2440
2468
|
notes: [
|
|
2469
|
+
"every verb - the cli floor, read before any verb runs (wait included, help aside): a cli older than the version a repository the invocation reaches asks for runs nothing (exit 2, naming the path it was started by and its real path, both versions and where the floor came from; --json { error, next: null }); the repositories are the current folder's package and those of each lot a word names (an id, an option's value or a word after --: the lot's worktree and repository, never the cli that started it) and of a brief's repository; a package's floor is the cli repository's own version, else the lowest version its @dialecte/cli pin admits (dependencies, devDependencies, optionalDependencies, peerDependencies); a pin with no lower bound (*, x, an empty spec, workspace:*, <2.0.0, an || alternative without one) or no semver range (file:, link:, a path or url, git+, a dist-tag, workspace:^ or workspace:~ with no version after them) asks for the installed cli's version (none installed: no floor); a package in a subfolder that does not ask for the cli takes the floor of the package above it, up to its repository's root; when the working tree's floor refuses, the base branch's tip is read and the cli is refused only below both (a release or pin-bump lot stays landable by the main checkout's cli); the highest floor across the repositories decides; equal or newer runs; a version the cli cannot read for itself is refused whenever a floor exists",
|
|
2441
2470
|
"start - checks the brief (every refusal at once, exit 2), claims the next index, publishes the lot folder in <git common folder>/dialecte-lots/, makes the numbered worktree at the base commit with its .dialecte/lot link; --dry-run checks (the store list included), names the lot and the start to run next, writing nothing; exit 1 when the worktree cannot be made (the lot failed, nothing removed, next: lot stop); a link that cannot be made leaves the lot working with a note; every --json exit is JSON, a usage error { error, usage, next: null } included",
|
|
2442
2471
|
"start - --keep <why> or the brief's keep (one line of at most 200 characters) keeps the lot on purpose from its start: its first keep.jsonl line, signed by --by (orchestrator in any casing recorded orchestrator) or caller, is written with its records before the lot is published (a simulated lot's too; --dry-run names it, keep: <why>, writing nothing), the start line and --json name it (kept: <why>); --keep and a brief keep together, or a keep or its signer holding a forbidden word, a path, a link, a reference or a plan entry id, refuse (exit 2, nothing published); after the start a keep changes through lot keep and lot unkeep only (lot brief refuses a changed keep)",
|
|
2443
2472
|
"start - --on <lot> starts the lot on another open lot of the same repository (a stack): its branch is cut at that lot's branch tip, its stack.json records the parent only (where it forks is read from git when it lands), and the parent's scope is its base, never an overlap, at the start and at lot scope --add (every other open lot's still is); a parent that is unknown, damaged, not working or ready, of another repository or without its branch is refused before anything is written, before any other fault of the brief; lot status shows a stack line, on <parent> (#<pull request>, <state>), the parent read through the one lot reader: merged once its landing is proven (its landed fact, git or the host), else its pull request as the host holds it (open, draft, queued, closed, or the host cannot say: <why>), the hand-over card on <parent> (#<pull request>) from files only; on <parent> (no pull request yet) without one",
|
|
@@ -2445,16 +2474,17 @@ var COMMAND_MAP = {
|
|
|
2445
2474
|
"start - --overlap-ok accepts an overlap the start refuses, for an overlap that names its paths (a lot whose scope cannot be read stays refused; a damaged other lot whose scope reads is accepted, its damage recorded beside the go-ahead); it takes --by <who> --reason <text>, the same go-ahead as an effort below the class; each accepted overlap is a line of the lot folder's overlaps.jsonl (the other lot, the met pairs, who and why), printed by the start and its dry run (! overlaps <lot>: ...) and shown on the card's scope line as a warning; on an overlap the forecast cleared it is recorded all the same, printed --overlap-ok not needed: the forecast cleared <lot>; the re-check after the start refuses a held lot the go-ahead did not name",
|
|
2446
2475
|
"start - the effort: the risk class of the brief's scope (high when an entry reaches the package's dialecte.risk.high list) sets the default (high, medium or low); on a terminal, without --json or --dry-run, the effort is asked with that default; an effort below the class (from --effort, the brief or the answer) is refused (exit 2, nothing written) without --by <who> --reason <text>, which are recorded on an effort line in risk.jsonl with the class's derived line, the start printing ! effort <e> below risk class <c> (by <who>: <reason>)",
|
|
2447
2476
|
"--simulate - start a simulated lot that plays one of the scenarios (ready, question, person, two-questions, limit, failure, slow) under wait: no worktree, no branch, no registry entry; it never blocks a real lot",
|
|
2448
|
-
"brief - a working or ready real lot takes a new brief whose only changes are its public text (the summary, the issue, step titles and behaviours); any other change is refused naming the field, nothing written; the new brief passes the start's field and public-text checks; it replaces the stored brief and a brief transition records the sha256 of the old and new brief, --by and --reason, the state and position kept; the same brief again answers already, nothing written; a simulated lot is refused; brief.json edited any other way reads as damage",
|
|
2449
|
-
"pr - renders the lot's pull request from its records through the repository's .github/pull_request_template.md: the title is the brief's first commit message, the body its summary and other commit messages, step titles and behaviours, the changelog fragments the lot adds, tests.json (a part of another tree reads stale), review.jsonl (findings and how each closed, the verdicts by reviewer kind, never a name; a row value its writer never writes refused), the risk class and effort, the overlaps it accepted (the other lot by its index, and why), the issue it closes, and the author's checklist ticked from the records; a missing record reads not recorded; the record text is checked first (a reference, a forbidden word, a plan entry id, a link or a path outside the tree refused, naming the word and the record); the open pull request (landing.json's, else the branch's newest) is edited only when its title or body reads otherwise, a person's part after the kept marker kept (a body without that heading holding a person's text refused, never dropped); a damaged lot refused; --print prints and sends nothing; no pull request yet prints the text and names lot land; --json { title, body, changeRequest, head, sent }",
|
|
2477
|
+
"brief - a working or ready real lot takes a new brief whose only changes are its public text (the summary, the issue, step titles and behaviours, and each lot's commit message, which titles its pull request); any other change is refused naming the field, nothing written; the new brief passes the start's field and public-text checks; it replaces the stored brief and a brief transition records the sha256 of the old and new brief, --by and --reason, the state and position kept; the same brief again answers already, nothing written; a simulated lot is refused; brief.json edited any other way reads as damage",
|
|
2478
|
+
"pr - renders the lot's pull request from its records through the repository's .github/pull_request_template.md: the title is the brief's first commit message (changed with lot brief), the body its summary and other commit messages, step titles and behaviours, the changelog fragments the lot adds, tests.json (a part of another tree reads stale), review.jsonl (findings and how each closed, the verdicts by reviewer kind, never a name; a row value its writer never writes refused), the risk class and effort, the overlaps it accepted (the other lot by its index, and why), the issue it closes, and the author's checklist ticked from the records; a missing record reads not recorded; a lot that changes package.json's version is refused when its title does not name the new version (read at the lot's own fork point: a lot started on an open release lot sets none), naming lot brief; the record text is checked first (a reference, a forbidden word, a plan entry id, a link or a path outside the tree refused, naming the word and the record); the open pull request (landing.json's, else the branch's newest) is edited only when its title or body reads otherwise, a person's part after the kept marker kept (a body without that heading holding a person's text refused, never dropped); a damaged lot refused; --print prints and sends nothing; no pull request yet prints the text and names lot land; --json { title, body, changeRequest, head, sent }",
|
|
2450
2479
|
"review - the private half of the lot's review, read-only (nothing written): the lot's state and branch, its pull request (landing.json's) with the head it is at, the head the lot landed and the worktree's HEAD, its checks, the brief's goal and steps (title, spec, behaviours), tests.json's tdd counts and gate run, decisions.md, every finding of the ledger with its text and state, the standard line, and what lot approve would refuse (or the approve command when it would approve); then opens the pull request's changed files in the browser (--no-open names the page only; an opener that fails is named, never an exit); a lot without a landing prints its private half and names lot land <id>, the host never asked",
|
|
2451
2480
|
"review --pull - the pull request's line comments come back as findings of round <n> in the lot's findings ledger: a thread's first comment only (replies discuss it), each once (pulled-comments.jsonl records the comment and its finding; a second pull answers already), its severity from a leading blocking:, should-fix: or nit: (dropped from the text, kept when it is all the comment says), else should-fix, at its path:line (the path alone for a comment on the file), its lines joined into one; review.jsonl written again; private points stay off the pull request: lot finding records them",
|
|
2452
|
-
"approve - a person's approval of the lot's pull request: refused (exit 1, nothing recorded, nothing queued) unless the lot is at work, the pull request landing.json names is open at the head the lot landed and the worktree is at that head too (an unpushed commit refuses), its checks ran on that head and are green (a check run again counts by its newest run; a failing or pending check, or none yet, refuses) and no finding but a nit is open (open, or a fix still to verify), and its text renders over the live body; then appends { schema, at, by, reason?, number, head } to the lot folder's approvals.jsonl, which review.jsonl shows as a person's approve verdict with that head (a pull request text rendered on another head, after a later commit or a rebase, leaves it out; the body names it by kind only, never the name; the orchestrator in any casing is recorded as orchestrator), renders the pull request's text again from the records, makes a draft ready and queues it (gh pr merge --auto; a lot started with --on whose pull request still merges into its parent's branch queues as a stack up to it, gh stack merge, and only on a host with stacks once the parent's pull request, read by the parent's branch, is queued (auto-merge on or in the merge queue), refused otherwise before anything is recorded: approve the parent first, or land it again once the parent merged); the only verb that queues, lot land never does; a queue the host refuses keeps the approval (exit 1) and the same approval run again answers already approved, writing nothing, and queues; --by orchestrator (in any
|
|
2481
|
+
"approve - a person's approval of the lot's pull request: refused (exit 1, nothing recorded, nothing queued) unless the lot is at work, the pull request landing.json names is open at the head the lot landed and the worktree is at that head too (an unpushed commit refuses), its checks ran on that head and are green (a check run again counts by its newest run; a failing or pending check, or none yet, refuses) and no finding but a nit is open (open, or a fix still to verify), and its text renders over the live body; then appends { schema, at, by, reason?, number, head } to the lot folder's approvals.jsonl, which review.jsonl shows as a person's approve verdict with that head (a pull request text rendered on another head, after a later commit or a rebase, leaves it out; the body names it by kind only, never the name; the orchestrator in any casing and spacing is recorded as orchestrator), renders the pull request's text again from the records, makes a draft ready and queues it (gh pr merge --auto; a lot started with --on whose pull request still merges into its parent's branch queues as a stack up to it, gh stack merge, and only on a host with stacks once the parent's pull request, read by the parent's branch, is queued (auto-merge on or in the merge queue), refused otherwise before anything is recorded: approve the parent first, or land it again once the parent merged); the only verb that queues, lot land never does; a queue the host refuses keeps the approval (exit 1) and the same approval run again answers already approved, writing nothing, and queues; --by orchestrator (in any casing and spacing) approves the cli's own lots only (the package named @dialecte/cli), every other package waits for a person (exit 2); a forbidden word in --by or --reason, or a --by holding what a public record never holds, refused (exit 2) before the host is asked; a lot without a landing names lot land <id>",
|
|
2453
2482
|
"design - a lot's design (design before code): --from <file> records it by the sha256 of its bytes, appending { schema, at, kind: recorded, file, hash, from } to the lot folder's design.jsonl and keeping its copy as design/<hash>.md (the copy rules once the source is gone); a file missing, empty, not UTF-8 or under a scratch root, the system's temporary folder, /tmp or /private/tmp (wiped there) is refused (exit 2), nothing written, and a file outside every git work tree is recorded (plans live there); without a worktree the lot is read at the base recorded at its start, a ! line saying so; --from-plan records the spec of the plan entry the lot carries out, refused when another lot or fix entry of its block names the same spec (write this lot's own design) or the lot carries out no entry with a spec; --approve --by <who> [--reason <text>] appends an approval of the last recorded hash with the need it was given against, refused when nothing is recorded or the source exists with other bytes (record it again); --waive --by <who> --reason <text> appends a waiver with the current need, refused on a lot that needs no design; both refused from the lot's own worktree or its review throwaway (approve from the main checkout), and on a --by or --reason holding a forbidden word or a --by holding what a public record never holds (exit 2); the orchestrator in any casing is recorded as orchestrator; a lot no longer at work is refused (exit 1); without an option it prints design <state>[ by <kind>][ \xB7 <reasons>] and the next command, --json { required, reasons, state, by, uncovered } (by the kind, never a name)",
|
|
2454
2483
|
"design - the need, computed by every reader and never stored: required when a scope entry (or a path) lies in a dialecte.risk.high area or is broader than one, or the lot carries out a plan entry of kind lot; an approval or a waiver holds only for the need it was given against (a reason of a new kind or glob reads unapproved or missing again); a recorded design gates the lot whatever its need; states approved, waived, unapproved (shown not approved), stale (shown stale since its approval: the source edited after its approval), missing, not-required (shown not required); lot start and its dry run print design required (<reasons>) or design not required, lot forecast and lot status the state line, the hand-over card a design line (passed or a warning, never failed), review.jsonl a design row and the pull request body Design: <state> by <kind>",
|
|
2455
|
-
"design - the gate: while a lot's required design is missing, unapproved or stale, tdd red in its own worktree refuses (exit 2, nothing run), gate --hook's design step fails a commit of the lot's branch, from any worktree, holding a production path (
|
|
2484
|
+
"design - the gate: while a lot's required design is missing, unapproved or stale, tdd red in its own worktree refuses (exit 2, nothing run), gate --hook's design step fails a commit of the lot's branch, from any worktree, holding a production path (after the scope step, before every other, whatever dialecte.gate.hook declares; a refused design recorded in the lot's events; a commit of tests or docs only passes; a first or merge commit and a review throwaway on <lot branch>-round-<n> skip it; a branch no lot names gives no line), lot land refuses after its rebase (nothing pushed), handover write refuses a store lot (nothing written), lot approve names design <state> among its reasons and the card's design line, read at the card's worktree, fails (handover run refuses); each reads the shared areas of the lot base its run resolved, through git, over the scope, the change's paths since that base and the staged or landed ones; a refusing path without the lot's worktree refuses; lot land records the base's shared areas again after its rebase",
|
|
2456
2485
|
"land - a lot started with --on lands as a stack: its pull request is based on the parent's branch, its body's depends-on part names the parent's pull request (a parent without one is refused: land it first); the host's stacks are probed once (gh stack): with them, the pull request is linked on the parent's (gh stack link); without, a note says why; it is never queued (lot approve queues it); before each landing it is rebased onto the parent branch's newest tip (the local branch or origin's) when it does not hold it, from its fork point (git merge-base --fork-point: only its own commits move, whatever the parent's amend or rebase); once the parent merged (its landing state: a merge, a squash read offline, or its pull request merged; never the registry's committed alone, which a hand-over run writes before anything reaches the base), the parent's landed fact is recorded and the child is rebased with git rebase --onto origin/<base> <fork point>, only its own commits moved, and its pull request retargeted to the base when the host did not; when the host already rewrote its branch on origin (a native stack), it follows that rewrite (local commits beyond its last push rebased onto it, that head the lease); a conflict names its files, the rebase undone, nothing pushed, exit 2",
|
|
2457
2486
|
"land - the lot lands through its pull request: its committed HEAD (uncommitted files stay in the worktree, named), rebased onto origin/<base> when behind (a conflict undone and named, nothing pushed; with uncommitted tracked changes it is pushed as committed, the rebase left for a clean worktree), pushed with a lease, its title and body rendered from the lot's records through the repository's .github/pull_request_template.md on the rebased head before the push (as lot pr renders them; records that do not render, or a base branch origin does not hold, push nothing), its pull request opened with them as a draft or reused (edited when its title or body reads otherwise, a person's part after the kept marker kept), never queued: CI runs on every push and lot approve, a person's step, queues it; a reused pull request queued or ready whose head to push no person approved (approvals.jsonl) is taken back out of the queue before the push (auto-merge off, gh pr merge --disable-auto; a draft again, gh pr ready --undo), since an approval is for one head: a rebase that only moves the sha takes it out too, and every landing checks, so one stopped after its push heals on the next (a refusal there pushes nothing); --draft, from when lot land queued, is refused (exit 2) naming the change; the landing (number, url, branch, pushed tip) recorded in <lot folder>/landing.json; a lot already merged (its pull request merged, or its tip or its work in origin/<base>: a squash read offline) is committed: its landed fact written in <lot folder>/landed.json, its hand-over entry committed, the commits made since named (they land in a new lot), the close line printed (for a lot kept on purpose, its keep and its lot unkeep instead: no line names lot close, and the line after an opened pull request asks to land it again once merged), nothing pushed; a branch with no commit beyond origin's base is refused before any push; the committed HEAD is forecast against origin/<base> just fetched (git merge-tree, before any entry, rebase or push): a conflict refuses naming its files and ranges, a forecast that cannot run refuses (fails closed), a lot on an open parent is not compared; the lot's forecast against every other open lot is recorded (trigger land) and each pair it does not clear printed (! <lot>: <why>), for information only; the pushed head is kept in landing.json at once, so a pull request the host refused to open does not make the next push one outside lot land; the host is GitHub through gh, which never prompts",
|
|
2487
|
+
"land - before anything is written (after the committed-entry check, before the stack rebase, the forecast and any entry), the lot's committed work (its lot base to HEAD) must lie inside its effective scope, as gate --hook's scope step holds it: a path outside refuses (exit 1) naming every such path and the lot scope <lot> --add ... --by lot-session to run, no entry, no rebase, nothing pushed, no pull request; uncommitted work is not held; a lot base that cannot be read refuses",
|
|
2458
2488
|
"status - the state derived from the lot records (working, input-required, ready, committed, canceled, failed), the worktree and link checks, and the exact next command (and an also: line); a working real lot adds a station line (station <what> \xB7 round <r>/<cap> \xB7 effort <level>), the next station walked from its station events and checks (step events, else the worktree's tdd ledger and gate records), its next is that station's command and also keeps the manual line, which lot start prints as its next too; the manual line depends on the repository's landing flow: lot land <name> in a CI-first repository, handover write in any other; --json adds station and rounds (review, cap, beyondCap, independent) and effort { level, source, riskClass, below } (source risk-line for an effort recorded by lot risk; an effort below its risk class adds a ! effort <e> below risk class <c> line, ending (by <who>: <reason>) or (no go-ahead recorded)); --json adds forecast { main, pairs }: the newest main line of forecast.jsonl and, per other open lot, the newer of its own line against that lot and that lot's line against it (files only); a lot whose records do not hold reads damaged with its reason and next: lot stop (exit 6); a lot git reads merged (its tip or its work in origin/<base>, a squash included) shows committed, nothing written; --json adds kept: { reason, by, at } for a lot kept on purpose ({ unreadable: <n> } or { unreadableFile: <code> } for a keep.jsonl that cannot be trusted, read kept), else null, the text unchanged; a ready landing lot kept on purpose names no lot close in also; writes nothing; exit 2 for an unknown or ambiguous id",
|
|
2459
2489
|
"forecast - the conflict forecast of a lot's work (its worktree's HEAD plus its uncommitted work, as one snapshot commit made on a copy of its index with a fixed identity and date; the worktree's index, refs and files never written, ignored files left out) against main (origin/<base> as last fetched, never fetched here) and against every other open lot of its store, each by git merge-tree --write-tree, without a checkout: clean, conflict (each path with its kind, content with the line ranges between the markers), exclusive (every conflicted path a lock file) or unknown with its reason (git older than 2.38, a damaged lot, worktree of <lot> missing, <ref> does not resolve, snapshot of <lot> failed, merge-tree failed, forecast of <lot> over 20 s: each git step is limited to 20 seconds); each line also lists the files both sides changed (shares); a path that conflicts against main for either lot is shown once, on the main line; the verdict is the worst line (unknown > conflict > exclusive > clean); default lot: the one whose worktree holds the current folder; --against <lot> compares with main and that lot only; appends the run to the lot folder's forecast.jsonl (one line per comparison, one write, each line at most 4,096 bytes: 10 shared paths, 10 conflict paths, 3 ranges per path, the rest counted in moreShared and more) and a forecast event (its trigger: start, scope, gate, forecast or land, the verbs that record a run); a pair whose lots both change a lock file reads exclusive even when it merges clean; a gate --fast or --full run in a lot's worktree forecasts the lot as its last step and prints forecast: <verdict> with one ! <against>: <why> line per comparison it does not clear (a warning only: the gate's verdict and exit never change); the card shows a conflicts line on a conflict or an unknown, a pair seen from either lot (the newer line wins), and its scope line names each open lot it shares entries with (forecast <verdict>, <age>); --json { lot, verdict, lines }; exit 0 clean, 1 a conflict or an exclusive path (or the run could not be written), 3 unknown, 2 usage, an unknown id, a damaged, closed or simulated lot, or --against the lot itself or a lot of another store; a clean forecast does not promise a semantic merge, three lots landing together, or work not written yet",
|
|
2460
2490
|
"risk - reads the lot folder's (or hand-over folder's) risk.jsonl and the worktree's diff against the lot's base, writing nothing: the risk class derived now with its reasons (high: a changed file in the package's dialecte.risk.high list, the base's and the worktree's together, an added destructive call or git argument on a line that is not a comment alone, a runtime package (one with an exports map) whose API index changed or whose export source changed against the base without its index; light: docs, a version bump, or at most 40 changed lines in at most 3 files; medium otherwise; a declared reason reads <file>: declared [<glob>]), the effort recorded, the cap of review rounds, a ! line when the effort is below the class, ending (by <who>: <reason>) or (no go-ahead recorded); a derivation that cannot run (no commit to compare to) falls back to the last derived line, else class unknown, and ends with ! risk class not derived: <reason>, exit 0; --json the same as one object, under a versioned JSON schema (lot-risk.schema.json, version 1); exit 2 for usage, an unknown id or a damaged store lot (lot risk: <name> damaged: <reason>)",
|
|
@@ -2463,11 +2493,12 @@ var COMMAND_MAP = {
|
|
|
2463
2493
|
"answer - records the answer to an open question once (the same answer again: already); a person question needs --by <who>; a damaged lot takes none (exit 2); runs the onAnswered hooks; next: lot wait",
|
|
2464
2494
|
"result - never blocks, writes nothing: a ready or committed lot gives its hand-over (card, show and run lines), worktree, branch and answered questions; failed or canceled the last reason (exit 1); input-required the open questions (3); working exit 5; damaged exit 6",
|
|
2465
2495
|
"stop - ends the lot: refused once committed; a pending hand-over is abandoned first (refused while its run is in progress), then a canceled transition with the reason and --by (caller without it); already canceled exits 0 writing nothing; moves no worktree and deletes nothing; a damaged lot has its folder moved to <git common folder>/dialecte-lots-aside/ with a stopped.json (refused while a live run marker holds it), its index kept claimed; a damaged lot kept on purpose is refused, nothing moved, naming its lot unkeep first; a kept lot stopped stays kept (canceled and kept: its items stay)",
|
|
2466
|
-
"scope - changes a started lot's scope on the record, its brief left as published; --by and --reason are required on every call; --drop removes scope entries (an entry, or a folder and the entries inside it), --add widens the scope (a path inside a held entry is recorded as its own entry; only an equal entry answers already holds, nothing written, exit 0); --drop and --add may come in one call to narrow a folder to files: one append, the drop line first; a drop is refused for a path that is no entry or lies inside a wider one, a worktree that cannot be read, a drop leaving the lot no scope, or a file the lot
|
|
2496
|
+
"scope - changes a started lot's scope on the record, its brief left as published; --by and --reason are required on every call; --drop removes scope entries (an entry, or a folder and the entries inside it), --add widens the scope (a path inside a held entry is recorded as its own entry; only an equal entry answers already holds, nothing written, exit 0); --drop and --add may come in one call to narrow a folder to files: one append, the drop line first; a drop is refused for a path that is no entry or lies inside a wider one, a worktree that cannot be read, a drop leaving the lot no scope, or a file the lot changed in its worktree or committed since its lot base inside a dropped entry that no entry left covers (an equal entry, a literal folder holding it, or a glob matching it; the call's adds count), or a lot base that cannot be read; an add is refused when a path is no valid scope entry, or when it meets another open lot's scope and that lot still holds it: the lot's work is forecast against it (trigger scope, recorded only once the add stands) and a clean pair adds with no overlap record; a forecast conflict (its files and ranges), a met lock file, a forecast that cannot run, or a damaged or unreadable lot refuse, unless --overlap-ok accepts an overlap that names its paths (a damaged lot whose scope reads too, its damage recorded) (recorded in overlaps.jsonl before the add with the other lot, the met pairs, --by and --reason, undone with a taken-back add; a lot whose scope cannot be read stays refused; --overlap-ok without --add is refused); a call whose lines would pass the line limit is refused; an add a lot started or widened meanwhile meets is taken back by an undo line, the entries a drop of the same call removed put back (exit 2), a take-back that would pass the line limit refusing the call first (exit 2), a take-back that cannot be written exiting 1 naming the paths and that lot; each change is one line of scope-changes.jsonl ({ schema, at, op, paths, by?, reason? }) and a scope.changed event; the effective scope (the brief's with the changes) is what the overlap guard, lot status and the card read; a damaged, simulated, committed, canceled or failed lot, a forbidden word and a change line that does not read are refused (exit 2), nothing written; a line that cannot be written exits 1",
|
|
2467
2497
|
"keep - keeps a lot's items on purpose (its worktree, review throwaways and branches stay after it is committed or canceled): appends { schema, at, op: keep, by, reason } to the lot folder's keep.jsonl and a keep.changed event, in any state, damaged included; --by and --reason required, one line each, the reason at most 200 characters, orchestrator in any casing recorded orchestrator; a forbidden word, a path, a link, a reference or a plan entry id refused (exit 2, nothing written); the reason it is kept with already answers kept already, nothing written (another reason appends: the history stays); a keep.jsonl with a line that does not read, or that cannot be read, is refused naming it (repair it by hand); an event that cannot be written is one printed line, never an exit; prints <name> kept by decision: <why>; --json { lot, kept, written, next }; a keep never changes the lot's state, its scope's hold or any guard",
|
|
2468
2498
|
"unkeep - releases a kept lot: appends { schema, at, op: unkeep, by, reason } and a keep.changed event, under the rules of keep; refused (exit 2, nothing written) from the lot's own worktree or one of its review throwaways (-round-<n>, -verify): a lot's own session cannot release what a person kept; a lot not kept answers not kept, nothing written; prints <name> no longer kept and, for a committed or canceled lot whose worktree or branch is left, next: lot prune <name>",
|
|
2469
2499
|
"station - appends one station event (by: host) to the lot's events.jsonl, never rewriting a line: start answers its run and the end command; end pairs with --run, else with the one open start of its station, step, round and attempt (several: refused), else repeats the last such end carrying a cost field with the same fields (already, nothing written), else is recorded alone (started: null); --event <id> again answers the first event (already) or is refused when its fields differ; start is refused on a committed, canceled or failed lot, end is accepted in every state; a simulated lot writes simulated: true; text fields refuse control, line-break and direction characters, vendor, model, tier, effort and session at most 80 characters, step, round and attempt 1-999, tokens, runs and duration non-negative, at most 50 skills (hash: sha256 of the path or of the synced <folder>/<name>/SKILL.md, else null), a verdict of approve, back, fix-then-repass, fixed, disagreed, answered, failed, limit; a line over 4,096 bytes is refused; --from takes the same fields plus phase (start|end) as one JSON object, unknown keys refused, every fault at once; --json { recorded: new|already, run, next }",
|
|
2470
2500
|
"--by - one line, not empty, checked before the lot is read (answer and stop)",
|
|
2501
|
+
"--by orchestrator - refused (exit 2, nothing run) for every verb that signs, run from a lot's workplace (its own worktree, a -round-<n> or -verify throwaway beside it), whichever --by of the line names it, in any casing and spacing: a lot signs --by lot-session; the orchestrator signs from the main checkout",
|
|
2471
2502
|
"<id> - an index (171 = 0171), a full name, a lot folder or .dialecte/lot; a write verb needs an index unique across every store of the store list, a word naming an existing folder is that folder",
|
|
2472
2503
|
"exempt|accept|revised|gone|moved|mutation - write .dialecte/lot.json at the package root (tab JSON), keeping the rest",
|
|
2473
2504
|
"moved - a case of the lot moved by a split or a rename of its file or describe after its red (its own title is part of its test call): two cases, or a file (never a glob) and the file or glob its cases moved to under the same names, several files into one each with its entry; tdd red carries the red (flag moved) when the test call and the test code it reads are as that red froze them and it does not pass on the base production, else refuses",
|
|
@@ -2477,12 +2508,12 @@ var COMMAND_MAP = {
|
|
|
2477
2508
|
"mutation - absent: changed when the diff touches the declared scope, off otherwise; gate = changed that the hand-over waits for",
|
|
2478
2509
|
"finding - appends R<n>-<k> open to <folder>/findings-ledger.md (made when absent)",
|
|
2479
2510
|
"decide - rewrites that finding's state cell, every other byte kept",
|
|
2480
|
-
"snapshot - copies what git status lists to round-<n>/, the deletions to round-<n>.deleted, HEAD to round-<n>.base, { schema, at, stateHash } to round-<n>.state; the folder is a lot folder or stays outside every repository; -- ends the options; the risk class is derived again from the diff first and appended to risk.jsonl as a derived line only when the snapshot goes ahead, a refused snapshot writing nothing (a derivation that cannot run prints ! risk class not derived: <reason> and appends nothing); the cap of review rounds is the rounds of the higher of the effort's class and the class derived now (else the last derived line's) (low or light 1, medium 2, high 3; the effort is the last line of lot risk --effort, else the lot's; a class above the effort prints ! risk class now <class> (<reason>): cap <cap>); with no effort recorded the cap is 1 and a later round is refused (exit 2) naming dialecte lot risk <folder> --effort low|medium|high --by <who>; a round above the cap of an effort is refused (exit 2), naming what set the cap ((effort <e>), or (effort <e>, risk class <c>) when a class raised it), unless --beyond-cap --by <who> --reason <text> gives the go-ahead, written to decisions.md as round <n> beyond the cap of <cap>: <reason> before the snapshot (once: a retry finds it); --beyond-cap within the cap, --by or --reason without it, and --by or --reason holding a forbidden word are refused (exit 2), nothing written",
|
|
2511
|
+
"snapshot - from anywhere, copies what git status lists in the lot's own worktree (a plain hand-over folder: the work tree it runs in; a lot with no worktree, or whose worktree is no work tree, refused naming it, nothing written) to round-<n>/, the deletions to round-<n>.deleted, HEAD to round-<n>.base, { schema, at, stateHash } to round-<n>.state; the folder is a lot folder or stays outside every repository; -- ends the options; the risk class is derived again from the diff first and appended to risk.jsonl as a derived line only when the snapshot goes ahead, a refused snapshot writing nothing (a derivation that cannot run prints ! risk class not derived: <reason> and appends nothing); the cap of review rounds is the rounds of the higher of the effort's class and the class derived now (else the last derived line's) (low or light 1, medium 2, high 3; the effort is the last line of lot risk --effort, else the lot's; a class above the effort prints ! risk class now <class> (<reason>): cap <cap>); with no effort recorded the cap is 1 and a later round is refused (exit 2) naming dialecte lot risk <folder> --effort low|medium|high --by <who>; a round above the cap of an effort is refused (exit 2), naming what set the cap ((effort <e>), or (effort <e>, risk class <c>) when a class raised it), unless --beyond-cap --by <who> --reason <text> gives the go-ahead, written to decisions.md as round <n> beyond the cap of <cap>: <reason> before the snapshot (once: a retry finds it); --beyond-cap within the cap, --by or --reason without it, and --by or --reason holding a forbidden word are refused (exit 2), nothing written",
|
|
2481
2512
|
"choice - appends | decision | who | yyyy-mm-dd | to <folder>/decisions.md (made when absent)",
|
|
2482
2513
|
"standard - writes <folder>/standard.json (state, note, time), read by the card's standard line; outside (the lot's asks answered outside the documents, written by ask itself) warns, and fails at effort high unless the record's confirmed flag is true (written by ask once a person confirmed every outside answer; by hand false): the flag decides, never the note text",
|
|
2483
|
-
"delta - per file, the diff from round-<n-1>/ to the worktree now; --worktree adds a throwaway worktree holding round n-1 and prints its removal command; for a lot kept on purpose it prints kept by decision: <why> (by <who>, <date>): the throwaway stays with the lot instead, and --json carries kept and no removal",
|
|
2514
|
+
"delta - per file, the diff from round-<n-1>/ to the lot's own worktree now, from anywhere (a plain hand-over folder: the work tree it runs in); --worktree adds a throwaway worktree holding round n-1 and prints its removal command; for a lot kept on purpose it prints kept by decision: <why> (by <who>, <date>): the throwaway stays with the lot instead, and --json carries kept and no removal",
|
|
2484
2515
|
"recap - the <details> part of a pull request from the hand-over's records only; writes nothing",
|
|
2485
|
-
"verify -
|
|
2516
|
+
"verify - from anywhere (the main checkout included): appends { schema, at, by, note, state } to <folder>/verify.jsonl in one write, state the state hash of the lot's own worktree (a plain hand-over folder: the work tree it runs in); a lot with no worktree (a simulated lot) or whose worktree is no work tree is refused naming it, nothing written; a change of the tree after the last round-<n>/ snapshot is a late fix: the card warns and handover run refuses it (exit 2) until a verify covers the current state (one later change needs a new verify); a snapshot with no round-<n>.state (an older cli) is not checked; no snapshot yet (nothing is late), --by or --note missing, blank or not one line, or holding a forbidden word are refused (exit 2), nothing written",
|
|
2486
2517
|
"report - reads files only (no git, no process, nothing written): the lot's stations, tokens, money, time, suites per station by time, heavy steps, folders and review rounds from its events.jsonl, transitions, ledger and cards.log; a number nobody reported is unknown, never 0, and a step family whose runs may be unrecorded reads unknown with the reason; --feature lists every lot of that feature in every store (simulated ones counted apart, listed by --simulated; a lot whose folder is gone is read from its cards.log line), a kept lot marked kept; next: the lot's own next command, for a committed or canceled lot kept on purpose whose worktree or branch is left lot unkeep (prune would keep everything); a kept lot adds a kept line and kept in --json",
|
|
2487
2518
|
"report --kept - every lot kept on purpose of every store of the list and of the folder it runs from, real, simulated and damaged, each read once and filtered on its keep first: <name> <state> kept since <date> by <who>: <why> \xB7 worktree present|gone|unknown \xB7 branch present|gone|unknown, sorted by name, then <n> kept lot(s) (no kept lot: exit 0); next lot unkeep; --json { lots: [{ lot, state, kept, worktree, branch, next }] }; an id, --feature or --simulated beside it exits 2",
|
|
2488
2519
|
"export - copies a lot folder to <dir>/<full name>/ without asks/ (links kept as links, those pointing outside it named), adding the lot's cards.log lines and registry entry; refused for a <dir> inside a git work tree and for an existing <dir>/<full name>; every copied file compared by size and sha256 (events.jsonl as a prefix) before the rename, one more copy on a difference; the source is never written",
|
|
@@ -2505,7 +2536,8 @@ var COMMAND_MAP = {
|
|
|
2505
2536
|
"3 wait, result: input-required",
|
|
2506
2537
|
"4 wait: an agent failed or hit a limit, run again",
|
|
2507
2538
|
"5 wait --timeout, result: still working",
|
|
2508
|
-
"6 status, wait, result: the lot is damaged: a person must look"
|
|
2539
|
+
"6 status, wait, result: the lot is damaged: a person must look",
|
|
2540
|
+
"2 every verb: the cli is older than the version a repository the invocation reaches asks for (the cli floor); nothing done"
|
|
2509
2541
|
],
|
|
2510
2542
|
example: 'dialecte lot finding ../handover --round 1 --severity nit --at src/a.ts:3 "a finding"'
|
|
2511
2543
|
},
|
|
@@ -2575,7 +2607,7 @@ var COMMAND_MAP = {
|
|
|
2575
2607
|
"the default lists end with a scoped rules step (dialecte rules); a step whose run starts with the word dialecte runs as the gate's own cli (its node and entry file, never node_modules/.bin), its line ending (dialecte <version>); a missing dialecte bin fails that step, never the gate",
|
|
2576
2608
|
"a green record of the same tree, install and steps answers the steps after a fresh tdd step; --no-reuse runs them",
|
|
2577
2609
|
"--full and --release hold the machine awake while they run (macOS: caffeinate -i -w <pid>; DIALECTE_KEEP_AWAKE=0 turns it off); a run that spanned a sleep keeps sleptMs on its record and the card says it",
|
|
2578
|
-
|
|
2610
|
+
`--hook - in a commit hook, no test suite (CI runs it on every push): on a commit of a lot's branch, from any worktree, the scope step comes first, whatever dialecte.gate.hook declares: the lot's whole work up to the commit (its lot base against the index tree being committed, both sides of a rename, deletions included) must lie inside its effective scope (the brief's with lot scope's changes; .dialecte/ records left out), else the commit fails naming every path outside and the lot scope <lot> --add ... --by lot-session to run (a path holding a glob character gets no add), no other step run, the failed part in the lot's events; a review throwaway, a committed, canceled, failed or simulated lot, a first commit and a merge in progress skip it; a damaged lot or a lot base that cannot be read fails it; with no base branch it holds the staged change (held against HEAD: no base branch); a branch no lot names gives no line; then the design step; with "dialecte.gate.hook" declared, the tdd receipts of the lot first (every new or changed case since the lot base proven red then green, unchanged, accepted or revised, its newest green at the production as committed; a stale green names dialecte tdd green (measured from the lot base); a first or merge commit skips it), then the declared steps (the cli: check, then rules on the touched files); without one, every step of --full, a scoped one against the hook base; each step answered by a green record (any mode) of the committed tree and install that ran it as it is now, else run; the running line names the steps it runs`,
|
|
2579
2611
|
'--release - alone: "dialecte.gate.release" (default: the --full steps), every scoped step against the empty tree (--base feeds only the tdd step); records dialecte-gate-release.json; each of its steps answers a hook step of the same step hash (a scoped one at any base: it checked everything); its green record answers a rehearsal, contrib and the card when the list covers full (same name, run, counts and changedOnly for every full step)',
|
|
2580
2612
|
`scoped steps ("scoped": true) get DIALECTE_GATE_BASE, _TREE, _CHANGED (the changed paths byte for byte, NUL-separated, relative to the repository top as git diff --name-only names them; a declared failing path is relative to the package root) and _SELECTION, where they write { schema: 1, base, tree, changed, selected: [{ id, reasons }], skipped: [{ id, reason }] } (both lists required, reasons non-empty); the base is --base <ref>, else the merge-base with the base branch (the first found: "dialecte.baseBranch", origin/HEAD, main, master; each local, else on origin), else the empty tree; a local base branch holding commits origin's lacks: a note naming the count, the base read from origin's; select from the working files; without the gate (no DIALECTE_GATE_SELECTION): select everything`,
|
|
2581
2613
|
'a step whose run is npm run <script> the package lacks is not wired: a default step fails a --full or --release run (a --fast one says it and goes on), a declared step fails in every mode; then no step runs, the others read not run: a step of the list is not wired; "dialecte": { "gate": { "skip": { "<default step>": "<reason>" } } } (dialecte.gate.skip) opts a default step out, a warning with its reason',
|
|
@@ -2616,7 +2648,7 @@ var COMMAND_MAP = {
|
|
|
2616
2648
|
"without files: the changed list a scoped gate step hands (DIALECTE_GATE_CHANGED), else the files changed against HEAD and the new ones; a file it cannot read or parse is an error",
|
|
2617
2649
|
"quality rules: argument-mutation, query-in-loop, long-function on implementation files; table-branch, without-export-xml, export-without-queries, fixture-builder, plan-tag on test-shaped files; on test-shaped Dialecte changes: xml-splice, xml-replace, transaction-spy, act-repeats-call, act-snapshot, act-format-check, inline-document-long, expected-fixture, fixture-case-comment (warning), test-file-long, fixture-file-long, fixtures-module, fixture-builder an error; in an app only Dialecte-change script files are judged, the others counted in one line (a contributor package is never an app); with the gate base, an error on a line the change did not add is a warning; without a gate base, or with an empty-tree one (as gate --release hands), the order every caller shares: in the worktree of a store lot its lot base read from git (its fork point from the base branch, or from the line of the lot it was started on while that lot is open; never the base recorded at its start, which a rebase leaves behind; with no base branch found, the newest of the commit it recorded at its start, when HEAD holds it, and a release tag descending from that commit, else no base), else the merge-base with the base branch (skipped, for an empty-tree base and for a run without a gate base, when it is the commit of HEAD), else the last release tag <name>@v<version>, else no base and every error kept; a lot base that cannot be read (its stack parent unreadable) is no base, never the merge-base, said in a rules: no base (<why>) line by every run that reads the order: without a gate base, with an empty-tree one, and on the contrib rules row; a run without a gate base prints one line naming it (rules: base <sha> (the lot <name> | the merge-base with <branch> | the merge-base with the base branch | the release tag <tag>), or rules: no base (<why>) when the lot base cannot be read)",
|
|
2618
2650
|
"changelog-edit (an error), in a package keeping a changes/ folder: CHANGELOG.md edited without the package version bumped; write the entry in changes/<lot>.md (dialecte changelog)",
|
|
2619
|
-
"released-changelog (an error, no opt-out), on CHANGELOG.md in every package: a released ## [<version>] section the change altered - lines added, removed or reordered, the section removed, or its heading repeated - judged against the base branch and where the change left it (a section main corrected after the branch point, or a release the branch predates, is no finding); the release base a rehearsal hands its hooks (DIALECTE_RELEASE_BASE, to the scoped rules step alone) replaces the base branch; no base branch: one line, not judged (--json: releasedChangelogNotJudged)",
|
|
2651
|
+
"released-changelog (an error, no opt-out), on CHANGELOG.md in every package: a released ## [<version>] section the change altered - lines added, removed or reordered (a run of blank and link reference definition lines holding a definition compares as one blank line: a definition renders nothing), the section removed, or its heading repeated - judged against the base branch and where the change left it (a section main corrected after the branch point, or a release the branch predates, is no finding); the release base a rehearsal hands its hooks (DIALECTE_RELEASE_BASE, to the scoped rules step alone) replaces the base branch; no base branch: one line, not judged (--json: releasedChangelogNotJudged)",
|
|
2620
2652
|
"--base <ref>: the files changed from the merge-base of <ref> and HEAD to the worktree are judged (deletions left out; uncommitted ones in), that merge-base the base of the softening as a gate base would be; files given with it, or a ref naming no commit, exit 2",
|
|
2621
2653
|
"base-aware rules (warnings, against the base the run judges the change from: --base, else the lot base, else, in a run that is no scoped gate step, the base branch merge-base; never a release tag, an empty tree nor the gate base): duplicate-read, an added function reading the same element and three or more attributes as an existing one (a named set counts three), or whose name shares two words with an existing function it does not call (generic words such as read, list, file, path or name left out); shared-export-changed, an export imported by a file of another folder (a sub-folder included) newly shared, re-signed (its parameters, return type, or a sibling .types.ts type they name), its body changed, or removed; docs-not-updated, in a contributor library (no bin), a public api.json entry added, re-signed or removed whose doc page (doc/ Markdown or README naming its last two route segments, or its whole route in a code span) the change did not touch; one line names where they stand: quality: since <short> (lot | base-branch | flag), quality: not run (no lot) in a scoped gate step outside any lot, no line when there is no base or no package.json; notes under it: public API: <route> removed: still named by <pages>, ! public API unknown (<why>), aliases changed, when a tsconfig or Vite config changed (the base edges read with the aliases of the tree); a run that judged the whole change writes dialecte-quality.json in the worktree git folder; contrib never runs them",
|
|
2622
2654
|
"--json: dialecteChanges (the verdict of each file), notJudged, baseLine, qualityLine, quality (the base, the examined files, duplicates, sharedExports, publicApi, docs); described by rules.schema.json (schema 1)",
|
|
@@ -2649,8 +2681,8 @@ var COMMAND_MAP = {
|
|
|
2649
2681
|
],
|
|
2650
2682
|
notes: [
|
|
2651
2683
|
"a fragment: one changes/<name>.md per lot (a no-entry note changes/<name>.none.md holds why a visible change has none), its entries under the changelog headings ### Added, Changed, Deprecated, Removed, Fixed, Security; a package keeping a changes/ folder edits CHANGELOG.md only in a release (rules: changelog-edit)",
|
|
2652
|
-
"check - every fragment readable (a known heading, no loose text, no empty or repeated section), the Unreleased part of CHANGELOG.md, then its released sections: none altered against the base branch and where the change left it (rules: released-changelog); --base <revision> judges against that commit alone, the one the change goes onto (the CI check step hands the merge queue's base, or a pull request merge ref's first parent)",
|
|
2653
|
-
"release - writes ## [<x.y.z>] - <date> (default today, local) under an emptied ## [Unreleased] (written above the first version when missing): the Unreleased summary and entries first, then each fragment in file name order, section by section,
|
|
2684
|
+
"check - every fragment readable (a known heading, no loose text, no empty or repeated section, no HTML comment, code fence or HTML block that never closes, and in each block or item a release moves no raw HTML but whole comments and balanced bare tags of an inert element, nor a block that moving the breaking items first would read otherwise; read as CommonMark reads it), the Unreleased part of CHANGELOG.md, then its released sections: none altered against the base branch and where the change left it (rules: released-changelog); --base <revision> judges against that commit alone, the one the change goes onto (the CI check step hands the merge queue's base, or a pull request merge ref's first parent)",
|
|
2685
|
+
"release - writes ## [<x.y.z>] - <date> (default today, local) under an emptied ## [Unreleased] (written above the first version when missing): the Unreleased summary and entries first, then each fragment in file name order, section by section, each section's breaking items (a bullet opening with **Breaking, Breaking: or Breaking (types):) first, the blocks read as CommonMark reads them (each item of a - list a block, any other block whole and never reordered) and joined as oxfmt leaves them (a blank line after an item holding a second block and around any other block); deletes the fragments and the no-entry notes; nothing written when a fragment or the Unreleased part cannot be read"
|
|
2654
2686
|
],
|
|
2655
2687
|
exitCodes: [
|
|
2656
2688
|
"1 a fragment or the Unreleased part cannot be read, a released section is altered (check), the release is refused (no CHANGELOG.md, version already there, nothing to release), or a fragment could not be deleted",
|
|
@@ -3415,12 +3447,7 @@ function declaredVersions(cwd) {
|
|
|
3415
3447
|
const manifest = JSON.parse(readFileSync13(join24(cwd, "package.json"), "utf8"));
|
|
3416
3448
|
const names = dependencyNames(cwd);
|
|
3417
3449
|
return Object.fromEntries(
|
|
3418
|
-
names.map((name) => [
|
|
3419
|
-
name,
|
|
3420
|
-
String(
|
|
3421
|
-
manifest.dependencies?.[name] ?? manifest.devDependencies?.[name] ?? manifest.peerDependencies?.[name]
|
|
3422
|
-
)
|
|
3423
|
-
])
|
|
3450
|
+
names.map((name) => [name, String(declaredSpecOf({ manifest, name })?.spec)])
|
|
3424
3451
|
);
|
|
3425
3452
|
}
|
|
3426
3453
|
function installedVersion(params) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dialecte/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Dialecte CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"jsonc-parser": "3.3.1",
|
|
48
|
+
"markdown-it": "15.0.3",
|
|
48
49
|
"oxfmt": "^0.75.0",
|
|
49
50
|
"yaml": "2.9.1"
|
|
50
51
|
},
|
|
@@ -166,6 +167,7 @@
|
|
|
166
167
|
"src/lib/gate/hook-gate.ts",
|
|
167
168
|
"src/lib/gate/hook-tdd.ts",
|
|
168
169
|
"src/lib/gate/hook-design.ts",
|
|
170
|
+
"src/lib/gate/hook-scope.ts",
|
|
169
171
|
"src/lib/tdd/check-tdd-receipts.ts"
|
|
170
172
|
]
|
|
171
173
|
},
|