@byok-sdk/client 0.13.0 → 0.15.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 +95 -0
- package/dist/adapters/claude/process-client.d.ts +24 -0
- package/dist/adapters/codex/codex-adapter.d.ts +2 -0
- package/dist/adapters/codex/process-runner.d.ts +62 -18
- package/dist/adapters/detect-outcome.d.ts +18 -0
- package/dist/adapters/index.d.ts +1 -1
- package/dist/adapters/index.js +546 -76
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/pi/events.d.ts +1 -1
- package/dist/adapters/pi/rpc-client.d.ts +47 -1
- package/dist/adapters/pi/subagents-policy-extension.js +1 -1
- package/dist/adapters/pi/subagents-policy-extension.js.map +1 -1
- package/dist/adapters/pi/team-interaction-extension.d.ts +24 -0
- package/dist/adapters/pi/team-interaction-extension.js +81 -0
- package/dist/adapters/pi/team-interaction-extension.js.map +1 -0
- package/dist/adapters/process-tree.d.ts +74 -4
- package/dist/adapters/provider-credential-environment.d.ts +1 -1
- package/dist/adapters/win32-job-object.d.ts +101 -0
- package/dist/bin/byok-agent-memory-mcp.js +29 -0
- package/dist/bin/byok-agent-memory-mcp.js.map +1 -1
- package/dist/bin/byok-agent-message-mcp.js +29 -0
- package/dist/bin/byok-agent-message-mcp.js.map +1 -1
- package/dist/bin/byok-agent-team-mcp.js +29 -0
- package/dist/bin/byok-agent-team-mcp.js.map +1 -1
- package/dist/bin/byok-agent.js +20274 -18057
- package/dist/bin/byok-agent.js.map +1 -1
- package/dist/bin/byok-approval-mcp.js +29 -0
- package/dist/bin/byok-approval-mcp.js.map +1 -1
- package/dist/bin/byok-mcp-env.d.ts +2 -0
- package/dist/bin/byok-mcp-env.js +36 -0
- package/dist/bin/byok-mcp-env.js.map +1 -0
- package/dist/bin/commands/doctor.d.ts +3 -0
- package/dist/bin/commands/team-pi-relay.d.ts +24 -0
- package/dist/bin/commands/team-relay.d.ts +11 -0
- package/dist/bin/mcp-env-launcher.d.ts +5 -0
- package/dist/bin/runtime-probe.d.ts +6 -7
- package/dist/bin/team-codex-relay.d.ts +32 -0
- package/dist/bin/team-notification-relay.d.ts +40 -0
- package/dist/bin/team-pi-session.d.ts +59 -0
- package/dist/daemon/admission-wait.d.ts +2 -0
- package/dist/daemon/agent-egress-policy.d.ts +8 -0
- package/dist/daemon/agent-egress-spool.d.ts +1 -0
- package/dist/daemon/agent-message-outbox.d.ts +15 -3
- package/dist/daemon/artifact-read.d.ts +7 -0
- package/dist/daemon/connection-manager.d.ts +23 -176
- package/dist/daemon/control-protocol.d.ts +2 -0
- package/dist/daemon/create-daemon.d.ts +43 -1
- package/dist/daemon/event-spill.d.ts +90 -0
- package/dist/daemon/journal/journal.d.ts +15 -3
- package/dist/daemon/journal/sqlite-journal.d.ts +7 -2
- package/dist/daemon/long-poll-transport.d.ts +2 -50
- package/dist/daemon/runtime-start.d.ts +3 -0
- package/dist/daemon/store.d.ts +2 -0
- package/dist/daemon/task-runner.d.ts +36 -0
- package/dist/daemon/team-workspace.d.ts +9 -0
- package/dist/daemon/terminal-commit-queue.d.ts +21 -0
- package/dist/daemon/terminal-identity.d.ts +6 -0
- package/dist/diagnostics/device-doctor.d.ts +46 -0
- package/dist/diagnostics/diagnostics.d.ts +3 -80
- package/dist/diagnostics/types.d.ts +82 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2824 -649
- package/dist/index.js.map +1 -1
- package/dist/runtime-detection.d.ts +3 -0
- package/dist/runtime-failure.d.ts +6 -0
- package/dist/sdk-reserved-helper-host.d.ts +1 -1
- package/dist/types.d.ts +20 -10
- package/dist/util/durable-jsonl.d.ts +12 -0
- package/package.json +8 -5
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { RuntimeDetectResult } from '../types';
|
|
2
|
+
import type { ControlStatusResult } from '../daemon/control-protocol';
|
|
3
|
+
import type { OperationalHealthFileInspection } from '../daemon/operational-health';
|
|
4
|
+
export type DiagnosticStatus = 'pass' | 'warn' | 'fail';
|
|
5
|
+
export interface DiagnosticCheck {
|
|
6
|
+
id: 'config' | 'device' | 'runtimes' | 'control' | 'health' | 'journal' | 'workspace' | 'quarantine';
|
|
7
|
+
status: DiagnosticStatus;
|
|
8
|
+
summary: string;
|
|
9
|
+
}
|
|
10
|
+
export interface DiagnosticsSnapshot {
|
|
11
|
+
version: 1;
|
|
12
|
+
generatedAt: string;
|
|
13
|
+
product: {
|
|
14
|
+
nameHash: string;
|
|
15
|
+
idHash: string;
|
|
16
|
+
};
|
|
17
|
+
system: {
|
|
18
|
+
node: string;
|
|
19
|
+
platform: NodeJS.Platform;
|
|
20
|
+
arch: string;
|
|
21
|
+
sqliteAvailable: boolean;
|
|
22
|
+
};
|
|
23
|
+
config: {
|
|
24
|
+
serverProtocol: 'http' | 'https' | 'ws' | 'wss' | 'invalid' | 'unsupported';
|
|
25
|
+
customStoreDir: boolean;
|
|
26
|
+
hostedJournal: boolean;
|
|
27
|
+
runtimeAllowlistCount?: number;
|
|
28
|
+
};
|
|
29
|
+
device: {
|
|
30
|
+
status: 'paired' | 'unpaired' | 'unavailable';
|
|
31
|
+
deviceIdHash?: string;
|
|
32
|
+
};
|
|
33
|
+
runtimes: Array<{
|
|
34
|
+
idHash: string;
|
|
35
|
+
present: boolean;
|
|
36
|
+
outcome: RuntimeDetectResult['kind'];
|
|
37
|
+
versionPresent: boolean;
|
|
38
|
+
authPresent?: boolean;
|
|
39
|
+
steer: boolean;
|
|
40
|
+
resume: boolean;
|
|
41
|
+
permissionModeCount: number;
|
|
42
|
+
}>;
|
|
43
|
+
control: {
|
|
44
|
+
status: 'offline';
|
|
45
|
+
reason: string;
|
|
46
|
+
} | {
|
|
47
|
+
status: 'online';
|
|
48
|
+
pid: number;
|
|
49
|
+
uptimeMs: number;
|
|
50
|
+
transport: string;
|
|
51
|
+
activeTaskCount: number;
|
|
52
|
+
pendingApprovalCount: number;
|
|
53
|
+
operationalHealth: ControlStatusResult['operationalHealth'];
|
|
54
|
+
storage?: ControlStatusResult['storage'];
|
|
55
|
+
};
|
|
56
|
+
health: OperationalHealthFileInspection;
|
|
57
|
+
journal: {
|
|
58
|
+
status: 'missing' | 'present' | 'corrupt' | 'unavailable';
|
|
59
|
+
sizeBytes?: number;
|
|
60
|
+
walBytes?: number;
|
|
61
|
+
integrity?: 'ok' | 'not-checked';
|
|
62
|
+
reason?: string;
|
|
63
|
+
};
|
|
64
|
+
workspace: {
|
|
65
|
+
status: 'available' | 'missing' | 'unavailable';
|
|
66
|
+
writable?: boolean;
|
|
67
|
+
reason?: string;
|
|
68
|
+
};
|
|
69
|
+
quarantine: {
|
|
70
|
+
status: 'available' | 'missing' | 'unavailable';
|
|
71
|
+
count: number;
|
|
72
|
+
scannedCount: number;
|
|
73
|
+
truncated: boolean;
|
|
74
|
+
entries: Array<{
|
|
75
|
+
nameHash: string;
|
|
76
|
+
sizeBytes: number;
|
|
77
|
+
modifiedAt: string;
|
|
78
|
+
}>;
|
|
79
|
+
reason?: string;
|
|
80
|
+
};
|
|
81
|
+
checks: DiagnosticCheck[];
|
|
82
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { resolveLocalAgentReleaseIdentity } from './release-identity';
|
|
|
12
12
|
export type { LocalAgentReleaseIdentity } from './release-identity';
|
|
13
13
|
export { BYOK_SDK_HELPER_SUBCOMMAND, resolveSdkReservedHelperBin, runSdkReservedHelperCommand, } from './sdk-reserved-helper-host';
|
|
14
14
|
export type { SdkHelperHostConfig, SdkReservedHelperKind, ResolvedSdkReservedHelperBin, } from './sdk-reserved-helper-host';
|
|
15
|
-
export { RuntimeExecutionFailure, RuntimeDisposalFailure, RUNTIME_ADAPTER_CONTRACT_VIOLATION_REASON, isRuntimeDisposalFailure, isRuntimeExecutionFailure, projectRuntimeBoundaryFailure, projectRuntimeExecutionFailure, } from './runtime-failure';
|
|
15
|
+
export { RuntimeExecutionFailure, RuntimeStartupDisposalFailure, isRuntimeStartupDisposalFailure, RuntimeDisposalFailure, RUNTIME_ADAPTER_CONTRACT_VIOLATION_REASON, isRuntimeDisposalFailure, isRuntimeExecutionFailure, projectRuntimeBoundaryFailure, projectRuntimeExecutionFailure, } from './runtime-failure';
|
|
16
16
|
export type { RuntimeExecutionFailureInput, RuntimeDisposalFailureInput, RuntimeDisposalStage, RuntimeFailureCategory, RuntimeFailurePhase, RuntimeFailureProjection, RuntimeRetryDisposition, } from './runtime-failure';
|
|
17
17
|
export { GitWorkspaceManager, GitWorkspaceError, isGitWorkspaceConfig, prependGitWorkspaceGuidance } from './daemon/git-workspace';
|
|
18
18
|
export type { GitWorkspaceObservation, GitWorkspaceLease, GitWorkspaceOptions, GitErrorCategory } from './daemon/git-workspace';
|
|
@@ -82,3 +82,5 @@ export { PI_PACKAGE_NAME } from './adapters/pi/resolve-bin';
|
|
|
82
82
|
export { ClaudeAdapter } from './adapters/claude/claude-adapter';
|
|
83
83
|
export type { ClaudeAdapterOptions } from './adapters/claude/claude-adapter';
|
|
84
84
|
export { CodexAdapter, type CodexAdapterOptions } from './adapters/codex/codex-adapter';
|
|
85
|
+
export { diagnoseDevice, repairDeviceEnrollmentMetadata, DeviceMetadataRepairError } from './diagnostics/device-doctor';
|
|
86
|
+
export type { DiagnoseDeviceOptions, DiagnosticsSnapshot, DiagnosticCheck, DiagnosticStatus, RepairDeviceEnrollmentMetadataInput, DeviceMetadataRepairResult, DeviceMetadataRepairErrorCode, } from './diagnostics/device-doctor';
|