staklink 0.4.9 → 0.4.10

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.
@@ -60814,7 +60814,7 @@ var SSEManager = class {
60814
60814
  var sseManager = new SSEManager();
60815
60815
 
60816
60816
  // src/proxy/version.ts
60817
- var VERSION = "0.4.9";
60817
+ var VERSION = "0.4.10";
60818
60818
 
60819
60819
  // node_modules/uuid/dist/esm/stringify.js
60820
60820
  var byteToHex = [];
@@ -137544,7 +137544,9 @@ async function runAgent({
137544
137544
  createGooseConfig(searchApiKey);
137545
137545
  const env2 = goose_env(apiKey, model);
137546
137546
  console.log("RUN goose with env", env2);
137547
- const cleanPrompt = sanitizeShellArg(prompt);
137547
+ const safePrompt = prompt.startsWith("-") ? `
137548
+ ${prompt}` : prompt;
137549
+ const cleanPrompt = sanitizeShellArg(safePrompt);
137548
137550
  let system = SYSTEM_CORE;
137549
137551
  system += system_prompt ? sanitizeShellArg(system_prompt) + "\n\n" : "";
137550
137552
  system += SYSTEM_SUFFIX;
@@ -139220,7 +139222,17 @@ var makeRepairPrompt = (podConfigPath, history, initialPrompt) => {
139220
139222
 
139221
139223
  The config files can be read at ${podConfigPath}. You must find out how to edit the pm2.config.js and the docker-compose.yaml in order to get the project to run successfully (there is also a Dockerfile which may also be changed if absolutely needed). Remember that you may need to add or alter env vars in the pm2.config.js file. Focus on the frontend app defined in the pm2 config file, don't worry about other services unless they are needed to run the frontend. For example, if its a next.js app, you can read the package.json to see what SHOULD be in the pm2 "script" command or the special install/build/etc commands. REMEMBER: this is a development environment, so the pm2 script should be something like "npm run dev" or something similar... we want to default to whatever start script is best for development (like whatever has hot-reload etc). If its a simple backend api project, then thats fine to be defined as the "frontend". If there really is no public-facing frontend or api, then STILL INCLUDE A pm2 service called "frontend", which can just be this dummy server: "npx -y hell0-w0rld". Its important that we have at least SOMETHING running as the "frontend" so we can verify that the pod is running smoothly!
139222
139224
 
139223
- IMPORTANT: You may be in a multi-repo workspace! If so, make sure the "cwd" field for each appin the pm2.config.js specifies different paths to each repo! Like "/workspaces/repo1", "/workspaces/repo2", etc.
139225
+ If this is an Android project, prefer Android conventions:
139226
+ - The frontend pm2 service can use a placeholder script (for example, "echo android-frontend") and do real setup via env commands.
139227
+ - Set PORT to "8000" (screen stream port).
139228
+ - Use PRE_START_COMMAND to ensure adb is ready (for example, "adb wait-for-device").
139229
+ - Use INSTALL_COMMAND/BUILD_COMMAND for dependency fetch + APK build (for example, "./gradlew dependencies" and "./gradlew assembleDebug").
139230
+ - Use POST_START_COMMAND to install/launch the app when needed.
139231
+ - Set REBUILD_COMMAND to APK build command and RESTART to "true" so code updates trigger rebuild/reinstall flow.
139232
+ - Derive package/activity from AndroidManifest or Gradle config when launching with adb shell am start.
139233
+ - Use ghcr.io/stakwork/staklink-android:latest as the base image in Dockerfile.
139234
+
139235
+ IMPORTANT: You may be in a multi-repo workspace! If so, make sure the "cwd" field for each app in the pm2.config.js specifies different paths to each repo! Like "/workspaces/repo1", "/workspaces/repo2", etc.
139224
139236
 
139225
139237
  This project is currently running a remote code-server instance. Docker is optional, but may be used. The docker-compose file has already been started. You can use the regular docker commands (docker ps, docker logs, etc) to inspect the running containers.
139226
139238
 
@@ -10987,7 +10987,7 @@ var glob = Object.assign(glob_, {
10987
10987
  glob.glob = glob;
10988
10988
 
10989
10989
  // src/proxy/version.ts
10990
- var VERSION = "0.4.9";
10990
+ var VERSION = "0.4.10";
10991
10991
 
10992
10992
  // src/deps.ts
10993
10993
  var import_child_process = require("child_process");
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "staklink",
3
3
  "displayName": "staklink",
4
4
  "description": "staklink process manager",
5
- "version": "0.4.9",
5
+ "version": "0.4.10",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {