staklink 0.3.44 → 0.3.45
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 +6 -31
- package/dist/staklink-cli.cjs +1 -1
- package/package.json +1 -1
package/dist/proxy-server.cjs
CHANGED
|
@@ -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.
|
|
56944
|
+
var VERSION = "0.3.45";
|
|
56945
56945
|
|
|
56946
56946
|
// node_modules/uuid/dist/esm/stringify.js
|
|
56947
56947
|
var byteToHex = [];
|
|
@@ -111159,11 +111159,12 @@ __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 frontend 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. You can restart the pm2 environment with "npx -y staklink reload" after making changes to the pm2 config or docker-compose files.
|
|
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 (put the exact raw content of the files in the XML tags, no extra text like triple backticks or language label). FOR YOUR FINAL TEXT RESPONSE, USE THE THE FOLLOWING XML FORMAT:
|
|
111165
111165
|
|
|
111166
111166
|
<status>COMPLETE</status>
|
|
111167
|
+
<summary>Short summary of what you did here.</summary>
|
|
111167
111168
|
<pm2.config.js>
|
|
111168
111169
|
module.exports = {
|
|
111169
111170
|
apps: [ ... ]
|
|
@@ -111196,7 +111197,9 @@ We have SPECIAL env vars for pm2, that tell the code-server system how to automa
|
|
|
111196
111197
|
- TEST_COMMAND: Command to run tests (e.g. npm test)
|
|
111197
111198
|
- E2E_TEST_COMMAND: Command to run end-to-end tests (e.g. npx playwright test)
|
|
111198
111199
|
|
|
111199
|
-
|
|
111200
|
+
None of these commands are required though, only the "script" is required (to start the frontend).
|
|
111201
|
+
|
|
111202
|
+
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.
|
|
111200
111203
|
|
|
111201
111204
|
Good luck!
|
|
111202
111205
|
`;
|
|
@@ -113125,34 +113128,6 @@ ${diff.trim()}`);
|
|
|
113125
113128
|
(result) => repair_exports.parseXML(result)
|
|
113126
113129
|
)
|
|
113127
113130
|
);
|
|
113128
|
-
app.post("/repair", async (req, res) => {
|
|
113129
|
-
const request_id = startReq();
|
|
113130
|
-
try {
|
|
113131
|
-
const { repoName, prompt, apiKey, agent_name, session, system } = req.body;
|
|
113132
|
-
const workspaceRoot2 = await workspaceRoot();
|
|
113133
|
-
let repoPath = workspaceRoot2;
|
|
113134
|
-
if (repoName) {
|
|
113135
|
-
const candidate = import_path2.default.join(workspaceRoot2, repoName);
|
|
113136
|
-
try {
|
|
113137
|
-
const stat4 = await import_promises2.default.stat(candidate);
|
|
113138
|
-
if (stat4.isDirectory()) {
|
|
113139
|
-
repoPath = candidate;
|
|
113140
|
-
}
|
|
113141
|
-
} catch {
|
|
113142
|
-
}
|
|
113143
|
-
}
|
|
113144
|
-
const agentFn = chooseAgent(agent_name || "goose");
|
|
113145
|
-
agentFn(prompt, apiKey, repoPath, session, system).then((result) => {
|
|
113146
|
-
finishReq(request_id, { success: true, result });
|
|
113147
|
-
}).catch((error85) => {
|
|
113148
|
-
failReq(request_id, error85);
|
|
113149
|
-
});
|
|
113150
|
-
res.json({ request_id, status: "pending" });
|
|
113151
|
-
} catch (e) {
|
|
113152
|
-
console.error("Error running claude scripts:", e);
|
|
113153
|
-
fail(res, e);
|
|
113154
|
-
}
|
|
113155
|
-
});
|
|
113156
113131
|
app.post(
|
|
113157
113132
|
"/goose_web",
|
|
113158
113133
|
async (req, res) => {
|
package/dist/staklink-cli.cjs
CHANGED
|
@@ -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.
|
|
10951
|
+
var VERSION = "0.3.45";
|
|
10952
10952
|
|
|
10953
10953
|
// src/cli.ts
|
|
10954
10954
|
var STAKLINK_PROXY = "staklink-proxy";
|