@staff0rd/assist 0.1060.1 → 0.1061.0

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.1060.1",
9
+ version: "0.1061.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -50481,20 +50481,13 @@ function serverRunMeta(runName, cwd) {
50481
50481
  };
50482
50482
  }
50483
50483
 
50484
- // src/commands/sessions/daemon/readDesignSystemPrompt.ts
50485
- import * as fs53 from "fs";
50484
+ // src/commands/sessions/daemon/designSystemPromptPath.ts
50486
50485
  import * as path107 from "path";
50487
50486
  import { fileURLToPath as fileURLToPath10 } from "url";
50488
50487
  var __filename5 = fileURLToPath10(import.meta.url);
50489
50488
  var __dirname6 = path107.dirname(__filename5);
50490
- function readDesignSystemPrompt() {
50491
- const promptPath = path107.join(
50492
- __dirname6,
50493
- "..",
50494
- "claude",
50495
- "design-system-prompt.md"
50496
- );
50497
- return fs53.readFileSync(promptPath, "utf8");
50489
+ function designSystemPromptPath() {
50490
+ return path107.join(__dirname6, "..", "claude", "design-system-prompt.md");
50498
50491
  }
50499
50492
 
50500
50493
  // src/commands/sessions/daemon/spawnClaude.ts
@@ -50504,7 +50497,7 @@ function spawnClaude2(opts = {}) {
50504
50497
  function buildArgs3(opts) {
50505
50498
  const base = ["claude", "--settings", ensureHooksSettings()];
50506
50499
  if (opts.design) {
50507
- base.push("--append-system-prompt", readDesignSystemPrompt());
50500
+ base.push("--append-system-prompt-file", designSystemPromptPath());
50508
50501
  base.push("--permission-mode", "auto");
50509
50502
  } else if (opts.auto) {
50510
50503
  base.push("--permission-mode", "auto");
@@ -50714,14 +50707,14 @@ async function runAutoUpdateLoop(deps2, maxLaps = Number.POSITIVE_INFINITY) {
50714
50707
  }
50715
50708
 
50716
50709
  // src/commands/sessions/daemon/autoUpdate/trimWatcherLog.ts
50717
- import { readFileSync as readFileSync76, writeFileSync as writeFileSync60 } from "fs";
50710
+ import { readFileSync as readFileSync75, writeFileSync as writeFileSync60 } from "fs";
50718
50711
  var KEEP_TAIL = 256 * 1024;
50719
50712
  var MAX_LOG_SIZE = 4 * 1024 * 1024;
50720
50713
  function trimWatcherLog(cwd) {
50721
50714
  const path109 = watcherLogPath(cwd);
50722
50715
  let log2;
50723
50716
  try {
50724
- log2 = readFileSync76(path109, "utf8");
50717
+ log2 = readFileSync75(path109, "utf8");
50725
50718
  } catch {
50726
50719
  return;
50727
50720
  }
@@ -51544,7 +51537,7 @@ function pidList(pids) {
51544
51537
  }
51545
51538
 
51546
51539
  // src/commands/sessions/daemon/worktree/readOccupant.ts
51547
- import { readFileSync as readFileSync77 } from "fs";
51540
+ import { readFileSync as readFileSync76 } from "fs";
51548
51541
  var VSCODE_PATHS = [
51549
51542
  "/.vscode-server/",
51550
51543
  "/.vscode-server-insiders/",
@@ -51579,7 +51572,7 @@ function parentPid(stat5) {
51579
51572
  }
51580
51573
  function readProc(procRoot, pid, file) {
51581
51574
  try {
51582
- return readFileSync77(`${procRoot}/${pid}/${file}`, "utf8");
51575
+ return readFileSync76(`${procRoot}/${pid}/${file}`, "utf8");
51583
51576
  } catch {
51584
51577
  return void 0;
51585
51578
  }
@@ -52566,7 +52559,7 @@ function reportSilentFailure(session, clients) {
52566
52559
  }
52567
52560
 
52568
52561
  // src/commands/sessions/shared/codex/resolveCodexSessionId.ts
52569
- import * as fs54 from "fs";
52562
+ import * as fs53 from "fs";
52570
52563
  var META_LINES = 5;
52571
52564
  async function resolveCodexSessionId(cwd, sinceMs) {
52572
52565
  if (!cwd) return null;
@@ -52595,7 +52588,7 @@ async function startedIn(file, cwd, sinceMs) {
52595
52588
  }
52596
52589
  async function touchedSince(file, sinceMs) {
52597
52590
  try {
52598
- return (await fs54.promises.stat(file)).mtimeMs >= sinceMs;
52591
+ return (await fs53.promises.stat(file)).mtimeMs >= sinceMs;
52599
52592
  } catch {
52600
52593
  return false;
52601
52594
  }
@@ -53153,7 +53146,7 @@ function makeSessionSpawner(sessions, clients, counter, onStatusChange, notify2)
53153
53146
  }
53154
53147
 
53155
53148
  // src/commands/sessions/shared/transcriptUsage.ts
53156
- import * as fs55 from "fs";
53149
+ import * as fs54 from "fs";
53157
53150
  function transcriptUsage(lines2) {
53158
53151
  const byId = /* @__PURE__ */ new Map();
53159
53152
  for (const line of lines2) {
@@ -53177,7 +53170,7 @@ function transcriptUsage(lines2) {
53177
53170
  return [...byId.values()];
53178
53171
  }
53179
53172
  async function readTranscriptUsage(transcriptPath2) {
53180
- const content = await fs55.promises.readFile(transcriptPath2, "utf8");
53173
+ const content = await fs54.promises.readFile(transcriptPath2, "utf8");
53181
53174
  return transcriptUsage(content.split("\n"));
53182
53175
  }
53183
53176
 
@@ -56588,7 +56581,7 @@ var handleHelloRequest = (client, m, d) => {
56588
56581
  };
56589
56582
 
56590
56583
  // src/commands/sessions/daemon/historySearch/findTranscriptMatch.ts
56591
- import * as fs56 from "fs";
56584
+ import * as fs55 from "fs";
56592
56585
  import * as readline5 from "readline";
56593
56586
 
56594
56587
  // src/commands/sessions/daemon/historySearch/historySnippet.ts
@@ -56709,7 +56702,7 @@ function queryPattern(query) {
56709
56702
  async function findTranscriptMatch(filePath, harness, query) {
56710
56703
  const pattern2 = queryPattern(query);
56711
56704
  const mayMatch = rawLinePrefilter(query);
56712
- const stream = fs56.createReadStream(filePath, { encoding: "utf8" });
56705
+ const stream = fs55.createReadStream(filePath, { encoding: "utf8" });
56713
56706
  const reader = readline5.createInterface({
56714
56707
  input: stream,
56715
56708
  crlfDelay: Infinity
@@ -56807,7 +56800,7 @@ function creator(isNew, spawn13) {
56807
56800
  }
56808
56801
 
56809
56802
  // src/commands/sessions/shared/codex/codexRolloutUsage.ts
56810
- import * as fs57 from "fs";
56803
+ import * as fs56 from "fs";
56811
56804
 
56812
56805
  // src/commands/sessions/shared/codex/applyTokenInfo.ts
56813
56806
  function applyTokenInfo(usage, byId, conversationId, rawInfo) {
@@ -56870,7 +56863,7 @@ function codexRolloutUsage(lines2) {
56870
56863
  return usage;
56871
56864
  }
56872
56865
  async function readCodexRolloutUsage(rolloutPath) {
56873
- const content = await fs57.promises.readFile(rolloutPath, "utf8");
56866
+ const content = await fs56.promises.readFile(rolloutPath, "utf8");
56874
56867
  return codexRolloutUsage(content.split("\n"));
56875
56868
  }
56876
56869
  function sessionMetaId(entry) {
@@ -57087,7 +57080,7 @@ var inboxHandlers = {
57087
57080
  };
57088
57081
 
57089
57082
  // src/commands/sessions/shared/parseTranscript.ts
57090
- import * as fs58 from "fs";
57083
+ import * as fs57 from "fs";
57091
57084
 
57092
57085
  // src/commands/sessions/shared/codex/findCodexRolloutPath.ts
57093
57086
  import * as path108 from "path";
@@ -57108,7 +57101,7 @@ async function parseTranscript(sessionId2) {
57108
57101
  }
57109
57102
  async function readMessages(filePath, parse5) {
57110
57103
  try {
57111
- const raw = await fs58.promises.readFile(filePath, "utf8");
57104
+ const raw = await fs57.promises.readFile(filePath, "utf8");
57112
57105
  return parse5(raw.split("\n"));
57113
57106
  } catch {
57114
57107
  return [];
@@ -57766,7 +57759,7 @@ function handleConnection(socket, manager) {
57766
57759
  import { unlinkSync as unlinkSync21, writeFileSync as writeFileSync62 } from "fs";
57767
57760
 
57768
57761
  // src/commands/sessions/daemon/startPidFileWatchdog.ts
57769
- import { readFileSync as readFileSync78 } from "fs";
57762
+ import { readFileSync as readFileSync77 } from "fs";
57770
57763
  var WATCHDOG_INTERVAL_MS = 5e3;
57771
57764
  function startPidFileWatchdog(onLost, intervalMs = WATCHDOG_INTERVAL_MS) {
57772
57765
  const timer = setInterval(() => {
@@ -57777,7 +57770,7 @@ function startPidFileWatchdog(onLost, intervalMs = WATCHDOG_INTERVAL_MS) {
57777
57770
  }
57778
57771
  function ownsPidFile() {
57779
57772
  try {
57780
- return readFileSync78(daemonPaths.pid, "utf8").trim() === String(process.pid);
57773
+ return readFileSync77(daemonPaths.pid, "utf8").trim() === String(process.pid);
57781
57774
  } catch {
57782
57775
  return false;
57783
57776
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1060.1",
3
+ "version": "0.1061.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {