@averyyy/pi-coding-agent 1.5.2-piclient.1 → 1.5.2-piclient.2
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/dist/bundle/chunks/{chunk-DGLLW4Y4.js → chunk-D2LWHJJD.js} +5 -5
- package/dist/bundle/chunks/chunk-OMUE475A.js +35 -0
- package/dist/bundle/chunks/{chunk-BWM3ZYWS.js → chunk-ZFWVOFG2.js} +1 -1
- package/dist/bundle/chunks/{cli-OTDOMRGW.js → cli-M6DJI5GJ.js} +1 -1
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/google-antigravity-runtime.js +2 -2
- package/dist/bundle/chunks/{virtual-modules-J7Z5J7IR.js → virtual-modules-N6RDW4TA.js} +1 -1
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/core/model-runtime.d.ts +3 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +11 -5
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +2 -1
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +2 -1
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/model-catalog-refresh.d.ts +1 -1
- package/dist/modes/interactive/model-catalog-refresh.d.ts.map +1 -1
- package/dist/modes/interactive/model-catalog-refresh.js +2 -2
- package/dist/modes/interactive/model-catalog-refresh.js.map +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunks/chunk-RRE46THK.js +0 -35
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ModelsRefreshResult } from "@earendil-works/pi-ai";
|
|
2
2
|
import type { ModelRuntime } from "../../core/model-runtime.ts";
|
|
3
3
|
type ModelCatalogRuntime = Pick<ModelRuntime, "refresh">;
|
|
4
|
-
/**
|
|
4
|
+
/** Refresh interactive catalogs and server accounts, sharing concurrent callers with independent cancellation. */
|
|
5
5
|
export declare function refreshModelCatalogs(modelRuntime: ModelCatalogRuntime, signal: AbortSignal): Promise<ModelsRefreshResult>;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=model-catalog-refresh.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-catalog-refresh.d.ts","sourceRoot":"","sources":["../../../src/modes/interactive/model-catalog-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,KAAK,mBAAmB,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAwCzD
|
|
1
|
+
{"version":3,"file":"model-catalog-refresh.d.ts","sourceRoot":"","sources":["../../../src/modes/interactive/model-catalog-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,KAAK,mBAAmB,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAwCzD,kHAAkH;AAClH,wBAAgB,oBAAoB,CACnC,YAAY,EAAE,mBAAmB,EACjC,MAAM,EAAE,WAAW,GACjB,OAAO,CAAC,mBAAmB,CAAC,CAE9B"}
|
|
@@ -7,7 +7,7 @@ class ModelCatalogRefreshCoordinator {
|
|
|
7
7
|
if (!active) {
|
|
8
8
|
const controller = new AbortController();
|
|
9
9
|
let created;
|
|
10
|
-
const operation = modelRuntime.refresh({ signal: controller.signal });
|
|
10
|
+
const operation = modelRuntime.refresh({ refreshServerAccounts: true, signal: controller.signal });
|
|
11
11
|
const promise = raceWithAbortSignal(operation, controller.signal).finally(() => {
|
|
12
12
|
if (this.activeByRuntime.get(modelRuntime) === created) {
|
|
13
13
|
this.activeByRuntime.delete(modelRuntime);
|
|
@@ -27,7 +27,7 @@ class ModelCatalogRefreshCoordinator {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
const modelCatalogRefreshCoordinator = new ModelCatalogRefreshCoordinator();
|
|
30
|
-
/**
|
|
30
|
+
/** Refresh interactive catalogs and server accounts, sharing concurrent callers with independent cancellation. */
|
|
31
31
|
export function refreshModelCatalogs(modelRuntime, signal) {
|
|
32
32
|
return modelCatalogRefreshCoordinator.refresh(modelRuntime, signal);
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-catalog-refresh.js","sourceRoot":"","sources":["../../../src/modes/interactive/model-catalog-refresh.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAU3D,MAAM,8BAA8B;IAClB,eAAe,GAAG,IAAI,OAAO,EAAkD,CAAC;IAEjG,OAAO,CAAC,YAAiC,EAAE,MAAmB;QAC7D,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,IAAI,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;YACzC,IAAI,OAAmC,CAAC;YACxC,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"model-catalog-refresh.js","sourceRoot":"","sources":["../../../src/modes/interactive/model-catalog-refresh.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAU3D,MAAM,8BAA8B;IAClB,eAAe,GAAG,IAA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YAC3B,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;CACD;AAED,MAAM,8BAA8B,GAAG,IAAI,8BAA8B,EAAE,CAAC;AAE5E,kHAAkH;AAClH,MAAM,UAAU,oBAAoB,CACnC,YAAiC,EACjC,MAAmB;IAEnB,OAAO,8BAA8B,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import type { ModelsRefreshResult } from \"@earendil-works/pi-ai\";\nimport type { ModelRuntime } from \"../../core/model-runtime.ts\";\nimport { raceWithAbortSignal } from \"../../utils/abort.ts\";\n\ntype ModelCatalogRuntime = Pick<ModelRuntime, \"refresh\">;\n\ninterface ActiveModelCatalogRefresh {\n\tcontroller: AbortController;\n\tpromise: Promise<ModelsRefreshResult>;\n\twaiters: number;\n}\n\nclass ModelCatalogRefreshCoordinator {\n\tprivate readonly activeByRuntime = new WeakMap<ModelCatalogRuntime, ActiveModelCatalogRefresh>();\n\n\trefresh(modelRuntime: ModelCatalogRuntime, signal: AbortSignal): Promise<ModelsRefreshResult> {\n\t\tsignal.throwIfAborted();\n\t\tlet active = this.activeByRuntime.get(modelRuntime);\n\t\tif (!active) {\n\t\t\tconst controller = new AbortController();\n\t\t\tlet created!: ActiveModelCatalogRefresh;\n\t\t\tconst operation = modelRuntime.refresh({ refreshServerAccounts: true, signal: controller.signal });\n\t\t\tconst promise = raceWithAbortSignal(operation, controller.signal).finally(() => {\n\t\t\t\tif (this.activeByRuntime.get(modelRuntime) === created) {\n\t\t\t\t\tthis.activeByRuntime.delete(modelRuntime);\n\t\t\t\t}\n\t\t\t});\n\t\t\tcreated = { controller, promise, waiters: 0 };\n\t\t\tactive = created;\n\t\t\tthis.activeByRuntime.set(modelRuntime, active);\n\t\t}\n\n\t\tactive.waiters++;\n\t\treturn raceWithAbortSignal(active.promise, signal).finally(() => {\n\t\t\tactive.waiters--;\n\t\t\tif (active.waiters === 0 && this.activeByRuntime.get(modelRuntime) === active) {\n\t\t\t\tactive.controller.abort();\n\t\t\t}\n\t\t});\n\t}\n}\n\nconst modelCatalogRefreshCoordinator = new ModelCatalogRefreshCoordinator();\n\n/** Refresh interactive catalogs and server accounts, sharing concurrent callers with independent cancellation. */\nexport function refreshModelCatalogs(\n\tmodelRuntime: ModelCatalogRuntime,\n\tsignal: AbortSignal,\n): Promise<ModelsRefreshResult> {\n\treturn modelCatalogRefreshCoordinator.refresh(modelRuntime, signal);\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@averyyy/pi-coding-agent",
|
|
3
|
-
"version": "1.5.2-piclient.
|
|
3
|
+
"version": "1.5.2-piclient.2",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"piConfig": {
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"prepublishOnly": "npm run clean && npm run build"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@earendil-works/pi-agent-core": "npm:@averyyy/pi-agent-core@1.5.2-piclient.
|
|
52
|
-
"@earendil-works/pi-ai": "npm:@averyyy/pi-ai@1.5.2-piclient.
|
|
51
|
+
"@earendil-works/pi-agent-core": "npm:@averyyy/pi-agent-core@1.5.2-piclient.2",
|
|
52
|
+
"@earendil-works/pi-ai": "npm:@averyyy/pi-ai@1.5.2-piclient.2",
|
|
53
53
|
"@earendil-works/pi-codemode": "1.5.2",
|
|
54
54
|
"@earendil-works/pi-mcp": "1.5.2",
|
|
55
|
-
"@earendil-works/pi-tui": "npm:@averyyy/pi-tui@1.5.2-piclient.
|
|
55
|
+
"@earendil-works/pi-tui": "npm:@averyyy/pi-tui@1.5.2-piclient.2",
|
|
56
56
|
"@silvia-odwyer/photon-node": "0.3.4",
|
|
57
57
|
"brace-expansion": "5.0.12",
|
|
58
58
|
"chalk": "6.0.0",
|