@ai-dossier/core 1.4.1 → 1.5.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-usage.js","sourceRoot":"","sources":["../src/agent-usage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8TH,0CA6BC;AA2BD,gDA6FC;AAYD,wCAIC;AAjeD,gDAAkC;AAqBlC;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAEjC,0FAA0F;AAC1F,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC;;;;;;;;;;GAUG;AACH,SAAS,SAAS,CAAC,KAAc,EAAE,GAAW;IAC5C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,GAAG;QACtF,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,gDAAgD;AAChD,SAAS,OAAO,CAAC,KAAc;IAC7B,OAAO,SAAS,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;AAC/C,CAAC;AAED,qEAAqE;AACrE,SAAS,MAAM,CAAC,KAAc;IAC5B,OAAO,SAAS,CAAC,KAAK,EAAE,qBAAqB,CAAC,CAAC;AACjD,CAAC;AAED,8EAA8E;AAC9E,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B;;;;;GAKG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,oFAAoF;AACpF,SAAS,UAAU,CAAC,KAAwB;IAC1C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACpC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;I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ACH,CAAC;YACD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/B,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;gBAClB,OAAO,IAAI,IAAI,CAAC;gBAChB,QAAQ,GAAG,IAAI,CAAC;YAClB,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAE3B,OAAO;QACL,KAAK,EAAE,IAAI;QACX,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI;QAC3C,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI;QAC7C,qBAAqB,EAAE,gBAAgB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI;QACpE,iBAAiB,EAAE,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI;QACxD,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;QACzC,WAAW,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;KACtD,CAAC;AACJ,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,cAAc,CAC5B,IAAY;IAEZ,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,eAAe,CAAC;AACnF,CAAC"}
package/dist/index.d.ts CHANGED
@@ -6,8 +6,12 @@
6
6
  * - Checksum verification (SHA256 integrity checks)
7
7
  * - Signature verification (Minisign and AWS KMS)
8
8
  * - Output coherence validation
9
+ * - Headless-agent usage parsing (token/cost from claude/opencode JSON results)
10
+ * - runs.jsonl entry schema and path (shared by cli + sched)
9
11
  * - TypeScript type definitions
10
12
  */
13
+ export type { AgentRunUsage } from './agent-usage';
14
+ export { parseAgentUsage, parseOpenCodeUsage, SCHED_DISPATCH_EVENT, usageParserFor, } from './agent-usage';
11
15
  export { calculateChecksum, verifyIntegrity } from './checksum';
12
16
  export type { CoherenceContext, CoherenceDiagnostic, CoherenceResult, CoherenceSeverity, DeclaredOutputSchema, StepOutput, } from './coherence';
13
17
  export { validateCoherence, validateStepCoherence } from './coherence';
@@ -18,12 +22,15 @@ export { defaultRules, LintRuleRegistry, lintDossier, lintDossierFile, loadLintC
18
22
  export { parseDossierContent, parseDossierFile, RECOMMENDED_FIELDS, REQUIRED_FIELDS, VALID_RISK_LEVELS, VALID_STATUSES, validateFrontmatter, } from './parser';
19
23
  export type { ChecksumStatus, ContentRiskResult, SignatureStatus, VerificationRiskLevel, VerificationRiskResult, } from './risk-assessment';
20
24
  export { assessContentRisk, assessVerificationRisk } from './risk-assessment';
25
+ export type { RunLogEntry } from './run-log-entry';
26
+ export { runsLogPath } from './run-log-entry';
21
27
  export type { SecurityCategory, SecurityFinding, SecurityReport, SecurityRule, SecurityRuleContext, SecurityRuleSeverityOverride, SecurityScanConfig, SecuritySeverity, } from './security-scanner';
22
28
  export { buildReport, defaultSecurityRules, SecurityRuleRegistry, scanDossier, scanDossierFile, scanMarkdown, } from './security-scanner';
23
- export { loadTrustedKeys, verifySignature, verifyWithEd25519, verifyWithKms } from './signature';
29
+ export type { TrustedKeyEntry, TrustedKeyProblem } from './signature';
30
+ export { findTrustedIdentifier, isKmsKeyIdentifier, loadTrustedKeys, parseTrustedKeys, reportTrustedKeyProblems, trustedKeysFromContent, verifySignature, verifyWithEd25519, verifyWithKms, } from './signature';
24
31
  export { Ed25519Signer, Ed25519Verifier, getVerifierRegistry, KmsSigner, KmsVerifier, SignatureResult, Signer, Verifier, VerifierRegistry, VerifyResult, } from './signers';
25
32
  export type { SignatureCoverage } from './signing-payload';
26
- export { buildSignedPayload, canonicalizeFrontmatter, normalizePublicKey, publicKeysMatch, signatureCoverage, toSpkiPem, } from './signing-payload';
33
+ export { buildSignedPayload, canonicalizeFrontmatter, isSupportedPublicKey, normalizePublicKey, publicKeysMatch, signatureCoverage, toSpkiPem, } from './signing-payload';
27
34
  export type { ConfigLayer as TraceConfigLayer, ResolvedTraceConfig, TraceConfigOptions, TraceConfigSource, } from './trace-config';
28
35
  export { resolveTraceConfig } from './trace-config';
29
36
  export type { DossierTraceInfo, StepInput as TraceStepInput, TraceInput, TraceRecorder, TraceRecorderOptions, TraceStatus, TraceUpdate, } from './trace-recorder';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEhE,YAAY,EACV,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACvE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACtE,YAAY,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,oBAAoB,GACrB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,cAAc,GACf,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,mBAAmB,GACpB,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,m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ACV,gBAAgB,EAChB,SAAS,IAAI,cAAc,EAC3B,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -7,6 +7,8 @@
7
7
  * - Checksum verification (SHA256 integrity checks)
8
8
  * - Signature verification (Minisign and AWS KMS)
9
9
  * - Output coherence validation
10
+ * - Headless-agent usage parsing (token/cost from claude/opencode JSON results)
11
+ * - runs.jsonl entry schema and path (shared by cli + sched)
10
12
  * - TypeScript type definitions
11
13
  */
12
14
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -24,8 +26,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
24
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
25
27
  };
26
28
  Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.readFileIfExists = exports.getErrorStack = exports.getErrorMessage = exports.sha256Hex = exports.sha256Hash = exports.VALID_TRACE_STATUSES = exports.createTraceRecorder = exports.resolveTraceConfig = exports.toSpkiPem = exports.signatureCoverage = exports.publicKeysMatch = exports.normalizePublicKey = exports.canonicalizeFrontmatter = exports.buildSignedPayload = exports.VerifierRegistry = exports.KmsVerifier = exports.KmsSigner = exports.getVerifierRegistry = exports.Ed25519Verifier = exports.Ed25519Signer = exports.verifyWithKms = exports.verifyWithEd25519 = exports.verifySignature = exports.loadTrustedKeys = exports.scanMarkdown = exports.scanDossierFile = exports.scanDossier = exports.SecurityRuleRegistry = exports.defaultSecurityRules = exports.buildReport = exports.assessVerificationRisk = exports.assessContentRisk = exports.validateFrontmatter = exports.VALID_STATUSES = exports.VALID_RISK_LEVELS = exports.REQUIRED_FIELDS = exports.RECOMMENDED_FIELDS = exports.parseDossierFile = exports.parseDossierContent = exports.loadLintConfig = exports.lintDossierFile = exports.lintDossier = exports.LintRuleRegistry = exports.defaultRules = exports.formatDossierFile = exports.formatDossierContent = exports.validateStepCoherence = exports.validateCoherence = exports.verifyIntegrity = exports.calculateChecksum = void 0;
28
- exports.createDefaultVerificationResult = exports.scanBodyForUrls = exports.isUrlCoveredByDeclared = exports.isPlaceholderUrl = exports.findUndeclaredUrls = exports.findStaleReferences = exports.collectDeclaredUrls = void 0;
29
+ exports.normalizePublicKey = exports.isSupportedPublicKey = exports.canonicalizeFrontmatter = exports.buildSignedPayload = exports.VerifierRegistry = exports.KmsVerifier = exports.KmsSigner = exports.getVerifierRegistry = exports.Ed25519Verifier = exports.Ed25519Signer = exports.verifyWithKms = exports.verifyWithEd25519 = exports.verifySignature = exports.trustedKeysFromContent = exports.reportTrustedKeyProblems = exports.parseTrustedKeys = exports.loadTrustedKeys = exports.isKmsKeyIdentifier = exports.findTrustedIdentifier = exports.scanMarkdown = exports.scanDossierFile = exports.scanDossier = exports.SecurityRuleRegistry = exports.defaultSecurityRules = exports.buildReport = exports.runsLogPath = exports.assessVerificationRisk = exports.assessContentRisk = exports.validateFrontmatter = exports.VALID_STATUSES = exports.VALID_RISK_LEVELS = exports.REQUIRED_FIELDS = exports.RECOMMENDED_FIELDS = exports.parseDossierFile = exports.parseDossierContent = exports.loadLintConfig = exports.lintDossierFile = exports.lintDossier = exports.LintRuleRegistry = exports.defaultRules = exports.formatDossierFile = exports.formatDossierContent = exports.validateStepCoherence = exports.validateCoherence = exports.verifyIntegrity = exports.calculateChecksum = exports.usageParserFor = exports.SCHED_DISPATCH_EVENT = exports.parseOpenCodeUsage = exports.parseAgentUsage = void 0;
30
+ exports.createDefaultVerificationResult = exports.scanBodyForUrls = exports.isUrlCoveredByDeclared = exports.isPlaceholderUrl = exports.findUndeclaredUrls = exports.findStaleReferences = exports.collectDeclaredUrls = exports.readFileIfExists = exports.getErrorStack = exports.getErrorMessage = exports.sha256Hex = exports.sha256Hash = exports.VALID_TRACE_STATUSES = exports.createTraceRecorder = exports.resolveTraceConfig = exports.toSpkiPem = exports.signatureCoverage = exports.publicKeysMatch = void 0;
31
+ var agent_usage_1 = require("./agent-usage");
32
+ Object.defineProperty(exports, "parseAgentUsage", { enumerable: true, get: function () { return agent_usage_1.parseAgentUsage; } });
33
+ Object.defineProperty(exports, "parseOpenCodeUsage", { enumerable: true, get: function () { return agent_usage_1.parseOpenCodeUsage; } });
34
+ Object.defineProperty(exports, "SCHED_DISPATCH_EVENT", { enumerable: true, get: function () { return agent_usage_1.SCHED_DISPATCH_EVENT; } });
35
+ Object.defineProperty(exports, "usageParserFor", { enumerable: true, get: function () { return agent_usage_1.usageParserFor; } });
29
36
  // Checksum exports
30
37
  var checksum_1 = require("./checksum");
31
38
  Object.defineProperty(exports, "calculateChecksum", { enumerable: true, get: function () { return checksum_1.calculateChecksum; } });
@@ -57,6 +64,8 @@ Object.defineProperty(exports, "validateFrontmatter", { enumerable: true, get: f
57
64
  var risk_assessment_1 = require("./risk-assessment");
58
65
  Object.defineProperty(exports, "assessContentRisk", { enumerable: true, get: function () { return risk_assessment_1.assessContentRisk; } });
59
66
  Object.defineProperty(exports, "assessVerificationRisk", { enumerable: true, get: function () { return risk_assessment_1.assessVerificationRisk; } });
67
+ var run_log_entry_1 = require("./run-log-entry");
68
+ Object.defineProperty(exports, "runsLogPath", { enumerable: true, get: function () { return run_log_entry_1.runsLogPath; } });
60
69
  var security_scanner_1 = require("./security-scanner");
61
70
  Object.defineProperty(exports, "buildReport", { enumerable: true, get: function () { return security_scanner_1.buildReport; } });
62
71
  Object.defineProperty(exports, "defaultSecurityRules", { enumerable: true, get: function () { return security_scanner_1.defaultSecurityRules; } });
@@ -64,9 +73,13 @@ Object.defineProperty(exports, "SecurityRuleRegistry", { enumerable: true, get:
64
73
  Object.defineProperty(exports, "scanDossier", { enumerable: true, get: function () { return security_scanner_1.scanDossier; } });
65
74
  Object.defineProperty(exports, "scanDossierFile", { enumerable: true, get: function () { return security_scanner_1.scanDossierFile; } });
66
75
  Object.defineProperty(exports, "scanMarkdown", { enumerable: true, get: function () { return security_scanner_1.scanMarkdown; } });
67
- // Signature exports
68
76
  var signature_1 = require("./signature");
77
+ Object.defineProperty(exports, "findTrustedIdentifier", { enumerable: true, get: function () { return signature_1.findTrustedIdentifier; } });
78
+ Object.defineProperty(exports, "isKmsKeyIdentifier", { enumerable: true, get: function () { return signature_1.isKmsKeyIdentifier; } });
69
79
  Object.defineProperty(exports, "loadTrustedKeys", { enumerable: true, get: function () { return signature_1.loadTrustedKeys; } });
80
+ Object.defineProperty(exports, "parseTrustedKeys", { enumerable: true, get: function () { return signature_1.parseTrustedKeys; } });
81
+ Object.defineProperty(exports, "reportTrustedKeyProblems", { enumerable: true, get: function () { return signature_1.reportTrustedKeyProblems; } });
82
+ Object.defineProperty(exports, "trustedKeysFromContent", { enumerable: true, get: function () { return signature_1.trustedKeysFromContent; } });
70
83
  Object.defineProperty(exports, "verifySignature", { enumerable: true, get: function () { return signature_1.verifySignature; } });
71
84
  Object.defineProperty(exports, "verifyWithEd25519", { enumerable: true, get: function () { return signature_1.verifyWithEd25519; } });
72
85
  Object.defineProperty(exports, "verifyWithKms", { enumerable: true, get: function () { return signature_1.verifyWithKms; } });
@@ -81,6 +94,7 @@ Object.defineProperty(exports, "VerifierRegistry", { enumerable: true, get: func
81
94
  var signing_payload_1 = require("./signing-payload");
82
95
  Object.defineProperty(exports, "buildSignedPayload", { enumerable: true, get: function () { return signing_payload_1.buildSignedPayload; } });
83
96
  Object.defineProperty(exports, "canonicalizeFrontmatter", { enumerable: true, get: function () { return signing_payload_1.canonicalizeFrontmatter; } });
97
+ Object.defineProperty(exports, "isSupportedPublicKey", { enumerable: true, get: function () { return signing_payload_1.isSupportedPublicKey; } });
84
98
  Object.defineProperty(exports, "normalizePublicKey", { enumerable: true, get: function () { return signing_payload_1.normalizePublicKey; } });
85
99
  Object.defineProperty(exports, "publicKeysMatch", { enumerable: true, get: function () { return signing_payload_1.publicKeysMatch; } });
86
100
  Object.defineProperty(exports, "signatureCoverage", { enumerable: true, get: function () { return signing_payload_1.signatureCoverage; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;;;AAEH,mBAAmB;AACnB,uCAAgE;AAAvD,6GAAA,iBAAiB,OAAA;AAAE,2GAAA,eAAe,OAAA;AAU3C,yCAAuE;AAA9D,8GAAA,iBAAiB,OAAA;AAAE,kHAAA,qBAAqB,OAAA;AAEjD,oBAAoB;AACpB,yCAAsE;AAA7D,iHAAA,oBAAoB,OAAA;AAAE,8GAAA,iBAAiB,OAAA;AAUhD,iBAAiB;AACjB,mCAMkB;AALhB,sGAAA,YAAY,OAAA;AACZ,0GAAA,gBAAgB,OAAA;AAChB,qGAAA,WAAW,OAAA;AACX,yGAAA,eAAe,OAAA;AACf,wGAAA,cAAc,OAAA;AAEhB,iBAAiB;AACjB,mCAQkB;AAPhB,6GAAA,mBAAmB,OAAA;AACnB,0GAAA,gBAAgB,OAAA;AAChB,4GAAA,kBAAkB,OAAA;AAClB,yGAAA,eAAe,OAAA;AACf,2GAAA,iBAAiB,OAAA;AACjB,wGAAA,cAAc,OAAA;AACd,6GAAA,mBAAmB,OAAA;AASrB,0BAA0B;AAC1B,qDAA8E;AAArE,o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AA,+BAA+B,OAAA"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * The `~/.dossier/runs.jsonl` entry schema (#458, #524).
3
+ *
4
+ * Lives in `core`, not `cli`, so `packages/sched`'s dispatch path can write
5
+ * entries in the same shape `cli`'s `ai-dossier run` and `ai-dossier history`
6
+ * already read — one schema, two writers — without `sched` depending on
7
+ * `cli` (the dependency runs the other way). `cli/src/run-log.ts` re-exports
8
+ * this type and owns the actual file I/O (respecting the `auditLog` config
9
+ * flag); `sched` writes its own entries independently — see
10
+ * `packages/sched/src/run-log.ts`.
11
+ */
12
+ export interface RunLogEntry {
13
+ timestamp: string;
14
+ dossier: string;
15
+ resolved_version: string;
16
+ source: 'cache' | 'registry' | 'local' | 'url';
17
+ registry?: string;
18
+ /**
19
+ * How the version was resolved (only meaningful for registry sources):
20
+ * - 'pinned' — caller passed name@version explicitly
21
+ * - 'registry' — resolver called the registry and got a fresh version
22
+ * - 'cache' — resolver served from TTL'd resolution cache (no registry call)
23
+ * - 'stale-cache' — registry was unreachable; fell back to highest cached semver
24
+ * Useful for postmortems answering "did this run hit a stale resolution that
25
+ * masked a registry outage?". Absent for local files and URLs.
26
+ */
27
+ resolution_source?: 'pinned' | 'registry' | 'cache' | 'stale-cache';
28
+ verification: 'passed' | 'failed' | 'skipped' | 'nested-skip';
29
+ llm: string;
30
+ user: string;
31
+ cwd: string;
32
+ nested: boolean;
33
+ /**
34
+ * Deprecated: written by the pre-#401 update-check machinery. Retained on the
35
+ * interface so `dossier history` can still display this field when reading
36
+ * older runs.jsonl entries. Not written by new runs.
37
+ */
38
+ update_available?: string;
39
+ /**
40
+ * Cost/observability fields (#458). All optional and nullable so old-schema
41
+ * entries still parse; written by new runs with explicit nulls when a value
42
+ * is unavailable — never fabricated.
43
+ */
44
+ /** Wall-clock duration of the run in milliseconds (action start → entry write). */
45
+ duration_ms?: number | null;
46
+ /**
47
+ * The exact agent command spawned (binary + args). Prompt content is excluded
48
+ * (headless prompts travel over stdin). Null when nothing was spawned
49
+ * (nested-skip, failed verification, dry-run, no LLM detected, unknown LLM).
50
+ */
51
+ spawned_command?: string | null;
52
+ /** Model id as reported by the agent CLI, else the requested --model alias. Null when unknown. */
53
+ model?: string | null;
54
+ /** Exit code of the spawned agent process, or of the CLI action for early exits. Null when killed by a signal or failed to spawn. */
55
+ exit_code?: number | null;
56
+ /** Why the spawned process produced no exit code: spawn error (e.g. ENOENT) or signal. Null when the process exited normally. */
57
+ spawn_error?: string | null;
58
+ /** Input tokens reported by the agent CLI. Null when unavailable. */
59
+ input_tokens?: number | null;
60
+ /** Output tokens reported by the agent CLI. Null when unavailable. */
61
+ output_tokens?: number | null;
62
+ /**
63
+ * Cache-creation (write) and cache-read input tokens reported by the agent
64
+ * CLI (#524). Sourced from `modelUsage`, the same as `input_tokens`/
65
+ * `output_tokens` — see `parseAgentUsage` in `./agent-usage`. Null when
66
+ * unavailable.
67
+ */
68
+ cache_creation_tokens?: number | null;
69
+ cache_read_tokens?: number | null;
70
+ /** Total cost in USD reported by the agent CLI. Null when unavailable. */
71
+ total_cost_usd?: number | null;
72
+ /**
73
+ * The scheduler unit this run belongs to (#524), e.g. `issue:524` or
74
+ * `batch:b1` — set by `packages/sched` dispatch entries, null/absent for
75
+ * an ordinary `ai-dossier run` invocation (which has no unit).
76
+ */
77
+ unit?: string | null;
78
+ }
79
+ /**
80
+ * `~/.dossier/runs.jsonl` — the single location both writers (`cli`'s
81
+ * `ai-dossier run` and `packages/sched`'s dispatch path) append to, and both
82
+ * readers (`ai-dossier history`, `ai-dossier sched stats`) read from (#524).
83
+ * Hoisted here so the path is computed in exactly one place; before this,
84
+ * `cli/src/run-log.ts` and `packages/sched/src/run-log.ts` each built it
85
+ * independently and agreed only by coincidence. Testable via `home`.
86
+ */
87
+ export declare function runsLogPath(home?: string): string;
88
+ //# sourceMappingURL=run-log-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-log-entry.d.ts","sourceRoot":"","sources":["../src/run-log-entry.ts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AAC;IAC/B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAqB,GAAG,MAAM,CAE/D"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.runsLogPath = runsLogPath;
37
+ const os = __importStar(require("node:os"));
38
+ const path = __importStar(require("node:path"));
39
+ /**
40
+ * `~/.dossier/runs.jsonl` — the single location both writers (`cli`'s
41
+ * `ai-dossier run` and `packages/sched`'s dispatch path) append to, and both
42
+ * readers (`ai-dossier history`, `ai-dossier sched stats`) read from (#524).
43
+ * Hoisted here so the path is computed in exactly one place; before this,
44
+ * `cli/src/run-log.ts` and `packages/sched/src/run-log.ts` each built it
45
+ * independently and agreed only by coincidence. Testable via `home`.
46
+ */
47
+ function runsLogPath(home = os.homedir()) {
48
+ return path.join(home, '.dossier', 'runs.jsonl');
49
+ }
50
+ //# sourceMappingURL=run-log-entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-log-entry.js","sourceRoot":"","sources":["../src/run-log-entry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FA,kCAEC;AA5FD,4CAA8B;AAC9B,gDAAkC;AAiFlC;;;;;;;GAOG;AACH,SAAgB,WAAW,CAAC,OAAe,EAAE,CAAC,OAAO,EAAE;IACrD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;AACnD,CAAC"}
@@ -5,12 +5,99 @@
5
5
  * supporting multiple signature schemes (Ed25519 and AWS KMS).
6
6
  */
7
7
  import type { SignatureResult, VerifyResult } from './signers';
8
+ /** One `<public-key> <key-id>` entry from a trusted-keys file, as written. */
9
+ export interface TrustedKeyEntry {
10
+ publicKey: string;
11
+ keyId: string;
12
+ }
13
+ /**
14
+ * A line of a trusted-keys file that could not be read as an entry.
15
+ *
16
+ * Reported rather than silently dropped: a skipped entry means a key the user
17
+ * believes is trusted is not, and the only downstream symptom is `dossier verify`
18
+ * saying "not trusted" with nothing pointing back at the file.
19
+ */
20
+ export interface TrustedKeyProblem {
21
+ /** 1-based line number in the trusted-keys file. */
22
+ line: number;
23
+ message: string;
24
+ }
25
+ /**
26
+ * Split a trusted-keys file into `<public-key> <key-id>` pairs.
27
+ *
28
+ * One entry per line, except for PEM blocks: `dossier keys add` used to write its
29
+ * argument verbatim, so passing a PEM appended four lines that a line-oriented
30
+ * parse then shredded into entries matching nothing. Those blocks are rejoined so
31
+ * an already written file works without hand-editing — this only reassembles what
32
+ * the user wrote, it cannot widen a match.
33
+ *
34
+ * This is the single definition of what the trusted-key file format is: anything
35
+ * that lists, counts, or matches trusted keys must go through it, so `keys list`
36
+ * can never disagree with what verification actually trusts.
37
+ *
38
+ * Skipped lines come back alongside the entries rather than being dropped: every
39
+ * skip is a key the user thinks is trusted and isn't, so callers that can show
40
+ * the user something — `keys list`, and verification via `loadTrustedKeys` —
41
+ * report them instead of failing mute.
42
+ */
43
+ export declare function parseTrustedKeys(content: string): {
44
+ entries: TrustedKeyEntry[];
45
+ problems: TrustedKeyProblem[];
46
+ };
47
+ /**
48
+ * Print unusable trusted-key entries to stderr, bounded.
49
+ *
50
+ * `loadTrustedKeys` runs on every `dossier verify`, so this stays silent unless
51
+ * the file is genuinely malformed — and a malformed trust file is precisely when
52
+ * the user needs to hear about it.
53
+ */
54
+ export declare function reportTrustedKeyProblems(problems: TrustedKeyProblem[], source?: string): void;
55
+ /**
56
+ * Build the trusted-key map from the contents of a trusted-keys file.
57
+ *
58
+ * Keys are indexed under both the form they were written in and their normalized
59
+ * form, so a key registered in one encoding still matches a signature that
60
+ * carries another.
61
+ *
62
+ * @param source - Path named in warnings about unusable entries. Omit to stay silent.
63
+ */
64
+ export declare function trustedKeysFromContent(content: string, source?: string): Map<string, string>;
8
65
  /**
9
66
  * Load trusted keys from file
10
67
  * Default location: ~/.dossier/trusted-keys.txt
11
68
  * Format: <public-key> <key-id>
12
69
  */
13
70
  export declare function loadTrustedKeys(filePath?: string): Map<string, string>;
71
+ /**
72
+ * Whether a string identifies an AWS KMS key, and so is a usable trust-list entry
73
+ * for a KMS-signed dossier.
74
+ */
75
+ export declare function isKmsKeyIdentifier(value: string): boolean;
76
+ /**
77
+ * Resolve the identifier a signature is trusted under, or `undefined` if none of
78
+ * its key forms appear in the trust list.
79
+ *
80
+ * The signature and the trust list need not agree on encoding, so every form the
81
+ * *verifying* key carries is tried: the public key as written and normalized to
82
+ * raw base64. Every trust decision goes through here so "is it trusted" and "who
83
+ * is it" can never drift apart.
84
+ *
85
+ * Only the key material the verifier actually used is eligible, which is decided
86
+ * by the algorithm, not by which fields happen to be populated. `KmsVerifier`
87
+ * verifies against `key_id` and ignores `public_key` — which KMS signatures carry
88
+ * anyway — so for KMS only `key_id` can confer trust. Everything else verifies
89
+ * against `public_key`, so only that may.
90
+ *
91
+ * Letting a field the verifier ignored confer trust would hand it out for free:
92
+ * the trust list is keyed by public key and public keys are public, so an Ed25519
93
+ * dossier carrying `key_id: "<any trusted public key>"` would be trusted as that
94
+ * signer while verifying under an attacker's `public_key`.
95
+ */
96
+ export declare function findTrustedIdentifier(trustedKeys: Map<string, string>, signature: {
97
+ algorithm?: string;
98
+ key_id?: string;
99
+ public_key?: string;
100
+ }): string | undefined;
14
101
  /**
15
102
  * Verify signature using Ed25519
16
103
  * @param content - The content to verify
@@ -1 +1 @@
1
- {"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../src/signature.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAM/D;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAsCtE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,YAAY,CAkBd;AAED;;GAEG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,MAAM,SAAc,GACnB,OAAO,CAAC,YAAY,CAAC,CAsBvB;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,eAAe,GACzB,OAAO,CAAC,YAAY,CAAC,CAIvB"}
1
+ {"version":3,"file":"signature.d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