@autotelic/jig-cli 0.0.0-stage → 0.1.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.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +169 -2
  3. package/bin/jig.js +23 -0
  4. package/dist/baseline.d.ts +8 -0
  5. package/dist/baseline.d.ts.map +1 -0
  6. package/dist/baseline.js +30 -0
  7. package/dist/baseline.js.map +1 -0
  8. package/dist/cli.d.ts +2 -0
  9. package/dist/cli.d.ts.map +1 -0
  10. package/dist/cli.js +342 -0
  11. package/dist/cli.js.map +1 -0
  12. package/dist/commands.d.ts +50 -0
  13. package/dist/commands.d.ts.map +1 -0
  14. package/dist/commands.js +145 -0
  15. package/dist/commands.js.map +1 -0
  16. package/dist/config.d.ts +32 -0
  17. package/dist/config.d.ts.map +1 -0
  18. package/dist/config.js +59 -0
  19. package/dist/config.js.map +1 -0
  20. package/dist/engines.d.ts +85 -0
  21. package/dist/engines.d.ts.map +1 -0
  22. package/dist/engines.js +575 -0
  23. package/dist/engines.js.map +1 -0
  24. package/dist/exec.d.ts +16 -0
  25. package/dist/exec.d.ts.map +1 -0
  26. package/dist/exec.js +13 -0
  27. package/dist/exec.js.map +1 -0
  28. package/dist/gate.d.ts +46 -0
  29. package/dist/gate.d.ts.map +1 -0
  30. package/dist/gate.js +82 -0
  31. package/dist/gate.js.map +1 -0
  32. package/dist/git.d.ts +5 -0
  33. package/dist/git.d.ts.map +1 -0
  34. package/dist/git.js +39 -0
  35. package/dist/git.js.map +1 -0
  36. package/dist/gitattributes.d.ts +27 -0
  37. package/dist/gitattributes.d.ts.map +1 -0
  38. package/dist/gitattributes.js +63 -0
  39. package/dist/gitattributes.js.map +1 -0
  40. package/dist/index.d.ts +12 -0
  41. package/dist/index.d.ts.map +1 -0
  42. package/dist/index.js +12 -0
  43. package/dist/index.js.map +1 -0
  44. package/dist/init.d.ts +163 -0
  45. package/dist/init.d.ts.map +1 -0
  46. package/dist/init.js +1855 -0
  47. package/dist/init.js.map +1 -0
  48. package/dist/menu.d.ts +82 -0
  49. package/dist/menu.d.ts.map +1 -0
  50. package/dist/menu.js +388 -0
  51. package/dist/menu.js.map +1 -0
  52. package/dist/opencode.d.ts +66 -0
  53. package/dist/opencode.d.ts.map +1 -0
  54. package/dist/opencode.js +392 -0
  55. package/dist/opencode.js.map +1 -0
  56. package/dist/package-json.d.ts +13 -0
  57. package/dist/package-json.d.ts.map +1 -0
  58. package/dist/package-json.js +33 -0
  59. package/dist/package-json.js.map +1 -0
  60. package/dist/projections.d.ts +140 -0
  61. package/dist/projections.d.ts.map +1 -0
  62. package/dist/projections.js +186 -0
  63. package/dist/projections.js.map +1 -0
  64. package/dist/render.d.ts +21 -0
  65. package/dist/render.d.ts.map +1 -0
  66. package/dist/render.js +131 -0
  67. package/dist/render.js.map +1 -0
  68. package/dist/room.d.ts +16 -0
  69. package/dist/room.d.ts.map +1 -0
  70. package/dist/room.js +56 -0
  71. package/dist/room.js.map +1 -0
  72. package/dist/run.d.ts +10 -0
  73. package/dist/run.d.ts.map +1 -0
  74. package/dist/run.js +18 -0
  75. package/dist/run.js.map +1 -0
  76. package/extensions/jig.ts +465 -0
  77. package/package.json +78 -3
  78. package/skills/feedback-loop/SKILL.md +14 -0
  79. package/skills/intercom-setup/SKILL.md +20 -0
  80. package/skills/project-run/SKILL.md +18 -0
  81. package/skills/room/SKILL.md +17 -0
package/dist/gate.d.ts ADDED
@@ -0,0 +1,46 @@
1
+ import { type Diagnostic } from "@autotelic/protocol";
2
+ import type { HarnessRun } from "./run.ts";
3
+ /** The process codes `jig check` returns. */
4
+ export declare const EXIT: {
5
+ readonly clean: 0;
6
+ readonly findings: 1;
7
+ readonly usage: 2;
8
+ readonly infrastructure: 3;
9
+ };
10
+ /** The subset of `jig.config.json` that decides the gate. */
11
+ export interface GateOptions {
12
+ /** The scope the gate actually read: `touched-files` degrades to `all` when git cannot say. */
13
+ readonly mode: "touched-files" | "all";
14
+ readonly failOn: "error" | "warn" | "any-new";
15
+ readonly maxWarnings: number;
16
+ /** Repo-relative paths the change touched. Read only when `mode` is `touched-files`. */
17
+ readonly touched: ReadonlySet<string>;
18
+ /**
19
+ * Engines whose findings are reported and never held against the run.
20
+ *
21
+ * A rule that is wrong upstream is still worth seeing: marking the engine advisory keeps its
22
+ * findings in the census and the baseline while taking only the exit code away.
23
+ */
24
+ readonly advisory: ReadonlySet<string>;
25
+ }
26
+ /** What a run earned: the code, the findings that earned it, and whose silence earned it. */
27
+ export interface GateVerdict {
28
+ readonly exitCode: number;
29
+ /** The scope the gate read, after any degradation from `touched-files`. */
30
+ readonly scope: "touched-files" | "all";
31
+ readonly failOn: GateOptions["failOn"];
32
+ /** The in-scope findings the gate holds against the run, in report order. */
33
+ readonly failing: ReadonlyArray<Diagnostic>;
34
+ /** In-scope findings from advisory engines: printed and baselined, never fatal. */
35
+ readonly advisory: ReadonlyArray<Diagnostic>;
36
+ /** Engines that could not run, by id. Non-empty means the report is incomplete. */
37
+ readonly infrastructure: ReadonlyArray<string>;
38
+ }
39
+ /**
40
+ * Decide a run's fate.
41
+ *
42
+ * Pure: the same run and options always give the same verdict, so the exit code and the
43
+ * report a person reads can never disagree.
44
+ */
45
+ export declare const gateVerdict: (run: HarnessRun, options: GateOptions) => GateVerdict;
46
+ //# sourceMappingURL=gate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gate.d.ts","sourceRoot":"","sources":["../src/gate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAoB1C,6CAA6C;AAC7C,eAAO,MAAM,IAAI;aAAK,KAAK,EAAE,CAAC;aAAE,QAAQ,EAAE,CAAC;aAAE,KAAK,EAAE,CAAC;aAAE,cAAc,EAAE,CAAC;CAAW,CAAA;AAEnF,6DAA6D;AAC7D,MAAM,WAAW,WAAW;IAC1B,+FAA+F;IAC/F,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,KAAK,CAAA;IACtC,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;IAC7C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,wFAAwF;IACxF,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACvC;AAED,6FAA6F;AAC7F,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,KAAK,CAAA;IACvC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAA;IACtC,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;IAC3C,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;IAC5C,mFAAmF;IACnF,QAAQ,CAAC,cAAc,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAC/C;AA0BD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,QAAS,UAAU,WAAW,WAAW,KAAG,WAsCnE,CAAA"}
package/dist/gate.js ADDED
@@ -0,0 +1,82 @@
1
+ import { identityOf } from "@autotelic/protocol";
2
+ /*
3
+ * The gate: what a run earns, and the exit code that carries it.
4
+ *
5
+ * `check` runs the engines and merges them into one report; this file decides what that
6
+ * report MEANS. The three knobs a repo sets — `gate.mode`, `gate.failOn`, and
7
+ * `report.maxWarnings` — are read here and nowhere else, so a knob that does not change
8
+ * this file is a knob that lies.
9
+ *
10
+ * The exit codes are a contract a CI reads:
11
+ * 0 clean — the gate passed
12
+ * 1 findings — the gate failed on findings
13
+ * 2 usage/config — the command line did not parse (raised in `cli.ts`, not here)
14
+ * 3 infrastructure — an engine could not run; the report is incomplete, not clean
15
+ *
16
+ * Infrastructure outranks findings: when an engine could not run, "0 finding(s)" is not a
17
+ * verdict, and a CI that read 1 would treat an unread run as a merely dirty one.
18
+ */
19
+ /** The process codes `jig check` returns. */
20
+ export const EXIT = { clean: 0, findings: 1, usage: 2, infrastructure: 3 };
21
+ /** Findings in the gate's scope: everything, or only what the change touched. */
22
+ const inScope = (run, options) => options.mode === "all"
23
+ ? run.report.diagnostics
24
+ : run.report.diagnostics.filter((diagnostic) => options.touched.has(diagnostic.location.file));
25
+ /** The findings `failOn` holds against a scope. */
26
+ const heldByFailOn = (run, scope, failOn) => {
27
+ switch (failOn) {
28
+ case "error":
29
+ return scope.filter((diagnostic) => diagnostic.severity === "error");
30
+ case "warn":
31
+ return scope.filter((diagnostic) => diagnostic.severity !== "info");
32
+ case "any-new": {
33
+ const novel = new Set(run.diff.novel.map(identityOf));
34
+ return scope.filter((diagnostic) => novel.has(identityOf(diagnostic)));
35
+ }
36
+ }
37
+ };
38
+ /**
39
+ * Decide a run's fate.
40
+ *
41
+ * Pure: the same run and options always give the same verdict, so the exit code and the
42
+ * report a person reads can never disagree.
43
+ */
44
+ export const gateVerdict = (run, options) => {
45
+ const infrastructure = [
46
+ ...run.report.generators
47
+ .filter((generator) => generator.status === "errored")
48
+ .map((generator) => generator.id),
49
+ // No engines is not a clean run: nothing was looked at. It is a setup fault,
50
+ // which is the infrastructure band, not a finding.
51
+ ...(run.report.generators.length === 0 ? ["jig"] : []),
52
+ ];
53
+ const scope = inScope(run, options);
54
+ // Advisory is per engine, so it is decided here rather than in `heldByFailOn`: an advisory
55
+ // engine's findings leave the gate's arithmetic entirely -- findings, warnings, ceiling --
56
+ // and are carried out separately so the report can still show them.
57
+ const advisory = scope.filter((diagnostic) => options.advisory.has(diagnostic.engine));
58
+ const gated = scope.filter((diagnostic) => !options.advisory.has(diagnostic.engine));
59
+ const held = heldByFailOn(run, gated, options.failOn);
60
+ // The ceiling is a second, severity-blind regime: enough warnings fail whatever `failOn`
61
+ // says. When it trips, the warnings are what the gate holds, so they are what it shows.
62
+ const warnings = gated.filter((diagnostic) => diagnostic.severity === "warn");
63
+ const overCeiling = options.maxWarnings >= 0 && warnings.length > options.maxWarnings;
64
+ const heldSet = new Set(held);
65
+ const failing = overCeiling
66
+ ? gated.filter((diagnostic) => diagnostic.severity === "warn" || heldSet.has(diagnostic))
67
+ : held;
68
+ const exitCode = infrastructure.length > 0
69
+ ? EXIT.infrastructure
70
+ : failing.length > 0
71
+ ? EXIT.findings
72
+ : EXIT.clean;
73
+ return {
74
+ exitCode,
75
+ scope: options.mode,
76
+ failOn: options.failOn,
77
+ failing,
78
+ advisory,
79
+ infrastructure,
80
+ };
81
+ };
82
+ //# sourceMappingURL=gate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gate.js","sourceRoot":"","sources":["../src/gate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,qBAAqB,CAAA;AAGjE;;;;;;;;;;;;;;;;GAgBG;AAEH,6CAA6C;AAC7C,MAAM,CAAC,MAAM,IAAI,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAW,CAAA;AAiCnF,iFAAiF;AACjF,MAAM,OAAO,GAAG,CAAC,GAAe,EAAE,OAAoB,EAA6B,EAAE,CACnF,OAAO,CAAC,IAAI,KAAK,KAAK;IACpB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW;IACxB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;AAElG,mDAAmD;AACnD,MAAM,YAAY,GAA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ACnB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,OAAO;QACP,QAAQ;QACR,cAAc;KACf,CAAA;AACH,CAAC,CAAA"}
package/dist/git.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { Effect } from "effect";
2
+ import { type Spawner } from "./exec.ts";
3
+ /** The repo-relative paths a working-tree change touches, or `undefined` when git cannot say. */
4
+ export declare const touchedFiles: (root: string) => Effect.Effect<ReadonlySet<string> | undefined, never, Spawner>;
5
+ //# sourceMappingURL=git.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,WAAW,CAAA;AA+B9C,iGAAiG;AACjG,eAAO,MAAM,YAAY,SACjB,MAAM,KACX,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,EAAE,KAAK,EAAE,OAAO,CAa5D,CAAA"}
package/dist/git.js ADDED
@@ -0,0 +1,39 @@
1
+ import { Effect } from "effect";
2
+ import { exec } from "./exec.js";
3
+ /*
4
+ * The one thing `jig` asks git, for `gate.mode: "touched-files"`.
5
+ *
6
+ * "Touched" is the change in front of you, measured against `HEAD`: modified tracked
7
+ * files, staged edits, and untracked files. A repo with no commit yet has no `HEAD` to
8
+ * diff against, so every tracked file counts as touched — the honest answer when there
9
+ * is no baseline commit to have touched anything since.
10
+ *
11
+ * A repo git cannot read (not a repository, git absent) returns `undefined`, and the
12
+ * caller degrades the scope to `all`, never to the empty set: an empty set would pass
13
+ * every finding, which is the false-clean failure this workspace is built to prevent.
14
+ */
15
+ const lines = (text) => text
16
+ .split("\n")
17
+ .map((line) => line.trim())
18
+ .filter((line) => line.length > 0);
19
+ /** One git invocation, or `undefined` when git fails or is missing. */
20
+ const git = (root, args) => Effect.match(exec({ binary: "git", args, cwd: root }), {
21
+ onFailure: () => undefined,
22
+ onSuccess: (outcome) => (outcome.code === 0 ? outcome.stdout : undefined),
23
+ });
24
+ /** The repo-relative paths a working-tree change touches, or `undefined` when git cannot say. */
25
+ export const touchedFiles = (root) => Effect.gen(function* () {
26
+ const inside = yield* git(root, ["rev-parse", "--is-inside-work-tree"]);
27
+ if (inside === undefined || inside.trim() !== "true")
28
+ return undefined;
29
+ const head = yield* git(root, ["rev-parse", "--verify", "HEAD"]);
30
+ // No HEAD means no commit to diff against; everything tracked is "new since then".
31
+ const changed = head === undefined
32
+ ? yield* git(root, ["ls-files"])
33
+ : yield* git(root, ["diff", "--name-only", "--relative", "HEAD"]);
34
+ if (changed === undefined)
35
+ return undefined;
36
+ const untracked = yield* git(root, ["ls-files", "--others", "--exclude-standard"]);
37
+ return new Set([...lines(changed), ...lines(untracked ?? "")]);
38
+ });
39
+ //# sourceMappingURL=git.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git.js","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAgB,MAAM,WAAW,CAAA;AAE9C;;;;;;;;;;;GAWG;AAEH,MAAM,KAAK,GAAG,CAAC,IAAY,EAAyB,EAAE,CACpD,IAAI;KACD,KAAK,CAAC,IAAI,CAAC;KACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;KAC1B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;AAEtC,uEAAuE;AACvE,MAAM,GAAG,GAAG,CACV,IAAY,EACZ,IAA2B,EACwB,EAAE,CACrD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE;IACrD,SAAS,EA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C,CAAC,CAAA"}
@@ -0,0 +1,27 @@
1
+ import type { ResolvedCutlistOutput } from "@autotelic/protocol";
2
+ export declare const GENERATED_BEGIN = "# jig: generated artifacts \u2014 collapse in review; do not edit";
3
+ export declare const GENERATED_END = "# jig: end";
4
+ export type GitattributesAction = "appended" | "created" | "malformed" | "unchanged" | "updated";
5
+ export interface GitattributesMerge {
6
+ readonly body: string;
7
+ readonly action: GitattributesAction;
8
+ readonly rules: ReadonlyArray<string>;
9
+ }
10
+ /**
11
+ * The rules for one cutlist artifact.
12
+ *
13
+ * `intent/` is deliberately absent: it is the one class in the artifact a person writes,
14
+ * so a reviewer should see its diff. Everything else is a projection of the tree.
15
+ *
16
+ * A directory pattern needs `/**`: git applies attributes per path, and a bare directory
17
+ * name matches the directory entry rather than its contents.
18
+ */
19
+ export declare const generatedRules: (output: ResolvedCutlistOutput) => ReadonlyArray<string>;
20
+ /**
21
+ * Merge the managed block into a `.gitattributes`, or say why it did not.
22
+ *
23
+ * A block with a begin marker and no end marker is left alone: the file has been edited
24
+ * by hand, and guessing where a person's rules resume is worse than asking.
25
+ */
26
+ export declare const mergeGitattributes: (existing: string | undefined, rules: ReadonlyArray<string>) => GitattributesMerge;
27
+ //# sourceMappingURL=gitattributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitattributes.d.ts","sourceRoot":"","sources":["../src/gitattributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAehE,eAAO,MAAM,eAAe,sEAAiE,CAAA;AAC7F,eAAO,MAAM,aAAa,eAAe,CAAA;AAEzC,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,CAAA;AAEhG,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAA;IACpC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CACtC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,WAAY,qBAAqB,KAAG,aAAa,CAAC,MAAM,CAWlF,CAAA;AAKD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,aACnB,MAAM,GAAG,SAAS,SACrB,aAAa,CAAC,MAAM,CAAC,KAC3B,kBAiBF,CAAA"}
@@ -0,0 +1,63 @@
1
+ /*
2
+ * `.gitattributes` is the one file `jig init` touches that a repository already owns.
3
+ *
4
+ * Every other file init writes is jig's: absent means write, present means keep. This one
5
+ * may already carry `eol`, binary marks, or a vendored tree, so `init` must never replace
6
+ * it — only merge one marked block and leave every other line exactly as it found it.
7
+ *
8
+ * The block is what makes committing the cutlist artifact reviewable: `linguist-generated`
9
+ * collapses a generated file in GitHub's Files changed view, and `-diff` keeps a 6 MB SVG
10
+ * from being rendered as a text diff. It does not make the artifact less committed; it
11
+ * makes the part a person should review the part that shows.
12
+ */
13
+ export const GENERATED_BEGIN = "# jig: generated artifacts — collapse in review; do not edit";
14
+ export const GENERATED_END = "# jig: end";
15
+ /**
16
+ * The rules for one cutlist artifact.
17
+ *
18
+ * `intent/` is deliberately absent: it is the one class in the artifact a person writes,
19
+ * so a reviewer should see its diff. Everything else is a projection of the tree.
20
+ *
21
+ * A directory pattern needs `/**`: git applies attributes per path, and a bare directory
22
+ * name matches the directory entry rather than its contents.
23
+ */
24
+ export const generatedRules = (output) => {
25
+ const rules = [];
26
+ for (const [key, path] of Object.entries(output)) {
27
+ // Authored prose, and an opt-in rendering that is not being rendered: neither is a
28
+ // generated file this repo has.
29
+ if (key === "intent" || path === undefined)
30
+ continue;
31
+ rules.push(`${key === "diagrams" ? `${path}/**` : path} linguist-generated=true`);
32
+ // The Mermaid source is readable and worth a diff; the picture beside it is not.
33
+ if (key === "diagrams")
34
+ rules.push(`${path}/**/*.svg -diff`);
35
+ }
36
+ return rules;
37
+ };
38
+ const blockOf = (rules, eol) => [GENERATED_BEGIN, ...rules, GENERATED_END].join(eol);
39
+ /**
40
+ * Merge the managed block into a `.gitattributes`, or say why it did not.
41
+ *
42
+ * A block with a begin marker and no end marker is left alone: the file has been edited
43
+ * by hand, and guessing where a person's rules resume is worse than asking.
44
+ */
45
+ export const mergeGitattributes = (existing, rules) => {
46
+ const eol = existing?.includes("\r\n") === true ? "\r\n" : "\n";
47
+ const block = blockOf(rules, eol);
48
+ if (existing === undefined || existing.trim().length === 0) {
49
+ return { body: `${block}${eol}`, action: "created", rules };
50
+ }
51
+ const begin = existing.indexOf(GENERATED_BEGIN);
52
+ const end = existing.indexOf(GENERATED_END);
53
+ if (begin >= 0 || end >= 0) {
54
+ if (begin >= 0 && end > begin) {
55
+ const body = existing.slice(0, begin) + block + existing.slice(end + GENERATED_END.length);
56
+ return { body, action: body === existing ? "unchanged" : "updated", rules };
57
+ }
58
+ return { body: existing, action: "malformed", rules };
59
+ }
60
+ const head = existing.endsWith(eol) ? existing : `${existing}${eol}`;
61
+ return { body: `${head}${eol}${block}${eol}`, action: "appended", rules };
62
+ };
63
+ //# sourceMappingURL=gitattributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitattributes.js","sourceRoot":"","sources":["../src/gitattributes.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,8DAA8D,CAAA;AAC7F,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAA;AAUzC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAA6B,EAAyB,EAAE;IACrF,MAAM,KAAK,GAAkB,EAAE,CAAA;IAC/B,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACjD,mFAAmF;QACnF,gCAAgC;QAChC,IAAI,GAAG,KAAK,QAAQ,IAAI,IAAI,KAAK,SAAS;YAAE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C;YAC9B,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,GAAG,aAAa,CAAC,MAAM,CAAC,CAAA;YAC1F,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,CAAA;QAC7E,CAAC;QACD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,CAAA;IACvD,CAAC;IACD,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG,GAAG,EAAE,CAAA;IACpE,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AAC3E,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `@autotelic/jig-cli` — the harness. Exports the engine adapters, the run, the ratchet,
3
+ * and the renderers, so a host (a test, a CI script, the pi extension) can reuse them.
4
+ */
5
+ export * from "./config.ts";
6
+ export * from "./baseline.ts";
7
+ export * from "./exec.ts";
8
+ export * from "./engines.ts";
9
+ export * from "./run.ts";
10
+ export * from "./render.ts";
11
+ export * from "./projections.ts";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `@autotelic/jig-cli` — the harness. Exports the engine adapters, the run, the ratchet,
3
+ * and the renderers, so a host (a test, a CI script, the pi extension) can reuse them.
4
+ */
5
+ export * from "./config.js";
6
+ export * from "./baseline.js";
7
+ export * from "./exec.js";
8
+ export * from "./engines.js";
9
+ export * from "./run.js";
10
+ export * from "./render.js";
11
+ export * from "./projections.js";
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA"}
package/dist/init.d.ts ADDED
@@ -0,0 +1,163 @@
1
+ import { Effect, FileSystem, Path, PlatformError } from "effect";
2
+ import { type CutlistConfig, type EngineRef, type HarnessConfig, type ResolvedCutlistOutput } from "@autotelic/protocol";
3
+ import { type Spawner } from "./exec.ts";
4
+ import { type GitattributesAction } from "./gitattributes.ts";
5
+ type PackageManager = "bun" | "npm" | "pnpm" | "yarn";
6
+ /** What a repository already has, and therefore what `init` should enable. */
7
+ export interface RepoProfile {
8
+ readonly root: string;
9
+ readonly name: string;
10
+ readonly packageManager: PackageManager;
11
+ /** The command that runs a package script here: `pnpm`, `npm`, `yarn`, `bun`. */
12
+ readonly run: string;
13
+ /** The command that runs jig: `pnpm jig` when it is a local dependency, else `jig`. */
14
+ readonly jig: string;
15
+ /** Facts about the repo that change what the docs say. A set, not flags that can disagree. */
16
+ readonly facts: ReadonlySet<"ci" | "configured" | "live-judgement" | "room" | "typescript" | "workspaces">;
17
+ readonly agentDocs: ReadonlyArray<string>;
18
+ /** A short, factual sentence about the repository, from AGENTS.md, README or package.json. */
19
+ readonly summary: string;
20
+ /** The repo's own scripts, for the cookbook. */
21
+ readonly commands: ReadonlyArray<{
22
+ readonly name: string;
23
+ readonly command: string;
24
+ }>;
25
+ readonly lint: {
26
+ readonly tool: "biome" | "eslint" | "none" | "oxlint";
27
+ readonly config?: string | undefined;
28
+ readonly script?: string | undefined;
29
+ };
30
+ readonly engines: ReadonlyArray<EngineRef>;
31
+ readonly notes: ReadonlyArray<string>;
32
+ readonly gateMode: "all" | "touched-files";
33
+ /** The paths the existing config names, so a re-run does not write a second ledger. */
34
+ readonly baseline: string;
35
+ readonly cookbook: string;
36
+ readonly onboarding: string;
37
+ /** Where this machine installs the CLI from: this checkout when it builds jig, else npm. */
38
+ readonly jigSource: string;
39
+ /** Agent hosts this repository already wires, so the prompt does not ask for them twice. */
40
+ readonly hosts: ReadonlySet<"opencode" | "pi">;
41
+ /** A cutlist config inferred from the tree, when this looks like a UI. */
42
+ readonly cutlistDraft: CutlistConfig | undefined;
43
+ /** Layers proposed from the workspace, with no `forbid`: a person supplies the judgement. */
44
+ readonly architectureDraft?: {
45
+ readonly layers: ReadonlyArray<{
46
+ readonly name: string;
47
+ readonly include: ReadonlyArray<string>;
48
+ }>;
49
+ } | undefined;
50
+ /** Where cutlist writes, with its defaults filled in. Absent when this repo has no cutlist. */
51
+ readonly cutlistOutput?: ResolvedCutlistOutput | undefined;
52
+ /** The cutlist config this repo already keeps, and the directory its engine scans. */
53
+ readonly cutlistExisting?: {
54
+ readonly path: string;
55
+ readonly directory: string;
56
+ } | undefined;
57
+ }
58
+ /** What `init` wrote and what it left alone. */
59
+ export interface InitResult {
60
+ readonly profile: RepoProfile;
61
+ readonly written: ReadonlyArray<string>;
62
+ readonly kept: ReadonlyArray<string>;
63
+ /**
64
+ * What this repository's ignore rules do to the harness, one record per path: still hidden, hidden
65
+ * by a pattern only, or removed from \`.gitignore\` by this run.
66
+ */
67
+ readonly ignore: ReadonlyArray<{
68
+ readonly path: string;
69
+ readonly status: "hidden" | "pattern" | "removed";
70
+ }>;
71
+ /** Engine-owned ledgers: the ratchet is born accepted, once, and never rewritten. */
72
+ readonly engineBaselines: ReadonlyArray<{
73
+ readonly id: string;
74
+ readonly path: string;
75
+ readonly accepted: number;
76
+ readonly action: "kept" | "written" | "would accept";
77
+ }>;
78
+ readonly joggleConfig: "kept" | "written" | "absent";
79
+ readonly cutlistConfig: "kept" | "written" | "absent";
80
+ /** What happened to `.gitattributes`: the generated-artifact block, never the whole file. */
81
+ readonly gitattributes: GitattributesAction | "absent";
82
+ /** True when nothing was written: this is the plan an operator or agent reviews. */
83
+ readonly dryRun: boolean;
84
+ /** Findings already accepted in the baseline, when one was kept. */
85
+ readonly accepted: number;
86
+ /** What happened to the scoped pre-commit hook. */
87
+ readonly hooks: "absent" | "foreign" | "kept" | "not-a-repo" | "would write" | "written";
88
+ /** The agent skills `--skills` copied into `.agents/skills`, and what happened to each. */
89
+ readonly skills: ReadonlyArray<{
90
+ readonly name: string;
91
+ readonly state: "kept" | "would write" | "written";
92
+ }>;
93
+ }
94
+ /**
95
+ * Read the repository, then decide what is worth enabling.
96
+ *
97
+ * @param root - The project root.
98
+ * @param options - The gate mode the caller asked for, and whether a write may replace the config.
99
+ * @returns the profile `init` writes from.
100
+ */
101
+ export declare const inspectRepo: (root: string, options?: {
102
+ readonly gateMode?: "all" | "touched-files" | undefined;
103
+ readonly force?: boolean | undefined;
104
+ }) => Effect.Effect<RepoProfile, never, FileSystem.FileSystem | Path.Path>;
105
+ /** The config `init` writes: only the engines that resolved, and the friendly gate. */
106
+ export declare const configFor: (profile: RepoProfile) => HarnessConfig;
107
+ /**
108
+ * Re-draft `architecture.layers`, keep the judgement written into them.
109
+ *
110
+ * Keyed by layer name, because the name is the only stable handle: an include glob moves when
111
+ * the draft learns a tier (a `routes` split becoming `support` + `routes` moved every include
112
+ * in the first adopter), and a `forbid` was written against a name. A layer the draft no
113
+ * longer proposes is reported rather than dropped in silence -- its forbidden dependency is a
114
+ * decision, and losing it makes `layer-purity` read 0 on rules nobody removed.
115
+ *
116
+ * Everything outside `architecture.layers` is carried through untouched: `rules`,
117
+ * `evidence`, `unavailable`, and whatever a later joggle adds.
118
+ */
119
+ export declare const mergeArchitecture: (input: {
120
+ readonly existing: Readonly<Record<string, unknown>>;
121
+ readonly draft: ReadonlyArray<{
122
+ readonly name: string;
123
+ readonly include: ReadonlyArray<string>;
124
+ }>;
125
+ }) => {
126
+ readonly file: Readonly<Record<string, unknown>>;
127
+ readonly forbidsKept: ReadonlyArray<string>;
128
+ readonly forbidsDropped: ReadonlyArray<string>;
129
+ };
130
+ /** The durable cookbook: what the commands are, and what the gate means. */
131
+ export declare const cookbookFor: (profile: RepoProfile) => string;
132
+ /**
133
+ * The agent door: one prompt, pasted whole, that sets the harness up end to end.
134
+ *
135
+ * The shape is the one that works -- Alchemy's and rat-stack's: a line of intent, one
136
+ * named command per step, the doc to read before acting, and an explicit place to stop
137
+ * and ask. Nothing is left as "see the README": a prompt that stops at "run init" leaves
138
+ * the person to discover the CLI install, the agent wiring, and the room alone. `JIG.md`
139
+ * stays the reference; this is the door.
140
+ */
141
+ export declare const onboardingFor: (profile: RepoProfile) => string;
142
+ /** The human summary `init` prints, before the next steps. */
143
+ export declare const summaryFor: (result: InitResult) => string;
144
+ /** The plan as data, for a host that wants to reason about it rather than read prose. */
145
+ export declare const initJson: (result: InitResult, prompt?: string) => string;
146
+ /**
147
+ * Inspect a repository and write the harness it should have.
148
+ *
149
+ * @param root - The project root.
150
+ * @param options - Gate mode, and whether generated files may be rewritten.
151
+ * @returns the profile, and what was written versus kept.
152
+ */
153
+ export declare const initialise: (root: string, options?: {
154
+ readonly force?: boolean | undefined;
155
+ readonly gateMode?: "all" | "touched-files" | undefined;
156
+ readonly cutlist?: boolean | undefined;
157
+ readonly dryRun?: boolean | undefined;
158
+ readonly hooks?: boolean | undefined;
159
+ readonly unignore?: boolean | undefined;
160
+ readonly skills?: boolean | undefined;
161
+ }) => Effect.Effect<InitResult, PlatformError.PlatformError, FileSystem.FileSystem | Path.Path | Spawner>;
162
+ export {};
163
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAU,IAAI,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACxE,OAAO,EAKL,KAAK,aAAa,EAElB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAA;AAI5B,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAA;AAqB3B,KAAK,cAAc,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;AAKrD,8EAA8E;AAC9E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAA;IACvC,iFAAiF;IACjF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,uFAAuF;IACvF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,8FAA8F;IAC9F,QAAQ,CAAC,KAAK,EAAE,WAAW,CACzB,IAAI,GAAG,YAAY,GAAG,gBAAgB,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,CAC9E,CAAA;IACD,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IACzC,8FAA8F;IAC9F,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,gDAAgD;IAChD,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OA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