@open-agent-toolkit/cli 0.3.7 → 0.3.9
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/README.md +3 -3
- package/assets/agents/oat-codebase-mapper.md +3 -2
- package/assets/agents/oat-reviewer.md +5 -13
- package/assets/agents/skeptical-evaluator.md +6 -2
- package/assets/bundle-metadata.json +1 -1
- package/assets/docs/cli-utilities/backlog-lifecycle.md +3 -2
- package/assets/docs/cli-utilities/bootstrap.md +5 -2
- package/assets/docs/cli-utilities/config-and-local-state.md +13 -6
- package/assets/docs/cli-utilities/configuration.md +25 -10
- package/assets/docs/cli-utilities/tool-packs.md +60 -10
- package/assets/docs/cli-utilities/workflow-gates.md +37 -0
- package/assets/docs/contributing/code.md +9 -5
- package/assets/docs/provider-sync/commands.md +17 -8
- package/assets/docs/provider-sync/instruction-sync.md +241 -39
- package/assets/docs/provider-sync/providers.md +20 -0
- package/assets/docs/provider-sync/scope-and-surface.md +3 -1
- package/assets/docs/reference/cli-reference.md +4 -1
- package/assets/docs/reference/oat-directory-structure.md +12 -11
- package/assets/docs/reference/troubleshooting.md +19 -4
- package/assets/docs/workflows/projects/evidence-layers.md +5 -1
- package/assets/docs/workflows/projects/implementation-execution.md +22 -8
- package/assets/docs/workflows/projects/lifecycle.md +4 -6
- package/assets/docs/workflows/projects/retro.md +7 -0
- package/assets/public-package-versions.json +4 -4
- package/assets/skills/oat-agent-instructions-analyze/SKILL.md +4 -4
- package/assets/skills/oat-agent-instructions-analyze/references/analysis-artifact-template.md +5 -5
- package/assets/skills/oat-agent-instructions-analyze/references/docs/rules-files.md +14 -11
- package/assets/skills/oat-agent-instructions-analyze/references/quality-checklist.md +2 -2
- package/assets/skills/oat-agent-instructions-analyze/scripts/resolve-instruction-files.sh +4 -3
- package/assets/skills/oat-agent-instructions-analyze/scripts/resolve-providers.sh +17 -6
- package/assets/skills/oat-agent-instructions-apply/SKILL.md +3 -3
- package/assets/skills/oat-agent-instructions-apply/references/docs/rules-files.md +14 -11
- package/assets/skills/oat-dispatch-subagents/SKILL.md +1 -1
- package/assets/skills/oat-dispatch-subagents/references/managed-claude-example.json +387 -0
- package/assets/skills/oat-dispatch-subagents/references/record-schema.md +75 -0
- package/assets/skills/oat-doctor/SKILL.md +17 -13
- package/assets/skills/oat-project-autonomous/references/gate-inventory.md +1 -1
- package/assets/skills/oat-project-document/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-implement/SKILL.md +2 -2
- package/assets/skills/oat-project-implement/references/completion-and-closeout.md +33 -11
- package/assets/skills/oat-project-implement/references/dispatch-and-dry-run.md +24 -22
- package/assets/skills/oat-project-implement/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-implement/references/phase-execution.md +109 -8
- package/assets/skills/oat-project-lite/SKILL.md +23 -1
- package/assets/skills/oat-project-lite/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-next/SKILL.md +3 -3
- package/assets/skills/oat-project-pr-final/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-progress/SKILL.md +2 -2
- package/assets/skills/oat-project-quick-start/references/docs/autonomy-contract.md +1 -1
- package/assets/skills/oat-project-retro/SKILL.md +70 -6
- package/assets/skills/oat-project-review-provide/SKILL.md +3 -1
- package/assets/skills/oat-project-review-provide-remote/SKILL.md +3 -1
- package/assets/templates/docs-app-mkdocs/docs/contributing.md +1 -3
- package/assets/templates/pjm-agents.md +7 -3
- package/assets/templates/state.md +2 -2
- package/dist/agents/canonical/resolve.d.ts +6 -4
- package/dist/agents/canonical/resolve.d.ts.map +1 -1
- package/dist/agents/canonical/resolve.js +6 -4
- package/dist/commands/backlog/archive.d.ts +10 -2
- package/dist/commands/backlog/archive.d.ts.map +1 -1
- package/dist/commands/backlog/archive.js +22 -6
- package/dist/commands/backlog/index.d.ts.map +1 -1
- package/dist/commands/backlog/index.js +5 -1
- package/dist/commands/backlog/rewrite-references.d.ts +41 -0
- package/dist/commands/backlog/rewrite-references.d.ts.map +1 -0
- package/dist/commands/backlog/rewrite-references.js +516 -0
- package/dist/commands/config/index.d.ts +1 -0
- package/dist/commands/config/index.d.ts.map +1 -1
- package/dist/commands/config/index.js +69 -34
- package/dist/commands/gate/index.d.ts.map +1 -1
- package/dist/commands/gate/index.js +51 -2
- package/dist/commands/gate/review-verdict.d.ts +22 -0
- package/dist/commands/gate/review-verdict.d.ts.map +1 -1
- package/dist/commands/gate/review-verdict.js +111 -0
- package/dist/commands/init/index.d.ts +6 -0
- package/dist/commands/init/index.d.ts.map +1 -1
- package/dist/commands/init/index.js +27 -4
- package/dist/commands/init/tools/index.d.ts +18 -1
- package/dist/commands/init/tools/index.d.ts.map +1 -1
- package/dist/commands/init/tools/index.js +84 -17
- package/dist/commands/init/tools/project-guidance.d.ts +19 -4
- package/dist/commands/init/tools/project-guidance.d.ts.map +1 -1
- package/dist/commands/init/tools/project-guidance.js +58 -15
- package/dist/commands/init/tools/workflows/index.d.ts.map +1 -1
- package/dist/commands/init/tools/workflows/index.js +5 -1
- package/dist/commands/instructions/instructions.types.d.ts +105 -4
- package/dist/commands/instructions/instructions.types.d.ts.map +1 -1
- package/dist/commands/instructions/instructions.types.js +4 -5
- package/dist/commands/instructions/instructions.utils.d.ts +161 -6
- package/dist/commands/instructions/instructions.utils.d.ts.map +1 -1
- package/dist/commands/instructions/instructions.utils.js +650 -12
- package/dist/commands/instructions/sync/sync.d.ts.map +1 -1
- package/dist/commands/instructions/sync/sync.js +256 -18
- package/dist/commands/instructions/validate/validate.d.ts.map +1 -1
- package/dist/commands/instructions/validate/validate.js +36 -8
- package/dist/commands/pjm/index.d.ts.map +1 -1
- package/dist/commands/pjm/index.js +19 -4
- package/dist/commands/pjm/init.d.ts +3 -0
- package/dist/commands/pjm/init.d.ts.map +1 -1
- package/dist/commands/pjm/init.js +23 -5
- package/dist/commands/project/dispatch/canonical-role.d.ts +33 -0
- package/dist/commands/project/dispatch/canonical-role.d.ts.map +1 -0
- package/dist/commands/project/dispatch/canonical-role.js +114 -0
- package/dist/commands/project/dispatch/index.d.ts.map +1 -1
- package/dist/commands/project/dispatch/index.js +3 -1
- package/dist/commands/project/dispatch/record.d.ts.map +1 -1
- package/dist/commands/project/dispatch/record.js +146 -4
- package/dist/commands/shared/agents-md.d.ts +26 -5
- package/dist/commands/shared/agents-md.d.ts.map +1 -1
- package/dist/commands/shared/agents-md.js +182 -3
- package/dist/commands/sync/apply.d.ts.map +1 -1
- package/dist/commands/sync/apply.js +28 -21
- package/dist/commands/tools/guidance/index.d.ts +15 -0
- package/dist/commands/tools/guidance/index.d.ts.map +1 -0
- package/dist/commands/tools/guidance/index.js +81 -0
- package/dist/commands/tools/index.d.ts.map +1 -1
- package/dist/commands/tools/index.js +2 -0
- package/dist/commands/tools/shared/sync-evidence.d.ts.map +1 -1
- package/dist/commands/tools/shared/sync-evidence.js +32 -5
- package/dist/config/oat-config.d.ts +57 -3
- package/dist/config/oat-config.d.ts.map +1 -1
- package/dist/config/oat-config.js +223 -15
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resolve.js +12 -2
- package/dist/engine/compute-plan.d.ts.map +1 -1
- package/dist/engine/compute-plan.js +31 -3
- package/dist/providers/claude/dispatch-envelope.d.ts +53 -0
- package/dist/providers/claude/dispatch-envelope.d.ts.map +1 -1
- package/dist/providers/claude/dispatch-envelope.js +324 -48
- package/dist/providers/claude/rule-transform.js +1 -1
- package/dist/providers/copilot/rule-transform.js +1 -1
- package/dist/providers/cursor/rule-transform.js +1 -1
- package/dist/providers/identity/absolute-paths.d.ts +13 -0
- package/dist/providers/identity/absolute-paths.d.ts.map +1 -1
- package/dist/providers/identity/absolute-paths.js +27 -14
- package/dist/providers/identity/generic-dispatch-record.d.ts +212 -0
- package/dist/providers/identity/generic-dispatch-record.d.ts.map +1 -1
- package/dist/providers/identity/generic-dispatch-record.js +78 -19
- package/dist/providers/identity/oat-dispatch-record.d.ts +5 -0
- package/dist/providers/identity/oat-dispatch-record.d.ts.map +1 -1
- package/dist/providers/identity/oat-dispatch-record.js +11 -2
- package/dist/providers/shared/registry.d.ts +6 -0
- package/dist/providers/shared/registry.d.ts.map +1 -1
- package/dist/providers/shared/registry.js +30 -0
- package/dist/rules/canonical/parse.d.ts.map +1 -1
- package/dist/rules/canonical/parse.js +38 -3
- package/package.json +2 -2
|
@@ -1,15 +1,83 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DEFAULT_INSTRUCTION_SYNC_STRATEGY } from '../../config/oat-config.js';
|
|
2
|
+
import type { ClaudeMdBlocksShimRemovalWarning, ClaudeMdHidesAgentsMdWarning, InstructionSyncStrategy, InstructionActionRecord, InstructionEntry, InstructionsJsonPayload, InstructionsMode, InstructionPointerExclusions, InstructionsScanOptions, InstructionsScanDependencies, InstructionsSummary, InstructionsWarning, ManagedShimRecord } from './instructions.types.js';
|
|
2
3
|
export declare const EXPECTED_CLAUDE_CONTENT = "@AGENTS.md\n";
|
|
3
|
-
export
|
|
4
|
+
export { DEFAULT_INSTRUCTION_SYNC_STRATEGY };
|
|
4
5
|
interface BuildInstructionsPayloadArgs {
|
|
5
6
|
mode: InstructionsMode;
|
|
7
|
+
strategy: InstructionSyncStrategy;
|
|
8
|
+
warnings?: InstructionsWarning[];
|
|
6
9
|
entries: InstructionEntry[];
|
|
7
10
|
actions: InstructionActionRecord[];
|
|
8
11
|
excludedPaths?: string[];
|
|
9
12
|
effectiveExcludedPaths?: string[];
|
|
10
13
|
exclusionWarnings?: string[];
|
|
11
14
|
}
|
|
12
|
-
|
|
15
|
+
/** The filesystem reads managed-shim classification needs. */
|
|
16
|
+
export interface ManagedShimInspectionDependencies {
|
|
17
|
+
lstat: InstructionsScanDependencies['lstat'];
|
|
18
|
+
readlink: InstructionsScanDependencies['readlink'];
|
|
19
|
+
readFileBytes: InstructionsScanDependencies['readFileBytes'];
|
|
20
|
+
realpath: InstructionsScanDependencies['realpath'];
|
|
21
|
+
}
|
|
22
|
+
export type ManagedShimInspection = {
|
|
23
|
+
kind: 'managed';
|
|
24
|
+
record: ManagedShimRecord;
|
|
25
|
+
} | {
|
|
26
|
+
kind: 'absent';
|
|
27
|
+
} | {
|
|
28
|
+
kind: 'unmanaged';
|
|
29
|
+
detail: string;
|
|
30
|
+
} | {
|
|
31
|
+
kind: 'unreadable';
|
|
32
|
+
detail: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Classify one CLAUDE.md against the exact shapes OAT writes, beside its
|
|
36
|
+
* sibling AGENTS.md. This is the single definition of "OAT-managed" that both
|
|
37
|
+
* planning (the scan) and apply-time re-verification use, so the two can never
|
|
38
|
+
* disagree about what may be deleted.
|
|
39
|
+
*
|
|
40
|
+
* Anything that is not provably one of the three shapes is `unmanaged`, which
|
|
41
|
+
* is never deleted: a CLAUDE.md not named exactly `CLAUDE.md`, one inside a
|
|
42
|
+
* `.claude` directory, a symlink whose target is not the sibling AGENTS.md,
|
|
43
|
+
* and any regular file whose bytes are not exactly a pointer or an exact copy.
|
|
44
|
+
*/
|
|
45
|
+
export declare function inspectManagedShim(claudePath: string, agentsPath: string, dependencies: ManagedShimInspectionDependencies): Promise<ManagedShimInspection>;
|
|
46
|
+
/** The filesystem reads link-chain resolution needs. */
|
|
47
|
+
export interface LinkResolutionDependencies {
|
|
48
|
+
lstat: InstructionsScanDependencies['lstat'];
|
|
49
|
+
readlink: InstructionsScanDependencies['readlink'];
|
|
50
|
+
realpath: InstructionsScanDependencies['realpath'];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The candidates whose symlink chain passes through `targetPath`: removing
|
|
54
|
+
* `targetPath` would leave each of them dangling. Every hop is followed, so a
|
|
55
|
+
* link to a link to the target counts, and a link to the target that is
|
|
56
|
+
* itself a symlink counts too. Regular files and hard links never dangle, so
|
|
57
|
+
* they are never reported.
|
|
58
|
+
*/
|
|
59
|
+
export declare function findLinksThrough(targetPath: string, candidates: readonly string[], dependencies: LinkResolutionDependencies): Promise<string[]>;
|
|
60
|
+
/**
|
|
61
|
+
* Re-verify, immediately before deletion, that a CLAUDE.md planned for removal
|
|
62
|
+
* is still the exact managed shim the scan recorded: same `lstat` identity
|
|
63
|
+
* (device and inode, so a replaced file is caught even with identical bytes),
|
|
64
|
+
* same shape, same symlink target, and still an exact managed shape now.
|
|
65
|
+
*
|
|
66
|
+
* Returns null when removal may proceed, or the reason it must not.
|
|
67
|
+
*/
|
|
68
|
+
export declare function verifyManagedShimUnchanged(claudePath: string, agentsPath: string, planned: ManagedShimRecord, dependencies: ManagedShimInspectionDependencies): Promise<string | null>;
|
|
69
|
+
/**
|
|
70
|
+
* The effective strategy for one run: the `--strategy` flag, then the
|
|
71
|
+
* repository's `instructions.claude.shims`, then the built-in
|
|
72
|
+
* default. The flag only ever overrides a single run; it never rewrites config.
|
|
73
|
+
*/
|
|
74
|
+
export declare function resolveInstructionSyncStrategy(flagStrategy?: InstructionSyncStrategy, configuredStrategy?: InstructionSyncStrategy): InstructionSyncStrategy;
|
|
75
|
+
/**
|
|
76
|
+
* Read `instructions.claude.shims` from the shared config. A
|
|
77
|
+
* malformed value fails closed in the config normalizer rather than reading as
|
|
78
|
+
* unset, so a typo can never silently select the built-in default.
|
|
79
|
+
*/
|
|
80
|
+
export declare function readConfiguredInstructionSyncStrategy(repoRoot: string): Promise<InstructionSyncStrategy | undefined>;
|
|
13
81
|
/**
|
|
14
82
|
* Canonicalize repo-relative exclusion entries into the exact form the scan
|
|
15
83
|
* compares against: POSIX separators, collapsed `.` and `..` segments and
|
|
@@ -33,7 +101,7 @@ export declare function normalizeExcludedPaths(excludedPaths?: readonly string[]
|
|
|
33
101
|
/**
|
|
34
102
|
* The directories `oat instructions sync` and `oat instructions validate` skip:
|
|
35
103
|
* the derived documentation content root first, then the explicit
|
|
36
|
-
* `
|
|
104
|
+
* `instructions.claude.excludes` opt-outs.
|
|
37
105
|
*
|
|
38
106
|
* Both commands resolve exclusions through this one function. That is the
|
|
39
107
|
* property that matters: if they computed exclusions separately, validate
|
|
@@ -57,8 +125,95 @@ export declare function normalizeExcludedPaths(excludedPaths?: readonly string[]
|
|
|
57
125
|
*/
|
|
58
126
|
export declare function resolveInstructionPointerExcludes(repoRoot: string, overrides?: Partial<InstructionsScanDependencies>): Promise<InstructionPointerExclusions>;
|
|
59
127
|
export declare function scanInstructionFiles(repoRoot: string, options?: InstructionsScanOptions, overrides?: Partial<InstructionsScanDependencies>): Promise<InstructionEntry[]>;
|
|
128
|
+
/** A leftover file and the `AGENTS.md` links that pass through it. */
|
|
129
|
+
export interface LeftoverClaudeFile {
|
|
130
|
+
path: string;
|
|
131
|
+
/** Absolute paths of every `AGENTS.md` whose symlink chain reaches `path`. */
|
|
132
|
+
linkedBy: string[];
|
|
133
|
+
/**
|
|
134
|
+
* Whether the file is an exact OAT shim of its sibling AGENTS.md (pointer,
|
|
135
|
+
* sibling symlink, or identical copy), judged by `inspectManagedShim`. Any
|
|
136
|
+
* other file -- `CLAUDE.local.md`, `.claude/CLAUDE.md`, a hand-written or
|
|
137
|
+
* modified `CLAUDE.md`, one without a sibling AGENTS.md, or one that cannot
|
|
138
|
+
* be read -- has content of its own.
|
|
139
|
+
*/
|
|
140
|
+
exactShim: boolean;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Every `CLAUDE.md` (including `.claude/CLAUDE.md`) and `CLAUDE.local.md` in
|
|
144
|
+
* the repository (exact case), sorted, as absolute paths, each with the
|
|
145
|
+
* `AGENTS.md` files that link to it.
|
|
146
|
+
*
|
|
147
|
+
* A separate, read-only walk on purpose. The instruction scan skips the
|
|
148
|
+
* documentation content root and `instructions.claude.excludes`,
|
|
149
|
+
* but those only limit what OAT may change: Claude Code's `agents-md` plugin
|
|
150
|
+
* stands down whichever directory the file is in. Only `.git`, `node_modules`,
|
|
151
|
+
* the root `.worktrees`, and nested git checkouts (separate repositories) are
|
|
152
|
+
* skipped, and symlinked directories are not followed. A symlink named like
|
|
153
|
+
* an instruction file counts, broken or not. Each directory entry is read
|
|
154
|
+
* once, so one file is never reported twice, even on a case-insensitive
|
|
155
|
+
* filesystem.
|
|
156
|
+
*/
|
|
157
|
+
export declare function findLeftoverClaudeFiles(repoRoot: string, overrides?: Partial<Pick<InstructionsScanDependencies, 'readdir' | 'lstat' | 'readlink' | 'realpath' | 'readFileBytes'>>): Promise<LeftoverClaudeFile[]>;
|
|
158
|
+
/**
|
|
159
|
+
* Where the docs explain why any CLAUDE.md makes Claude Code ignore AGENTS.md.
|
|
160
|
+
* Absolute, because the message is read in terminals and JSON consumers that
|
|
161
|
+
* cannot resolve a repository-relative docs path.
|
|
162
|
+
*/
|
|
163
|
+
export declare const CLAUDE_CODE_AGENTS_MD_DOCS_URL = "https://github.com/voxmedia/open-agent-toolkit/blob/main/apps/oat-docs/docs/provider-sync/instruction-sync.md#claude-code-and-agentsmd";
|
|
164
|
+
/**
|
|
165
|
+
* Under strategy `none`, removal is all or nothing: the leftover files with
|
|
166
|
+
* content of their own (anything but an exact OAT shim) that hold back every
|
|
167
|
+
* CLAUDE.md removal while they exist.
|
|
168
|
+
*
|
|
169
|
+
* A stray the scan will adopt (a lone `CLAUDE.md` with no sibling AGENTS.md)
|
|
170
|
+
* never blocks: its content moves into a new AGENTS.md, so it is not left
|
|
171
|
+
* behind. Every other file counts wherever it is, including excluded and
|
|
172
|
+
* documentation trees, because Claude Code's walk does not honor OAT's
|
|
173
|
+
* exclusions. An unreadable file counts too: blocking is the safe direction.
|
|
174
|
+
*/
|
|
175
|
+
export declare function findShimRemovalBlockers(entries: readonly InstructionEntry[], leftovers: readonly LeftoverClaudeFile[]): ShimRemovalBlocker[];
|
|
176
|
+
/** A file that blocks removal, and the `AGENTS.md` links that reach it. */
|
|
177
|
+
export type ShimRemovalBlocker = Pick<LeftoverClaudeFile, 'path' | 'linkedBy'>;
|
|
178
|
+
/**
|
|
179
|
+
* Under a blocked removal, the leftover warnings minus the files the block
|
|
180
|
+
* holds back: the block finding already names them, and advice to remove
|
|
181
|
+
* one by hand would recreate the mix the block exists to prevent.
|
|
182
|
+
*/
|
|
183
|
+
export declare function omitHeldBackLeftovers<T extends {
|
|
184
|
+
path: string;
|
|
185
|
+
}>(leftovers: readonly T[], heldBack: readonly string[]): T[];
|
|
186
|
+
/** The CLAUDE.md files strategy `none` removes: managed shims and adopted strays. */
|
|
187
|
+
export declare function listShimRemovals(entries: readonly InstructionEntry[]): string[];
|
|
188
|
+
/** The skip reason sync records for each removal the block holds back. */
|
|
189
|
+
export declare function describeShimRemovalBlock(repoRoot: string, blockers: readonly ShimRemovalBlocker[]): string;
|
|
190
|
+
/**
|
|
191
|
+
* The single finding for a blocked removal: which shims the configuration
|
|
192
|
+
* would remove, that none were removed and which files are why, why any
|
|
193
|
+
* CLAUDE.md matters, and what to do next.
|
|
194
|
+
*/
|
|
195
|
+
export declare function buildShimRemovalBlockWarning(repoRoot: string, blockers: readonly ShimRemovalBlocker[], wouldRemove: readonly string[], mode: InstructionsMode): ClaudeMdBlocksShimRemovalWarning;
|
|
196
|
+
/**
|
|
197
|
+
* Restate each managed shim's detail while the block holds: sync will not
|
|
198
|
+
* remove it, so "sync removes it" would be false.
|
|
199
|
+
*/
|
|
200
|
+
export declare function markBlockedShimEntries(entries: readonly InstructionEntry[]): InstructionEntry[];
|
|
201
|
+
/**
|
|
202
|
+
* One warning per leftover file, naming exactly two ways out: remove the
|
|
203
|
+
* file, or opt back into shims and let sync add them everywhere.
|
|
204
|
+
*
|
|
205
|
+
* When an `AGENTS.md` links to the file, removing it would break that link
|
|
206
|
+
* and lose the only copy of the instructions, so the first option becomes
|
|
207
|
+
* "replace the link with the file's content, then remove the file", and
|
|
208
|
+
* `linkedBy` names the links.
|
|
209
|
+
*
|
|
210
|
+
* Claude Code's plugin stands down when such a file sits in the session's
|
|
211
|
+
* working directory or any directory above it up to the project root, so a
|
|
212
|
+
* root file affects every session and a nested one only sessions started in
|
|
213
|
+
* its directory or below.
|
|
214
|
+
*/
|
|
215
|
+
export declare function buildLeftoverClaudeWarnings(repoRoot: string, leftovers: readonly Pick<LeftoverClaudeFile, 'path' | 'linkedBy'>[]): ClaudeMdHidesAgentsMdWarning[];
|
|
60
216
|
export declare function buildInstructionsSummary(entries: InstructionEntry[], actions: InstructionActionRecord[]): InstructionsSummary;
|
|
61
|
-
export declare function buildInstructionsPayload({ mode, entries, actions, excludedPaths, effectiveExcludedPaths, exclusionWarnings, }: BuildInstructionsPayloadArgs): InstructionsJsonPayload;
|
|
217
|
+
export declare function buildInstructionsPayload({ mode, strategy, warnings, entries, actions, excludedPaths, effectiveExcludedPaths, exclusionWarnings, }: BuildInstructionsPayloadArgs): InstructionsJsonPayload;
|
|
62
218
|
export declare function formatInstructionsReport(payload: InstructionsJsonPayload, repoRoot?: string): string;
|
|
63
|
-
export {};
|
|
64
219
|
//# sourceMappingURL=instructions.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.utils.d.ts","sourceRoot":"","sources":["../../../src/commands/instructions/instructions.utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instructions.utils.d.ts","sourceRoot":"","sources":["../../../src/commands/instructions/instructions.utils.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,iCAAiC,EAGlC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EACV,gCAAgC,EAChC,4BAA4B,EAC5B,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,4BAA4B,EAC5B,uBAAuB,EACvB,4BAA4B,EAE5B,mBAAmB,EACnB,mBAAmB,EAEnB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AACtD,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAc7C,UAAU,4BAA4B;IACpC,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,uBAAuB,CAAC;IAClC,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACjC,OAAO,EAAE,gBAAgB,EAAE,CAA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