@javargasm/pi-kiro 0.4.5 → 0.4.6
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 +6 -0
- package/dist/core.js +62 -10
- package/dist/extension.js +62 -10
- package/dist/models.d.ts.map +1 -1
- package/dist/oauth.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/core.js
CHANGED
|
@@ -908,7 +908,7 @@ async function resolveProfileArn(accessToken, apiRegion) {
|
|
|
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
|
-
|
|
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
|
-
|
|
1736
|
+
let profileArn2 = credentials.profileArn;
|
|
1737
|
+
if (!profileArn2) {
|
|
1711
1738
|
try {
|
|
1712
1739
|
const apiRegion = resolveApiRegion(region);
|
|
1713
|
-
const
|
|
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) {
|
|
1750
|
+
try {
|
|
1751
|
+
const apiRegion = resolveApiRegion(region);
|
|
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:
|
|
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
|
-
|
|
1783
|
+
let profileArn = credentials.profileArn;
|
|
1784
|
+
if (!profileArn) {
|
|
1785
|
+
try {
|
|
1786
|
+
const apiRegion = resolveApiRegion(region);
|
|
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) {
|
|
1745
1797
|
try {
|
|
1746
1798
|
const apiRegion = resolveApiRegion(region);
|
|
1747
|
-
const apiModels = await fetchAvailableModels(data.accessToken, apiRegion,
|
|
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
|
|
1814
|
+
profileArn,
|
|
1763
1815
|
kiroSyncSource: credentials.kiroSyncSource,
|
|
1764
1816
|
kiroSyncTokenKey: credentials.kiroSyncTokenKey
|
|
1765
1817
|
};
|
package/dist/extension.js
CHANGED
|
@@ -910,7 +910,7 @@ async function resolveProfileArn(accessToken, apiRegion) {
|
|
|
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
|
-
|
|
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
|
-
|
|
1739
|
+
let profileArn2 = credentials.profileArn;
|
|
1740
|
+
if (!profileArn2) {
|
|
1714
1741
|
try {
|
|
1715
1742
|
const apiRegion = resolveApiRegion(region);
|
|
1716
|
-
const
|
|
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) {
|
|
1753
|
+
try {
|
|
1754
|
+
const apiRegion = resolveApiRegion(region);
|
|
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:
|
|
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
|
-
|
|
1786
|
+
let profileArn = credentials.profileArn;
|
|
1787
|
+
if (!profileArn) {
|
|
1788
|
+
try {
|
|
1789
|
+
const apiRegion = resolveApiRegion(region);
|
|
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) {
|
|
1748
1800
|
try {
|
|
1749
1801
|
const apiRegion = resolveApiRegion(region);
|
|
1750
|
-
const apiModels = await fetchAvailableModels(data.accessToken, apiRegion,
|
|
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
|
|
1817
|
+
profileArn,
|
|
1766
1818
|
kiroSyncSource: credentials.kiroSyncSource,
|
|
1767
1819
|
kiroSyncTokenKey: credentials.kiroSyncTokenKey
|
|
1768
1820
|
};
|
package/dist/models.d.ts.map
CHANGED
|
@@ -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,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,UAAU,CAAC;IAChB,QAAQ,EAAE,MAAM,CAA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AAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAmBxB;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,YAAY,EAAE,CAAC,CA8BzB;AAqBD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,CAAC,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAiC5E;AAKD,wBAAgB,sBAAsB,IAAI,YAAY,EAAE,GAAG,IAAI,CAE9D;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,GAAG,IAAI,CAE1E"}
|
package/dist/oauth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@javargasm/pi-kiro",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
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",
|