rivetkit 2.3.27 → 2.3.29
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/browser/client.js +2 -5
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +2 -5
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/agent-os/index.cjs +3 -2652
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +1 -2717
- package/dist/tsup/agent-os/index.d.ts +1 -2717
- package/dist/tsup/agent-os/index.js +3 -2652
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-WU6DYFFQ.cjs → chunk-56QW6V7F.cjs} +3 -3
- package/dist/tsup/{chunk-WU6DYFFQ.cjs.map → chunk-56QW6V7F.cjs.map} +1 -1
- package/dist/tsup/{chunk-NRYPHQWQ.js → chunk-7TRYBX2R.js} +4 -4
- package/dist/tsup/{chunk-36WJAWHE.cjs → chunk-CRBPB6QI.cjs} +7 -7
- package/dist/tsup/{chunk-36WJAWHE.cjs.map → chunk-CRBPB6QI.cjs.map} +1 -1
- package/dist/tsup/{chunk-UR6UKRJW.cjs → chunk-DTGPF6XY.cjs} +3 -6
- package/dist/tsup/chunk-DTGPF6XY.cjs.map +1 -0
- package/dist/tsup/{chunk-SREEDRMF.js → chunk-IXJCAFAQ.js} +2 -2
- package/dist/tsup/{chunk-PIRTTV4D.js → chunk-JMUNIWKG.js} +2 -2
- package/dist/tsup/{chunk-DIIXK2AW.js → chunk-K7QBHEVI.js} +3 -3
- package/dist/tsup/chunk-K7QBHEVI.js.map +1 -0
- package/dist/tsup/{chunk-6JIDCRGT.cjs → chunk-NK4D6G45.cjs} +4 -4
- package/dist/tsup/{chunk-6JIDCRGT.cjs.map → chunk-NK4D6G45.cjs.map} +1 -1
- package/dist/tsup/{chunk-NEECPYAK.cjs → chunk-Q6GKUC22.cjs} +3 -3
- package/dist/tsup/{chunk-NEECPYAK.cjs.map → chunk-Q6GKUC22.cjs.map} +1 -1
- package/dist/tsup/{chunk-2WAICEBJ.cjs → chunk-RDBXO2ND.cjs} +3 -3
- package/dist/tsup/{chunk-2WAICEBJ.cjs.map → chunk-RDBXO2ND.cjs.map} +1 -1
- package/dist/tsup/{chunk-V43A2WB2.js → chunk-RY6Z4RA5.js} +2 -2
- package/dist/tsup/{chunk-M763VP2Z.js → chunk-SNFXCNXD.js} +3 -3
- package/dist/tsup/{chunk-ISPGIGCR.js → chunk-U3KY2OGG.js} +2 -2
- package/dist/tsup/{chunk-TCZ2DONE.js → chunk-WHA3XM3R.js} +3 -6
- package/dist/tsup/chunk-WHA3XM3R.js.map +1 -0
- package/dist/tsup/{chunk-AGGXTWDS.cjs → chunk-WHAUEDUT.cjs} +10 -10
- package/dist/tsup/{chunk-AGGXTWDS.cjs.map → chunk-WHAUEDUT.cjs.map} +1 -1
- package/dist/tsup/{chunk-HD5Y64WY.cjs → chunk-WSSI5L6L.cjs} +140 -140
- package/dist/tsup/chunk-WSSI5L6L.cjs.map +1 -0
- package/dist/tsup/client/mod.cjs +5 -5
- package/dist/tsup/client/mod.js +4 -4
- package/dist/tsup/common/log.cjs +2 -2
- package/dist/tsup/common/log.js +1 -1
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/db/drizzle.cjs +2 -2
- package/dist/tsup/db/drizzle.js +1 -1
- package/dist/tsup/db/mod.cjs +3 -3
- package/dist/tsup/db/mod.js +2 -2
- package/dist/tsup/inspector/mod.cjs +5 -5
- package/dist/tsup/inspector/mod.js +4 -4
- package/dist/tsup/inspector/workflow.cjs +4 -4
- package/dist/tsup/inspector/workflow.js +3 -3
- package/dist/tsup/mod.cjs +84 -84
- package/dist/tsup/mod.js +5 -5
- package/dist/tsup/test/mod.cjs +6 -6
- package/dist/tsup/test/mod.js +4 -4
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +7 -7
- package/dist/tsup/workflow/mod.js +4 -4
- package/package.json +10 -13
- package/src/agent-os/index.ts +5 -65
- package/src/client/actor-handle.ts +3 -1
- package/src/client/client.ts +8 -4
- package/dist/tsup/chunk-DIIXK2AW.js.map +0 -1
- package/dist/tsup/chunk-HD5Y64WY.cjs.map +0 -1
- package/dist/tsup/chunk-TCZ2DONE.js.map +0 -1
- package/dist/tsup/chunk-UR6UKRJW.cjs.map +0 -1
- package/src/agent-os/actor/cron.ts +0 -84
- package/src/agent-os/actor/db.ts +0 -54
- package/src/agent-os/actor/filesystem.ts +0 -131
- package/src/agent-os/actor/index.ts +0 -285
- package/src/agent-os/actor/network.ts +0 -58
- package/src/agent-os/actor/preview.ts +0 -190
- package/src/agent-os/actor/process.ts +0 -177
- package/src/agent-os/actor/session.ts +0 -518
- package/src/agent-os/actor/shell.ts +0 -60
- package/src/agent-os/config.ts +0 -79
- package/src/agent-os/fs/database-vfs.ts +0 -624
- package/src/agent-os/types.ts +0 -148
- /package/dist/tsup/{chunk-NRYPHQWQ.js.map → chunk-7TRYBX2R.js.map} +0 -0
- /package/dist/tsup/{chunk-SREEDRMF.js.map → chunk-IXJCAFAQ.js.map} +0 -0
- /package/dist/tsup/{chunk-PIRTTV4D.js.map → chunk-JMUNIWKG.js.map} +0 -0
- /package/dist/tsup/{chunk-V43A2WB2.js.map → chunk-RY6Z4RA5.js.map} +0 -0
- /package/dist/tsup/{chunk-M763VP2Z.js.map → chunk-SNFXCNXD.js.map} +0 -0
- /package/dist/tsup/{chunk-ISPGIGCR.js.map → chunk-U3KY2OGG.js.map} +0 -0
package/src/agent-os/types.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AgentCapabilities,
|
|
3
|
-
AgentInfo,
|
|
4
|
-
AgentOs,
|
|
5
|
-
CronEvent,
|
|
6
|
-
JsonRpcNotification,
|
|
7
|
-
JsonRpcResponse,
|
|
8
|
-
PermissionRequest,
|
|
9
|
-
} from "@rivet-dev/agent-os-core";
|
|
10
|
-
import type { ActionContext } from "@/actor/config";
|
|
11
|
-
|
|
12
|
-
// --- Actor state (persisted across sleep/wake) ---
|
|
13
|
-
|
|
14
|
-
// biome-ignore lint/complexity/noBannedTypes: empty state placeholder, consumers extend via generics
|
|
15
|
-
export type AgentOsActorState = {};
|
|
16
|
-
|
|
17
|
-
// --- Actor vars (ephemeral, recreated on wake) ---
|
|
18
|
-
|
|
19
|
-
export interface AgentOsActorVars {
|
|
20
|
-
agentOs: AgentOs | null;
|
|
21
|
-
activeSessionIds: Set<string>;
|
|
22
|
-
activeProcesses: Set<number>;
|
|
23
|
-
activeHooks: Set<Promise<void>>;
|
|
24
|
-
activeShells: Set<string>;
|
|
25
|
-
sessions: Set<string>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// --- Event payloads ---
|
|
29
|
-
|
|
30
|
-
export interface SessionEventPayload {
|
|
31
|
-
sessionId: string;
|
|
32
|
-
event: JsonRpcNotification;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface PermissionRequestPayload {
|
|
36
|
-
sessionId: string;
|
|
37
|
-
request: PermissionRequest;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type VmBootedPayload = Record<string, never>;
|
|
41
|
-
|
|
42
|
-
export interface VmShutdownPayload {
|
|
43
|
-
reason: "sleep" | "destroy" | "error";
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface ProcessOutputPayload {
|
|
47
|
-
pid: number;
|
|
48
|
-
stream: "stdout" | "stderr";
|
|
49
|
-
data: Uint8Array;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface ProcessExitPayload {
|
|
53
|
-
pid: number;
|
|
54
|
-
exitCode: number;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface ShellDataPayload {
|
|
58
|
-
shellId: string;
|
|
59
|
-
data: Uint8Array;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface CronEventPayload {
|
|
63
|
-
event: CronEvent;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// --- Event schema map (used by actor() events config) ---
|
|
67
|
-
|
|
68
|
-
export interface AgentOsEvents {
|
|
69
|
-
sessionEvent: SessionEventPayload;
|
|
70
|
-
permissionRequest: PermissionRequestPayload;
|
|
71
|
-
vmBooted: VmBootedPayload;
|
|
72
|
-
vmShutdown: VmShutdownPayload;
|
|
73
|
-
processOutput: ProcessOutputPayload;
|
|
74
|
-
processExit: ProcessExitPayload;
|
|
75
|
-
shellData: ShellDataPayload;
|
|
76
|
-
cronEvent: CronEventPayload;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// --- Prompt result ---
|
|
80
|
-
|
|
81
|
-
/** Result from sendPrompt. */
|
|
82
|
-
export interface PromptResult {
|
|
83
|
-
/** Raw JSON-RPC response from the ACP adapter. */
|
|
84
|
-
response: JsonRpcResponse;
|
|
85
|
-
/** Accumulated agent text output from streamed message chunks. */
|
|
86
|
-
text: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// --- Session serialization ---
|
|
90
|
-
|
|
91
|
-
export interface SessionRecord {
|
|
92
|
-
sessionId: string;
|
|
93
|
-
agentType: string;
|
|
94
|
-
capabilities: AgentCapabilities;
|
|
95
|
-
agentInfo: AgentInfo | null;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// --- Persisted session types ---
|
|
99
|
-
|
|
100
|
-
export interface PersistedSessionRecord {
|
|
101
|
-
sessionId: string;
|
|
102
|
-
agentType: string;
|
|
103
|
-
capabilities: AgentCapabilities;
|
|
104
|
-
agentInfo: AgentInfo | null;
|
|
105
|
-
createdAt: number;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface PersistedSessionEvent {
|
|
109
|
-
sessionId: string;
|
|
110
|
-
seq: number;
|
|
111
|
-
event: JsonRpcNotification;
|
|
112
|
-
createdAt: number;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// --- Serializable cron action (excludes callback type) ---
|
|
116
|
-
|
|
117
|
-
export type SerializableCronAction =
|
|
118
|
-
| { type: "session"; agentType: string; prompt: string; cwd?: string }
|
|
119
|
-
| { type: "exec"; command: string; args?: string[] };
|
|
120
|
-
|
|
121
|
-
export interface SerializableCronJobOptions {
|
|
122
|
-
id?: string;
|
|
123
|
-
schedule: string;
|
|
124
|
-
action: SerializableCronAction;
|
|
125
|
-
overlap?: "allow" | "skip" | "queue";
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface SerializableCronJobInfo {
|
|
129
|
-
id: string;
|
|
130
|
-
schedule: string;
|
|
131
|
-
action: SerializableCronAction;
|
|
132
|
-
overlap: "allow" | "skip" | "queue";
|
|
133
|
-
lastRun?: string;
|
|
134
|
-
nextRun?: string;
|
|
135
|
-
runCount: number;
|
|
136
|
-
running: boolean;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// --- Action context alias ---
|
|
140
|
-
|
|
141
|
-
export type AgentOsActionContext<TConnParams = undefined> = ActionContext<
|
|
142
|
-
AgentOsActorState,
|
|
143
|
-
TConnParams,
|
|
144
|
-
undefined,
|
|
145
|
-
AgentOsActorVars,
|
|
146
|
-
undefined,
|
|
147
|
-
any
|
|
148
|
-
>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|