@oscharko-dev/keiko 0.3.16 → 0.3.17

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 (214) hide show
  1. package/dist/ui/csp-hashes.json +6 -6
  2. package/dist/ui/static/404.html +1 -1
  3. package/dist/ui/static/__next.__PAGE__.txt +1 -1
  4. package/dist/ui/static/__next._full.txt +1 -1
  5. package/dist/ui/static/__next._head.txt +1 -1
  6. package/dist/ui/static/__next._index.txt +1 -1
  7. package/dist/ui/static/__next._tree.txt +1 -1
  8. package/dist/ui/static/_not-found/__next._full.txt +1 -1
  9. package/dist/ui/static/_not-found/__next._head.txt +1 -1
  10. package/dist/ui/static/_not-found/__next._index.txt +1 -1
  11. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  12. package/dist/ui/static/_not-found/__next._not-found.txt +1 -1
  13. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  14. package/dist/ui/static/_not-found.html +1 -1
  15. package/dist/ui/static/_not-found.txt +1 -1
  16. package/dist/ui/static/atlassian-connectors/__next._full.txt +1 -1
  17. package/dist/ui/static/atlassian-connectors/__next._head.txt +1 -1
  18. package/dist/ui/static/atlassian-connectors/__next._index.txt +1 -1
  19. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  20. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +1 -1
  21. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.txt +1 -1
  22. package/dist/ui/static/atlassian-connectors.html +1 -1
  23. package/dist/ui/static/atlassian-connectors.txt +1 -1
  24. package/dist/ui/static/index.html +1 -1
  25. package/dist/ui/static/index.txt +1 -1
  26. package/dist/ui/static/launch/__next._full.txt +1 -1
  27. package/dist/ui/static/launch/__next._head.txt +1 -1
  28. package/dist/ui/static/launch/__next._index.txt +1 -1
  29. package/dist/ui/static/launch/__next._tree.txt +1 -1
  30. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +1 -1
  31. package/dist/ui/static/launch/__next.launch.txt +1 -1
  32. package/dist/ui/static/launch.html +1 -1
  33. package/dist/ui/static/launch.txt +1 -1
  34. package/dist/ui/static/local-knowledge/__next._full.txt +1 -1
  35. package/dist/ui/static/local-knowledge/__next._head.txt +1 -1
  36. package/dist/ui/static/local-knowledge/__next._index.txt +1 -1
  37. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  38. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +1 -1
  39. package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +1 -1
  40. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +1 -1
  41. package/dist/ui/static/local-knowledge/capsule/__next._head.txt +1 -1
  42. package/dist/ui/static/local-knowledge/capsule/__next._index.txt +1 -1
  43. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  44. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +1 -1
  45. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +1 -1
  46. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +1 -1
  47. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  48. package/dist/ui/static/local-knowledge/capsule.txt +1 -1
  49. package/dist/ui/static/local-knowledge.html +1 -1
  50. package/dist/ui/static/local-knowledge.txt +1 -1
  51. package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.d.ts +8 -0
  52. package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.d.ts.map +1 -1
  53. package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.js +283 -16
  54. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.d.ts +71 -0
  55. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.d.ts.map +1 -1
  56. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.js +420 -11
  57. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts +23 -1
  58. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts.map +1 -1
  59. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.js +41 -7
  60. package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts +6 -0
  61. package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts.map +1 -1
  62. package/node_modules/@oscharko-dev/keiko-cli/dist/support.js +289 -13
  63. package/node_modules/@oscharko-dev/keiko-cli/package.json +13 -13
  64. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  65. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +2 -2
  66. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +2 -2
  67. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  68. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  69. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  70. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  71. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  72. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  73. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  74. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  75. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  76. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  77. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  78. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  79. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  80. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  81. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  82. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.d.ts +1 -0
  83. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.d.ts.map +1 -1
  84. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.js +26 -6
  85. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/index.d.ts +2 -1
  86. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/index.d.ts.map +1 -1
  87. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/index.js +1 -0
  88. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.d.ts +19 -0
  89. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.d.ts.map +1 -0
  90. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.js +112 -0
  91. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/types.d.ts +2 -0
  92. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/types.d.ts.map +1 -1
  93. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  94. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  95. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  96. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  97. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  98. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  99. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  100. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  101. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  102. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  103. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  104. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  105. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +4 -0
  106. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
  107. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +25 -0
  108. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  109. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  110. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  111. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  112. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  113. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  114. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  115. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  116. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  117. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpPort.d.ts +1 -0
  118. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpPort.d.ts.map +1 -1
  119. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpPort.js +24 -1
  120. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  121. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +1 -0
  122. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
  123. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +3 -3
  124. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts.map +1 -1
  125. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.js +3 -3
  126. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +19 -4
  127. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
  128. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +23 -3
  129. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +2 -2
  130. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
  131. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +97 -13
  132. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
  133. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +8 -3
  134. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts.map +1 -1
  135. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.js +7 -5
  136. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +1 -1
  137. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
  138. package/node_modules/@oscharko-dev/keiko-server/dist/index.js +5 -2
  139. package/node_modules/@oscharko-dev/keiko-server/dist/memory-conflict-advisory.d.ts.map +1 -1
  140. package/node_modules/@oscharko-dev/keiko-server/dist/memory-conflict-advisory.js +9 -3
  141. package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.d.ts.map +1 -1
  142. package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.js +56 -19
  143. package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts +1 -1
  144. package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts.map +1 -1
  145. package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.js +80 -29
  146. package/node_modules/@oscharko-dev/keiko-server/dist/memory-maintenance-handlers.d.ts +2 -0
  147. package/node_modules/@oscharko-dev/keiko-server/dist/memory-maintenance-handlers.d.ts.map +1 -1
  148. package/node_modules/@oscharko-dev/keiko-server/dist/memory-maintenance-handlers.js +18 -2
  149. package/node_modules/@oscharko-dev/keiko-server/dist/memory-salience.d.ts.map +1 -1
  150. package/node_modules/@oscharko-dev/keiko-server/dist/memory-salience.js +18 -7
  151. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts +1 -1
  152. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts.map +1 -1
  153. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.d.ts.map +1 -1
  154. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.js +1 -0
  155. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.d.ts +11 -0
  156. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.d.ts.map +1 -1
  157. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.js +17 -0
  158. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figmaSnapshotRoutes.d.ts.map +1 -1
  159. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figmaSnapshotRoutes.js +10 -4
  160. package/node_modules/@oscharko-dev/keiko-server/dist/sink.d.ts +4 -0
  161. package/node_modules/@oscharko-dev/keiko-server/dist/sink.d.ts.map +1 -1
  162. package/node_modules/@oscharko-dev/keiko-server/dist/sink.js +98 -0
  163. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts.map +1 -1
  164. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.js +16 -1
  165. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-catalog.d.ts +2 -1
  166. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-catalog.d.ts.map +1 -1
  167. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-catalog.js +17 -2
  168. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts.map +1 -1
  169. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.js +2 -2
  170. package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.d.ts +4 -0
  171. package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.d.ts.map +1 -1
  172. package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.js +68 -13
  173. package/node_modules/@oscharko-dev/keiko-server/package.json +21 -21
  174. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  175. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  176. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  177. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  178. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  179. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  180. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  181. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  182. package/package.json +26 -25
  183. package/release-impact.catalog.json +69 -12
  184. package/vendor/oscharko-dev-keiko-cli-0.3.17.tgz +0 -0
  185. package/vendor/{oscharko-dev-keiko-connectors-0.3.16.tgz → oscharko-dev-keiko-connectors-0.3.17.tgz} +0 -0
  186. package/vendor/{oscharko-dev-keiko-contracts-0.3.16.tgz → oscharko-dev-keiko-contracts-0.3.17.tgz} +0 -0
  187. package/vendor/{oscharko-dev-keiko-evaluations-0.3.16.tgz → oscharko-dev-keiko-evaluations-0.3.17.tgz} +0 -0
  188. package/vendor/{oscharko-dev-keiko-evidence-0.3.16.tgz → oscharko-dev-keiko-evidence-0.3.17.tgz} +0 -0
  189. package/vendor/{oscharko-dev-keiko-git-0.3.16.tgz → oscharko-dev-keiko-git-0.3.17.tgz} +0 -0
  190. package/vendor/oscharko-dev-keiko-harness-0.3.17.tgz +0 -0
  191. package/vendor/{oscharko-dev-keiko-local-knowledge-0.3.16.tgz → oscharko-dev-keiko-local-knowledge-0.3.17.tgz} +0 -0
  192. package/vendor/{oscharko-dev-keiko-memory-capture-0.3.16.tgz → oscharko-dev-keiko-memory-capture-0.3.17.tgz} +0 -0
  193. package/vendor/oscharko-dev-keiko-memory-consolidation-0.3.17.tgz +0 -0
  194. package/vendor/{oscharko-dev-keiko-memory-governance-0.3.16.tgz → oscharko-dev-keiko-memory-governance-0.3.17.tgz} +0 -0
  195. package/vendor/{oscharko-dev-keiko-memory-retrieval-0.3.16.tgz → oscharko-dev-keiko-memory-retrieval-0.3.17.tgz} +0 -0
  196. package/vendor/{oscharko-dev-keiko-memory-vault-0.3.16.tgz → oscharko-dev-keiko-memory-vault-0.3.17.tgz} +0 -0
  197. package/vendor/{oscharko-dev-keiko-model-gateway-0.3.16.tgz → oscharko-dev-keiko-model-gateway-0.3.17.tgz} +0 -0
  198. package/vendor/{oscharko-dev-keiko-quality-intelligence-0.3.16.tgz → oscharko-dev-keiko-quality-intelligence-0.3.17.tgz} +0 -0
  199. package/vendor/{oscharko-dev-keiko-sandbox-0.3.16.tgz → oscharko-dev-keiko-sandbox-0.3.17.tgz} +0 -0
  200. package/vendor/{oscharko-dev-keiko-sdk-0.3.16.tgz → oscharko-dev-keiko-sdk-0.3.17.tgz} +0 -0
  201. package/vendor/oscharko-dev-keiko-security-0.3.17.tgz +0 -0
  202. package/vendor/oscharko-dev-keiko-server-0.3.17.tgz +0 -0
  203. package/vendor/{oscharko-dev-keiko-tools-0.3.16.tgz → oscharko-dev-keiko-tools-0.3.17.tgz} +0 -0
  204. package/vendor/{oscharko-dev-keiko-verification-0.3.16.tgz → oscharko-dev-keiko-verification-0.3.17.tgz} +0 -0
  205. package/vendor/{oscharko-dev-keiko-workflows-0.3.16.tgz → oscharko-dev-keiko-workflows-0.3.17.tgz} +0 -0
  206. package/vendor/{oscharko-dev-keiko-workspace-0.3.16.tgz → oscharko-dev-keiko-workspace-0.3.17.tgz} +0 -0
  207. package/vendor/oscharko-dev-keiko-cli-0.3.16.tgz +0 -0
  208. package/vendor/oscharko-dev-keiko-harness-0.3.16.tgz +0 -0
  209. package/vendor/oscharko-dev-keiko-memory-consolidation-0.3.16.tgz +0 -0
  210. package/vendor/oscharko-dev-keiko-security-0.3.16.tgz +0 -0
  211. package/vendor/oscharko-dev-keiko-server-0.3.16.tgz +0 -0
  212. /package/dist/ui/static/_next/static/{nV-Flxo4itfIzasbhujy9 → C3-P-HHUm15MLLjtORoPG}/_buildManifest.js +0 -0
  213. /package/dist/ui/static/_next/static/{nV-Flxo4itfIzasbhujy9 → C3-P-HHUm15MLLjtORoPG}/_clientMiddlewareManifest.js +0 -0
  214. /package/dist/ui/static/_next/static/{nV-Flxo4itfIzasbhujy9 → C3-P-HHUm15MLLjtORoPG}/_ssgManifest.js +0 -0
@@ -1,3 +1,4 @@
1
+ import { type StoreFingerprint } from "@oscharko-dev/keiko-contracts";
1
2
  export interface ServerLogLineView {
2
3
  readonly ts: string;
3
4
  readonly pid?: number | undefined;
@@ -8,7 +9,9 @@ export interface ServerLogLineView {
8
9
  readonly op: string;
9
10
  readonly errorKind?: string | undefined;
10
11
  readonly durationMs?: number | undefined;
12
+ readonly status?: number | undefined;
11
13
  readonly frames?: readonly string[] | undefined;
14
+ readonly causeChain?: readonly string[] | undefined;
12
15
  readonly extra?: Readonly<Record<string, unknown>> | undefined;
13
16
  }
14
17
  export interface LogTimeline {
@@ -18,6 +21,7 @@ export interface LogTimeline {
18
21
  readonly lastTs: string;
19
22
  readonly durationMs: number;
20
23
  readonly errorKinds: readonly string[];
24
+ readonly frames?: readonly string[] | undefined;
21
25
  }
22
26
  export interface ProcessSummary {
23
27
  readonly pid: number;
@@ -36,11 +40,78 @@ export interface AnalyzeAllResult {
36
40
  readonly processes: readonly ProcessSummary[];
37
41
  readonly legacyLineCount: number;
38
42
  readonly warnings: readonly string[];
43
+ readonly clusters: readonly OpCluster[];
39
44
  }
40
45
  export type SourceKind = "bundle" | "raw-log";
41
46
  export declare function detectSourceKind(firstLine: string | undefined): SourceKind;
47
+ export interface OpCluster {
48
+ readonly category: string;
49
+ readonly op: string;
50
+ readonly errorKind: string | null;
51
+ readonly count: number;
52
+ readonly sampleCorrelationIds: readonly string[];
53
+ }
42
54
  export declare function analyzeLogText(text: string): AnalyzeAllResult;
43
55
  export declare function findTimeline(result: AnalyzeAllResult, correlationId: string): LogTimeline | undefined;
44
56
  export declare function renderHumanTimeline(timeline: LogTimeline): string;
57
+ export declare function renderHumanClusters(clusters: readonly OpCluster[]): string;
45
58
  export declare function renderHumanAllTimelines(result: AnalyzeAllResult): string;
59
+ export interface GatewayReplayAttempt {
60
+ readonly outcome: "success" | "provider-error" | "rate-limit" | "timeout" | "transport-error";
61
+ readonly httpStatus?: number | undefined;
62
+ readonly retryAfterMs?: number | undefined;
63
+ readonly durationMs: number;
64
+ readonly finishReason?: string | undefined;
65
+ readonly usage?: {
66
+ readonly promptTokens: number;
67
+ readonly completionTokens: number;
68
+ } | undefined;
69
+ readonly toolCallCount?: number | undefined;
70
+ readonly firstTokenMs?: number | undefined;
71
+ }
72
+ export interface GatewayReplayScript {
73
+ readonly modelId: string;
74
+ readonly attempts: readonly GatewayReplayAttempt[];
75
+ }
76
+ export declare function buildGatewayReplayScript(lines: readonly ServerLogLineView[]): GatewayReplayScript | undefined;
77
+ export interface HttpRequestSeed {
78
+ readonly method?: string | undefined;
79
+ readonly routeTemplate?: string | undefined;
80
+ readonly queryParamNames?: readonly string[] | undefined;
81
+ readonly responseBytes?: number | undefined;
82
+ readonly status?: number | undefined;
83
+ readonly durationMs?: number | undefined;
84
+ readonly aborted?: boolean | undefined;
85
+ readonly frameCount?: number | undefined;
86
+ }
87
+ export interface IndexingJobSeed {
88
+ readonly sourceCount?: number | undefined;
89
+ readonly batchSize?: number | undefined;
90
+ readonly concurrency?: number | undefined;
91
+ readonly minChunkTokens?: number | undefined;
92
+ readonly maxChunkTokens?: number | undefined;
93
+ readonly overlapTokens?: number | undefined;
94
+ readonly tokenizerKind?: string | undefined;
95
+ }
96
+ export interface ReproductionSeed {
97
+ readonly schemaVersion: 1;
98
+ readonly generatedAt: string;
99
+ readonly sourceArtifact: {
100
+ readonly kind: SourceKind;
101
+ readonly lineCount: number;
102
+ readonly sha256: string;
103
+ };
104
+ readonly correlationId: string;
105
+ readonly timeline: readonly ServerLogLineView[];
106
+ readonly gatewayScript?: GatewayReplayScript | undefined;
107
+ readonly httpRequest?: HttpRequestSeed | undefined;
108
+ readonly storeFingerprint?: readonly StoreFingerprint[] | undefined;
109
+ readonly indexingJob?: IndexingJobSeed | undefined;
110
+ readonly stackFrames?: readonly string[] | undefined;
111
+ readonly causeChain?: readonly string[] | undefined;
112
+ readonly warnings: readonly string[];
113
+ }
114
+ export declare function buildReproductionSeed(text: string, correlationId: string, generatedAt: Date): ReproductionSeed | undefined;
115
+ export declare function renderGatewayReplayScriptFixture(script: GatewayReplayScript): string | undefined;
116
+ export declare function renderHumanReproductionSeed(seed: ReproductionSeed): string;
46
117
  //# sourceMappingURL=support-analyze.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"support-analyze.d.ts","sourceRoot":"","sources":["../src/support-analyze.ts"],"names":[],"mappings":"AA+CA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;CAChE;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,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BAAgB,GAAG,SAAS,CAgC9B;AAqED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAShG;AAMD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CA4B1E"}
@@ -1,10 +1,17 @@
1
1
  // `keiko support analyze` — pure logic: parsing, grouping, and ordering `server*.log` lines
2
- // (whether raw, or copied verbatim into a `keiko support export` bundle) by `correlationId`. This
3
- // is the MINIMAL Wave 1 `LogTimeline`: `lines`, `firstTs`, `lastTs`, `durationMs`, `errorKinds`.
4
- // `frames`/`clusters`/`gatewayScript` and a PER-TIMELINE `warnings` are Wave 6 `LogTimeline`
5
- // fields — they read data (aggregated stack frames, gateway retry/replay detail, cross-timeline
6
- // clustering) that no producer emits yet, so they are omitted here entirely rather than stubbed
7
- // with placeholder values the analyzer would then have to lie about.
2
+ // (whether raw, or copied verbatim into a `keiko support export` bundle) by `correlationId`.
3
+ //
4
+ // Wave 6 (epic #3233 closeout, w6-log-analyze-full) extends the Wave 1 minimal `LogTimeline`
5
+ // (`lines`, `firstTs`, `lastTs`, `durationMs`, `errorKinds`) with `frames` (the union of every
6
+ // `frames[]` entry seen for the correlationId, occurrence order, capped) — OMITTED, never an
7
+ // empty array, when no line in the timeline carried frames, the same no-placeholder-stubbing
8
+ // discipline the rest of this file already follows. It also adds whole-file `clusters`
9
+ // (`OpCluster[]`, grouping every parsed line by `(category, op, errorKind)` regardless of
10
+ // correlationId) and `buildReproductionSeed`/`renderGatewayReplayScriptFixture`, which assemble a
11
+ // `ReproductionSeed` — a `gatewayScript`/`httpRequest`/`storeFingerprint`/`indexingJob`/
12
+ // `stackFrames`/`causeChain` reconstruction for one correlationId, plus a `warnings` field naming
13
+ // exactly what could NOT be reconstructed and why. `support.ts` owns argv parsing and wires these
14
+ // exports (plus `renderHumanReproductionSeed`, below) to `--clusters`/`--seed`/`--emit-fixture`.
8
15
  //
9
16
  // Ordering: `seq` has shipped unconditionally since the v2 envelope (schemaVersion 2), so within
10
17
  // one process lifetime a v2 line is ordered by `seq` — never by its position in the file. ACROSS
@@ -28,6 +35,8 @@
28
35
  //
29
36
  // `support.ts` owns argv parsing, file reads, and stdout/stderr; this file owns everything that
30
37
  // can be exercised on an in-memory string.
38
+ import { createHash } from "node:crypto";
39
+ import { isStoreFingerprint } from "@oscharko-dev/keiko-contracts";
31
40
  const KNOWN_ENVELOPE_KEYS = new Set([
32
41
  "ts",
33
42
  "schemaVersion",
@@ -42,6 +51,7 @@ const KNOWN_ENVELOPE_KEYS = new Set([
42
51
  "status",
43
52
  "errorKind",
44
53
  "frames",
54
+ "causeChain",
45
55
  ]);
46
56
  function splitLines(text) {
47
57
  if (text.length === 0)
@@ -114,23 +124,35 @@ function readIdentity(record) {
114
124
  seq: optionalNumber(record, "seq"),
115
125
  };
116
126
  }
127
+ // Split out of `buildView` purely to keep that function's cyclomatic complexity under the
128
+ // repository's ceiling (AGENTS.md §6) — the three identity fields are optional for exactly the
129
+ // same "a pre-v2 line has none" reason as every other field there.
130
+ function identityFields(identity) {
131
+ return {
132
+ ...(identity.pid === undefined ? {} : { pid: identity.pid }),
133
+ ...(identity.instanceId === undefined ? {} : { instanceId: identity.instanceId }),
134
+ ...(identity.seq === undefined ? {} : { seq: identity.seq }),
135
+ };
136
+ }
117
137
  function buildView(ts, category, op, record, identity) {
118
138
  const level = optionalString(record, "level");
119
139
  const errorKind = optionalString(record, "errorKind");
120
140
  const durationMs = optionalNumber(record, "durationMs");
141
+ const status = optionalNumber(record, "status");
121
142
  const frames = optionalStringArray(record.frames);
143
+ const causeChain = optionalStringArray(record.causeChain);
122
144
  const extra = extraFields(record);
123
145
  return {
124
146
  ts,
125
147
  category,
126
148
  op,
127
- ...(identity.pid === undefined ? {} : { pid: identity.pid }),
128
- ...(identity.instanceId === undefined ? {} : { instanceId: identity.instanceId }),
129
- ...(identity.seq === undefined ? {} : { seq: identity.seq }),
149
+ ...identityFields(identity),
130
150
  ...(level === undefined ? {} : { level }),
131
151
  ...(errorKind === undefined ? {} : { errorKind }),
132
152
  ...(durationMs === undefined ? {} : { durationMs }),
153
+ ...(status === undefined ? {} : { status }),
133
154
  ...(frames === undefined ? {} : { frames }),
155
+ ...(causeChain === undefined ? {} : { causeChain }),
134
156
  ...(extra === undefined ? {} : { extra }),
135
157
  };
136
158
  }
@@ -225,6 +247,19 @@ function minMaxTs(values) {
225
247
  }
226
248
  return { first, last };
227
249
  }
250
+ // Wave 6 cap on `LogTimeline.frames`: the union is aggregated across every line in a (potentially
251
+ // long-running) timeline, not one line's own already-capped `frames[]` — a generous ceiling well
252
+ // above any single line's own 8-frame cap (ADR-0173 §2), never unbounded.
253
+ const MAX_TIMELINE_FRAMES = 32;
254
+ function aggregateFrames(views) {
255
+ const all = [];
256
+ for (const view of views) {
257
+ if (view.frames === undefined)
258
+ continue;
259
+ all.push(...view.frames);
260
+ }
261
+ return distinctInOrder(all).slice(0, MAX_TIMELINE_FRAMES);
262
+ }
228
263
  function buildTimeline(correlationId, group) {
229
264
  const views = [...assignOrder(group)].sort(compareOrdered).map((ordered) => ordered.line.view);
230
265
  const { first, last } = minMaxTs(views.map((view) => view.ts));
@@ -232,7 +267,16 @@ function buildTimeline(correlationId, group) {
232
267
  const parsedLast = Date.parse(last);
233
268
  const durationMs = Number.isFinite(parsedFirst) && Number.isFinite(parsedLast) ? parsedLast - parsedFirst : 0;
234
269
  const errorKinds = distinctInOrder(views.map((view) => view.errorKind).filter((kind) => kind !== undefined));
235
- return { correlationId, lines: views, firstTs: first, lastTs: last, durationMs, errorKinds };
270
+ const frames = aggregateFrames(views);
271
+ return {
272
+ correlationId,
273
+ lines: views,
274
+ firstTs: first,
275
+ lastTs: last,
276
+ durationMs,
277
+ errorKinds,
278
+ ...(frames.length === 0 ? {} : { frames }),
279
+ };
236
280
  }
237
281
  function exitReasonOf(view) {
238
282
  const reason = view.extra?.reason;
@@ -289,6 +333,41 @@ function buildProcessSummaries(lines) {
289
333
  }
290
334
  return [...accums.values()];
291
335
  }
336
+ const MAX_CLUSTER_SAMPLE_IDS = 5;
337
+ function clusterKey(category, op, errorKind) {
338
+ return `${category}\0${op}\0${errorKind ?? ""}`;
339
+ }
340
+ function newClusterAccum(category, op, errorKind) {
341
+ return { category, op, errorKind, count: 0, sampleCorrelationIds: [], seenIds: new Set() };
342
+ }
343
+ function addClusterSample(accum, correlationId) {
344
+ if (correlationId === undefined || accum.seenIds.has(correlationId))
345
+ return;
346
+ accum.seenIds.add(correlationId);
347
+ if (accum.sampleCorrelationIds.length < MAX_CLUSTER_SAMPLE_IDS) {
348
+ accum.sampleCorrelationIds.push(correlationId);
349
+ }
350
+ }
351
+ // Groups ALL parsed lines (correlated or not) by (category, op, errorKind), first-occurrence
352
+ // order — a `Map`'s insertion order, the same ranking rule every other aggregate in this file uses.
353
+ function buildOpClusters(lines) {
354
+ const accums = new Map();
355
+ for (const { view, correlationId } of lines) {
356
+ const errorKind = view.errorKind ?? null;
357
+ const key = clusterKey(view.category, view.op, errorKind);
358
+ const accum = accums.get(key) ?? newClusterAccum(view.category, view.op, errorKind);
359
+ accum.count += 1;
360
+ addClusterSample(accum, correlationId);
361
+ accums.set(key, accum);
362
+ }
363
+ return [...accums.values()].map((accum) => ({
364
+ category: accum.category,
365
+ op: accum.op,
366
+ errorKind: accum.errorKind,
367
+ count: accum.count,
368
+ sampleCorrelationIds: accum.sampleCorrelationIds,
369
+ }));
370
+ }
292
371
  function buildWarnings(legacyLineCount) {
293
372
  return legacyLineCount > 0
294
373
  ? [
@@ -319,7 +398,8 @@ export function analyzeLogText(text) {
319
398
  const processes = buildProcessSummaries(parsedLines);
320
399
  const legacyLineCount = parsedLines.filter((parsed) => !parsed.hasFullIdentity).length;
321
400
  const warnings = buildWarnings(legacyLineCount);
322
- return { timelines, malformedLineCount, processes, legacyLineCount, warnings };
401
+ const clusters = buildOpClusters(parsedLines);
402
+ return { timelines, malformedLineCount, processes, legacyLineCount, warnings, clusters };
323
403
  }
324
404
  export function findTimeline(result, correlationId) {
325
405
  return result.timelines.find((timeline) => timeline.correlationId === correlationId);
@@ -360,6 +440,21 @@ function renderWarnings(warnings) {
360
440
  const lines = warnings.map((warning) => `warning: ${warning}`);
361
441
  return `${lines.join("\n")}\n`;
362
442
  }
443
+ function renderCluster(cluster) {
444
+ const errorKind = cluster.errorKind ?? "-";
445
+ const samples = cluster.sampleCorrelationIds.join(",");
446
+ return (` ${cluster.category} ${cluster.op} [${errorKind}] count=${String(cluster.count)}` +
447
+ (samples.length > 0 ? ` sample=${samples}` : ""));
448
+ }
449
+ // Standalone, Wave 6: not called from `renderHumanAllTimelines` (a `--clusters` view is a
450
+ // deliberately DIFFERENT report from the default per-timeline one, not a section folded into it),
451
+ // exported for a future `--clusters` CLI flag to call directly.
452
+ export function renderHumanClusters(clusters) {
453
+ const header = `Clusters: ${String(clusters.length)}\n`;
454
+ if (clusters.length === 0)
455
+ return header;
456
+ return `${header}${clusters.map((cluster) => renderCluster(cluster)).join("\n")}\n`;
457
+ }
363
458
  export function renderHumanAllTimelines(result) {
364
459
  const sections = [];
365
460
  if (result.warnings.length > 0)
@@ -371,3 +466,317 @@ export function renderHumanAllTimelines(result) {
371
466
  : result.timelines.map((timeline) => renderHumanTimeline(timeline)).join("\n"));
372
467
  return sections.join("\n");
373
468
  }
469
+ const GATEWAY_RETRY_OPS = new Set([
470
+ "gateway.retry.scheduled",
471
+ "gateway.retry.exhausted",
472
+ "gateway.retry.budget-exhausted",
473
+ ]);
474
+ const GATEWAY_SUCCESS_OPS = new Set([
475
+ "gateway.chat.completed",
476
+ "gateway.stream.completed",
477
+ ]);
478
+ const GATEWAY_FAILURE_OPS = new Set([
479
+ "gateway.chat.failed",
480
+ "gateway.stream.failed",
481
+ "gateway.stream.abandoned",
482
+ ]);
483
+ function isGatewayAttemptLine(view) {
484
+ if (view.category !== "gateway")
485
+ return false;
486
+ return (GATEWAY_RETRY_OPS.has(view.op) ||
487
+ GATEWAY_SUCCESS_OPS.has(view.op) ||
488
+ GATEWAY_FAILURE_OPS.has(view.op));
489
+ }
490
+ // `errorKind` is the gateway's own `GatewayError.code` (`logErrorKind`, keiko-model-gateway's
491
+ // observability.ts) — this maps the 4 codes a replay script cares about onto the narrower
492
+ // `GatewayReplayAttempt.outcome` vocabulary; anything else (circuit-open, cancelled, unknown)
493
+ // falls into the generic "provider-error" bucket rather than growing the outcome union for a
494
+ // distinction a replay fixture does not need to make.
495
+ function attemptOutcome(errorKind) {
496
+ if (errorKind === "GATEWAY_RATE_LIMIT")
497
+ return "rate-limit";
498
+ if (errorKind === "GATEWAY_TIMEOUT")
499
+ return "timeout";
500
+ if (errorKind === "GATEWAY_TRANSPORT")
501
+ return "transport-error";
502
+ return "provider-error";
503
+ }
504
+ function attemptUsage(extra) {
505
+ const promptTokens = optionalNumber(extra, "promptTokens");
506
+ const completionTokens = optionalNumber(extra, "completionTokens");
507
+ return promptTokens === undefined || completionTokens === undefined
508
+ ? undefined
509
+ : { promptTokens, completionTokens };
510
+ }
511
+ function gatewayAttemptFrom(view) {
512
+ const extra = view.extra ?? {};
513
+ const outcome = GATEWAY_SUCCESS_OPS.has(view.op) ? "success" : attemptOutcome(view.errorKind);
514
+ const httpStatus = optionalNumber(extra, "httpStatus");
515
+ const retryAfterMs = optionalNumber(extra, "retryAfterMs");
516
+ const finishReason = optionalString(extra, "finishReason");
517
+ const usage = attemptUsage(extra);
518
+ const toolCallCount = optionalNumber(extra, "toolCallCount");
519
+ const firstTokenMs = optionalNumber(extra, "firstTokenMs");
520
+ return {
521
+ outcome,
522
+ durationMs: view.durationMs ?? 0,
523
+ ...(httpStatus === undefined ? {} : { httpStatus }),
524
+ ...(retryAfterMs === undefined ? {} : { retryAfterMs }),
525
+ ...(finishReason === undefined ? {} : { finishReason }),
526
+ ...(usage === undefined ? {} : { usage }),
527
+ ...(toolCallCount === undefined ? {} : { toolCallCount }),
528
+ ...(firstTokenMs === undefined ? {} : { firstTokenMs }),
529
+ };
530
+ }
531
+ function gatewayModelId(lines) {
532
+ for (const view of lines) {
533
+ const modelId = optionalString(view.extra ?? {}, "modelId");
534
+ if (modelId !== undefined)
535
+ return modelId;
536
+ }
537
+ return "unknown-model";
538
+ }
539
+ // Undefined when the timeline carries no gateway line at all — distinct from an attempts array
540
+ // that IS populated but every attempt failed, which is a real, reportable replay script.
541
+ export function buildGatewayReplayScript(lines) {
542
+ const attemptLines = lines.filter(isGatewayAttemptLine);
543
+ if (attemptLines.length === 0)
544
+ return undefined;
545
+ return { modelId: gatewayModelId(lines), attempts: attemptLines.map(gatewayAttemptFrom) };
546
+ }
547
+ function optionalBoolean(record, key) {
548
+ const value = record[key];
549
+ return typeof value === "boolean" ? value : undefined;
550
+ }
551
+ function buildHttpRequestSeed(lines) {
552
+ const requestLine = lines.find((view) => view.category === "http" && view.op === "request");
553
+ const sseLine = lines.find((view) => view.category === "http" && view.op === "sse.stream.closed");
554
+ if (requestLine === undefined && sseLine === undefined)
555
+ return undefined;
556
+ const extra = requestLine?.extra ?? {};
557
+ const frameCount = optionalNumber(sseLine?.extra ?? {}, "frameCount");
558
+ return {
559
+ method: optionalString(extra, "method"),
560
+ routeTemplate: optionalString(extra, "routeTemplate"),
561
+ queryParamNames: optionalStringArray(extra.queryParamNames),
562
+ responseBytes: optionalNumber(extra, "responseBytes"),
563
+ status: requestLine?.status,
564
+ durationMs: requestLine?.durationMs,
565
+ aborted: optionalBoolean(extra, "aborted"),
566
+ frameCount,
567
+ };
568
+ }
569
+ function buildIndexingJobSeed(lines) {
570
+ const started = lines.find((view) => view.category === "indexing" && view.op === "indexing.job.started");
571
+ if (started === undefined)
572
+ return undefined;
573
+ const extra = started.extra ?? {};
574
+ return {
575
+ sourceCount: optionalNumber(extra, "sourceCount"),
576
+ batchSize: optionalNumber(extra, "batchSize"),
577
+ concurrency: optionalNumber(extra, "concurrency"),
578
+ minChunkTokens: optionalNumber(extra, "minChunkTokens"),
579
+ maxChunkTokens: optionalNumber(extra, "maxChunkTokens"),
580
+ overlapTokens: optionalNumber(extra, "overlapTokens"),
581
+ tokenizerKind: optionalString(extra, "tokenizerKind"),
582
+ };
583
+ }
584
+ // A bundle's manifest line (index 0, `$section: "manifest"`) carries `storeFingerprints` when the
585
+ // exporter is Wave-4a-or-later. `classifyLine` treats it as bundle metadata and never parses its
586
+ // content, so this reads it directly, independent of `analyzeLogText`. Every candidate is
587
+ // re-validated with the contract's own `isStoreFingerprint` guard (never trusted merely because it
588
+ // parsed as JSON) — a raw server.log, which has no manifest line at all, always returns undefined.
589
+ function extractManifestStoreFingerprints(text) {
590
+ const [firstLine] = splitLines(text);
591
+ if (firstLine === undefined)
592
+ return undefined;
593
+ const record = tryParseJsonObject(firstLine);
594
+ if (record?.$section !== "manifest" || !Array.isArray(record.storeFingerprints)) {
595
+ return undefined;
596
+ }
597
+ const valid = record.storeFingerprints.filter(isStoreFingerprint);
598
+ return valid.length > 0 ? valid : undefined;
599
+ }
600
+ const MAX_SEED_CAUSE_CHAIN = 16;
601
+ function aggregateCauseChain(lines) {
602
+ const all = [];
603
+ for (const view of lines) {
604
+ if (view.causeChain === undefined)
605
+ continue;
606
+ all.push(...view.causeChain);
607
+ }
608
+ return distinctInOrder(all).slice(0, MAX_SEED_CAUSE_CHAIN);
609
+ }
610
+ function sha256Hex(text) {
611
+ return createHash("sha256").update(text, "utf8").digest("hex");
612
+ }
613
+ const REPRODUCTION_SEED_SCHEMA_VERSION = 1;
614
+ const NO_BODY_WARNING = "no prompt/response body was ever logged by design — content-shape only " +
615
+ "(counts, ids, and closed-vocabulary labels, never message/completion text)";
616
+ function framesWarning(frames) {
617
+ return frames.length === 0
618
+ ? "no frames recorded for this correlationId — either no error occurred on this call, or " +
619
+ "this artifact predates Wave 2's frame capture"
620
+ : undefined;
621
+ }
622
+ function gatewayScriptWarning(script) {
623
+ return script === undefined
624
+ ? "no gateway.chat.*/gateway.stream.*/gateway.retry.* lines found for this correlationId — " +
625
+ "either no gateway call occurred, or this artifact predates Wave 3's provider detail"
626
+ : undefined;
627
+ }
628
+ function httpRequestWarning(seed) {
629
+ return seed === undefined
630
+ ? "no http.request line found for this correlationId — this artifact may cover only an " +
631
+ "internal/background operation with no HTTP request boundary"
632
+ : undefined;
633
+ }
634
+ function storeFingerprintWarning(kind, fingerprints) {
635
+ if (fingerprints !== undefined)
636
+ return undefined;
637
+ return kind === "raw-log"
638
+ ? "a raw server.log carries no store fingerprints — export a support bundle " +
639
+ "(`keiko support export`) to include them"
640
+ : "no store fingerprints found in this bundle's manifest — either the exporter predates " +
641
+ "Wave 4a, or every store was unavailable at export time";
642
+ }
643
+ function buildSeedWarnings(input) {
644
+ return [
645
+ NO_BODY_WARNING,
646
+ framesWarning(input.frames),
647
+ gatewayScriptWarning(input.gatewayScript),
648
+ httpRequestWarning(input.httpRequest),
649
+ storeFingerprintWarning(input.kind, input.storeFingerprint),
650
+ ].filter((warning) => warning !== undefined);
651
+ }
652
+ // Assembles a full `ReproductionSeed` for one correlationId out of `text` (a raw server.log or a
653
+ // support bundle — auto-detected, same as `analyzeLogText`). Undefined when no timeline exists for
654
+ // `correlationId`, mirroring `findTimeline`. `generatedAt` is caller-supplied (never `new Date()`
655
+ // read here) so this stays pure and deterministic, like every other export in this file.
656
+ export function buildReproductionSeed(text, correlationId, generatedAt) {
657
+ const timeline = findTimeline(analyzeLogText(text), correlationId);
658
+ if (timeline === undefined)
659
+ return undefined;
660
+ const kind = detectSourceKind(splitLines(text)[0]);
661
+ const gatewayScript = buildGatewayReplayScript(timeline.lines);
662
+ const httpRequest = buildHttpRequestSeed(timeline.lines);
663
+ const indexingJob = buildIndexingJobSeed(timeline.lines);
664
+ const storeFingerprint = extractManifestStoreFingerprints(text);
665
+ const stackFrames = timeline.frames ?? [];
666
+ const causeChain = aggregateCauseChain(timeline.lines);
667
+ return {
668
+ schemaVersion: REPRODUCTION_SEED_SCHEMA_VERSION,
669
+ generatedAt: generatedAt.toISOString(),
670
+ sourceArtifact: { kind, lineCount: splitLines(text).length, sha256: sha256Hex(text) },
671
+ correlationId,
672
+ timeline: timeline.lines,
673
+ ...(gatewayScript === undefined ? {} : { gatewayScript }),
674
+ ...(httpRequest === undefined ? {} : { httpRequest }),
675
+ ...(storeFingerprint === undefined ? {} : { storeFingerprint }),
676
+ ...(indexingJob === undefined ? {} : { indexingJob }),
677
+ ...(stackFrames.length === 0 ? {} : { stackFrames }),
678
+ ...(causeChain.length === 0 ? {} : { causeChain }),
679
+ warnings: buildSeedWarnings({
680
+ kind,
681
+ frames: stackFrames,
682
+ gatewayScript,
683
+ httpRequest,
684
+ storeFingerprint,
685
+ }),
686
+ };
687
+ }
688
+ // ─── Wave 6: `--emit-fixture` ───────────────────────────────────────────────────────────────────
689
+ //
690
+ // Renders `script` as a ready-to-paste TypeScript module: a `GatewayReplayScriptEntry[]` literal
691
+ // for `createScriptedGatewayFetch` (`@oscharko-dev/keiko-model-gateway`'s replay.ts). Built via
692
+ // `JSON.stringify` on a plain-data shape rather than hand-assembled template strings, so the
693
+ // output's syntax is guaranteed valid (a JSON object/array literal is always a valid TS/JS object
694
+ // literal) — there is no manual quoting/escaping step that could produce broken source.
695
+ const FAILURE_STATUS_FALLBACK = {
696
+ success: 200,
697
+ "rate-limit": 429,
698
+ timeout: 504,
699
+ "provider-error": 500,
700
+ "transport-error": 0,
701
+ };
702
+ function successFixtureBody(attempt) {
703
+ return {
704
+ choices: [
705
+ {
706
+ finish_reason: attempt.finishReason ?? "stop",
707
+ message: { role: "assistant", content: "" },
708
+ },
709
+ ],
710
+ ...(attempt.usage === undefined
711
+ ? {}
712
+ : {
713
+ usage: {
714
+ prompt_tokens: attempt.usage.promptTokens,
715
+ completion_tokens: attempt.usage.completionTokens,
716
+ },
717
+ }),
718
+ };
719
+ }
720
+ function failureFixtureEntry(attempt) {
721
+ if (attempt.outcome === "transport-error")
722
+ return { networkError: true };
723
+ const status = attempt.httpStatus ?? FAILURE_STATUS_FALLBACK[attempt.outcome];
724
+ const headers = attempt.retryAfterMs === undefined
725
+ ? undefined
726
+ : { "retry-after": String(Math.ceil(attempt.retryAfterMs / 1000)) };
727
+ return {
728
+ status,
729
+ ...(headers === undefined ? {} : { headers }),
730
+ bodyJson: { error: { message: "reconstructed from ReproductionSeed", type: attempt.outcome } },
731
+ latencyMs: attempt.durationMs,
732
+ };
733
+ }
734
+ function fixtureEntryFor(attempt) {
735
+ return attempt.outcome === "success"
736
+ ? { status: 200, bodyJson: successFixtureBody(attempt), latencyMs: attempt.durationMs }
737
+ : failureFixtureEntry(attempt);
738
+ }
739
+ // Returns undefined (never an empty-array fixture) when `script` has no attempts — there is
740
+ // nothing meaningful to paste.
741
+ export function renderGatewayReplayScriptFixture(script) {
742
+ if (script.attempts.length === 0)
743
+ return undefined;
744
+ const entries = script.attempts.map(fixtureEntryFor);
745
+ return ("// Generated by `keiko support analyze --emit-fixture` from a ReproductionSeed's gatewayScript.\n" +
746
+ "// Ready to paste into a *.test.ts for createScriptedGatewayFetch (@oscharko-dev/keiko-model-gateway).\n" +
747
+ 'import type { GatewayReplayScriptEntry } from "@oscharko-dev/keiko-model-gateway";\n\n' +
748
+ `export const gatewayReplayScript: GatewayReplayScriptEntry[] = ${JSON.stringify(entries, null, 2)};\n`);
749
+ }
750
+ // Human rendering for `keiko support analyze --seed` (without --json). Each structured sub-field
751
+ // is printed as its own compact JSON line rather than a hand-formatted table — a seed's whole
752
+ // point is to be read back by an agent, so the human view stays a thin, honest read of the exact
753
+ // same data `--json` emits, never a second formula computing something new from it (AGENTS.md §7).
754
+ export function renderHumanReproductionSeed(seed) {
755
+ const lines = [
756
+ `correlationId=${seed.correlationId} schemaVersion=${String(seed.schemaVersion)}`,
757
+ `source: kind=${seed.sourceArtifact.kind} lines=${String(seed.sourceArtifact.lineCount)} ` +
758
+ `sha256=${seed.sourceArtifact.sha256}`,
759
+ ];
760
+ if (seed.gatewayScript !== undefined) {
761
+ lines.push(`gatewayScript: ${JSON.stringify(seed.gatewayScript)}`);
762
+ }
763
+ if (seed.httpRequest !== undefined) {
764
+ lines.push(`httpRequest: ${JSON.stringify(seed.httpRequest)}`);
765
+ }
766
+ if (seed.indexingJob !== undefined) {
767
+ lines.push(`indexingJob: ${JSON.stringify(seed.indexingJob)}`);
768
+ }
769
+ if (seed.storeFingerprint !== undefined) {
770
+ lines.push(`storeFingerprint: ${JSON.stringify(seed.storeFingerprint)}`);
771
+ }
772
+ if (seed.stackFrames !== undefined && seed.stackFrames.length > 0) {
773
+ const frameLines = seed.stackFrames.map((frame) => ` ${frame}`).join("\n");
774
+ lines.push(`stackFrames:\n${frameLines}`);
775
+ }
776
+ if (seed.causeChain !== undefined && seed.causeChain.length > 0) {
777
+ lines.push(`causeChain: ${seed.causeChain.join(" -> ")}`);
778
+ }
779
+ const warningLines = seed.warnings.map((warning) => ` - ${warning}`).join("\n");
780
+ lines.push(`warnings:\n${warningLines}`);
781
+ return `${lines.join("\n")}\n`;
782
+ }
@@ -1,6 +1,9 @@
1
+ import type { EvidenceManifest } from "@oscharko-dev/keiko-evidence";
1
2
  import { type StoreFingerprint } from "@oscharko-dev/keiko-contracts";
2
3
  import type { AuditResult } from "./audit.js";
3
4
  export declare const CURRENT_LOG_FILE_NAME = "server.log";
5
+ export declare const UI_LOG_FILE_NAME = "ui.log";
6
+ export declare const UI_LOG_SECTION = "ui-log";
4
7
  export declare const DEFAULT_MAX_BUNDLE_BYTES: number;
5
8
  export declare const BUNDLE_FORMAT_VERSION = 1;
6
9
  export interface LogFileInfo {
@@ -84,8 +87,27 @@ export interface ManifestInput {
84
87
  readonly evidenceIndexCount: number;
85
88
  readonly storeFingerprints: readonly StoreFingerprint[];
86
89
  readonly storesUnavailable: readonly StoreUnavailableEntry[];
90
+ readonly sectionsExcluded: readonly string[];
87
91
  }
88
92
  export declare function buildSupportBundleManifest(input: ManifestInput): SupportBundleManifest;
89
- export declare function serializeBundleLines(manifest: SupportBundleManifest, contentLines: readonly string[]): readonly string[];
93
+ export interface SupportBundleUiLogSection {
94
+ readonly $section: "ui-log";
95
+ readonly content: string;
96
+ }
97
+ export declare function buildUiLogSection(content: string): SupportBundleUiLogSection;
98
+ export interface SupportBundleConfigSnapshotSection {
99
+ readonly $section: "config-snapshot";
100
+ readonly fields: Record<string, unknown>;
101
+ }
102
+ export declare function buildConfigSnapshotSection(fields: Record<string, unknown>): SupportBundleConfigSnapshotSection;
103
+ export interface SupportBundleEvidenceManifestSection {
104
+ readonly $section: "evidence-manifest";
105
+ readonly runId: string;
106
+ readonly manifest: EvidenceManifest;
107
+ }
108
+ export declare function buildEvidenceManifestSection(runId: string, manifest: EvidenceManifest): SupportBundleEvidenceManifestSection;
109
+ export declare function serializeBundleLines(manifest: SupportBundleManifest, sections: readonly unknown[], contentLines: readonly string[]): readonly string[];
110
+ export declare function bundleSha256Hex(bundleContents: string): string;
111
+ export declare function sha256SidecarPath(outPath: string): string;
90
112
  export declare function bundleText(lines: readonly string[]): string;
91
113
  //# sourceMappingURL=support-export.d.ts.map