@javargasm/pi-kiro 0.4.5 → 0.4.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: use reasoningContent with signature for thinking history instead of inline XML tags
8
+
9
+ Bedrock rejects replayed history with THINKING_SIGNATURE_INVALID when thinking
10
+ blocks use inline `<thinking>` XML tags without the cryptographic signature.
11
+ Now accumulates thinking text and signature from upstream content blocks and
12
+ sends them as proper `reasoningContent.reasoningText` with `text` + `signature`.
13
+ Silently drops reasoning when the signature is missing rather than crashing.
14
+
15
+ Also adds opt-in file-based debug logging (KIRO_FILE_LOG) for API interactions.
16
+
17
+ ## 0.4.6
18
+
19
+ ### Patch Changes
20
+
21
+ - Fix duplicate browser tab during Enterprise sign-in and resolve profileArn immediately after successful login and token refresh.
22
+
3
23
  ## 0.4.5
4
24
 
5
25
  ### Patch Changes
package/dist/core.js CHANGED
@@ -904,11 +904,11 @@ async function resolveProfileArn(accessToken, apiRegion) {
904
904
  Authorization: `Bearer ${accessToken}`,
905
905
  "Content-Type": "application/x-amz-json-1.0",
906
906
  "X-Amz-Target": "AmazonCodeWhispererService.ListAvailableProfiles",
907
- "User-Agent": "pi-kiro"
907
+ "user-agent": "aws-sdk-rust/1.3.15 ua/2.1 api/codewhispererruntime/0.1.16551 os/macos lang/rust/1.92.0 md/appVersion-2.7.1 app/AmazonQ-For-CLI"
908
908
  },
909
909
  body: "{}"
910
910
  });
911
- if (!resp.ok)
911
+ if (!resp || !resp.ok)
912
912
  return null;
913
913
  const data = await resp.json();
914
914
  const profiles = data.profiles ?? [];
@@ -934,7 +934,9 @@ async function fetchAvailableModels(accessToken, apiRegion, profileArn) {
934
934
  },
935
935
  body: JSON.stringify({ origin: "KIRO_CLI", profileArn })
936
936
  });
937
- if (!resp.ok) {
937
+ if (!resp || !resp.ok) {
938
+ if (!resp)
939
+ throw new Error("ListAvailableModels failed: fetch returned no response");
938
940
  const body = await resp.text().catch(() => "");
939
941
  if (resp.status === 401 || resp.status === 400 && body.includes("Invalid token")) {
940
942
  throw new Error(`Authentication failed: 401 ListAvailableModels failed - ${body}`);
@@ -1457,7 +1459,9 @@ async function runSocialSignInFlow(callbacks) {
1457
1459
  ...callbacks,
1458
1460
  onAuth: (info) => {
1459
1461
  callbackServer.setIdcVerifyUrl(info.url);
1460
- callbacks.onAuth(info);
1462
+ if (info.instructions) {
1463
+ callbacks.onProgress?.(info.instructions);
1464
+ }
1461
1465
  }
1462
1466
  };
1463
1467
  try {
@@ -1634,6 +1638,27 @@ Complete authorization within 10 minutes.`
1634
1638
  if (!tok.accessToken || !tok.refreshToken) {
1635
1639
  throw new Error("Authorization completed but no tokens returned");
1636
1640
  }
1641
+ callbacks.onProgress?.("Resolving Kiro profile…");
1642
+ let profileArn;
1643
+ try {
1644
+ const apiRegion = resolveApiRegion(detectedRegion);
1645
+ const resolved = await resolveProfileArn(tok.accessToken, apiRegion);
1646
+ if (resolved) {
1647
+ profileArn = resolved;
1648
+ log.info(`Resolved profileArn during login: ${profileArn}`);
1649
+ try {
1650
+ const apiModels = await fetchAvailableModels(tok.accessToken, apiRegion, profileArn);
1651
+ setCachedDynamicModels(buildModelsFromApi(apiModels));
1652
+ log.info(`Fetched and cached ${apiModels.length} models after login`);
1653
+ } catch (err) {
1654
+ log.warn(`Failed to fetch models during login: ${err}`);
1655
+ }
1656
+ } else {
1657
+ log.warn("Could not resolve profileArn during login");
1658
+ }
1659
+ } catch (err) {
1660
+ log.warn(`Failed to resolve profileArn during login: ${err}`);
1661
+ }
1637
1662
  return {
1638
1663
  refresh: `${tok.refreshToken}|${result.clientId}|${result.clientSecret}|${authMethod}`,
1639
1664
  access: tok.accessToken,
@@ -1641,7 +1666,8 @@ Complete authorization within 10 minutes.`
1641
1666
  clientId: result.clientId,
1642
1667
  clientSecret: result.clientSecret,
1643
1668
  region: detectedRegion,
1644
- authMethod
1669
+ authMethod,
1670
+ ...profileArn ? { profileArn } : {}
1645
1671
  };
1646
1672
  }
1647
1673
  async function syncBackToKiroCli(result) {
@@ -1707,10 +1733,23 @@ async function refreshTokenInner(credentials) {
1707
1733
  throw new Error(`Desktop token refresh failed: ${resp2.status} ${body}`);
1708
1734
  }
1709
1735
  const data2 = await resp2.json();
1710
- if (credentials.profileArn) {
1736
+ let profileArn2 = credentials.profileArn;
1737
+ if (!profileArn2) {
1738
+ try {
1739
+ const apiRegion = resolveApiRegion(region);
1740
+ const resolved = await resolveProfileArn(data2.accessToken, apiRegion);
1741
+ if (resolved) {
1742
+ profileArn2 = resolved;
1743
+ log.info(`Resolved profileArn during desktop refresh: ${profileArn2}`);
1744
+ }
1745
+ } catch (err) {
1746
+ log.warn(`Failed to resolve profileArn during desktop refresh: ${err}`);
1747
+ }
1748
+ }
1749
+ if (profileArn2) {
1711
1750
  try {
1712
1751
  const apiRegion = resolveApiRegion(region);
1713
- const apiModels = await fetchAvailableModels(data2.accessToken, apiRegion, credentials.profileArn);
1752
+ const apiModels = await fetchAvailableModels(data2.accessToken, apiRegion, profileArn2);
1714
1753
  setCachedDynamicModels(buildModelsFromApi(apiModels));
1715
1754
  log.info(`Fetched and cached ${apiModels.length} models after desktop token refresh`);
1716
1755
  } catch (err) {
@@ -1725,7 +1764,7 @@ async function refreshTokenInner(credentials) {
1725
1764
  clientSecret: "",
1726
1765
  region,
1727
1766
  authMethod,
1728
- profileArn: credentials.profileArn,
1767
+ profileArn: profileArn2,
1729
1768
  kiroSyncSource: credentials.kiroSyncSource,
1730
1769
  kiroSyncTokenKey: credentials.kiroSyncTokenKey
1731
1770
  };
@@ -1741,10 +1780,23 @@ async function refreshTokenInner(credentials) {
1741
1780
  throw new Error(`Token refresh failed: ${resp.status} ${body}`);
1742
1781
  }
1743
1782
  const data = await resp.json();
1744
- if (credentials.profileArn) {
1783
+ let profileArn = credentials.profileArn;
1784
+ if (!profileArn) {
1745
1785
  try {
1746
1786
  const apiRegion = resolveApiRegion(region);
1747
- const apiModels = await fetchAvailableModels(data.accessToken, apiRegion, credentials.profileArn);
1787
+ const resolved = await resolveProfileArn(data.accessToken, apiRegion);
1788
+ if (resolved) {
1789
+ profileArn = resolved;
1790
+ log.info(`Resolved profileArn during OIDC refresh: ${profileArn}`);
1791
+ }
1792
+ } catch (err) {
1793
+ log.warn(`Failed to resolve profileArn during OIDC refresh: ${err}`);
1794
+ }
1795
+ }
1796
+ if (profileArn) {
1797
+ try {
1798
+ const apiRegion = resolveApiRegion(region);
1799
+ const apiModels = await fetchAvailableModels(data.accessToken, apiRegion, profileArn);
1748
1800
  setCachedDynamicModels(buildModelsFromApi(apiModels));
1749
1801
  log.info(`Fetched and cached ${apiModels.length} models after token refresh`);
1750
1802
  } catch (err) {
@@ -1759,7 +1811,7 @@ async function refreshTokenInner(credentials) {
1759
1811
  clientSecret,
1760
1812
  region,
1761
1813
  authMethod,
1762
- profileArn: credentials.profileArn,
1814
+ profileArn,
1763
1815
  kiroSyncSource: credentials.kiroSyncSource,
1764
1816
  kiroSyncTokenKey: credentials.kiroSyncTokenKey
1765
1817
  };
@@ -2420,15 +2472,18 @@ ${uim.content}`;
2420
2472
  }
2421
2473
  if (msg.role === "assistant") {
2422
2474
  let armContent = "";
2475
+ let armReasoningText = "";
2476
+ let armReasoningSignature = "";
2423
2477
  const armToolUses = [];
2424
2478
  if (Array.isArray(msg.content)) {
2425
2479
  for (const block of msg.content) {
2426
2480
  if (block.type === "text") {
2427
2481
  armContent += block.text;
2428
2482
  } else if (block.type === "thinking") {
2429
- armContent = `<thinking>${block.thinking}</thinking>
2430
-
2431
- ${armContent}`;
2483
+ const tb = block;
2484
+ armReasoningText += tb.thinking;
2485
+ if (tb.thinkingSignature)
2486
+ armReasoningSignature = tb.thinkingSignature;
2432
2487
  } else if (block.type === "toolCall") {
2433
2488
  const tc = block;
2434
2489
  armToolUses.push({
@@ -2439,12 +2494,15 @@ ${armContent}`;
2439
2494
  }
2440
2495
  }
2441
2496
  }
2442
- if (!armContent && armToolUses.length === 0)
2497
+ const hasReasoning = armReasoningText.length > 0;
2498
+ if (!armContent && armToolUses.length === 0 && !hasReasoning)
2443
2499
  continue;
2500
+ const reasoningContent = hasReasoning && armReasoningSignature ? { reasoningText: { text: armReasoningText, signature: armReasoningSignature } } : undefined;
2444
2501
  history.push({
2445
2502
  assistantResponseMessage: {
2446
2503
  content: armContent,
2447
- ...armToolUses.length > 0 ? { toolUses: armToolUses } : {}
2504
+ ...armToolUses.length > 0 ? { toolUses: armToolUses } : {},
2505
+ ...reasoningContent ? { reasoningContent } : {}
2448
2506
  }
2449
2507
  });
2450
2508
  continue;
@@ -2741,9 +2799,9 @@ ${systemPrompt}` : ""}`;
2741
2799
  const normalized = normalizeMessages(context.messages);
2742
2800
  const {
2743
2801
  history,
2744
- systemPrepended,
2802
+ systemPrepended: _systemPrepended,
2745
2803
  currentMsgStartIdx
2746
- } = buildHistory(normalized, kiroModelId, systemPrompt);
2804
+ } = buildHistory(normalized, kiroModelId);
2747
2805
  const seedInstruction = SYSTEM_SEED_INSTRUCTION.replace("{{modelId}}", kiroModelId);
2748
2806
  const seedPair = [
2749
2807
  { userInputMessage: { content: seedInstruction, origin: "KIRO_CLI" } },
@@ -2758,15 +2816,18 @@ ${systemPrompt}` : ""}`;
2758
2816
  if (firstMsg?.role === "assistant") {
2759
2817
  const am = firstMsg;
2760
2818
  let armContent = "";
2819
+ let armReasoningText = "";
2820
+ let armReasoningSignature = "";
2761
2821
  const armToolUses = [];
2762
2822
  if (Array.isArray(am.content)) {
2763
2823
  for (const b of am.content) {
2764
2824
  if (b.type === "text") {
2765
2825
  armContent += b.text;
2766
2826
  } else if (b.type === "thinking") {
2767
- armContent = `<thinking>${b.thinking}</thinking>
2768
-
2769
- ${armContent}`;
2827
+ const tb = b;
2828
+ armReasoningText += tb.thinking;
2829
+ if (tb.thinkingSignature)
2830
+ armReasoningSignature = tb.thinkingSignature;
2770
2831
  } else if (b.type === "toolCall") {
2771
2832
  const tc = b;
2772
2833
  armToolUses.push({
@@ -2777,8 +2838,10 @@ ${armContent}`;
2777
2838
  }
2778
2839
  }
2779
2840
  }
2780
- if (armContent || armToolUses.length > 0) {
2841
+ const hasReasoning = armReasoningText.length > 0;
2842
+ if (armContent || armToolUses.length > 0 || hasReasoning) {
2781
2843
  const last = history[history.length - 1];
2844
+ const reasoningContent = hasReasoning && armReasoningSignature ? { reasoningText: { text: armReasoningText, signature: armReasoningSignature } } : undefined;
2782
2845
  if (last && !last.userInputMessage && last.assistantResponseMessage) {
2783
2846
  last.assistantResponseMessage.content += `
2784
2847
 
@@ -2789,11 +2852,15 @@ ${armContent}`;
2789
2852
  ...armToolUses
2790
2853
  ];
2791
2854
  }
2855
+ if (reasoningContent) {
2856
+ last.assistantResponseMessage.reasoningContent = reasoningContent;
2857
+ }
2792
2858
  } else {
2793
2859
  history.push({
2794
2860
  assistantResponseMessage: {
2795
2861
  content: armContent,
2796
- ...armToolUses.length > 0 ? { toolUses: armToolUses } : {}
2862
+ ...armToolUses.length > 0 ? { toolUses: armToolUses } : {},
2863
+ ...reasoningContent ? { reasoningContent } : {}
2797
2864
  }
2798
2865
  });
2799
2866
  }
@@ -2850,7 +2917,7 @@ ${armContent}`;
2850
2917
  currentContent = "Tool results provided.";
2851
2918
  } else if (firstMsg?.role === "user") {
2852
2919
  currentContent = typeof firstMsg.content === "string" ? firstMsg.content : getContentText(firstMsg);
2853
- if (systemPrompt && !systemPrepended) {
2920
+ if (systemPrompt) {
2854
2921
  currentContent = `${systemPrompt}
2855
2922
 
2856
2923
  ${currentContent}`;
package/dist/extension.js CHANGED
@@ -906,11 +906,11 @@ async function resolveProfileArn(accessToken, apiRegion) {
906
906
  Authorization: `Bearer ${accessToken}`,
907
907
  "Content-Type": "application/x-amz-json-1.0",
908
908
  "X-Amz-Target": "AmazonCodeWhispererService.ListAvailableProfiles",
909
- "User-Agent": "pi-kiro"
909
+ "user-agent": "aws-sdk-rust/1.3.15 ua/2.1 api/codewhispererruntime/0.1.16551 os/macos lang/rust/1.92.0 md/appVersion-2.7.1 app/AmazonQ-For-CLI"
910
910
  },
911
911
  body: "{}"
912
912
  });
913
- if (!resp.ok)
913
+ if (!resp || !resp.ok)
914
914
  return null;
915
915
  const data = await resp.json();
916
916
  const profiles = data.profiles ?? [];
@@ -936,7 +936,9 @@ async function fetchAvailableModels(accessToken, apiRegion, profileArn) {
936
936
  },
937
937
  body: JSON.stringify({ origin: "KIRO_CLI", profileArn })
938
938
  });
939
- if (!resp.ok) {
939
+ if (!resp || !resp.ok) {
940
+ if (!resp)
941
+ throw new Error("ListAvailableModels failed: fetch returned no response");
940
942
  const body = await resp.text().catch(() => "");
941
943
  if (resp.status === 401 || resp.status === 400 && body.includes("Invalid token")) {
942
944
  throw new Error(`Authentication failed: 401 ListAvailableModels failed - ${body}`);
@@ -1460,7 +1462,9 @@ async function runSocialSignInFlow(callbacks) {
1460
1462
  ...callbacks,
1461
1463
  onAuth: (info) => {
1462
1464
  callbackServer.setIdcVerifyUrl(info.url);
1463
- callbacks.onAuth(info);
1465
+ if (info.instructions) {
1466
+ callbacks.onProgress?.(info.instructions);
1467
+ }
1464
1468
  }
1465
1469
  };
1466
1470
  try {
@@ -1637,6 +1641,27 @@ Complete authorization within 10 minutes.`
1637
1641
  if (!tok.accessToken || !tok.refreshToken) {
1638
1642
  throw new Error("Authorization completed but no tokens returned");
1639
1643
  }
1644
+ callbacks.onProgress?.("Resolving Kiro profile…");
1645
+ let profileArn;
1646
+ try {
1647
+ const apiRegion = resolveApiRegion(detectedRegion);
1648
+ const resolved = await resolveProfileArn(tok.accessToken, apiRegion);
1649
+ if (resolved) {
1650
+ profileArn = resolved;
1651
+ log.info(`Resolved profileArn during login: ${profileArn}`);
1652
+ try {
1653
+ const apiModels = await fetchAvailableModels(tok.accessToken, apiRegion, profileArn);
1654
+ setCachedDynamicModels(buildModelsFromApi(apiModels));
1655
+ log.info(`Fetched and cached ${apiModels.length} models after login`);
1656
+ } catch (err) {
1657
+ log.warn(`Failed to fetch models during login: ${err}`);
1658
+ }
1659
+ } else {
1660
+ log.warn("Could not resolve profileArn during login");
1661
+ }
1662
+ } catch (err) {
1663
+ log.warn(`Failed to resolve profileArn during login: ${err}`);
1664
+ }
1640
1665
  return {
1641
1666
  refresh: `${tok.refreshToken}|${result.clientId}|${result.clientSecret}|${authMethod}`,
1642
1667
  access: tok.accessToken,
@@ -1644,7 +1669,8 @@ Complete authorization within 10 minutes.`
1644
1669
  clientId: result.clientId,
1645
1670
  clientSecret: result.clientSecret,
1646
1671
  region: detectedRegion,
1647
- authMethod
1672
+ authMethod,
1673
+ ...profileArn ? { profileArn } : {}
1648
1674
  };
1649
1675
  }
1650
1676
  async function syncBackToKiroCli(result) {
@@ -1710,10 +1736,23 @@ async function refreshTokenInner(credentials) {
1710
1736
  throw new Error(`Desktop token refresh failed: ${resp2.status} ${body}`);
1711
1737
  }
1712
1738
  const data2 = await resp2.json();
1713
- if (credentials.profileArn) {
1739
+ let profileArn2 = credentials.profileArn;
1740
+ if (!profileArn2) {
1741
+ try {
1742
+ const apiRegion = resolveApiRegion(region);
1743
+ const resolved = await resolveProfileArn(data2.accessToken, apiRegion);
1744
+ if (resolved) {
1745
+ profileArn2 = resolved;
1746
+ log.info(`Resolved profileArn during desktop refresh: ${profileArn2}`);
1747
+ }
1748
+ } catch (err) {
1749
+ log.warn(`Failed to resolve profileArn during desktop refresh: ${err}`);
1750
+ }
1751
+ }
1752
+ if (profileArn2) {
1714
1753
  try {
1715
1754
  const apiRegion = resolveApiRegion(region);
1716
- const apiModels = await fetchAvailableModels(data2.accessToken, apiRegion, credentials.profileArn);
1755
+ const apiModels = await fetchAvailableModels(data2.accessToken, apiRegion, profileArn2);
1717
1756
  setCachedDynamicModels(buildModelsFromApi(apiModels));
1718
1757
  log.info(`Fetched and cached ${apiModels.length} models after desktop token refresh`);
1719
1758
  } catch (err) {
@@ -1728,7 +1767,7 @@ async function refreshTokenInner(credentials) {
1728
1767
  clientSecret: "",
1729
1768
  region,
1730
1769
  authMethod,
1731
- profileArn: credentials.profileArn,
1770
+ profileArn: profileArn2,
1732
1771
  kiroSyncSource: credentials.kiroSyncSource,
1733
1772
  kiroSyncTokenKey: credentials.kiroSyncTokenKey
1734
1773
  };
@@ -1744,10 +1783,23 @@ async function refreshTokenInner(credentials) {
1744
1783
  throw new Error(`Token refresh failed: ${resp.status} ${body}`);
1745
1784
  }
1746
1785
  const data = await resp.json();
1747
- if (credentials.profileArn) {
1786
+ let profileArn = credentials.profileArn;
1787
+ if (!profileArn) {
1748
1788
  try {
1749
1789
  const apiRegion = resolveApiRegion(region);
1750
- const apiModels = await fetchAvailableModels(data.accessToken, apiRegion, credentials.profileArn);
1790
+ const resolved = await resolveProfileArn(data.accessToken, apiRegion);
1791
+ if (resolved) {
1792
+ profileArn = resolved;
1793
+ log.info(`Resolved profileArn during OIDC refresh: ${profileArn}`);
1794
+ }
1795
+ } catch (err) {
1796
+ log.warn(`Failed to resolve profileArn during OIDC refresh: ${err}`);
1797
+ }
1798
+ }
1799
+ if (profileArn) {
1800
+ try {
1801
+ const apiRegion = resolveApiRegion(region);
1802
+ const apiModels = await fetchAvailableModels(data.accessToken, apiRegion, profileArn);
1751
1803
  setCachedDynamicModels(buildModelsFromApi(apiModels));
1752
1804
  log.info(`Fetched and cached ${apiModels.length} models after token refresh`);
1753
1805
  } catch (err) {
@@ -1762,7 +1814,7 @@ async function refreshTokenInner(credentials) {
1762
1814
  clientSecret,
1763
1815
  region,
1764
1816
  authMethod,
1765
- profileArn: credentials.profileArn,
1817
+ profileArn,
1766
1818
  kiroSyncSource: credentials.kiroSyncSource,
1767
1819
  kiroSyncTokenKey: credentials.kiroSyncTokenKey
1768
1820
  };
@@ -2424,15 +2476,18 @@ ${uim.content}`;
2424
2476
  }
2425
2477
  if (msg.role === "assistant") {
2426
2478
  let armContent = "";
2479
+ let armReasoningText = "";
2480
+ let armReasoningSignature = "";
2427
2481
  const armToolUses = [];
2428
2482
  if (Array.isArray(msg.content)) {
2429
2483
  for (const block of msg.content) {
2430
2484
  if (block.type === "text") {
2431
2485
  armContent += block.text;
2432
2486
  } else if (block.type === "thinking") {
2433
- armContent = `<thinking>${block.thinking}</thinking>
2434
-
2435
- ${armContent}`;
2487
+ const tb = block;
2488
+ armReasoningText += tb.thinking;
2489
+ if (tb.thinkingSignature)
2490
+ armReasoningSignature = tb.thinkingSignature;
2436
2491
  } else if (block.type === "toolCall") {
2437
2492
  const tc = block;
2438
2493
  armToolUses.push({
@@ -2443,12 +2498,15 @@ ${armContent}`;
2443
2498
  }
2444
2499
  }
2445
2500
  }
2446
- if (!armContent && armToolUses.length === 0)
2501
+ const hasReasoning = armReasoningText.length > 0;
2502
+ if (!armContent && armToolUses.length === 0 && !hasReasoning)
2447
2503
  continue;
2504
+ const reasoningContent = hasReasoning && armReasoningSignature ? { reasoningText: { text: armReasoningText, signature: armReasoningSignature } } : undefined;
2448
2505
  history.push({
2449
2506
  assistantResponseMessage: {
2450
2507
  content: armContent,
2451
- ...armToolUses.length > 0 ? { toolUses: armToolUses } : {}
2508
+ ...armToolUses.length > 0 ? { toolUses: armToolUses } : {},
2509
+ ...reasoningContent ? { reasoningContent } : {}
2452
2510
  }
2453
2511
  });
2454
2512
  continue;
@@ -2745,9 +2803,9 @@ ${systemPrompt}` : ""}`;
2745
2803
  const normalized = normalizeMessages(context.messages);
2746
2804
  const {
2747
2805
  history,
2748
- systemPrepended,
2806
+ systemPrepended: _systemPrepended,
2749
2807
  currentMsgStartIdx
2750
- } = buildHistory(normalized, kiroModelId, systemPrompt);
2808
+ } = buildHistory(normalized, kiroModelId);
2751
2809
  const seedInstruction = SYSTEM_SEED_INSTRUCTION.replace("{{modelId}}", kiroModelId);
2752
2810
  const seedPair = [
2753
2811
  { userInputMessage: { content: seedInstruction, origin: "KIRO_CLI" } },
@@ -2762,15 +2820,18 @@ ${systemPrompt}` : ""}`;
2762
2820
  if (firstMsg?.role === "assistant") {
2763
2821
  const am = firstMsg;
2764
2822
  let armContent = "";
2823
+ let armReasoningText = "";
2824
+ let armReasoningSignature = "";
2765
2825
  const armToolUses = [];
2766
2826
  if (Array.isArray(am.content)) {
2767
2827
  for (const b of am.content) {
2768
2828
  if (b.type === "text") {
2769
2829
  armContent += b.text;
2770
2830
  } else if (b.type === "thinking") {
2771
- armContent = `<thinking>${b.thinking}</thinking>
2772
-
2773
- ${armContent}`;
2831
+ const tb = b;
2832
+ armReasoningText += tb.thinking;
2833
+ if (tb.thinkingSignature)
2834
+ armReasoningSignature = tb.thinkingSignature;
2774
2835
  } else if (b.type === "toolCall") {
2775
2836
  const tc = b;
2776
2837
  armToolUses.push({
@@ -2781,8 +2842,10 @@ ${armContent}`;
2781
2842
  }
2782
2843
  }
2783
2844
  }
2784
- if (armContent || armToolUses.length > 0) {
2845
+ const hasReasoning = armReasoningText.length > 0;
2846
+ if (armContent || armToolUses.length > 0 || hasReasoning) {
2785
2847
  const last = history[history.length - 1];
2848
+ const reasoningContent = hasReasoning && armReasoningSignature ? { reasoningText: { text: armReasoningText, signature: armReasoningSignature } } : undefined;
2786
2849
  if (last && !last.userInputMessage && last.assistantResponseMessage) {
2787
2850
  last.assistantResponseMessage.content += `
2788
2851
 
@@ -2793,11 +2856,15 @@ ${armContent}`;
2793
2856
  ...armToolUses
2794
2857
  ];
2795
2858
  }
2859
+ if (reasoningContent) {
2860
+ last.assistantResponseMessage.reasoningContent = reasoningContent;
2861
+ }
2796
2862
  } else {
2797
2863
  history.push({
2798
2864
  assistantResponseMessage: {
2799
2865
  content: armContent,
2800
- ...armToolUses.length > 0 ? { toolUses: armToolUses } : {}
2866
+ ...armToolUses.length > 0 ? { toolUses: armToolUses } : {},
2867
+ ...reasoningContent ? { reasoningContent } : {}
2801
2868
  }
2802
2869
  });
2803
2870
  }
@@ -2854,7 +2921,7 @@ ${armContent}`;
2854
2921
  currentContent = "Tool results provided.";
2855
2922
  } else if (firstMsg?.role === "user") {
2856
2923
  currentContent = typeof firstMsg.content === "string" ? firstMsg.content : getContentText(firstMsg);
2857
- if (systemPrompt && !systemPrepended) {
2924
+ if (systemPrompt) {
2858
2925
  currentContent = `${systemPrompt}
2859
2926
 
2860
2927
  ${currentContent}`;
@@ -3500,7 +3567,7 @@ async function extension_default(pi) {
3500
3567
  } else {
3501
3568
  log.warn("Run 'kiro login' to authenticate and fetch models dynamically. Note: This extension does not have the same authentication mechanism as other Kiro tools.");
3502
3569
  }
3503
- pi.registerProvider("kiro", {
3570
+ pi.registerProvider("kiro AWS", {
3504
3571
  baseUrl: "https://runtime.us-east-1.kiro.dev",
3505
3572
  api: "kiro-api",
3506
3573
  authHeader: true,
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAOA,gEAAgE;AAChE,eAAO,MAAM,cAAc,aAuBzB,CAAC;AAEH,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,sEAAsE;AACtE,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMxD;AA8BD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAGtE;AAiDD,wBAAgB,oBAAoB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAC3D,MAAM,EAAE,CAAC,EAAE,EACX,SAAS,EAAE,MAAM,GAChB,CAAC,EAAE,CASL;AAQD,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3D;AAaD,KAAK,KAAK,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;AAIlC,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EA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BAAsB,gBAAgB,CACpC,WAAW,EAAE,gBAAgB,GAC5B,OAAO,CAAC,eAAe,CAAC,CAkH1B"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../src/oauth.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAUnF,OAAO,KAAK,EAAsB,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAIhF,eAAO,MAAM,oBAAoB,mCAAmC,CAAC;AACrE,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,UAAU,UAMtB,CAAC;AAmBF,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;OAOG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,UAAU,EAAE,YAAY,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxD,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qEAAqE;IACrE,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAiqBD;;;;;;;GAOG;AACH,wBAAsB,SAAS,CAAC,SAAS,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,CAsDxF;AA8WD;;;;;;;;;;;;GAYG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,gBAAgB,GAC5B,OAAO,CAAC,eAAe,CAAC,CAkH1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../src/stream.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,GAAG,EAEH,2BAA2B,EAC3B,OAAO,EAEP,KAAK,EACL,mBAAmB,EAKpB,MAAM,uBAAuB,CAAC;AA4F/B;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,OAAO,CAAC;AA6DlD,sDAAsD;AACtD,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED,wFAAwF;AACxF,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,kCAAkC;AAClC,wBAAgB,aAAa,IAAI,MAAM,GAAG,SAAS,CAElD;AA0DD,wBAAgB,UAAU,CACxB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EACjB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,2BAA2B,CAi1B7B"}
1
+ {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../src/stream.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,GAAG,EAEH,2BAA2B,EAC3B,OAAO,EAEP,KAAK,EACL,mBAAmB,EAKpB,MAAM,uBAAuB,CAAC;AA4F/B;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,OAAO,CAAC;AA6DlD,sDAAsD;AACtD,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED,wFAAwF;AACxF,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,kCAAkC;AAClC,wBAAgB,aAAa,IAAI,MAAM,GAAG,SAAS,CAElD;AA0DD,wBAAgB,UAAU,CACxB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EACjB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,2BAA2B,CAo2B7B"}
@@ -47,6 +47,12 @@ export interface KiroUserInputMessage {
47
47
  export interface KiroAssistantResponseMessage {
48
48
  content: string;
49
49
  toolUses?: KiroToolUse[];
50
+ reasoningContent?: {
51
+ reasoningText: {
52
+ text: string;
53
+ signature: string;
54
+ };
55
+ };
50
56
  }
51
57
  export interface KiroHistoryEntry {
52
58
  userInputMessage?: KiroUserInputMessage;
@@ -1 +1 @@
1
- {"version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mB,CACjC,MAAM,EAAE,KAAK,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GAChD;IAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAsB1C;AAID;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,OAAO,EAAE,EACnB,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,MAAM,GACpB;IAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAAC,eAAe,EAAE,OAAO,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAA;CAAE,CAuJvF;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CA0DpF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@javargasm/pi-kiro",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "description": "Kiro provider for the pi coding agent: AWS Builder ID / IAM Identity Center login and the CodeWhisperer streaming API, exposing the Kiro Claude model family.",
5
5
  "type": "module",
6
6
  "license": "MIT",