@botiverse/raft-daemon 0.72.2 → 0.72.3
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.
|
@@ -484,7 +484,7 @@ var RUNTIME_PROVIDER_DISPLAY_NAMES = {
|
|
|
484
484
|
"openrouter": "OpenRouter",
|
|
485
485
|
"xai": "xAI",
|
|
486
486
|
"xiaomi": "Xiaomi MiMo",
|
|
487
|
-
"zai": "ZAI",
|
|
487
|
+
"zai": "ZAI Coding Plan (Global)",
|
|
488
488
|
"zai-coding-cn": "ZAI Coding Plan (China)"
|
|
489
489
|
};
|
|
490
490
|
|
|
@@ -1989,13 +1989,23 @@ var integrationUpdateAppRegistrationOperationSchema = integrationAppDraftFieldsS
|
|
|
1989
1989
|
unsafeDemoUrlOverride: z.boolean().optional(),
|
|
1990
1990
|
draftHint: draftHintSchema
|
|
1991
1991
|
});
|
|
1992
|
+
var migrationExportOperationSchema = z.object({
|
|
1993
|
+
type: z.literal("migration:export"),
|
|
1994
|
+
targetComputer: idOrHandleSchema,
|
|
1995
|
+
mode: z.enum(["cooperative", "forensic"]).default("cooperative"),
|
|
1996
|
+
prepDeadlineMs: z.number().int().positive().optional(),
|
|
1997
|
+
transferDeadlineMs: z.number().int().positive().optional(),
|
|
1998
|
+
arrivalDeadlineMs: z.number().int().positive().optional(),
|
|
1999
|
+
draftHint: draftHintSchema
|
|
2000
|
+
});
|
|
1992
2001
|
var actionCardActionSchema = z.discriminatedUnion("type", [
|
|
1993
2002
|
channelCreateOperationSchema,
|
|
1994
2003
|
agentCreateOperationSchema,
|
|
1995
2004
|
channelAddMemberOperationSchema,
|
|
1996
2005
|
integrationApproveAgentLoginOperationSchema,
|
|
1997
2006
|
integrationRegisterAppOperationSchema,
|
|
1998
|
-
integrationUpdateAppRegistrationOperationSchema
|
|
2007
|
+
integrationUpdateAppRegistrationOperationSchema,
|
|
2008
|
+
migrationExportOperationSchema
|
|
1999
2009
|
]);
|
|
2000
2010
|
|
|
2001
2011
|
// ../shared/src/agentApiContract.ts
|
|
@@ -22672,7 +22682,7 @@ function resolveSlockCliPathOrEmpty(moduleUrl = import.meta.url) {
|
|
|
22672
22682
|
}
|
|
22673
22683
|
async function runBundledSlockCli(argv) {
|
|
22674
22684
|
process.argv = [process.execPath, "slock", ...argv];
|
|
22675
|
-
await import("./dist-
|
|
22685
|
+
await import("./dist-YOKZZD4F.js");
|
|
22676
22686
|
}
|
|
22677
22687
|
function detectRuntimes(tracer = noopTracer) {
|
|
22678
22688
|
const ids = [];
|
package/dist/cli/index.js
CHANGED
|
@@ -28567,7 +28567,7 @@ var RUNTIME_PROVIDER_DISPLAY_NAMES = {
|
|
|
28567
28567
|
"openrouter": "OpenRouter",
|
|
28568
28568
|
"xai": "xAI",
|
|
28569
28569
|
"xiaomi": "Xiaomi MiMo",
|
|
28570
|
-
"zai": "ZAI",
|
|
28570
|
+
"zai": "ZAI Coding Plan (Global)",
|
|
28571
28571
|
"zai-coding-cn": "ZAI Coding Plan (China)"
|
|
28572
28572
|
};
|
|
28573
28573
|
|
|
@@ -42876,13 +42876,23 @@ var integrationUpdateAppRegistrationOperationSchema = integrationAppDraftFieldsS
|
|
|
42876
42876
|
unsafeDemoUrlOverride: external_exports.boolean().optional(),
|
|
42877
42877
|
draftHint: draftHintSchema
|
|
42878
42878
|
});
|
|
42879
|
+
var migrationExportOperationSchema = external_exports.object({
|
|
42880
|
+
type: external_exports.literal("migration:export"),
|
|
42881
|
+
targetComputer: idOrHandleSchema,
|
|
42882
|
+
mode: external_exports.enum(["cooperative", "forensic"]).default("cooperative"),
|
|
42883
|
+
prepDeadlineMs: external_exports.number().int().positive().optional(),
|
|
42884
|
+
transferDeadlineMs: external_exports.number().int().positive().optional(),
|
|
42885
|
+
arrivalDeadlineMs: external_exports.number().int().positive().optional(),
|
|
42886
|
+
draftHint: draftHintSchema
|
|
42887
|
+
});
|
|
42879
42888
|
var actionCardActionSchema = external_exports.discriminatedUnion("type", [
|
|
42880
42889
|
channelCreateOperationSchema,
|
|
42881
42890
|
agentCreateOperationSchema,
|
|
42882
42891
|
channelAddMemberOperationSchema,
|
|
42883
42892
|
integrationApproveAgentLoginOperationSchema,
|
|
42884
42893
|
integrationRegisterAppOperationSchema,
|
|
42885
|
-
integrationUpdateAppRegistrationOperationSchema
|
|
42894
|
+
integrationUpdateAppRegistrationOperationSchema,
|
|
42895
|
+
migrationExportOperationSchema
|
|
42886
42896
|
]);
|
|
42887
42897
|
function validateActionCardAction(action) {
|
|
42888
42898
|
if (action.type === "agent:create") {
|
|
@@ -42902,9 +42912,17 @@ function validateActionCardAction(action) {
|
|
|
42902
42912
|
return "integration:update_app_registration must include at least one field to update";
|
|
42903
42913
|
}
|
|
42904
42914
|
}
|
|
42915
|
+
if (action.type === "migration:export") {
|
|
42916
|
+
if (!action.targetComputer.trim()) {
|
|
42917
|
+
return "migration:export must include a targetComputer";
|
|
42918
|
+
}
|
|
42919
|
+
}
|
|
42905
42920
|
return null;
|
|
42906
42921
|
}
|
|
42907
42922
|
|
|
42923
|
+
// ../shared/src/featureFlags.ts
|
|
42924
|
+
init_esm_shims();
|
|
42925
|
+
|
|
42908
42926
|
// ../shared/src/agentApiContract.ts
|
|
42909
42927
|
init_esm_shims();
|
|
42910
42928
|
|
|
@@ -48420,7 +48438,7 @@ function classifyBridgeLoopError(err) {
|
|
|
48420
48438
|
}
|
|
48421
48439
|
if (err instanceof Error) {
|
|
48422
48440
|
const text = `${err.name}: ${err.message} ${err.cause?.message ?? ""}`;
|
|
48423
|
-
if (/wake-hint stream (ended|idle timeout|parse failed)|fetch failed|ECONNREFUSED|ECONNRESET|ETIMEDOUT|EAI_AGAIN|EPIPE|socket|network|UND_ERR/i.test(text)) {
|
|
48441
|
+
if (/wake-hint stream (ended|idle timeout|parse failed)|fetch failed|TypeError:\s*terminated\b|ECONNREFUSED|ECONNRESET|ETIMEDOUT|EAI_AGAIN|EPIPE|socket|network|UND_ERR/i.test(text)) {
|
|
48424
48442
|
return "retryable";
|
|
48425
48443
|
}
|
|
48426
48444
|
}
|
package/dist/cli/package.json
CHANGED
package/dist/core.js
CHANGED
|
@@ -28331,7 +28331,7 @@ var RUNTIME_PROVIDER_DISPLAY_NAMES = {
|
|
|
28331
28331
|
"openrouter": "OpenRouter",
|
|
28332
28332
|
"xai": "xAI",
|
|
28333
28333
|
"xiaomi": "Xiaomi MiMo",
|
|
28334
|
-
"zai": "ZAI",
|
|
28334
|
+
"zai": "ZAI Coding Plan (Global)",
|
|
28335
28335
|
"zai-coding-cn": "ZAI Coding Plan (China)"
|
|
28336
28336
|
};
|
|
28337
28337
|
function getRuntimeProviderDisplayName(providerId) {
|
|
@@ -42434,13 +42434,23 @@ var integrationUpdateAppRegistrationOperationSchema = integrationAppDraftFieldsS
|
|
|
42434
42434
|
unsafeDemoUrlOverride: external_exports.boolean().optional(),
|
|
42435
42435
|
draftHint: draftHintSchema
|
|
42436
42436
|
});
|
|
42437
|
+
var migrationExportOperationSchema = external_exports.object({
|
|
42438
|
+
type: external_exports.literal("migration:export"),
|
|
42439
|
+
targetComputer: idOrHandleSchema,
|
|
42440
|
+
mode: external_exports.enum(["cooperative", "forensic"]).default("cooperative"),
|
|
42441
|
+
prepDeadlineMs: external_exports.number().int().positive().optional(),
|
|
42442
|
+
transferDeadlineMs: external_exports.number().int().positive().optional(),
|
|
42443
|
+
arrivalDeadlineMs: external_exports.number().int().positive().optional(),
|
|
42444
|
+
draftHint: draftHintSchema
|
|
42445
|
+
});
|
|
42437
42446
|
var actionCardActionSchema = external_exports.discriminatedUnion("type", [
|
|
42438
42447
|
channelCreateOperationSchema,
|
|
42439
42448
|
agentCreateOperationSchema,
|
|
42440
42449
|
channelAddMemberOperationSchema,
|
|
42441
42450
|
integrationApproveAgentLoginOperationSchema,
|
|
42442
42451
|
integrationRegisterAppOperationSchema,
|
|
42443
|
-
integrationUpdateAppRegistrationOperationSchema
|
|
42452
|
+
integrationUpdateAppRegistrationOperationSchema,
|
|
42453
|
+
migrationExportOperationSchema
|
|
42444
42454
|
]);
|
|
42445
42455
|
function validateActionCardAction(action) {
|
|
42446
42456
|
if (action.type === "agent:create") {
|
|
@@ -42460,10 +42470,16 @@ function validateActionCardAction(action) {
|
|
|
42460
42470
|
return "integration:update_app_registration must include at least one field to update";
|
|
42461
42471
|
}
|
|
42462
42472
|
}
|
|
42473
|
+
if (action.type === "migration:export") {
|
|
42474
|
+
if (!action.targetComputer.trim()) {
|
|
42475
|
+
return "migration:export must include a targetComputer";
|
|
42476
|
+
}
|
|
42477
|
+
}
|
|
42463
42478
|
return null;
|
|
42464
42479
|
}
|
|
42465
42480
|
init_esm_shims();
|
|
42466
42481
|
init_esm_shims();
|
|
42482
|
+
init_esm_shims();
|
|
42467
42483
|
var ATTENTION_HINT_SCHEMA = "attention-dependency-hint.v1";
|
|
42468
42484
|
var ATTENTION_HINT_DEFAULT_WINDOW_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
42469
42485
|
var AGENT_API_BASE_PATH = "/internal/agent-api";
|
|
@@ -47870,7 +47886,7 @@ function classifyBridgeLoopError(err) {
|
|
|
47870
47886
|
}
|
|
47871
47887
|
if (err instanceof Error) {
|
|
47872
47888
|
const text = `${err.name}: ${err.message} ${err.cause?.message ?? ""}`;
|
|
47873
|
-
if (/wake-hint stream (ended|idle timeout|parse failed)|fetch failed|ECONNREFUSED|ECONNRESET|ETIMEDOUT|EAI_AGAIN|EPIPE|socket|network|UND_ERR/i.test(text)) {
|
|
47889
|
+
if (/wake-hint stream (ended|idle timeout|parse failed)|fetch failed|TypeError:\s*terminated\b|ECONNREFUSED|ECONNRESET|ETIMEDOUT|EAI_AGAIN|EPIPE|socket|network|UND_ERR/i.test(text)) {
|
|
47874
47890
|
return "retryable";
|
|
47875
47891
|
}
|
|
47876
47892
|
}
|
package/dist/index.js
CHANGED