@rynx-ai/daemon 0.1.11-beta.3 → 0.1.11-beta.31
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/bundled-plugins/plugins/lark/.rynx-plugin/plugin.json +0 -12
- package/bundled-plugins/plugins/lark/dist/cli-mirror/mirror-index.js +3 -1
- package/bundled-plugins/plugins/lark/dist/host-adapters.d.ts +3 -3
- package/bundled-plugins/plugins/lark/dist/host-adapters.js +24 -18
- package/bundled-plugins/plugins/lark/dist/lark.js +18 -12
- package/bundled-plugins/plugins/lark/dist/runtime.js +6046 -6018
- package/bundled-plugins/plugins/lark/dist/settings.js +6006 -5987
- package/bundled-plugins/plugins/lark/package.json +1 -1
- package/bundled-plugins/plugins/lark/ui/assets/index-CGUVAMsv.css +1 -0
- package/bundled-plugins/plugins/lark/ui/index.html +2 -2
- package/dist/agent-file.js +0 -1
- package/dist/browser-artifact-management.js +4 -1
- package/dist/chrome-for-testing-runtime.js +4 -3
- package/dist/chrome-for-testing-store.js +29 -7
- package/dist/control-deps.d.ts +6 -2
- package/dist/control-deps.js +87 -4
- package/dist/control-link-store.js +4 -3
- package/dist/daemon-owner.js +4 -7
- package/dist/daemon-server.js +41 -16
- package/dist/db.d.ts +2 -2
- package/dist/db.js +155 -21
- package/dist/headless-browser-host.js +283 -34
- package/dist/lifecycle.d.ts +1 -0
- package/dist/lifecycle.js +3 -0
- package/dist/migrations/cleanup-legacy-sessions.js +4 -3
- package/dist/plugin-cli.d.ts +10 -0
- package/dist/plugin-cli.js +19 -2
- package/dist/plugin-host-rpc.d.ts +48 -9
- package/dist/plugin-host-rpc.js +552 -80
- package/dist/plugin-installer.js +3 -2
- package/dist/plugin-management-service.js +0 -2
- package/dist/plugin-marketplace.js +2 -1
- package/dist/plugin-store.js +2 -4
- package/dist/plugin-supervisor.js +0 -4
- package/dist/remote-runtime-access-store.d.ts +2 -2
- package/dist/remote-runtime-access-store.js +6 -9
- package/dist/remote-runtime-connection-manager.js +1 -1
- package/dist/remote-runtime-target-store.d.ts +2 -2
- package/dist/remote-runtime-target-store.js +6 -6
- package/dist/session-emulator-binding-store.js +4 -6
- package/dist/session-fork-store.d.ts +1 -0
- package/dist/session-fork-store.js +82 -28
- package/dist/session-launch-operations.js +6 -5
- package/dist/session-log-store.d.ts +1 -0
- package/dist/session-log-store.js +19 -16
- package/dist/session-meta-store.d.ts +5 -0
- package/dist/session-meta-store.js +25 -2
- package/dist/session-portal-grant-store.d.ts +55 -0
- package/dist/session-portal-grant-store.js +160 -0
- package/dist/session-resource-store.d.ts +24 -6
- package/dist/session-resource-store.js +386 -68
- package/dist/session-timeline-projection-store.d.ts +24 -0
- package/dist/session-timeline-projection-store.js +53 -0
- package/dist/setup-service.d.ts +1 -0
- package/dist/setup-service.js +1 -0
- package/dist/skills-catalog.d.ts +11 -2
- package/dist/skills-catalog.js +317 -10
- package/dist/sqlite.d.ts +22 -0
- package/dist/sqlite.js +57 -0
- package/dist/system-dependencies.d.ts +22 -0
- package/dist/system-dependencies.js +79 -0
- package/package.json +15 -12
- package/bundled-plugins/plugins/lark/ui/assets/index-B2dhMlMU.css +0 -1
- /package/bundled-plugins/plugins/lark/ui/assets/{index-D9N-AkLX.js → index-D8Amoe6a.js} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { type AdmissionReservation, type AgentSpec, type AgentCapabilities, type AgentRuntimeId, type AgentSessionStore, type
|
|
2
|
-
import { type PluginAgentSummary, type
|
|
1
|
+
import { type AdmissionReservation, type AgentSpec, type AgentCapabilities, type AgentRuntimeId, type AgentSessionStore, type ResolvedExecutionSnapshot, type RuntimeCollaborationMode, type SessionRegistry, type SessionWorkspaceSnapshot, type SteerSignal } from "@rynx-ai/core";
|
|
2
|
+
import { type PluginAgentSummary, type PluginHostEvent, type PluginSessionActivitySnapshot, type PluginResolvedSessionExecution, type PluginSessionExecutionSnapshot, type PluginSessionInteractionResolveDisposition } from "@rynx-ai/plugin-sdk";
|
|
3
3
|
import type { SessionInteractionResolution } from "@rynx-ai/protocol";
|
|
4
|
+
import { type RuntimeBrowserRequestHeadersGetParams, type RuntimeBrowserRequestHeadersPolicy, type RuntimeBrowserRequestHeadersSetParams } from "@rynx-ai/protocol/runtime-browser";
|
|
5
|
+
import { type MachineSessionMessageInput, type StartedMachineSessionRun } from "@rynx-ai/server";
|
|
4
6
|
import { PluginRunnerError } from "@rynx-ai/plugin-runner";
|
|
5
7
|
/** Leaves ample room for the RPC envelope below the runner's 1 MiB line cap. */
|
|
6
8
|
export declare const MAX_PLUGIN_HOST_EVENT_BYTES: number;
|
|
@@ -22,7 +24,7 @@ export interface PluginSessionLaunchSelection {
|
|
|
22
24
|
agent?: string;
|
|
23
25
|
config?: AgentSpec;
|
|
24
26
|
provider?: AgentRuntimeId;
|
|
25
|
-
model?: string;
|
|
27
|
+
model?: string | null;
|
|
26
28
|
reasoningEffort?: string;
|
|
27
29
|
title?: string;
|
|
28
30
|
}
|
|
@@ -37,7 +39,20 @@ export interface PluginHostServices {
|
|
|
37
39
|
publicKey: string;
|
|
38
40
|
sign(pluginId: string, challenge: string): string;
|
|
39
41
|
};
|
|
40
|
-
|
|
42
|
+
sessionRuns: {
|
|
43
|
+
startRun: (sessionId: string, input: string | MachineSessionMessageInput, options?: {
|
|
44
|
+
signal?: AbortSignal;
|
|
45
|
+
steer?: SteerSignal;
|
|
46
|
+
collaborationMode?: RuntimeCollaborationMode;
|
|
47
|
+
}) => Promise<StartedMachineSessionRun>;
|
|
48
|
+
};
|
|
49
|
+
sessionFiles: {
|
|
50
|
+
resolveResourcePath(sessionId: string, resourceId: string): Promise<string>;
|
|
51
|
+
};
|
|
52
|
+
sessionBrowserRequestHeaders?: {
|
|
53
|
+
getRequestHeaders(input: RuntimeBrowserRequestHeadersGetParams): Promise<RuntimeBrowserRequestHeadersPolicy>;
|
|
54
|
+
setRequestHeaders(input: RuntimeBrowserRequestHeadersSetParams): Promise<RuntimeBrowserRequestHeadersPolicy>;
|
|
55
|
+
};
|
|
41
56
|
capabilities: AgentCapabilities;
|
|
42
57
|
sessionStore: AgentSessionStore;
|
|
43
58
|
sessionRegistry: SessionRegistry;
|
|
@@ -45,8 +60,25 @@ export interface PluginHostServices {
|
|
|
45
60
|
sessionLaunch: {
|
|
46
61
|
resolve(input: PluginSessionLaunchSelection): Promise<PluginResolvedSessionLaunch>;
|
|
47
62
|
};
|
|
63
|
+
sessionExecution: {
|
|
64
|
+
update(input: {
|
|
65
|
+
sessionId: string;
|
|
66
|
+
model: string | null;
|
|
67
|
+
reasoningEffort: string | null;
|
|
68
|
+
}): Promise<void>;
|
|
69
|
+
};
|
|
70
|
+
sessionActivity(sessionId: string): PluginSessionActivitySnapshot | Promise<PluginSessionActivitySnapshot>;
|
|
48
71
|
interruptSession?(sessionId: string): Promise<boolean>;
|
|
49
72
|
terminateSession?(sessionId: string): Promise<boolean>;
|
|
73
|
+
sessionTimeline?: {
|
|
74
|
+
hasItem(sessionId: string, itemId: string): Promise<boolean>;
|
|
75
|
+
projectText(input: {
|
|
76
|
+
sessionId: string;
|
|
77
|
+
responseId: string;
|
|
78
|
+
itemId: string;
|
|
79
|
+
text: string;
|
|
80
|
+
}): Promise<void>;
|
|
81
|
+
};
|
|
50
82
|
resolveSessionInteraction?(sessionId: string, interactionId: string, resolution: SessionInteractionResolution): Promise<{
|
|
51
83
|
disposition: PluginSessionInteractionResolveDisposition;
|
|
52
84
|
}>;
|
|
@@ -60,6 +92,11 @@ export interface PluginHostServices {
|
|
|
60
92
|
}>;
|
|
61
93
|
admissionOpen?: () => boolean;
|
|
62
94
|
admissionReserve?: () => AdmissionReservation | undefined;
|
|
95
|
+
sessionPortal?: {
|
|
96
|
+
scheme: "http" | "https";
|
|
97
|
+
bindHost: string;
|
|
98
|
+
port: number;
|
|
99
|
+
};
|
|
63
100
|
}
|
|
64
101
|
export interface PluginHostRpcOptions {
|
|
65
102
|
/** Manifest id returned by host.info. */
|
|
@@ -69,7 +106,6 @@ export interface PluginHostRpcOptions {
|
|
|
69
106
|
daemonInstanceId: string;
|
|
70
107
|
productVersion: string;
|
|
71
108
|
cliVersion: string;
|
|
72
|
-
capabilities: readonly PluginCapability[];
|
|
73
109
|
services: PluginHostServices;
|
|
74
110
|
/** Canonical plugin-owned root permitted for the Workspace plugin's isolated
|
|
75
111
|
* Session directory. Omitted for every other plugin. */
|
|
@@ -80,7 +116,7 @@ export interface PluginHostRpcOptions {
|
|
|
80
116
|
disposeForceAfterMs?: number;
|
|
81
117
|
}
|
|
82
118
|
/**
|
|
83
|
-
* One authenticated plugin's
|
|
119
|
+
* One authenticated plugin's Host RPC surface.
|
|
84
120
|
*
|
|
85
121
|
* This adapter is deliberately the only place that maps public string methods
|
|
86
122
|
* to trusted runtime objects. The runner receives neither this class nor its
|
|
@@ -92,7 +128,6 @@ export declare class PluginHostRpc {
|
|
|
92
128
|
private readonly daemonInstanceId;
|
|
93
129
|
private readonly productVersion;
|
|
94
130
|
private readonly cliVersion;
|
|
95
|
-
private readonly capabilities;
|
|
96
131
|
private readonly services;
|
|
97
132
|
private readonly managedWorkspaceRoot;
|
|
98
133
|
private readonly emit;
|
|
@@ -113,11 +148,11 @@ export declare class PluginHostRpc {
|
|
|
113
148
|
private runSession;
|
|
114
149
|
private runSessionAdmitted;
|
|
115
150
|
private pumpRun;
|
|
151
|
+
private projectSessionFileEvent;
|
|
116
152
|
private releaseRun;
|
|
117
|
-
private steerSession;
|
|
118
153
|
private interruptRun;
|
|
154
|
+
private sessionActivity;
|
|
119
155
|
private interruptWon;
|
|
120
|
-
private activeRun;
|
|
121
156
|
private activeRunByIdentity;
|
|
122
157
|
private getBinding;
|
|
123
158
|
private listBindings;
|
|
@@ -129,8 +164,12 @@ export declare class PluginHostRpc {
|
|
|
129
164
|
private reserveAdmission;
|
|
130
165
|
private withAdmission;
|
|
131
166
|
private setSessionTitle;
|
|
167
|
+
private getSessionBrowserRequestHeaders;
|
|
168
|
+
private setSessionBrowserRequestHeaders;
|
|
132
169
|
private resolveAgentExecution;
|
|
133
170
|
private issueControlLink;
|
|
171
|
+
private issueSessionPortalLink;
|
|
172
|
+
private projectTimelineText;
|
|
134
173
|
private ownedSession;
|
|
135
174
|
private isOwned;
|
|
136
175
|
}
|