@staff0rd/assist 0.711.1 → 0.711.3

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/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.711.1",
9
+ version: "0.711.3",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -41484,6 +41484,8 @@ function renderPrompt(raw) {
41484
41484
  const name = `/${command.replace(/^\/+/, "")}`;
41485
41485
  return args ? `${name} ${args}` : name;
41486
41486
  }
41487
+ const bashInput = marker(raw, "bash-input");
41488
+ if (bashInput) return `! ${bashInput}`;
41487
41489
  return stripBlocks(raw);
41488
41490
  }
41489
41491
  function marker(raw, tag) {
@@ -41491,7 +41493,7 @@ function marker(raw, tag) {
41491
41493
  return match ? match[1].trim() : "";
41492
41494
  }
41493
41495
  function stripBlocks(raw) {
41494
- return raw.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g, "").replace(/<task-notification>[\s\S]*?<\/task-notification>/g, "").replace(/<command-[^>]*>[\s\S]*?<\/command-[^>]*>/g, "").replace(/<local-command-[^>]*>[\s\S]*?<\/local-command-[^>]*>/g, "").trim();
41496
+ return raw.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g, "").replace(/<task-notification>[\s\S]*?<\/task-notification>/g, "").replace(/<command-[^>]*>[\s\S]*?<\/command-[^>]*>/g, "").replace(/<local-command-[^>]*>[\s\S]*?<\/local-command-[^>]*>/g, "").replace(/<bash-(stdout|stderr)>[\s\S]*?<\/bash-\1>/g, "").trim();
41495
41497
  }
41496
41498
 
41497
41499
  // src/commands/sessions/shared/extractLastUserMessage.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.711.1",
3
+ "version": "0.711.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {