poe-code 3.0.217 → 3.0.219
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/dist/index.js +5308 -3372
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +20 -11
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +20 -11
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/goose.js +20 -11
- package/dist/providers/goose.js.map +4 -4
- package/dist/providers/kimi.js +20 -11
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +20 -11
- package/dist/providers/opencode.js.map +4 -4
- package/dist/providers/poe-agent.js +388 -54
- package/dist/providers/poe-agent.js.map +4 -4
- package/package.json +2 -1
- package/packages/design-system/dist/components/help-formatter-plain.d.ts +1 -0
- package/packages/design-system/dist/components/help-formatter-plain.js +1 -1
- package/packages/design-system/dist/components/text.d.ts +1 -0
- package/packages/design-system/dist/components/text.js +8 -0
- package/packages/design-system/dist/dashboard/buffer.js +8 -1
- package/packages/design-system/dist/dashboard/keymap.d.ts +5 -0
- package/packages/design-system/dist/dashboard/keymap.js +146 -12
- package/packages/design-system/dist/dashboard/terminal.js +31 -0
- package/packages/design-system/dist/dashboard/types.d.ts +1 -0
- package/packages/design-system/dist/explorer/actions.d.ts +16 -0
- package/packages/design-system/dist/explorer/actions.js +39 -0
- package/packages/design-system/dist/explorer/demo.d.ts +13 -0
- package/packages/design-system/dist/explorer/demo.js +297 -0
- package/packages/design-system/dist/explorer/events.d.ts +61 -0
- package/packages/design-system/dist/explorer/events.js +1 -0
- package/packages/design-system/dist/explorer/filter.d.ts +10 -0
- package/packages/design-system/dist/explorer/filter.js +95 -0
- package/packages/design-system/dist/explorer/index.d.ts +8 -0
- package/packages/design-system/dist/explorer/index.js +8 -0
- package/packages/design-system/dist/explorer/jobs.d.ts +7 -0
- package/packages/design-system/dist/explorer/jobs.js +59 -0
- package/packages/design-system/dist/explorer/keymap.d.ts +21 -0
- package/packages/design-system/dist/explorer/keymap.js +363 -0
- package/packages/design-system/dist/explorer/layout.d.ts +20 -0
- package/packages/design-system/dist/explorer/layout.js +73 -0
- package/packages/design-system/dist/explorer/reducer.d.ts +9 -0
- package/packages/design-system/dist/explorer/reducer.js +704 -0
- package/packages/design-system/dist/explorer/render/detail.d.ts +4 -0
- package/packages/design-system/dist/explorer/render/detail.js +96 -0
- package/packages/design-system/dist/explorer/render/footer.d.ts +4 -0
- package/packages/design-system/dist/explorer/render/footer.js +49 -0
- package/packages/design-system/dist/explorer/render/header.d.ts +4 -0
- package/packages/design-system/dist/explorer/render/header.js +56 -0
- package/packages/design-system/dist/explorer/render/index.d.ts +8 -0
- package/packages/design-system/dist/explorer/render/index.js +61 -0
- package/packages/design-system/dist/explorer/render/list.d.ts +4 -0
- package/packages/design-system/dist/explorer/render/list.js +106 -0
- package/packages/design-system/dist/explorer/render/modal.d.ts +3 -0
- package/packages/design-system/dist/explorer/render/modal.js +91 -0
- package/packages/design-system/dist/explorer/render/test-fixtures.d.ts +8 -0
- package/packages/design-system/dist/explorer/render/test-fixtures.js +156 -0
- package/packages/design-system/dist/explorer/runtime.d.ts +2 -0
- package/packages/design-system/dist/explorer/runtime.js +282 -0
- package/packages/design-system/dist/explorer/runtime.test-helpers.d.ts +50 -0
- package/packages/design-system/dist/explorer/runtime.test-helpers.js +101 -0
- package/packages/design-system/dist/explorer/state.d.ts +130 -0
- package/packages/design-system/dist/explorer/state.js +87 -0
- package/packages/design-system/dist/explorer/theme.d.ts +27 -0
- package/packages/design-system/dist/explorer/theme.js +97 -0
- package/packages/design-system/dist/index.d.ts +3 -0
- package/packages/design-system/dist/index.js +3 -0
- package/packages/memory/dist/index.js +9 -0
- package/packages/memory/dist/index.js.map +3 -3
|
@@ -4862,6 +4862,15 @@ import chalk8 from "chalk";
|
|
|
4862
4862
|
import readline from "node:readline";
|
|
4863
4863
|
import { PassThrough as PassThrough2 } from "node:stream";
|
|
4864
4864
|
|
|
4865
|
+
// packages/design-system/src/explorer/state.ts
|
|
4866
|
+
var REGION_HEADER = 1 << 0;
|
|
4867
|
+
var REGION_LIST = 1 << 1;
|
|
4868
|
+
var REGION_DETAIL = 1 << 2;
|
|
4869
|
+
var REGION_FOOTER = 1 << 3;
|
|
4870
|
+
var REGION_MODAL = 1 << 4;
|
|
4871
|
+
var REGION_TOAST = 1 << 5;
|
|
4872
|
+
var REGION_ALL = REGION_HEADER | REGION_LIST | REGION_DETAIL | REGION_FOOTER | REGION_MODAL | REGION_TOAST;
|
|
4873
|
+
|
|
4865
4874
|
// packages/design-system/src/prompts/index.ts
|
|
4866
4875
|
import chalk15 from "chalk";
|
|
4867
4876
|
import * as clack from "@clack/prompts";
|
|
@@ -4996,8 +5005,8 @@ async function runServiceInstall(definition, context) {
|
|
|
4996
5005
|
return true;
|
|
4997
5006
|
}
|
|
4998
5007
|
const platformSteps = filterStepsByPlatform(definition.steps, context.platform);
|
|
4999
|
-
for (const
|
|
5000
|
-
await runInstallStep(
|
|
5008
|
+
for (const step2 of platformSteps) {
|
|
5009
|
+
await runInstallStep(step2, context);
|
|
5001
5010
|
}
|
|
5002
5011
|
await definition.check.run(checkContext);
|
|
5003
5012
|
if (definition.postChecks) {
|
|
@@ -5010,8 +5019,8 @@ async function runServiceInstall(definition, context) {
|
|
|
5010
5019
|
);
|
|
5011
5020
|
return true;
|
|
5012
5021
|
}
|
|
5013
|
-
function describeInstallCommand(
|
|
5014
|
-
return `[${
|
|
5022
|
+
function describeInstallCommand(step2) {
|
|
5023
|
+
return `[${step2.id}] ${formatCommand2(step2.command, step2.args)}`;
|
|
5015
5024
|
}
|
|
5016
5025
|
function formatCommand2(command, args) {
|
|
5017
5026
|
return [command, ...args.map(quoteIfNeeded)].join(" ");
|
|
@@ -5027,24 +5036,24 @@ function quoteIfNeeded(value) {
|
|
|
5027
5036
|
}
|
|
5028
5037
|
function filterStepsByPlatform(steps, platform) {
|
|
5029
5038
|
return steps.filter(
|
|
5030
|
-
(
|
|
5039
|
+
(step2) => !step2.platforms || step2.platforms.includes(platform)
|
|
5031
5040
|
);
|
|
5032
5041
|
}
|
|
5033
5042
|
function logInstallDryRun(definition, context) {
|
|
5034
5043
|
context.logger(`Dry run: would install ${definition.summary}.`);
|
|
5035
5044
|
const platformSteps = filterStepsByPlatform(definition.steps, context.platform);
|
|
5036
|
-
for (const
|
|
5037
|
-
context.logger(`Dry run: ${describeInstallCommand(
|
|
5045
|
+
for (const step2 of platformSteps) {
|
|
5046
|
+
context.logger(`Dry run: ${describeInstallCommand(step2)}`);
|
|
5038
5047
|
}
|
|
5039
5048
|
}
|
|
5040
|
-
async function runInstallStep(
|
|
5041
|
-
context.logger(`Running ${describeInstallCommand(
|
|
5042
|
-
const result = await context.runCommand(
|
|
5049
|
+
async function runInstallStep(step2, context) {
|
|
5050
|
+
context.logger(`Running ${describeInstallCommand(step2)}`);
|
|
5051
|
+
const result = await context.runCommand(step2.command, step2.args);
|
|
5043
5052
|
if (result.exitCode !== 0) {
|
|
5044
5053
|
const stderr = result.stderr.trim();
|
|
5045
5054
|
const suffix = stderr.length > 0 ? `: ${stderr}` : "";
|
|
5046
5055
|
throw new Error(
|
|
5047
|
-
`${describeInstallCommand(
|
|
5056
|
+
`${describeInstallCommand(step2)} failed with exit code ${result.exitCode}${suffix}`
|
|
5048
5057
|
);
|
|
5049
5058
|
}
|
|
5050
5059
|
}
|