@agentorg/cli 0.0.4 → 0.0.6
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 +18 -102
- package/dist/node_modules/@agentorg/hub/dist/src/hub-actor.d.ts +2 -7
- package/dist/node_modules/@agentorg/hub/dist/src/hub-actor.js +4 -111
- package/dist/node_modules/@agentorg/hub/dist/src/index.d.ts +1 -3
- package/dist/node_modules/@agentorg/hub/dist/src/index.js +1 -3
- package/dist/node_modules/@agentorg/hub/dist/src/router.d.ts +6 -57
- package/dist/node_modules/@agentorg/hub/dist/src/router.js +38 -413
- package/dist/node_modules/@agentorg/hub/dist/src/state.d.ts +20 -298
- package/dist/node_modules/@agentorg/hub/dist/src/state.js +73 -456
- package/dist/node_modules/@agentorg/hub/dist/src/validate.d.ts +1 -3
- package/dist/node_modules/@agentorg/hub/dist/src/validate.js +3 -15
- package/dist/node_modules/@agentorg/hub/package.json +0 -3
- package/dist/node_modules/@agentorg/interfaces/dist/src/agent-provider.d.ts +132 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/agent-provider.js +105 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/agent-settings.d.ts +42 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/agent-settings.js +53 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/chat.d.ts +15 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/chat.js +14 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/hub.d.ts +16 -267
- package/dist/node_modules/@agentorg/interfaces/dist/src/hub.js +17 -145
- package/dist/node_modules/@agentorg/interfaces/dist/src/index.d.ts +6 -8
- package/dist/node_modules/@agentorg/interfaces/dist/src/index.js +6 -8
- package/dist/node_modules/@agentorg/interfaces/dist/src/kv.d.ts +2 -2
- package/dist/node_modules/@agentorg/interfaces/dist/src/kv.js +2 -2
- package/dist/node_modules/@agentorg/interfaces/dist/src/manager.d.ts +272 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/manager.js +185 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/mcp-provider.d.ts +88 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/mcp-provider.js +78 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/tools.d.ts +39 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/tools.js +43 -0
- package/dist/node_modules/@agentorg/manager/dist/src/index.d.ts +1 -0
- package/dist/node_modules/@agentorg/manager/dist/src/index.js +1 -0
- package/dist/node_modules/@agentorg/manager/dist/src/manager.d.ts +21 -0
- package/dist/node_modules/@agentorg/manager/dist/src/manager.js +528 -0
- package/dist/node_modules/@agentorg/manager/dist/src/skills.d.ts +25 -0
- package/dist/node_modules/@agentorg/manager/dist/src/skills.js +145 -0
- package/dist/node_modules/@agentorg/manager/package.json +30 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/connection.d.ts +33 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/connection.js +290 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/index.d.ts +1 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/index.js +1 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/kinds.d.ts +50 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/kinds.js +69 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/provider.d.ts +22 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/provider.js +167 -0
- package/dist/node_modules/@agentorg/mcp/package.json +31 -0
- package/dist/node_modules/@agentorg/sdk/dist/src/cli.js +3 -23
- package/dist/node_modules/@agentorg/sdk/dist/src/client.d.ts +4 -25
- package/dist/node_modules/@agentorg/sdk/dist/src/client.js +5 -55
- package/dist/node_modules/@agentorg/sdk/dist/src/errors.d.ts +1 -1
- package/dist/node_modules/@agentorg/sdk/dist/src/errors.js +3 -3
- package/dist/node_modules/@agentorg/sdk/dist/src/index.d.ts +2 -2
- package/dist/node_modules/@agentorg/sdk/dist/src/index.js +1 -1
- package/dist/node_modules/@agentorg/sdk/dist/src/interface.d.ts +6 -34
- package/dist/node_modules/@agentorg/sdk/dist/src/interface.js +3 -24
- package/dist/node_modules/@agentorg/sdk/dist/src/module-host.d.ts +8 -17
- package/dist/node_modules/@agentorg/sdk/dist/src/module-host.js +15 -87
- package/dist/node_modules/@agentorg/sdk/dist/src/module.d.ts +10 -76
- package/dist/node_modules/@agentorg/sdk/dist/src/module.js +3 -23
- package/dist/node_modules/@agentorg/sdk/dist/src/person-commands.js +0 -5
- package/dist/node_modules/@agentorg/sdk/dist/src/runtime.d.ts +3 -27
- package/dist/node_modules/@agentorg/sdk/dist/src/runtime.js +5 -100
- package/dist/node_modules/@agentorg/sdk/dist/src/testing.d.ts +7 -8
- package/dist/node_modules/@agentorg/sdk/dist/src/testing.js +12 -24
- package/dist/node_modules/@agentorg/sdk/package.json +4 -37
- package/dist/node_modules/@agentorg/shell/dist/app.css +3435 -739
- package/dist/node_modules/@agentorg/shell/dist/app.js +204 -202
- package/dist/node_modules/@agentorg/shell/package.json +18 -10
- package/dist/node_modules/@agentorg/wire/dist/src/frames.d.ts +2 -3
- package/dist/node_modules/@agentorg/wire/dist/src/frames.js +2 -3
- package/dist/node_modules/@agentorg/wire/dist/src/ops.d.ts +5 -34
- package/dist/node_modules/@agentorg/wire/dist/src/ops.js +2 -17
- package/dist/node_modules/assistant/dist/src/agent.d.ts +62 -0
- package/dist/node_modules/assistant/dist/src/agent.js +226 -0
- package/dist/node_modules/assistant/dist/src/engine.d.ts +23 -0
- package/dist/node_modules/assistant/dist/src/engine.js +88 -0
- package/dist/node_modules/assistant/dist/src/history.d.ts +97 -0
- package/dist/node_modules/assistant/dist/src/history.js +235 -0
- package/dist/node_modules/assistant/dist/src/local-store.d.ts +3 -0
- package/dist/node_modules/assistant/dist/src/local-store.js +58 -0
- package/dist/node_modules/assistant/dist/src/provider.d.ts +21 -0
- package/dist/node_modules/assistant/dist/src/provider.js +231 -0
- package/dist/node_modules/assistant/dist/src/settings.d.ts +17 -0
- package/dist/node_modules/assistant/dist/src/settings.js +43 -0
- package/dist/node_modules/assistant/dist/src/tools.d.ts +74 -0
- package/dist/node_modules/assistant/dist/src/tools.js +123 -0
- package/dist/node_modules/assistant/package.json +29 -0
- package/dist/node_modules/chatgpt/dist/src/account.d.ts +52 -0
- package/dist/node_modules/chatgpt/dist/src/account.js +270 -0
- package/dist/node_modules/chatgpt/dist/src/encoding.d.ts +7 -0
- package/dist/node_modules/chatgpt/dist/src/encoding.js +20 -0
- package/dist/node_modules/chatgpt/dist/src/file-store.d.ts +9 -0
- package/dist/node_modules/chatgpt/dist/src/file-store.js +68 -0
- package/dist/node_modules/chatgpt/dist/src/index.d.ts +1 -0
- package/dist/node_modules/chatgpt/dist/src/index.js +1 -0
- package/dist/node_modules/chatgpt/dist/src/jwt.d.ts +15 -0
- package/dist/node_modules/chatgpt/dist/src/jwt.js +37 -0
- package/dist/node_modules/chatgpt/dist/src/oauth.d.ts +43 -0
- package/dist/node_modules/chatgpt/dist/src/oauth.js +104 -0
- package/dist/node_modules/chatgpt/dist/src/program.d.ts +23 -0
- package/dist/node_modules/chatgpt/dist/src/program.js +41 -0
- package/dist/node_modules/chatgpt/dist/src/responses.d.ts +54 -0
- package/dist/node_modules/chatgpt/dist/src/responses.js +300 -0
- package/dist/node_modules/chatgpt/dist/src/serve.d.ts +65 -0
- package/dist/node_modules/chatgpt/dist/src/serve.js +46 -0
- package/dist/node_modules/chatgpt/package.json +33 -0
- package/dist/src/api.d.ts +5 -34
- package/dist/src/api.js +6 -68
- package/dist/src/cli.js +3 -7
- package/dist/src/gateway.d.ts +6 -7
- package/dist/src/gateway.js +39 -285
- package/dist/src/index.d.ts +4 -5
- package/dist/src/index.js +3 -4
- package/dist/src/notes.d.ts +11 -0
- package/dist/src/notes.js +64 -0
- package/dist/src/oauth.d.ts +16 -0
- package/dist/src/oauth.js +46 -0
- package/dist/src/programs.d.ts +29 -0
- package/dist/src/programs.js +171 -0
- package/package.json +3 -11
- package/dist/bundled/index.json +0 -6
- package/dist/bundled/sha256-01d69bc3888c2a53963f4413d47de909d129ad27c78e9af6d830bb50c3478419.agentorg +0 -0
- package/dist/bundled/sha256-84165e3be5c904fc971d983dab31102e07cca725d8629a6fd7d118fa3a0a88b8.agentorg +0 -0
- package/dist/bundled/sha256-ade9132b3f34b4c39db92adeadc7e540dc745e4a81b5b54f5d45bf9ec92bca75.agentorg +0 -0
- package/dist/bundled/sha256-f4330f5987f37d8cf3aeb44d2f831b573641a87186daa2f811f0c35ba04804f0.agentorg +0 -0
- package/dist/node_modules/@agentorg/hub/dist/src/build.d.ts +0 -17
- package/dist/node_modules/@agentorg/hub/dist/src/build.js +0 -120
- package/dist/node_modules/@agentorg/hub/dist/src/logs.d.ts +0 -33
- package/dist/node_modules/@agentorg/hub/dist/src/logs.js +0 -162
- package/dist/node_modules/@agentorg/hub/dist/src/net.d.ts +0 -41
- package/dist/node_modules/@agentorg/hub/dist/src/net.js +0 -265
- package/dist/node_modules/@agentorg/hub/dist/src/processes.d.ts +0 -78
- package/dist/node_modules/@agentorg/hub/dist/src/processes.js +0 -485
- package/dist/node_modules/@agentorg/hub/dist/src/storage.d.ts +0 -38
- package/dist/node_modules/@agentorg/hub/dist/src/storage.js +0 -194
- package/dist/node_modules/@agentorg/interfaces/dist/src/http-egress.d.ts +0 -6
- package/dist/node_modules/@agentorg/interfaces/dist/src/http-egress.js +0 -7
- package/dist/node_modules/@agentorg/interfaces/dist/src/installer.d.ts +0 -191
- package/dist/node_modules/@agentorg/interfaces/dist/src/installer.js +0 -136
- package/dist/node_modules/@agentorg/interfaces/dist/src/layout.d.ts +0 -47
- package/dist/node_modules/@agentorg/interfaces/dist/src/layout.js +0 -52
- package/dist/node_modules/@agentorg/interfaces/dist/src/rules.d.ts +0 -35
- package/dist/node_modules/@agentorg/interfaces/dist/src/rules.js +0 -37
- package/dist/node_modules/@agentorg/interfaces/dist/src/storage-admin.d.ts +0 -23
- package/dist/node_modules/@agentorg/interfaces/dist/src/storage-admin.js +0 -31
- package/dist/node_modules/@agentorg/interfaces/dist/src/ui-shell.d.ts +0 -14
- package/dist/node_modules/@agentorg/interfaces/dist/src/ui-shell.js +0 -26
- package/dist/node_modules/@agentorg/interfaces/dist/src/ui-view.d.ts +0 -27
- package/dist/node_modules/@agentorg/interfaces/dist/src/ui-view.js +0 -26
- package/dist/node_modules/@agentorg/kit/dist/src/chat.d.ts +0 -37
- package/dist/node_modules/@agentorg/kit/dist/src/chat.js +0 -131
- package/dist/node_modules/@agentorg/kit/dist/src/components.d.ts +0 -94
- package/dist/node_modules/@agentorg/kit/dist/src/components.js +0 -66
- package/dist/node_modules/@agentorg/kit/dist/src/icons.d.ts +0 -17
- package/dist/node_modules/@agentorg/kit/dist/src/icons.js +0 -30
- package/dist/node_modules/@agentorg/kit/dist/src/index.d.ts +0 -6
- package/dist/node_modules/@agentorg/kit/dist/src/index.js +0 -10
- package/dist/node_modules/@agentorg/kit/dist/src/markdown.d.ts +0 -9
- package/dist/node_modules/@agentorg/kit/dist/src/markdown.js +0 -14
- package/dist/node_modules/@agentorg/kit/dist/src/resizable.d.ts +0 -5
- package/dist/node_modules/@agentorg/kit/dist/src/resizable.js +0 -8
- package/dist/node_modules/@agentorg/kit/dist/src/styles.d.ts +0 -11
- package/dist/node_modules/@agentorg/kit/dist/src/styles.js +0 -166
- package/dist/node_modules/@agentorg/kit/package.json +0 -44
- package/dist/node_modules/@agentorg/sdk/dist/frame/runtime.js +0 -753
- package/dist/node_modules/@agentorg/sdk/dist/host/runner.js +0 -21963
- package/dist/node_modules/@agentorg/sdk/dist/src/build.d.ts +0 -2
- package/dist/node_modules/@agentorg/sdk/dist/src/build.js +0 -2
- package/dist/node_modules/@agentorg/sdk/dist/src/client-http.d.ts +0 -24
- package/dist/node_modules/@agentorg/sdk/dist/src/client-http.js +0 -247
- package/dist/node_modules/@agentorg/sdk/dist/src/describe.d.ts +0 -13
- package/dist/node_modules/@agentorg/sdk/dist/src/describe.js +0 -16
- package/dist/node_modules/@agentorg/sdk/dist/src/frame-base.d.ts +0 -8
- package/dist/node_modules/@agentorg/sdk/dist/src/frame-base.js +0 -64
- package/dist/node_modules/@agentorg/sdk/dist/src/frame-entry.d.ts +0 -1
- package/dist/node_modules/@agentorg/sdk/dist/src/frame-entry.js +0 -35
- package/dist/node_modules/@agentorg/sdk/dist/src/frame-host.d.ts +0 -57
- package/dist/node_modules/@agentorg/sdk/dist/src/frame-host.js +0 -293
- package/dist/node_modules/@agentorg/sdk/dist/src/frame-protocol.d.ts +0 -124
- package/dist/node_modules/@agentorg/sdk/dist/src/frame-protocol.js +0 -16
- package/dist/node_modules/@agentorg/sdk/dist/src/frame.d.ts +0 -25
- package/dist/node_modules/@agentorg/sdk/dist/src/frame.js +0 -248
- package/dist/node_modules/@agentorg/sdk/dist/src/host-main.d.ts +0 -1
- package/dist/node_modules/@agentorg/sdk/dist/src/host-main.js +0 -60
- package/dist/node_modules/@agentorg/sdk/dist/src/host.d.ts +0 -25
- package/dist/node_modules/@agentorg/sdk/dist/src/host.js +0 -92
- package/dist/node_modules/@agentorg/sdk/dist/src/manifest-api.d.ts +0 -2
- package/dist/node_modules/@agentorg/sdk/dist/src/manifest-api.js +0 -2
- package/dist/node_modules/@agentorg/sdk/dist/src/manifest.d.ts +0 -56
- package/dist/node_modules/@agentorg/sdk/dist/src/manifest.js +0 -165
- package/dist/node_modules/@agentorg/sdk/dist/src/package.d.ts +0 -60
- package/dist/node_modules/@agentorg/sdk/dist/src/package.js +0 -538
- package/dist/node_modules/@agentorg/sdk/dist/src/tar.d.ts +0 -7
- package/dist/node_modules/@agentorg/sdk/dist/src/tar.js +0 -71
- package/dist/node_modules/@agentorg/shell/dist/agent-bindings.js +0 -59
- package/dist/node_modules/@agentorg/shell/src/agent-bindings.ts +0 -107
- package/dist/src/frames.d.ts +0 -23
- package/dist/src/frames.js +0 -78
- package/dist/src/layout.d.ts +0 -44
- package/dist/src/layout.js +0 -90
- package/dist/src/model.d.ts +0 -51
- package/dist/src/model.js +0 -230
- package/dist/src/rules.d.ts +0 -71
- package/dist/src/rules.js +0 -157
- package/dist/src/transfer.d.ts +0 -30
- package/dist/src/transfer.js +0 -110
|
@@ -1,50 +1,13 @@
|
|
|
1
1
|
import { type DescribedInterface } from "@agentorg/sdk";
|
|
2
|
-
import { type Manifest } from "@agentorg/sdk/manifest";
|
|
3
2
|
/** The built-in Actor that exports management. */
|
|
4
3
|
export declare const HUB = "hub";
|
|
5
|
-
/** The built-in Actor that keeps state: `kv@1`, one store per consumer slot. */
|
|
6
|
-
export declare const STORAGE = "storage";
|
|
7
|
-
/** The built-in Actor that reaches the public internet: `http.egress@1`, over HTTPS only. */
|
|
8
|
-
export declare const NET = "net";
|
|
9
4
|
/** The person's Actor, created at first start with every `hub.*` binding. */
|
|
10
5
|
export declare const PERSON = "person";
|
|
11
6
|
/** The hub's exports, each the authority for its own part of management. */
|
|
12
7
|
declare const HUB_EXPORTS: {
|
|
13
|
-
packages: import("@agentorg/sdk").RpcInterface<"hub.packages", {
|
|
14
|
-
add: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
15
|
-
path: import("zod").ZodString;
|
|
16
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
17
|
-
hash: import("zod").ZodString;
|
|
18
|
-
manifest: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>;
|
|
19
|
-
}, import("zod/v4/core").$strip>>;
|
|
20
|
-
list: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
21
|
-
packages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
22
|
-
hash: import("zod").ZodString;
|
|
23
|
-
name: import("zod").ZodString;
|
|
24
|
-
version: import("zod").ZodString;
|
|
25
|
-
}, import("zod/v4/core").$strip>>;
|
|
26
|
-
}, import("zod/v4/core").$strip>>;
|
|
27
|
-
get: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
28
|
-
hash: import("zod").ZodString;
|
|
29
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
30
|
-
hash: import("zod").ZodString;
|
|
31
|
-
manifest: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>;
|
|
32
|
-
}, import("zod/v4/core").$strip>>;
|
|
33
|
-
remove: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
34
|
-
hash: import("zod").ZodString;
|
|
35
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>>;
|
|
36
|
-
build: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
37
|
-
files: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
38
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
39
|
-
hash: import("zod").ZodString;
|
|
40
|
-
manifest: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>;
|
|
41
|
-
}, import("zod/v4/core").$strip>>;
|
|
42
|
-
}, {}, 1>;
|
|
43
8
|
actors: import("@agentorg/sdk").RpcInterface<"hub.actors", {
|
|
44
9
|
create: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
45
10
|
name: import("zod").ZodString;
|
|
46
|
-
package: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
-
for: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
11
|
bindings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
49
12
|
slot: import("zod").ZodString;
|
|
50
13
|
provider: import("zod").ZodString;
|
|
@@ -52,7 +15,7 @@ declare const HUB_EXPORTS: {
|
|
|
52
15
|
}, import("zod/v4/core").$strip>>>;
|
|
53
16
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
54
17
|
actorId: import("zod").ZodString;
|
|
55
|
-
credential: import("zod").
|
|
18
|
+
credential: import("zod").ZodString;
|
|
56
19
|
}, import("zod/v4/core").$strip>>;
|
|
57
20
|
list: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
58
21
|
actors: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -66,18 +29,6 @@ declare const HUB_EXPORTS: {
|
|
|
66
29
|
stopped: "stopped";
|
|
67
30
|
}>;
|
|
68
31
|
connected: import("zod").ZodBoolean;
|
|
69
|
-
restarts: import("zod").ZodNumber;
|
|
70
|
-
lastExit: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
71
|
-
code: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
72
|
-
signal: import("zod").ZodNullable<import("zod").ZodString>;
|
|
73
|
-
at: import("zod").ZodString;
|
|
74
|
-
}, import("zod/v4/core").$strip>>;
|
|
75
|
-
host: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
76
|
-
available: import("zod").ZodBoolean;
|
|
77
|
-
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
-
}, import("zod/v4/core").$strip>>;
|
|
79
|
-
views: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
80
|
-
installedFor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
32
|
}, import("zod/v4/core").$strip>>;
|
|
82
33
|
}, import("zod/v4/core").$strip>>;
|
|
83
34
|
get: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
@@ -93,44 +44,10 @@ declare const HUB_EXPORTS: {
|
|
|
93
44
|
stopped: "stopped";
|
|
94
45
|
}>;
|
|
95
46
|
connected: import("zod").ZodBoolean;
|
|
96
|
-
restarts: import("zod").ZodNumber;
|
|
97
|
-
lastExit: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
98
|
-
code: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
99
|
-
signal: import("zod").ZodNullable<import("zod").ZodString>;
|
|
100
|
-
at: import("zod").ZodString;
|
|
101
|
-
}, import("zod/v4/core").$strip>>;
|
|
102
|
-
host: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
103
|
-
available: import("zod").ZodBoolean;
|
|
104
|
-
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
105
|
-
}, import("zod/v4/core").$strip>>;
|
|
106
|
-
views: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
107
|
-
installedFor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
108
47
|
}, import("zod/v4/core").$strip>>;
|
|
109
|
-
start: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
110
|
-
actorId: import("zod").ZodString;
|
|
111
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>>;
|
|
112
|
-
stop: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
113
|
-
actorId: import("zod").ZodString;
|
|
114
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>>;
|
|
115
48
|
close: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
116
49
|
actorId: import("zod").ZodString;
|
|
117
50
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>>;
|
|
118
|
-
logs: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
119
|
-
actorId: import("zod").ZodString;
|
|
120
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
121
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
122
|
-
lines: import("zod").ZodArray<import("zod").ZodObject<{
|
|
123
|
-
level: import("zod").ZodEnum<{
|
|
124
|
-
error: "error";
|
|
125
|
-
info: "info";
|
|
126
|
-
warn: "warn";
|
|
127
|
-
}>;
|
|
128
|
-
message: import("zod").ZodString;
|
|
129
|
-
data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>>;
|
|
130
|
-
module: import("zod").ZodOptional<import("zod").ZodString>;
|
|
131
|
-
at: import("zod").ZodString;
|
|
132
|
-
}, import("zod/v4/core").$strip>>;
|
|
133
|
-
}, import("zod/v4/core").$strip>>;
|
|
134
51
|
}, {
|
|
135
52
|
changed: import("@agentorg/sdk").EventSpec<import("zod").ZodObject<{
|
|
136
53
|
actor: import("zod").ZodString;
|
|
@@ -158,12 +75,9 @@ declare const HUB_EXPORTS: {
|
|
|
158
75
|
slot: import("zod").ZodString;
|
|
159
76
|
provider: import("zod").ZodString;
|
|
160
77
|
export: import("zod").ZodString;
|
|
161
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
162
|
-
bound: import("zod").ZodLiteral<true>;
|
|
163
78
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
164
|
-
bound: import("zod").ZodLiteral<
|
|
165
|
-
|
|
166
|
-
}, import("zod/v4/core").$strip>]>>;
|
|
79
|
+
bound: import("zod").ZodLiteral<true>;
|
|
80
|
+
}, import("zod/v4/core").$strip>>;
|
|
167
81
|
unbind: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
168
82
|
consumer: import("zod").ZodString;
|
|
169
83
|
slot: import("zod").ZodString;
|
|
@@ -173,111 +87,15 @@ declare const HUB_EXPORTS: {
|
|
|
173
87
|
export: import("zod").ZodString;
|
|
174
88
|
to: import("zod").ZodString;
|
|
175
89
|
as: import("zod").ZodOptional<import("zod").ZodString>;
|
|
176
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
177
|
-
exposed: import("zod").ZodLiteral<true>;
|
|
178
|
-
slot: import("zod").ZodString;
|
|
179
90
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
180
|
-
exposed: import("zod").ZodLiteral<
|
|
91
|
+
exposed: import("zod").ZodLiteral<true>;
|
|
181
92
|
slot: import("zod").ZodString;
|
|
182
|
-
|
|
183
|
-
}, import("zod/v4/core").$strip>]>>;
|
|
93
|
+
}, import("zod/v4/core").$strip>>;
|
|
184
94
|
unexpose: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
185
95
|
to: import("zod").ZodString;
|
|
186
96
|
slot: import("zod").ZodString;
|
|
187
97
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>>;
|
|
188
|
-
|
|
189
|
-
consumer: import("zod").ZodString;
|
|
190
|
-
slot: import("zod").ZodString;
|
|
191
|
-
provider: import("zod").ZodString;
|
|
192
|
-
export: import("zod").ZodString;
|
|
193
|
-
reason: import("zod").ZodString;
|
|
194
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
195
|
-
requestId: import("zod").ZodString;
|
|
196
|
-
}, import("zod/v4/core").$strip>>;
|
|
197
|
-
requests: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
198
|
-
requests: import("zod").ZodArray<import("zod").ZodObject<{
|
|
199
|
-
consumer: import("zod").ZodString;
|
|
200
|
-
slot: import("zod").ZodString;
|
|
201
|
-
provider: import("zod").ZodString;
|
|
202
|
-
export: import("zod").ZodString;
|
|
203
|
-
requestId: import("zod").ZodString;
|
|
204
|
-
needs: import("zod").ZodEnum<{
|
|
205
|
-
export: "export";
|
|
206
|
-
slot: "slot";
|
|
207
|
-
}>;
|
|
208
|
-
reason: import("zod").ZodString;
|
|
209
|
-
requestedBy: import("zod").ZodString;
|
|
210
|
-
at: import("zod").ZodString;
|
|
211
|
-
exposed: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
212
|
-
}, import("zod/v4/core").$strip>>;
|
|
213
|
-
}, import("zod/v4/core").$strip>>;
|
|
214
|
-
decline: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
215
|
-
requestId: import("zod").ZodString;
|
|
216
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>>;
|
|
217
|
-
mine: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
218
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
219
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
220
|
-
requests: import("zod").ZodArray<import("zod").ZodObject<{
|
|
221
|
-
consumer: import("zod").ZodString;
|
|
222
|
-
slot: import("zod").ZodString;
|
|
223
|
-
provider: import("zod").ZodString;
|
|
224
|
-
export: import("zod").ZodString;
|
|
225
|
-
requestId: import("zod").ZodString;
|
|
226
|
-
needs: import("zod").ZodEnum<{
|
|
227
|
-
export: "export";
|
|
228
|
-
slot: "slot";
|
|
229
|
-
}>;
|
|
230
|
-
reason: import("zod").ZodString;
|
|
231
|
-
requestedBy: import("zod").ZodString;
|
|
232
|
-
at: import("zod").ZodString;
|
|
233
|
-
exposed: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
234
|
-
status: import("zod").ZodEnum<{
|
|
235
|
-
approved: "approved";
|
|
236
|
-
closed: "closed";
|
|
237
|
-
declined: "declined";
|
|
238
|
-
open: "open";
|
|
239
|
-
}>;
|
|
240
|
-
}, import("zod/v4/core").$strip>>;
|
|
241
|
-
}, import("zod/v4/core").$strip>>;
|
|
242
|
-
}, {
|
|
243
|
-
requested: import("@agentorg/sdk").EventSpec<import("zod").ZodObject<{
|
|
244
|
-
consumer: import("zod").ZodString;
|
|
245
|
-
slot: import("zod").ZodString;
|
|
246
|
-
provider: import("zod").ZodString;
|
|
247
|
-
export: import("zod").ZodString;
|
|
248
|
-
requestId: import("zod").ZodString;
|
|
249
|
-
needs: import("zod").ZodEnum<{
|
|
250
|
-
export: "export";
|
|
251
|
-
slot: "slot";
|
|
252
|
-
}>;
|
|
253
|
-
reason: import("zod").ZodString;
|
|
254
|
-
requestedBy: import("zod").ZodString;
|
|
255
|
-
at: import("zod").ZodString;
|
|
256
|
-
exposed: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
257
|
-
}, import("zod/v4/core").$strip>>;
|
|
258
|
-
decided: import("@agentorg/sdk").EventSpec<import("zod").ZodObject<{
|
|
259
|
-
request: import("zod").ZodObject<{
|
|
260
|
-
consumer: import("zod").ZodString;
|
|
261
|
-
slot: import("zod").ZodString;
|
|
262
|
-
provider: import("zod").ZodString;
|
|
263
|
-
export: import("zod").ZodString;
|
|
264
|
-
requestId: import("zod").ZodString;
|
|
265
|
-
needs: import("zod").ZodEnum<{
|
|
266
|
-
export: "export";
|
|
267
|
-
slot: "slot";
|
|
268
|
-
}>;
|
|
269
|
-
reason: import("zod").ZodString;
|
|
270
|
-
requestedBy: import("zod").ZodString;
|
|
271
|
-
at: import("zod").ZodString;
|
|
272
|
-
exposed: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
|
|
273
|
-
}, import("zod/v4/core").$strip>;
|
|
274
|
-
status: import("zod").ZodEnum<{
|
|
275
|
-
approved: "approved";
|
|
276
|
-
closed: "closed";
|
|
277
|
-
declined: "declined";
|
|
278
|
-
}>;
|
|
279
|
-
}, import("zod/v4/core").$strip>>;
|
|
280
|
-
}, 1>;
|
|
98
|
+
}, {}, 1>;
|
|
281
99
|
exports: import("@agentorg/sdk").RpcInterface<"hub.exports", {
|
|
282
100
|
list: import("@agentorg/sdk").MethodSpec<import("zod").ZodObject<{
|
|
283
101
|
actor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -287,7 +105,6 @@ declare const HUB_EXPORTS: {
|
|
|
287
105
|
export: import("zod").ZodString;
|
|
288
106
|
interface: import("zod").ZodString;
|
|
289
107
|
hash: import("zod").ZodString;
|
|
290
|
-
dynamic: import("zod").ZodBoolean;
|
|
291
108
|
}, import("zod/v4/core").$strip>>;
|
|
292
109
|
}, import("zod/v4/core").$strip>>;
|
|
293
110
|
}, {
|
|
@@ -320,23 +137,12 @@ declare const HUB_EXPORTS: {
|
|
|
320
137
|
}, 1>;
|
|
321
138
|
};
|
|
322
139
|
export type ActorState = "created" | "running" | "stopped" | "closed";
|
|
323
|
-
/** How a process ended on its own: its exit code or signal, and when. */
|
|
324
|
-
export interface Exit {
|
|
325
|
-
code: number | null;
|
|
326
|
-
signal: string | null;
|
|
327
|
-
at: string;
|
|
328
|
-
}
|
|
329
140
|
export interface ActorRecord {
|
|
330
141
|
actorId: string;
|
|
331
142
|
name: string;
|
|
332
|
-
/**
|
|
143
|
+
/** `external` for a program that connects itself, `builtin` for the hub; an earlier release's package Actor keeps its hash. */
|
|
333
144
|
package: string;
|
|
334
145
|
state: ActorState;
|
|
335
|
-
/** Times its process was restarted after a crash. */
|
|
336
|
-
restarts: number;
|
|
337
|
-
lastExit?: Exit;
|
|
338
|
-
/** The Actor a manager made it for: provenance, never authority. */
|
|
339
|
-
installedFor?: string;
|
|
340
146
|
}
|
|
341
147
|
export interface Wiring {
|
|
342
148
|
consumer: string;
|
|
@@ -353,21 +159,6 @@ export interface BindingRecord extends Wiring {
|
|
|
353
159
|
}
|
|
354
160
|
/** The two ends of a binding: the export side gives the export, the slot side takes it. */
|
|
355
161
|
export type Side = "export" | "slot";
|
|
356
|
-
/**
|
|
357
|
-
* How a request ended: `approved` (its binding was made), `declined`, or `closed` (its slot was
|
|
358
|
-
* bound to something else, or one end went away).
|
|
359
|
-
*/
|
|
360
|
-
export type Decision = "approved" | "declined" | "closed";
|
|
361
|
-
export interface RequestRecord extends Wiring {
|
|
362
|
-
requestId: string;
|
|
363
|
-
/** The side the requester lacks, whose approvers decide. */
|
|
364
|
-
needs: Side;
|
|
365
|
-
reason: string;
|
|
366
|
-
requestedBy: string;
|
|
367
|
-
at: string;
|
|
368
|
-
/** A request to expose: `slot` is made on `consumer` when it is approved. */
|
|
369
|
-
exposed?: true;
|
|
370
|
-
}
|
|
371
162
|
export interface AuditRecord {
|
|
372
163
|
seq: number;
|
|
373
164
|
at: string;
|
|
@@ -393,13 +184,10 @@ export type CallOutcome = "ok" | "invalid" | "bad_output" | "refused" | "not_con
|
|
|
393
184
|
*/
|
|
394
185
|
export interface StateEvents {
|
|
395
186
|
bound?(binding: BindingRecord): void;
|
|
396
|
-
/** Bindings that ended, by unbind,
|
|
187
|
+
/** Bindings that ended, by unbind, redeclaration or closing. */
|
|
397
188
|
unbound?(bindings: BindingRecord[]): void;
|
|
398
|
-
requested?(request: RequestRecord, approvers: string[]): void;
|
|
399
|
-
/** A request was approved, declined or closed: to its approvers and its requester. */
|
|
400
|
-
decided?(request: RequestRecord, status: Decision, approvers: string[]): void;
|
|
401
189
|
exportsChanged?(actor: string): void;
|
|
402
|
-
/** An Actor's record changed: it was made
|
|
190
|
+
/** An Actor's record changed: it was made or closed. */
|
|
403
191
|
actorChanged?(actorId: string): void;
|
|
404
192
|
/** An Actor was closed for good: its channel should go too. */
|
|
405
193
|
closed?(actorId: string): void;
|
|
@@ -412,7 +200,7 @@ export interface StateEvents {
|
|
|
412
200
|
*/
|
|
413
201
|
export declare function exposedName(providerName: string, exportName: string): string;
|
|
414
202
|
/**
|
|
415
|
-
* The core's state in its home folder: Actors,
|
|
203
|
+
* The core's state in its home folder: Actors, declarations, bindings
|
|
416
204
|
* and the audit trail, in `node:sqlite`. Every method that changes something takes its caller, and
|
|
417
205
|
* each is checked against bindings: there is no other authority.
|
|
418
206
|
*/
|
|
@@ -427,91 +215,55 @@ export declare class HubState {
|
|
|
427
215
|
*/
|
|
428
216
|
static open(home: string, events?: StateEvents): HubState;
|
|
429
217
|
close(): void;
|
|
430
|
-
/** Record something the Hub itself saw happen, such as the host sandbox's status changing. */
|
|
431
|
-
auditHub(kind: string, details: Record<string, unknown>, actor?: string): void;
|
|
432
|
-
/** A package Actor's process exited: kept as its `lastExit`, and counted when it is restarted. */
|
|
433
|
-
recordExit(actorId: string, exit: Exit, restarted: boolean): void;
|
|
434
218
|
/** Record a call's metadata: who, through which binding, which method, and how it ended. */
|
|
435
219
|
auditCall(caller: string,
|
|
436
220
|
/** The binding the call went through; an unbound slot has only its consumer and slot. */
|
|
437
221
|
binding: Pick<Wiring, "consumer" | "slot"> & Partial<Wiring>, call: {
|
|
438
|
-
op: "call" | "subscribe"
|
|
222
|
+
op: "call" | "subscribe";
|
|
439
223
|
method?: string;
|
|
440
224
|
outcome: CallOutcome;
|
|
441
225
|
}): void;
|
|
442
226
|
/** An Actor as a refusal names it: "Name (id)", or the id alone when there's no such Actor. */
|
|
443
227
|
named(actorId: string): string;
|
|
444
228
|
actor(actorId: string): ActorRecord;
|
|
445
|
-
/** The host sandbox's status changed: every package Actor's record (its `host`) differs. */
|
|
446
|
-
hostChanged(): void;
|
|
447
229
|
actors(): ActorRecord[];
|
|
448
230
|
/** Whether the caller is bound to one of the hub's exports: the authority for that part. */
|
|
449
231
|
holds(caller: string, hubExport: keyof typeof HUB_EXPORTS): boolean;
|
|
450
|
-
/** Create an Actor:
|
|
232
|
+
/** Create an Actor: a program that connects itself, with a credential that comes back once. */
|
|
451
233
|
createActor(caller: string, input: {
|
|
452
234
|
name: string;
|
|
453
|
-
package?: string;
|
|
454
235
|
/**
|
|
455
236
|
* Initial bindings for the new Actor's slots, made with the caller's export-side authority;
|
|
456
237
|
* the creation is the slot side's yes. An external Actor's slot is declared with the
|
|
457
238
|
* export's interface, and its hello must declare it the same way to keep it.
|
|
458
239
|
*/
|
|
459
240
|
bindings?: Omit<Wiring, "consumer">[];
|
|
460
|
-
/** The Actor it is made for: given only by a manager, recorded as provenance. */
|
|
461
|
-
for?: string;
|
|
462
241
|
}): {
|
|
463
242
|
actorId: string;
|
|
464
|
-
credential
|
|
243
|
+
credential: string;
|
|
465
244
|
};
|
|
466
245
|
/** Whether an external Actor's credential is right, compared in constant time. */
|
|
467
246
|
authenticate(actorId: string, credential: string): boolean;
|
|
468
|
-
/**
|
|
469
|
-
checkStart(caller: string, actorId: string): void;
|
|
470
|
-
/** Start a package Actor: recorded as running; the Hub spawns its process. */
|
|
471
|
-
start(caller: string, actorId: string): void;
|
|
472
|
-
stop(caller: string, actorId: string): void;
|
|
473
|
-
/** Close an Actor for good: its bindings both ways, its declarations and its open requests go. */
|
|
247
|
+
/** Close an Actor for good: its bindings both ways and its declarations go. */
|
|
474
248
|
closeActor(caller: string, actorId: string): void;
|
|
475
|
-
/** Add a `.agentorg` archive from a path on this machine, verified; adding it again is a no-op. */
|
|
476
|
-
addPackage(caller: string, path: string): {
|
|
477
|
-
hash: string;
|
|
478
|
-
manifest: Manifest;
|
|
479
|
-
};
|
|
480
|
-
packages(): {
|
|
481
|
-
hash: string;
|
|
482
|
-
name: string;
|
|
483
|
-
version: string;
|
|
484
|
-
}[];
|
|
485
|
-
package(hash: string): {
|
|
486
|
-
hash: string;
|
|
487
|
-
manifest: Manifest;
|
|
488
|
-
};
|
|
489
|
-
/** Remove a package no live Actor runs. Its files stay until a later clean-up. */
|
|
490
|
-
removePackage(caller: string, hash: string): void;
|
|
491
249
|
/** How many slots an Actor declares. */
|
|
492
250
|
slotCount(actor: string): number;
|
|
493
251
|
declaration(actor: string, side: "slot" | "export", name: string): Declaration | undefined;
|
|
494
252
|
/**
|
|
495
253
|
* An external Actor's slots and static exports, as it declares them when it connects; they
|
|
496
|
-
* replace what it declared before. A
|
|
497
|
-
*
|
|
254
|
+
* replace what it declared before. A name redeclared as another interface loses its bindings
|
|
255
|
+
* (audited as `binding.drop`), since a binding holds only while both ends declare the same one.
|
|
256
|
+
* A name it no longer declares is dropped, with its bindings.
|
|
498
257
|
*/
|
|
499
258
|
declareExternal(actorId: string, declares: {
|
|
500
259
|
slots: Record<string, DescribedInterface>;
|
|
501
260
|
exports: Record<string, DescribedInterface>;
|
|
502
261
|
}): void;
|
|
503
|
-
/** Offer an export at run time; it lasts until withdrawn or until the Actor disconnects. */
|
|
504
|
-
offer(actorId: string, name: string, iface: DescribedInterface): void;
|
|
505
|
-
/** Withdraw an export offered at run time: the bindings to it end. */
|
|
506
|
-
withdraw(actorId: string, name: string): void;
|
|
507
|
-
/** An Actor's connection ended: what it offered at run time goes, with the bindings to it. */
|
|
508
|
-
disconnected(actorId: string): void;
|
|
509
262
|
exports(actor?: string): {
|
|
510
263
|
actor: string;
|
|
511
264
|
export: string;
|
|
512
265
|
interface: string;
|
|
513
266
|
hash: string;
|
|
514
|
-
dynamic: boolean;
|
|
515
267
|
}[];
|
|
516
268
|
binding(consumer: string, slot: string): BindingRecord | undefined;
|
|
517
269
|
/**
|
|
@@ -531,30 +283,16 @@ export declare class HubState {
|
|
|
531
283
|
* itself, or a manager.
|
|
532
284
|
*/
|
|
533
285
|
sides(caller: string, wiring: Wiring): Record<Side, boolean>;
|
|
534
|
-
/**
|
|
535
|
-
approvers(request: Wiring & {
|
|
536
|
-
needs: Side;
|
|
537
|
-
}): string[];
|
|
538
|
-
/**
|
|
539
|
-
* Bind a slot to an export. A caller with both ends binds. A caller with one end approves an
|
|
540
|
-
* open request for this binding from the other end, if its requester still holds that end;
|
|
541
|
-
* otherwise its call becomes a request to the other end's approvers. A caller with neither end
|
|
542
|
-
* is refused.
|
|
543
|
-
*/
|
|
286
|
+
/** Bind a slot to an export: the caller must hold both ends. */
|
|
544
287
|
bind(caller: string, wiring: Wiring): {
|
|
545
288
|
bound: true;
|
|
546
|
-
} | {
|
|
547
|
-
bound: false;
|
|
548
|
-
requestId: string;
|
|
549
289
|
};
|
|
550
290
|
/** Unbind a slot: its consumer, its provider or a manager may. */
|
|
551
291
|
unbind(caller: string, consumer: string, slot: string): void;
|
|
552
292
|
/**
|
|
553
293
|
* Expose an export to one Actor: a slot made on `to` at run time, typed by the export's
|
|
554
|
-
* interface and bound to it, in one step. The
|
|
555
|
-
* consumer
|
|
556
|
-
* request to the other end's approvers, who approve by exposing the same; with neither, it is
|
|
557
|
-
* refused. The same export already exposed to `to` gives that slot back.
|
|
294
|
+
* interface and bound to it, in one step. The caller must hold both ends, with `to` as the
|
|
295
|
+
* consumer. The same export already exposed to `to` gives that slot back.
|
|
558
296
|
*/
|
|
559
297
|
expose(caller: string, input: {
|
|
560
298
|
provider: string;
|
|
@@ -564,25 +302,9 @@ export declare class HubState {
|
|
|
564
302
|
}): {
|
|
565
303
|
exposed: true;
|
|
566
304
|
slot: string;
|
|
567
|
-
} | {
|
|
568
|
-
exposed: false;
|
|
569
|
-
slot: string;
|
|
570
|
-
requestId: string;
|
|
571
305
|
};
|
|
572
306
|
/** Remove a slot made by `expose`, with its binding: its consumer, its provider or a manager may. */
|
|
573
307
|
unexpose(caller: string, to: string, slot: string): void;
|
|
574
|
-
/**
|
|
575
|
-
* Ask for a binding the caller holds one end of; it goes to the other end's approvers. Asking
|
|
576
|
-
* again for the same wiring while a request is open returns that request.
|
|
577
|
-
*/
|
|
578
|
-
request(caller: string, wiring: Wiring, reason: string): RequestRecord;
|
|
579
|
-
/** The open requests the caller could approve. */
|
|
580
|
-
requests(caller: string): RequestRecord[];
|
|
581
|
-
/** The caller's own requests with how each stands, newest first. */
|
|
582
|
-
mine(caller: string, limit?: number): (RequestRecord & {
|
|
583
|
-
status: "open" | Decision;
|
|
584
|
-
})[];
|
|
585
|
-
decline(caller: string, requestId: string): void;
|
|
586
308
|
audit(since?: number, limit?: number): {
|
|
587
309
|
entries: AuditRecord[];
|
|
588
310
|
next: number;
|