@rasputin-ai/core 0.5.0-alpha.9 → 0.5.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.
Files changed (60) hide show
  1. package/README.md +3 -3
  2. package/dist/announce-deploy/announce-deploy.d.ts +2 -2
  3. package/dist/announce-deploy/announce-deploy.d.ts.map +1 -1
  4. package/dist/create-client/create-client-types.d.ts +23 -8
  5. package/dist/create-client/create-client-types.d.ts.map +1 -1
  6. package/dist/create-client/create-client.d.ts.map +1 -1
  7. package/dist/create-client/is-client-enabled.d.ts +17 -3
  8. package/dist/create-client/is-client-enabled.d.ts.map +1 -1
  9. package/dist/create-ingest-event/create-ingest-event-types.d.ts +4 -1
  10. package/dist/create-ingest-event/create-ingest-event-types.d.ts.map +1 -1
  11. package/dist/create-ingest-event/runtime-execution-state-types.d.ts +104 -43
  12. package/dist/create-ingest-event/runtime-execution-state-types.d.ts.map +1 -1
  13. package/dist/derivation/canonical-json.d.ts +0 -1
  14. package/dist/derivation/canonical-json.d.ts.map +1 -1
  15. package/dist/derivation/hash-instrumentation-manifest.d.ts +2 -2
  16. package/dist/derivation/hash-instrumentation-manifest.d.ts.map +1 -1
  17. package/dist/derivation/rasputin-wire-tag.d.ts +14 -2
  18. package/dist/derivation/rasputin-wire-tag.d.ts.map +1 -1
  19. package/dist/derivation/sensitive-property-name.d.ts +3 -0
  20. package/dist/derivation/sensitive-property-name.d.ts.map +1 -0
  21. package/dist/derivation/sha256.d.ts +0 -1
  22. package/dist/derivation/sha256.d.ts.map +1 -1
  23. package/dist/index.d.ts +4 -5
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +860 -1238
  26. package/dist/instrumentation-manifest/instrumentation-manifest-types.d.ts +26 -2
  27. package/dist/instrumentation-manifest/instrumentation-manifest-types.d.ts.map +1 -1
  28. package/dist/instrumentation-manifest/upload-instrumentation-manifest.d.ts +1 -0
  29. package/dist/instrumentation-manifest/upload-instrumentation-manifest.d.ts.map +1 -1
  30. package/dist/normalize-frames/normalize-frames.d.ts.map +1 -1
  31. package/dist/parse-stack/fold-synthetic-frames.d.ts +15 -0
  32. package/dist/parse-stack/fold-synthetic-frames.d.ts.map +1 -0
  33. package/dist/resolve-source-maps/resolve-source-maps.d.ts.map +1 -1
  34. package/dist/sdk-meta.d.ts +1 -1
  35. package/dist/sdk-meta.d.ts.map +1 -1
  36. package/dist/source-identity/source-identity.d.ts +14 -1
  37. package/dist/source-identity/source-identity.d.ts.map +1 -1
  38. package/dist/suppression/create-suppression.d.ts.map +1 -1
  39. package/dist/suppression/suppression-types.d.ts +2 -0
  40. package/dist/suppression/suppression-types.d.ts.map +1 -1
  41. package/dist/transport/create-transport.d.ts.map +1 -1
  42. package/dist/transport/node-http-fetch.d.ts +3 -0
  43. package/dist/transport/node-http-fetch.d.ts.map +1 -0
  44. package/dist/transport/process-shutdown-hooks.d.ts +8 -0
  45. package/dist/transport/process-shutdown-hooks.d.ts.map +1 -0
  46. package/dist/transport/send-batch.d.ts +1 -0
  47. package/dist/transport/send-batch.d.ts.map +1 -1
  48. package/dist/transport/transport-queue.d.ts +2 -1
  49. package/dist/transport/transport-queue.d.ts.map +1 -1
  50. package/dist/transport/transport-types.d.ts +36 -11
  51. package/dist/transport/transport-types.d.ts.map +1 -1
  52. package/package.json +2 -2
  53. package/dist/derivation/captured-value-markers.d.ts +0 -5
  54. package/dist/derivation/captured-value-markers.d.ts.map +0 -1
  55. package/dist/derivation/evaluate-derivation-plan.d.ts +0 -53
  56. package/dist/derivation/evaluate-derivation-plan.d.ts.map +0 -1
  57. package/dist/derivation/wire-values-equal.d.ts +0 -3
  58. package/dist/derivation/wire-values-equal.d.ts.map +0 -1
  59. package/dist/instrumentation-manifest/derivation-plan-types.d.ts +0 -142
  60. package/dist/instrumentation-manifest/derivation-plan-types.d.ts.map +0 -1
@@ -1,142 +0,0 @@
1
- /**
2
- * Keep in sync with `packages/~core/data-types/derivation-plan-types.ts`.
3
- * ⚠️ DERIVATION LOCKSTEP — the IR must stay identical across capture and investigation.
4
- */
5
- export type PrimitiveConst = {
6
- type: 'null';
7
- } | {
8
- type: 'undefined';
9
- } | {
10
- type: 'boolean';
11
- value: boolean;
12
- } | {
13
- type: 'number';
14
- value: number;
15
- negativeZero?: true;
16
- } | {
17
- type: 'string';
18
- value: string;
19
- } | {
20
- type: 'bigint';
21
- value: string;
22
- };
23
- export type DerivationBinaryOp = 'add' | 'sub' | 'mul' | 'div' | 'mod' | 'eq' | 'neq' | 'seq' | 'sneq' | 'lt' | 'lte' | 'gt' | 'gte';
24
- export type DerivationUnaryOp = 'plus' | 'minus' | 'not' | 'typeof';
25
- export type DerivationExpression = {
26
- id: number;
27
- kind: 'const';
28
- value: PrimitiveConst;
29
- } | {
30
- id: number;
31
- kind: 'param';
32
- index: number;
33
- } | {
34
- id: number;
35
- kind: 'root';
36
- rootId: number;
37
- } | {
38
- id: number;
39
- kind: 'alias';
40
- from: number;
41
- } | {
42
- id: number;
43
- kind: 'binary';
44
- op: DerivationBinaryOp;
45
- left: number;
46
- right: number;
47
- guard: 'numeric' | 'primitive' | 'none';
48
- } | {
49
- id: number;
50
- kind: 'unary';
51
- op: DerivationUnaryOp;
52
- operand: number;
53
- } | {
54
- id: number;
55
- kind: 'logical';
56
- op: 'and' | 'or' | 'nullish';
57
- left: number;
58
- right: number;
59
- } | {
60
- id: number;
61
- kind: 'cond';
62
- test: number;
63
- consequent: number;
64
- alternate: number;
65
- } | {
66
- id: number;
67
- kind: 'template';
68
- parts: Array<{
69
- kind: 'lit';
70
- value: string;
71
- } | {
72
- kind: 'expr';
73
- expressionId: number;
74
- }>;
75
- } | {
76
- id: number;
77
- kind: 'object';
78
- properties: Array<{
79
- key: string;
80
- value: number;
81
- }>;
82
- } | {
83
- id: number;
84
- kind: 'array';
85
- elements: Array<number | {
86
- kind: 'hole';
87
- }>;
88
- } | {
89
- id: number;
90
- kind: 'prop';
91
- object: number;
92
- key: string;
93
- } | {
94
- id: number;
95
- kind: 'index';
96
- array: number;
97
- index: number;
98
- } | {
99
- id: number;
100
- kind: 'pure_call';
101
- calleeFunctionId: string;
102
- args: number[];
103
- };
104
- export type CaptureReason = 'opaque_call' | 'unknown_property' | 'unsupported_expression' | 'guard_failure' | 'nondeterministic' | 'mutable_object' | 'imported_call' | 'dynamic_callee' | 'external_state';
105
- export type DerivationFallbackReason = 'unsupported_expression' | 'impure_function' | 'unknown_callee' | 'mutable_state' | 'async' | 'has_loop' | 'dynamic_access' | 'side_effect';
106
- export type CaptureBoundary = {
107
- id: number;
108
- reason: CaptureReason;
109
- expressionId?: number;
110
- line: number;
111
- column: number;
112
- };
113
- export type ControlFactDefinition = {
114
- id: number;
115
- kind: 'branch';
116
- testExpressionId: number;
117
- line: number;
118
- column: number;
119
- };
120
- export type DerivationVariable = {
121
- id: number;
122
- name: string;
123
- functionId: string;
124
- scopeId: string;
125
- line: number;
126
- column: number;
127
- assignmentId: number;
128
- expressionId: number;
129
- availableAtLine: number;
130
- availableAtColumn: number;
131
- };
132
- export type DerivationPlan = {
133
- planId: string;
134
- functionId: string;
135
- expressions: DerivationExpression[];
136
- variables: DerivationVariable[];
137
- captureBoundaries: CaptureBoundary[];
138
- controlFacts: ControlFactDefinition[];
139
- returnExpressionId?: number;
140
- fallbackReason?: DerivationFallbackReason;
141
- };
142
- //# sourceMappingURL=derivation-plan-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"derivation-plan-types.d.ts","sourceRoot":"","sources":["../../src/instrumentation-manifest/derivation-plan-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,cAAc,GACvB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,YAAY,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