skydive-cli 0.1.0 → 0.2.0-beta.422
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 +68 -0
- package/README.md +271 -28
- package/dist/js/api-CDTKq_5Q.mjs +145 -0
- package/dist/js/bin.mjs +1752 -1359
- package/dist/js/boot-CQLDUeZ9.mjs +9827 -0
- package/dist/js/client-B3ZhhF7e.mjs +366 -0
- package/dist/js/client-CpEvH2Pq.mjs +169 -0
- package/dist/js/client-D6NAkL9e.mjs +6 -0
- package/dist/js/output-B4cW10Ph.mjs +27 -0
- package/dist/js/print-B6AO13SA.mjs +5 -0
- package/dist/js/print-DausK_KZ.mjs +484 -0
- package/dist/js/print-share-D7OSxvE2.mjs +41 -0
- package/dist/js/raw-pty-2_VA1kw_.mjs +5 -0
- package/dist/js/raw-pty-GAvxm2ol.mjs +99 -0
- package/dist/js/rest-COkLEZOB.mjs +4 -0
- package/dist/js/{print-BHbFMxQv.mjs → rest-CamHVOce.mjs} +173 -158
- package/dist/js/theme-CuQhvqzN.mjs +990 -0
- package/dist/js/util-CeisaZVY.mjs +15 -0
- package/package.json +20 -9
- package/dist/js/boot-ChlVx-ts.mjs +0 -5525
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
//#region src/chat/util.ts
|
|
3
|
+
/** Narrowing helper for the many `unknown` payloads the chat stream and
|
|
4
|
+
* tool inputs/outputs carry. A type predicate (not an `as` cast), so call
|
|
5
|
+
* sites can read properties without asserting. */
|
|
6
|
+
function isRecord(value) {
|
|
7
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
8
|
+
}
|
|
9
|
+
/** Best-effort message from an unknown thrown value. */
|
|
10
|
+
function errorMessage(err) {
|
|
11
|
+
return err instanceof Error ? err.message : String(err);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { isRecord as n, errorMessage as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skydive-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Skydive CLI —
|
|
3
|
+
"version": "0.2.0-beta.422",
|
|
4
|
+
"description": "Skydive CLI — cloud agents from the command line",
|
|
5
5
|
"homepage": "https://skydive.com",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -19,9 +19,12 @@
|
|
|
19
19
|
"registry": "https://registry.npmjs.org"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "tsdown --no-dts --out-dir dist/js",
|
|
23
|
-
"
|
|
24
|
-
"test:
|
|
22
|
+
"build": "node ./scripts/embed-changelog.mjs && tsdown --no-dts --out-dir dist/js",
|
|
23
|
+
"build:binary": "node ./scripts/embed-changelog.mjs && bun scripts/build-binary.ts",
|
|
24
|
+
"test:unit": "vitest run --passWithNoTests && yarn test:tui",
|
|
25
|
+
"test:ci": "vitest run --coverage --coverage.reporter=lcovonly --reporter=default --reporter=github-actions --minWorkers=1 --maxWorkers=2 --passWithNoTests && yarn test:tui",
|
|
26
|
+
"test:tui": "bun test .tui.test",
|
|
27
|
+
"render:frames": "bun scripts/render-frames.tsx",
|
|
25
28
|
"typecheck": "tsgo --noEmit"
|
|
26
29
|
},
|
|
27
30
|
"dependencies": {
|
|
@@ -29,21 +32,28 @@
|
|
|
29
32
|
"conf": "^13.0.1",
|
|
30
33
|
"diff": "9.0.0",
|
|
31
34
|
"eventsource-parser": "^3.0.8",
|
|
35
|
+
"file-type": "^21.3.4",
|
|
36
|
+
"fuzzysort": "^3.1.0",
|
|
32
37
|
"neverthrow": "^8.2.0",
|
|
33
38
|
"open": "^10.1.0",
|
|
34
39
|
"react": "^19.0.0",
|
|
35
40
|
"react-devtools-core": "^7.0.1",
|
|
41
|
+
"safe-stable-stringify": "^2.3.1",
|
|
42
|
+
"semver": "^7.7.4",
|
|
36
43
|
"web-tree-sitter": "0.25.10",
|
|
37
|
-
"ws": "^8.
|
|
44
|
+
"ws": "^8.21.0",
|
|
38
45
|
"yargs": "^17.7.2",
|
|
39
46
|
"zod": "^3.24.1",
|
|
40
47
|
"zustand": "^5.0.2"
|
|
41
48
|
},
|
|
42
49
|
"devDependencies": {
|
|
43
|
-
"@createinc/anyone-portal-protocol": "
|
|
44
|
-
"@createinc/
|
|
50
|
+
"@createinc/anyone-portal-protocol": "0.0.0",
|
|
51
|
+
"@createinc/anyone-sandbox-stream-protocol": "0.0.0",
|
|
52
|
+
"@createinc/tsconfig": "0.0.0",
|
|
53
|
+
"@types/bun": "^1.3.14",
|
|
45
54
|
"@types/node": "^24.0.0",
|
|
46
55
|
"@types/react": "^19.0.0",
|
|
56
|
+
"@types/semver": "^7.7.1",
|
|
47
57
|
"@types/yargs": "^17.0.33",
|
|
48
58
|
"@typescript/native-preview": "^7.0.0-dev.20260113.1",
|
|
49
59
|
"@vitest/coverage-v8": "^2.1.8",
|
|
@@ -52,6 +62,7 @@
|
|
|
52
62
|
"vitest": "^2.1.8"
|
|
53
63
|
},
|
|
54
64
|
"engines": {
|
|
65
|
+
"bun": ">=1.3.14",
|
|
55
66
|
"node": ">=20.0.0"
|
|
56
67
|
}
|
|
57
|
-
}
|
|
68
|
+
}
|