staklink 0.4.7 → 0.4.8
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/proxy-server.cjs +7 -3
- package/dist/staklink-cli.cjs +5 -5
- package/package.json +1 -1
package/dist/proxy-server.cjs
CHANGED
|
@@ -60794,7 +60794,7 @@ var SSEManager = class {
|
|
|
60794
60794
|
var sseManager = new SSEManager();
|
|
60795
60795
|
|
|
60796
60796
|
// src/proxy/version.ts
|
|
60797
|
-
var VERSION = "0.4.
|
|
60797
|
+
var VERSION = "0.4.8";
|
|
60798
60798
|
|
|
60799
60799
|
// node_modules/uuid/dist/esm/stringify.js
|
|
60800
60800
|
var byteToHex = [];
|
|
@@ -60972,6 +60972,8 @@ var SYSTEM_CORE = `You are a software systems expert. You are working on a cloud
|
|
|
60972
60972
|
|
|
60973
60973
|
Do not commit or push code to github. That is handled by a workflow after you are done working.
|
|
60974
60974
|
|
|
60975
|
+
CRITICAL: You are running inside the "staklink-proxy" PM2 process. NEVER run "pm2 stop all", "pm2 delete all", "pm2 restart all", or "pm2 kill" - these commands will terminate your own process and abort your session. To restart the user's apps, use "npx -y staklink reload" or target specific processes by name (e.g. "pm2 restart frontend").
|
|
60976
|
+
|
|
60975
60977
|
`;
|
|
60976
60978
|
var SYSTEM_SUFFIX = `
|
|
60977
60979
|
You can ignore the .pod-config directory if you see it, its just config stuff
|
|
@@ -139507,7 +139509,9 @@ services:
|
|
|
139507
139509
|
FROM ghcr.io/stakwork/staklink-js:latest
|
|
139508
139510
|
</Dockerfile>
|
|
139509
139511
|
|
|
139510
|
-
IMPORTANT: YOU DO NOT NEED TO INCLUDE FILES THAT DID NOT CHANGE. Only include files that you modified
|
|
139512
|
+
IMPORTANT: YOU DO NOT NEED TO INCLUDE FILES THAT DID NOT CHANGE. Only include files that you modified.
|
|
139513
|
+
|
|
139514
|
+
CRITICAL: NEVER run "pm2 stop all", "pm2 delete all", "pm2 restart all", or "pm2 kill". You are running INSIDE the staklink-proxy PM2 process - these commands will kill your own process and abort this repair session! To restart the user's apps, ALWAYS use "npx -y staklink reload" which safely restarts only the user's apps without touching staklink-proxy. If you need to stop or restart a specific user process, use "pm2 stop <name>" or "pm2 restart <name>" with the specific process name (never "all").`;
|
|
139511
139515
|
var REPAIR_PROMPT = `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.`;
|
|
139512
139516
|
var makeRepairPrompt = (podConfigPath, history, initialPrompt) => {
|
|
139513
139517
|
let p = initialPrompt ? initialPrompt : REPAIR_PROMPT;
|
|
@@ -139519,7 +139523,7 @@ IMPORTANT: You may be in a multi-repo workspace! If so, make sure the "cwd" fiel
|
|
|
139519
139523
|
|
|
139520
139524
|
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.
|
|
139521
139525
|
|
|
139522
|
-
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).
|
|
139526
|
+
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. YOU ARE RUNNING INSIDE staklink-proxy! Never run "pm2 stop all", "pm2 delete all", "pm2 restart all", or "pm2 kill" - these will kill your own process! 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).
|
|
139523
139527
|
|
|
139524
139528
|
Along with general env vars, we have SPECIAL env vars for pm2, that tell the code-server system how to automatically build and start the project.
|
|
139525
139529
|
- PORT: The port the project runs on (e.g. 3000)
|
package/dist/staklink-cli.cjs
CHANGED
|
@@ -10967,7 +10967,7 @@ var glob = Object.assign(glob_, {
|
|
|
10967
10967
|
glob.glob = glob;
|
|
10968
10968
|
|
|
10969
10969
|
// src/proxy/version.ts
|
|
10970
|
-
var VERSION = "0.4.
|
|
10970
|
+
var VERSION = "0.4.8";
|
|
10971
10971
|
|
|
10972
10972
|
// src/deps.ts
|
|
10973
10973
|
var import_child_process = require("child_process");
|
|
@@ -11232,9 +11232,9 @@ program2.command("reload").description("Reload all PM2 apps (stops all except pr
|
|
|
11232
11232
|
const runner = new Runner(root, console.log);
|
|
11233
11233
|
const proxyExists = await runner.doesProcessExist(STAKLINK_PROXY);
|
|
11234
11234
|
if (!proxyExists) {
|
|
11235
|
-
console.
|
|
11236
|
-
console.
|
|
11237
|
-
|
|
11235
|
+
console.error("\u274C Staklink server is not running");
|
|
11236
|
+
console.error("Run 'staklink start' first");
|
|
11237
|
+
process.exit(1);
|
|
11238
11238
|
}
|
|
11239
11239
|
console.log("Reloading all PM2 apps...");
|
|
11240
11240
|
const response = await fetch("http://localhost:15552/reload-apps", {
|
|
@@ -11252,4 +11252,4 @@ program2.command("reload").description("Reload all PM2 apps (stops all except pr
|
|
|
11252
11252
|
process.exit(1);
|
|
11253
11253
|
}
|
|
11254
11254
|
});
|
|
11255
|
-
program2.
|
|
11255
|
+
program2.parseAsync();
|