@bike4mind/cli 0.2.29-feat-cli-websocket-streaming.18841 → 0.2.29-feat-session-permission.18877

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-KPOK6V6E.js";
4
+ } from "./chunk-5GSDPBTM.js";
5
5
 
6
6
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/artifactExtractor.js
7
7
  var ARTIFACT_TAG_REGEX = /<artifact\s+(.*?)>([\s\S]*?)<\/artifact>/gi;
@@ -1012,29 +1012,6 @@ var VoiceSessionSendTranscriptAction = z10.object({
1012
1012
  conversationItemId: z10.string(),
1013
1013
  timestamp: z10.coerce.date().optional()
1014
1014
  });
1015
- var CliCompletionRequestAction = z10.object({
1016
- action: z10.literal("cli_completion_request"),
1017
- accessToken: z10.string(),
1018
- requestId: z10.string().uuid(),
1019
- model: z10.string(),
1020
- messages: z10.array(z10.object({
1021
- role: z10.enum(["user", "assistant", "system"]),
1022
- content: z10.union([z10.string(), z10.array(z10.unknown())])
1023
- })),
1024
- options: z10.object({
1025
- temperature: z10.number().optional(),
1026
- maxTokens: z10.number().optional(),
1027
- stream: z10.boolean().optional(),
1028
- tools: z10.array(z10.unknown()).optional()
1029
- }).optional()
1030
- });
1031
- var CliToolRequestAction = z10.object({
1032
- action: z10.literal("cli_tool_request"),
1033
- accessToken: z10.string(),
1034
- requestId: z10.string().uuid(),
1035
- toolName: z10.string(),
1036
- input: z10.record(z10.unknown())
1037
- });
1038
1015
  var VoiceSessionEndedAction = z10.object({
1039
1016
  action: z10.literal("voice_session_ended"),
1040
1017
  userId: z10.string(),
@@ -1281,36 +1258,6 @@ var ResearchModeStreamAction = z10.object({
1281
1258
  completionInfo: z10.any().optional()
1282
1259
  }).optional()
1283
1260
  });
1284
- var CliCompletionChunkAction = z10.object({
1285
- action: z10.literal("cli_completion_chunk"),
1286
- requestId: z10.string(),
1287
- chunk: z10.object({
1288
- type: z10.enum(["content", "tool_use"]),
1289
- text: z10.string(),
1290
- tools: z10.array(z10.unknown()).optional(),
1291
- usage: z10.object({
1292
- inputTokens: z10.number().optional(),
1293
- outputTokens: z10.number().optional()
1294
- }).optional(),
1295
- thinking: z10.array(z10.unknown()).optional()
1296
- })
1297
- });
1298
- var CliCompletionDoneAction = z10.object({
1299
- action: z10.literal("cli_completion_done"),
1300
- requestId: z10.string()
1301
- });
1302
- var CliCompletionErrorAction = z10.object({
1303
- action: z10.literal("cli_completion_error"),
1304
- requestId: z10.string(),
1305
- error: z10.string()
1306
- });
1307
- var CliToolResponseAction = z10.object({
1308
- action: z10.literal("cli_tool_response"),
1309
- requestId: z10.string(),
1310
- success: z10.boolean(),
1311
- content: z10.unknown().optional(),
1312
- error: z10.string().optional()
1313
- });
1314
1261
  var SessionCreatedAction = shareableDocumentSchema.extend({
1315
1262
  action: z10.literal("session.created"),
1316
1263
  id: z10.string(),
@@ -1345,9 +1292,7 @@ var MessageDataToServer = z10.discriminatedUnion("action", [
1345
1292
  DataUnsubscribeRequestAction,
1346
1293
  HeartbeatAction,
1347
1294
  VoiceSessionSendTranscriptAction,
1348
- VoiceSessionEndedAction,
1349
- CliCompletionRequestAction,
1350
- CliToolRequestAction
1295
+ VoiceSessionEndedAction
1351
1296
  ]);
1352
1297
  var MessageDataToClient = z10.discriminatedUnion("action", [
1353
1298
  DataSubscriptionUpdateAction,
@@ -1369,11 +1314,7 @@ var MessageDataToClient = z10.discriminatedUnion("action", [
1369
1314
  SpiderProgressUpdateAction,
1370
1315
  SpiderCompleteAction,
1371
1316
  SpiderErrorAction,
1372
- SessionCreatedAction,
1373
- CliCompletionChunkAction,
1374
- CliCompletionDoneAction,
1375
- CliCompletionErrorAction,
1376
- CliToolResponseAction
1317
+ SessionCreatedAction
1377
1318
  ]);
1378
1319
 
1379
1320
  // ../../b4m-core/packages/common/dist/src/schemas/cliCompletions.js
@@ -7985,8 +7926,6 @@ export {
7985
7926
  DataUnsubscribeRequestAction,
7986
7927
  HeartbeatAction,
7987
7928
  VoiceSessionSendTranscriptAction,
7988
- CliCompletionRequestAction,
7989
- CliToolRequestAction,
7990
7929
  VoiceSessionEndedAction,
7991
7930
  DataSubscriptionUpdateAction,
7992
7931
  LLMStatusUpdateAction,
@@ -8007,10 +7946,6 @@ export {
8007
7946
  UpdateResearchTaskStatusAction,
8008
7947
  ImportHistoryJobProgressUpdateAction,
8009
7948
  ResearchModeStreamAction,
8010
- CliCompletionChunkAction,
8011
- CliCompletionDoneAction,
8012
- CliCompletionErrorAction,
8013
- CliToolResponseAction,
8014
7949
  SessionCreatedAction,
8015
7950
  MessageDataToServer,
8016
7951
  MessageDataToClient,
@@ -6,12 +6,12 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-TY6Z2UV2.js";
9
+ } from "./chunk-S7BPPS33.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-KPOK6V6E.js";
14
+ } from "./chunk-5GSDPBTM.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
17
17
  import { z } from "zod";
@@ -7,11 +7,11 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-TY6Z2UV2.js";
10
+ } from "./chunk-S7BPPS33.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-KPOK6V6E.js";
14
+ } from "./chunk-5GSDPBTM.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-TY6Z2UV2.js";
5
+ } from "./chunk-S7BPPS33.js";
6
6
  import {
7
7
  CompletionApiUsageTransaction,
8
8
  GenericCreditDeductTransaction,
@@ -12,7 +12,7 @@ import {
12
12
  TextGenerationUsageTransaction,
13
13
  TransferCreditTransaction,
14
14
  VideoGenerationUsageTransaction
15
- } from "./chunk-KPOK6V6E.js";
15
+ } from "./chunk-5GSDPBTM.js";
16
16
 
17
17
  // ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
18
18
  import { z } from "zod";
@@ -15,7 +15,7 @@ import {
15
15
  dayjsConfig_default,
16
16
  extractSnippetMeta,
17
17
  settingsMap
18
- } from "./chunk-KPOK6V6E.js";
18
+ } from "./chunk-5GSDPBTM.js";
19
19
  import {
20
20
  Logger
21
21
  } from "./chunk-OCYRD7D6.js";
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-EC2VEDD2.js";
6
- import "./chunk-TY6Z2UV2.js";
7
- import "./chunk-KPOK6V6E.js";
5
+ } from "./chunk-ELTTBWAQ.js";
6
+ import "./chunk-S7BPPS33.js";
7
+ import "./chunk-5GSDPBTM.js";
8
8
  import "./chunk-OCYRD7D6.js";
9
9
  export {
10
10
  createFabFile,