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/CHANGELOG.md +68 -2
- package/README.md +3 -2
- package/SECURITY.md +2 -2
- package/dist/bin.js +696 -329
- package/dist/{chunk-5ZOXHBTW.js → chunk-BXWV2OXE.js} +21 -1
- package/dist/{chunk-NJ75RVHO.js → chunk-H4FSGTEW.js} +692 -374
- package/dist/cli.cjs +836 -476
- package/dist/cli.d.cts +11 -1
- package/dist/cli.d.ts +11 -1
- package/dist/cli.js +25 -3
- package/dist/index.cjs +687 -369
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +140 -1
- package/dist/mcp.js +2 -2
- package/dist/{types-DGWw3SH2.d.cts → types-c0tLF2WC.d.cts} +51 -1
- package/dist/{types-DGWw3SH2.d.ts → types-c0tLF2WC.d.ts} +51 -1
- package/docs/cli.md +5 -3
- package/docs/configuration.md +55 -0
- package/docs/mcp.md +3 -3
- package/docs/output.md +6 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GENERATOR_VERSION, anchorForPath, displayPath, MIN_MAX_PART_BYTES, SCHEMA_VERSION, GENERATOR_NAME, ARTIFACT_NAMES, PRESETS, generateInWorker, validateSnapshot, buildImportResolver, resolveSpecifier, truncateToBytes, explainPath, renderExplainText, describeManifestShapeProblem, loadConfigFileDetailed, parseByteSize, resolveConfig } from './chunk-
|
|
1
|
+
import { GENERATOR_VERSION, anchorForPath, displayPath, MIN_MAX_PART_BYTES, SCHEMA_VERSION, GENERATOR_NAME, ARTIFACT_NAMES, PRESETS, generateInWorker, validateSnapshot, buildImportResolver, resolveSpecifier, truncateToBytes, explainPath, renderExplainText, describeManifestShapeProblem, loadConfigFileDetailed, parseByteSize, resolveConfig } from './chunk-H4FSGTEW.js';
|
|
2
2
|
import * as fs from 'fs';
|
|
3
3
|
import * as path from 'path';
|
|
4
4
|
|
|
@@ -1441,6 +1441,8 @@ var VALIDATE_OPTIONS = [
|
|
|
1441
1441
|
"large-file-bytes",
|
|
1442
1442
|
"max-monolith-bytes",
|
|
1443
1443
|
"max-parts",
|
|
1444
|
+
"brief",
|
|
1445
|
+
"prompt-task",
|
|
1444
1446
|
"include-monolith",
|
|
1445
1447
|
"include-sensitive-files",
|
|
1446
1448
|
"skip-artifacts",
|
|
@@ -1468,6 +1470,8 @@ var COMMAND_OPTION_SCOPE = {
|
|
|
1468
1470
|
"max-monolith-bytes",
|
|
1469
1471
|
"attachment-slots",
|
|
1470
1472
|
"max-parts",
|
|
1473
|
+
"brief",
|
|
1474
|
+
"prompt-task",
|
|
1471
1475
|
"include-monolith",
|
|
1472
1476
|
"include-sensitive-files",
|
|
1473
1477
|
"skip-artifacts",
|
|
@@ -1910,6 +1914,20 @@ function buildAgentContract() {
|
|
|
1910
1914
|
appliesTo: optionAppliesTo("attachment-slots"),
|
|
1911
1915
|
summary: "Files the destination accepts in one message (0 = no limit). PROMPT.md plans the delivery against it: which parts to attach, what to leave behind, and the part budget that would merge them. It does not change the payload."
|
|
1912
1916
|
},
|
|
1917
|
+
{
|
|
1918
|
+
flag: "--brief",
|
|
1919
|
+
type: "string",
|
|
1920
|
+
default: "unset",
|
|
1921
|
+
appliesTo: optionAppliesTo("brief"),
|
|
1922
|
+
summary: "Path to the owner-written half of PROMPT.md: Stakes, The system, What came before, The bar and Calibration replace or extend the generated prose; any other heading is kept as Owner notes. The measured headings cannot be redefined. A missing file is an error and an edited file is config drift."
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
flag: "--prompt-task",
|
|
1926
|
+
type: "string",
|
|
1927
|
+
default: "audit",
|
|
1928
|
+
appliesTo: optionAppliesTo("prompt-task"),
|
|
1929
|
+
summary: "Which job the brief is written for: audit (default), review or explain. It changes the opening section, not the standard."
|
|
1930
|
+
},
|
|
1913
1931
|
{
|
|
1914
1932
|
flag: "--max-parts",
|
|
1915
1933
|
type: "number",
|
|
@@ -2130,6 +2148,8 @@ function buildAgentContract() {
|
|
|
2130
2148
|
{ key: "includeSensitiveFiles", type: "boolean", default: false, summary: "Emit .env / *.pem / credential files." },
|
|
2131
2149
|
{ key: "include", type: "string[]", default: "[]", summary: "Allow-list of globs; empty means everything." },
|
|
2132
2150
|
{ key: "excludePatterns", type: "string[]", default: "[]", summary: "Extra exclude globs." },
|
|
2151
|
+
{ key: "brief", type: "string", default: "unset", summary: "Path to the owner-written half of PROMPT.md. Recognised headings: Stakes, The system, What came before, The bar, Calibration; unknown headings are kept as Owner notes; measured headings are refused. The file is digested, so editing it is drift." },
|
|
2152
|
+
{ key: "promptTask", type: "string", default: "audit", summary: "Which job the brief is written for: audit, review or explain. The standard and the coverage duty are the same in all three." },
|
|
2133
2153
|
{ key: "maxParts", type: "number | null", default: null, summary: "Experimental: the most parts a snapshot may have. The per-part budget grows to fit, up to the run's own needs; the effective ceiling is recorded in manifest.budgets.maxPartBytes and may exceed maxPartBytes." },
|
|
2134
2154
|
{ key: "attachmentSlots", type: "number", default: 10, summary: "Files the destination accepts in one message (0 = no limit); PROMPT.md plans the delivery to fit. It does not change the payload, and it is not part of the config digest." },
|
|
2135
2155
|
{ key: "discovery", type: '"auto" | "git" | "walk"', default: "auto", summary: "How files are discovered; `walk` scans the tree and reads .gitignore directly when a .git directory cannot be listed." },
|