ghostrail 0.0.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/README.md +49 -3
  2. package/dist/agent/claude-code.d.ts +10 -0
  3. package/dist/agent/claude-code.d.ts.map +1 -1
  4. package/dist/agent/claude-code.js +20 -0
  5. package/dist/agent/claude-code.js.map +1 -1
  6. package/dist/agent/result.d.ts.map +1 -1
  7. package/dist/agent/result.js +13 -2
  8. package/dist/agent/result.js.map +1 -1
  9. package/dist/backend/container.d.ts +18 -0
  10. package/dist/backend/container.d.ts.map +1 -1
  11. package/dist/backend/container.js +33 -10
  12. package/dist/backend/container.js.map +1 -1
  13. package/dist/backend/git-credentials.d.ts +18 -0
  14. package/dist/backend/git-credentials.d.ts.map +1 -0
  15. package/dist/backend/git-credentials.js +30 -0
  16. package/dist/backend/git-credentials.js.map +1 -0
  17. package/dist/backend/local-worktree.d.ts.map +1 -1
  18. package/dist/backend/local-worktree.js +21 -0
  19. package/dist/backend/local-worktree.js.map +1 -1
  20. package/dist/backend/types.d.ts +12 -1
  21. package/dist/backend/types.d.ts.map +1 -1
  22. package/dist/claude-profile/classify.d.ts +41 -0
  23. package/dist/claude-profile/classify.d.ts.map +1 -0
  24. package/dist/claude-profile/classify.js +103 -0
  25. package/dist/claude-profile/classify.js.map +1 -0
  26. package/dist/claude-profile/index.d.ts +3 -0
  27. package/dist/claude-profile/index.d.ts.map +1 -0
  28. package/dist/claude-profile/index.js +3 -0
  29. package/dist/claude-profile/index.js.map +1 -0
  30. package/dist/claude-profile/setup.d.ts +33 -0
  31. package/dist/claude-profile/setup.d.ts.map +1 -0
  32. package/dist/claude-profile/setup.js +81 -0
  33. package/dist/claude-profile/setup.js.map +1 -0
  34. package/dist/cli/commands.d.ts +67 -2
  35. package/dist/cli/commands.d.ts.map +1 -1
  36. package/dist/cli/commands.js +420 -17
  37. package/dist/cli/commands.js.map +1 -1
  38. package/dist/cli.d.ts.map +1 -1
  39. package/dist/cli.js +13 -1
  40. package/dist/cli.js.map +1 -1
  41. package/dist/commands/help.d.ts.map +1 -1
  42. package/dist/commands/help.js +20 -2
  43. package/dist/commands/help.js.map +1 -1
  44. package/dist/config/load.d.ts.map +1 -1
  45. package/dist/config/load.js +61 -9
  46. package/dist/config/load.js.map +1 -1
  47. package/dist/config/schema.d.ts +51 -3
  48. package/dist/config/schema.d.ts.map +1 -1
  49. package/dist/config/schema.js +4 -0
  50. package/dist/config/schema.js.map +1 -1
  51. package/dist/factory/build.d.ts +24 -0
  52. package/dist/factory/build.d.ts.map +1 -1
  53. package/dist/factory/build.js +80 -11
  54. package/dist/factory/build.js.map +1 -1
  55. package/dist/loop/concurrency.d.ts +13 -0
  56. package/dist/loop/concurrency.d.ts.map +1 -0
  57. package/dist/loop/concurrency.js +27 -0
  58. package/dist/loop/concurrency.js.map +1 -0
  59. package/dist/loop/engine.d.ts.map +1 -1
  60. package/dist/loop/engine.js +19 -14
  61. package/dist/loop/engine.js.map +1 -1
  62. package/dist/loop/index.d.ts +2 -0
  63. package/dist/loop/index.d.ts.map +1 -1
  64. package/dist/loop/index.js +2 -0
  65. package/dist/loop/index.js.map +1 -1
  66. package/dist/loop/ports.d.ts +37 -1
  67. package/dist/loop/ports.d.ts.map +1 -1
  68. package/dist/loop/watch.d.ts +25 -0
  69. package/dist/loop/watch.d.ts.map +1 -0
  70. package/dist/loop/watch.js +45 -0
  71. package/dist/loop/watch.js.map +1 -0
  72. package/dist/publish/gh.d.ts +20 -1
  73. package/dist/publish/gh.d.ts.map +1 -1
  74. package/dist/publish/gh.js +37 -3
  75. package/dist/publish/gh.js.map +1 -1
  76. package/dist/publish/githost.d.ts +12 -0
  77. package/dist/publish/githost.d.ts.map +1 -1
  78. package/dist/publish/githost.js +14 -0
  79. package/dist/publish/githost.js.map +1 -1
  80. package/dist/publish/github-publisher.d.ts +1 -1
  81. package/dist/publish/github-publisher.d.ts.map +1 -1
  82. package/dist/publish/github-publisher.js +6 -5
  83. package/dist/publish/github-publisher.js.map +1 -1
  84. package/dist/respond/respond.d.ts +10 -1
  85. package/dist/respond/respond.d.ts.map +1 -1
  86. package/dist/respond/respond.js +37 -3
  87. package/dist/respond/respond.js.map +1 -1
  88. package/dist/secrets/env-file.d.ts +23 -0
  89. package/dist/secrets/env-file.d.ts.map +1 -0
  90. package/dist/secrets/env-file.js +70 -0
  91. package/dist/secrets/env-file.js.map +1 -0
  92. package/dist/secrets/index.d.ts +4 -0
  93. package/dist/secrets/index.d.ts.map +1 -0
  94. package/dist/secrets/index.js +4 -0
  95. package/dist/secrets/index.js.map +1 -0
  96. package/dist/secrets/load.d.ts +24 -0
  97. package/dist/secrets/load.d.ts.map +1 -0
  98. package/dist/secrets/load.js +43 -0
  99. package/dist/secrets/load.js.map +1 -0
  100. package/dist/skill/install.d.ts +56 -0
  101. package/dist/skill/install.d.ts.map +1 -0
  102. package/dist/skill/install.js +93 -0
  103. package/dist/skill/install.js.map +1 -0
  104. package/dist/source/linear.d.ts +51 -8
  105. package/dist/source/linear.d.ts.map +1 -1
  106. package/dist/source/linear.js +213 -23
  107. package/dist/source/linear.js.map +1 -1
  108. package/dist/triage/apply.d.ts +28 -0
  109. package/dist/triage/apply.d.ts.map +1 -0
  110. package/dist/triage/apply.js +68 -0
  111. package/dist/triage/apply.js.map +1 -0
  112. package/dist/triage/engine.d.ts +31 -0
  113. package/dist/triage/engine.d.ts.map +1 -0
  114. package/dist/triage/engine.js +122 -0
  115. package/dist/triage/engine.js.map +1 -0
  116. package/dist/triage/index.d.ts +4 -0
  117. package/dist/triage/index.d.ts.map +1 -0
  118. package/dist/triage/index.js +4 -0
  119. package/dist/triage/index.js.map +1 -0
  120. package/dist/triage/plan.d.ts +37 -0
  121. package/dist/triage/plan.d.ts.map +1 -0
  122. package/dist/triage/plan.js +75 -0
  123. package/dist/triage/plan.js.map +1 -0
  124. package/dist/vendor/skilltend/apply.d.ts +25 -0
  125. package/dist/vendor/skilltend/apply.d.ts.map +1 -0
  126. package/dist/vendor/skilltend/apply.js +85 -0
  127. package/dist/vendor/skilltend/apply.js.map +1 -0
  128. package/dist/vendor/skilltend/detect.d.ts +35 -0
  129. package/dist/vendor/skilltend/detect.d.ts.map +1 -0
  130. package/dist/vendor/skilltend/detect.js +187 -0
  131. package/dist/vendor/skilltend/detect.js.map +1 -0
  132. package/dist/vendor/skilltend/frontmatter.d.ts +5 -0
  133. package/dist/vendor/skilltend/frontmatter.d.ts.map +1 -0
  134. package/dist/vendor/skilltend/frontmatter.js +59 -0
  135. package/dist/vendor/skilltend/frontmatter.js.map +1 -0
  136. package/dist/vendor/skilltend/fsFacade.d.ts +24 -0
  137. package/dist/vendor/skilltend/fsFacade.d.ts.map +1 -0
  138. package/dist/vendor/skilltend/fsFacade.js +68 -0
  139. package/dist/vendor/skilltend/fsFacade.js.map +1 -0
  140. package/dist/vendor/skilltend/paths.d.ts +28 -0
  141. package/dist/vendor/skilltend/paths.d.ts.map +1 -0
  142. package/dist/vendor/skilltend/paths.js +24 -0
  143. package/dist/vendor/skilltend/paths.js.map +1 -0
  144. package/dist/vendor/skilltend/plan.d.ts +46 -0
  145. package/dist/vendor/skilltend/plan.d.ts.map +1 -0
  146. package/dist/vendor/skilltend/plan.js +79 -0
  147. package/dist/vendor/skilltend/plan.js.map +1 -0
  148. package/dist/vendor/skilltend/registry.d.ts +56 -0
  149. package/dist/vendor/skilltend/registry.d.ts.map +1 -0
  150. package/dist/vendor/skilltend/registry.js +129 -0
  151. package/dist/vendor/skilltend/registry.js.map +1 -0
  152. package/docker/factory.Dockerfile +39 -0
  153. package/package.json +4 -3
  154. package/skill/ghostrail/SKILL.md +145 -0
  155. package/templates/{fix-bugs-local → code-local}/README.md +3 -3
  156. package/templates/code-local/ghostrail.toml +44 -0
  157. package/templates/code-local/prompts/resolve-issue.md +31 -0
  158. package/templates/code-local/prompts/respond.md +27 -0
  159. package/templates/code-local/prompts/triage.md +51 -0
  160. package/templates/content-loop/ghostrail.toml +5 -2
  161. package/templates/content-loop/prompts/respond.md +25 -0
  162. package/templates/fix-bugs-local/ghostrail.toml +0 -37
  163. package/templates/fix-bugs-local/prompts/fix-bug.md +0 -27
@@ -0,0 +1,103 @@
1
+ /**
2
+ * Pure classification + composition for the ghostrail Claude profile: split a
3
+ * CLAUDE.md into sections, judge which belong in a headless factory run, flag
4
+ * interactive-only settings, and compose the factory CLAUDE.md + settings.
5
+ */
6
+ /** Substrings (case-insensitive) that mark a CLAUDE.md section as interactive-only. */
7
+ const INTERACTIVE_SIGNALS = [
8
+ "statusline",
9
+ "status line",
10
+ "keybinding",
11
+ "keyboard shortcut",
12
+ "slash command",
13
+ "/config",
14
+ "/fast",
15
+ " theme",
16
+ "type `!`",
17
+ "type !",
18
+ "interactive session",
19
+ "vs code",
20
+ "vscode",
21
+ "jetbrains",
22
+ "ide extension",
23
+ ];
24
+ /** settings.json keys that are interactive-only and are not carried into the profile. */
25
+ const INTERACTIVE_SETTINGS_KEYS = new Set([
26
+ "statusLine",
27
+ "theme",
28
+ "keybindings",
29
+ "spinnerTipsEnabled",
30
+ "autoUpdates",
31
+ "editorMode",
32
+ "verbose",
33
+ "preferredNotifChannel",
34
+ "messageIdleNotifThresholdMs",
35
+ ]);
36
+ /**
37
+ * Split a CLAUDE.md into sections at top-level (`#`/`##`) headings. Text before
38
+ * the first heading becomes a `(preamble)` section. Each section's `body`
39
+ * includes its heading line.
40
+ */
41
+ export function splitSections(content) {
42
+ const sections = [];
43
+ let heading;
44
+ let lines = [];
45
+ const flush = () => {
46
+ if (heading !== undefined) {
47
+ sections.push({ heading, body: lines.join("\n") });
48
+ }
49
+ else if (lines.join("\n").trim().length > 0) {
50
+ sections.push({ heading: "(preamble)", body: lines.join("\n") });
51
+ }
52
+ };
53
+ for (const line of content.split("\n")) {
54
+ if (/^#{1,2}\s/.test(line)) {
55
+ flush();
56
+ heading = line.replace(/^#{1,2}\s+/, "").trim();
57
+ lines = [line];
58
+ }
59
+ else {
60
+ lines.push(line);
61
+ }
62
+ }
63
+ flush();
64
+ return sections;
65
+ }
66
+ /** Judge each section keep/drop; a section is dropped if it names an interactive-only concern. */
67
+ export function classifyClaudeMdSections(sections) {
68
+ return sections.map((section) => {
69
+ const hay = `${section.heading}\n${section.body}`.toLowerCase();
70
+ const signal = INTERACTIVE_SIGNALS.find((s) => hay.includes(s));
71
+ return signal === undefined
72
+ ? { ...section, verdict: "keep" }
73
+ : { ...section, verdict: "drop", reason: `mentions "${signal.trim()}" (interactive-only)` };
74
+ });
75
+ }
76
+ /** Report which top-level settings keys are carried into the factory profile. */
77
+ export function classifySettingsKeys(settings) {
78
+ return Object.keys(settings).map((key) => INTERACTIVE_SETTINGS_KEYS.has(key)
79
+ ? { key, carried: false, reason: "interactive-only" }
80
+ : { key, carried: true });
81
+ }
82
+ const FACTORY_HEADER = `# Ghostrail factory profile
83
+
84
+ This CLAUDE.md is composed by ghostrail for headless factory runs. It is not your
85
+ interactive CLAUDE.md: it carries a curated subset of your global rules plus the
86
+ target repo's own project CLAUDE.md at run time. Regenerate it with
87
+ \`ghostrail claude-setup --write\`.`;
88
+ /**
89
+ * Compose the factory CLAUDE.md: a fixed header followed by the bodies of the
90
+ * kept sections, collapsing blank runs.
91
+ */
92
+ export function composeFactoryClaudeMd(sections, header = FACTORY_HEADER) {
93
+ const kept = sections.filter((s) => s.verdict === "keep").map((s) => s.body.trim());
94
+ return `${[header, ...kept]
95
+ .join("\n\n")
96
+ .replace(/\n{3,}/g, "\n\n")
97
+ .trim()}\n`;
98
+ }
99
+ /** The minimal, headless-safe factory settings.json (hooks land via the declarative block later). */
100
+ export function composeFactorySettings() {
101
+ return { hooks: {} };
102
+ }
103
+ //# sourceMappingURL=classify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classify.js","sourceRoot":"","sources":["../../src/claude-profile/classify.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAwBH,uFAAuF;AACvF,MAAM,mBAAmB,GAAG;IAC1B,YAAY;IACZ,aAAa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BAAsB,CACpC,QAAoC,EACpC,SAAiB,cAAc;IAE/B,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACpF,OAAO,GAAG,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;SACxB,IAAI,CAAC,MAAM,CAAC;SACZ,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC;SAC1B,IAAI,EAAE,IAAI,CAAC;AAChB,CAAC;AAED,qGAAqG;AACrG,MAAM,UAAU,sBAAsB;IACpC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;AACvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { type ClaudeMdSection, classifyClaudeMdSections, classifySettingsKeys, composeFactoryClaudeMd, composeFactorySettings, type Section, type SettingsKeyReport, splitSections, type Verdict, } from "./classify.js";
2
+ export { buildProposal, type SetupProposal, type SkillReport, writeProfile } from "./setup.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/claude-profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,aAAa,EACb,KAAK,OAAO,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { classifyClaudeMdSections, classifySettingsKeys, composeFactoryClaudeMd, composeFactorySettings, splitSections, } from "./classify.js";
2
+ export { buildProposal, writeProfile } from "./setup.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/claude-profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EAGtB,aAAa,GAEd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAwC,YAAY,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { type ClaudeMdSection, type SettingsKeyReport } from "./classify.js";
2
+ export interface SkillReport {
3
+ name: string;
4
+ pin: boolean;
5
+ }
6
+ /** A proposal for the factory Claude profile, derived from an existing ~/.claude. */
7
+ export interface SetupProposal {
8
+ sourceHome: string;
9
+ profileDir: string;
10
+ claudeMd: {
11
+ present: boolean;
12
+ sections: ClaudeMdSection[];
13
+ };
14
+ settings: {
15
+ present: boolean;
16
+ keys: SettingsKeyReport[];
17
+ };
18
+ skills: SkillReport[];
19
+ /** Skills requested via --pin that are not installed in the source ~/.claude/skills. */
20
+ missingPins: string[];
21
+ }
22
+ /**
23
+ * Inspect the source `~/.claude` and propose a factory profile: which CLAUDE.md
24
+ * sections to keep vs drop (interactive-only), which settings carry over, and
25
+ * which installed skills to pin. Pure inspection; writes nothing.
26
+ */
27
+ export declare function buildProposal(sourceHome: string, profileDir: string, pin: readonly string[]): Promise<SetupProposal>;
28
+ /**
29
+ * Write the profile the proposal describes: the composed factory CLAUDE.md (kept
30
+ * sections only), a minimal settings.json, and a copy of each pinned skill.
31
+ */
32
+ export declare function writeProfile(proposal: SetupProposal): Promise<void>;
33
+ //# sourceMappingURL=setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/claude-profile/setup.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAMvB,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;CACd;AAED,qFAAqF;AACrF,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC;IAC5D,QAAQ,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,iBAAiB,EAAE,CAAA;KAAE,CAAC;IAC1D,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,wFAAwF;IACxF,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAqBD;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,SAAS,MAAM,EAAE,GACrB,OAAO,CAAC,aAAa,CAAC,CAgCxB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBzE"}
@@ -0,0 +1,81 @@
1
+ import { cp, mkdir, readFile, readdir, writeFile } from "node:fs/promises";
2
+ import { join } from "node:path";
3
+ import { classifyClaudeMdSections, classifySettingsKeys, composeFactoryClaudeMd, composeFactorySettings, splitSections, } from "./classify.js";
4
+ async function readIfPresent(path) {
5
+ try {
6
+ return await readFile(path, "utf8");
7
+ }
8
+ catch {
9
+ return undefined;
10
+ }
11
+ }
12
+ async function listDirs(path) {
13
+ try {
14
+ return (await readdir(path, { withFileTypes: true }))
15
+ .filter((entry) => entry.isDirectory())
16
+ .map((entry) => entry.name)
17
+ .sort();
18
+ }
19
+ catch {
20
+ return [];
21
+ }
22
+ }
23
+ /**
24
+ * Inspect the source `~/.claude` and propose a factory profile: which CLAUDE.md
25
+ * sections to keep vs drop (interactive-only), which settings carry over, and
26
+ * which installed skills to pin. Pure inspection; writes nothing.
27
+ */
28
+ export async function buildProposal(sourceHome, profileDir, pin) {
29
+ const claudeDir = join(sourceHome, ".claude");
30
+ const mdRaw = await readIfPresent(join(claudeDir, "CLAUDE.md"));
31
+ const sections = mdRaw === undefined ? [] : classifyClaudeMdSections(splitSections(mdRaw));
32
+ const settingsRaw = await readIfPresent(join(claudeDir, "settings.json"));
33
+ let settingsKeys = [];
34
+ if (settingsRaw !== undefined) {
35
+ try {
36
+ const parsed = JSON.parse(settingsRaw);
37
+ if (parsed !== null && typeof parsed === "object") {
38
+ settingsKeys = classifySettingsKeys(parsed);
39
+ }
40
+ }
41
+ catch {
42
+ // malformed settings: report nothing
43
+ }
44
+ }
45
+ const installed = await listDirs(join(claudeDir, "skills"));
46
+ const pinSet = new Set(pin);
47
+ const skills = installed.map((name) => ({ name, pin: pinSet.has(name) }));
48
+ const missingPins = pin.filter((name) => !installed.includes(name));
49
+ return {
50
+ sourceHome,
51
+ profileDir,
52
+ claudeMd: { present: mdRaw !== undefined, sections },
53
+ settings: { present: settingsRaw !== undefined, keys: settingsKeys },
54
+ skills,
55
+ missingPins,
56
+ };
57
+ }
58
+ /**
59
+ * Write the profile the proposal describes: the composed factory CLAUDE.md (kept
60
+ * sections only), a minimal settings.json, and a copy of each pinned skill.
61
+ */
62
+ export async function writeProfile(proposal) {
63
+ const claudeDir = join(proposal.profileDir, ".claude");
64
+ await mkdir(claudeDir, { recursive: true });
65
+ await writeFile(join(claudeDir, "CLAUDE.md"), composeFactoryClaudeMd(proposal.claudeMd.sections), "utf8");
66
+ await writeFile(join(claudeDir, "settings.json"), `${JSON.stringify(composeFactorySettings(), null, 2)}\n`, "utf8");
67
+ const skillsDir = join(claudeDir, "skills");
68
+ await mkdir(skillsDir, { recursive: true });
69
+ for (const skill of proposal.skills) {
70
+ if (!skill.pin)
71
+ continue;
72
+ const source = join(proposal.sourceHome, ".claude", "skills", skill.name);
73
+ try {
74
+ await cp(source, join(skillsDir, skill.name), { recursive: true, force: true });
75
+ }
76
+ catch {
77
+ // a pinned-but-uncopyable skill is reported via missingPins; skip
78
+ }
79
+ }
80
+ }
81
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.js","sourceRoot":"","sources":["../../src/claude-profile/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAGL,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,GACd,MAAM,eAAe,CAAC;AAkBvB,KAAK,UAAU,aAAa,CAAC,IAAY;IACvC,IAAI,CAAC;QACH,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,QAAQ,CAAC,IAAY;IAClC,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;aAClD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;aACtC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;aAC1B,IAAI,EAAE,CAAC;IACZ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,UAAkB,EAClB,UAAkB,EAClB,GAAsB;IAEtB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAE9C,MAAM,KAAK,GAAG,MAAM,aAAa,CAA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,kEAAkE;QACpE,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { Scope } from "../vendor/skilltend/paths.js";
1
2
  export interface CommandStreams {
2
3
  out: (text: string) => void;
3
4
  err: (text: string) => void;
@@ -17,6 +18,20 @@ interface CommandEnv {
17
18
  }
18
19
  /** `ghostrail run`: drain eligible work once. */
19
20
  export declare function cmdRun(argv: readonly string[], streams: CommandStreams, env?: CommandEnv, cwd?: string): Promise<number>;
21
+ interface WatchFlags {
22
+ intervalMs: number;
23
+ intervalLabel: string;
24
+ maxTicks?: number;
25
+ }
26
+ /**
27
+ * Parse `ghostrail watch` options: `--interval`/`-i <duration>` (default `60s`)
28
+ * and an optional `--max-ticks <n>`. Returns undefined for a malformed interval.
29
+ */
30
+ export declare function parseWatchFlags(argv: readonly string[]): WatchFlags | undefined;
31
+ /** `ghostrail watch`: run ticks on an interval until interrupted (no cron needed). */
32
+ export declare function cmdWatch(argv: readonly string[], streams: CommandStreams, env?: CommandEnv, cwd?: string): Promise<number>;
33
+ /** `ghostrail triage`: decompose large issues in the triage queue into sub-issues. */
34
+ export declare function cmdTriage(argv: readonly string[], streams: CommandStreams, env?: CommandEnv, cwd?: string): Promise<number>;
20
35
  /** `ghostrail respond`: fold new human PR comments back into their branches. */
21
36
  export declare function cmdRespond(argv: readonly string[], streams: CommandStreams, env?: CommandEnv, cwd?: string): Promise<number>;
22
37
  interface BoardFlags {
@@ -32,8 +47,58 @@ export declare function cmdBoard(argv: readonly string[], streams: CommandStream
32
47
  /** `ghostrail artifacts`: list the shared artifacts available in the global store. */
33
48
  export declare function cmdArtifacts(argv: readonly string[], streams: CommandStreams, env?: CommandEnv): Promise<number>;
34
49
  /** The quickstart templates bundled with the package. */
35
- export declare const TEMPLATES: readonly ["fix-bugs-local", "content-loop"];
36
- /** `ghostrail init <template>`: scaffold a repo from a quickstart template. */
50
+ export declare const TEMPLATES: readonly ["code-local", "content-loop"];
51
+ /**
52
+ * `ghostrail init <template> [--repo <path>] [--force]`: scaffold `ghostrail.toml`
53
+ * and `prompts/` from a quickstart template. Safe for a fresh OR an existing repo:
54
+ * existing files are left untouched (skipped) unless `--force` is given.
55
+ */
37
56
  export declare function cmdInit(argv: readonly string[], streams: CommandStreams, cwd?: string): Promise<number>;
57
+ interface SkillFlags {
58
+ scope: Scope;
59
+ agents: string[];
60
+ link: boolean;
61
+ force: boolean;
62
+ check: boolean;
63
+ uninstall: boolean;
64
+ yes: boolean;
65
+ }
66
+ /**
67
+ * Parse `ghostrail skill` options. Default scope is `global` (the user's own
68
+ * agent config), because the skill drives ghostrail wherever you are; `--project`
69
+ * commits it alongside a repo so collaborators share it.
70
+ */
71
+ export declare function parseSkillFlags(argv: readonly string[]): SkillFlags;
72
+ /**
73
+ * `ghostrail skill [uninstall] [--project] [--agent a,b] [--link] [--check] [--force] [--yes]`:
74
+ * install or update the `/ghostrail` agent skill for the coding agents configured
75
+ * on this machine. Idempotent — re-running when nothing changed is a no-op.
76
+ */
77
+ export declare function cmdSkill(argv: readonly string[], streams: CommandStreams, env?: CommandEnv, cwd?: string): Promise<number>;
78
+ /**
79
+ * `ghostrail install`: put the CLI permanently on PATH, then install the skill.
80
+ * The two steps are independent — a failed global install still leaves you with a
81
+ * working skill, but the command exits non-zero so the failure is visible.
82
+ *
83
+ * Pins to the running version rather than `latest`, so `npx ghostrail@x.y.z
84
+ * install` gives you exactly x.y.z.
85
+ */
86
+ export declare function cmdInstall(argv: readonly string[], streams: CommandStreams, env?: CommandEnv, cwd?: string): Promise<number>;
87
+ /**
88
+ * `ghostrail self-update`: upgrade the CLI to the latest published version, then
89
+ * install that version's skill.
90
+ *
91
+ * The skill step is delegated to the NEWLY installed binary on purpose. This
92
+ * process still holds the old bundled SKILL.md, so doing it in-process would
93
+ * upgrade the CLI and then write the previous skill back over it.
94
+ */
95
+ export declare function cmdSelfUpdate(argv: readonly string[], streams: CommandStreams): Promise<number>;
96
+ /**
97
+ * `ghostrail claude-setup`: inspect the user's ~/.claude and propose the factory
98
+ * Claude profile (which CLAUDE.md sections to keep vs drop, which settings are
99
+ * interactive-only, which skills to pin). Prints the proposal; `--write` composes
100
+ * the profile.
101
+ */
102
+ export declare function cmdClaudeSetup(argv: readonly string[], streams: CommandStreams, env?: CommandEnv): Promise<number>;
38
103
  export {};
39
104
  //# sourceMappingURL=commands.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/cli/commands.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,EAAE,YAAY,GAAG,YAAY,CAc/F;AAED,UAAU,UAAU;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC;AAkDD,iDAAiD;AACjD,wBAAsB,MAAM,CAC1B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE,cAAc,EACvB,GAAG,GAAE,UAAwB,EAC7B,GAAG,SAAgB,GAClB,OAAO,CAAC,MAAM,CAAC,CAyBjB;AAED,gFAAgF;AAChF,wBAAsB,UAAU,CAC9B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE,cAAc,EACvB,GAAG,GAAE,UAAwB,EAC7B,GAAG,SAAgB,GAClB,OAAO,CAAC,MAAM,CAAC,CAwBjB;AAED,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC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