anywhere-ai 0.0.33 → 0.0.34
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/cli.js +4 -4
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17,11 +17,11 @@ var STATUS_PATH = path.join(ANYWHERE_DIR, "status.json");
|
|
|
17
17
|
var args = process.argv.slice(2);
|
|
18
18
|
var command = args.find((a) => !a.startsWith("-"));
|
|
19
19
|
if (args.includes("--version") || args.includes("-v")) {
|
|
20
|
-
console.log(`anywhere-ai v${"0.0.
|
|
20
|
+
console.log(`anywhere-ai v${"0.0.34"}`);
|
|
21
21
|
process.exit(0);
|
|
22
22
|
}
|
|
23
23
|
if (args.includes("--help") || args.includes("-h") || command === "help") {
|
|
24
|
-
console.log(`anywhere-ai v${"0.0.
|
|
24
|
+
console.log(`anywhere-ai v${"0.0.34"} \u2014 Mobile coding agent
|
|
25
25
|
|
|
26
26
|
Usage: npx anywhere-ai [command] [options]
|
|
27
27
|
|
|
@@ -131,9 +131,9 @@ async function checkForUpdate() {
|
|
|
131
131
|
try {
|
|
132
132
|
const res = await fetch("https://registry.npmjs.org/anywhere-ai/latest", { signal: AbortSignal.timeout(3e3) });
|
|
133
133
|
const data = await res.json();
|
|
134
|
-
if (data.version && data.version !== "0.0.
|
|
134
|
+
if (data.version && data.version !== "0.0.34") {
|
|
135
135
|
console.log(`
|
|
136
|
-
Update available: v${"0.0.
|
|
136
|
+
Update available: v${"0.0.34"} \u2192 v${data.version}`);
|
|
137
137
|
console.log(` Run: npx anywhere-ai@latest
|
|
138
138
|
`);
|
|
139
139
|
}
|
package/dist/server.js
CHANGED
|
@@ -700,7 +700,7 @@ chats.get("/:id", async (c) => {
|
|
|
700
700
|
const sessionId = c.req.param("id");
|
|
701
701
|
if (!sessionId || /[\/\\]/.test(sessionId))
|
|
702
702
|
return c.json({ error: "Invalid session id" }, 400);
|
|
703
|
-
const limit = Math.min(Math.max(parseInt(c.req.query("limit") || "
|
|
703
|
+
const limit = Math.min(Math.max(parseInt(c.req.query("limit") || "30", 10) || 30, 1), 500);
|
|
704
704
|
const offset = Math.max(parseInt(c.req.query("offset") || "0", 10) || 0, 0);
|
|
705
705
|
try {
|
|
706
706
|
const file = await findSessionFile(sessionId);
|