@staff0rd/assist 0.191.0 → 0.191.2

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
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.191.0",
9
+ version: "0.191.2",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -4083,7 +4083,7 @@ async function promptAcceptanceCriteria() {
4083
4083
  async function addFromOptions(options2) {
4084
4084
  const type = options2.type ?? await promptType();
4085
4085
  const name = options2.name ?? await promptName();
4086
- const description = options2.desc ?? await promptDescription();
4086
+ const description = options2.desc?.replaceAll("\\n", "\n") ?? await promptDescription();
4087
4087
  const acceptanceCriteria2 = options2.ac ?? await promptAcceptanceCriteria();
4088
4088
  const items = loadBacklog();
4089
4089
  const id = getNextId(items);
@@ -5068,7 +5068,9 @@ function parsePerms(entries) {
5068
5068
 
5069
5069
  // src/shared/isApprovedRead.ts
5070
5070
  var READ_RE = /^Read\((.+)\)$/;
5071
+ var SAFE_BUILTINS = /* @__PURE__ */ new Set(["true", "false"]);
5071
5072
  function isApprovedRead(command, toolName = "Bash") {
5073
+ if (SAFE_BUILTINS.has(command)) return `safe shell builtin: ${command}`;
5072
5074
  if (isCdToCwd(command)) return "cd to current directory";
5073
5075
  const cdRead = isCdToReadAllowedDir(command);
5074
5076
  if (cdRead) return cdRead;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.191.0",
3
+ "version": "0.191.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {