codebase-snapshot 0.11.0 → 0.12.1

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/dist/cli.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { O as OutputFormat, D as DiscoveryMode, R as ResolvedSnapshotConfig } from './types-DGWw3SH2.cjs';
1
+ import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, R as ResolvedSnapshotConfig } from './types-c0tLF2WC.cjs';
2
2
 
3
3
  /**
4
4
  * The machine-readable description of this tool.
@@ -145,6 +145,12 @@ declare const CLI_OPTIONS: {
145
145
  readonly "max-parts": {
146
146
  readonly type: "string";
147
147
  };
148
+ readonly brief: {
149
+ readonly type: "string";
150
+ };
151
+ readonly "prompt-task": {
152
+ readonly type: "string";
153
+ };
148
154
  readonly "include-monolith": {
149
155
  readonly type: "boolean";
150
156
  };
@@ -283,6 +289,10 @@ interface ParsedInvocation {
283
289
  attachmentSlots?: number;
284
290
  /** `--max-parts`: the experimental part-count ceiling. */
285
291
  maxParts?: number;
292
+ /** `--brief`: path to the owner-written half of the brief. */
293
+ brief?: string;
294
+ /** `--prompt-task`: audit, review or explain. */
295
+ promptTask?: PromptTask;
286
296
  skipArtifacts?: string[];
287
297
  /**
288
298
  * The artifacts named by `--only-artifacts`, kept separately from the derived
package/dist/cli.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { O as OutputFormat, D as DiscoveryMode, R as ResolvedSnapshotConfig } from './types-DGWw3SH2.js';
1
+ import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, R as ResolvedSnapshotConfig } from './types-c0tLF2WC.js';
2
2
 
3
3
  /**
4
4
  * The machine-readable description of this tool.
@@ -145,6 +145,12 @@ declare const CLI_OPTIONS: {
145
145
  readonly "max-parts": {
146
146
  readonly type: "string";
147
147
  };
148
+ readonly brief: {
149
+ readonly type: "string";
150
+ };
151
+ readonly "prompt-task": {
152
+ readonly type: "string";
153
+ };
148
154
  readonly "include-monolith": {
149
155
  readonly type: "boolean";
150
156
  };
@@ -283,6 +289,10 @@ interface ParsedInvocation {
283
289
  attachmentSlots?: number;
284
290
  /** `--max-parts`: the experimental part-count ceiling. */
285
291
  maxParts?: number;
292
+ /** `--brief`: path to the owner-written half of the brief. */
293
+ brief?: string;
294
+ /** `--prompt-task`: audit, review or explain. */
295
+ promptTask?: PromptTask;
286
296
  skipArtifacts?: string[];
287
297
  /**
288
298
  * The artifacts named by `--only-artifacts`, kept separately from the derived
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
- import { buildAgentContract, runStdioServer, COMMAND_OPTION_SCOPE, commandsForOption, SKILL_NAME, renderSkill, renderContractText } from './chunk-5ZOXHBTW.js';
2
- export { buildAgentContract } from './chunk-5ZOXHBTW.js';
3
- import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, loadConfigFileDetailed, resolveConfig, validateSnapshot, describeManifestShapeProblem, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, stripJsonComments, parseByteSize, gitignorePath, appendGitignoreEntries, runWithStdoutCapture, escapeControls, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderExplainText } from './chunk-NJ75RVHO.js';
1
+ import { buildAgentContract, runStdioServer, COMMAND_OPTION_SCOPE, commandsForOption, SKILL_NAME, renderSkill, renderContractText } from './chunk-BXWV2OXE.js';
2
+ export { buildAgentContract } from './chunk-BXWV2OXE.js';
3
+ import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, loadConfigFileDetailed, resolveConfig, validateSnapshot, describeManifestShapeProblem, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, stripJsonComments, parseByteSize, gitignorePath, appendGitignoreEntries, runWithStdoutCapture, escapeControls, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderExplainText } from './chunk-H4FSGTEW.js';
4
4
  import { spawnSync } from 'child_process';
5
5
  import * as fs from 'fs';
6
6
  import * as path2 from 'path';
@@ -129,6 +129,8 @@ var CLI_OPTIONS = {
129
129
  "max-monolith-bytes": { type: "string" },
130
130
  "attachment-slots": { type: "string" },
131
131
  "max-parts": { type: "string" },
132
+ brief: { type: "string" },
133
+ "prompt-task": { type: "string" },
132
134
  "include-monolith": { type: "boolean" },
133
135
  "include-sensitive-files": { type: "boolean" },
134
136
  "skip-artifacts": { type: "string" },
@@ -207,6 +209,9 @@ Options:
207
209
  0 = no limit); PROMPT.md plans the delivery to fit
208
210
  --max-parts <n> Experimental: grow the part budget until the snapshot has at
209
211
  most n parts, instead of adding parts as the code grows
212
+ --brief <path> Owner-written half of PROMPT.md (stakes, system, history,
213
+ bar, calibration); merged at fixed slots
214
+ --prompt-task <task> audit | review | explain - which job the brief is for
210
215
  --skip-artifacts <names> Comma-separated artifacts to omit
211
216
  (readme, manifest, parts, navigation,
212
217
  projectTree, audit, monolith)
@@ -291,6 +296,13 @@ function parseCountOption(raw, optionName, minimum = 0) {
291
296
  }
292
297
  return value;
293
298
  }
299
+ function parsePromptTask(value) {
300
+ if (value === void 0) return void 0;
301
+ if (value === "audit" || value === "review" || value === "explain") return value;
302
+ throw new UsageError(
303
+ '--prompt-task expects audit, review or explain, received "' + value + '".'
304
+ );
305
+ }
294
306
  function parseArtifactList(raw, flag) {
295
307
  const names = raw.split(",").map((name) => name.trim()).filter(Boolean);
296
308
  if (names.length === 0) {
@@ -537,6 +549,8 @@ function parseCliArgs(argv) {
537
549
  "attachment-slots"
538
550
  ),
539
551
  maxParts: parseCountOption(values["max-parts"], "max-parts", 1),
552
+ brief: values.brief === void 0 ? void 0 : String(values.brief),
553
+ promptTask: parsePromptTask(values["prompt-task"]),
540
554
  skipArtifacts,
541
555
  onlyArtifacts,
542
556
  discovery: isDiscoveryMode(rawDiscovery) ? rawDiscovery : void 0,
@@ -868,6 +882,10 @@ async function runSetupCommand(invocation, options = {}) {
868
882
  if (invocation.maxParts !== void 0) {
869
883
  generateArgs.push("--max-parts", String(invocation.maxParts));
870
884
  }
885
+ if (invocation.brief !== void 0) generateArgs.push("--brief", invocation.brief);
886
+ if (invocation.promptTask !== void 0) {
887
+ generateArgs.push("--prompt-task", invocation.promptTask);
888
+ }
871
889
  if (invocation.skeleton === true) generateArgs.push("--skeleton");
872
890
  if (invocation.sarif === true) generateArgs.push("--sarif");
873
891
  if (invocation.noUpdateCheck) generateArgs.push("--no-update-check");
@@ -1112,6 +1130,8 @@ ${USAGE}
1112
1130
  maxMonolithBytes: invocation.maxMonolithBytes,
1113
1131
  attachmentSlots: invocation.attachmentSlots,
1114
1132
  maxParts: invocation.maxParts,
1133
+ brief: invocation.brief,
1134
+ promptTask: invocation.promptTask,
1115
1135
  skipArtifacts: invocation.skipArtifacts,
1116
1136
  // `--only-artifacts` is forwarded as itself, not only as the derived suppression list:
1117
1137
  // suppression cannot switch an artifact *on*, so a config that had turned one of the
@@ -1439,6 +1459,8 @@ async function runWatchLoop(invocation, resolved, options) {
1439
1459
  maxMonolithBytes: invocation.maxMonolithBytes,
1440
1460
  attachmentSlots: invocation.attachmentSlots,
1441
1461
  maxParts: invocation.maxParts,
1462
+ brief: invocation.brief,
1463
+ promptTask: invocation.promptTask,
1442
1464
  skipArtifacts: invocation.skipArtifacts,
1443
1465
  onlyArtifacts: invocation.onlyArtifacts,
1444
1466
  discovery: invocation.discovery,