@rivet-dev/agentos-core 0.0.0-integrate-dylib-into-main.815fcda → 0.0.0-main.29b0797
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 +43 -43
- package/dist/agent-os.d.ts +313 -226
- package/dist/agent-os.js +1418 -1545
- package/dist/agentos-package.d.ts +31 -0
- package/dist/agentos-package.js +91 -0
- package/dist/base-filesystem.d.ts +2 -15
- package/dist/base-filesystem.js +23 -171
- package/dist/{host-tools-zod.d.ts → bindings-zod.d.ts} +1 -1
- package/dist/{host-tools-zod.js → bindings-zod.js} +52 -25
- package/dist/bindings.d.ts +43 -0
- package/dist/bindings.js +34 -0
- package/dist/cron/cron-manager.js +43 -10
- package/dist/cron/index.d.ts +1 -1
- package/dist/cron/types.d.ts +26 -10
- package/dist/default-software.d.ts +8 -0
- package/dist/default-software.js +10 -0
- package/dist/filesystem-snapshot.d.ts +1 -2
- package/dist/filesystem-snapshot.js +0 -43
- package/dist/generated/AcpLimitsConfig.d.ts +20 -0
- package/dist/generated/AcpLimitsConfig.js +2 -0
- package/dist/generated/BindingLimitsConfig.d.ts +10 -0
- package/dist/generated/BindingLimitsConfig.js +2 -0
- package/dist/generated/CreateVmConfig.d.ts +28 -0
- package/dist/generated/FsPermissionRule.d.ts +6 -0
- package/dist/generated/FsPermissionRule.js +1 -0
- package/dist/generated/FsPermissionRuleSet.d.ts +6 -0
- package/dist/generated/FsPermissionRuleSet.js +1 -0
- package/dist/generated/FsPermissionScope.d.ts +3 -0
- package/dist/generated/FsPermissionScope.js +1 -0
- package/dist/generated/HttpLimitsConfig.d.ts +3 -0
- package/dist/generated/HttpLimitsConfig.js +2 -0
- package/dist/generated/JsModuleResolution.d.ts +1 -0
- package/dist/generated/JsModuleResolution.js +2 -0
- package/dist/generated/JsRuntimeConfig.d.ts +31 -0
- package/dist/generated/JsRuntimeConfig.js +1 -0
- package/dist/generated/JsRuntimeLimitsConfig.d.ts +11 -0
- package/dist/generated/JsRuntimeLimitsConfig.js +2 -0
- package/dist/generated/JsRuntimePlatform.d.ts +1 -0
- package/dist/generated/JsRuntimePlatform.js +2 -0
- package/dist/generated/MountPluginDescriptor.d.ts +4 -0
- package/dist/generated/MountPluginDescriptor.js +2 -0
- package/dist/generated/NativeRootFilesystemConfig.d.ts +5 -0
- package/dist/generated/NativeRootFilesystemConfig.js +1 -0
- package/dist/generated/PatternPermissionRule.d.ts +6 -0
- package/dist/generated/PatternPermissionRule.js +1 -0
- package/dist/generated/PatternPermissionRuleSet.d.ts +6 -0
- package/dist/generated/PatternPermissionRuleSet.js +1 -0
- package/dist/generated/PatternPermissionScope.d.ts +3 -0
- package/dist/generated/PatternPermissionScope.js +1 -0
- package/dist/generated/PermissionMode.d.ts +1 -0
- package/dist/generated/PermissionMode.js +2 -0
- package/dist/generated/PermissionsPolicy.d.ts +10 -0
- package/dist/generated/PermissionsPolicy.js +1 -0
- package/dist/generated/PluginLimitsConfig.d.ts +4 -0
- package/dist/generated/PluginLimitsConfig.js +2 -0
- package/dist/generated/ProcessLimitsConfig.d.ts +7 -0
- package/dist/generated/ProcessLimitsConfig.js +2 -0
- package/dist/generated/PythonLimitsConfig.d.ts +6 -0
- package/dist/generated/PythonLimitsConfig.js +2 -0
- package/dist/generated/ResourceLimitsConfig.d.ts +24 -0
- package/dist/generated/ResourceLimitsConfig.js +2 -0
- package/dist/generated/RootFilesystemConfig.d.ts +9 -0
- package/dist/generated/RootFilesystemConfig.js +1 -0
- package/dist/generated/RootFilesystemEntry.d.ts +13 -0
- package/dist/generated/RootFilesystemEntry.js +1 -0
- package/dist/generated/RootFilesystemEntryEncoding.d.ts +1 -0
- package/dist/generated/RootFilesystemEntryEncoding.js +2 -0
- package/dist/generated/RootFilesystemEntryKind.d.ts +1 -0
- package/dist/generated/RootFilesystemEntryKind.js +2 -0
- package/dist/generated/RootFilesystemLowerDescriptor.d.ts +7 -0
- package/dist/generated/RootFilesystemLowerDescriptor.js +1 -0
- package/dist/generated/RootFilesystemMode.d.ts +1 -0
- package/dist/generated/RootFilesystemMode.js +2 -0
- package/dist/generated/VmDnsConfig.d.ts +6 -0
- package/dist/generated/VmDnsConfig.js +2 -0
- package/dist/generated/VmGroupConfig.d.ts +5 -0
- package/dist/generated/VmGroupConfig.js +2 -0
- package/dist/generated/VmLimitsConfig.d.ts +20 -0
- package/dist/generated/VmLimitsConfig.js +1 -0
- package/dist/generated/VmListenPolicyConfig.d.ts +5 -0
- package/dist/generated/VmListenPolicyConfig.js +2 -0
- package/dist/generated/VmUserAccountConfig.d.ts +9 -0
- package/dist/generated/VmUserAccountConfig.js +2 -0
- package/dist/generated/VmUserConfig.d.ts +19 -0
- package/dist/generated/VmUserConfig.js +1 -0
- package/dist/generated/WasmLimitsConfig.d.ts +8 -0
- package/dist/generated/WasmLimitsConfig.js +2 -0
- package/dist/host-dir-mount.d.ts +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +5 -5
- package/dist/layers.d.ts +7 -4
- package/dist/layers.js +0 -176
- package/dist/options-schema.d.ts +556 -0
- package/dist/options-schema.js +386 -0
- package/dist/packages.d.ts +17 -116
- package/dist/packages.js +35 -322
- package/dist/runtime-compat.d.ts +33 -46
- package/dist/runtime-compat.js +197 -511
- package/dist/runtime.d.ts +42 -8
- package/dist/sandbox.d.ts +112 -0
- package/dist/sandbox.js +264 -0
- package/dist/session-api.d.ts +180 -0
- package/dist/session-api.js +1 -0
- package/dist/sidecar/agentos-protocol.d.ts +509 -20
- package/dist/sidecar/agentos-protocol.js +808 -81
- package/dist/sidecar/native-process-client.d.ts +6 -2
- package/dist/sidecar/native-process-client.js +8 -1
- package/dist/sidecar/permissions.d.ts +1 -1
- package/dist/sidecar/permissions.js +4 -4
- package/dist/sidecar/rpc-client.d.ts +100 -9
- package/dist/sidecar/rpc-client.js +445 -110
- package/dist/test/runtime.d.ts +2 -1
- package/dist/test/runtime.js +2 -1
- package/dist/test/terminal-harness.js +0 -3
- package/dist/types.d.ts +13 -7
- package/package.json +46 -35
- package/dist/agent-session-types.d.ts +0 -67
- package/dist/agents.d.ts +0 -63
- package/dist/agents.js +0 -42
- package/dist/host-tools.d.ts +0 -45
- package/dist/host-tools.js +0 -26
- package/dist/overlay-filesystem.d.ts +0 -19
- package/dist/overlay-filesystem.js +0 -645
- package/fixtures/AGENTOS_SYSTEM_PROMPT.md +0 -21
- /package/dist/{agent-session-types.js → generated/CreateVmConfig.js} +0 -0
package/dist/test/runtime.d.ts
CHANGED
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
export { type AgentOsRuntimeAdmin, getAgentOsKernel, getAgentOsRuntimeAdmin, } from "../agent-os.js";
|
|
8
8
|
export type { PermissionTier, WasmVmRuntimeOptions, } from "../runtime.js";
|
|
9
9
|
export type { DriverProcess, Kernel, KernelInterface, KernelRuntimeDriver, ProcessContext, VirtualFileSystem, } from "../runtime-compat.js";
|
|
10
|
-
export { AF_INET, AF_UNIX, allowAll,
|
|
10
|
+
export { AF_INET, AF_UNIX, allowAll, createKernel, createNodeHostNetworkAdapter, createNodeRuntime, createWasmVmRuntime, DEFAULT_FIRST_PARTY_TIERS, NodeFileSystem, SIGTERM, SOCK_DGRAM, SOCK_STREAM, WASMVM_COMMANDS, } from "../runtime-compat.js";
|
|
11
|
+
export { createInMemoryFileSystem } from "@rivet-dev/agentos-runtime-core/test-runtime";
|
|
11
12
|
export { TerminalHarness } from "./terminal-harness.js";
|
package/dist/test/runtime.js
CHANGED
|
@@ -5,5 +5,6 @@
|
|
|
5
5
|
* while the public SDK removes the raw vm.kernel escape hatch.
|
|
6
6
|
*/
|
|
7
7
|
export { getAgentOsKernel, getAgentOsRuntimeAdmin, } from "../agent-os.js";
|
|
8
|
-
export { AF_INET, AF_UNIX, allowAll,
|
|
8
|
+
export { AF_INET, AF_UNIX, allowAll, createKernel, createNodeHostNetworkAdapter, createNodeRuntime, createWasmVmRuntime, DEFAULT_FIRST_PARTY_TIERS, NodeFileSystem, SIGTERM, SOCK_DGRAM, SOCK_STREAM, WASMVM_COMMANDS, } from "../runtime-compat.js";
|
|
9
|
+
export { createInMemoryFileSystem } from "@rivet-dev/agentos-runtime-core/test-runtime";
|
|
9
10
|
export { TerminalHarness } from "./terminal-harness.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export type
|
|
3
|
-
|
|
1
|
+
export type { AgentOsCreateSidecarOptions, AgentOsLimits, AgentOsOptions, AgentOsSharedSidecarOptions, AgentOsSidecarConfig, AgentOsSidecarDescription, AgentExitEvent, AgentExitHandler, AgentRestartOutcome, AgentStderrEvent, AgentStderrHandler, AgentRegistryEntry, BatchReadResult, BatchWriteEntry, BatchWriteResult, DirEntry, DynamicMountDescriptor, ExportRootFilesystemOptions, HttpRequest, HttpResponse, LimitWarning, LimitWarningHandler, MountConfig, MountInfo, MountConfigJsonObject, MountConfigJsonPrimitive, MountConfigJsonValue, NativeMountConfig, NativeMountPluginDescriptor, NativeRootFilesystemConfig, OverlayMountConfig, OverlayRootFilesystemConfig, PlainMountConfig, ProcessTreeNode, ProcessExit, ProcessOutput, ReaddirEntry, ReaddirRecursiveOptions, RootFilesystemConfig, RootLowerInput, SpawnedProcessInfo, SpawnOptions, ShellData, ShellExit, ShellOptions, } from "./agent-os.js";
|
|
2
|
+
export type * from "./session-api.js";
|
|
3
|
+
/**
|
|
4
|
+
* An agent type id — the `name` of an `/opt/agentos` agent package manifest
|
|
5
|
+
* (e.g. `"pi"`, `"claude"`). Agents are resolved by the SIDECAR from the projected
|
|
6
|
+
* package manifest (`/opt/agentos/<name>/current/agentos-package.json`); the client
|
|
7
|
+
* passes only the name, so any manifest `name` is a valid agent type.
|
|
8
|
+
*/
|
|
9
|
+
export type AgentType = string;
|
|
10
|
+
export type { CronAction, CronActionInfo, CronEvent, CronEventHandler, CronJob, CronJobInfo, CronJobOptions, ScheduleDriver, ScheduleEntry, ScheduleHandle, } from "./cron/index.js";
|
|
4
11
|
export type { HostDirBackendOptions, HostDirMountPluginConfig, NodeModulesMountConfig, } from "./host-dir-mount.js";
|
|
5
|
-
export type {
|
|
6
|
-
export type { AcpTimeoutErrorData, JsonRpcError, JsonRpcErrorData, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, UnknownSessionErrorData, } from "./json-rpc.js";
|
|
12
|
+
export type { Binding, BindingExample, Bindings } from "./bindings.js";
|
|
7
13
|
export type { FilesystemSnapshotExport, LayerHandle, LayerStore, OverlayFilesystemMode, RootSnapshotExport, SnapshotImportSource, SnapshotLayerHandle, WritableLayerHandle, } from "./layers.js";
|
|
8
|
-
export type {
|
|
14
|
+
export type { SoftwareInput, SoftwareRoot } from "./packages.js";
|
|
15
|
+
export type { AgentBlock, PackageDescriptor, PackageRef, SoftwarePackageRef, } from "./agentos-package.js";
|
|
9
16
|
export type { ChildProcessPermissions, ConnectTerminalOptions, EnvPermissions, ExecOptions, ExecResult, FsPermissionRule, FsPermissions, KernelExecOptions, KernelExecResult, KernelSpawnOptions, NetworkAccessRequest, NetworkPermissions, OpenShellOptions, PatternPermissionRule, PermissionDecision, PermissionMode, Permissions, ProcessInfo, RulePermissions, StdioChannel, TimingMitigation, VirtualDirEntry, VirtualFileSystem, VirtualStat, } from "./runtime.js";
|
|
10
|
-
export type { PromptCapabilities } from "./agent-session-types.js";
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivet-dev/agentos-core",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-main.29b0797",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
"fixtures"
|
|
9
|
+
"dist"
|
|
11
10
|
],
|
|
12
11
|
"exports": {
|
|
13
12
|
".": {
|
|
@@ -47,65 +46,77 @@
|
|
|
47
46
|
}
|
|
48
47
|
},
|
|
49
48
|
"scripts": {
|
|
50
|
-
"check-types": "pnpm run build:protocols && tsc --noEmit",
|
|
49
|
+
"check-types": "pnpm run build:protocols && tsc --noEmit && tsc -p tsconfig.type-tests.json",
|
|
51
50
|
"build": "pnpm run build:protocols && tsc",
|
|
52
51
|
"build:agentos-protocol": "node ./scripts/compile-agentos-protocol.mjs",
|
|
53
52
|
"build:protocols": "pnpm run build:agentos-protocol",
|
|
54
|
-
"test": "vitest run --reporter=verbose"
|
|
53
|
+
"test": "vitest run --exclude '**/*.nightly.test.ts' --reporter=verbose",
|
|
54
|
+
"test:pr": "vitest run tests/migration-parity.test.ts --fileParallelism=false --reporter=verbose",
|
|
55
|
+
"test:nightly": "vitest run tests/*.nightly.test.ts --reporter=verbose --passWithNoTests"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
58
|
+
"@agentclientprotocol/sdk": "0.16.1",
|
|
59
|
+
"@agentos-software/claude-code": "0.2.7",
|
|
60
|
+
"@agentos-software/codex-cli": "0.3.4",
|
|
61
|
+
"@agentos-software/common": "0.0.0-main.29b0797",
|
|
62
|
+
"@agentos-software/manifest": "0.0.0-main.29b0797",
|
|
63
|
+
"@agentos-software/opencode": "0.2.7",
|
|
64
|
+
"@agentos-software/pi": "0.2.7",
|
|
65
|
+
"@agentos-software/pi-cli": "0.2.7",
|
|
57
66
|
"@aws-sdk/client-s3": "^3.1019.0",
|
|
58
|
-
"@rivet-dev/agentos-sidecar": "0.0.0-
|
|
67
|
+
"@rivet-dev/agentos-sidecar": "0.0.0-main.29b0797",
|
|
59
68
|
"@rivetkit/bare-ts": "^0.6.2",
|
|
60
|
-
"@
|
|
69
|
+
"@rivet-dev/agentos-runtime-core": "0.0.0-main.29b0797",
|
|
61
70
|
"@xterm/headless": "^6.0.0",
|
|
62
71
|
"better-sqlite3": "^12.8.0",
|
|
63
72
|
"croner": "^10.0.1",
|
|
64
73
|
"googleapis": "^144.0.0",
|
|
65
74
|
"isolated-vm": "^6.0.0",
|
|
66
75
|
"long-timeout": "^0.1.1",
|
|
67
|
-
"minimatch": "^10.2.4"
|
|
76
|
+
"minimatch": "^10.2.4",
|
|
77
|
+
"zod": "^4.1.11",
|
|
78
|
+
"zod-to-json-schema": "^3.25.2"
|
|
68
79
|
},
|
|
69
80
|
"devDependencies": {
|
|
81
|
+
"@agentos-software/claude-code": "0.2.7",
|
|
82
|
+
"@agentos-software/codex": "0.2.7",
|
|
83
|
+
"@agentos-software/coreutils": "0.3.3",
|
|
84
|
+
"@agentos-software/curl": "0.3.3",
|
|
85
|
+
"@agentos-software/diffutils": "0.3.3",
|
|
86
|
+
"@agentos-software/duckdb": "0.3.3",
|
|
87
|
+
"@agentos-software/fd": "0.3.3",
|
|
88
|
+
"@agentos-software/file": "0.3.3",
|
|
89
|
+
"@agentos-software/findutils": "0.3.3",
|
|
90
|
+
"@agentos-software/gawk": "0.3.3",
|
|
91
|
+
"@agentos-software/git": "0.3.3",
|
|
92
|
+
"@agentos-software/grep": "0.3.3",
|
|
93
|
+
"@agentos-software/gzip": "0.3.3",
|
|
94
|
+
"@agentos-software/jq": "0.3.3",
|
|
95
|
+
"@agentos-software/opencode": "0.2.7",
|
|
96
|
+
"@agentos-software/pi": "0.2.7",
|
|
97
|
+
"@agentos-software/pi-cli": "0.2.7",
|
|
98
|
+
"@agentos-software/ripgrep": "0.3.3",
|
|
99
|
+
"@agentos-software/sed": "0.3.3",
|
|
100
|
+
"@agentos-software/tar": "0.3.3",
|
|
101
|
+
"@agentos-software/tree": "0.3.3",
|
|
102
|
+
"@agentos-software/vim": "0.3.3",
|
|
103
|
+
"@agentos-software/wget": "0.3.3",
|
|
104
|
+
"@agentos-software/yq": "0.3.3",
|
|
105
|
+
"@rivet-dev/agentos-test-harness": "0.0.0-main.29b0797",
|
|
70
106
|
"@anthropic-ai/claude-agent-sdk": "^0.2.87",
|
|
71
107
|
"@anthropic-ai/claude-code": "^2.1.86",
|
|
108
|
+
"@bare-ts/tools": "0.15.0",
|
|
72
109
|
"@browserbasehq/browse-cli": "0.5.0",
|
|
73
110
|
"@browserbasehq/cli": "0.5.4",
|
|
74
111
|
"@browserbasehq/sdk": "2.10.0",
|
|
75
|
-
"@bare-ts/tools": "0.15.0",
|
|
76
112
|
"@copilotkit/llmock": "^1.6.0",
|
|
77
|
-
"@rivet-dev/agentos-sandbox": "link:../agentos-sandbox",
|
|
78
|
-
"@agentos-software/git": "0.3.0-rc.2",
|
|
79
|
-
"@secure-exec/google-drive": "0.3.0",
|
|
80
|
-
"@secure-exec/s3": "0.3.0",
|
|
81
113
|
"@mariozechner/pi-coding-agent": "^0.60.0",
|
|
82
|
-
"@rivet-dev/agentos-claude": "link:../../registry/agent/claude",
|
|
83
|
-
"@agentos-software/codex": "0.3.0-rc.2",
|
|
84
|
-
"@rivet-dev/agentos-codex-agent": "link:../../registry/agent/codex",
|
|
85
|
-
"@agentos-software/coreutils": "0.3.0-rc.2",
|
|
86
|
-
"@agentos-software/curl": "0.3.0-rc.2",
|
|
87
|
-
"@agentos-software/diffutils": "0.3.0-rc.2",
|
|
88
|
-
"@agentos-software/fd": "0.3.0-rc.2",
|
|
89
|
-
"@agentos-software/file": "0.3.0-rc.2",
|
|
90
|
-
"@agentos-software/findutils": "0.3.0-rc.2",
|
|
91
|
-
"@agentos-software/gawk": "0.3.0-rc.2",
|
|
92
|
-
"@agentos-software/grep": "0.3.0-rc.2",
|
|
93
|
-
"@agentos-software/gzip": "0.3.0-rc.2",
|
|
94
|
-
"@agentos-software/jq": "0.3.0-rc.2",
|
|
95
|
-
"@rivet-dev/agentos-opencode": "link:../../registry/agent/opencode",
|
|
96
|
-
"@rivet-dev/agentos-pi": "link:../../registry/agent/pi",
|
|
97
|
-
"@rivet-dev/agentos-pi-cli": "link:../../registry/agent/pi-cli",
|
|
98
|
-
"@agentos-software/ripgrep": "0.3.0-rc.2",
|
|
99
|
-
"@agentos-software/sed": "0.3.0-rc.2",
|
|
100
|
-
"@agentos-software/tar": "0.3.0-rc.2",
|
|
101
|
-
"@agentos-software/tree": "0.3.0-rc.2",
|
|
102
|
-
"@agentos-software/yq": "0.3.0-rc.2",
|
|
103
114
|
"@types/node": "^22.10.2",
|
|
104
115
|
"pi-acp": "^0.0.23",
|
|
105
116
|
"sandbox-agent": "^0.4.2",
|
|
106
117
|
"typescript": "^5.7.2",
|
|
107
118
|
"vitest": "^2.1.8",
|
|
108
119
|
"ws": "^8.18.0",
|
|
109
|
-
"
|
|
120
|
+
"zod3": "npm:zod@^3.25.76"
|
|
110
121
|
}
|
|
111
122
|
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { JsonRpcNotification } from "./json-rpc.js";
|
|
2
|
-
export type SessionEventHandler = (event: JsonRpcNotification) => void;
|
|
3
|
-
export interface PermissionRequest {
|
|
4
|
-
permissionId: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
params: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
export type PermissionReply = "once" | "always" | "reject";
|
|
9
|
-
export type PermissionRequestHandler = (request: PermissionRequest) => void;
|
|
10
|
-
export interface SessionMode {
|
|
11
|
-
id: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
label?: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}
|
|
17
|
-
export interface SessionModeState {
|
|
18
|
-
currentModeId: string;
|
|
19
|
-
availableModes: SessionMode[];
|
|
20
|
-
}
|
|
21
|
-
export interface SessionConfigOption {
|
|
22
|
-
id: string;
|
|
23
|
-
category?: string;
|
|
24
|
-
label?: string;
|
|
25
|
-
description?: string;
|
|
26
|
-
currentValue?: string;
|
|
27
|
-
allowedValues?: Array<{
|
|
28
|
-
id: string;
|
|
29
|
-
label?: string;
|
|
30
|
-
}>;
|
|
31
|
-
readOnly?: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface PromptCapabilities {
|
|
34
|
-
audio?: boolean;
|
|
35
|
-
embeddedContext?: boolean;
|
|
36
|
-
image?: boolean;
|
|
37
|
-
[key: string]: unknown;
|
|
38
|
-
}
|
|
39
|
-
export interface AgentCapabilities {
|
|
40
|
-
permissions?: boolean;
|
|
41
|
-
plan_mode?: boolean;
|
|
42
|
-
questions?: boolean;
|
|
43
|
-
tool_calls?: boolean;
|
|
44
|
-
text_messages?: boolean;
|
|
45
|
-
images?: boolean;
|
|
46
|
-
file_attachments?: boolean;
|
|
47
|
-
session_lifecycle?: boolean;
|
|
48
|
-
error_events?: boolean;
|
|
49
|
-
reasoning?: boolean;
|
|
50
|
-
status?: boolean;
|
|
51
|
-
streaming_deltas?: boolean;
|
|
52
|
-
mcp_tools?: boolean;
|
|
53
|
-
promptCapabilities?: PromptCapabilities;
|
|
54
|
-
[key: string]: unknown;
|
|
55
|
-
}
|
|
56
|
-
export interface AgentInfo {
|
|
57
|
-
name: string;
|
|
58
|
-
title?: string;
|
|
59
|
-
version?: string;
|
|
60
|
-
[key: string]: unknown;
|
|
61
|
-
}
|
|
62
|
-
export interface SessionInitData {
|
|
63
|
-
modes?: SessionModeState;
|
|
64
|
-
configOptions?: SessionConfigOption[];
|
|
65
|
-
capabilities?: AgentCapabilities;
|
|
66
|
-
agentInfo?: AgentInfo;
|
|
67
|
-
}
|
package/dist/agents.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export interface AgentConfig {
|
|
2
|
-
/** npm package name for the ACP adapter (spawned inside the VM) */
|
|
3
|
-
acpAdapter: string;
|
|
4
|
-
/** npm package name for the underlying agent */
|
|
5
|
-
agentPackage: string;
|
|
6
|
-
/**
|
|
7
|
-
* Absolute host path to the software package directory that registered this
|
|
8
|
-
* agent config. Package-provided agent adapters should resolve their nested
|
|
9
|
-
* dependencies relative to this directory before falling back to the host dir
|
|
10
|
-
* behind the caller-supplied `/root/node_modules` mount.
|
|
11
|
-
*/
|
|
12
|
-
declaringPackageDir?: string;
|
|
13
|
-
/** Additional CLI args prepended when launching the ACP adapter. */
|
|
14
|
-
launchArgs?: string[];
|
|
15
|
-
/**
|
|
16
|
-
* Default env vars to pass when spawning the adapter. These are merged
|
|
17
|
-
* UNDER user env (lowest priority).
|
|
18
|
-
* Typically set by package descriptors for computed paths (e.g. PI_ACP_PI_COMMAND).
|
|
19
|
-
*/
|
|
20
|
-
defaultEnv?: Record<string, string>;
|
|
21
|
-
}
|
|
22
|
-
export declare const AGENT_CONFIGS: {
|
|
23
|
-
pi: {
|
|
24
|
-
acpAdapter: string;
|
|
25
|
-
agentPackage: string;
|
|
26
|
-
};
|
|
27
|
-
"pi-cli": {
|
|
28
|
-
acpAdapter: string;
|
|
29
|
-
agentPackage: string;
|
|
30
|
-
};
|
|
31
|
-
opencode: {
|
|
32
|
-
acpAdapter: string;
|
|
33
|
-
agentPackage: string;
|
|
34
|
-
defaultEnv: {
|
|
35
|
-
OPENCODE_DISABLE_CONFIG_DEP_INSTALL: string;
|
|
36
|
-
OPENCODE_DISABLE_EMBEDDED_WEB_UI: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
claude: {
|
|
40
|
-
acpAdapter: string;
|
|
41
|
-
agentPackage: string;
|
|
42
|
-
defaultEnv: {
|
|
43
|
-
CLAUDE_AGENT_SDK_CLIENT_APP: string;
|
|
44
|
-
CLAUDE_CODE_SIMPLE: string;
|
|
45
|
-
CLAUDE_CODE_FORCE_AGENT_OS_RIPGREP: string;
|
|
46
|
-
CLAUDE_CODE_DEFER_GROWTHBOOK_INIT: string;
|
|
47
|
-
CLAUDE_CODE_DISABLE_CWD_PERSIST: string;
|
|
48
|
-
CLAUDE_CODE_DISABLE_DEV_NULL_REDIRECT: string;
|
|
49
|
-
CLAUDE_CODE_NODE_SHELL_WRAPPER: string;
|
|
50
|
-
CLAUDE_CODE_DISABLE_STREAM_JSON_HOOK_EVENTS: string;
|
|
51
|
-
CLAUDE_CODE_SHELL: string;
|
|
52
|
-
CLAUDE_CODE_SKIP_INITIAL_MESSAGES: string;
|
|
53
|
-
CLAUDE_CODE_SKIP_SANDBOX_INIT: string;
|
|
54
|
-
CLAUDE_CODE_SIMPLE_SHELL_EXEC: string;
|
|
55
|
-
CLAUDE_CODE_SWAP_STDIO: string;
|
|
56
|
-
CLAUDE_CODE_USE_PIPE_OUTPUT: string;
|
|
57
|
-
DISABLE_TELEMETRY: string;
|
|
58
|
-
SHELL: string;
|
|
59
|
-
USE_BUILTIN_RIPGREP: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export type AgentType = keyof typeof AGENT_CONFIGS;
|
package/dist/agents.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Agent configurations for ACP-compatible coding agents
|
|
2
|
-
export const AGENT_CONFIGS = {
|
|
3
|
-
pi: {
|
|
4
|
-
acpAdapter: "@rivet-dev/agentos-pi",
|
|
5
|
-
agentPackage: "@mariozechner/pi-coding-agent",
|
|
6
|
-
},
|
|
7
|
-
"pi-cli": {
|
|
8
|
-
acpAdapter: "pi-acp",
|
|
9
|
-
agentPackage: "@mariozechner/pi-coding-agent",
|
|
10
|
-
},
|
|
11
|
-
opencode: {
|
|
12
|
-
acpAdapter: "@rivet-dev/agentos-opencode",
|
|
13
|
-
agentPackage: "@rivet-dev/agentos-opencode",
|
|
14
|
-
defaultEnv: {
|
|
15
|
-
OPENCODE_DISABLE_CONFIG_DEP_INSTALL: "1",
|
|
16
|
-
OPENCODE_DISABLE_EMBEDDED_WEB_UI: "1",
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
claude: {
|
|
20
|
-
acpAdapter: "@rivet-dev/agentos-claude",
|
|
21
|
-
agentPackage: "@anthropic-ai/claude-agent-sdk",
|
|
22
|
-
defaultEnv: {
|
|
23
|
-
CLAUDE_AGENT_SDK_CLIENT_APP: "@rivet-dev/agentos",
|
|
24
|
-
CLAUDE_CODE_SIMPLE: "1",
|
|
25
|
-
CLAUDE_CODE_FORCE_AGENT_OS_RIPGREP: "1",
|
|
26
|
-
CLAUDE_CODE_DEFER_GROWTHBOOK_INIT: "1",
|
|
27
|
-
CLAUDE_CODE_DISABLE_CWD_PERSIST: "1",
|
|
28
|
-
CLAUDE_CODE_DISABLE_DEV_NULL_REDIRECT: "1",
|
|
29
|
-
CLAUDE_CODE_NODE_SHELL_WRAPPER: "1",
|
|
30
|
-
CLAUDE_CODE_DISABLE_STREAM_JSON_HOOK_EVENTS: "1",
|
|
31
|
-
CLAUDE_CODE_SHELL: "/bin/sh",
|
|
32
|
-
CLAUDE_CODE_SKIP_INITIAL_MESSAGES: "1",
|
|
33
|
-
CLAUDE_CODE_SKIP_SANDBOX_INIT: "1",
|
|
34
|
-
CLAUDE_CODE_SIMPLE_SHELL_EXEC: "1",
|
|
35
|
-
CLAUDE_CODE_SWAP_STDIO: "0",
|
|
36
|
-
CLAUDE_CODE_USE_PIPE_OUTPUT: "1",
|
|
37
|
-
DISABLE_TELEMETRY: "1",
|
|
38
|
-
SHELL: "/bin/sh",
|
|
39
|
-
USE_BUILTIN_RIPGREP: "0",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
};
|
package/dist/host-tools.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ZodType } from "zod";
|
|
2
|
-
/** Maximum length for tool and toolkit descriptions (characters). */
|
|
3
|
-
export declare const MAX_TOOL_DESCRIPTION_LENGTH = 200;
|
|
4
|
-
/**
|
|
5
|
-
* A single tool that executes on the host.
|
|
6
|
-
* Mirrors the shape of AI SDK's tool() but with host-execution semantics.
|
|
7
|
-
*/
|
|
8
|
-
export interface HostTool<INPUT = any, OUTPUT = any> {
|
|
9
|
-
/** Description shown to the agent in --help and prompt docs. Max 200 characters. */
|
|
10
|
-
description: string;
|
|
11
|
-
/** Zod schema for the input. Drives CLI flag generation and validation. */
|
|
12
|
-
inputSchema: ZodType<INPUT>;
|
|
13
|
-
/** Runs on the host when the agent invokes the tool. */
|
|
14
|
-
execute: (input: INPUT) => Promise<OUTPUT> | OUTPUT;
|
|
15
|
-
/** Examples included in auto-generated prompt docs. */
|
|
16
|
-
examples?: ToolExample<INPUT>[];
|
|
17
|
-
/** Timeout in ms. Default: 30000. */
|
|
18
|
-
timeout?: number;
|
|
19
|
-
}
|
|
20
|
-
export interface ToolExample<INPUT = any> {
|
|
21
|
-
/** Human description of what this example does. */
|
|
22
|
-
description: string;
|
|
23
|
-
/** The input args for the example. */
|
|
24
|
-
input: INPUT;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* A named group of tools. Becomes a CLI binary: agentos-{name}.
|
|
28
|
-
*/
|
|
29
|
-
export interface ToolKit {
|
|
30
|
-
/** Toolkit name. Must be lowercase alphanumeric + hyphens. Becomes the CLI suffix: agentos-{name}. */
|
|
31
|
-
name: string;
|
|
32
|
-
/** Description shown in `agentos list-tools` and prompt docs. */
|
|
33
|
-
description: string;
|
|
34
|
-
/** The tools in this toolkit. Keys become subcommands. */
|
|
35
|
-
tools: Record<string, HostTool>;
|
|
36
|
-
}
|
|
37
|
-
/** Helper to create a HostTool with type inference. */
|
|
38
|
-
export declare function hostTool<INPUT, OUTPUT>(def: HostTool<INPUT, OUTPUT>): HostTool<INPUT, OUTPUT>;
|
|
39
|
-
/** Helper to create a ToolKit. */
|
|
40
|
-
export declare function toolKit(def: ToolKit): ToolKit;
|
|
41
|
-
/**
|
|
42
|
-
* Validate all description lengths in the given toolkits.
|
|
43
|
-
* Throws if any toolkit or tool description exceeds MAX_TOOL_DESCRIPTION_LENGTH.
|
|
44
|
-
*/
|
|
45
|
-
export declare function validateToolkits(toolKits: ToolKit[]): void;
|
package/dist/host-tools.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** Maximum length for tool and toolkit descriptions (characters). */
|
|
2
|
-
export const MAX_TOOL_DESCRIPTION_LENGTH = 200;
|
|
3
|
-
/** Helper to create a HostTool with type inference. */
|
|
4
|
-
export function hostTool(def) {
|
|
5
|
-
return def;
|
|
6
|
-
}
|
|
7
|
-
/** Helper to create a ToolKit. */
|
|
8
|
-
export function toolKit(def) {
|
|
9
|
-
return def;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Validate all description lengths in the given toolkits.
|
|
13
|
-
* Throws if any toolkit or tool description exceeds MAX_TOOL_DESCRIPTION_LENGTH.
|
|
14
|
-
*/
|
|
15
|
-
export function validateToolkits(toolKits) {
|
|
16
|
-
for (const tk of toolKits) {
|
|
17
|
-
if (tk.description.length > MAX_TOOL_DESCRIPTION_LENGTH) {
|
|
18
|
-
throw new Error(`Toolkit "${tk.name}" description is ${tk.description.length} characters, max is ${MAX_TOOL_DESCRIPTION_LENGTH}`);
|
|
19
|
-
}
|
|
20
|
-
for (const [toolName, tool] of Object.entries(tk.tools)) {
|
|
21
|
-
if (tool.description.length > MAX_TOOL_DESCRIPTION_LENGTH) {
|
|
22
|
-
throw new Error(`Tool "${tk.name}/${toolName}" description is ${tool.description.length} characters, max is ${MAX_TOOL_DESCRIPTION_LENGTH}`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Overlay (copy-on-write) filesystem backend.
|
|
3
|
-
*
|
|
4
|
-
* Layers an optional writable upper filesystem over zero or more lower
|
|
5
|
-
* filesystems. Reads resolve from highest precedence to lowest. Writes
|
|
6
|
-
* go to the writable upper only, with copy-up and whiteout behavior.
|
|
7
|
-
*/
|
|
8
|
-
import { type VirtualFileSystem } from "./runtime-compat.js";
|
|
9
|
-
export interface OverlayBackendOptions {
|
|
10
|
-
/** Legacy single lower layer. */
|
|
11
|
-
lower?: VirtualFileSystem;
|
|
12
|
-
/** Lower layers ordered highest-precedence first. */
|
|
13
|
-
lowers?: VirtualFileSystem[];
|
|
14
|
-
/** Writable upper layer. Defaults to a fresh in-memory filesystem in ephemeral mode. */
|
|
15
|
-
upper?: VirtualFileSystem;
|
|
16
|
-
/** Overlay mode. Defaults to ephemeral. */
|
|
17
|
-
mode?: "ephemeral" | "read-only";
|
|
18
|
-
}
|
|
19
|
-
export declare function createOverlayBackend(options: OverlayBackendOptions): VirtualFileSystem;
|