flavor-code 1.2.15 → 1.2.17

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.
@@ -6,8 +6,8 @@
6
6
  <meta name="color-scheme" content="light" />
7
7
  <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self' http://127.0.0.1:* http://localhost:* ws://127.0.0.1:* ws://localhost:*; frame-src http://127.0.0.1:* http://localhost:*" />
8
8
  <title>Flavor Code</title>
9
- <script type="module" crossorigin src="./assets/index-BCJjMvbX.js"></script>
10
- <link rel="stylesheet" crossorigin href="./assets/index-CPxt3vFY.css">
9
+ <script type="module" crossorigin src="./assets/index-BmXr_vX3.js"></script>
10
+ <link rel="stylesheet" crossorigin href="./assets/index-DEL8gXBO.css">
11
11
  </head>
12
12
  <body>
13
13
  <div id="root"></div>
package/dist/sdk/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  FlavorRpcServer,
5
5
  TraceRecordSchema,
6
6
  TraceRecorder
7
- } from "../chunk-BKARQJQZ.js";
7
+ } from "../chunk-YRIPE5K5.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-5TG3E2EJ.js";
16
+ } from "../chunk-QQCXJC4U.js";
17
17
  import "../chunk-IG4Z23CL.js";
18
18
  import "../chunk-RQTYHUMK.js";
19
19
  import "../chunk-S32JRDZK.js";
@@ -55,6 +55,17 @@ export declare function normalizeShellCommand(input: {
55
55
  command: string;
56
56
  args: string[];
57
57
  };
58
+ type WindowsShellKind = "pwsh" | "powershell" | "cmd";
59
+ /**
60
+ * Build the command line handed to cmd.exe via `spawn(shell: true)` on Windows.
61
+ * `commandLine` is the pre-quoted line used directly for the cmd.exe fallback.
62
+ *
63
+ * For PowerShell we do not pass the raw line through cmd: `-EncodedCommand`
64
+ * (UTF-16LE base64) carries the script untouched, so arguments with spaces,
65
+ * quotes or `&` reach the child program exactly as given. `chcp 65001` keeps
66
+ * the console code page UTF-8 so redirected pipes decode consistently.
67
+ */
68
+ export declare function buildWindowsCommandLine(kind: WindowsShellKind, commandLine: string, command: string, args: readonly string[]): string;
58
69
  export declare function createShellTool(workspace: string, options?: ShellToolOptions): ShellTool;
59
70
  export declare function executeShell(root: string, input: z.infer<typeof ShellInput>, cancellation: AbortSignal, maxBytes: number, onOutput?: (stream: "stdout" | "stderr", text: string) => void): Promise<ShellResult>;
60
71
  export {};
@@ -1,4 +1,4 @@
1
- export declare const MVP_COMMANDS: readonly ["model", "init", "config", "login", "permissions", "skills", "plugins", "hooks", "tasks", "finish", "compact", "clear", "help", "exit", "audit", "usage", "loop", "goal", "evolve", "mcp", "commit", "review", "ide", "memory", "remember", "forget", "forget-cold", "checkpoint", "tree", "rewind", "unrevert", "fork", "pals", "chat", "co-work"];
1
+ export declare const MVP_COMMANDS: readonly ["model", "init", "config", "login", "logout", "permissions", "skills", "plugins", "hooks", "tasks", "finish", "compact", "clear", "help", "exit", "audit", "usage", "loop", "goal", "evolve", "mcp", "commit", "review", "ide", "memory", "remember", "forget", "forget-cold", "checkpoint", "tree", "rewind", "unrevert", "fork", "pals", "chat", "co-work"];
2
2
  export declare const COMMAND_DESCRIPTIONS: Record<(typeof MVP_COMMANDS)[number], string>;
3
3
  export type PermissionCommandMode = PermissionMode;
4
4
  export type ModelRole = "main" | "subagent";
@@ -153,6 +153,7 @@ export interface SessionServices {
153
153
  output(event: SessionOutput): void;
154
154
  questions: QuestionBridge;
155
155
  login(): Promise<string>;
156
+ logout(): Promise<string>;
156
157
  pals?: PalSessionServices;
157
158
  }
158
159
  export interface MultimodalSessionInput {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flavor-code",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "author": "YachuanWzh",
5
5
  "type": "module",
6
6
  "publishConfig": {