staklink 0.3.41 → 0.3.43

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.
@@ -56941,7 +56941,7 @@ var SSEManager = class {
56941
56941
  var sseManager = new SSEManager();
56942
56942
 
56943
56943
  // src/proxy/version.ts
56944
- var VERSION = "0.3.41";
56944
+ var VERSION = "0.3.43";
56945
56945
 
56946
56946
  // node_modules/uuid/dist/esm/stringify.js
56947
56947
  var byteToHex = [];
@@ -111159,7 +111159,7 @@ __export(repair_exports, {
111159
111159
  makePrompt: () => makePrompt,
111160
111160
  parseXML: () => parseXML
111161
111161
  });
111162
- var SYSTEM = `You are a software systems expert. Your job is to help set up the development environment for a software project. Fix the user's pm2 config and/or docker-compose files, and use the pm2 and docker cli to get the project running. YOUR GOAL IS TO THE GET THE FIRST APP IN THE PM2 CONFIG FILE TO RUN CORRECTLY! Other apps and docker containers are only supporting services.
111162
+ var SYSTEM = `You are a software systems expert. Your job is to help set up the development environment for a software project. Fix the user's pm2 config and/or docker-compose files, and use the pm2 and docker cli to get the project running. YOUR GOAL IS TO THE GET THE frontend APP IN THE PM2 CONFIG FILE TO RUN CORRECTLY! Other apps and docker containers are only supporting services.
111163
111163
 
111164
111164
  When you have gotten the frontend running, or gotten as far as you can, respond to the user by saying either "<status>COMPLETE</status>" or "<status>FAILED</status>". If COMPLETE, then tell the user the fixed config files. FOR YOUR FINAL TEXT RESPONSE, USE THE THE FOLLOWING XML FORMAT:
111165
111165
 
@@ -111177,14 +111177,13 @@ When you have gotten the frontend running, or gotten as far as you can, respond
111177
111177
  IMPORTANT: YOU DO NOT NEED TO INCLUDE FILES THAT DID NOT CHANGE. Only include files that you modified.`;
111178
111178
  var makePrompt = (podConfigPath) => `Please inspect the current running environment, and try to fix it. The user tried to load the frontend on the defined PORT, but something went wrong.
111179
111179
 
111180
- 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).
111180
+ 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). 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.
111181
111181
 
111182
111182
  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.
111183
111183
 
111184
111184
  The actual core project code is being run with pm2! You can use pm2 commands to inspect the running processes. However, there is another service running in pm2 also (called staklink-proxy), that is not part of the software project at hand. DO NOT run "pm2 logs" just like that... only read logs of specific processes from the pm2 config file one at a time! Your goal is to get all supporting services and processes running in order to run the main project frontend. (Of course, sometimes its just one simple frontend process without supporting services. It really just depends on the project).
111185
111185
 
111186
111186
  We have SPECIAL env vars for pm2, that tell the code-server system how to automatically build and start the project.
111187
- - START_COMMAND: The command to start the project (e.g. npm start) [REQUIRED]
111188
111187
  - PORT: The port the project runs on (e.g. 3000)
111189
111188
  - INSTALL_COMMAND: The command to install dependencies (e.g. npm install)
111190
111189
  - BUILD_COMMAND: The command to build the project (e.g. npm run build)
@@ -111193,7 +111192,7 @@ We have SPECIAL env vars for pm2, that tell the code-server system how to automa
111193
111192
  - TEST_COMMAND: Command to run tests (e.g. npm test)
111194
111193
  - E2E_TEST_COMMAND: Command to run end-to-end tests (e.g. npx playwright test)
111195
111194
 
111196
- When you have made a file change and want to restart the whole pm2 environment, do so like this: \`npx -y staklink reload\`. That will start the pm2 apps, then re-run all the install, build, pre-start, start commands if they are defined. The only required command is the START_COMMAND.
111195
+ When you have made a file change and want to restart the whole pm2 environment, do so like this: \`npx -y staklink reload\`. That will start the pm2 apps, then re-run all the install, build, pre-start commands if they are defined. None of these commands are required though, only the "script" is required (to start the frontend).
111197
111196
 
111198
111197
  Good luck!
111199
111198
  `;
@@ -113119,10 +113118,7 @@ ${diff.trim()}`);
113119
113118
  system: repair_exports.SYSTEM
113120
113119
  };
113121
113120
  },
113122
- (result) => ({
113123
- ...result,
113124
- repaired: true
113125
- })
113121
+ (result) => repair_exports.parseXML(result)
113126
113122
  )
113127
113123
  );
113128
113124
  app.post("/repair", async (req, res) => {
@@ -10948,7 +10948,7 @@ var glob = Object.assign(glob_, {
10948
10948
  glob.glob = glob;
10949
10949
 
10950
10950
  // src/proxy/version.ts
10951
- var VERSION = "0.3.41";
10951
+ var VERSION = "0.3.43";
10952
10952
 
10953
10953
  // src/cli.ts
10954
10954
  var STAKLINK_PROXY = "staklink-proxy";
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.3.41",
5
+ "version": "0.3.43",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {