@herbertgao/pi-extensions 2026.11.14 → 2026.11.16
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 +23 -0
- package/README.md +7 -7
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +3 -2
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +3 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +5 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +9 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/index.ts +32 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/markdown-enhance.ts +26 -21
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/table-copy.ts +753 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/utils/fullscreen-detect.ts +11 -0
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-impeccable/README.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/package.json +4 -4
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/SKILL.md +5 -5
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.md +8 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/audit.native.md +8 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/craft-floor.md +3 -3
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/critique.md +8 -6
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/degraded/finish-reviewer.md +2 -2
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/doctor.md +5 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/init.md +2 -0
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/live.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/new-work.md +8 -9
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/reference/polish.md +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/VERSION +1 -1
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/node_modules/@herbertgao/pi-impeccable/skills/impeccable/scripts/live-browser.js +55 -32
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/README.md +18 -16
- package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +1 -1
- package/node_modules/@herbertgao/pi-subagents/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +18 -5
- package/node_modules/@herbertgao/pi-subagents/src/agent-types.ts +88 -0
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +16 -92
- package/node_modules/@herbertgao/pi-subagents/src/mention-clone.ts +6 -2
- package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +18 -2
- package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +25 -3
- package/node_modules/pi-commandcode-provider/CHANGELOG.md +20 -0
- package/node_modules/pi-commandcode-provider/README.md +1 -1
- package/node_modules/pi-commandcode-provider/index.ts +2 -1
- package/node_modules/pi-commandcode-provider/package.json +1 -1
- package/node_modules/pi-commandcode-provider/src/commandcode-catalog.ts +9 -2
- package/node_modules/pi-commandcode-provider/src/pricing.ts +5 -1
- package/node_modules/pi-commandcode-provider/src/responses-compat.ts +24 -1
- package/node_modules/pi-commandcode-provider/src/responses-stream.ts +99 -6
- package/node_modules/pi-provider-qoder/dist/index.js +50 -10
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/package.json +6 -6
|
@@ -855,7 +855,7 @@ async function updateQoderModelsCache(authToken, userID, name, email, mode) {
|
|
|
855
855
|
const configs = {};
|
|
856
856
|
for (const entry of chatModels) {
|
|
857
857
|
const key = entry.key;
|
|
858
|
-
if (!key || !entry.
|
|
858
|
+
if (!key || !entry.display_name || !entry.enable && key === "auto") continue;
|
|
859
859
|
const display = entry.display_name;
|
|
860
860
|
const ctxLen = contextWindowFromCatalog(entry);
|
|
861
861
|
const isVL = !!entry.is_vl;
|
|
@@ -1263,23 +1263,33 @@ async function loginQoderForMode(callbacks, mode) {
|
|
|
1263
1263
|
if (pat) {
|
|
1264
1264
|
try {
|
|
1265
1265
|
const creds2 = await credentialsFromPat(pat, mode);
|
|
1266
|
-
const
|
|
1267
|
-
|
|
1268
|
-
});
|
|
1266
|
+
const qCreds2 = creds2;
|
|
1267
|
+
await awaitModelsCacheAfterLogin(qCreds2.access, qCreds2.userID, qCreds2.name, qCreds2.email, mode);
|
|
1269
1268
|
saveCredentialsToAuthFile(providerID, creds2);
|
|
1270
1269
|
return creds2;
|
|
1271
1270
|
} catch {
|
|
1272
1271
|
}
|
|
1273
1272
|
}
|
|
1274
1273
|
const creds = await interactiveLogin(callbacks, mode);
|
|
1274
|
+
const qCreds = creds;
|
|
1275
|
+
await awaitModelsCacheAfterLogin(qCreds.access, qCreds.userID, qCreds.name, qCreds.email, mode);
|
|
1276
|
+
saveCredentialsToAuthFile(providerID, creds);
|
|
1277
|
+
return creds;
|
|
1278
|
+
}
|
|
1279
|
+
var LOGIN_MODEL_CACHE_TIMEOUT_MS = 15e3;
|
|
1280
|
+
async function awaitModelsCacheAfterLogin(access, userID, name, email, mode) {
|
|
1281
|
+
let timeout;
|
|
1275
1282
|
try {
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1283
|
+
await Promise.race([
|
|
1284
|
+
updateQoderModelsCache(access, userID, name, email, mode),
|
|
1285
|
+
new Promise((resolve2) => {
|
|
1286
|
+
timeout = setTimeout(resolve2, LOGIN_MODEL_CACHE_TIMEOUT_MS);
|
|
1287
|
+
})
|
|
1288
|
+
]);
|
|
1279
1289
|
} catch {
|
|
1290
|
+
} finally {
|
|
1291
|
+
if (timeout !== void 0) clearTimeout(timeout);
|
|
1280
1292
|
}
|
|
1281
|
-
saveCredentialsToAuthFile(providerID, creds);
|
|
1282
|
-
return creds;
|
|
1283
1293
|
}
|
|
1284
1294
|
async function refreshQoderTokenForMode(credentials, mode) {
|
|
1285
1295
|
if (isPatRefresh(credentials.refresh)) {
|
|
@@ -11468,6 +11478,31 @@ function modelsForProvider(mode, providerID) {
|
|
|
11468
11478
|
baseUrl: getQoderBaseUrl(mode)
|
|
11469
11479
|
}));
|
|
11470
11480
|
}
|
|
11481
|
+
function resolveRefreshCredentials(context, providerID) {
|
|
11482
|
+
const credential = context.credential;
|
|
11483
|
+
if (credential?.type === "oauth") {
|
|
11484
|
+
const oauth = credential;
|
|
11485
|
+
if (oauth.access) return oauth;
|
|
11486
|
+
}
|
|
11487
|
+
return getCachedCredentials("", providerID);
|
|
11488
|
+
}
|
|
11489
|
+
async function refreshQoderModelsForMode(mode, context) {
|
|
11490
|
+
const providerID = getQoderRegionConfig(mode).providerID;
|
|
11491
|
+
if (context.allowNetwork && !context.signal.aborted) {
|
|
11492
|
+
const creds = resolveRefreshCredentials(context, providerID);
|
|
11493
|
+
if (creds?.access) {
|
|
11494
|
+
const region = getQoderRegionConfig(mode);
|
|
11495
|
+
await updateQoderModelsCache(
|
|
11496
|
+
creds.access,
|
|
11497
|
+
creds.userID || "qoder-user",
|
|
11498
|
+
creds.name || region.userNameFallback,
|
|
11499
|
+
creds.email || region.userEmailFallback,
|
|
11500
|
+
mode
|
|
11501
|
+
);
|
|
11502
|
+
}
|
|
11503
|
+
}
|
|
11504
|
+
return modelsForProvider(mode, providerID);
|
|
11505
|
+
}
|
|
11471
11506
|
function createQoderOAuth(mode) {
|
|
11472
11507
|
const region = getQoderRegionConfig(mode);
|
|
11473
11508
|
return {
|
|
@@ -11490,6 +11525,10 @@ function registerQoderProvider(pi, mode) {
|
|
|
11490
11525
|
baseUrl: getQoderBaseUrl(mode),
|
|
11491
11526
|
api: QODER_API,
|
|
11492
11527
|
models: modelsForProvider(mode, providerID),
|
|
11528
|
+
// Host-driven refresh (see refreshQoderModelsForMode): without this the
|
|
11529
|
+
// host's post-login refresh skips qoder entirely and the static fallback
|
|
11530
|
+
// list stays visible until the process restarts.
|
|
11531
|
+
refreshModels: (context) => refreshQoderModelsForMode(mode, context),
|
|
11493
11532
|
oauth,
|
|
11494
11533
|
// pi-coding-agent resolves its own nested @earendil-works/pi-ai copy, so the
|
|
11495
11534
|
// structurally identical Model/Context types are nominally distinct here.
|
|
@@ -11562,5 +11601,6 @@ async function index_default(pi) {
|
|
|
11562
11601
|
registerQoderCreditDisplay(pi);
|
|
11563
11602
|
}
|
|
11564
11603
|
export {
|
|
11565
|
-
index_default as default
|
|
11604
|
+
index_default as default,
|
|
11605
|
+
refreshQoderModelsForMode
|
|
11566
11606
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-extensions",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.16",
|
|
4
4
|
"description": "Aggregate installer for HerbertGao-maintained Pi extensions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"extensions",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"@dietrichgebert/ponytail": "5.3.3",
|
|
42
42
|
"@herbertgao/pi-agency": "0.1.3",
|
|
43
43
|
"@herbertgao/pi-bark": "0.2.2",
|
|
44
|
-
"@herbertgao/pi-cc-extensions": "1.0.
|
|
45
|
-
"@herbertgao/pi-impeccable": "0.
|
|
44
|
+
"@herbertgao/pi-cc-extensions": "1.0.21-local.1",
|
|
45
|
+
"@herbertgao/pi-impeccable": "0.6.0",
|
|
46
46
|
"@herbertgao/pi-inline-skill-commands": "0.1.1",
|
|
47
|
-
"@herbertgao/pi-subagents": "0.26.
|
|
47
|
+
"@herbertgao/pi-subagents": "0.26.1-local.1",
|
|
48
48
|
"@herbertgao/sol-pi": "0.4.3",
|
|
49
49
|
"@juicesharp/rpiv-ask-user-question": "2.15.0",
|
|
50
50
|
"@juicesharp/rpiv-config": "^2.15.0",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"nanoid": "^5.0.0",
|
|
77
77
|
"p-limit": "^6.1.0",
|
|
78
78
|
"pi-antigravity": "0.14.0",
|
|
79
|
-
"pi-commandcode-provider": "0.8.
|
|
79
|
+
"pi-commandcode-provider": "0.8.6",
|
|
80
80
|
"pi-lens": "4.5.1",
|
|
81
81
|
"pi-next-cue": "1.0.8",
|
|
82
|
-
"pi-provider-qoder": "0.6.
|
|
82
|
+
"pi-provider-qoder": "0.6.13",
|
|
83
83
|
"pi-typesafe": "0.14.0",
|
|
84
84
|
"pi-web-access": "0.48.0",
|
|
85
85
|
"pidusage": "^4.0.1",
|