perstack 0.0.122 → 0.0.123

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/bin/cli.js CHANGED
@@ -93288,6 +93288,11 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
93288
93288
  //#endregion
93289
93289
  //#region ../../packages/runtime/src/messages/instruction-message.ts
93290
93290
  var import_dist = require_dist();
93291
+ function getEnvironmentSection(startedAt) {
93292
+ const lines = [`- Current time: ${new Date(startedAt).toISOString()}`, `- Working directory: ${process.cwd()}`];
93293
+ if (process.env.PERSTACK_SANDBOX === "1") lines.push("- Sandbox: This is an isolated container environment (Ubuntu). You can freely install packages with `sudo apt-get install` and run arbitrary commands without affecting the host system.");
93294
+ return `Environment:\n${lines.join("\n")}`;
93295
+ }
93291
93296
  function getDelegateMetaInstruction(startedAt) {
93292
93297
  return import_dist.dedent`
93293
93298
  Before starting work, investigate the workspace and understand the current state. Then use the todo tool to create a plan of action. Work through the todos step by step, marking each completed as you go.
@@ -93295,9 +93300,7 @@ function getDelegateMetaInstruction(startedAt) {
93295
93300
  When the task is complete, call attemptCompletion with a result parameter containing your final response.
93296
93301
  When you cannot help, call attemptCompletion without a result.
93297
93302
 
93298
- Environment:
93299
- - Current time: ${new Date(startedAt).toISOString()}
93300
- - Working directory: ${process.cwd()}
93303
+ ${getEnvironmentSection(startedAt)}
93301
93304
  `;
93302
93305
  }
93303
93306
  function getCoordinatorMetaInstruction(startedAt) {
@@ -93336,9 +93339,7 @@ function getCoordinatorMetaInstruction(startedAt) {
93336
93339
  When the task is complete, call attemptCompletion with a result parameter containing your final response.
93337
93340
  When you cannot help, call attemptCompletion without a result.
93338
93341
 
93339
- Environment:
93340
- - Current time: ${new Date(startedAt).toISOString()}
93341
- - Working directory: ${process.cwd()}
93342
+ ${getEnvironmentSection(startedAt)}
93342
93343
  `;
93343
93344
  }
93344
93345
  function createInstructionMessage(expert, startedAt) {
@@ -122945,7 +122946,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
122945
122946
  //#endregion
122946
122947
  //#region package.json
122947
122948
  var name = "perstack";
122948
- var version = "0.0.122";
122949
+ var version = "0.0.123";
122949
122950
  var description = "PerStack CLI";
122950
122951
 
122951
122952
  //#endregion