@botiverse/raft-computer 0.0.63 → 0.0.65
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/dist/index.js +14 -9
- package/dist/lib/index.d.ts +33 -6
- package/dist/lib/index.js +14 -9
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -45197,8 +45197,8 @@ var PLAN_CONFIG = {
|
|
|
45197
45197
|
displayFeatures: [
|
|
45198
45198
|
"Channels",
|
|
45199
45199
|
"Tasks",
|
|
45200
|
-
"
|
|
45201
|
-
"Agent
|
|
45200
|
+
"Agents on your own computers",
|
|
45201
|
+
"Agent reminders",
|
|
45202
45202
|
"Basic observability",
|
|
45203
45203
|
"30 days of message history",
|
|
45204
45204
|
"100 MB file uploads/month"
|
|
@@ -45229,12 +45229,13 @@ var DISPLAY_PLAN_CONFIG = {
|
|
|
45229
45229
|
priceCadence: "/ seat pack / month",
|
|
45230
45230
|
extraAgentPrice: 0,
|
|
45231
45231
|
displayFeatures: [
|
|
45232
|
-
"
|
|
45232
|
+
"Everything in Free",
|
|
45233
45233
|
"Unlimited message history",
|
|
45234
45234
|
"Higher file upload limits",
|
|
45235
|
-
"Joint
|
|
45235
|
+
"Joint channels",
|
|
45236
45236
|
"More professional features coming soon"
|
|
45237
45237
|
],
|
|
45238
|
+
displayDescription: "For builders and teams scaling agent collaboration.",
|
|
45238
45239
|
displayNote: "$17.60 / seat pack / month when billed yearly"
|
|
45239
45240
|
},
|
|
45240
45241
|
enterprise: {
|
|
@@ -45246,14 +45247,18 @@ var DISPLAY_PLAN_CONFIG = {
|
|
|
45246
45247
|
priceCadence: null,
|
|
45247
45248
|
extraAgentPrice: 0,
|
|
45248
45249
|
displayFeatures: [
|
|
45249
|
-
"
|
|
45250
|
-
"
|
|
45251
|
-
"
|
|
45252
|
-
"
|
|
45253
|
-
]
|
|
45250
|
+
"Everything in Pro",
|
|
45251
|
+
"Private deployment options",
|
|
45252
|
+
"SSO and advanced access control",
|
|
45253
|
+
"Dedicated onboarding and rollout support"
|
|
45254
|
+
],
|
|
45255
|
+
displayDescription: "For advanced deployment and governance needs."
|
|
45254
45256
|
}
|
|
45255
45257
|
};
|
|
45256
45258
|
var FREE_MONTHLY_FILE_UPLOAD_LIMIT_BYTES = 100 * 1024 * 1024;
|
|
45259
|
+
var TRIAL_START_DATE = /* @__PURE__ */ new Date("2026-04-18T00:00:00Z");
|
|
45260
|
+
var TRIAL_END_DATE = /* @__PURE__ */ new Date("2026-06-23T12:00:00Z");
|
|
45261
|
+
var TRIAL_DURATION_DAYS = (TRIAL_END_DATE.getTime() - TRIAL_START_DATE.getTime()) / (24 * 60 * 60 * 1e3);
|
|
45257
45262
|
|
|
45258
45263
|
// src/services/errors.ts
|
|
45259
45264
|
init_esm_shims();
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Tracer } from '@slock-ai/shared';
|
|
2
|
-
import { TraceClientSource } from '@slock-ai/trace-client';
|
|
3
|
-
|
|
4
1
|
declare class ComputerError extends Error {
|
|
5
2
|
readonly code: string;
|
|
6
3
|
readonly exitCode: number;
|
|
@@ -496,6 +493,36 @@ type MigrationDetection = {
|
|
|
496
493
|
kind: "server-unavailable";
|
|
497
494
|
};
|
|
498
495
|
|
|
496
|
+
type ComputerTraceSurface = "server" | "daemon" | "web" | "computer";
|
|
497
|
+
type ComputerTraceSpanKind = "server" | "client" | "internal" | "producer" | "consumer";
|
|
498
|
+
type ComputerTraceStatus = "ok" | "error" | "cancelled";
|
|
499
|
+
type ComputerTraceAttributes = Record<string, unknown>;
|
|
500
|
+
type ComputerTraceClientSource = "daemon" | "computer.cli" | "computer.menu-bar";
|
|
501
|
+
interface ComputerTraceContext {
|
|
502
|
+
traceId: string;
|
|
503
|
+
spanId: string;
|
|
504
|
+
parentSpanId: string | null;
|
|
505
|
+
traceFlags: string;
|
|
506
|
+
}
|
|
507
|
+
interface ComputerStartSpanOptions {
|
|
508
|
+
parent?: ComputerTraceContext | null;
|
|
509
|
+
surface: ComputerTraceSurface;
|
|
510
|
+
kind?: ComputerTraceSpanKind;
|
|
511
|
+
attrs?: ComputerTraceAttributes;
|
|
512
|
+
startTimeMs?: number;
|
|
513
|
+
}
|
|
514
|
+
interface ComputerEndSpanOptions {
|
|
515
|
+
attrs?: ComputerTraceAttributes;
|
|
516
|
+
}
|
|
517
|
+
interface ComputerActiveSpan {
|
|
518
|
+
readonly context: ComputerTraceContext;
|
|
519
|
+
addEvent(name: string, attrs?: ComputerTraceAttributes): void;
|
|
520
|
+
end(status?: ComputerTraceStatus, options?: ComputerEndSpanOptions): void;
|
|
521
|
+
}
|
|
522
|
+
interface ComputerTracer {
|
|
523
|
+
startSpan(name: string, options: ComputerStartSpanOptions): ComputerActiveSpan;
|
|
524
|
+
}
|
|
525
|
+
|
|
499
526
|
type ComputerApiEvent = {
|
|
500
527
|
kind: "login.device-code";
|
|
501
528
|
verifyUrl: string;
|
|
@@ -1434,7 +1461,7 @@ interface ComputerApi {
|
|
|
1434
1461
|
* one — so the same lib code attributes correctly across both surfaces.
|
|
1435
1462
|
*/
|
|
1436
1463
|
declare function createComputerApi(slockHome: string, opts?: {
|
|
1437
|
-
tracer?:
|
|
1464
|
+
tracer?: ComputerTracer;
|
|
1438
1465
|
}): ComputerApi;
|
|
1439
1466
|
|
|
1440
1467
|
/**
|
|
@@ -1443,7 +1470,7 @@ declare function createComputerApi(slockHome: string, opts?: {
|
|
|
1443
1470
|
* `<computerDir>/traces/` sink with consistent gating. `SLOCK_COMPUTER_LOCAL_TRACE=0`
|
|
1444
1471
|
* disables (default on, mirrors the daemon); any setup failure falls back to noop.
|
|
1445
1472
|
*/
|
|
1446
|
-
declare function createComputerTracer(slockHome: string, source:
|
|
1473
|
+
declare function createComputerTracer(slockHome: string, source: ComputerTraceClientSource): ComputerTracer;
|
|
1447
1474
|
|
|
1448
1475
|
/**
|
|
1449
1476
|
* Read the Computer-level aggregate status from `installRoot`. Identical
|
|
@@ -1489,4 +1516,4 @@ declare function userSessionPath(slockHome: string): string;
|
|
|
1489
1516
|
|
|
1490
1517
|
declare const COMPUTER_VERSION: string;
|
|
1491
1518
|
|
|
1492
|
-
export { type AttachInput, type AttachResult, COMPUTER_VERSION, type ComputerApi, type ComputerApiEvent, ComputerError, ComputerServiceError, type ComputerStatusReport, type ConnectService, type ConnectServiceOptions, DEFAULT_UPGRADE_BASE_URL, type DaemonState, IPC_ERROR_CODES, type IpcErrorCode, type LegacyMachineCandidate, type LegacyMachineRosterClient, type LegacyMachineRosterEntry, type LegacyMachineRosterResult, LegacyMachinesClient, type ListRunnersResult, type LoginInput, type LoginResult, MIGRATION_DETECTION_KINDS, MIGRATION_FRESH_TRIGGERS, type ManualPathValidation, type MigrationDetection, type MigrationDetectionKind, type MigrationFreshTrigger, type PickerSelection, RUNNER_STATE_VALUES, type RequestMethodMap, type RequestOptions, type ResetRunnerResult, type ResetServiceResult, type RunnerListItem as RunnerInfo, type RunnerListPerServer, type RunnerState, type RunnerStatusResult, SERVICE_STATE_VALUES, STATE_READER_ERROR_CODES, type ServerHealth, type ServerStatusRow, ServersClient, type ServiceClient, ServiceClientError, type ServiceEvent, type ServiceState, type ServiceStatusResult, StateReaderError, type StateReaderErrorCode, UPGRADE_ERROR_CODES, type UpgradeBundle, type UpgradeErrorCode, type UpgradeLogEntry, type UpgradeLogEntryErr, type UpgradeLogEntryOk, type UpgradeStartResult, type UpgradeTrigger, type UserServerEntry, type UserServersResult, assertUpgradeLogEntry, connectService, createComputerApi, createComputerTracer, detectLegacyMigration, fetchCdnLatestVersion, isComputerError, isIpcErrorCode, isMigrationDetectionKind, isRunnerState, isServiceState, listRunners, pickMigrationCandidateFromInput, readRunnerStatus, readServiceStatus, userSessionPath, validateManualMigratePath };
|
|
1519
|
+
export { type AttachInput, type AttachResult, COMPUTER_VERSION, type ComputerActiveSpan, type ComputerApi, type ComputerApiEvent, type ComputerEndSpanOptions, ComputerError, ComputerServiceError, type ComputerStartSpanOptions, type ComputerStatusReport, type ComputerTraceAttributes, type ComputerTraceClientSource, type ComputerTraceContext, type ComputerTraceSpanKind, type ComputerTraceStatus, type ComputerTraceSurface, type ComputerTracer, type ConnectService, type ConnectServiceOptions, DEFAULT_UPGRADE_BASE_URL, type DaemonState, IPC_ERROR_CODES, type IpcErrorCode, type LegacyMachineCandidate, type LegacyMachineRosterClient, type LegacyMachineRosterEntry, type LegacyMachineRosterResult, LegacyMachinesClient, type ListRunnersResult, type LoginInput, type LoginResult, MIGRATION_DETECTION_KINDS, MIGRATION_FRESH_TRIGGERS, type ManualPathValidation, type MigrationDetection, type MigrationDetectionKind, type MigrationFreshTrigger, type PickerSelection, RUNNER_STATE_VALUES, type RequestMethodMap, type RequestOptions, type ResetRunnerResult, type ResetServiceResult, type RunnerListItem as RunnerInfo, type RunnerListPerServer, type RunnerState, type RunnerStatusResult, SERVICE_STATE_VALUES, STATE_READER_ERROR_CODES, type ServerHealth, type ServerStatusRow, ServersClient, type ServiceClient, ServiceClientError, type ServiceEvent, type ServiceState, type ServiceStatusResult, StateReaderError, type StateReaderErrorCode, UPGRADE_ERROR_CODES, type UpgradeBundle, type UpgradeErrorCode, type UpgradeLogEntry, type UpgradeLogEntryErr, type UpgradeLogEntryOk, type UpgradeStartResult, type UpgradeTrigger, type UserServerEntry, type UserServersResult, assertUpgradeLogEntry, connectService, createComputerApi, createComputerTracer, detectLegacyMigration, fetchCdnLatestVersion, isComputerError, isIpcErrorCode, isMigrationDetectionKind, isRunnerState, isServiceState, listRunners, pickMigrationCandidateFromInput, readRunnerStatus, readServiceStatus, userSessionPath, validateManualMigratePath };
|
package/dist/lib/index.js
CHANGED
|
@@ -15420,8 +15420,8 @@ var PLAN_CONFIG = {
|
|
|
15420
15420
|
displayFeatures: [
|
|
15421
15421
|
"Channels",
|
|
15422
15422
|
"Tasks",
|
|
15423
|
-
"
|
|
15424
|
-
"Agent
|
|
15423
|
+
"Agents on your own computers",
|
|
15424
|
+
"Agent reminders",
|
|
15425
15425
|
"Basic observability",
|
|
15426
15426
|
"30 days of message history",
|
|
15427
15427
|
"100 MB file uploads/month"
|
|
@@ -15452,12 +15452,13 @@ var DISPLAY_PLAN_CONFIG = {
|
|
|
15452
15452
|
priceCadence: "/ seat pack / month",
|
|
15453
15453
|
extraAgentPrice: 0,
|
|
15454
15454
|
displayFeatures: [
|
|
15455
|
-
"
|
|
15455
|
+
"Everything in Free",
|
|
15456
15456
|
"Unlimited message history",
|
|
15457
15457
|
"Higher file upload limits",
|
|
15458
|
-
"Joint
|
|
15458
|
+
"Joint channels",
|
|
15459
15459
|
"More professional features coming soon"
|
|
15460
15460
|
],
|
|
15461
|
+
displayDescription: "For builders and teams scaling agent collaboration.",
|
|
15461
15462
|
displayNote: "$17.60 / seat pack / month when billed yearly"
|
|
15462
15463
|
},
|
|
15463
15464
|
enterprise: {
|
|
@@ -15469,14 +15470,18 @@ var DISPLAY_PLAN_CONFIG = {
|
|
|
15469
15470
|
priceCadence: null,
|
|
15470
15471
|
extraAgentPrice: 0,
|
|
15471
15472
|
displayFeatures: [
|
|
15472
|
-
"
|
|
15473
|
-
"
|
|
15474
|
-
"
|
|
15475
|
-
"
|
|
15476
|
-
]
|
|
15473
|
+
"Everything in Pro",
|
|
15474
|
+
"Private deployment options",
|
|
15475
|
+
"SSO and advanced access control",
|
|
15476
|
+
"Dedicated onboarding and rollout support"
|
|
15477
|
+
],
|
|
15478
|
+
displayDescription: "For advanced deployment and governance needs."
|
|
15477
15479
|
}
|
|
15478
15480
|
};
|
|
15479
15481
|
var FREE_MONTHLY_FILE_UPLOAD_LIMIT_BYTES = 100 * 1024 * 1024;
|
|
15482
|
+
var TRIAL_START_DATE = /* @__PURE__ */ new Date("2026-04-18T00:00:00Z");
|
|
15483
|
+
var TRIAL_END_DATE = /* @__PURE__ */ new Date("2026-06-23T12:00:00Z");
|
|
15484
|
+
var TRIAL_DURATION_DAYS = (TRIAL_END_DATE.getTime() - TRIAL_START_DATE.getTime()) / (24 * 60 * 60 * 1e3);
|
|
15480
15485
|
|
|
15481
15486
|
// src/services/errors.ts
|
|
15482
15487
|
var ComputerServiceError = class extends Error {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botiverse/raft-computer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"description": "Canonical Raft Computer — standalone human/local-machine control-plane CLI (login + attach). Provides raft-computer plus the legacy slock-computer alias; distinct from the agent-facing @botiverse/raft CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -31,9 +31,7 @@
|
|
|
31
31
|
"commander": "^12.1.0",
|
|
32
32
|
"proper-lockfile": "^4.1.2",
|
|
33
33
|
"undici": "^7.24.7",
|
|
34
|
-
"@
|
|
35
|
-
"@slock-ai/trace-client": "0.0.1",
|
|
36
|
-
"@botiverse/raft-daemon": "0.63.3"
|
|
34
|
+
"@botiverse/raft-daemon": "0.63.5"
|
|
37
35
|
},
|
|
38
36
|
"devDependencies": {
|
|
39
37
|
"@types/node": "^25.5.0",
|
|
@@ -42,7 +40,9 @@
|
|
|
42
40
|
"postject": "^1.0.0-alpha.6",
|
|
43
41
|
"tsup": "^8.5.1",
|
|
44
42
|
"tsx": "^4.21.0",
|
|
45
|
-
"typescript": "^5.9.3"
|
|
43
|
+
"typescript": "^5.9.3",
|
|
44
|
+
"@slock-ai/shared": "0.1.0",
|
|
45
|
+
"@slock-ai/trace-client": "0.0.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"computer": "tsx src/index.ts",
|