staklink 0.3.73 → 0.3.74
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 +3 -6
- package/dist/staklink-cli.cjs +1 -1
- package/package.json +1 -1
package/dist/proxy-server.cjs
CHANGED
|
@@ -61253,7 +61253,7 @@ var SSEManager = class {
|
|
|
61253
61253
|
var sseManager = new SSEManager();
|
|
61254
61254
|
|
|
61255
61255
|
// src/proxy/version.ts
|
|
61256
|
-
var VERSION = "0.3.
|
|
61256
|
+
var VERSION = "0.3.74";
|
|
61257
61257
|
|
|
61258
61258
|
// node_modules/uuid/dist/esm/stringify.js
|
|
61259
61259
|
var byteToHex = [];
|
|
@@ -121751,9 +121751,6 @@ services:
|
|
|
121751
121751
|
<Dockerfile>
|
|
121752
121752
|
FROM ghcr.io/stakwork/staklink-js:latest
|
|
121753
121753
|
</Dockerfile>
|
|
121754
|
-
<.env>
|
|
121755
|
-
NEW_ENV_VAR=some_value
|
|
121756
|
-
</.env>
|
|
121757
121754
|
|
|
121758
121755
|
IMPORTANT: YOU DO NOT NEED TO INCLUDE FILES THAT DID NOT CHANGE. Only include files that you modified.`;
|
|
121759
121756
|
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.`;
|
|
@@ -121761,13 +121758,13 @@ var makeRepairPrompt = (podConfigPath, history, initialPrompt) => {
|
|
|
121761
121758
|
let p = initialPrompt ? initialPrompt : REPAIR_PROMPT;
|
|
121762
121759
|
p += `
|
|
121763
121760
|
|
|
121764
|
-
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).
|
|
121761
|
+
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).
|
|
121765
121762
|
|
|
121766
121763
|
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.
|
|
121767
121764
|
|
|
121768
121765
|
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).
|
|
121769
121766
|
|
|
121770
|
-
|
|
121767
|
+
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.
|
|
121771
121768
|
- PORT: The port the project runs on (e.g. 3000)
|
|
121772
121769
|
- INSTALL_COMMAND: The command to install dependencies (e.g. npm install)
|
|
121773
121770
|
- BUILD_COMMAND: The command to build the project (e.g. npm run build)
|
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.3.
|
|
10970
|
+
var VERSION = "0.3.74";
|
|
10971
10971
|
|
|
10972
10972
|
// src/cli.ts
|
|
10973
10973
|
var STAKLINK_PROXY = "staklink-proxy";
|