@bike4mind/cli 4.6.0 → 4.9.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/README.md +119 -0
- package/bin/bike4mind-cli.mjs +342 -239
- package/dist/{AgentHistoryStore--J3sgO_-.mjs → AgentHistoryStore-jktM0SmD.mjs} +140 -73
- package/dist/{ApiClient-CdO4Gamg.mjs → ApiClient-CczpydlW.mjs} +3 -3
- package/dist/{BubblewrapRuntime-3jAbC60G.mjs → BubblewrapRuntime-aGfDSJPY.mjs} +2 -2
- package/dist/ConfigStore-BAJ4hIHa.mjs +2 -0
- package/dist/{ConfigStore-Dusy6glb.mjs → ConfigStore-CO6kREaL.mjs} +101 -27
- package/dist/{Logger-C1Wj6xla.mjs → Logger-CHKCF5hd.mjs} +5095 -495
- package/dist/{RemoteSkillSource-qTvRkaNA.mjs → RemoteSkillSource-D_F99yBR.mjs} +5 -0
- package/dist/{SandboxOrchestrator-CQwYq_uy.mjs → SandboxOrchestrator-ULWvuUct.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-BsT2iLky.mjs → SandboxRuntimeAdapter-DpDSET-A.mjs} +2 -2
- package/dist/{SandboxRuntimeAdapter-Zg_0th7V.mjs → SandboxRuntimeAdapter-FpZRkE6D.mjs} +1 -1
- package/dist/{SeatbeltRuntime-C2DEkrjy.mjs → SeatbeltRuntime-C0GJ3nnY.mjs} +2 -2
- package/dist/{WorkItemsClient-CxNZaOmc.mjs → WorkItemsClient-aCxMV_Wm.mjs} +1 -1
- package/dist/{buildToolSearch-DOb7mx6F.mjs → buildToolSearch-CbLeZ5wP.mjs} +2 -2
- package/dist/commands/acpCommand.mjs +6 -6
- package/dist/commands/apiCommand.mjs +1 -1
- package/dist/commands/doctorCommand.mjs +2 -2
- package/dist/commands/envCommand.mjs +1 -1
- package/dist/commands/headlessCommand.mjs +7 -7
- package/dist/commands/hostCommand.mjs +2 -2
- package/dist/commands/mcpCommand.mjs +3 -3
- package/dist/commands/mirrorCommand.mjs +2 -2
- package/dist/commands/modelsCommand.mjs +5 -5
- package/dist/commands/pluginCommand.mjs +1 -1
- package/dist/commands/skillsCommand.mjs +4 -4
- package/dist/commands/updateCommand.mjs +2 -2
- package/dist/{dist-CbViwiS9.mjs → dist-BOxr8LQA.mjs} +185 -12
- package/dist/{dist-Citbv0y0.mjs → dist-K7a9yOUb.mjs} +3 -3
- package/dist/{fit-CVWDiavv.mjs → fit-BHDTSpfd.mjs} +4 -4
- package/dist/{grepSearch-BgoOOwGe-B388GxRD.mjs → grepSearch-CLtEqT4j-BnKPtNWr.mjs} +2 -2
- package/dist/index.mjs +2780 -251
- package/dist/{modelServers-BaegigV-.mjs → modelServers-CVufZd1f.mjs} +2 -2
- package/dist/{package-C9pfAdGF.mjs → package-TACInPbw.mjs} +1 -1
- package/dist/{serve-8wyGb8of.mjs → serve-OywSzShu.mjs} +733 -62
- package/dist/{store-BbvSi3KK.mjs → store-CmOg7JIt.mjs} +4 -0
- package/dist/store-OGMXhD4A.mjs +2 -0
- package/dist/{updateChecker-BAKb8KWP.mjs → updateChecker-5v_8LhXy.mjs} +1 -1
- package/package.json +14 -14
- package/dist/ConfigStore-CausUCzY.mjs +0 -2
- package/dist/store-BYeE0shc.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { E as CompletionReasoningEffortSchema, Et as hasDeliverablePinnedArtifact, F as EMBEDDING_MODEL_IDS, Ft as isUserInitiatedAbort, Gt as resolveSettingDefinition, H as MODEL_INFO_FIELD_GROUP_OF, K as OllamaEmbeddingModel, Nt as isSupportedEmbeddingModel, Ot as isEnforceCreditsLocked, P as EMBEDDING_MODEL_CATALOG, Pt as isSupportedFabFileMimeType, S as CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS, St as getEmbeddingModelCapabilities, T as ChatModels, W as ModelBackend, Xt as stripDeliveredArtifactBlocks, Y as PermissionDeniedError, Zt as stripToolArtifactMarkup, _ as AudioMimeType, _n as WEBSITE_URL, _t as createThinkMarkerEscaper, ct as SupportedFabFileMimeTypes, d as ARTIFACT_REMOVED_PLACEHOLDER, dt as VoyageAIEmbeddingModel, f as AdminAiStoredConfigSchema, gn as APP_NAME, kt as isExpectedToolError, p as AiAccessRefusedError, q as OpenAIEmbeddingModel, qt as servableEmbeddingDimensions, rn as visibleReplyText, u as ARTIFACT_DELIVERED_PLACEHOLDER, vt as escapeThinkMarkers, wt as getQuestErrorCode, y as BedrockEmbeddingModel, yt as filterToolArtifactMarkup } from "./Logger-CHKCF5hd.mjs";
|
|
3
3
|
import { b as ollamaNumCtx } from "./modelHub-BSB6qRFP.mjs";
|
|
4
4
|
import "crypto";
|
|
5
5
|
import path from "path";
|
|
@@ -7,7 +7,7 @@ import { v4 } from "uuid";
|
|
|
7
7
|
import { z as z$1 } from "zod";
|
|
8
8
|
import "axios";
|
|
9
9
|
import "node:crypto";
|
|
10
|
-
import { promisify } from "util";
|
|
10
|
+
import { promisify as promisify$1 } from "util";
|
|
11
11
|
import dns from "dns";
|
|
12
12
|
import http from "http";
|
|
13
13
|
import https from "https";
|
|
@@ -444,8 +444,8 @@ var Logger = class Logger {
|
|
|
444
444
|
blue: `\x1b[34m${args.join(" ")}\x1b[0m`
|
|
445
445
|
});
|
|
446
446
|
};
|
|
447
|
-
promisify(dns.resolve4);
|
|
448
|
-
promisify(dns.resolve6);
|
|
447
|
+
promisify$1(dns.resolve4);
|
|
448
|
+
promisify$1(dns.resolve6);
|
|
449
449
|
/**
|
|
450
450
|
* Check if an IPv4 address is in a private/internal range.
|
|
451
451
|
*/
|
|
@@ -750,12 +750,13 @@ CompletionReasoningEffortSchema.options;
|
|
|
750
750
|
//#region ../../b4m-core/llm-adapters/dist/index.mjs
|
|
751
751
|
/**
|
|
752
752
|
* A tool failure that must end the turn rather than be fed back to the model as a
|
|
753
|
-
* recoverable observation: a declined tool (PermissionDeniedError)
|
|
754
|
-
* error (tagged via `getQuestErrorCode`)
|
|
753
|
+
* recoverable observation: a declined tool (PermissionDeniedError), an out-of-credits
|
|
754
|
+
* error (tagged via `getQuestErrorCode`) or an account that lost AI access mid-turn
|
|
755
|
+
* (AiAccessRefusedError), none of which any retry can satisfy.
|
|
755
756
|
* Also exempts these from the services tool failure guard (toolFailureGuard.ts).
|
|
756
757
|
*/
|
|
757
758
|
function isTerminalToolError(error) {
|
|
758
|
-
return error instanceof PermissionDeniedError || getQuestErrorCode(error) !== void 0;
|
|
759
|
+
return error instanceof PermissionDeniedError || error instanceof AiAccessRefusedError || getQuestErrorCode(error) !== void 0;
|
|
759
760
|
}
|
|
760
761
|
/**
|
|
761
762
|
* Thrown by the services tool failure guard (toolFailureGuard.ts) in place of running a tool that
|
|
@@ -3872,10 +3873,6 @@ const HEX_GROUP = "[0-9a-f]{1,4}";
|
|
|
3872
3873
|
const HEX_RUN = `${HEX_GROUP}(?::${HEX_GROUP}){0,6}`;
|
|
3873
3874
|
new RegExp(`(?:(?<![\\w:])|(?<=(?<![\\w:])[0-9a-f]*[g-z_]\\w*:))(?:(?:${HEX_GROUP}:){7}${HEX_GROUP}|${HEX_RUN}::(?:${HEX_RUN})?|::${HEX_RUN})(?::\\[IP\\])?(?![\\w:])`, "gi");
|
|
3874
3875
|
ChatModels.GPT5, ChatModels.GPT5_MINI, ChatModels.GPT5_NANO, ChatModels.GPT5_1, ChatModels.GPT5_2, ChatModels.GPT5_4, ChatModels.GPT5_4_MINI, ChatModels.GPT5_4_NANO, ChatModels.GPT5_5, ChatModels.GPT5_6_SOL, ChatModels.GPT5_6_LUNA, ChatModels.GPT5_6_TERRA;
|
|
3875
|
-
TTS_DEFAULT_MODEL.openai;
|
|
3876
|
-
TTS_MAX_INPUT_CHARS.openai;
|
|
3877
|
-
TTS_MAX_INPUT_CHARS.elevenlabs;
|
|
3878
|
-
TTS_DEFAULT_MODEL.elevenlabs;
|
|
3879
3876
|
//#endregion
|
|
3880
3877
|
//#region ../sdk/dist/index.mjs
|
|
3881
3878
|
/**
|
|
@@ -3979,10 +3976,18 @@ const operations = {
|
|
|
3979
3976
|
method: "POST",
|
|
3980
3977
|
path: "/api/v1/files/bulk-delete"
|
|
3981
3978
|
},
|
|
3979
|
+
cancelImageJob: {
|
|
3980
|
+
method: "POST",
|
|
3981
|
+
path: "/api/v1/image-jobs/{id}/cancel"
|
|
3982
|
+
},
|
|
3982
3983
|
cancelMusicGeneration: {
|
|
3983
3984
|
method: "POST",
|
|
3984
3985
|
path: "/api/v1/music-generations/{id}/cancel"
|
|
3985
3986
|
},
|
|
3987
|
+
cancelSceneComposition: {
|
|
3988
|
+
method: "POST",
|
|
3989
|
+
path: "/api/v1/scene-compositions/{id}/cancel"
|
|
3990
|
+
},
|
|
3986
3991
|
cancelVideoGeneration: {
|
|
3987
3992
|
method: "POST",
|
|
3988
3993
|
path: "/api/v1/video-generations/{id}/cancel"
|
|
@@ -3995,6 +4000,10 @@ const operations = {
|
|
|
3995
4000
|
method: "POST",
|
|
3996
4001
|
path: "/api/v1/sessions/{id}/clone"
|
|
3997
4002
|
},
|
|
4003
|
+
composeBrief: {
|
|
4004
|
+
method: "POST",
|
|
4005
|
+
path: "/api/v1/briefs"
|
|
4006
|
+
},
|
|
3998
4007
|
createAgent: {
|
|
3999
4008
|
method: "POST",
|
|
4000
4009
|
path: "/api/v1/agents"
|
|
@@ -4011,6 +4020,10 @@ const operations = {
|
|
|
4011
4020
|
method: "POST",
|
|
4012
4021
|
path: "/api/v1/artifacts/{id}/versions"
|
|
4013
4022
|
},
|
|
4023
|
+
createAssistantInstruction: {
|
|
4024
|
+
method: "POST",
|
|
4025
|
+
path: "/api/v1/assistant/instructions"
|
|
4026
|
+
},
|
|
4014
4027
|
createCompletion: {
|
|
4015
4028
|
method: "POST",
|
|
4016
4029
|
path: "/api/ai/v1/completions"
|
|
@@ -4019,6 +4032,10 @@ const operations = {
|
|
|
4019
4032
|
method: "POST",
|
|
4020
4033
|
path: "/api/v1/completion-runs"
|
|
4021
4034
|
},
|
|
4035
|
+
createDataLakeResearchConfig: {
|
|
4036
|
+
method: "POST",
|
|
4037
|
+
path: "/api/v1/data-lakes/{id}/research/configs"
|
|
4038
|
+
},
|
|
4022
4039
|
createDecision: {
|
|
4023
4040
|
method: "POST",
|
|
4024
4041
|
path: "/api/v1/decisions"
|
|
@@ -4031,6 +4048,10 @@ const operations = {
|
|
|
4031
4048
|
method: "POST",
|
|
4032
4049
|
path: "/api/v1/files"
|
|
4033
4050
|
},
|
|
4051
|
+
createImageJob: {
|
|
4052
|
+
method: "POST",
|
|
4053
|
+
path: "/api/v1/image-jobs"
|
|
4054
|
+
},
|
|
4034
4055
|
createMusicGeneration: {
|
|
4035
4056
|
method: "POST",
|
|
4036
4057
|
path: "/api/v1/music-generations"
|
|
@@ -4043,6 +4064,10 @@ const operations = {
|
|
|
4043
4064
|
method: "POST",
|
|
4044
4065
|
path: "/api/v1/projects/{id}/invites"
|
|
4045
4066
|
},
|
|
4067
|
+
createSceneComposition: {
|
|
4068
|
+
method: "POST",
|
|
4069
|
+
path: "/api/v1/scene-compositions"
|
|
4070
|
+
},
|
|
4046
4071
|
createSession: {
|
|
4047
4072
|
method: "POST",
|
|
4048
4073
|
path: "/api/v1/sessions"
|
|
@@ -4071,6 +4096,10 @@ const operations = {
|
|
|
4071
4096
|
method: "POST",
|
|
4072
4097
|
path: "/api/v1/voice/sessions"
|
|
4073
4098
|
},
|
|
4099
|
+
decideDataLakeProposal: {
|
|
4100
|
+
method: "POST",
|
|
4101
|
+
path: "/api/v1/data-lakes/{id}/proposals/{proposal_id}"
|
|
4102
|
+
},
|
|
4074
4103
|
deleteAgent: {
|
|
4075
4104
|
method: "DELETE",
|
|
4076
4105
|
path: "/api/v1/agents/{id}"
|
|
@@ -4079,6 +4108,14 @@ const operations = {
|
|
|
4079
4108
|
method: "DELETE",
|
|
4080
4109
|
path: "/api/v1/artifacts/{id}"
|
|
4081
4110
|
},
|
|
4111
|
+
deleteAssistantInstruction: {
|
|
4112
|
+
method: "DELETE",
|
|
4113
|
+
path: "/api/v1/assistant/instructions/{id}"
|
|
4114
|
+
},
|
|
4115
|
+
deleteDataLakeResearchConfig: {
|
|
4116
|
+
method: "DELETE",
|
|
4117
|
+
path: "/api/v1/data-lakes/{id}/research/configs/{config_id}"
|
|
4118
|
+
},
|
|
4082
4119
|
deleteFile: {
|
|
4083
4120
|
method: "DELETE",
|
|
4084
4121
|
path: "/api/v1/files/{id}"
|
|
@@ -4119,6 +4156,10 @@ const operations = {
|
|
|
4119
4156
|
method: "POST",
|
|
4120
4157
|
path: "/api/ai/v1/tools"
|
|
4121
4158
|
},
|
|
4159
|
+
fetchWebPage: {
|
|
4160
|
+
method: "POST",
|
|
4161
|
+
path: "/api/v1/tools/web-fetch"
|
|
4162
|
+
},
|
|
4122
4163
|
generateAgentAvatar: {
|
|
4123
4164
|
method: "POST",
|
|
4124
4165
|
path: "/api/v1/agents/{id}/generate-avatar"
|
|
@@ -4159,6 +4200,14 @@ const operations = {
|
|
|
4159
4200
|
method: "GET",
|
|
4160
4201
|
path: "/api/v1/artifacts/{id}/versions/{version}"
|
|
4161
4202
|
},
|
|
4203
|
+
getBrief: {
|
|
4204
|
+
method: "GET",
|
|
4205
|
+
path: "/api/v1/briefs/{id}"
|
|
4206
|
+
},
|
|
4207
|
+
getBriefSchedule: {
|
|
4208
|
+
method: "GET",
|
|
4209
|
+
path: "/api/v1/briefs/schedule"
|
|
4210
|
+
},
|
|
4162
4211
|
getClaudeBundleZip: {
|
|
4163
4212
|
method: "GET",
|
|
4164
4213
|
path: "/api/v1/skills/market/bundles/{id}/claude-plugin.zip"
|
|
@@ -4175,18 +4224,38 @@ const operations = {
|
|
|
4175
4224
|
method: "GET",
|
|
4176
4225
|
path: "/api/v1/client-config"
|
|
4177
4226
|
},
|
|
4227
|
+
getCompletionRunUsage: {
|
|
4228
|
+
method: "GET",
|
|
4229
|
+
path: "/api/v1/completion-runs/{runId}/usage"
|
|
4230
|
+
},
|
|
4178
4231
|
getCreditBalance: {
|
|
4179
4232
|
method: "GET",
|
|
4180
4233
|
path: "/api/v1/credits"
|
|
4181
4234
|
},
|
|
4235
|
+
getCurrentWeather: {
|
|
4236
|
+
method: "POST",
|
|
4237
|
+
path: "/api/v1/tools/weather"
|
|
4238
|
+
},
|
|
4182
4239
|
getDataLake: {
|
|
4183
4240
|
method: "GET",
|
|
4184
4241
|
path: "/api/v1/data-lakes/{id}"
|
|
4185
4242
|
},
|
|
4243
|
+
getDataLakeConfigHistory: {
|
|
4244
|
+
method: "GET",
|
|
4245
|
+
path: "/api/v1/data-lakes/{id}/config-history"
|
|
4246
|
+
},
|
|
4186
4247
|
getDataLakeFile: {
|
|
4187
4248
|
method: "GET",
|
|
4188
4249
|
path: "/api/v1/data-lakes/{id}/files/{file_id}"
|
|
4189
4250
|
},
|
|
4251
|
+
getDataLakeResearchConfig: {
|
|
4252
|
+
method: "GET",
|
|
4253
|
+
path: "/api/v1/data-lakes/{id}/research/configs/{config_id}"
|
|
4254
|
+
},
|
|
4255
|
+
getDataLakeResearchRun: {
|
|
4256
|
+
method: "GET",
|
|
4257
|
+
path: "/api/v1/data-lakes/{id}/research/runs/{run_id}"
|
|
4258
|
+
},
|
|
4190
4259
|
getFile: {
|
|
4191
4260
|
method: "GET",
|
|
4192
4261
|
path: "/api/v1/files/{id}"
|
|
@@ -4199,6 +4268,10 @@ const operations = {
|
|
|
4199
4268
|
method: "GET",
|
|
4200
4269
|
path: "/api/v1/files/by-ids"
|
|
4201
4270
|
},
|
|
4271
|
+
getImageJob: {
|
|
4272
|
+
method: "GET",
|
|
4273
|
+
path: "/api/v1/image-jobs/{id}"
|
|
4274
|
+
},
|
|
4202
4275
|
getMe: {
|
|
4203
4276
|
method: "GET",
|
|
4204
4277
|
path: "/api/v1/me"
|
|
@@ -4207,18 +4280,34 @@ const operations = {
|
|
|
4207
4280
|
method: "GET",
|
|
4208
4281
|
path: "/api/v1/music-generations/{id}"
|
|
4209
4282
|
},
|
|
4283
|
+
getPendingDecisionCount: {
|
|
4284
|
+
method: "GET",
|
|
4285
|
+
path: "/api/v1/pending-decisions"
|
|
4286
|
+
},
|
|
4210
4287
|
getProject: {
|
|
4211
4288
|
method: "GET",
|
|
4212
4289
|
path: "/api/v1/projects/{id}"
|
|
4213
4290
|
},
|
|
4291
|
+
getPublicClientConfig: {
|
|
4292
|
+
method: "GET",
|
|
4293
|
+
path: "/api/v1/client-config/public"
|
|
4294
|
+
},
|
|
4214
4295
|
getQuest: {
|
|
4215
4296
|
method: "GET",
|
|
4216
4297
|
path: "/api/v1/quests/{id}"
|
|
4217
4298
|
},
|
|
4299
|
+
getSceneComposition: {
|
|
4300
|
+
method: "GET",
|
|
4301
|
+
path: "/api/v1/scene-compositions/{id}"
|
|
4302
|
+
},
|
|
4218
4303
|
getSession: {
|
|
4219
4304
|
method: "GET",
|
|
4220
4305
|
path: "/api/sessions/{id}"
|
|
4221
4306
|
},
|
|
4307
|
+
getSessionById: {
|
|
4308
|
+
method: "GET",
|
|
4309
|
+
path: "/api/v1/sessions/{id}"
|
|
4310
|
+
},
|
|
4222
4311
|
getSessionMessage: {
|
|
4223
4312
|
method: "GET",
|
|
4224
4313
|
path: "/api/v1/sessions/{id}/messages/{messageId}"
|
|
@@ -4259,10 +4348,30 @@ const operations = {
|
|
|
4259
4348
|
method: "GET",
|
|
4260
4349
|
path: "/api/v1/artifacts"
|
|
4261
4350
|
},
|
|
4351
|
+
listAssistantInstructions: {
|
|
4352
|
+
method: "GET",
|
|
4353
|
+
path: "/api/v1/assistant/instructions"
|
|
4354
|
+
},
|
|
4355
|
+
listBriefs: {
|
|
4356
|
+
method: "GET",
|
|
4357
|
+
path: "/api/v1/briefs"
|
|
4358
|
+
},
|
|
4262
4359
|
listCreditTransactions: {
|
|
4263
4360
|
method: "GET",
|
|
4264
4361
|
path: "/api/v1/credits/transactions"
|
|
4265
4362
|
},
|
|
4363
|
+
listDataLakeProposals: {
|
|
4364
|
+
method: "GET",
|
|
4365
|
+
path: "/api/v1/data-lakes/{id}/proposals"
|
|
4366
|
+
},
|
|
4367
|
+
listDataLakeResearchConfigs: {
|
|
4368
|
+
method: "GET",
|
|
4369
|
+
path: "/api/v1/data-lakes/{id}/research/configs"
|
|
4370
|
+
},
|
|
4371
|
+
listDataLakeResearchRuns: {
|
|
4372
|
+
method: "GET",
|
|
4373
|
+
path: "/api/v1/data-lakes/{id}/research/runs"
|
|
4374
|
+
},
|
|
4266
4375
|
listDataLakes: {
|
|
4267
4376
|
method: "GET",
|
|
4268
4377
|
path: "/api/v1/data-lakes"
|
|
@@ -4279,6 +4388,18 @@ const operations = {
|
|
|
4279
4388
|
method: "GET",
|
|
4280
4389
|
path: "/api/v1/files"
|
|
4281
4390
|
},
|
|
4391
|
+
listHandoffDevices: {
|
|
4392
|
+
method: "GET",
|
|
4393
|
+
path: "/api/v1/handoff-devices"
|
|
4394
|
+
},
|
|
4395
|
+
listImageJobs: {
|
|
4396
|
+
method: "GET",
|
|
4397
|
+
path: "/api/v1/image-jobs"
|
|
4398
|
+
},
|
|
4399
|
+
listImageModels: {
|
|
4400
|
+
method: "GET",
|
|
4401
|
+
path: "/api/v1/image-models"
|
|
4402
|
+
},
|
|
4282
4403
|
listModels: {
|
|
4283
4404
|
method: "GET",
|
|
4284
4405
|
path: "/api/v1/models"
|
|
@@ -4319,6 +4440,10 @@ const operations = {
|
|
|
4319
4440
|
method: "GET",
|
|
4320
4441
|
path: "/api/v1/quests/{id}/files"
|
|
4321
4442
|
},
|
|
4443
|
+
listSceneCompositions: {
|
|
4444
|
+
method: "GET",
|
|
4445
|
+
path: "/api/v1/scene-compositions"
|
|
4446
|
+
},
|
|
4322
4447
|
listSessionFiles: {
|
|
4323
4448
|
method: "GET",
|
|
4324
4449
|
path: "/api/v1/sessions/{id}/files"
|
|
@@ -4363,10 +4488,22 @@ const operations = {
|
|
|
4363
4488
|
method: "POST",
|
|
4364
4489
|
path: "/api/v1/slack/messages"
|
|
4365
4490
|
},
|
|
4491
|
+
publishArtifact: {
|
|
4492
|
+
method: "POST",
|
|
4493
|
+
path: "/api/v1/artifacts/{id}/publish"
|
|
4494
|
+
},
|
|
4366
4495
|
publishSkillMarketListing: {
|
|
4367
4496
|
method: "POST",
|
|
4368
4497
|
path: "/api/v1/skills/market/listings"
|
|
4369
4498
|
},
|
|
4499
|
+
putBriefSchedule: {
|
|
4500
|
+
method: "PUT",
|
|
4501
|
+
path: "/api/v1/briefs/schedule"
|
|
4502
|
+
},
|
|
4503
|
+
raiseCompletionRunBudget: {
|
|
4504
|
+
method: "POST",
|
|
4505
|
+
path: "/api/v1/completion-runs/{runId}/budget"
|
|
4506
|
+
},
|
|
4370
4507
|
registerPushToken: {
|
|
4371
4508
|
method: "POST",
|
|
4372
4509
|
path: "/api/v1/push-tokens"
|
|
@@ -4391,6 +4528,14 @@ const operations = {
|
|
|
4391
4528
|
method: "DELETE",
|
|
4392
4529
|
path: "/api/v1/projects/{id}/system-prompts/{file_id}"
|
|
4393
4530
|
},
|
|
4531
|
+
replyToBriefDecision: {
|
|
4532
|
+
method: "POST",
|
|
4533
|
+
path: "/api/v1/briefs/{id}/decisions/{decisionId}/reply"
|
|
4534
|
+
},
|
|
4535
|
+
republishArtifact: {
|
|
4536
|
+
method: "POST",
|
|
4537
|
+
path: "/api/v1/artifacts/{id}/republish"
|
|
4538
|
+
},
|
|
4394
4539
|
rescanSkillMarketVersion: {
|
|
4395
4540
|
method: "POST",
|
|
4396
4541
|
path: "/api/v1/skills/market/versions/{vid}/rescan"
|
|
@@ -4415,14 +4560,26 @@ const operations = {
|
|
|
4415
4560
|
method: "POST",
|
|
4416
4561
|
path: "/api/v1/sessions/semantic-search"
|
|
4417
4562
|
},
|
|
4563
|
+
searchWeb: {
|
|
4564
|
+
method: "POST",
|
|
4565
|
+
path: "/api/v1/tools/web-search"
|
|
4566
|
+
},
|
|
4418
4567
|
sendChatMessage: {
|
|
4419
4568
|
method: "POST",
|
|
4420
4569
|
path: "/api/chat"
|
|
4421
4570
|
},
|
|
4571
|
+
sendSessionHandoff: {
|
|
4572
|
+
method: "POST",
|
|
4573
|
+
path: "/api/v1/session-handoffs"
|
|
4574
|
+
},
|
|
4422
4575
|
startAgentExecution: {
|
|
4423
4576
|
method: "POST",
|
|
4424
4577
|
path: "/api/v1/agent-executions"
|
|
4425
4578
|
},
|
|
4579
|
+
startDataLakeResearchRun: {
|
|
4580
|
+
method: "POST",
|
|
4581
|
+
path: "/api/v1/data-lakes/{id}/research/runs"
|
|
4582
|
+
},
|
|
4426
4583
|
submitSkillMarketListingVersion: {
|
|
4427
4584
|
method: "POST",
|
|
4428
4585
|
path: "/api/v1/skills/market/listings/{id}/versions"
|
|
@@ -4435,6 +4592,10 @@ const operations = {
|
|
|
4435
4592
|
method: "POST",
|
|
4436
4593
|
path: "/api/v1/agents/{id}/transfer-credits"
|
|
4437
4594
|
},
|
|
4595
|
+
unpublishArtifact: {
|
|
4596
|
+
method: "DELETE",
|
|
4597
|
+
path: "/api/v1/artifacts/{id}/publish"
|
|
4598
|
+
},
|
|
4438
4599
|
unregisterPushToken: {
|
|
4439
4600
|
method: "DELETE",
|
|
4440
4601
|
path: "/api/v1/push-tokens"
|
|
@@ -4447,6 +4608,10 @@ const operations = {
|
|
|
4447
4608
|
method: "PATCH",
|
|
4448
4609
|
path: "/api/v1/artifacts/{id}"
|
|
4449
4610
|
},
|
|
4611
|
+
updateDataLakeResearchConfig: {
|
|
4612
|
+
method: "PATCH",
|
|
4613
|
+
path: "/api/v1/data-lakes/{id}/research/configs/{config_id}"
|
|
4614
|
+
},
|
|
4450
4615
|
updateFile: {
|
|
4451
4616
|
method: "PATCH",
|
|
4452
4617
|
path: "/api/v1/files/{id}"
|
|
@@ -4666,6 +4831,10 @@ function createClient(options) {
|
|
|
4666
4831
|
});
|
|
4667
4832
|
return questHandle(ack.id, ack);
|
|
4668
4833
|
},
|
|
4834
|
+
/**
|
|
4835
|
+
* @deprecated `POST /api/v1/image-generations` sunsets 2027-02-17. Queue jobs with
|
|
4836
|
+
* `call('createImageJob', ...)` and poll `getImageJob` instead.
|
|
4837
|
+
*/
|
|
4669
4838
|
async generateImage(body, opts = {}) {
|
|
4670
4839
|
const ack = await call("generateImage", {
|
|
4671
4840
|
body,
|
|
@@ -4673,7 +4842,11 @@ function createClient(options) {
|
|
|
4673
4842
|
});
|
|
4674
4843
|
return questHandle(ack.quest.id, ack);
|
|
4675
4844
|
},
|
|
4676
|
-
/**
|
|
4845
|
+
/**
|
|
4846
|
+
* Edited images arrive on the finished quest's `files[].url`.
|
|
4847
|
+
* @deprecated `POST /api/v1/image-edits` sunsets 2027-02-17. Queue an edit with
|
|
4848
|
+
* `call('createImageJob', { body: { mode: 'edit', ... } })` and poll `getImageJob` instead.
|
|
4849
|
+
*/
|
|
4677
4850
|
async editImage(body, opts = {}) {
|
|
4678
4851
|
const ack = await call("editImage", {
|
|
4679
4852
|
body,
|
|
@@ -391,7 +391,7 @@ async function onDisk(runtimeId, path, operation, kind = "write") {
|
|
|
391
391
|
throw storageError(runtimeId, path, error, kind);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function parse(text) {
|
|
394
|
+
function parse$1(text) {
|
|
395
395
|
try {
|
|
396
396
|
const holder = JSON.parse(text ?? "");
|
|
397
397
|
return {
|
|
@@ -413,7 +413,7 @@ async function readHolder(lockPath) {
|
|
|
413
413
|
text,
|
|
414
414
|
ino: info.ino,
|
|
415
415
|
mtimeMs: Number(info.mtimeMs),
|
|
416
|
-
pid: parse(text).pid
|
|
416
|
+
pid: parse$1(text).pid
|
|
417
417
|
};
|
|
418
418
|
} catch (error) {
|
|
419
419
|
if (error.code === "ENOENT") return null;
|
|
@@ -544,7 +544,7 @@ function holding(lockPath, path, runtimeId, nonce, options) {
|
|
|
544
544
|
const check = async () => {
|
|
545
545
|
if (lost) return "lost";
|
|
546
546
|
try {
|
|
547
|
-
if (parse(await readFile(lockPath, "utf8")).nonce !== nonce) lost = true;
|
|
547
|
+
if (parse$1(await readFile(lockPath, "utf8")).nonce !== nonce) lost = true;
|
|
548
548
|
} catch (error) {
|
|
549
549
|
if (error.code === "ENOENT") lost = true;
|
|
550
550
|
else if (Date.now() - confirmedAt <= options.staleMs) return { error };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./Logger-
|
|
2
|
+
import "./Logger-CHKCF5hd.mjs";
|
|
3
3
|
import { S as vramNeedsLlamaServer, b as ollamaNumCtx, v as estimateFitFromSize } from "./modelHub-BSB6qRFP.mjs";
|
|
4
|
-
import { t as version } from "./package-
|
|
5
|
-
import { D as PRODUCTION_CURATED_KEYS, U as loadCuratedManifest, _ as resolveCuratedUrl, h as probeHardware, n as CuratedStore, t as CuratedListSource, u as curatedStoreRoot, w as BUNDLED_CURATED_JSON_TEXT } from "./dist-
|
|
6
|
-
import { Q as formatBytes, it as largestProjectorBytes } from "./modelServers-
|
|
4
|
+
import { t as version } from "./package-TACInPbw.mjs";
|
|
5
|
+
import { D as PRODUCTION_CURATED_KEYS, U as loadCuratedManifest, _ as resolveCuratedUrl, h as probeHardware, n as CuratedStore, t as CuratedListSource, u as curatedStoreRoot, w as BUNDLED_CURATED_JSON_TEXT } from "./dist-K7a9yOUb.mjs";
|
|
6
|
+
import { Q as formatBytes, it as largestProjectorBytes } from "./modelServers-CVufZd1f.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
//#region src/models/curatedList.ts
|
|
@@ -5,7 +5,7 @@ import path from "path";
|
|
|
5
5
|
import { stat } from "fs/promises";
|
|
6
6
|
import { execFile } from "child_process";
|
|
7
7
|
import { promisify } from "util";
|
|
8
|
-
//#region ../../b4m-core/services/dist/grepSearch-
|
|
8
|
+
//#region ../../b4m-core/services/dist/grepSearch-CLtEqT4j.mjs
|
|
9
9
|
const execFileAsync = promisify(execFile);
|
|
10
10
|
/** Cached ripgrep binary path after first resolution */
|
|
11
11
|
let cachedRgPath = null;
|
|
@@ -21,7 +21,7 @@ async function getRipgrepPath() {
|
|
|
21
21
|
try {
|
|
22
22
|
({rgPath} = await import("@vscode/ripgrep"));
|
|
23
23
|
} catch {
|
|
24
|
-
throw new Error("ripgrep is not available. Install the optional dependency: pnpm add @vscode/ripgrep --filter @bike4mind/services");
|
|
24
|
+
throw new Error("ripgrep is not available. Install the optional dependency: pnpm add @vscode/ripgrep --filter @bike4mind/services-core");
|
|
25
25
|
}
|
|
26
26
|
if (!rgPath || !existsSync(rgPath)) throw new Error(`ripgrep binary not found at ${rgPath ?? "<unresolved>"}. Ensure @vscode/ripgrep platform optional dependencies are installed for ${process.platform}-${process.arch}.`);
|
|
27
27
|
cachedRgPath = rgPath;
|