skydive-cli 0.6.0-beta.39 → 0.6.0-beta.41
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 +3 -0
- package/dist/js/bin.mjs +340 -38
- package/dist/js/{boot-FnZU62YK.mjs → boot-Dzf7JWwL.mjs} +105 -32
- package/dist/js/client-BQPhWfh2.mjs +5 -0
- package/dist/js/{client-l6orYfqq.mjs → client-Dr81zuTm.mjs} +6 -2
- package/dist/js/{client-C1r0rRmd.mjs → client-hxuyfRBc.mjs} +66 -8
- package/dist/js/{daemon-CSAbOyRz.mjs → daemon-BHEJmgBq.mjs} +1 -1
- package/dist/js/{daemon-DbtMlkm5.mjs → daemon-Cw1GI6jv.mjs} +2 -2
- package/dist/js/{daemon-client-D4WAalkV.mjs → daemon-client-B0-KqkuJ.mjs} +1 -1
- package/dist/js/daemon-client-Dk5z9CfF.mjs +8 -0
- package/dist/js/{install-03ApVdVv.mjs → install-DxZwvQnt.mjs} +2 -2
- package/dist/js/{print-BzjQA_4s.mjs → print-Bovyirht.mjs} +2 -2
- package/dist/js/{print-BPQO_UaI.mjs → print-DTaoROjq.mjs} +12 -11
- package/dist/js/{print-share-Tdu4xDgY.mjs → print-share-BvFDVwGW.mjs} +1 -1
- package/dist/js/{raw-pty-dndn1Kxc.mjs → raw-pty-C323I8xG.mjs} +1 -1
- package/dist/js/raw-pty-WUHQQwTF.mjs +5 -0
- package/dist/js/{rest-BYNvZw3f.mjs → rest-ANsrfO_h.mjs} +1 -1
- package/dist/js/{rest-HMJ6HYnl.mjs → rest-CXCsoY4Q.mjs} +15 -4
- package/package.json +5 -5
- package/dist/js/client-DSfF8nrb.mjs +0 -5
- package/dist/js/daemon-client-D83lfklG.mjs +0 -8
- package/dist/js/raw-pty-DRZuf1oW.mjs +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as sendErrorMessage, n as errorDetail, r as filenameFromContentDisposition, t as createRestClient } from "./rest-
|
|
2
|
+
import { i as sendErrorMessage, n as errorDetail, r as filenameFromContentDisposition, t as createRestClient } from "./rest-CXCsoY4Q.mjs";
|
|
3
3
|
import { t as HttpError } from "./http-error-BF2NZZE3.mjs";
|
|
4
4
|
import "./billing-blocked-D3l5kJlX.mjs";
|
|
5
5
|
|
|
@@ -6,7 +6,7 @@ import { createParser } from "eventsource-parser";
|
|
|
6
6
|
|
|
7
7
|
//#region package.json
|
|
8
8
|
var name = "skydive-cli";
|
|
9
|
-
var version = "0.6.0-beta.
|
|
9
|
+
var version = "0.6.0-beta.41";
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/chat/util.ts
|
|
@@ -270,8 +270,11 @@ function createRestClient({ appUrl, sessionToken, workspaceId }) {
|
|
|
270
270
|
return conversation;
|
|
271
271
|
},
|
|
272
272
|
listModels: async () => {
|
|
273
|
-
const { models } = await get("/api/v1/models", listModelsResponseSchema);
|
|
274
|
-
return
|
|
273
|
+
const { models, trainingOptedOut } = await get("/api/v1/models", listModelsResponseSchema);
|
|
274
|
+
return {
|
|
275
|
+
models,
|
|
276
|
+
trainingOptedOut: trainingOptedOut ?? false
|
|
277
|
+
};
|
|
275
278
|
},
|
|
276
279
|
listModelEfforts: async () => {
|
|
277
280
|
const { modelConfigOverrides } = await get("/api/v1/models/preferred", modelEffortPreferencesResponseSchema);
|
|
@@ -436,6 +439,9 @@ function createRestClient({ appUrl, sessionToken, workspaceId }) {
|
|
|
436
439
|
setConversationArchived: async ({ conversationId, archived }) => {
|
|
437
440
|
await post(`/api/v1/conversations/${encodeURIComponent(conversationId)}/archive`, { archived }, z.object({ archived: z.boolean() }));
|
|
438
441
|
},
|
|
442
|
+
setConversationPinned: async ({ conversationId, pinned }) => {
|
|
443
|
+
await post(`/api/v1/conversations/${encodeURIComponent(conversationId)}/pin`, { pinned }, z.object({ pinned: z.boolean() }));
|
|
444
|
+
},
|
|
439
445
|
markConversationRead: async ({ conversationId }) => {
|
|
440
446
|
await post(`/api/v1/conversations/${encodeURIComponent(conversationId)}/read`, {}, z.object({ read: z.boolean() }));
|
|
441
447
|
},
|
|
@@ -555,10 +561,14 @@ const platformModelSchema = z.object({
|
|
|
555
561
|
providerDisplay: z.string().optional(),
|
|
556
562
|
reasoning: z.boolean().optional(),
|
|
557
563
|
compliant: z.boolean().optional(),
|
|
564
|
+
noTraining: z.boolean().optional(),
|
|
558
565
|
thinkingLevels: z.array(z.string()).optional(),
|
|
559
566
|
thinkingLevelLabels: z.record(z.string(), z.string()).optional()
|
|
560
567
|
}).passthrough();
|
|
561
|
-
const listModelsResponseSchema = z.object({
|
|
568
|
+
const listModelsResponseSchema = z.object({
|
|
569
|
+
models: z.array(platformModelSchema),
|
|
570
|
+
trainingOptedOut: z.boolean().optional()
|
|
571
|
+
});
|
|
562
572
|
const modelEffortPreferencesResponseSchema = z.object({ modelConfigOverrides: z.record(z.string(), z.object({ thinkingLevel: z.string().optional() })).optional() });
|
|
563
573
|
const billingSummaryResponseSchema = z.object({ result: z.object({ data: z.object({
|
|
564
574
|
planKey: z.string().nullable(),
|
|
@@ -607,6 +617,7 @@ const conversationSummarySchema = z.object({
|
|
|
607
617
|
channel: z.string().nullable(),
|
|
608
618
|
channelLabel: z.string().nullable(),
|
|
609
619
|
viewerArchivedAt: z.string().nullable().optional(),
|
|
620
|
+
viewerPinnedAt: z.string().nullable().optional(),
|
|
610
621
|
viewerParticipates: z.boolean().optional(),
|
|
611
622
|
unread: z.boolean().optional(),
|
|
612
623
|
agent: conversationAgentSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skydive-cli",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.41",
|
|
4
4
|
"description": "Skydive CLI — cloud agents from the command line",
|
|
5
5
|
"homepage": "https://skydive.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
},
|
|
72
72
|
"//optionalDependencies": "The per-platform binary packages (skydive-cli-<os>-<arch>) are INTENTIONALLY not committed here. They are published by release-skydive-cli-binaries.yml and injected — pinned to the exact version being published — into the published launcher's optionalDependencies at release time (scripts/prepare-platform-packages.mjs --pin-version, run in release-skydive-cli.yml). Committing them would make `yarn install` try to resolve versions that only exist post-publish, breaking local dev and CI. npm installs of a published skydive-cli still get them (os/cpu-gated); the launcher (src/launcher.ts) resolves and execs the matching one. Local dev never needs them: it runs the JS bundle or `build:binary` directly.",
|
|
73
73
|
"optionalDependencies": {
|
|
74
|
-
"skydive-cli-darwin-arm64": "0.6.0-beta.
|
|
75
|
-
"skydive-cli-darwin-x64": "0.6.0-beta.
|
|
76
|
-
"skydive-cli-linux-x64": "0.6.0-beta.
|
|
77
|
-
"skydive-cli-linux-arm64": "0.6.0-beta.
|
|
74
|
+
"skydive-cli-darwin-arm64": "0.6.0-beta.41",
|
|
75
|
+
"skydive-cli-darwin-x64": "0.6.0-beta.41",
|
|
76
|
+
"skydive-cli-linux-x64": "0.6.0-beta.41",
|
|
77
|
+
"skydive-cli-linux-arm64": "0.6.0-beta.41"
|
|
78
78
|
}
|
|
79
79
|
}
|