@staff0rd/assist 0.1072.0 → 0.1072.1

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.1072.0",
9
+ version: "0.1072.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -82,7 +82,7 @@ var package_default = {
82
82
  "react-diff-view": "^3.3.3",
83
83
  refractor: "^3.6.0",
84
84
  semver: "^7.7.3",
85
- "shell-quote": "^1.8.3",
85
+ "shell-quote": "^1.12.0",
86
86
  "ts-morph": "^27.0.2",
87
87
  typescript: "^5.9.3",
88
88
  ws: "^8.20.0",
@@ -116,7 +116,6 @@ var package_default = {
116
116
  "@types/react": "^19.2.14",
117
117
  "@types/react-dom": "^19.2.3",
118
118
  "@types/semver": "^7.7.1",
119
- "@types/shell-quote": "^1.7.5",
120
119
  "@types/ws": "^8.18.1",
121
120
  "@vitest/coverage-v8": "^4.1.2",
122
121
  "devicons-react": "^1.5.0",
@@ -22513,12 +22512,12 @@ function popFdPrefix(current2) {
22513
22512
 
22514
22513
  // src/shared/consumeHeredoc.ts
22515
22514
  function consumeHeredoc(tokens, opIndex, current2) {
22516
- const delimiter = tokens[opIndex + 2];
22515
+ const delimiter = tokens[opIndex + 1];
22517
22516
  if (typeof delimiter !== "string") {
22518
22517
  return { ok: false, error: "unable to parse" };
22519
22518
  }
22520
22519
  popFdPrefix(current2);
22521
- return { ok: true, nextIndex: opIndex + 2 };
22520
+ return { ok: true, nextIndex: opIndex + 1 };
22522
22521
  }
22523
22522
 
22524
22523
  // src/shared/consumeInputRedirect.ts
@@ -22531,20 +22530,12 @@ function consumeInputRedirect(tokens, opIndex, current2) {
22531
22530
  return { ok: true, nextIndex: opIndex + 1 };
22532
22531
  }
22533
22532
 
22534
- // src/shared/groupByOperator.ts
22533
+ // src/shared/handleToken.ts
22535
22534
  var SEPARATOR_OPS = /* @__PURE__ */ new Set(["|", "&&", "||", ";"]);
22536
22535
  var OUTPUT_REDIRECT_OPS = /* @__PURE__ */ new Set([">", ">>"]);
22536
+ var HEREDOC_OPS = /* @__PURE__ */ new Set(["<<", "<<-"]);
22537
22537
  var INPUT_REDIRECT_OP = "<";
22538
22538
  var UNPARSEABLE = { ok: false, error: "unable to parse" };
22539
- function groupByOperator(tokens) {
22540
- const groups = [[]];
22541
- for (let i = 0; i < tokens.length; i++) {
22542
- const step3 = handleToken(tokens, i, groups);
22543
- if (!step3.ok) return step3;
22544
- i = step3.nextIndex;
22545
- }
22546
- return { ok: true, groups };
22547
- }
22548
22539
  function handleToken(tokens, i, groups) {
22549
22540
  const token = tokens[i];
22550
22541
  const op = getOp(token);
@@ -22560,19 +22551,32 @@ function handleToken(tokens, i, groups) {
22560
22551
  if (OUTPUT_REDIRECT_OPS.has(op)) {
22561
22552
  return consumeRedirect(tokens, i, groups[groups.length - 1]);
22562
22553
  }
22554
+ if (HEREDOC_OPS.has(op)) {
22555
+ return consumeHeredoc(tokens, i, groups[groups.length - 1]);
22556
+ }
22563
22557
  if (op === INPUT_REDIRECT_OP) {
22564
- const current2 = groups[groups.length - 1];
22565
- return getOp(tokens[i + 1]) === INPUT_REDIRECT_OP ? consumeHeredoc(tokens, i, current2) : consumeInputRedirect(tokens, i, current2);
22558
+ return consumeInputRedirect(tokens, i, groups[groups.length - 1]);
22566
22559
  }
22567
22560
  return UNPARSEABLE;
22568
22561
  }
22562
+ function getOp(token) {
22563
+ return typeof token === "object" && token !== null && "op" in token ? token.op : void 0;
22564
+ }
22569
22565
  function appendWord(token, groups, i) {
22570
22566
  if (typeof token !== "string") return UNPARSEABLE;
22571
22567
  groups[groups.length - 1].push(token);
22572
22568
  return { ok: true, nextIndex: i };
22573
22569
  }
22574
- function getOp(token) {
22575
- return typeof token === "object" && token !== null && "op" in token ? token.op : void 0;
22570
+
22571
+ // src/shared/groupByOperator.ts
22572
+ function groupByOperator(tokens) {
22573
+ const groups = [[]];
22574
+ for (let i = 0; i < tokens.length; i++) {
22575
+ const step3 = handleToken(tokens, i, groups);
22576
+ if (!step3.ok) return step3;
22577
+ i = step3.nextIndex;
22578
+ }
22579
+ return { ok: true, groups };
22576
22580
  }
22577
22581
 
22578
22582
  // src/shared/hasUnquotedBackticks.ts
@@ -48112,6 +48116,8 @@ var MissingRunCwdError = class extends Error {
48112
48116
  this.cwd = cwd;
48113
48117
  this.name = "MissingRunCwdError";
48114
48118
  }
48119
+ runName;
48120
+ cwd;
48115
48121
  };
48116
48122
  function resolveRunCwd(config, baseDir = runConfigBaseDir()) {
48117
48123
  if (!config.cwd) return void 0;
@@ -49891,6 +49897,7 @@ var ActiveSelection = class {
49891
49897
  constructor(onChange) {
49892
49898
  this.onChange = onChange;
49893
49899
  }
49900
+ onChange;
49894
49901
  byRepo = /* @__PURE__ */ new Map();
49895
49902
  set(cwd, sessionId2) {
49896
49903
  if (!cwd) return;
@@ -50563,6 +50570,10 @@ var SessionIo = class {
50563
50570
  this.notify = notify2;
50564
50571
  this.links = links2;
50565
50572
  }
50573
+ sessions;
50574
+ onStatusChange;
50575
+ notify;
50576
+ links;
50566
50577
  viewers = new ViewerConnections();
50567
50578
  trackViewer(client, d) {
50568
50579
  if (typeof d.viewerId !== "string") return;
@@ -50665,6 +50676,7 @@ var ClientHub = class extends Set {
50665
50676
  super();
50666
50677
  this.persistPeak = persistPeak;
50667
50678
  }
50679
+ persistPeak;
50668
50680
  latestLimits;
50669
50681
  harnessLimits = /* @__PURE__ */ new Map();
50670
50682
  // why: log delivery is opt-in so browser tabs aren't spammed; only connections that ask via subscribe-logs receive daemonLog lines.
@@ -50800,6 +50812,7 @@ var MissingCwdError = class extends Error {
50800
50812
  this.cwd = cwd;
50801
50813
  this.name = "MissingCwdError";
50802
50814
  }
50815
+ cwd;
50803
50816
  };
50804
50817
  function spawnPty(args, cwd, sessionId2, extraEnv) {
50805
50818
  refuseMissingCwd(cwd, sessionId2);
@@ -52519,6 +52532,8 @@ var PrPreviewCoordinator = class {
52519
52532
  this.sessions = sessions;
52520
52533
  this.notify = notify2;
52521
52534
  }
52535
+ sessions;
52536
+ notify;
52522
52537
  waiters = /* @__PURE__ */ new Map();
52523
52538
  set(client, d) {
52524
52539
  setPrPreview(this.sessions, this.waiters, this.notify, client, d);
@@ -55605,6 +55620,8 @@ var VerifyTracker = class {
55605
55620
  this.sessions = sessions;
55606
55621
  this.notify = notify2;
55607
55622
  }
55623
+ sessions;
55624
+ notify;
55608
55625
  sessionByClient = /* @__PURE__ */ new Map();
55609
55626
  start(client, sessionId2) {
55610
55627
  const session = this.sessions.get(sessionId2);
@@ -55767,6 +55784,7 @@ var LaunchCircuitBreaker = class {
55767
55784
  constructor(label) {
55768
55785
  this.label = label;
55769
55786
  }
55787
+ label;
55770
55788
  failures = 0;
55771
55789
  until = 0;
55772
55790
  lastCause = "";
@@ -56297,6 +56315,7 @@ var NodeLink = class {
56297
56315
  ctx.connect = () => void openLink(ctx);
56298
56316
  this.ctx = ctx;
56299
56317
  }
56318
+ spec;
56300
56319
  ctx;
56301
56320
  start = () => this.ctx.connect();
56302
56321
  unlatch() {
@@ -56368,6 +56387,8 @@ var NodeLinks = class {
56368
56387
  this.clients = clients;
56369
56388
  this.onSessionsChanged = onSessionsChanged;
56370
56389
  }
56390
+ clients;
56391
+ onSessionsChanged;
56371
56392
  links = /* @__PURE__ */ new Map();
56372
56393
  options = {};
56373
56394
  pins = new PinRelay();
@@ -56703,6 +56724,7 @@ var SessionManager = class {
56703
56724
  constructor(onIdleChange) {
56704
56725
  this.onIdleChange = onIdleChange;
56705
56726
  }
56727
+ onIdleChange;
56706
56728
  sessions = /* @__PURE__ */ new Map();
56707
56729
  prPreview = new PrPreviewCoordinator(
56708
56730
  this.sessions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1072.0",
3
+ "version": "0.1072.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -76,7 +76,7 @@
76
76
  "react-diff-view": "^3.3.3",
77
77
  "refractor": "^3.6.0",
78
78
  "semver": "^7.7.3",
79
- "shell-quote": "^1.8.3",
79
+ "shell-quote": "^1.12.0",
80
80
  "ts-morph": "^27.0.2",
81
81
  "typescript": "^5.9.3",
82
82
  "ws": "^8.20.0",
@@ -110,7 +110,6 @@
110
110
  "@types/react": "^19.2.14",
111
111
  "@types/react-dom": "^19.2.3",
112
112
  "@types/semver": "^7.7.1",
113
- "@types/shell-quote": "^1.7.5",
114
113
  "@types/ws": "^8.18.1",
115
114
  "@vitest/coverage-v8": "^4.1.2",
116
115
  "devicons-react": "^1.5.0",