agentfootprint 9.48.0 → 9.49.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.
- package/CLAUDE.md +2 -1
- package/dist/adapters/observability/githubBugReporter.js +16 -2
- package/dist/adapters/observability/githubBugReporter.js.map +1 -1
- package/dist/conventions.js +60 -1
- package/dist/conventions.js.map +1 -1
- package/dist/core-flow/Conditional.js +6 -0
- package/dist/core-flow/Conditional.js.map +1 -1
- package/dist/core-flow/Graph.js +4 -0
- package/dist/core-flow/Graph.js.map +1 -1
- package/dist/core-flow/Parallel.js +6 -0
- package/dist/core-flow/Parallel.js.map +1 -1
- package/dist/esm/adapters/observability/githubBugReporter.js +16 -2
- package/dist/esm/adapters/observability/githubBugReporter.js.map +1 -1
- package/dist/esm/conventions.d.ts +45 -0
- package/dist/esm/conventions.js +57 -0
- package/dist/esm/conventions.js.map +1 -1
- package/dist/esm/core-flow/Conditional.js +6 -0
- package/dist/esm/core-flow/Conditional.js.map +1 -1
- package/dist/esm/core-flow/Graph.js +4 -0
- package/dist/esm/core-flow/Graph.js.map +1 -1
- package/dist/esm/core-flow/Parallel.js +6 -0
- package/dist/esm/core-flow/Parallel.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/bug-report/build.d.ts +18 -8
- package/dist/esm/lib/bug-report/build.js +111 -26
- package/dist/esm/lib/bug-report/build.js.map +1 -1
- package/dist/esm/lib/bug-report/envelope.d.ts +79 -0
- package/dist/esm/lib/bug-report/envelope.js +74 -0
- package/dist/esm/lib/bug-report/envelope.js.map +1 -0
- package/dist/esm/lib/bug-report/index.d.ts +1 -1
- package/dist/esm/lib/bug-report/types.d.ts +87 -3
- package/dist/esm/observe.d.ts +1 -1
- package/dist/esm/observe.js +6 -0
- package/dist/esm/observe.js.map +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/bug-report/build.js +111 -26
- package/dist/lib/bug-report/build.js.map +1 -1
- package/dist/lib/bug-report/envelope.js +78 -0
- package/dist/lib/bug-report/envelope.js.map +1 -0
- package/dist/observe.js +6 -0
- package/dist/observe.js.map +1 -1
- package/dist/types/conventions.d.ts +45 -0
- package/dist/types/conventions.d.ts.map +1 -1
- package/dist/types/core-flow/Conditional.d.ts.map +1 -1
- package/dist/types/core-flow/Graph.d.ts.map +1 -1
- package/dist/types/core-flow/Parallel.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/bug-report/build.d.ts +18 -8
- package/dist/types/lib/bug-report/build.d.ts.map +1 -1
- package/dist/types/lib/bug-report/envelope.d.ts +80 -0
- package/dist/types/lib/bug-report/envelope.d.ts.map +1 -0
- package/dist/types/lib/bug-report/index.d.ts +1 -1
- package/dist/types/lib/bug-report/index.d.ts.map +1 -1
- package/dist/types/lib/bug-report/types.d.ts +87 -3
- package/dist/types/lib/bug-report/types.d.ts.map +1 -1
- package/dist/types/observe.d.ts +1 -1
- package/dist/types/observe.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* stampConversation — put the bundle's evidence in the archive contract, or
|
|
4
|
+
* say in one sentence why it could not be.
|
|
5
|
+
*
|
|
6
|
+
* The repo has ONE archive contract (`RecordingEnvelope`) and several
|
|
7
|
+
* presentations over it. This bundle used to be an exception: it packed a bare
|
|
8
|
+
* `recording.json` plus an `environment.json` that repeated the producer facts
|
|
9
|
+
* the envelope already stamps, so the same two versions were written by two
|
|
10
|
+
* different pieces of code with no relationship between them. This is the fold
|
|
11
|
+
* — the envelope is BUILT here, never re-implemented, so every rule it enforces
|
|
12
|
+
* (identity is never invented, `droppedEvents` is proven or refused, an
|
|
13
|
+
* incomplete recording gets no `endedAt`) arrives whole.
|
|
14
|
+
*
|
|
15
|
+
* ## Why a refusal is a return value here, not a throw
|
|
16
|
+
*
|
|
17
|
+
* `persistRecording` throws when a run fact is indeterminate, and it is right
|
|
18
|
+
* to: its caller asked for an ARCHIVE, and an archive stamped with a guess is
|
|
19
|
+
* worse than none. A bug report's caller asked for something else — the
|
|
20
|
+
* evidence, in a zip, so a maintainer can open it. Throwing would leave that
|
|
21
|
+
* person with no bundle at all because the library could not name a start time.
|
|
22
|
+
*
|
|
23
|
+
* So the refusal travels instead of stopping the export: this returns the
|
|
24
|
+
* REASON, the bundle carries the bare recording under its own honest name, and
|
|
25
|
+
* the manifest states which fact was missing and the one line that supplies it.
|
|
26
|
+
* Nothing is stamped that was not known — which is the rule the throw exists to
|
|
27
|
+
* keep — and the report still gets filed.
|
|
28
|
+
*
|
|
29
|
+
* @internal Not a public export; `exportBugReport` is the door.
|
|
30
|
+
*/
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.stampConversation = void 0;
|
|
33
|
+
const recordingEnvelope_js_1 = require("../../recorders/observability/recordingEnvelope.js");
|
|
34
|
+
/**
|
|
35
|
+
* Envelope every recording of one conversation.
|
|
36
|
+
*
|
|
37
|
+
* @param sources the conversation's recordings, in order, each with whether it
|
|
38
|
+
* can prove its own drop count.
|
|
39
|
+
* @param facts what the reporter stated. `undefined` — the default, since
|
|
40
|
+
* `run` is optional on both entry points — is itself a refusal
|
|
41
|
+
* reason, and a named one.
|
|
42
|
+
*/
|
|
43
|
+
function stampConversation(sources, facts) {
|
|
44
|
+
if (facts === undefined || typeof facts.complete !== 'boolean') {
|
|
45
|
+
return {
|
|
46
|
+
field: 'complete',
|
|
47
|
+
refusal: 'run.complete was not stated. Nothing in a frozen recording says whether it captured ' +
|
|
48
|
+
'the run through to its end — a crash-handler snapshot and a finished run look ' +
|
|
49
|
+
'identical — so the library asks rather than guessing, and defaulting it would make ' +
|
|
50
|
+
'every partial recording claim to be whole. Pass run: { complete: true } (or false) ' +
|
|
51
|
+
'to exportBugReport.',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const envelopes = [];
|
|
55
|
+
for (const entry of sources) {
|
|
56
|
+
try {
|
|
57
|
+
envelopes.push((0, recordingEnvelope_js_1.buildRecordingEnvelope)(entry.source, {
|
|
58
|
+
run: {
|
|
59
|
+
complete: facts.complete,
|
|
60
|
+
// A count the library can CHECK is never overridden by one it
|
|
61
|
+
// cannot: a live handle knows what the cap discarded, so a stated
|
|
62
|
+
// number is only offered for the sources that carry no count.
|
|
63
|
+
...(!entry.countsDrops &&
|
|
64
|
+
facts.droppedEvents !== undefined && { droppedEvents: facts.droppedEvents }),
|
|
65
|
+
},
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
if (error instanceof recordingEnvelope_js_1.IndeterminateRunFactError) {
|
|
70
|
+
return { refusal: error.message, field: error.field };
|
|
71
|
+
}
|
|
72
|
+
throw error;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return { envelopes };
|
|
76
|
+
}
|
|
77
|
+
exports.stampConversation = stampConversation;
|
|
78
|
+
//# sourceMappingURL=envelope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envelope.js","sourceRoot":"","sources":["../../../src/lib/bug-report/envelope.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;AAEH,6FAK4D;AA2C5D;;;;;;;;GAQG;AACH,SAAgB,iBAAiB,CAC/B,OAAkC,EAClC,KAAoC;IAEpC,IAAI,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC/D,OAAO;YACL,KAAK,EAAE,UAAU;YACjB,OAAO,EACL,sFAAsF;gBACtF,gFAAgF;gBAChF,qFAAqF;gBACrF,qFAAqF;gBACrF,qBAAqB;SACxB,CAAC;IACJ,CAAC;IAED,MAAM,SAAS,GAAwB,EAAE,CAAC;IAC1C,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,CAAC;YACH,SAAS,CAAC,IAAI,CACZ,IAAA,6CAAsB,EAAC,KAAK,CAAC,MAAM,EAAE;gBACnC,GAAG,EAAE;oBACH,QAAQ,EAAE,KAAK,CAAC,QAAQ;oBACxB,8DAA8D;oBAC9D,kEAAkE;oBAClE,8DAA8D;oBAC9D,GAAG,CAAC,CAAC,KAAK,CAAC,WAAW;wBACpB,KAAK,CAAC,aAAa,KAAK,SAAS,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC;iBAC/E;aACF,CAAC,CACH,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,gDAAyB,EAAE,CAAC;gBAC/C,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC;YACxD,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,EAAE,SAAS,EAAE,CAAC;AACvB,CAAC;AAvCD,8CAuCC"}
|
package/dist/observe.js
CHANGED
|
@@ -102,6 +102,12 @@ Object.defineProperty(exports, "UnsafeRecordingIdError", { enumerable: true, get
|
|
|
102
102
|
// can consent to exactly what leaves; `exportBugReport` bundles the units they
|
|
103
103
|
// kept as named files plus a real (stored) zip. `githubBugReporter` — in this
|
|
104
104
|
// same door, from the providers barrel — files that bundle.
|
|
105
|
+
//
|
|
106
|
+
// The evidence in that zip is a RecordingEnvelope (bundle layout 2), built by
|
|
107
|
+
// the same `buildRecordingEnvelope` above rather than a second wrapper — so the
|
|
108
|
+
// producer facts are stamped once. `BugReportRunFacts` is the pair the envelope
|
|
109
|
+
// cannot derive; without it the bundle still ships, as the bare recording, with
|
|
110
|
+
// the manifest naming the fact that was missing.
|
|
105
111
|
var index_js_1 = require("./lib/bug-report/index.js");
|
|
106
112
|
Object.defineProperty(exports, "describeBugReport", { enumerable: true, get: function () { return index_js_1.describeBugReport; } });
|
|
107
113
|
Object.defineProperty(exports, "exportBugReport", { enumerable: true, get: function () { return index_js_1.exportBugReport; } });
|
package/dist/observe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observe.js","sourceRoot":"","sources":["../src/observe.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;;;;;;;;;;;;;;;;;;AAEH,4BAA4B;AAC5B,0EAAmG;AAA1F,qHAAA,eAAe,OAAA;AACxB,wEAAgG;AAAvF,mHAAA,cAAc,OAAA;AAEvB,+BAA+B;AAC/B,kFAGiD;AAF/C,6HAAA,mBAAmB,OAAA;AAGrB,sEAA6F;AAApF,iHAAA,aAAa,OAAA;AACtB,qFAoBuD;AAnBrD,uHAAA,gBAAgB,OAAA;AAChB,uHAAA,gBAAgB,OAAA;AAmBlB,mFAWsD;AAVpD,mHAAA,aAAa,OAAA;AACb,qHAAA,eAAe,OAAA;AACf,qHAAA,eAAe,OAAA;AASjB,uFAWwD;AAVtD,uHAAA,eAAe,OAAA;AACf,sHAAA,cAAc,OAAA;AACd,gIAAA,wBAAwB,OAAA;AAU1B,yEAAyE;AACzE,6EAA6E;AAC7E,6EAA6E;AAC7E,8EAA8E;AAC9E,uEAKgD;AAJ9C,yGAAA,SAAS,OAAA;AAMX,yEAAyE;AACzE,+EAA+E;AAC/E,+EAA+E;AAC/E,8EAA8E;AAC9E,4EAA4E;AAC5E,4DAA4D;AAC5D,uFAmBwD;AAlBtD,8HAAA,sBAAsB,OAAA;AACtB,wHAAA,gBAAgB,OAAA;AAChB,8HAAA,sBAAsB,OAAA;AACtB,iIAAA,yBAAyB,OAAA;AACzB,iIAAA,yBAAyB,OAAA;AACzB,mIAAA,2BAA2B,OAAA;AAe7B,yEAAyE;AACzE,8EAA8E;AAC9E,0EAA0E;AAC1E,8EAA8E;AAC9E,uFAKwD;AAJtD,yHAAA,iBAAiB,OAAA;A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,2HAAA,kBAAkB,OAAA;AAGpB,mFAMsD;AALpD,mHAAA,aAAa,OAAA;AACb,oHAAA,cAAc,OAAA;AAKhB,iFAIqD;AAHnD,iHAAA,YAAY,OAAA;AAId,4EAA4E;AAC5E,gFAAgF;AAChF,2FAO0D;AANxD,6HAAA,mBAAmB,OAAA;AAOrB,gFAAgF;AAChF,gFAAgF;AAChF,yGASiE;AAR/D,mIAAA,kBAAkB,OAAA;AAUpB,uDAAuD;AACvD,8DAA0D;AAAjD,yGAAA,SAAS,OAAA;AAElB,kEAAkE;AAClE,uEAAuE;AACvE,0EAA0E;AAC1E,4EAA4E;AAC5E,6EAA6E;AAC7E,yDAAyD;AACzD,6CAA2B;AAC3B,sEAAsE;AACtE,uEAAuE;AACvE,qEAAqE;AACrE,oEAAoE;AACpE,yFASyD;AARvD,2HAAA,kBAAkB,OAAA;AAClB,2HAAA,kBAAkB,OAAA;AASpB,+EASoD;AARlD,iHAAA,aAAa,OAAA;AACb,kHAAA,cAAc,OAAA;AAShB,sEAAsE;AACtE,4EAA4E;AAC5E,+CAA+C;AAC/C,0DAKuC;AAJrC,yGAAA,aAAa,OAAA;AACb,0GAAA,cAAc,OAAA;AACd,6GAAA,iBAAiB,OAAA;AACjB,uGAAA,WAAW,OAAA"}
|
|
@@ -59,6 +59,51 @@ export declare const SUBFLOW_IDS: {
|
|
|
59
59
|
readonly THINKING: "sf-thinking";
|
|
60
60
|
};
|
|
61
61
|
export type SubflowId = (typeof SUBFLOW_IDS)[keyof typeof SUBFLOW_IDS];
|
|
62
|
+
/**
|
|
63
|
+
* The subflow-id prefix the framework reserves for its OWN composition
|
|
64
|
+
* segments. Every id in {@link SUBFLOW_IDS} carries it except
|
|
65
|
+
* {@link SUBFLOW_IDS.FINAL} (a decider BRANCH KEY that doubles as a mount id,
|
|
66
|
+
* not a name we chose), and the set is deliberately open-ended — builders
|
|
67
|
+
* generate more of them per feature and per release (`sf-router-llm`,
|
|
68
|
+
* `sf-memory-read-<id>`, `sf-memory-write-<id>`, …).
|
|
69
|
+
*
|
|
70
|
+
* Reserved rather than merely conventional because every reader downstream
|
|
71
|
+
* tells LIBRARY PLUMBING from CONSUMER STRUCTURE by this prefix and nothing
|
|
72
|
+
* else:
|
|
73
|
+
*
|
|
74
|
+
* • commentary skips `sf-*` segments while walking `meta.subflowPath` back
|
|
75
|
+
* to a user-facing agent name (`commentary/commentaryTemplates.ts`);
|
|
76
|
+
* • `BoundaryRecorder` hides them from the StepGraph so they never show up
|
|
77
|
+
* as steps a person has to scrub past;
|
|
78
|
+
* • the OTel bridge drops a slot-fork selection whose members are all
|
|
79
|
+
* `sf-*` (`adapters/observability/otel.ts`);
|
|
80
|
+
* • {@link stageRole} and the pattern/fingerprint readers classify by the
|
|
81
|
+
* same convention.
|
|
82
|
+
*
|
|
83
|
+
* So a consumer branch named `sf-billing` does NOT fail like a name clash —
|
|
84
|
+
* it is silently read as framework plumbing and vanishes from the very views
|
|
85
|
+
* it was built to appear in. That is two different facts (framework segment /
|
|
86
|
+
* consumer segment) sharing one namespace with no law, which is why the doors
|
|
87
|
+
* that accept a consumer-chosen segment name refuse this prefix outright.
|
|
88
|
+
*/
|
|
89
|
+
export declare const RESERVED_SUBFLOW_PREFIX = "sf-";
|
|
90
|
+
/** True when a subflow-path segment falls inside the reserved namespace. */
|
|
91
|
+
export declare function isReservedSubflowSegment(segment: string): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Refuse a consumer-chosen name that would become a reserved subflow-path
|
|
94
|
+
* segment — at DECLARATION time, where the name was typed, rather than at run
|
|
95
|
+
* time where the damage is invisible.
|
|
96
|
+
*
|
|
97
|
+
* Refuse-by-domain: a name that cannot be declared cannot collide. There is no
|
|
98
|
+
* escape hatch and no rename-behind-the-scenes, because a silently rewritten
|
|
99
|
+
* id would break the one thing the consumer wanted (finding their own segment
|
|
100
|
+
* in the trace) in a second, quieter way.
|
|
101
|
+
*
|
|
102
|
+
* @param door the API that accepted the name, e.g. `Parallel.branch()`
|
|
103
|
+
* @param noun what the name IS at that door, e.g. `branch id`
|
|
104
|
+
* @param id the consumer-supplied name
|
|
105
|
+
*/
|
|
106
|
+
export declare function assertUnreservedSubflowSegment(door: string, noun: string, id: string): void;
|
|
62
107
|
/** Stage IDs — plain function stages that builders mount. */
|
|
63
108
|
export declare const STAGE_IDS: {
|
|
64
109
|
readonly SEED: "seed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conventions.d.ts","sourceRoot":"","sources":["../../src/conventions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,gEAAgE;AAChE,eAAO,MAAM,WAAW;IACtB;0EACsE;;IAEtE;;qDAEiD;;IAEjD,+DAA+D;;IAE/D,6BAA6B;;IAE7B,0BAA0B;;IAE1B,2CAA2C;;IAE3C,uDAAuD;;IAEvD,kCAAkC;;IAElC;;;;oCAIgC;;IAEhC;;;;;;gCAM4B;;IAE5B;;;wDAGoD;;IAEpD;;;;;iCAK6B;;CAErB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"conventions.d.ts","sourceRoot":"","sources":["../../src/conventions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,gEAAgE;AAChE,eAAO,MAAM,WAAW;IACtB;0EACsE;;IAEtE;;qDAEiD;;IAEjD,+DAA+D;;IAE/D,6BAA6B;;IAE7B,0BAA0B;;IAE1B,2CAA2C;;IAE3C,uDAAuD;;IAEvD,kCAAkC;;IAElC;;;;oCAIgC;;IAEhC;;;;;;gCAM4B;;IAE5B;;;wDAGoD;;IAEpD;;;;;iCAK6B;;CAErB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,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C/D,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,OAAO,CAEtD;AAID;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,aAAa,GAAG,UAAU,GAAG,UAAU,CAAC;AAuC3F;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAY/C;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAEzF;;;;;;;GAOG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CA8CzD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEhF,6CAA6C;AAC7C,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAS9F;AAED,gEAAgE;AAChE,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,YAAY,CAE/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Conditional.d.ts","sourceRoot":"","sources":["../../../src/core-flow/Conditional.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"Conditional.d.ts","sourceRoot":"","sources":["../../../src/core-flow/Conditional.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,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,UAAU,CAAM;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;gBAEjC,IAAI,EAAE,kBAAkB;IAIpC;;;;;;;;;OASG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,WAAW,EACnB,UAAU,CAAC,EAAE,MAAM,GAAG,wBAAwB,GAC7C,IAAI;IA0BP;;;;OAIG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,wBAAwB,GAAG,IAAI;IA2BhG,KAAK,IAAI,WAAW;CAQrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Graph.d.ts","sourceRoot":"","sources":["../../../src/core-flow/Graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;
|
|
1
|
+
{"version":3,"file":"Graph.d.ts","sourceRoot":"","sources":["../../../src/core-flow/Graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;AAGH,OAAO,EAML,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,iBAAiB,EAEvB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAa,MAAM,uBAAuB,CAAC;AAS9D;;;;GAIG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,O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H,wBAAgB,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,KAAK,CAE/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parallel.d.ts","sourceRoot":"","sources":["../../../src/core-flow/Parallel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"Parallel.d.ts","sourceRoot":"","sources":["../../../src/core-flow/Parallel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAML,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,iBAAiB,EAEvB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAe,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAa,MAAM,uBAAuB,CAAC;AAW9D,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC3D;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;CAC5C;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,KAAK,WAAW,GAAG,MAAM,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,CAAC,CAAC;AAEvD,MAAM,MAAM,OAAO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C;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,qBAAqB,GAAG,IAAI;IAqC1F;;;OAGG;IACH,WAAW,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI;IAQ9B,oEAAoE;IACpE,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI;IAQ7C;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,EAAE,eAAe,GAAG,IAAI;IAQ9C,KAAK,IAAI,QAAQ;CAQlB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import './cache/strategies/OpenAICacheStrategy.js';
|
|
|
10
10
|
import './cache/strategies/BedrockCacheStrategy.js';
|
|
11
11
|
export type { CombinedRecorder, ScopeRecorder, FlowRecorder, EmitRecorder, WriteEvent, ReadEvent, CommitEvent, StageEvent, ErrorEvent, FlowStageEvent, FlowNextEvent, FlowDecisionEvent, FlowForkEvent, FlowSelectedEvent, FlowSubflowEvent, FlowSubflowRegisteredEvent, FlowLoopEvent, FlowBreakEvent, FlowErrorEvent, TraversalContext, EmitEvent, RedactionPolicy, RedactionReport, } from 'footprintjs';
|
|
12
12
|
export * from './adapters/types.js';
|
|
13
|
-
export { INJECTION_KEYS, injectionKeyForSlot, isInjectionKey, type InjectionKey, stageRole, type StageRole, milestoneFor, type Milestone, type MilestoneKind, } from './conventions.js';
|
|
13
|
+
export { INJECTION_KEYS, injectionKeyForSlot, isInjectionKey, type InjectionKey, stageRole, type StageRole, milestoneFor, type Milestone, type MilestoneKind, RESERVED_SUBFLOW_PREFIX, isReservedSubflowSegment, } from './conventions.js';
|
|
14
14
|
export { COMPOSITION_KEYS, type BudgetPressureRecord, type CompositionKey, type EvictionRecord, type InjectionRecord, type SlotComposition, } from './recorders/core/types.js';
|
|
15
15
|
export { type RunContext } from './bridge/eventMeta.js';
|
|
16
16
|
export { contextEngineering, isEngineeredSource, isBaselineSource, ENGINEERED_SOURCES, BASELINE_SOURCES, type ContextEngineeringHandle, type ContextEngineeringUnsubscribe, type ContextInjectedEvent, type ContextInjectedListener, } from './recorders/core/contextEngineering.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAOpD,YAAY,EAEV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAY,EAEZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EAEV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,cAAc,EACd,gBAAgB,EAEhB,SAAS,EAET,eAAe,EACf,eAAe,GAChB,MAAM,aAAa,CAAC;AAGrB,cAAc,qBAAqB,CAAC;AAIpC,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,YAAY,EAKjB,SAAS,EACT,KAAK,SAAS,EAKd,YAAY,EACZ,KAAK,SAAS,EACd,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAOpD,YAAY,EAEV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAY,EAEZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EAEV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,cAAc,EACd,g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,EACL,KAAK,EACL,KAAK,EACL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,sBAAsB,CAAC;AAkB9B,OAAO,EACL,eAAe,EACf,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,GACrB,MAAM,kCAAkC,CAAC;AAS1C,cAAc,qBAAqB,CAAC;AAWpC,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,cAAc,EACd,KAAK,qBAAqB,EAC1B,KAAK,WAAW,GACjB,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC"}
|
|
@@ -20,22 +20,32 @@
|
|
|
20
20
|
* it; the two-call shape is what makes a browser consent dialog possible at
|
|
21
21
|
* all, because a dialog cannot ask about a blob it has not measured.
|
|
22
22
|
*
|
|
23
|
-
* ## What is in the bundle
|
|
23
|
+
* ## What is in the bundle (layout 2 — `manifest.manifestVersion`)
|
|
24
24
|
*
|
|
25
25
|
* | file | what it is |
|
|
26
26
|
* |---|---|
|
|
27
27
|
* | `manifest.json` | this manifest — always present, never a selectable unit |
|
|
28
|
-
* | `
|
|
28
|
+
* | `envelope.json` | the run as a `RecordingEnvelope`: the archive contract, with the canon `{ snapshot, events, structure }` under `recording` |
|
|
29
|
+
* | `recording.json` | the bare recording — ONLY when the envelope's run facts were not available, with the manifest naming the missing one |
|
|
29
30
|
* | `conversations/<id>.json` | one file per conversation, when there is more than one run |
|
|
30
31
|
* | `conversation.json` | the readable transcript, derived from the events |
|
|
31
32
|
* | `narrative.txt` | the narrative recorder's lines, when one was attached |
|
|
32
|
-
* | `environment.json` |
|
|
33
|
+
* | `environment.json` | the HOST that ran it + the reporter's prose |
|
|
33
34
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
35
|
+
* The evidence file is named for what it is, and there is never more than one
|
|
36
|
+
* of it: a bundle carrying both an envelope and a copy of the recording it
|
|
37
|
+
* already contains would double the biggest file in the archive — and the
|
|
38
|
+
* archive is store-only, so doubling is real bytes, against a ceiling a
|
|
39
|
+
* reporter has to fit under.
|
|
40
|
+
*
|
|
41
|
+
* `environment.json` is the host and NOTHING that identifies a machine: Node
|
|
42
|
+
* version, platform, architecture. **No username, no hostname, no working
|
|
43
|
+
* directory, no environment variables, no file paths.** A bug report should not
|
|
44
|
+
* be the way an internal directory layout leaves a company. The producer
|
|
45
|
+
* versions it used to repeat now live where the archive contract stamps them,
|
|
46
|
+
* in `envelope.json`'s `producer` — one fact, one place. (The manifest's own
|
|
47
|
+
* `environment` block still prints both for the human reading the issue; it is
|
|
48
|
+
* a summary, not a second archive.)
|
|
39
49
|
*
|
|
40
50
|
* ## Redaction is already done, and the manifest proves it
|
|
41
51
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/lib/bug-report/build.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/lib/bug-report/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAQH,OAAO,KAAK,EACV,SAAS,EAIT,cAAc,EACd,iBAAiB,EAIjB,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAinBpB;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIjD;AAyCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,cAAc,EACrB,OAAO,GAAE,wBAA6B,GACrC,iBAAiB,CAWnB;AAoCD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,sBAAsB,GAAG,SAAS,CA4EjG;AAMD,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,MAAM,CAErE;AAED,2EAA2E;AAC3E,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ7C"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* stampConversation — put the bundle's evidence in the archive contract, or
|
|
3
|
+
* say in one sentence why it could not be.
|
|
4
|
+
*
|
|
5
|
+
* The repo has ONE archive contract (`RecordingEnvelope`) and several
|
|
6
|
+
* presentations over it. This bundle used to be an exception: it packed a bare
|
|
7
|
+
* `recording.json` plus an `environment.json` that repeated the producer facts
|
|
8
|
+
* the envelope already stamps, so the same two versions were written by two
|
|
9
|
+
* different pieces of code with no relationship between them. This is the fold
|
|
10
|
+
* — the envelope is BUILT here, never re-implemented, so every rule it enforces
|
|
11
|
+
* (identity is never invented, `droppedEvents` is proven or refused, an
|
|
12
|
+
* incomplete recording gets no `endedAt`) arrives whole.
|
|
13
|
+
*
|
|
14
|
+
* ## Why a refusal is a return value here, not a throw
|
|
15
|
+
*
|
|
16
|
+
* `persistRecording` throws when a run fact is indeterminate, and it is right
|
|
17
|
+
* to: its caller asked for an ARCHIVE, and an archive stamped with a guess is
|
|
18
|
+
* worse than none. A bug report's caller asked for something else — the
|
|
19
|
+
* evidence, in a zip, so a maintainer can open it. Throwing would leave that
|
|
20
|
+
* person with no bundle at all because the library could not name a start time.
|
|
21
|
+
*
|
|
22
|
+
* So the refusal travels instead of stopping the export: this returns the
|
|
23
|
+
* REASON, the bundle carries the bare recording under its own honest name, and
|
|
24
|
+
* the manifest states which fact was missing and the one line that supplies it.
|
|
25
|
+
* Nothing is stamped that was not known — which is the rule the throw exists to
|
|
26
|
+
* keep — and the report still gets filed.
|
|
27
|
+
*
|
|
28
|
+
* @internal Not a public export; `exportBugReport` is the door.
|
|
29
|
+
*/
|
|
30
|
+
import { type RecordingEnvelope, type RecordingSource } from '../../recorders/observability/recordingEnvelope.js';
|
|
31
|
+
import type { BugReportRunFacts } from './types.js';
|
|
32
|
+
/**
|
|
33
|
+
* One recording, plus the one thing only the CALL SITE knows about it: whether
|
|
34
|
+
* the thing we were handed can count its own dropped events.
|
|
35
|
+
*/
|
|
36
|
+
export interface EnvelopeSource {
|
|
37
|
+
/** What `buildRecordingEnvelope` reads: a live handle, or a bare recording. */
|
|
38
|
+
readonly source: RecordingSource;
|
|
39
|
+
/**
|
|
40
|
+
* `true` for a live `recordRun` handle — it counts what the `maxEvents` cap
|
|
41
|
+
* discarded, so nothing the caller states may override it.
|
|
42
|
+
*/
|
|
43
|
+
readonly countsDrops: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The result for ONE conversation: every recording enveloped, or none of them
|
|
47
|
+
* and the reason.
|
|
48
|
+
*
|
|
49
|
+
* All-or-nothing on purpose. A conversation file holding two envelopes and one
|
|
50
|
+
* bare recording would need a reader to check each entry's shape before it
|
|
51
|
+
* could read any of them, and a file whose shape depends on its contents is the
|
|
52
|
+
* kind of archive this program exists to stop producing.
|
|
53
|
+
*/
|
|
54
|
+
export interface StampedConversation {
|
|
55
|
+
/** In the recordings' own order. Absent when {@link refusal} is present. */
|
|
56
|
+
readonly envelopes?: readonly RecordingEnvelope[];
|
|
57
|
+
/** One sentence naming the missing fact and how to supply it. */
|
|
58
|
+
readonly refusal?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The envelope field that could not be determined — `'complete'` when the
|
|
61
|
+
* reporter stated no run facts at all.
|
|
62
|
+
*
|
|
63
|
+
* The caller needs it to know whether the fix is even available at this door:
|
|
64
|
+
* `complete` and `droppedEvents` are stated HERE, while `startedAt` and the
|
|
65
|
+
* identity fields are read from the recording's own events, so a refusal
|
|
66
|
+
* naming one of those has to be fixed at recording time.
|
|
67
|
+
*/
|
|
68
|
+
readonly field?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Envelope every recording of one conversation.
|
|
72
|
+
*
|
|
73
|
+
* @param sources the conversation's recordings, in order, each with whether it
|
|
74
|
+
* can prove its own drop count.
|
|
75
|
+
* @param facts what the reporter stated. `undefined` — the default, since
|
|
76
|
+
* `run` is optional on both entry points — is itself a refusal
|
|
77
|
+
* reason, and a named one.
|
|
78
|
+
*/
|
|
79
|
+
export declare function stampConversation(sources: readonly EnvelopeSource[], facts: BugReportRunFacts | undefined): StampedConversation;
|
|
80
|
+
//# sourceMappingURL=envelope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../../../src/lib/bug-report/envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAClD,iEAAiE;IACjE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,SAAS,cAAc,EAAE,EAClC,KAAK,EAAE,iBAAiB,GAAG,SAAS,GACnC,mBAAmB,CAoCrB"}
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
* promise this library wants to keep.
|
|
11
11
|
*/
|
|
12
12
|
export { describeBugReport, exportBugReport } from './build.js';
|
|
13
|
-
export type { BugReport, BugReportEnvironment, BugReportExcluded, BugReportFields, BugReportFile, BugReportFileSummary, BugReportInput, BugReportManifest, BugReportOversize, BugReportSource, BugReportUnit, DescribeBugReportOptions, ExportBugReportOptions, } from './types.js';
|
|
13
|
+
export type { BugReport, BugReportEnvironment, BugReportExcluded, BugReportFields, BugReportFile, BugReportFileSummary, BugReportInput, BugReportManifest, BugReportOversize, BugReportRunFacts, BugReportSource, BugReportUnit, DescribeBugReportOptions, ExportBugReportOptions, } from './types.js';
|
|
14
14
|
export type { Transcript, TranscriptStep, TranscriptTurn } from './transcript.js';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/bug-report/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAChE,YAAY,EACV,SAAS,EACT,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/bug-report/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAChE,YAAY,EACV,SAAS,EACT,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -70,6 +70,18 @@ export interface BugReportUnit {
|
|
|
70
70
|
readonly runCount?: number;
|
|
71
71
|
/** The hosting session id, when the runs carried one. */
|
|
72
72
|
readonly sessionId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Conversation units only. `true` when this conversation's evidence rides as
|
|
75
|
+
* a `RecordingEnvelope` — the archive contract, with the recording under its
|
|
76
|
+
* `recording` field; `false` when the envelope's run facts were not available
|
|
77
|
+
* and it rides as the bare recording instead.
|
|
78
|
+
*
|
|
79
|
+
* Stated per unit rather than per bundle because a bundle can be mixed: a
|
|
80
|
+
* live `recordRun` handle proves its own dropped-event count and a bare
|
|
81
|
+
* `Recording` alongside it cannot, so one conversation can be stamped while
|
|
82
|
+
* its neighbour is not. The manifest's notes name the missing fact.
|
|
83
|
+
*/
|
|
84
|
+
readonly enveloped?: boolean;
|
|
73
85
|
/** Files this unit puts in the bundle (a `file` unit has exactly one). */
|
|
74
86
|
readonly files: readonly string[];
|
|
75
87
|
}
|
|
@@ -92,7 +104,15 @@ export interface BugReportExcluded {
|
|
|
92
104
|
/** The unit ids that were offered and not included. */
|
|
93
105
|
readonly unitIds: readonly string[];
|
|
94
106
|
}
|
|
95
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* Versions, and deliberately nothing that identifies a machine or a person.
|
|
109
|
+
*
|
|
110
|
+
* This is the MANIFEST's summary block — the one a consent dialog and the issue
|
|
111
|
+
* body print. The bundled `environment.json` is deliberately NARROWER: since
|
|
112
|
+
* the bundle carries a {@link BugReportManifest.manifestVersion} 2 envelope,
|
|
113
|
+
* the producer versions are stamped there (`envelope.json` → `producer`) and
|
|
114
|
+
* the file keeps only the host half. One archive fact, one stamping place.
|
|
115
|
+
*/
|
|
96
116
|
export interface BugReportEnvironment {
|
|
97
117
|
/** This library's version, read from its own package manifest. */
|
|
98
118
|
readonly agentfootprint: string;
|
|
@@ -106,6 +126,45 @@ export interface BugReportEnvironment {
|
|
|
106
126
|
/** The reporting application's own version, when it told us. */
|
|
107
127
|
readonly appVersion?: string;
|
|
108
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* The run facts an archive envelope needs and a frozen recording cannot supply.
|
|
131
|
+
*
|
|
132
|
+
* The bundle's evidence rides as a `RecordingEnvelope` — the one archive
|
|
133
|
+
* contract this repo has — and that envelope refuses to stamp a fact it had to
|
|
134
|
+
* guess. Two of its fields have no derivation:
|
|
135
|
+
*
|
|
136
|
+
* `complete` nothing in a frozen recording says whether it reached the
|
|
137
|
+
* run's end; a crash-handler snapshot and a finished run
|
|
138
|
+
* look identical. Stated, or the envelope is not built.
|
|
139
|
+
* `droppedEvents` only the live `recordRun` handle counts what the
|
|
140
|
+
* `maxEvents` cap discarded.
|
|
141
|
+
*
|
|
142
|
+
* Everything else the envelope needs — `runId`, `sessionId`, `principal`,
|
|
143
|
+
* `tenant`, `startedAt`, `endedAt` — is derived per recording from that
|
|
144
|
+
* recording's OWN events, and is deliberately not settable here: a bundle may
|
|
145
|
+
* carry several runs, and one run id stated once cannot be true of all of them.
|
|
146
|
+
*/
|
|
147
|
+
export interface BugReportRunFacts {
|
|
148
|
+
/**
|
|
149
|
+
* Did each recording in this bundle capture its run through to the end?
|
|
150
|
+
*
|
|
151
|
+
* Say `false` for a recording frozen from a crash handler, a timeout or
|
|
152
|
+
* mid-stream. Leave the whole `run` option off and the bundle still carries
|
|
153
|
+
* the evidence — as the bare recording, with the manifest stating in a note
|
|
154
|
+
* which fact was missing and how to supply it.
|
|
155
|
+
*/
|
|
156
|
+
readonly complete: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Events lost to the recorder's `maxEvents` cap, for sources that cannot
|
|
159
|
+
* prove their own count.
|
|
160
|
+
*
|
|
161
|
+
* A live `recordRun` handle counts them, and that PROVEN count wins over
|
|
162
|
+
* anything stated here — a number the library can check is never overridden
|
|
163
|
+
* by a number it cannot. State this when the bundle is built from bare
|
|
164
|
+
* `Recording` objects, whose shape carries no count.
|
|
165
|
+
*/
|
|
166
|
+
readonly droppedEvents?: number;
|
|
167
|
+
}
|
|
109
168
|
/** The oversize verdict, with hints that name real, droppable unit ids. */
|
|
110
169
|
export interface BugReportOversize {
|
|
111
170
|
readonly totalBytes: number;
|
|
@@ -122,7 +181,19 @@ export interface BugReportOversize {
|
|
|
122
181
|
* the reporter's fields, and states the exclusions.
|
|
123
182
|
*/
|
|
124
183
|
export interface BugReportManifest {
|
|
125
|
-
|
|
184
|
+
/**
|
|
185
|
+
* The BUNDLE LAYOUT version — bumped when the file set or this manifest's own
|
|
186
|
+
* shape changes, so a reader can tell which archive it is holding instead of
|
|
187
|
+
* inferring it from which names happen to be present.
|
|
188
|
+
*
|
|
189
|
+
* 1 — the evidence rode as a bare `recording.json`, and `environment.json`
|
|
190
|
+
* repeated the producer versions the archive contract stamps.
|
|
191
|
+
* 2 — the evidence rides as `envelope.json`, a full `RecordingEnvelope`;
|
|
192
|
+
* `environment.json` keeps only the host facts the envelope does not
|
|
193
|
+
* hold. A conversation whose run facts could not be stamped falls back
|
|
194
|
+
* to `recording.json` and the manifest says which fact was missing.
|
|
195
|
+
*/
|
|
196
|
+
readonly manifestVersion: 2;
|
|
126
197
|
/** ISO 8601, UTC. Also the timestamp stamped on every zip entry. */
|
|
127
198
|
readonly createdAt: string;
|
|
128
199
|
/** Present on an export manifest; absent on a description. */
|
|
@@ -198,10 +269,23 @@ export interface ExportBugReportOptions extends BugReportFields {
|
|
|
198
269
|
readonly warnOverBytes?: number;
|
|
199
270
|
/** Override the timestamp — the only thing that makes the zip deterministic. */
|
|
200
271
|
readonly now?: Date;
|
|
272
|
+
/**
|
|
273
|
+
* The two run facts the archive envelope cannot derive. Supply them and the
|
|
274
|
+
* bundle's evidence rides as `envelope.json`; leave them off and it rides as
|
|
275
|
+
* the bare `recording.json`, with the manifest naming the missing fact.
|
|
276
|
+
*/
|
|
277
|
+
readonly run?: BugReportRunFacts;
|
|
201
278
|
}
|
|
202
|
-
/** `describeBugReport` takes nothing but the input, and the same
|
|
279
|
+
/** `describeBugReport` takes nothing but the input, and the same dials. */
|
|
203
280
|
export interface DescribeBugReportOptions {
|
|
204
281
|
readonly warnOverBytes?: number;
|
|
205
282
|
readonly now?: Date;
|
|
283
|
+
/**
|
|
284
|
+
* The same run facts {@link ExportBugReportOptions.run} takes — pass the same
|
|
285
|
+
* value to both calls. The offer measures the files the export will write, so
|
|
286
|
+
* stating the facts to one call and not the other would size the bundle from
|
|
287
|
+
* a different set of files than the one that leaves.
|
|
288
|
+
*/
|
|
289
|
+
readonly run?: BugReportRunFacts;
|
|
206
290
|
}
|
|
207
291
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/bug-report/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;AAE/D,iFAAiF;AACjF,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,SAAS,eAAe,EAAE,CAAC;AAE1E,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAC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;IAChC,gFAAgF;IAChF,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAED,2EAA2E;AAC3E,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;IACpB;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,iBAAiB,CAAC;CAClC"}
|
package/dist/types/observe.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export { attachFlowchart, buildStepGraph, buildStepGraphFromEvents, type StepGra
|
|
|
41
41
|
export { recordRun, type Recording, type RecordRunOptions, type RunRecorder, } from './recorders/observability/recordRun.js';
|
|
42
42
|
export { buildRecordingEnvelope, persistRecording, FULL_PRIVACY_POLICY_ID, RECORDING_ENVELOPE_FORMAT, IndeterminateRunFactError, UnsupportedPrivacyModeError, type BuildRecordingEnvelopeOptions, type PersistRecordingOptions, type RecordingConfiguration, type RecordingEnvelope, type RecordingPrivacy, type RecordingPrivacyMode, type RecordingProducer, type RecordingRun, type RecordingRunFacts, type RecordingSink, type RecordingSource, type RecordingTimestamp, } from './recorders/observability/recordingEnvelope.js';
|
|
43
43
|
export { fileRecordingSink, recordingFileName, UnsafeRecordingIdError, type FileRecordingSinkOptions, } from './recorders/observability/fileRecordingSink.js';
|
|
44
|
-
export { describeBugReport, exportBugReport, type BugReport, type BugReportEnvironment, type BugReportExcluded, type BugReportFields, type BugReportFile, type BugReportFileSummary, type BugReportInput, type BugReportManifest, type BugReportOversize, type BugReportSource, type BugReportUnit, type DescribeBugReportOptions, type ExportBugReportOptions, type Transcript, type TranscriptStep, type TranscriptTurn, } from './lib/bug-report/index.js';
|
|
44
|
+
export { describeBugReport, exportBugReport, type BugReport, type BugReportEnvironment, type BugReportExcluded, type BugReportFields, type BugReportFile, type BugReportFileSummary, type BugReportInput, type BugReportManifest, type BugReportOversize, type BugReportRunFacts, type BugReportSource, type BugReportUnit, type DescribeBugReportOptions, type ExportBugReportOptions, type Transcript, type TranscriptStep, type TranscriptTurn, } from './lib/bug-report/index.js';
|
|
45
45
|
export { summarizeEmbeddings, summarizeVector, type EmbeddingSummary, } from './recorders/observability/embeddingSummary.js';
|
|
46
46
|
export { serializeTrace, redactContent, traceToStepGraph, type Trace, type TraceSummary, type TraceRedaction, type SerializeTraceOptions, } from './recorders/observability/trace.js';
|
|
47
47
|
export { attachLocalObservability, type LocalObservabilityHandle, type LocalObservabilityOptions, } from './recorders/observability/localObservability.js';
|