@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.
Files changed (64) hide show
  1. package/bundled-plugins/plugins/lark/.rynx-plugin/plugin.json +0 -12
  2. package/bundled-plugins/plugins/lark/dist/cli-mirror/mirror-index.js +3 -1
  3. package/bundled-plugins/plugins/lark/dist/host-adapters.d.ts +3 -3
  4. package/bundled-plugins/plugins/lark/dist/host-adapters.js +24 -18
  5. package/bundled-plugins/plugins/lark/dist/lark.js +18 -12
  6. package/bundled-plugins/plugins/lark/dist/runtime.js +6046 -6018
  7. package/bundled-plugins/plugins/lark/dist/settings.js +6006 -5987
  8. package/bundled-plugins/plugins/lark/package.json +1 -1
  9. package/bundled-plugins/plugins/lark/ui/assets/index-CGUVAMsv.css +1 -0
  10. package/bundled-plugins/plugins/lark/ui/index.html +2 -2
  11. package/dist/agent-file.js +0 -1
  12. package/dist/browser-artifact-management.js +4 -1
  13. package/dist/chrome-for-testing-runtime.js +4 -3
  14. package/dist/chrome-for-testing-store.js +29 -7
  15. package/dist/control-deps.d.ts +6 -2
  16. package/dist/control-deps.js +87 -4
  17. package/dist/control-link-store.js +4 -3
  18. package/dist/daemon-owner.js +4 -7
  19. package/dist/daemon-server.js +41 -16
  20. package/dist/db.d.ts +2 -2
  21. package/dist/db.js +155 -21
  22. package/dist/headless-browser-host.js +283 -34
  23. package/dist/lifecycle.d.ts +1 -0
  24. package/dist/lifecycle.js +3 -0
  25. package/dist/migrations/cleanup-legacy-sessions.js +4 -3
  26. package/dist/plugin-cli.d.ts +10 -0
  27. package/dist/plugin-cli.js +19 -2
  28. package/dist/plugin-host-rpc.d.ts +48 -9
  29. package/dist/plugin-host-rpc.js +552 -80
  30. package/dist/plugin-installer.js +3 -2
  31. package/dist/plugin-management-service.js +0 -2
  32. package/dist/plugin-marketplace.js +2 -1
  33. package/dist/plugin-store.js +2 -4
  34. package/dist/plugin-supervisor.js +0 -4
  35. package/dist/remote-runtime-access-store.d.ts +2 -2
  36. package/dist/remote-runtime-access-store.js +6 -9
  37. package/dist/remote-runtime-connection-manager.js +1 -1
  38. package/dist/remote-runtime-target-store.d.ts +2 -2
  39. package/dist/remote-runtime-target-store.js +6 -6
  40. package/dist/session-emulator-binding-store.js +4 -6
  41. package/dist/session-fork-store.d.ts +1 -0
  42. package/dist/session-fork-store.js +82 -28
  43. package/dist/session-launch-operations.js +6 -5
  44. package/dist/session-log-store.d.ts +1 -0
  45. package/dist/session-log-store.js +19 -16
  46. package/dist/session-meta-store.d.ts +5 -0
  47. package/dist/session-meta-store.js +25 -2
  48. package/dist/session-portal-grant-store.d.ts +55 -0
  49. package/dist/session-portal-grant-store.js +160 -0
  50. package/dist/session-resource-store.d.ts +24 -6
  51. package/dist/session-resource-store.js +386 -68
  52. package/dist/session-timeline-projection-store.d.ts +24 -0
  53. package/dist/session-timeline-projection-store.js +53 -0
  54. package/dist/setup-service.d.ts +1 -0
  55. package/dist/setup-service.js +1 -0
  56. package/dist/skills-catalog.d.ts +11 -2
  57. package/dist/skills-catalog.js +317 -10
  58. package/dist/sqlite.d.ts +22 -0
  59. package/dist/sqlite.js +57 -0
  60. package/dist/system-dependencies.d.ts +22 -0
  61. package/dist/system-dependencies.js +79 -0
  62. package/package.json +15 -12
  63. package/bundled-plugins/plugins/lark/ui/assets/index-B2dhMlMU.css +0 -1
  64. /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 ConversationRuntime, type ResolvedExecutionSnapshot, type SessionRegistry, type SessionWorkspaceSnapshot } from "@rynx-ai/core";
2
- import { type PluginAgentSummary, type PluginCapability, type PluginHostEvent, type PluginResolvedSessionExecution, type PluginSessionExecutionSnapshot, type PluginSessionInteractionResolveDisposition } from "@rynx-ai/plugin-sdk";
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
- conversationRuntime: ConversationRuntime;
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 capability-gated Host RPC surface.
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
  }