@monoes/monomindcli 2.16.6 → 2.16.7
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/.claude/commands/agents/agent-capabilities.md +2 -5
- package/.claude/commands/coordination/task-orchestrate.md +0 -1
- package/.claude/commands/hooks/post-edit.md +1 -1
- package/.claude/commands/hooks/post-task.md +2 -3
- package/.claude/commands/hooks/pre-edit.md +0 -2
- package/.claude/commands/hooks/session-end.md +4 -4
- package/.claude/commands/monoswarm/consensus.md +1 -1
- package/.claude/commands/monoswarm/memory.md +1 -1
- package/.claude/commands/monoswarm/monoswarm.md +1 -1
- package/.claude/commands/monoswarm/spawn.md +1 -1
- package/.claude/commands/optimization/auto-topology.md +6 -9
- package/.claude/commands/optimization/performance-optimize.md +23 -39
- package/.claude/helpers/pick-rank.cjs +118 -9
- package/dist/src/catalog/projection.d.ts.map +1 -1
- package/dist/src/catalog/projection.js +2 -1
- package/dist/src/catalog/projection.js.map +1 -1
- package/dist/src/commands/agent-exec.d.ts.map +1 -1
- package/dist/src/commands/agent-exec.js +10 -1
- package/dist/src/commands/agent-exec.js.map +1 -1
- package/dist/src/commands/cleanup-plan.js +1 -1
- package/dist/src/commands/cleanup-plan.js.map +1 -1
- package/dist/src/commands/doctor.js +1 -1
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/hooks-core-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-core-commands.js +10 -42
- package/dist/src/commands/hooks-core-commands.js.map +1 -1
- package/dist/src/commands/hooks-extended-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-extended-commands.js +3 -4
- package/dist/src/commands/hooks-extended-commands.js.map +1 -1
- package/dist/src/commands/hooks-routing-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-routing-commands.js +13 -24
- package/dist/src/commands/hooks-routing-commands.js.map +1 -1
- package/dist/src/commands/hooks-workers.d.ts.map +1 -1
- package/dist/src/commands/hooks-workers.js +0 -5
- package/dist/src/commands/hooks-workers.js.map +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +9 -16
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/monograph.d.ts.map +1 -1
- package/dist/src/commands/monograph.js +24 -2
- package/dist/src/commands/monograph.js.map +1 -1
- package/dist/src/commands/org.d.ts.map +1 -1
- package/dist/src/commands/org.js +29 -1
- package/dist/src/commands/org.js.map +1 -1
- package/dist/src/commands/platforms.js +2 -1
- package/dist/src/commands/platforms.js.map +1 -1
- package/dist/src/init/asset-maps.d.ts +46 -0
- package/dist/src/init/asset-maps.d.ts.map +1 -0
- package/dist/src/init/asset-maps.js +177 -0
- package/dist/src/init/asset-maps.js.map +1 -0
- package/dist/src/init/copy-assets.d.ts.map +1 -1
- package/dist/src/init/copy-assets.js +4 -1
- package/dist/src/init/copy-assets.js.map +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +5 -3
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/file-guard.d.ts +6 -0
- package/dist/src/init/file-guard.d.ts.map +1 -1
- package/dist/src/init/file-guard.js +22 -8
- package/dist/src/init/file-guard.js.map +1 -1
- package/dist/src/init/fs-helpers.d.ts +63 -0
- package/dist/src/init/fs-helpers.d.ts.map +1 -0
- package/dist/src/init/fs-helpers.js +198 -0
- package/dist/src/init/fs-helpers.js.map +1 -0
- package/dist/src/init/init-manifest.d.ts +106 -0
- package/dist/src/init/init-manifest.d.ts.map +1 -0
- package/dist/src/init/init-manifest.js +222 -0
- package/dist/src/init/init-manifest.js.map +1 -0
- package/dist/src/init/shared.d.ts +3 -201
- package/dist/src/init/shared.d.ts.map +1 -1
- package/dist/src/init/shared.js +7 -573
- package/dist/src/init/shared.js.map +1 -1
- package/dist/src/init/upgrade.d.ts.map +1 -1
- package/dist/src/init/upgrade.js +3 -1
- package/dist/src/init/upgrade.js.map +1 -1
- package/dist/src/init/write-antigravity.d.ts.map +1 -1
- package/dist/src/init/write-antigravity.js +2 -1
- package/dist/src/init/write-antigravity.js.map +1 -1
- package/dist/src/init/write-capabilities.js +2 -1
- package/dist/src/init/write-capabilities.js.map +1 -1
- package/dist/src/init/write-claude.d.ts +3 -5
- package/dist/src/init/write-claude.d.ts.map +1 -1
- package/dist/src/init/write-claude.js +6 -210
- package/dist/src/init/write-claude.js.map +1 -1
- package/dist/src/init/write-codex.js +1 -1
- package/dist/src/init/write-codex.js.map +1 -1
- package/dist/src/init/write-kimicode.d.ts.map +1 -1
- package/dist/src/init/write-kimicode.js +6 -2
- package/dist/src/init/write-kimicode.js.map +1 -1
- package/dist/src/init/write-opencode.d.ts.map +1 -1
- package/dist/src/init/write-opencode.js +5 -4
- package/dist/src/init/write-opencode.js.map +1 -1
- package/dist/src/init/write-runtime-config.d.ts.map +1 -1
- package/dist/src/init/write-runtime-config.js +2 -1
- package/dist/src/init/write-runtime-config.js.map +1 -1
- package/dist/src/init/write-settings.d.ts +9 -0
- package/dist/src/init/write-settings.d.ts.map +1 -0
- package/dist/src/init/write-settings.js +217 -0
- package/dist/src/init/write-settings.js.map +1 -0
- package/dist/src/mcp-tools/hooks-intelligence.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-intelligence.js +2 -1
- package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.js +11 -11
- package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
- package/dist/src/mcp-tools/platforms-tools.js +1 -1
- package/dist/src/mcp-tools/platforms-tools.js.map +1 -1
- package/dist/src/monovector/command-outcomes.d.ts +2 -1
- package/dist/src/monovector/command-outcomes.d.ts.map +1 -1
- package/dist/src/monovector/command-outcomes.js +2 -2
- package/dist/src/monovector/command-outcomes.js.map +1 -1
- package/dist/src/orgrt/approvals.d.ts +25 -0
- package/dist/src/orgrt/approvals.d.ts.map +1 -1
- package/dist/src/orgrt/approvals.js +51 -2
- package/dist/src/orgrt/approvals.js.map +1 -1
- package/dist/src/orgrt/budget-closure.d.ts +27 -0
- package/dist/src/orgrt/budget-closure.d.ts.map +1 -0
- package/dist/src/orgrt/budget-closure.js +179 -0
- package/dist/src/orgrt/budget-closure.js.map +1 -0
- package/dist/src/orgrt/daemon.d.ts +14 -2
- package/dist/src/orgrt/daemon.d.ts.map +1 -1
- package/dist/src/orgrt/daemon.js +37 -2
- package/dist/src/orgrt/daemon.js.map +1 -1
- package/dist/src/orgrt/decisions.d.ts +8 -0
- package/dist/src/orgrt/decisions.d.ts.map +1 -1
- package/dist/src/orgrt/decisions.js +7 -1
- package/dist/src/orgrt/decisions.js.map +1 -1
- package/dist/src/orgrt/policy.d.ts +6 -0
- package/dist/src/orgrt/policy.d.ts.map +1 -1
- package/dist/src/orgrt/policy.js +5 -0
- package/dist/src/orgrt/policy.js.map +1 -1
- package/dist/src/orgrt/runner-registry.d.ts +11 -2
- package/dist/src/orgrt/runner-registry.d.ts.map +1 -1
- package/dist/src/orgrt/runner-registry.js +11 -34
- package/dist/src/orgrt/runner-registry.js.map +1 -1
- package/dist/src/orgrt/task-dag.d.ts +13 -0
- package/dist/src/orgrt/task-dag.d.ts.map +1 -1
- package/dist/src/orgrt/task-dag.js +29 -0
- package/dist/src/orgrt/task-dag.js.map +1 -1
- package/dist/src/orgrt/version-probe.d.ts +43 -0
- package/dist/src/orgrt/version-probe.d.ts.map +1 -0
- package/dist/src/orgrt/version-probe.js +136 -0
- package/dist/src/orgrt/version-probe.js.map +1 -0
- package/dist/src/platform-adapters/locations.d.ts +12 -0
- package/dist/src/platform-adapters/locations.d.ts.map +1 -0
- package/dist/src/platform-adapters/locations.js +57 -0
- package/dist/src/platform-adapters/locations.js.map +1 -0
- package/dist/src/platform-adapters/merge.d.ts +2 -0
- package/dist/src/platform-adapters/merge.d.ts.map +1 -1
- package/dist/src/platform-adapters/merge.js +7 -0
- package/dist/src/platform-adapters/merge.js.map +1 -1
- package/dist/src/platform-adapters/migration.js +1 -1
- package/dist/src/platform-adapters/migration.js.map +1 -1
- package/dist/src/platform-adapters/mutation.js +1 -1
- package/dist/src/platform-adapters/mutation.js.map +1 -1
- package/dist/src/platform-adapters/operations.d.ts +3 -16
- package/dist/src/platform-adapters/operations.d.ts.map +1 -1
- package/dist/src/platform-adapters/operations.js +25 -168
- package/dist/src/platform-adapters/operations.js.map +1 -1
- package/dist/src/platform-adapters/owned-files.js +1 -1
- package/dist/src/platform-adapters/owned-files.js.map +1 -1
- package/dist/src/platform-adapters/platform-doctor.d.ts +9 -0
- package/dist/src/platform-adapters/platform-doctor.d.ts.map +1 -0
- package/dist/src/platform-adapters/platform-doctor.js +117 -0
- package/dist/src/platform-adapters/platform-doctor.js.map +1 -0
- package/dist/src/platform-adapters/shared-surface.d.ts.map +1 -1
- package/dist/src/platform-adapters/shared-surface.js +2 -1
- package/dist/src/platform-adapters/shared-surface.js.map +1 -1
- package/dist/src/platform-adapters/types.d.ts +14 -1
- package/dist/src/platform-adapters/types.d.ts.map +1 -1
- package/dist/src/protocol-capabilities.d.ts +4 -1
- package/dist/src/protocol-capabilities.d.ts.map +1 -1
- package/dist/src/protocol-capabilities.js +4 -0
- package/dist/src/protocol-capabilities.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -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
|
-
|
|
258
|
-
*
|
|
259
|
-
*
|
|
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;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/init/shared.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMvD,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;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAOjE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmE1E;AAED;2EAC2E;AAC3E,eAAO,MAAM,iBAAiB,aAAmC,CAAC;AAElE;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAC/B;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAaxC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkCzE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,QAAQ,EACtC,aAAa,CAAC,EAAE,MAAM,GACrB,MAAM,GAAG,IAAI,CA8Df;AAOD,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC"}
|