@alphacoder-v0/pi-loops 0.17.5 → 0.18.0
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/CHANGELOG.md +53 -0
- package/README.md +11 -3
- package/README.zh-CN.md +17 -3
- package/docs/agents/issue-tracker.md +34 -0
- package/docs/cli.md +16 -0
- package/docs/design.md +43 -0
- package/docs/recipes.md +239 -0
- package/docs/web-ui-parity.md +2 -0
- package/package.json +3 -2
- package/recipes/_tracker/issue-tracker-github.md +31 -0
- package/recipes/_tracker/issue-tracker-local.md +38 -0
- package/recipes/_tracker-setup.md +12 -0
- package/recipes/autoresearch/README.md +27 -0
- package/recipes/autoresearch/RESEARCH.template.md +37 -0
- package/recipes/autoresearch/example/RESEARCH.md +31 -0
- package/recipes/autoresearch/example/eval.py +60 -0
- package/recipes/autoresearch/example/eval.sh +3 -0
- package/recipes/autoresearch/example/solution.py +20 -0
- package/recipes/autoresearch/experiment.md +82 -0
- package/recipes/autoresearch/recipe.toml +15 -0
- package/recipes/changelog-draft/recipe.toml +9 -0
- package/recipes/changelog-draft/release.md +35 -0
- package/recipes/issue-loop/README.md +16 -0
- package/recipes/issue-loop/implement.md +135 -0
- package/recipes/issue-loop/labels.sh +21 -0
- package/recipes/issue-loop/recipe.toml +18 -0
- package/recipes/issue-loop/triage.md +147 -0
- package/skills/pi-loops/SKILL.md +1 -0
- package/src/cli.ts +66 -1
- package/src/extension-entry.ts +24 -0
- package/src/pi-floor.ts +37 -0
- package/src/pi-loops.ts +321 -0
- package/src/recipe.ts +651 -0
- package/src/store.ts +2 -0
- package/src/tools.ts +3 -0
- package/src/web.mjs +5 -1
package/src/web.mjs
CHANGED
|
@@ -1363,7 +1363,11 @@ const server = http.createServer(async (req, res) => {
|
|
|
1363
1363
|
// Submitting while a turn runs queues instead of racing it, as the TUI does.
|
|
1364
1364
|
const type = mode === "steer" ? "steer" : mode === "follow_up" ? "follow_up" : "prompt";
|
|
1365
1365
|
const message = expandMentions(text ?? "", sessionCwd);
|
|
1366
|
-
|
|
1366
|
+
// pi answers a prompt command when the command has *finished*, and a slash command may
|
|
1367
|
+
// sit in a dialog for as long as a person takes to read what it shows (a setup script,
|
|
1368
|
+
// say). Sixty seconds reported that as "timed out" while the command went on to succeed.
|
|
1369
|
+
const patience = message.trimStart().startsWith("/") ? 15 * 60_000 : undefined;
|
|
1370
|
+
return void json(res, await rpc({ type, message, ...(images?.length ? { images } : {}) }, patience));
|
|
1367
1371
|
}
|
|
1368
1372
|
if (url.pathname === "/model" && req.method === "POST") {
|
|
1369
1373
|
// Recorded below, once pi has accepted it.
|