@javargasm/opencode-kiro-auth 0.2.0 → 0.2.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.
@@ -0,0 +1,47 @@
1
+ /** Log the full request body sent to Kiro API. */
2
+ export declare function logRequest(meta: {
3
+ endpoint: string;
4
+ model: string;
5
+ historyLength: number;
6
+ requestBodyChars: number;
7
+ attempt: number;
8
+ conversationId: string;
9
+ }, requestBody: string): void;
10
+ /** Log a parsed response event from the Kiro stream. */
11
+ export declare function logResponseEvent(event: {
12
+ type: string;
13
+ data: unknown;
14
+ eventSeq: number;
15
+ }): void;
16
+ /** Log the final response summary when the stream completes. */
17
+ export declare function logResponseDone(meta: {
18
+ stopReason: string;
19
+ emittedToolCalls: number;
20
+ usage: unknown;
21
+ contentBlocks: number;
22
+ model: string;
23
+ }): void;
24
+ /** Log HTTP error responses from the Kiro API. */
25
+ export declare function logHttpError(meta: {
26
+ status: number;
27
+ statusText: string;
28
+ body: string;
29
+ endpoint: string;
30
+ model: string;
31
+ attempt: number;
32
+ historyLength: number;
33
+ }): void;
34
+ /** Log stream-level errors (timeouts, parse errors, etc). */
35
+ export declare function logStreamError(meta: {
36
+ error: string;
37
+ context: string;
38
+ model: string;
39
+ attempt: number;
40
+ }): void;
41
+ /** Log caught exceptions from the top-level try/catch. */
42
+ export declare function logCaughtError(meta: {
43
+ stopReason: string;
44
+ errorMessage: string;
45
+ model: string;
46
+ }): void;
47
+ //# sourceMappingURL=file-logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-logger.d.ts","sourceRoot":"","sources":["../src/file-logger.ts"],"names":[],"mappings":"AA4CA,kDAAkD;AAClD,wBAAgB,UAAU,CAAC,IAAI,EAAE;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAM5B;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAOP;AAED,gEAAgE;AAChE,wBAAgB,eAAe,CAAC,IAAI,EAAE;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAKP;AAED,kDAAkD;AAClD,wBAAgB,YAAY,CAAC,IAAI,EAAE;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,IAAI,CAKP;AAED,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,IAAI,CAKP;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAKP"}
package/dist/index.js CHANGED
@@ -2094,6 +2094,84 @@ async function startSocialLogin() {
2094
2094
  return { signInUrl, waitForCredentials };
2095
2095
  }
2096
2096
 
2097
+ // src/file-logger.ts
2098
+ import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
2099
+ var LOG_DIR = "/tmp/kiro-logs";
2100
+ var REQUESTS_FILE = `${LOG_DIR}/requests.log`;
2101
+ var RESPONSES_FILE = `${LOG_DIR}/responses.log`;
2102
+ var ERRORS_FILE = `${LOG_DIR}/errors.log`;
2103
+ var dirEnsured = false;
2104
+ function isEnabled() {
2105
+ return true;
2106
+ }
2107
+ function ensureDir() {
2108
+ if (dirEnsured)
2109
+ return;
2110
+ try {
2111
+ mkdirSync2(LOG_DIR, { recursive: true });
2112
+ dirEnsured = true;
2113
+ } catch {}
2114
+ }
2115
+ function writeLine(file, data) {
2116
+ if (!isEnabled())
2117
+ return;
2118
+ ensureDir();
2119
+ const entry = {
2120
+ ts: new Date().toISOString(),
2121
+ ...data
2122
+ };
2123
+ try {
2124
+ appendFileSync2(file, JSON.stringify(entry) + `
2125
+ `);
2126
+ } catch {}
2127
+ }
2128
+ function logRequest(meta, requestBody) {
2129
+ writeLine(REQUESTS_FILE, {
2130
+ type: "request",
2131
+ ...meta,
2132
+ body: safeParseJson(requestBody)
2133
+ });
2134
+ }
2135
+ function logResponseEvent(event) {
2136
+ writeLine(RESPONSES_FILE, {
2137
+ type: "response_event",
2138
+ eventType: event.type,
2139
+ seq: event.eventSeq,
2140
+ data: event.data
2141
+ });
2142
+ }
2143
+ function logResponseDone(meta) {
2144
+ writeLine(RESPONSES_FILE, {
2145
+ type: "response_done",
2146
+ ...meta
2147
+ });
2148
+ }
2149
+ function logHttpError(meta) {
2150
+ writeLine(ERRORS_FILE, {
2151
+ type: "http_error",
2152
+ ...meta
2153
+ });
2154
+ }
2155
+ function logStreamError(meta) {
2156
+ writeLine(ERRORS_FILE, {
2157
+ type: "stream_error",
2158
+ ...meta
2159
+ });
2160
+ }
2161
+ function logCaughtError(meta) {
2162
+ writeLine(ERRORS_FILE, {
2163
+ type: "caught_error",
2164
+ ...meta
2165
+ });
2166
+ }
2167
+ function safeParseJson(s) {
2168
+ try {
2169
+ return JSON.parse(s);
2170
+ } catch {
2171
+ return s;
2172
+ }
2173
+ }
2174
+
2097
2175
  // src/transform.ts
2098
2176
  import { createHash as createHash2 } from "node:crypto";
2099
2177
 
@@ -2313,15 +2391,18 @@ ${uim.content}`;
2313
2391
  }
2314
2392
  if (msg.role === "assistant") {
2315
2393
  let armContent = "";
2394
+ let armReasoningText = "";
2395
+ let armReasoningSignature = "";
2316
2396
  const armToolUses = [];
2317
2397
  if (Array.isArray(msg.content)) {
2318
2398
  for (const block of msg.content) {
2319
2399
  if (block.type === "text") {
2320
2400
  armContent += block.text;
2321
2401
  } else if (block.type === "thinking") {
2322
- armContent = `<thinking>${block.thinking}</thinking>
2323
-
2324
- ${armContent}`;
2402
+ const tb = block;
2403
+ armReasoningText += tb.thinking;
2404
+ if (tb.thinkingSignature)
2405
+ armReasoningSignature = tb.thinkingSignature;
2325
2406
  } else if (block.type === "toolCall") {
2326
2407
  const tc = block;
2327
2408
  armToolUses.push({
@@ -2332,12 +2413,15 @@ ${armContent}`;
2332
2413
  }
2333
2414
  }
2334
2415
  }
2335
- if (!armContent && armToolUses.length === 0)
2416
+ const hasReasoning = armReasoningText.length > 0;
2417
+ if (!armContent && armToolUses.length === 0 && !hasReasoning)
2336
2418
  continue;
2419
+ const reasoningContent = hasReasoning && armReasoningSignature ? { reasoningText: { text: armReasoningText, signature: armReasoningSignature } } : undefined;
2337
2420
  history.push({
2338
2421
  assistantResponseMessage: {
2339
2422
  content: armContent,
2340
- ...armToolUses.length > 0 ? { toolUses: armToolUses } : {}
2423
+ ...armToolUses.length > 0 ? { toolUses: armToolUses } : {},
2424
+ ...reasoningContent ? { reasoningContent } : {}
2341
2425
  }
2342
2426
  });
2343
2427
  continue;
@@ -2594,9 +2678,9 @@ ${systemPrompt}` : ""}`;
2594
2678
  const normalized = normalizeMessages(context.messages);
2595
2679
  const {
2596
2680
  history,
2597
- systemPrepended,
2681
+ systemPrepended: _systemPrepended,
2598
2682
  currentMsgStartIdx
2599
- } = buildHistory(normalized, kiroModelId, systemPrompt);
2683
+ } = buildHistory(normalized, kiroModelId);
2600
2684
  const seedInstruction = SYSTEM_SEED_INSTRUCTION.replace("{{modelId}}", kiroModelId);
2601
2685
  const seedPair = [
2602
2686
  { userInputMessage: { content: seedInstruction, origin: "KIRO_CLI" } },
@@ -2636,7 +2720,7 @@ ${systemPrompt}` : ""}`;
2636
2720
  const hasReasoning = armReasoningText.length > 0;
2637
2721
  if (armContent || armToolUses.length > 0 || hasReasoning) {
2638
2722
  const last = history[history.length - 1];
2639
- const reasoningContent = hasReasoning ? { reasoningText: { text: armReasoningText, signature: armReasoningSignature } } : undefined;
2723
+ const reasoningContent = hasReasoning && armReasoningSignature ? { reasoningText: { text: armReasoningText, signature: armReasoningSignature } } : undefined;
2640
2724
  if (last && !last.userInputMessage && last.assistantResponseMessage) {
2641
2725
  last.assistantResponseMessage.content += `
2642
2726
 
@@ -2712,7 +2796,7 @@ ${armContent}`;
2712
2796
  currentContent = "Tool results provided.";
2713
2797
  } else if (firstMsg?.role === "user") {
2714
2798
  currentContent = typeof firstMsg.content === "string" ? firstMsg.content : getContentText(firstMsg);
2715
- if (systemPrompt && !systemPrepended) {
2799
+ if (systemPrompt) {
2716
2800
  currentContent = `${systemPrompt}
2717
2801
 
2718
2802
  ${currentContent}`;
@@ -2810,6 +2894,14 @@ ${currentContent}`;
2810
2894
  __require("fs").writeFileSync("/tmp/kiro-last-request.json", requestBody);
2811
2895
  } catch {}
2812
2896
  }
2897
+ logRequest({
2898
+ endpoint,
2899
+ model: model.id,
2900
+ historyLength: history.length,
2901
+ requestBodyChars: requestBody.length,
2902
+ attempt: retryCount,
2903
+ conversationId
2904
+ }, requestBody);
2813
2905
  response = await fetch(endpoint, {
2814
2906
  method: "POST",
2815
2907
  headers: {
@@ -2841,6 +2933,15 @@ ${currentContent}`;
2841
2933
  status: response.status,
2842
2934
  body: errText
2843
2935
  });
2936
+ logHttpError({
2937
+ status: response.status,
2938
+ statusText: response.statusText,
2939
+ body: errText,
2940
+ endpoint,
2941
+ model: model.id,
2942
+ attempt: retryCount,
2943
+ historyLength: history.length
2944
+ });
2844
2945
  if (isCapacityError(errText) && capacityRetryCount < CAPACITY_MAX_RETRIES) {
2845
2946
  capacityRetryCount++;
2846
2947
  const delayMs = exponentialBackoff(capacityRetryCount - 1, CAPACITY_BASE_DELAY_MS, CAPACITY_MAX_DELAY_MS);
@@ -2984,6 +3085,9 @@ ${currentContent}`;
2984
3085
  log.debug("stream.event", { seq: eventSeq++, event: ev });
2985
3086
  }
2986
3087
  }
3088
+ for (const ev of events) {
3089
+ logResponseEvent({ type: ev.type, data: ev.data, eventSeq });
3090
+ }
2987
3091
  for (const event of events) {
2988
3092
  switch (event.type) {
2989
3093
  case "contextUsage": {
@@ -3074,6 +3178,12 @@ ${currentContent}`;
3074
3178
  }
3075
3179
  case "error": {
3076
3180
  streamError = event.data.message ? `${event.data.error}: ${event.data.message}` : event.data.error;
3181
+ logStreamError({
3182
+ error: streamError,
3183
+ context: "stream_event",
3184
+ model: model.id,
3185
+ attempt: retryCount
3186
+ });
3077
3187
  reader.cancel().catch(() => {});
3078
3188
  break;
3079
3189
  }
@@ -3088,7 +3198,14 @@ ${currentContent}`;
3088
3198
  if (retryCount < MAX_RETRIES) {
3089
3199
  retryCount++;
3090
3200
  const delayMs = exponentialBackoff(retryCount - 1, 1000, MAX_RETRY_DELAY_MS);
3091
- log.info(`stream ${firstTokenTimedOut ? "first-token timed out" : idleCancelled ? "idle timed out" : `error: ${streamError}`} — retrying (${retryCount}/${MAX_RETRIES})`);
3201
+ const streamErrDesc = firstTokenTimedOut ? "first-token timed out" : idleCancelled ? "idle timed out" : `error: ${streamError}`;
3202
+ logStreamError({
3203
+ error: streamErrDesc,
3204
+ context: "retry",
3205
+ model: model.id,
3206
+ attempt: retryCount
3207
+ });
3208
+ log.info(`stream ${streamErrDesc} — retrying (${retryCount}/${MAX_RETRIES})`);
3092
3209
  cancelHiddenShim();
3093
3210
  await abortableDelay(delayMs, options?.signal);
3094
3211
  output.content = [];
@@ -3163,6 +3280,13 @@ ${currentContent}`;
3163
3280
  sawAnyToolCalls,
3164
3281
  usage: output.usage
3165
3282
  });
3283
+ logResponseDone({
3284
+ stopReason: output.stopReason,
3285
+ emittedToolCalls,
3286
+ usage: output.usage,
3287
+ contentBlocks: output.content.length,
3288
+ model: model.id
3289
+ });
3166
3290
  stream.end();
3167
3291
  return;
3168
3292
  }
@@ -3170,6 +3294,11 @@ ${currentContent}`;
3170
3294
  output.stopReason = options?.signal?.aborted ? "aborted" : "error";
3171
3295
  output.errorMessage = error instanceof Error ? error.message : String(error);
3172
3296
  log.debug("response.caught", { stopReason: output.stopReason, error: output.errorMessage });
3297
+ logCaughtError({
3298
+ stopReason: output.stopReason,
3299
+ errorMessage: output.errorMessage,
3300
+ model: model.id
3301
+ });
3173
3302
  if (hiddenShimTimer) {
3174
3303
  clearTimeout(hiddenShimTimer);
3175
3304
  hiddenShimTimer = null;
@@ -1 +1 @@
1
- {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../src/stream.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,GAAG,EAEH,OAAO,EAEP,KAAK,EACL,mBAAmB,EAKpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,2BAA2B,EAAiB,MAAM,SAAS,CAAC;AA6FrE;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAkGlD,wBAAgB,UAAU,CACxB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EACjB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,2BAA2B,CAm0B7B"}
1
+ {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../src/stream.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,GAAG,EAEH,OAAO,EAEP,KAAK,EACL,mBAAmB,EAKpB,MAAM,SAAS,CAAC;AACjB,O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
  "description": "Kiro provider plugin for OpenCode: AWS Builder ID / Identity Center login and OpenAI compatible local gateway for CodeWhisperer streaming.",
5
5
  "type": "module",
6
6
  "license": "MIT",