@ngosangns/ns-bridge 0.0.0-stage → 0.1.0
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/LICENSE +22 -0
- package/README.md +38 -2
- package/dist/catalog.d.ts +28 -0
- package/dist/catalog.js +142 -0
- package/dist/catalog.js.map +1 -0
- package/dist/cli.d.ts +25 -0
- package/dist/cli.js +238 -0
- package/dist/cli.js.map +1 -0
- package/dist/hosts.d.ts +22 -0
- package/dist/hosts.js +65 -0
- package/dist/hosts.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +5 -0
- package/dist/main.js.map +1 -0
- package/dist/refresh-entry.js +99309 -0
- package/dist/refresh.d.ts +20 -0
- package/dist/refresh.js +17 -0
- package/dist/refresh.js.map +1 -0
- package/package.json +46 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog refresh loads the Pi provider only when `--apply` runs.
|
|
3
|
+
* `status`, `models list`, and install previews do not import it.
|
|
4
|
+
*/
|
|
5
|
+
import type { Vendor } from "./catalog.js";
|
|
6
|
+
export interface RefreshResult {
|
|
7
|
+
count: number;
|
|
8
|
+
detail?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ModelRefresh {
|
|
11
|
+
kiro: () => Promise<RefreshResult>;
|
|
12
|
+
devin: () => Promise<RefreshResult>;
|
|
13
|
+
grok: () => Promise<RefreshResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A variable specifier so typecheck does not follow the esbuild bundle, which
|
|
17
|
+
* pulls in the provider sources. The file exists only after `pnpm build`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function defaultModelRefresh(): Promise<ModelRefresh>;
|
|
20
|
+
export declare function refreshLine(vendor: Vendor, result: RefreshResult): string;
|
package/dist/refresh.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog refresh loads the Pi provider only when `--apply` runs.
|
|
3
|
+
* `status`, `models list`, and install previews do not import it.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A variable specifier so typecheck does not follow the esbuild bundle, which
|
|
7
|
+
* pulls in the provider sources. The file exists only after `pnpm build`.
|
|
8
|
+
*/
|
|
9
|
+
export async function defaultModelRefresh() {
|
|
10
|
+
const specifier = "./refresh-entry.js";
|
|
11
|
+
const loaded = (await import(specifier));
|
|
12
|
+
return loaded.createBundledRefresh();
|
|
13
|
+
}
|
|
14
|
+
export function refreshLine(vendor, result) {
|
|
15
|
+
return `${vendor}: ${result.count} model(s)${result.detail ? ` ${result.detail}` : ""}`;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=refresh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh.js","sourceRoot":"","sources":["../src/refresh.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB;IACvC,MAAM,SAAS,GAAG,oBAAoB,CAAC;IACvC,MAAM,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,SAAS,CAAC,CAAiD,CAAC;IACzF,OAAO,MAAM,CAAC,oBAAoB,EAAE,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,MAAc,EAAE,MAAqB;IAC/D,OAAO,GAAG,MAAM,KAAK,MAAM,CAAC,KAAK,YAAY,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAC1F,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngosangns/ns-bridge",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Install, update, and refresh ns-bridge providers outside Pi, OMP, and DSH.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "ngosangns",
|
|
8
|
+
"bin": {
|
|
9
|
+
"ns-bridge": "./dist/main.js"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/cli.d.ts",
|
|
14
|
+
"default": "./dist/cli.js"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=22"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/ngosangns/ns-bridge.git",
|
|
28
|
+
"directory": "packages/cli"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@smithy/core": "^3.34.1",
|
|
36
|
+
"js-tiktoken": "^1.0.21",
|
|
37
|
+
"supports-color": "^10.2.2"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@ngosangns/ns-pi-provider": "0.5.3",
|
|
41
|
+
"@types/node": "^22.18.6",
|
|
42
|
+
"esbuild": "^0.28.2",
|
|
43
|
+
"typescript": "^5.9.2"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc -p tsconfig.json && node scripts/build.mjs && chmod +x dist/main.js",
|
|
47
|
+
"check": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json"
|
|
48
|
+
}
|
|
6
49
|
}
|