flavor-code 1.3.6 → 1.3.7

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.
@@ -0,0 +1,21 @@
1
+ export interface IslandControllableSession {
2
+ steer(message: string): void;
3
+ followUp(message: string): void;
4
+ interrupt(): "cancelled" | "exit";
5
+ }
6
+ export interface IslandControlServerOptions {
7
+ sessionId: string;
8
+ session: IslandControllableSession;
9
+ focus?: () => void | Promise<void>;
10
+ endpoint?: string;
11
+ token?: string;
12
+ platform?: NodeJS.Platform;
13
+ }
14
+ export interface IslandControlServer {
15
+ readonly endpoint: string;
16
+ readonly token: string;
17
+ readonly capabilities: readonly ("abort" | "steer" | "follow_up" | "focus")[];
18
+ close(): Promise<void>;
19
+ }
20
+ export declare function islandControlEndpoint(sessionId: string, platform?: NodeJS.Platform): string;
21
+ export declare function createIslandControlServer(options: IslandControlServerOptions): Promise<IslandControlServer>;
@@ -40,6 +40,10 @@ export interface ProductionRuntimeOptions {
40
40
  /** Opt into Worker/vm isolation. The compatibility default remains false
41
41
  * until sandbox capabilities cover the Node.js APIs used by bundled plugins. */
42
42
  pluginSandbox?: boolean;
43
+ /** Optional host affordance exposed to the local Flavor Island control channel. */
44
+ islandControl?: {
45
+ focus?(): void | Promise<void>;
46
+ };
43
47
  /** Explicitly opt into CLI-local collaboration. Omit for print/RPC/eval callers. */
44
48
  collaboration?: {
45
49
  instanceId: string;
package/dist/sdk/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  FlavorRpcServer,
5
5
  TraceRecordSchema,
6
6
  TraceRecorder
7
- } from "../chunk-ZCEUFSHA.js";
7
+ } from "../chunk-VPJ7KY3T.js";
8
8
  import {
9
9
  AgentMessageQueue,
10
10
  DockerExecutionEnvironment,
@@ -13,7 +13,7 @@ import {
13
13
  WorkspaceCheckpointStore,
14
14
  buildDockerInvocation,
15
15
  createProductionRuntime
16
- } from "../chunk-BR3CWUYR.js";
16
+ } from "../chunk-K2AOT2BI.js";
17
17
  import "../chunk-IG4Z23CL.js";
18
18
  import "../chunk-RQTYHUMK.js";
19
19
  import "../chunk-S32JRDZK.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flavor-code",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "author": "YachuanWzh",
5
5
  "type": "module",
6
6
  "publishConfig": {