@staff0rd/assist 0.1122.0 → 0.1123.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.
Files changed (65) hide show
  1. package/dist/built-version +1 -1
  2. package/dist/commands/sessions/web/bundle.js +400 -400
  3. package/dist/index.js +45 -37
  4. package/package.json +2 -1
  5. /package/{claude → agent}/commands/add-command.md +0 -0
  6. /package/{claude → agent}/commands/add-rule.md +0 -0
  7. /package/{claude → agent}/commands/ask.md +0 -0
  8. /package/{claude → agent}/commands/branch.md +0 -0
  9. /package/{claude → agent}/commands/bug.md +0 -0
  10. /package/{claude → agent}/commands/close.md +0 -0
  11. /package/{claude → agent}/commands/comment.md +0 -0
  12. /package/{claude → agent}/commands/commit.md +0 -0
  13. /package/{claude → agent}/commands/design.md +0 -0
  14. /package/{claude → agent}/commands/devlog.md +0 -0
  15. /package/{claude → agent}/commands/draft.md +0 -0
  16. /package/{claude → agent}/commands/extension.md +0 -0
  17. /package/{claude → agent}/commands/fix-conflict.md +0 -0
  18. /package/{claude → agent}/commands/fix-rules.md +0 -0
  19. /package/{claude → agent}/commands/forward-comments.md +0 -0
  20. /package/{claude → agent}/commands/github.md +0 -0
  21. /package/{claude → agent}/commands/inspect.md +0 -0
  22. /package/{claude → agent}/commands/jira.md +0 -0
  23. /package/{claude → agent}/commands/miro.md +0 -0
  24. /package/{claude → agent}/commands/next.md +0 -0
  25. /package/{claude → agent}/commands/pr.md +0 -0
  26. /package/{claude → agent}/commands/prompts.md +0 -0
  27. /package/{claude → agent}/commands/prs-slack.md +0 -0
  28. /package/{claude → agent}/commands/prs-status.md +0 -0
  29. /package/{claude → agent}/commands/raven.md +0 -0
  30. /package/{claude → agent}/commands/refactor.md +0 -0
  31. /package/{claude → agent}/commands/refine.md +0 -0
  32. /package/{claude → agent}/commands/releases-configure.md +0 -0
  33. /package/{claude → agent}/commands/rename.md +0 -0
  34. /package/{claude → agent}/commands/restructure.md +0 -0
  35. /package/{claude → agent}/commands/review-config.md +0 -0
  36. /package/{claude → agent}/commands/review-high-level.md +0 -0
  37. /package/{claude → agent}/commands/review-pr-comments.md +0 -0
  38. /package/{claude → agent}/commands/run-logs.md +0 -0
  39. /package/{claude → agent}/commands/screenshot.md +0 -0
  40. /package/{claude → agent}/commands/seq.md +0 -0
  41. /package/{claude → agent}/commands/show.md +0 -0
  42. /package/{claude → agent}/commands/slack-post.md +0 -0
  43. /package/{claude → agent}/commands/sql.md +0 -0
  44. /package/{claude → agent}/commands/supabase.md +0 -0
  45. /package/{claude → agent}/commands/sync.md +0 -0
  46. /package/{claude → agent}/commands/test-cover.md +0 -0
  47. /package/{claude → agent}/commands/test-review.md +0 -0
  48. /package/{claude → agent}/commands/transcripts.md +0 -0
  49. /package/{claude → agent}/commands/verify-new.md +0 -0
  50. /package/{claude → agent}/commands/verify.md +0 -0
  51. /package/{claude → agent}/design-system-prompt.md +0 -0
  52. /package/{claude → agent}/skills/accessibility-audit.md +0 -0
  53. /package/{claude → agent}/skills/ai-slop-check.md +0 -0
  54. /package/{claude → agent}/skills/component-extract.md +0 -0
  55. /package/{claude → agent}/skills/design-system-extract.md +0 -0
  56. /package/{claude → agent}/skills/discovery-questions.md +0 -0
  57. /package/{claude → agent}/skills/frontend-aesthetic-direction.md +0 -0
  58. /package/{claude → agent}/skills/generate-variations.md +0 -0
  59. /package/{claude → agent}/skills/hierarchy-rhythm-review.md +0 -0
  60. /package/{claude → agent}/skills/interaction-states-pass.md +0 -0
  61. /package/{claude → agent}/skills/make-a-deck.md +0 -0
  62. /package/{claude → agent}/skills/make-a-prototype.md +0 -0
  63. /package/{claude → agent}/skills/make-tweakable.md +0 -0
  64. /package/{claude → agent}/skills/polish-pass.md +0 -0
  65. /package/{claude → agent}/skills/wireframe.md +0 -0
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.1122.0",
9
+ version: "0.1123.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -16,6 +16,7 @@ var package_default = {
16
16
  },
17
17
  files: [
18
18
  "dist",
19
+ "agent",
19
20
  "claude",
20
21
  "codex",
21
22
  "pi",
@@ -12545,7 +12546,11 @@ function peerTimeoutFor(pathname) {
12545
12546
  }
12546
12547
 
12547
12548
  // src/commands/sessions/web/isQuietPoll.ts
12548
- var POLLED_PATHS = /* @__PURE__ */ new Set(["/api/git-status", "/api/updates"]);
12549
+ var POLLED_PATHS = /* @__PURE__ */ new Set([
12550
+ "/api/git-status",
12551
+ "/api/updates",
12552
+ "/api/updates/history"
12553
+ ]);
12549
12554
  function isQuietPoll(pathname, status2) {
12550
12555
  return POLLED_PATHS.has(pathname) && status2 >= 200 && status2 < 300;
12551
12556
  }
@@ -17792,6 +17797,11 @@ async function updatesControl(req, res) {
17792
17797
  respondJson(res, 200, { ok: true });
17793
17798
  }
17794
17799
 
17800
+ // src/commands/sessions/web/updates/updateHistory.ts
17801
+ function updateHistory(_req, res) {
17802
+ respondJson(res, 200, { history: readUpdateHistory(getInstallDir()) });
17803
+ }
17804
+
17795
17805
  // src/commands/sessions/web/updates/requestViaLink.ts
17796
17806
  import { randomUUID as randomUUID3 } from "crypto";
17797
17807
  var LINK_REPLY_TIMEOUT_MS = 8e3;
@@ -18185,6 +18195,7 @@ var routes2 = {
18185
18195
  "POST /api/testflight/testers": postTestflightTester,
18186
18196
  "GET /api/updates": updates,
18187
18197
  "POST /api/updates/control": updatesControl,
18198
+ "GET /api/updates/history": updateHistory,
18188
18199
  [`GET ${LINK_UPDATE_STATUS_PATH}`]: linkUpdateStatus,
18189
18200
  [`POST ${RESTART_WEB_VIA_LINK_PATH}`]: restartWebViaLink
18190
18201
  };
@@ -51274,8 +51285,8 @@ function renderHarnessPaths(content, harness) {
51274
51285
  }
51275
51286
 
51276
51287
  // src/commands/sync/syncClaudeCommands.ts
51277
- function syncClaudeCommands(claudeDir, targetBase, files) {
51278
- const sourceDir = path113.join(claudeDir, "commands");
51288
+ function syncClaudeCommands(agentDir, targetBase, files) {
51289
+ const sourceDir = path113.join(agentDir, "commands");
51279
51290
  const names = markdownNames(sourceDir);
51280
51291
  for (const name2 of names) {
51281
51292
  const content = fs60.readFileSync(path113.join(sourceDir, `${name2}.md`), "utf8");
@@ -51387,13 +51398,13 @@ ${content}`
51387
51398
  }
51388
51399
 
51389
51400
  // src/commands/sync/installDesignResources.ts
51390
- function installDesignResources(claudeDir, harness, files) {
51401
+ function installDesignResources(agentDir, harness, files) {
51391
51402
  const { homeDir, sync: sync2 } = harness;
51392
51403
  files.write(
51393
51404
  path116.join(homeDir, sync2.designPromptDest),
51394
- fs63.readFileSync(path116.join(claudeDir, "design-system-prompt.md"), "utf8")
51405
+ fs63.readFileSync(path116.join(agentDir, "design-system-prompt.md"), "utf8")
51395
51406
  );
51396
- const skillsSource = path116.join(claudeDir, "skills");
51407
+ const skillsSource = path116.join(agentDir, "skills");
51397
51408
  const names = markdownNames(skillsSource);
51398
51409
  for (const name2 of names) {
51399
51410
  const content = fs63.readFileSync(
@@ -51411,8 +51422,8 @@ function installDesignResources(claudeDir, harness, files) {
51411
51422
  // src/commands/sync/installHarnessCommands.ts
51412
51423
  import * as fs64 from "fs";
51413
51424
  import * as path117 from "path";
51414
- function installHarnessCommands(claudeDir, harness, transform, files) {
51415
- const commandsSource = path117.join(claudeDir, "commands");
51425
+ function installHarnessCommands(agentDir, harness, transform, files) {
51426
+ const commandsSource = path117.join(agentDir, "commands");
51416
51427
  const sourceFiles = fs64.readdirSync(commandsSource);
51417
51428
  const names = [];
51418
51429
  for (const file of sourceFiles) {
@@ -51458,20 +51469,16 @@ async function syncCodexHooks(sourcePath) {
51458
51469
  }
51459
51470
 
51460
51471
  // src/commands/sync/syncCodex.ts
51461
- async function syncCodex(claudeDir, files, options2) {
51472
+ async function syncCodex(agentDir, files, options2) {
51462
51473
  if (!isHarnessAvailable("codex")) return;
51463
51474
  const { total: total2, names } = installHarnessCommands(
51464
- claudeDir,
51475
+ agentDir,
51465
51476
  harnesses.codex,
51466
51477
  commandToSkill,
51467
51478
  files
51468
51479
  );
51469
- const designSkills = installDesignResources(
51470
- claudeDir,
51471
- harnesses.codex,
51472
- files
51473
- );
51474
- await syncCodexHooks(path119.join(claudeDir, "..", "codex", "config.toml"));
51480
+ const designSkills = installDesignResources(agentDir, harnesses.codex, files);
51481
+ await syncCodexHooks(path119.join(agentDir, "..", "codex", "config.toml"));
51475
51482
  console.log(`Synced ${total2} skill(s) to ~/.codex/skills`);
51476
51483
  console.log(
51477
51484
  `Synced the design system prompt and ${designSkills.length} design skill(s) for Codex`
@@ -51492,15 +51499,15 @@ async function syncCodex(claudeDir, files, options2) {
51492
51499
  // src/commands/sync/syncDesign.ts
51493
51500
  import * as fs66 from "fs";
51494
51501
  import * as path120 from "path";
51495
- function syncDesign(claudeDir, targetBase, files) {
51502
+ function syncDesign(agentDir, targetBase, files) {
51496
51503
  files.write(
51497
51504
  path120.join(targetBase, "design-system-prompt.md"),
51498
- fs66.readFileSync(path120.join(claudeDir, "design-system-prompt.md"), "utf8")
51505
+ fs66.readFileSync(path120.join(agentDir, "design-system-prompt.md"), "utf8")
51499
51506
  );
51500
51507
  console.log(
51501
51508
  "Copied design-system-prompt.md to ~/.claude/design-system-prompt.md"
51502
51509
  );
51503
- const skillsSource = path120.join(claudeDir, "skills");
51510
+ const skillsSource = path120.join(agentDir, "skills");
51504
51511
  const skillsTarget = path120.join(targetBase, "skills");
51505
51512
  const entries = fs66.readdirSync(skillsSource, { withFileTypes: true }).filter(
51506
51513
  (entry) => !entry.isDirectory() || fs66.existsSync(path120.join(skillsSource, entry.name, "SKILL.md"))
@@ -51539,16 +51546,16 @@ ${frontmatterYaml}---
51539
51546
 
51540
51547
  ${body.replace(/^\r?\n+/, "")}`;
51541
51548
  }
51542
- function syncPi(claudeDir, files, options2) {
51549
+ function syncPi(agentDir, files, options2) {
51543
51550
  if (!isHarnessAvailable("pi")) return;
51544
51551
  const { synced, names } = installHarnessCommands(
51545
- claudeDir,
51552
+ agentDir,
51546
51553
  harnesses.pi,
51547
51554
  commandToPrompt,
51548
51555
  files
51549
51556
  );
51550
- const designSkills = installDesignResources(claudeDir, harnesses.pi, files);
51551
- syncPiHooks(path121.join(claudeDir, "..", "pi"));
51557
+ const designSkills = installDesignResources(agentDir, harnesses.pi, files);
51558
+ syncPiHooks(path121.join(agentDir, "..", "pi"));
51552
51559
  console.log(`Synced ${synced} prompt(s) to ~/.pi/agent/prompts`);
51553
51560
  console.log(
51554
51561
  `Synced the design system prompt and ${designSkills.length} design skill(s) to ~/.pi/agent/assist`
@@ -51666,20 +51673,21 @@ async function sync(options2) {
51666
51673
  const config = loadConfig();
51667
51674
  const yes = options2?.yes ?? config.sync.autoConfirm;
51668
51675
  const prune = { prune: options2?.prune, force: options2?.force };
51676
+ const agentDir = path124.join(__dirname6, "..", "agent");
51669
51677
  const claudeDir = path124.join(__dirname6, "..", "claude");
51670
51678
  const targetBase = path124.join(os6.homedir(), ".claude");
51671
51679
  const files = createSyncFiles([
51672
51680
  ...syncManifest.load(),
51673
51681
  ...retiredOwnedPaths()
51674
51682
  ]);
51675
- const commandNames = syncClaudeCommands(claudeDir, targetBase, files);
51676
- const designSkillNames = syncDesign(claudeDir, targetBase, files);
51683
+ const commandNames = syncClaudeCommands(agentDir, targetBase, files);
51684
+ const designSkillNames = syncDesign(agentDir, targetBase, files);
51677
51685
  await syncSettings(claudeDir, targetBase, {
51678
51686
  yes,
51679
51687
  preferences: config.sync.preferences
51680
51688
  });
51681
- await syncCodex(claudeDir, files, prune);
51682
- syncPi(claudeDir, files, prune);
51689
+ await syncCodex(agentDir, files, prune);
51690
+ syncPi(agentDir, files, prune);
51683
51691
  reportRetiredAgentsFiles();
51684
51692
  pruneClaude(targetBase, [...commandNames, ...designSkillNames], prune, files);
51685
51693
  await files.finish(yes);
@@ -51688,10 +51696,10 @@ async function sync(options2) {
51688
51696
  // src/commands/registerSync.ts
51689
51697
  function registerSync(program) {
51690
51698
  const syncCommand = program.command("sync").description(
51691
- "Install commands as ~/.claude/skills/<name>/SKILL.md, so they take precedence over a project skill of the same name, and delete any ~/.claude/commands/<name>.md an earlier sync copied; when codex is detected, also install commands as ~/.codex/skills/<name>/SKILL.md and register the assist codex-hook in ~/.codex/config.toml, which auto-approves read-only commands and injects the repo's composed advice on SessionStart; when pi is detected, also install commands as ~/.pi/agent/prompts/<name>.md and install the assist extensions into ~/.pi/agent/extensions, which gate permissions and inject the same advice. No global instructions file is written \u2014 every harness composes its own from assist advise at session start, and any ~/.claude/CLAUDE.md, ~/.codex/AGENTS.md or ~/.pi/agent/AGENTS.md an earlier sync left behind is named so you can remove it. A target that exists and was not written by sync is never overwritten or deleted without confirmation; with --yes it is left in place and reported. With --prune, also report files an earlier sync wrote that assist no longer ships, and with --prune --force remove them"
51699
+ "Install commands as ~/.agent/skills/<name>/SKILL.md, so they take precedence over a project skill of the same name, and delete any ~/.agent/commands/<name>.md an earlier sync copied; when codex is detected, also install commands as ~/.codex/skills/<name>/SKILL.md and register the assist codex-hook in ~/.codex/config.toml, which auto-approves read-only commands and injects the repo's composed advice on SessionStart; when pi is detected, also install commands as ~/.pi/agent/prompts/<name>.md and install the assist extensions into ~/.pi/agent/extensions, which gate permissions and inject the same advice. No global instructions file is written \u2014 every harness composes its own from assist advise at session start, and any ~/.claude/CLAUDE.md, ~/.codex/AGENTS.md or ~/.pi/agent/AGENTS.md an earlier sync left behind is named so you can remove it. A target that exists and was not written by sync is never overwritten or deleted without confirmation; with --yes it is left in place and reported. With --prune, also report files an earlier sync wrote that assist no longer ships, and with --prune --force remove them"
51692
51700
  ).option("-y, --yes", "Overwrite settings.json without prompting").option(
51693
51701
  "--prune",
51694
- "After syncing, list files an earlier sync wrote (recorded in ~/.assist/sync-manifest.json) whose name is no longer in the repo's claude/commands/*.md set; files sync did not write are listed separately and never removed"
51702
+ "After syncing, list files an earlier sync wrote (recorded in ~/.assist/sync-manifest.json) whose name is no longer in the repo's agent/commands/*.md set; files sync did not write are listed separately and never removed"
51695
51703
  ).option(
51696
51704
  "--force",
51697
51705
  "With --prune, remove the listed orphaned files; a claude or codex skill directory is removed only when SKILL.md is its sole content. Errors without --prune"
@@ -53578,20 +53586,20 @@ function restartAdvice(paths) {
53578
53586
  // src/commands/watch/syncAdvice.ts
53579
53587
  var rules = [
53580
53588
  {
53581
- matches: (path128) => path128.startsWith("claude/commands/"),
53582
- reason: "claude/commands changed"
53589
+ matches: (path128) => path128.startsWith("agent/commands/"),
53590
+ reason: "agent/commands changed"
53583
53591
  },
53584
53592
  {
53585
- matches: (path128) => path128.startsWith("claude/skills/"),
53586
- reason: "claude/skills changed"
53593
+ matches: (path128) => path128.startsWith("agent/skills/"),
53594
+ reason: "agent/skills changed"
53587
53595
  },
53588
53596
  {
53589
53597
  matches: (path128) => path128 === "claude/settings.json",
53590
53598
  reason: "claude/settings.json changed"
53591
53599
  },
53592
53600
  {
53593
- matches: (path128) => path128 === "claude/design-system-prompt.md",
53594
- reason: "claude/design-system-prompt.md changed"
53601
+ matches: (path128) => path128 === "agent/design-system-prompt.md",
53602
+ reason: "agent/design-system-prompt.md changed"
53595
53603
  },
53596
53604
  {
53597
53605
  matches: (path128) => path128.startsWith("codex/"),
@@ -56307,7 +56315,7 @@ import { fileURLToPath as fileURLToPath11 } from "url";
56307
56315
  var __filename6 = fileURLToPath11(import.meta.url);
56308
56316
  var __dirname7 = path127.dirname(__filename6);
56309
56317
  function designSystemPromptPath() {
56310
- return path127.join(__dirname7, "..", "claude", "design-system-prompt.md");
56318
+ return path127.join(__dirname7, "..", "agent", "design-system-prompt.md");
56311
56319
  }
56312
56320
 
56313
56321
  // src/commands/sessions/daemon/sessionModeLaunch.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1122.0",
3
+ "version": "0.1123.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -10,6 +10,7 @@
10
10
  },
11
11
  "files": [
12
12
  "dist",
13
+ "agent",
13
14
  "claude",
14
15
  "codex",
15
16
  "pi",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes