@monoes/monomindcli 2.16.6 → 2.16.8

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 (193) hide show
  1. package/.claude/agents/github/monoswarm-multi-repo.md +2 -2
  2. package/.claude/agents/github/sync-coordinator.md +1 -1
  3. package/.claude/commands/agents/agent-capabilities.md +2 -5
  4. package/.claude/commands/coordination/task-orchestrate.md +0 -1
  5. package/.claude/commands/hooks/post-edit.md +1 -1
  6. package/.claude/commands/hooks/post-task.md +2 -3
  7. package/.claude/commands/hooks/pre-edit.md +0 -2
  8. package/.claude/commands/hooks/session-end.md +4 -4
  9. package/.claude/commands/monoswarm/consensus.md +1 -1
  10. package/.claude/commands/monoswarm/memory.md +1 -1
  11. package/.claude/commands/monoswarm/monoswarm.md +1 -1
  12. package/.claude/commands/monoswarm/spawn.md +1 -1
  13. package/.claude/commands/optimization/auto-topology.md +6 -9
  14. package/.claude/commands/optimization/performance-optimize.md +23 -39
  15. package/.claude/helpers/build-skill-registry.cjs +4 -3
  16. package/.claude/helpers/pick-rank.cjs +118 -9
  17. package/dist/src/catalog/projection.d.ts.map +1 -1
  18. package/dist/src/catalog/projection.js +2 -1
  19. package/dist/src/catalog/projection.js.map +1 -1
  20. package/dist/src/commands/agent-exec.d.ts.map +1 -1
  21. package/dist/src/commands/agent-exec.js +10 -1
  22. package/dist/src/commands/agent-exec.js.map +1 -1
  23. package/dist/src/commands/cleanup-plan.js +1 -1
  24. package/dist/src/commands/cleanup-plan.js.map +1 -1
  25. package/dist/src/commands/doctor.js +1 -1
  26. package/dist/src/commands/doctor.js.map +1 -1
  27. package/dist/src/commands/hooks-core-commands.d.ts.map +1 -1
  28. package/dist/src/commands/hooks-core-commands.js +10 -42
  29. package/dist/src/commands/hooks-core-commands.js.map +1 -1
  30. package/dist/src/commands/hooks-extended-commands.d.ts.map +1 -1
  31. package/dist/src/commands/hooks-extended-commands.js +9 -5
  32. package/dist/src/commands/hooks-extended-commands.js.map +1 -1
  33. package/dist/src/commands/hooks-routing-commands.d.ts.map +1 -1
  34. package/dist/src/commands/hooks-routing-commands.js +13 -24
  35. package/dist/src/commands/hooks-routing-commands.js.map +1 -1
  36. package/dist/src/commands/hooks-workers.d.ts.map +1 -1
  37. package/dist/src/commands/hooks-workers.js +8 -8
  38. package/dist/src/commands/hooks-workers.js.map +1 -1
  39. package/dist/src/commands/hooks.d.ts.map +1 -1
  40. package/dist/src/commands/hooks.js +9 -16
  41. package/dist/src/commands/hooks.js.map +1 -1
  42. package/dist/src/commands/monograph.d.ts.map +1 -1
  43. package/dist/src/commands/monograph.js +24 -2
  44. package/dist/src/commands/monograph.js.map +1 -1
  45. package/dist/src/commands/org.d.ts.map +1 -1
  46. package/dist/src/commands/org.js +29 -1
  47. package/dist/src/commands/org.js.map +1 -1
  48. package/dist/src/commands/platforms.js +2 -1
  49. package/dist/src/commands/platforms.js.map +1 -1
  50. package/dist/src/init/asset-maps.d.ts +46 -0
  51. package/dist/src/init/asset-maps.d.ts.map +1 -0
  52. package/dist/src/init/asset-maps.js +177 -0
  53. package/dist/src/init/asset-maps.js.map +1 -0
  54. package/dist/src/init/copy-assets.d.ts.map +1 -1
  55. package/dist/src/init/copy-assets.js +4 -1
  56. package/dist/src/init/copy-assets.js.map +1 -1
  57. package/dist/src/init/executor.d.ts.map +1 -1
  58. package/dist/src/init/executor.js +5 -3
  59. package/dist/src/init/executor.js.map +1 -1
  60. package/dist/src/init/file-guard.d.ts +6 -0
  61. package/dist/src/init/file-guard.d.ts.map +1 -1
  62. package/dist/src/init/file-guard.js +22 -8
  63. package/dist/src/init/file-guard.js.map +1 -1
  64. package/dist/src/init/fs-helpers.d.ts +63 -0
  65. package/dist/src/init/fs-helpers.d.ts.map +1 -0
  66. package/dist/src/init/fs-helpers.js +198 -0
  67. package/dist/src/init/fs-helpers.js.map +1 -0
  68. package/dist/src/init/init-manifest.d.ts +106 -0
  69. package/dist/src/init/init-manifest.d.ts.map +1 -0
  70. package/dist/src/init/init-manifest.js +222 -0
  71. package/dist/src/init/init-manifest.js.map +1 -0
  72. package/dist/src/init/shared.d.ts +3 -201
  73. package/dist/src/init/shared.d.ts.map +1 -1
  74. package/dist/src/init/shared.js +7 -573
  75. package/dist/src/init/shared.js.map +1 -1
  76. package/dist/src/init/upgrade.d.ts.map +1 -1
  77. package/dist/src/init/upgrade.js +3 -1
  78. package/dist/src/init/upgrade.js.map +1 -1
  79. package/dist/src/init/write-antigravity.d.ts.map +1 -1
  80. package/dist/src/init/write-antigravity.js +2 -1
  81. package/dist/src/init/write-antigravity.js.map +1 -1
  82. package/dist/src/init/write-capabilities.js +2 -1
  83. package/dist/src/init/write-capabilities.js.map +1 -1
  84. package/dist/src/init/write-claude.d.ts +3 -5
  85. package/dist/src/init/write-claude.d.ts.map +1 -1
  86. package/dist/src/init/write-claude.js +6 -210
  87. package/dist/src/init/write-claude.js.map +1 -1
  88. package/dist/src/init/write-codex.js +1 -1
  89. package/dist/src/init/write-codex.js.map +1 -1
  90. package/dist/src/init/write-kimicode.d.ts.map +1 -1
  91. package/dist/src/init/write-kimicode.js +6 -2
  92. package/dist/src/init/write-kimicode.js.map +1 -1
  93. package/dist/src/init/write-opencode.d.ts.map +1 -1
  94. package/dist/src/init/write-opencode.js +5 -4
  95. package/dist/src/init/write-opencode.js.map +1 -1
  96. package/dist/src/init/write-runtime-config.d.ts.map +1 -1
  97. package/dist/src/init/write-runtime-config.js +2 -1
  98. package/dist/src/init/write-runtime-config.js.map +1 -1
  99. package/dist/src/init/write-settings.d.ts +9 -0
  100. package/dist/src/init/write-settings.d.ts.map +1 -0
  101. package/dist/src/init/write-settings.js +217 -0
  102. package/dist/src/init/write-settings.js.map +1 -0
  103. package/dist/src/mcp-tools/hooks-embedding.d.ts +2 -1
  104. package/dist/src/mcp-tools/hooks-embedding.d.ts.map +1 -1
  105. package/dist/src/mcp-tools/hooks-embedding.js +3 -0
  106. package/dist/src/mcp-tools/hooks-embedding.js.map +1 -1
  107. package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
  108. package/dist/src/mcp-tools/hooks-intelligence.js +11 -8
  109. package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
  110. package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
  111. package/dist/src/mcp-tools/hooks-routing.js +31 -38
  112. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  113. package/dist/src/mcp-tools/platforms-tools.js +1 -1
  114. package/dist/src/mcp-tools/platforms-tools.js.map +1 -1
  115. package/dist/src/memory/memory-bridge.d.ts +13 -0
  116. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  117. package/dist/src/memory/memory-bridge.js +68 -20
  118. package/dist/src/memory/memory-bridge.js.map +1 -1
  119. package/dist/src/monovector/command-outcomes.d.ts +2 -1
  120. package/dist/src/monovector/command-outcomes.d.ts.map +1 -1
  121. package/dist/src/monovector/command-outcomes.js +2 -2
  122. package/dist/src/monovector/command-outcomes.js.map +1 -1
  123. package/dist/src/monovector/model-outcomes.d.ts +4 -2
  124. package/dist/src/monovector/model-outcomes.d.ts.map +1 -1
  125. package/dist/src/monovector/model-outcomes.js +11 -3
  126. package/dist/src/monovector/model-outcomes.js.map +1 -1
  127. package/dist/src/orgrt/approvals.d.ts +25 -0
  128. package/dist/src/orgrt/approvals.d.ts.map +1 -1
  129. package/dist/src/orgrt/approvals.js +51 -2
  130. package/dist/src/orgrt/approvals.js.map +1 -1
  131. package/dist/src/orgrt/budget-closure.d.ts +39 -0
  132. package/dist/src/orgrt/budget-closure.d.ts.map +1 -0
  133. package/dist/src/orgrt/budget-closure.js +380 -0
  134. package/dist/src/orgrt/budget-closure.js.map +1 -0
  135. package/dist/src/orgrt/daemon.d.ts +21 -2
  136. package/dist/src/orgrt/daemon.d.ts.map +1 -1
  137. package/dist/src/orgrt/daemon.js +39 -45
  138. package/dist/src/orgrt/daemon.js.map +1 -1
  139. package/dist/src/orgrt/decisions.d.ts +8 -0
  140. package/dist/src/orgrt/decisions.d.ts.map +1 -1
  141. package/dist/src/orgrt/decisions.js +7 -1
  142. package/dist/src/orgrt/decisions.js.map +1 -1
  143. package/dist/src/orgrt/policy.d.ts +6 -0
  144. package/dist/src/orgrt/policy.d.ts.map +1 -1
  145. package/dist/src/orgrt/policy.js +5 -0
  146. package/dist/src/orgrt/policy.js.map +1 -1
  147. package/dist/src/orgrt/runner-registry.d.ts +11 -2
  148. package/dist/src/orgrt/runner-registry.d.ts.map +1 -1
  149. package/dist/src/orgrt/runner-registry.js +11 -34
  150. package/dist/src/orgrt/runner-registry.js.map +1 -1
  151. package/dist/src/orgrt/task-dag.d.ts +13 -0
  152. package/dist/src/orgrt/task-dag.d.ts.map +1 -1
  153. package/dist/src/orgrt/task-dag.js +29 -0
  154. package/dist/src/orgrt/task-dag.js.map +1 -1
  155. package/dist/src/orgrt/version-probe.d.ts +43 -0
  156. package/dist/src/orgrt/version-probe.d.ts.map +1 -0
  157. package/dist/src/orgrt/version-probe.js +136 -0
  158. package/dist/src/orgrt/version-probe.js.map +1 -0
  159. package/dist/src/platform-adapters/locations.d.ts +12 -0
  160. package/dist/src/platform-adapters/locations.d.ts.map +1 -0
  161. package/dist/src/platform-adapters/locations.js +57 -0
  162. package/dist/src/platform-adapters/locations.js.map +1 -0
  163. package/dist/src/platform-adapters/merge.d.ts +2 -0
  164. package/dist/src/platform-adapters/merge.d.ts.map +1 -1
  165. package/dist/src/platform-adapters/merge.js +7 -0
  166. package/dist/src/platform-adapters/merge.js.map +1 -1
  167. package/dist/src/platform-adapters/migration.js +1 -1
  168. package/dist/src/platform-adapters/migration.js.map +1 -1
  169. package/dist/src/platform-adapters/mutation.js +1 -1
  170. package/dist/src/platform-adapters/mutation.js.map +1 -1
  171. package/dist/src/platform-adapters/operations.d.ts +3 -16
  172. package/dist/src/platform-adapters/operations.d.ts.map +1 -1
  173. package/dist/src/platform-adapters/operations.js +25 -168
  174. package/dist/src/platform-adapters/operations.js.map +1 -1
  175. package/dist/src/platform-adapters/owned-files.js +1 -1
  176. package/dist/src/platform-adapters/owned-files.js.map +1 -1
  177. package/dist/src/platform-adapters/platform-doctor.d.ts +9 -0
  178. package/dist/src/platform-adapters/platform-doctor.d.ts.map +1 -0
  179. package/dist/src/platform-adapters/platform-doctor.js +117 -0
  180. package/dist/src/platform-adapters/platform-doctor.js.map +1 -0
  181. package/dist/src/platform-adapters/shared-surface.d.ts.map +1 -1
  182. package/dist/src/platform-adapters/shared-surface.js +2 -1
  183. package/dist/src/platform-adapters/shared-surface.js.map +1 -1
  184. package/dist/src/platform-adapters/types.d.ts +14 -1
  185. package/dist/src/platform-adapters/types.d.ts.map +1 -1
  186. package/dist/src/protocol-capabilities.d.ts +4 -1
  187. package/dist/src/protocol-capabilities.d.ts.map +1 -1
  188. package/dist/src/protocol-capabilities.js +4 -0
  189. package/dist/src/protocol-capabilities.js.map +1 -1
  190. package/dist/tsconfig.tsbuildinfo +1 -1
  191. package/org-skills/api-designer/SKILL.md +1 -1
  192. package/org-skills/code-documenter/SKILL.md +1 -1
  193. package/package.json +3 -3
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import type { Command } from '../types.js';
5
5
  import type { WorkerRow } from './generated-counts.js';
6
- import type { InitResult } from './types.js';
7
6
  export declare const MAX_EXEC_FILE_BYTES: number;
8
7
  /**
9
8
  * i-041/i-117: the generated CLAUDE.md / CAPABILITIES.md CLI-commands table
@@ -44,187 +43,6 @@ export declare function workerTableRows(rows: WorkerRow[]): string;
44
43
  * rather than re-implementing its own resolver.
45
44
  */
46
45
  export declare function _isOptionalPackageResolvable(pkg: string): boolean;
47
- /**
48
- * Atomic write helper — writes to a sibling .tmp file then renames into place.
49
- * SIGINT or crash during a partial write would otherwise corrupt user-critical
50
- * files (.claude/settings.json, .mcp.json, helper scripts that Claude Code
51
- * executes on every hook). Without atomicity a half-written settings.json or
52
- * a zero-byte hook-handler.cjs disables Claude Code's protections silently.
53
- */
54
- export declare function atomicWriteFile(target: string, content: string | Buffer, encoding?: BufferEncoding): void;
55
- /**
56
- * Write a generated file that embeds a `Generated: <ISO timestamp>` line,
57
- * skipping the write entirely when that stamp is the only thing that would
58
- * change. Otherwise every `init --force` rewrote these files with a fresh
59
- * timestamp and left the repository dirty by exactly two files, for
60
- * information nobody can act on. Skipping the write (rather than reusing the
61
- * old stamp) keeps the mtime stable too, and the stamp keeps its meaning:
62
- * when this content was generated.
63
- */
64
- export declare function writeGeneratedFile(target: string, content: string): void;
65
- /**
66
- * Guard for the write-opencode.ts / write-kimicode.ts converters, which read
67
- * `.claude/{agents,commands,skills}` and write the converted result into what
68
- * is expected to be a separate platform directory (`.opencode/...`,
69
- * `.kimi-code/...`). If that destination has been symlinked back into
70
- * `.claude/` (observed live: a committed `.opencode/command -> ../.claude/commands`
71
- * symlink), the atomic write-then-rename in `atomicWriteFile` resolves through
72
- * the symlink and lands the converted, flattened, field-injected output
73
- * straight back in the Claude source tree it was just read from — silently
74
- * corrupting hand-authored agent/skill/command files and resurrecting
75
- * "deleted" flattened command duplicates on every `--force` run.
76
- *
77
- * Checked once per destination directory (not per file) before its copy loop.
78
- * Returns false and records one `result.errors` entry when `destDir` resolves
79
- * inside `claudeDir`; the caller should skip the whole loop rather than write
80
- * file-by-file into the wrong place.
81
- */
82
- export declare function isSafeConversionTarget(destDir: string, claudeDir: string, result: InitResult, label: string): boolean;
83
- /**
84
- * Skills to copy based on configuration
85
- */
86
- export declare const SKILLS_MAP: Record<string, string[]>;
87
- /**
88
- * Commands to copy based on configuration
89
- */
90
- export declare const COMMANDS_MAP: Record<string, string[]>;
91
- /**
92
- * Agents to copy based on configuration
93
- */
94
- export declare const AGENTS_MAP: Record<string, string[]>;
95
- /**
96
- * Directory structure to create
97
- */
98
- export declare const DIRECTORIES: {
99
- claude: string[];
100
- runtime: string[];
101
- };
102
- /**
103
- * Provenance manifest for generated .claude content.
104
- *
105
- * init used to "clean stale" entries by deleting every name under
106
- * .claude/{skills,commands,agents} that was absent from the current version's
107
- * SKILLS_MAP/COMMANDS_MAP/AGENTS_MAP. Every user-authored command and skill is
108
- * absent from those maps, so that pass deleted user content on the very first
109
- * run — unrecoverable data loss.
110
- *
111
- * The manifest records exactly which entries *this tool* wrote, so the stale
112
- * sweep can be restricted to those. Anything init did not write is never
113
- * removed. Projects initialised by an older version have no manifest, so their
114
- * first run under the fix deletes nothing and seeds the manifest instead;
115
- * stale generated content may survive one extra run, which is the correct
116
- * trade (preserving stale generated content is recoverable, deleting user
117
- * content is not).
118
- */
119
- export declare const INIT_MANIFEST_REL: string;
120
- /**
121
- * One retired entry's provenance (o-38): a name the manifest recorded that
122
- * this version no longer ships, moved to `movedTo` instead of deleted.
123
- * Appended-only — a later run's `recordGenerated` never drops this array, so
124
- * the run after next can still tell a user what was retired and where it went.
125
- */
126
- export interface RetiredEntry {
127
- /** The manifest section for a `.claude`/`.kimi-code` entry (an
128
- * `InitManifestSection` value), or a descriptive label for a mirror
129
- * retirement (e.g. `gemini-skills`) — mirrors have no manifest section
130
- * of their own, so this is an audit-trail label, not a lookup key. */
131
- section: string;
132
- name: string;
133
- /** Path (relative to targetDir) the entry was moved to. */
134
- movedTo: string;
135
- /** ISO timestamp of the retirement. */
136
- at: string;
137
- }
138
- export interface InitManifest {
139
- version: number;
140
- /** Entry names directly under .claude/skills that init generated. */
141
- skills: string[];
142
- /** Entry names directly under .claude/commands that init generated. */
143
- commands: string[];
144
- /** Entry names (category dirs) directly under .claude/agents that init generated. */
145
- agents: string[];
146
- /** Directory names directly under .kimi-code/skills that init generated. */
147
- kimiSkills: string[];
148
- /** File names directly under .kimi-code/plugin/commands that init generated. */
149
- kimiPluginCommands: string[];
150
- /** Directory names directly under .opencode/skills that init generated.
151
- * Absent in manifests written before this field existed; normalised to
152
- * an empty list on read, which the sweep treats as "delete nothing". */
153
- opencodeSkills: string[];
154
- /** Every entry ever retired (o-38) — see `RetiredEntry`. Absent on a
155
- * manifest written before this field existed; treated as empty. */
156
- retired?: RetiredEntry[];
157
- /** sha256 of each shipped file as init last left it, keyed by its
158
- * project-relative path — how a later run tells a user edit from an
159
- * untouched install (see file-guard.ts). */
160
- files?: Record<string, string>;
161
- /** sha256 of each managed block's body as init last wrote it, keyed
162
- * `<file>#<marker>` (see file-guard.ts). */
163
- blocks?: Record<string, string>;
164
- }
165
- export type InitManifestSection = 'skills' | 'commands' | 'agents' | 'kimiSkills' | 'kimiPluginCommands' | 'opencodeSkills';
166
- /**
167
- * Read the provenance manifest. Returns null when absent or unreadable —
168
- * callers must treat that as "provenance unknown", i.e. delete nothing.
169
- */
170
- export declare function readInitManifest(targetDir: string): InitManifest | null;
171
- /** Replace the manifest's `files` or `blocks` hash map, keeping every other
172
- * field (see file-guard.ts). */
173
- export declare function recordManifestHashes(targetDir: string, field: 'files' | 'blocks', hashes: Record<string, string>): void;
174
- /**
175
- * Names init previously generated in one section. Empty set when no manifest
176
- * exists — which makes the stale sweep a no-op rather than a delete-everything.
177
- */
178
- export declare function previouslyGenerated(targetDir: string, section: InitManifestSection): Set<string>;
179
- /**
180
- * Record the entries init just wrote for one section, merging into any
181
- * existing manifest so a partial run (e.g. --only-claude, or a section whose
182
- * source dir was missing) never drops provenance for the other sections.
183
- */
184
- export declare function recordGenerated(targetDir: string, section: InitManifestSection, entries: string[]): void;
185
- /**
186
- * Retire a generated entry instead of deleting it (o-38): a name the
187
- * manifest recorded that this version no longer ships anywhere is moved to
188
- * `.monomind/backups/<run-timestamp>-<pid>/retired/<label>/` rather than
189
- * `rmSync`-ed. The manifest's granularity is per-top-level-entry — "did init
190
- * ever generate this name" — not per-file, so a stale-sweep candidate can
191
- * still hold user files added since (a note beside a retired skill, e.g.)
192
- * that must survive byte-identical.
193
- *
194
- * `label` doubles as the retirement's section plus display name, e.g.
195
- * `skills/my-retired-skill` — the first path segment is an
196
- * `InitManifestSection` value for the five real call sites, or a
197
- * descriptive mirror label (`gemini-skills`, `agents-skills`,
198
- * `opencode-skills`) for a mirror copy that turned out to hold user-added
199
- * content (see `copySkills` / `writeOpencodeFiles`).
200
- *
201
- * On any failure, the entry is LEFT IN PLACE and a warning is recorded in
202
- * `result.errors` — this must never fall back to deleting; a fix that
203
- * deletes when the move fails is the original bug with extra steps.
204
- */
205
- export declare function retireGeneratedEntry(targetDir: string, label: string, stalePath: string, result: InitResult): void;
206
- /**
207
- * Every skill name this version ships, across ALL `SKILLS_MAP` sections —
208
- * unlike the run's `skillsToCopy` selection (filtered by
209
- * `options.skills.{core,memory,github,browser,advanced,all}`), this ignores
210
- * what the user asked for THIS run entirely. o-38: the stale sweep must ask
211
- * "does this version still ship X" and never "did the user select X this
212
- * run" — the two questions were conflated, so `--minimal` (a documented
213
- * flag, no upgrade required) deleted every previously-installed skill
214
- * outside the minimal set, user files inside included. `mastermind-*`
215
- * expands against `sourceSkillsDir` exactly as `copySkills`'s own expansion
216
- * does — the two must agree, or a name real to one and not the other would
217
- * either wrongly survive as "shipped" or wrongly retire as "gone".
218
- */
219
- export declare function allShippedSkills(sourceSkillsDir: string): Set<string>;
220
- /** Every command name this version ships, across ALL `COMMANDS_MAP`
221
- * sections — see `allShippedSkills`'s doc comment; `COMMANDS_MAP` has no
222
- * glob entries, so this is a plain flatten. */
223
- export declare function allShippedCommands(): Set<string>;
224
- /** Every agent category name this version ships, across ALL `AGENTS_MAP`
225
- * sections — see `allShippedSkills`'s doc comment; `AGENTS_MAP` has no
226
- * glob entries, so this is a plain flatten. */
227
- export declare function allShippedAgents(): Set<string>;
228
46
  /**
229
47
  * Find source helpers directory.
230
48
  * Validates that the directory contains hook-handler.cjs AND its required
@@ -254,24 +72,8 @@ export declare function findSourceClaudeDir(sourceBaseDir?: string): string | nu
254
72
  * Find source directory for skills/commands/agents
255
73
  */
256
74
  export declare function findSourceDir(type: 'skills' | 'commands' | 'agents', sourceBaseDir?: string): string | null;
257
- /** Relative file paths under `dir` (files only). Used by every o-38 mirror
258
- * sweep (copySkills's `.gemini`/`.agents`, writeOpencodeFiles's
259
- * `.opencode/skills`) to tell "content the source regenerated" from "a file
260
- * someone added directly inside the mirror" (o-38 §2·0b). */
261
- export declare function listFilesRecursive(dir: string): Set<string>;
262
- /**
263
- * Copy directory recursively
264
- */
265
- export declare function copyDirRecursive(src: string, dest: string): void;
266
- /**
267
- * Count files with extension in directory
268
- */
269
- export declare function countFiles(dir: string, ext: string): number;
270
- /** Recursively collect .md files under dir, returned relative to dir. */
271
- export declare function walkMdFiles(dir: string): string[];
272
- /** Skip READMEs and other non-definition markdown. */
273
- export declare function isLikelyUserFile(rel: string): boolean;
274
- /** Pull the `name:` scalar from a frontmatter block (best-effort). */
275
- export declare function extractFmName(md: string): string | null;
75
+ export * from './asset-maps.js';
76
+ export * from './fs-helpers.js';
77
+ export * from './init-manifest.js';
276
78
  export { mergeGeneratedBlock } from './managed-block.js';
277
79
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/init/shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAM7C,eAAO,MAAM,mBAAmB,QAAmB,CAAC;AAEpD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAExD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,CAEzD;AAGD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAOjE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,QAAQ,CAAC,EAAE,cAAc,GACxB,IAAI,CAUN;AAaD;;;;;;;;GAQG;AACH,wBAA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