rivetkit 2.3.27 → 2.3.28
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 +1 -4
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.js +1 -4
- 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-DIIXK2AW.js → chunk-3EYXDC64.js} +6 -6
- package/dist/tsup/chunk-3EYXDC64.js.map +1 -0
- package/dist/tsup/{chunk-HD5Y64WY.cjs → chunk-3X3QZVH6.cjs} +141 -141
- package/dist/tsup/chunk-3X3QZVH6.cjs.map +1 -0
- package/dist/tsup/{chunk-36WJAWHE.cjs → chunk-4LMR7FES.cjs} +7 -7
- package/dist/tsup/{chunk-36WJAWHE.cjs.map → chunk-4LMR7FES.cjs.map} +1 -1
- package/dist/tsup/{chunk-NEECPYAK.cjs → chunk-67PPGBOA.cjs} +3 -3
- package/dist/tsup/{chunk-NEECPYAK.cjs.map → chunk-67PPGBOA.cjs.map} +1 -1
- package/dist/tsup/{chunk-2WAICEBJ.cjs → chunk-DRG3YQ42.cjs} +3 -3
- package/dist/tsup/{chunk-2WAICEBJ.cjs.map → chunk-DRG3YQ42.cjs.map} +1 -1
- package/dist/tsup/{chunk-UR6UKRJW.cjs → chunk-FHZZ6PLK.cjs} +2 -5
- package/dist/tsup/chunk-FHZZ6PLK.cjs.map +1 -0
- package/dist/tsup/{chunk-NRYPHQWQ.js → chunk-IKMLO5KS.js} +4 -4
- package/dist/tsup/{chunk-M763VP2Z.js → chunk-KJBV7M2J.js} +3 -3
- package/dist/tsup/{chunk-PIRTTV4D.js → chunk-QLIVFNLT.js} +2 -2
- package/dist/tsup/{chunk-WU6DYFFQ.cjs → chunk-S5EZP52Q.cjs} +3 -3
- package/dist/tsup/{chunk-WU6DYFFQ.cjs.map → chunk-S5EZP52Q.cjs.map} +1 -1
- package/dist/tsup/{chunk-6JIDCRGT.cjs → chunk-SRRUW63T.cjs} +4 -4
- package/dist/tsup/{chunk-6JIDCRGT.cjs.map → chunk-SRRUW63T.cjs.map} +1 -1
- package/dist/tsup/{chunk-SREEDRMF.js → chunk-SWESH3VP.js} +2 -2
- package/dist/tsup/{chunk-ISPGIGCR.js → chunk-UEQ5NN24.js} +2 -2
- package/dist/tsup/{chunk-TCZ2DONE.js → chunk-WB3BJJWJ.js} +2 -5
- package/dist/tsup/chunk-WB3BJJWJ.js.map +1 -0
- package/dist/tsup/{chunk-AGGXTWDS.cjs → chunk-XQIPFU3I.cjs} +10 -10
- package/dist/tsup/{chunk-AGGXTWDS.cjs.map → chunk-XQIPFU3I.cjs.map} +1 -1
- package/dist/tsup/{chunk-V43A2WB2.js → chunk-XQVCT3CM.js} +2 -2
- 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.cjs.map +1 -1
- 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 +9 -12
- 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-IKMLO5KS.js.map} +0 -0
- /package/dist/tsup/{chunk-M763VP2Z.js.map → chunk-KJBV7M2J.js.map} +0 -0
- /package/dist/tsup/{chunk-PIRTTV4D.js.map → chunk-QLIVFNLT.js.map} +0 -0
- /package/dist/tsup/{chunk-SREEDRMF.js.map → chunk-SWESH3VP.js.map} +0 -0
- /package/dist/tsup/{chunk-ISPGIGCR.js.map → chunk-UEQ5NN24.js.map} +0 -0
- /package/dist/tsup/{chunk-V43A2WB2.js.map → chunk-XQVCT3CM.js.map} +0 -0
package/dist/tsup/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decodeWorkflowHistoryTransport
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QLIVFNLT.js";
|
|
4
4
|
import {
|
|
5
5
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
6
6
|
ActorConfigSchema,
|
|
@@ -35,18 +35,18 @@ import {
|
|
|
35
35
|
runWithActorInvocationSpan,
|
|
36
36
|
tryParseEndpoint,
|
|
37
37
|
updateRunnerConfig
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-3EYXDC64.js";
|
|
39
39
|
import {
|
|
40
40
|
makePrefixedKey,
|
|
41
41
|
removePrefixFromKey
|
|
42
42
|
} from "./chunk-JI6GZ2C2.js";
|
|
43
|
-
import "./chunk-SREEDRMF.js";
|
|
44
43
|
import {
|
|
45
44
|
bindNativeStateTransactionContext,
|
|
46
45
|
db,
|
|
47
46
|
registerNativeStateTransactionOpener
|
|
48
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-XQVCT3CM.js";
|
|
49
48
|
import "./chunk-JTHHCZCZ.js";
|
|
49
|
+
import "./chunk-SWESH3VP.js";
|
|
50
50
|
import {
|
|
51
51
|
LogLevelSchema,
|
|
52
52
|
VERSION,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
parsePortEnv,
|
|
81
81
|
stringifyError,
|
|
82
82
|
toUint8Array
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-WB3BJJWJ.js";
|
|
84
84
|
import {
|
|
85
85
|
INTERNAL_ERROR_CODE,
|
|
86
86
|
RivetError,
|
package/dist/tsup/test/mod.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4LMR7FEScjs = require('../chunk-4LMR7FES.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3X3QZVH6cjs = require('../chunk-3X3QZVH6.cjs');
|
|
7
7
|
require('../chunk-MYWZCDML.cjs');
|
|
8
|
-
require('../chunk-NEECPYAK.cjs');
|
|
9
8
|
require('../chunk-KVFIONKQ.cjs');
|
|
10
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-67PPGBOA.cjs');
|
|
10
|
+
require('../chunk-FHZZ6PLK.cjs');
|
|
11
11
|
require('../chunk-MGI2VVF6.cjs');
|
|
12
12
|
|
|
13
13
|
// src/test/ready.ts
|
|
@@ -36,8 +36,8 @@ async function setupTest(c, registry) {
|
|
|
36
36
|
registry.config.noWelcome = true;
|
|
37
37
|
registry.start();
|
|
38
38
|
await waitForRegistryReady(registry);
|
|
39
|
-
const client =
|
|
40
|
-
...
|
|
39
|
+
const client = _chunk4LMR7FEScjs.createClient.call(void 0, {
|
|
40
|
+
..._chunk3X3QZVH6cjs.convertRegistryConfigToClientConfig.call(void 0, registry.parseConfig()),
|
|
41
41
|
disableMetadataLookup: false
|
|
42
42
|
});
|
|
43
43
|
c.onTestFinished(async () => {
|
package/dist/tsup/test/mod.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KJBV7M2J.js";
|
|
4
4
|
import {
|
|
5
5
|
convertRegistryConfigToClientConfig
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-3EYXDC64.js";
|
|
7
7
|
import "../chunk-JI6GZ2C2.js";
|
|
8
|
-
import "../chunk-SREEDRMF.js";
|
|
9
8
|
import "../chunk-JTHHCZCZ.js";
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-SWESH3VP.js";
|
|
10
|
+
import "../chunk-WB3BJJWJ.js";
|
|
11
11
|
import "../chunk-ZOVJDAOW.js";
|
|
12
12
|
|
|
13
13
|
// src/test/ready.ts
|
package/dist/tsup/utils.cjs
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkFHZZ6PLKcjs = require('./chunk-FHZZ6PLK.cjs');
|
|
23
23
|
require('./chunk-MGI2VVF6.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
@@ -42,5 +42,5 @@ require('./chunk-MGI2VVF6.cjs');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
exports.EXTRA_ERROR_LOG =
|
|
45
|
+
exports.EXTRA_ERROR_LOG = _chunkFHZZ6PLKcjs.EXTRA_ERROR_LOG; exports.SinglePromiseQueue = _chunkFHZZ6PLKcjs.SinglePromiseQueue; exports.VERSION = _chunkFHZZ6PLKcjs.VERSION; exports.arrayBuffersEqual = _chunkFHZZ6PLKcjs.arrayBuffersEqual; exports.assertUnreachable = _chunkFHZZ6PLKcjs.assertUnreachable; exports.bufferToArrayBuffer = _chunkFHZZ6PLKcjs.bufferToArrayBuffer; exports.combineUrlPath = _chunkFHZZ6PLKcjs.combineUrlPath; exports.dbg = _chunkFHZZ6PLKcjs.dbg; exports.detectRuntime = _chunkFHZZ6PLKcjs.detectRuntime; exports.getEnvUniversal = _chunkFHZZ6PLKcjs.getEnvUniversal; exports.httpUserAgent = _chunkFHZZ6PLKcjs.httpUserAgent; exports.interval = _chunkFHZZ6PLKcjs.interval; exports.joinSignals = _chunkFHZZ6PLKcjs.joinSignals; exports.jsonParseCompat = _chunkFHZZ6PLKcjs.jsonParseCompat; exports.jsonStringifyCompat = _chunkFHZZ6PLKcjs.jsonStringifyCompat; exports.promiseWithResolvers = _chunkFHZZ6PLKcjs.promiseWithResolvers; exports.setLongTimeout = _chunkFHZZ6PLKcjs.setLongTimeout; exports.sleep = _chunkFHZZ6PLKcjs.sleep; exports.stringifyError = _chunkFHZZ6PLKcjs.stringifyError; exports.toUint8Array = _chunkFHZZ6PLKcjs.toUint8Array;
|
|
46
46
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/tsup/utils.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } var _class; var _class2;
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkXQIPFU3Icjs = require('../chunk-XQIPFU3I.cjs');
|
|
4
|
+
require('../chunk-DRG3YQ42.cjs');
|
|
5
|
+
require('../chunk-SRRUW63T.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ var _chunkHDVZ6YZGcjs = require('../chunk-HDVZ6YZG.cjs');
|
|
|
13
13
|
var _chunkMYWZCDMLcjs = require('../chunk-MYWZCDML.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkFHZZ6PLKcjs = require('../chunk-FHZZ6PLK.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -743,7 +743,7 @@ function workflow(fn, options = {}) {
|
|
|
743
743
|
function getWorkflowInspector(actorId) {
|
|
744
744
|
let workflowInspector = workflowInspectors.get(actorId);
|
|
745
745
|
if (!workflowInspector) {
|
|
746
|
-
workflowInspector =
|
|
746
|
+
workflowInspector = _chunkXQIPFU3Icjs.createWorkflowInspectorAdapter.call(void 0, );
|
|
747
747
|
workflowInspectors.set(actorId, workflowInspector);
|
|
748
748
|
}
|
|
749
749
|
return workflowInspector;
|
|
@@ -816,13 +816,13 @@ function workflow(fn, options = {}) {
|
|
|
816
816
|
if (shouldRethrowWorkflowError(error)) {
|
|
817
817
|
runCtx.log.error({
|
|
818
818
|
msg: "workflow run failed",
|
|
819
|
-
error:
|
|
819
|
+
error: _chunkFHZZ6PLKcjs.stringifyError.call(void 0, error)
|
|
820
820
|
});
|
|
821
821
|
throw error;
|
|
822
822
|
}
|
|
823
823
|
runCtx.log.warn({
|
|
824
824
|
msg: "workflow failed and will sleep until woken",
|
|
825
|
-
error:
|
|
825
|
+
error: _chunkFHZZ6PLKcjs.stringifyError.call(void 0, error)
|
|
826
826
|
});
|
|
827
827
|
} finally {
|
|
828
828
|
runCtx.abortSignal.removeEventListener("abort", onAbort);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IKMLO5KS.js";
|
|
4
|
+
import "../chunk-UEQ5NN24.js";
|
|
5
|
+
import "../chunk-QLIVFNLT.js";
|
|
6
6
|
import {
|
|
7
7
|
ACTOR_CONTEXT_INTERNAL_SYMBOL,
|
|
8
8
|
defineRunHandler
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "../chunk-JI6GZ2C2.js";
|
|
14
14
|
import {
|
|
15
15
|
stringifyError
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-WB3BJJWJ.js";
|
|
17
17
|
import {
|
|
18
18
|
RivetError,
|
|
19
19
|
isActorAbortedError
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rivetkit",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.28",
|
|
4
4
|
"description": "Lightweight libraries for building stateful actors on edge platforms",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -210,18 +210,17 @@
|
|
|
210
210
|
"dependencies": {
|
|
211
211
|
"@hono/zod-openapi": "^1.1.5",
|
|
212
212
|
"@opentelemetry/api": "^1.1.0",
|
|
213
|
-
"@rivet-dev/agent-os-core": "^0.1.1",
|
|
214
213
|
"@rivet-dev/services": "^0.2.0",
|
|
215
214
|
"@rivetkit/bare-ts": "^0.6.2",
|
|
216
|
-
"@rivetkit/engine-api-full": "2.3.
|
|
217
|
-
"@rivetkit/engine-cli": "2.3.
|
|
218
|
-
"@rivetkit/engine-envoy-protocol": "2.3.
|
|
215
|
+
"@rivetkit/engine-api-full": "2.3.28",
|
|
216
|
+
"@rivetkit/engine-cli": "2.3.28",
|
|
217
|
+
"@rivetkit/engine-envoy-protocol": "2.3.28",
|
|
219
218
|
"@rivetkit/on-change": "6.0.1",
|
|
220
|
-
"@rivetkit/rivetkit-napi": "2.3.
|
|
221
|
-
"@rivetkit/rivetkit-wasm": "2.3.
|
|
222
|
-
"@rivetkit/traces": "2.3.
|
|
223
|
-
"@rivetkit/virtual-websocket": "2.3.
|
|
224
|
-
"@rivetkit/workflow-engine": "2.3.
|
|
219
|
+
"@rivetkit/rivetkit-napi": "2.3.28",
|
|
220
|
+
"@rivetkit/rivetkit-wasm": "2.3.28",
|
|
221
|
+
"@rivetkit/traces": "2.3.28",
|
|
222
|
+
"@rivetkit/virtual-websocket": "2.3.28",
|
|
223
|
+
"@rivetkit/workflow-engine": "2.3.28",
|
|
225
224
|
"cbor-x": "^1.6.0",
|
|
226
225
|
"drizzle-orm": "0.45.2",
|
|
227
226
|
"hono": "^4.7.0",
|
|
@@ -238,8 +237,6 @@
|
|
|
238
237
|
"@hono/node-server": "^1.18.2",
|
|
239
238
|
"@hono/node-ws": "^1.1.1",
|
|
240
239
|
"@opentelemetry/sdk-trace-node": "2.11.0",
|
|
241
|
-
"@rivet-dev/agent-os-common": "*",
|
|
242
|
-
"@rivet-dev/agent-os-pi": "^0.1.1",
|
|
243
240
|
"@standard-schema/spec": "^1.0.0",
|
|
244
241
|
"@types/invariant": "^2",
|
|
245
242
|
"@types/node": "^22.13.1",
|
package/src/agent-os/index.ts
CHANGED
|
@@ -1,65 +1,5 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// Filesystem actions
|
|
7
|
-
export { buildFilesystemActions } from "./actor/filesystem";
|
|
8
|
-
// Actor factory and VM lifecycle helpers
|
|
9
|
-
export { agentOs, ensureVm, runHook, syncPreventSleep } from "./actor/index";
|
|
10
|
-
// Network actions
|
|
11
|
-
export {
|
|
12
|
-
buildNetworkActions,
|
|
13
|
-
type VmFetchOptions,
|
|
14
|
-
type VmFetchResult,
|
|
15
|
-
} from "./actor/network";
|
|
16
|
-
// Preview actions
|
|
17
|
-
export {
|
|
18
|
-
buildOnRequestHandler,
|
|
19
|
-
buildPreviewActions,
|
|
20
|
-
generateToken,
|
|
21
|
-
} from "./actor/preview";
|
|
22
|
-
// Process actions
|
|
23
|
-
export { buildProcessActions } from "./actor/process";
|
|
24
|
-
// Session actions
|
|
25
|
-
export {
|
|
26
|
-
buildConfigActions,
|
|
27
|
-
buildPromptActions,
|
|
28
|
-
buildSessionActions,
|
|
29
|
-
buildSessionPersistenceActions,
|
|
30
|
-
subscribeToSession,
|
|
31
|
-
} from "./actor/session";
|
|
32
|
-
// Shell actions
|
|
33
|
-
export { buildShellActions } from "./actor/shell";
|
|
34
|
-
// Config schema and types
|
|
35
|
-
export {
|
|
36
|
-
type AgentOsActorConfig,
|
|
37
|
-
type AgentOsActorConfigInput,
|
|
38
|
-
agentOsActorConfigSchema,
|
|
39
|
-
} from "./config";
|
|
40
|
-
// Database-backed VFS
|
|
41
|
-
export {
|
|
42
|
-
createDatabaseVfs,
|
|
43
|
-
type DatabaseVfsOptions,
|
|
44
|
-
} from "./fs/database-vfs";
|
|
45
|
-
// Domain types and event payloads
|
|
46
|
-
export type {
|
|
47
|
-
AgentOsActionContext,
|
|
48
|
-
AgentOsActorState,
|
|
49
|
-
AgentOsActorVars,
|
|
50
|
-
AgentOsEvents,
|
|
51
|
-
CronEventPayload,
|
|
52
|
-
PermissionRequestPayload,
|
|
53
|
-
PersistedSessionEvent,
|
|
54
|
-
PersistedSessionRecord,
|
|
55
|
-
ProcessExitPayload,
|
|
56
|
-
ProcessOutputPayload,
|
|
57
|
-
PromptResult,
|
|
58
|
-
SerializableCronAction,
|
|
59
|
-
SerializableCronJobOptions,
|
|
60
|
-
SessionEventPayload,
|
|
61
|
-
SessionRecord,
|
|
62
|
-
ShellDataPayload,
|
|
63
|
-
VmBootedPayload,
|
|
64
|
-
VmShutdownPayload,
|
|
65
|
-
} from "./types";
|
|
1
|
+
// agentOS no longer ships inside RivetKit. This entrypoint remains so existing
|
|
2
|
+
// imports fail with migration guidance instead of a missing-module error.
|
|
3
|
+
throw new Error(
|
|
4
|
+
"rivetkit/agent-os has been removed. Use @rivet-dev/agentos-core to run agentOS VMs in your process, or hosted agentOS with @rivet-dev/agentos. See https://rivet.dev/agentos/docs",
|
|
5
|
+
);
|
|
@@ -1001,7 +1001,9 @@ export class ActorHandleRaw {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
1003
|
/** Issue a token scoped to this actor. Defaults to actor gateway read access. */
|
|
1004
|
-
async issueToken(
|
|
1004
|
+
async issueToken(
|
|
1005
|
+
options: ActorIssueTokenOptions = {},
|
|
1006
|
+
): Promise<IssuedToken> {
|
|
1005
1007
|
const actorId = await this.resolve();
|
|
1006
1008
|
const permissions: ActorTokenPermissions = options.permissions ?? {
|
|
1007
1009
|
actor_gateway: ["read"],
|
package/src/client/client.ts
CHANGED
|
@@ -477,11 +477,15 @@ export class ClientRaw {
|
|
|
477
477
|
*
|
|
478
478
|
* @template A The actor registry type.
|
|
479
479
|
*/
|
|
480
|
-
export type Client<A extends Registry<any>> = ClientRaw &
|
|
481
|
-
|
|
482
|
-
|
|
480
|
+
export type Client<A extends Registry<any>> = ClientRaw &
|
|
481
|
+
Omit<
|
|
482
|
+
{
|
|
483
|
+
[K in keyof ExtractActorsFromRegistry<A>]: ActorAccessor<
|
|
484
|
+
ExtractActorsFromRegistry<A>[K]
|
|
485
|
+
>;
|
|
486
|
+
},
|
|
487
|
+
keyof ClientRaw
|
|
483
488
|
>;
|
|
484
|
-
}, keyof ClientRaw>;
|
|
485
489
|
|
|
486
490
|
export type AnyClient = Client<Registry<any>>;
|
|
487
491
|
|