flavor-code 1.3.0 → 1.3.2
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 +3 -1
- package/README.zh-CN.md +3 -1
- package/dist/{app-FOPTLLK5.js → app-F6FEEF46.js} +1 -1
- package/dist/{chunk-IX65GYUF.js → chunk-DFSMJ5SX.js} +1 -1
- package/dist/{chunk-KL4UHJ2Q.js → chunk-Q5EQ4T3F.js} +79 -10
- package/dist/cli.js +21 -5
- package/dist/desktop/main.js +1356 -157
- package/dist/desktop/pals-broker-entry.js +1308 -0
- package/dist/desktop/preload.cjs +91 -2
- package/dist/desktop-renderer/assets/index--vSisKu7.css +1 -0
- package/dist/desktop-renderer/assets/index-ByWADjgv.js +154 -0
- package/dist/desktop-renderer/assets/interactive-terminal-BAwIPsif.js +35 -0
- package/dist/desktop-renderer/index.html +3 -3
- package/dist/pals/broker-cli.d.ts +8 -0
- package/dist/production.d.ts +6 -1
- package/dist/sdk/index.js +2 -2
- package/dist/ui/session.d.ts +2 -0
- package/package.json +10 -7
- package/dist/desktop-renderer/assets/index-BmXr_vX3.js +0 -151
- package/dist/desktop-renderer/assets/index-DEL8gXBO.css +0 -1
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<meta name="color-scheme" content="light" />
|
|
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:*" />
|
|
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:* http://[::1]:* ws://127.0.0.1:* ws://localhost:* ws://[::1]:*; frame-src http://127.0.0.1:* http://localhost:* http://[::1]:*" />
|
|
8
8
|
<title>Flavor Code</title>
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="./assets/index
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-ByWADjgv.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="./assets/index--vSisKu7.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|
|
@@ -14,5 +14,13 @@ export interface EnsurePalBrokerOptions {
|
|
|
14
14
|
retryDelayMs?: number;
|
|
15
15
|
startBroker?: () => Promise<void>;
|
|
16
16
|
}
|
|
17
|
+
export interface SpawnPalBrokerProcessOptions {
|
|
18
|
+
address: string;
|
|
19
|
+
executable: string;
|
|
20
|
+
args: readonly string[];
|
|
21
|
+
environment?: NodeJS.ProcessEnv;
|
|
22
|
+
}
|
|
23
|
+
/** Start a detached broker entry under an embedder-selected runtime. */
|
|
24
|
+
export declare function spawnPalBrokerProcess(options: SpawnPalBrokerProcessOptions): Promise<void>;
|
|
17
25
|
export declare function runPalBroker(options: RunPalBrokerOptions): Promise<RunningPalBroker>;
|
|
18
26
|
export declare function ensurePalBrokerRunning(options: EnsurePalBrokerOptions): Promise<void>;
|
package/dist/production.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { ToolDefinition } from "./tools/types.js";
|
|
|
9
9
|
import { FlavorSession, type SessionOutput, type SessionServices } from "./ui/session.js";
|
|
10
10
|
import { type TranscriptState } from "./ui/transcript.js";
|
|
11
11
|
import { MemoryReviewBridge } from "./memory/review.js";
|
|
12
|
-
import { type JobSnapshot } from "./jobs/registry.js";
|
|
12
|
+
import { type JobReadResult, type JobSnapshot } from "./jobs/registry.js";
|
|
13
13
|
import { type PalClientLike } from "./pals/tools.js";
|
|
14
14
|
/**
|
|
15
15
|
* Per-step shutdown budget. On Windows a hung child-process pipe, named pipe,
|
|
@@ -44,6 +44,10 @@ export interface ProductionRuntimeOptions {
|
|
|
44
44
|
collaboration?: {
|
|
45
45
|
instanceId: string;
|
|
46
46
|
alias?: string;
|
|
47
|
+
/** Optional integrations degrade to diagnostics instead of blocking runtime startup. */
|
|
48
|
+
optional?: boolean;
|
|
49
|
+
/** Embedder-owned broker starter, used by Electron where process.argv points at the desktop entry. */
|
|
50
|
+
startBroker?: (address: string) => Promise<void>;
|
|
47
51
|
client?: PalClientLike;
|
|
48
52
|
createClient?: (input: {
|
|
49
53
|
instanceId: string;
|
|
@@ -66,6 +70,7 @@ export interface ProductionRuntime {
|
|
|
66
70
|
restoredTranscript: TranscriptState;
|
|
67
71
|
jobs: {
|
|
68
72
|
list(): readonly JobSnapshot[];
|
|
73
|
+
read(id: string, owner: string, cursor?: number): JobReadResult;
|
|
69
74
|
subscribe(listener: (jobs: readonly JobSnapshot[]) => void): () => void;
|
|
70
75
|
};
|
|
71
76
|
dispose(): Promise<void>;
|
package/dist/sdk/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
FlavorRpcServer,
|
|
5
5
|
TraceRecordSchema,
|
|
6
6
|
TraceRecorder
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-DFSMJ5SX.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-
|
|
16
|
+
} from "../chunk-Q5EQ4T3F.js";
|
|
17
17
|
import "../chunk-IG4Z23CL.js";
|
|
18
18
|
import "../chunk-RQTYHUMK.js";
|
|
19
19
|
import "../chunk-S32JRDZK.js";
|
package/dist/ui/session.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export interface PalSessionServices {
|
|
|
89
89
|
list(verbose: boolean): Promise<unknown>;
|
|
90
90
|
rename(alias: string): Promise<unknown>;
|
|
91
91
|
info(target: string): Promise<unknown>;
|
|
92
|
+
sendChat?(target: string, message: string): Promise<unknown>;
|
|
92
93
|
sendTask(target: string, goal: string): Promise<unknown>;
|
|
93
94
|
startCoWork(target: string, goal: string): Promise<unknown>;
|
|
94
95
|
coWorkStatus(coWorkId?: string): Promise<unknown>;
|
|
@@ -137,6 +138,7 @@ export interface SessionServices {
|
|
|
137
138
|
clearContext(): void | Promise<void>;
|
|
138
139
|
checkpoint?(label?: string): Promise<SessionTreeNode>;
|
|
139
140
|
tree?(): readonly SessionTreeNode[];
|
|
141
|
+
historyLeaf?(): string | null;
|
|
140
142
|
rewind?(nodeId: string): Promise<void>;
|
|
141
143
|
unrevert?(): Promise<void>;
|
|
142
144
|
fork?(nodeId: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flavor-code",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"author": "YachuanWzh",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"desktop:start": "npm run build && electron .",
|
|
45
45
|
"desktop:pack": "npm run build && electron-builder --win --dir",
|
|
46
46
|
"desktop:dist": "npm run build && electron-builder --win nsis",
|
|
47
|
-
"test": "vitest run",
|
|
48
|
-
"test:reliability": "vitest run tests/harness/journal.test.ts tests/context/manager.test.ts tests/session/store.test.ts tests/permissions/policy.test.ts tests/goal/classifier.test.ts tests/goal/orchestrator.test.ts",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"test:reliability": "vitest run tests/harness/journal.test.ts tests/context/manager.test.ts tests/session/store.test.ts tests/permissions/policy.test.ts tests/goal/classifier.test.ts tests/goal/orchestrator.test.ts",
|
|
49
49
|
"test:watch": "vitest",
|
|
50
50
|
"test:desktop:e2e": "npm run build:desktop && node tests/desktop/electron-app.e2e.mjs",
|
|
51
51
|
"typecheck": "tsc --noEmit",
|
|
@@ -57,10 +57,11 @@
|
|
|
57
57
|
"appId": "dev.flavorcode.desktop",
|
|
58
58
|
"productName": "Flavor Code",
|
|
59
59
|
"asar": true,
|
|
60
|
-
"asarUnpack": [
|
|
61
|
-
"dist/desktop/pixel-worker.js",
|
|
62
|
-
"dist/desktop/plugin-worker-entry.js"
|
|
63
|
-
|
|
60
|
+
"asarUnpack": [
|
|
61
|
+
"dist/desktop/pixel-worker.js",
|
|
62
|
+
"dist/desktop/plugin-worker-entry.js",
|
|
63
|
+
"dist/desktop/pals-broker-entry.js"
|
|
64
|
+
],
|
|
64
65
|
"icon": "assets/icon",
|
|
65
66
|
"directories": {
|
|
66
67
|
"output": "release"
|
|
@@ -95,6 +96,8 @@
|
|
|
95
96
|
"@anthropic-ai/sdk": "^0.111.0",
|
|
96
97
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
97
98
|
"@vscode/ripgrep": "^1.18.0",
|
|
99
|
+
"@xterm/addon-fit": "^0.11.0",
|
|
100
|
+
"@xterm/xterm": "^6.0.0",
|
|
98
101
|
"bidi-js": "^1.0.3",
|
|
99
102
|
"chalk": "^5.6.2",
|
|
100
103
|
"commander": "^15.0.0",
|