flavor-code 1.4.2 → 1.4.3
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 +53 -1
- package/README.zh-CN.md +53 -1
- package/dist/agent/loop.d.ts +1 -0
- package/dist/{app-4CUS3GEJ.js → app-TVY2HM5L.js} +891 -604
- package/dist/apply-WOW3QU5I.js +51 -0
- package/dist/broker-cli-X5H46FZV.js +15 -0
- package/dist/check-CSKTV4O2.js +16 -0
- package/dist/chunk-3563SW4X.js +10513 -0
- package/dist/chunk-36IDJRLQ.js +630 -0
- package/dist/chunk-3UX2CGDW.js +1955 -0
- package/dist/chunk-4TMLXZVZ.js +75 -0
- package/dist/{chunk-7YFHRORG.js → chunk-5BDKRA6U.js} +412 -172
- package/dist/chunk-6F66UXBI.js +48 -0
- package/dist/{chunk-KMBDK4SN.js → chunk-6URQ7FIF.js} +24 -88
- package/dist/chunk-7Y64WNBB.js +8930 -0
- package/dist/chunk-AA4QNKTF.js +501 -0
- package/dist/chunk-BDX777JR.js +11 -0
- package/dist/chunk-CVP5OUHD.js +103 -0
- package/dist/chunk-EWD7FWTH.js +14547 -0
- package/dist/{chunk-N5MXHJKD.js → chunk-GTFP2R5I.js} +1 -1
- package/dist/{chunk-W2TIY6JY.js → chunk-IKGT4MDT.js} +2028 -516
- package/dist/chunk-IQEEFDEE.js +389 -0
- package/dist/chunk-IU3UBETC.js +30 -0
- package/dist/chunk-JQM2L2YM.js +1003 -0
- package/dist/chunk-KRWWCVXA.js +74 -0
- package/dist/chunk-OKHV7CTB.js +482 -0
- package/dist/chunk-ONRY3C2L.js +196 -0
- package/dist/chunk-PULWAH6E.js +474 -0
- package/dist/chunk-PZ5NKRVA.js +85 -0
- package/dist/chunk-QACFKPZP.js +43704 -0
- package/dist/chunk-RBAZLFKB.js +1022 -0
- package/dist/chunk-RV3EXUXM.js +30 -0
- package/dist/chunk-TIEOVQW6.js +61 -0
- package/dist/chunk-WLZUAVVU.js +15 -0
- package/dist/chunk-X442CJJH.js +114 -0
- package/dist/chunk-X6U6BO5D.js +2130 -0
- package/dist/{chunk-RAYH6K2H.js → chunk-Y7EH4NVO.js} +1 -1
- package/dist/{chunk-S32JRDZK.js → chunk-ZKKVSR37.js} +6 -1
- package/dist/{claude-ink-VQU3C5UL.js → claude-ink-F554I3GJ.js} +9 -4
- package/dist/cli-MAWCV2YR.js +163 -0
- package/dist/cli-main.js +3805 -473
- package/dist/cli.js +50 -4
- package/dist/config/load.d.ts +8 -0
- package/dist/config/protected-file.d.ts +2 -0
- package/dist/config/schema.d.ts +14 -0
- package/dist/context/global-instructions.d.ts +12 -0
- package/dist/context/manager.d.ts +4 -0
- package/dist/desktop/main.js +4943 -1562
- package/dist/desktop/preload.cjs +30 -0
- package/dist/desktop-renderer/assets/index-BWklSoOO.css +1 -0
- package/dist/desktop-renderer/assets/index-CjC0Ibiq.js +153 -0
- package/dist/desktop-renderer/assets/{interactive-terminal-ouQQ3brz.js → interactive-terminal-IjIT3Xoa.js} +1 -1
- package/dist/desktop-renderer/index.html +2 -2
- package/dist/doctor-SEL32R7M.js +20 -0
- package/dist/harness/local.d.ts +1 -0
- package/dist/load-RHWXNUCS.js +25 -0
- package/dist/log-ATFIPRNU.js +19 -0
- package/dist/manager-IYBNNKUP.js +191 -0
- package/dist/models/anthropic.d.ts +3 -0
- package/dist/node-LOIXT44J.js +879 -0
- package/dist/plugin-worker-entry.js +1 -1
- package/dist/production-TQROFEPV.js +46 -0
- package/dist/production.d.ts +28 -1
- package/dist/project-3QXE22TG.js +11 -0
- package/dist/react-M6JGXSJZ.js +7 -0
- package/dist/recorder-FAGJJH3N.js +11 -0
- package/dist/sdk/index.js +30 -8
- package/dist/server-2KLKPHPL.js +11 -0
- package/dist/session/store.d.ts +1 -0
- package/dist/store-MZZERW7K.js +18 -0
- package/dist/ui/commands.d.ts +11 -3
- package/dist/ui/session.d.ts +2 -1
- package/dist/usage-summary-G5FBOJLK.js +13 -0
- package/dist/write-stream-CGD57URC.js +77 -0
- package/package.json +1 -1
- package//346/212/200/346/234/257/346/226/271/346/241/210/346/212/245/345/221/212.md +649 -1
- package/dist/chunk-B23V72YR.js +0 -170
- package/dist/chunk-QKND3FX7.js +0 -26103
- package/dist/desktop-renderer/assets/index-Bk6FYhyh.css +0 -1
- package/dist/desktop-renderer/assets/index-CPXrzFgv.js +0 -154
- package/dist/load-UPOG3XQR.js +0 -19
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as createFlavorRequire } from "node:module"; const require = createFlavorRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
prepareSpawnInvocation
|
|
5
|
+
} from "./chunk-PZ5NKRVA.js";
|
|
6
|
+
import {
|
|
7
|
+
NPM_PACKAGE_NAME,
|
|
8
|
+
fetchLatestVersion
|
|
9
|
+
} from "./chunk-6F66UXBI.js";
|
|
10
|
+
import {
|
|
11
|
+
gt,
|
|
12
|
+
isValidVersion
|
|
13
|
+
} from "./chunk-3UX2CGDW.js";
|
|
14
|
+
import {
|
|
15
|
+
packageVersion
|
|
16
|
+
} from "./chunk-RV3EXUXM.js";
|
|
17
|
+
import "./chunk-ZKKVSR37.js";
|
|
18
|
+
|
|
19
|
+
// src/update/apply.ts
|
|
20
|
+
import { spawn } from "child_process";
|
|
21
|
+
function npmExecutable(platform = process.platform) {
|
|
22
|
+
return platform === "win32" ? "npm.cmd" : "npm";
|
|
23
|
+
}
|
|
24
|
+
var defaultInstall = (command, args) => new Promise((resolve, reject) => {
|
|
25
|
+
const invocation = prepareSpawnInvocation(command, args);
|
|
26
|
+
const child = spawn(invocation.command, invocation.args, {
|
|
27
|
+
stdio: "inherit",
|
|
28
|
+
...invocation.windowsVerbatimArguments === void 0 ? {} : { windowsVerbatimArguments: invocation.windowsVerbatimArguments }
|
|
29
|
+
});
|
|
30
|
+
child.on("error", reject);
|
|
31
|
+
child.on("close", (code) => resolve(code));
|
|
32
|
+
});
|
|
33
|
+
async function runUpdate(options = {}) {
|
|
34
|
+
const current = options.current ?? packageVersion();
|
|
35
|
+
const latest = await fetchLatestVersion(options);
|
|
36
|
+
if (latest === void 0 || !isValidVersion(latest)) return { status: "check-failed", current };
|
|
37
|
+
if (!gt(latest, current)) return { status: "up-to-date", current, latest };
|
|
38
|
+
const install = options.install ?? defaultInstall;
|
|
39
|
+
let exitCode;
|
|
40
|
+
try {
|
|
41
|
+
exitCode = await install(npmExecutable(options.platform), ["install", "-g", `${NPM_PACKAGE_NAME}@${latest}`]);
|
|
42
|
+
} catch {
|
|
43
|
+
exitCode = null;
|
|
44
|
+
}
|
|
45
|
+
return exitCode === 0 ? { status: "updated", current, latest } : { status: "install-failed", current, latest, exitCode };
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
defaultInstall,
|
|
49
|
+
npmExecutable,
|
|
50
|
+
runUpdate
|
|
51
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as createFlavorRequire } from "node:module"; const require = createFlavorRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
ensurePalBrokerRunning,
|
|
5
|
+
runPalBroker,
|
|
6
|
+
spawnPalBrokerProcess
|
|
7
|
+
} from "./chunk-RBAZLFKB.js";
|
|
8
|
+
import "./chunk-IQEEFDEE.js";
|
|
9
|
+
import "./chunk-EWD7FWTH.js";
|
|
10
|
+
import "./chunk-ZKKVSR37.js";
|
|
11
|
+
export {
|
|
12
|
+
ensurePalBrokerRunning,
|
|
13
|
+
runPalBroker,
|
|
14
|
+
spawnPalBrokerProcess
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as createFlavorRequire } from "node:module"; const require = createFlavorRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
NPM_PACKAGE_NAME,
|
|
5
|
+
checkForUpdate,
|
|
6
|
+
fetchLatestVersion,
|
|
7
|
+
findNewerVersion
|
|
8
|
+
} from "./chunk-6F66UXBI.js";
|
|
9
|
+
import "./chunk-3UX2CGDW.js";
|
|
10
|
+
import "./chunk-ZKKVSR37.js";
|
|
11
|
+
export {
|
|
12
|
+
NPM_PACKAGE_NAME,
|
|
13
|
+
checkForUpdate,
|
|
14
|
+
fetchLatestVersion,
|
|
15
|
+
findNewerVersion
|
|
16
|
+
};
|