@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.
- package/dist/built-version +1 -1
- package/dist/commands/sessions/web/bundle.js +400 -400
- package/dist/index.js +45 -37
- package/package.json +2 -1
- /package/{claude → agent}/commands/add-command.md +0 -0
- /package/{claude → agent}/commands/add-rule.md +0 -0
- /package/{claude → agent}/commands/ask.md +0 -0
- /package/{claude → agent}/commands/branch.md +0 -0
- /package/{claude → agent}/commands/bug.md +0 -0
- /package/{claude → agent}/commands/close.md +0 -0
- /package/{claude → agent}/commands/comment.md +0 -0
- /package/{claude → agent}/commands/commit.md +0 -0
- /package/{claude → agent}/commands/design.md +0 -0
- /package/{claude → agent}/commands/devlog.md +0 -0
- /package/{claude → agent}/commands/draft.md +0 -0
- /package/{claude → agent}/commands/extension.md +0 -0
- /package/{claude → agent}/commands/fix-conflict.md +0 -0
- /package/{claude → agent}/commands/fix-rules.md +0 -0
- /package/{claude → agent}/commands/forward-comments.md +0 -0
- /package/{claude → agent}/commands/github.md +0 -0
- /package/{claude → agent}/commands/inspect.md +0 -0
- /package/{claude → agent}/commands/jira.md +0 -0
- /package/{claude → agent}/commands/miro.md +0 -0
- /package/{claude → agent}/commands/next.md +0 -0
- /package/{claude → agent}/commands/pr.md +0 -0
- /package/{claude → agent}/commands/prompts.md +0 -0
- /package/{claude → agent}/commands/prs-slack.md +0 -0
- /package/{claude → agent}/commands/prs-status.md +0 -0
- /package/{claude → agent}/commands/raven.md +0 -0
- /package/{claude → agent}/commands/refactor.md +0 -0
- /package/{claude → agent}/commands/refine.md +0 -0
- /package/{claude → agent}/commands/releases-configure.md +0 -0
- /package/{claude → agent}/commands/rename.md +0 -0
- /package/{claude → agent}/commands/restructure.md +0 -0
- /package/{claude → agent}/commands/review-config.md +0 -0
- /package/{claude → agent}/commands/review-high-level.md +0 -0
- /package/{claude → agent}/commands/review-pr-comments.md +0 -0
- /package/{claude → agent}/commands/run-logs.md +0 -0
- /package/{claude → agent}/commands/screenshot.md +0 -0
- /package/{claude → agent}/commands/seq.md +0 -0
- /package/{claude → agent}/commands/show.md +0 -0
- /package/{claude → agent}/commands/slack-post.md +0 -0
- /package/{claude → agent}/commands/sql.md +0 -0
- /package/{claude → agent}/commands/supabase.md +0 -0
- /package/{claude → agent}/commands/sync.md +0 -0
- /package/{claude → agent}/commands/test-cover.md +0 -0
- /package/{claude → agent}/commands/test-review.md +0 -0
- /package/{claude → agent}/commands/transcripts.md +0 -0
- /package/{claude → agent}/commands/verify-new.md +0 -0
- /package/{claude → agent}/commands/verify.md +0 -0
- /package/{claude → agent}/design-system-prompt.md +0 -0
- /package/{claude → agent}/skills/accessibility-audit.md +0 -0
- /package/{claude → agent}/skills/ai-slop-check.md +0 -0
- /package/{claude → agent}/skills/component-extract.md +0 -0
- /package/{claude → agent}/skills/design-system-extract.md +0 -0
- /package/{claude → agent}/skills/discovery-questions.md +0 -0
- /package/{claude → agent}/skills/frontend-aesthetic-direction.md +0 -0
- /package/{claude → agent}/skills/generate-variations.md +0 -0
- /package/{claude → agent}/skills/hierarchy-rhythm-review.md +0 -0
- /package/{claude → agent}/skills/interaction-states-pass.md +0 -0
- /package/{claude → agent}/skills/make-a-deck.md +0 -0
- /package/{claude → agent}/skills/make-a-prototype.md +0 -0
- /package/{claude → agent}/skills/make-tweakable.md +0 -0
- /package/{claude → agent}/skills/polish-pass.md +0 -0
- /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.
|
|
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([
|
|
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(
|
|
51278
|
-
const sourceDir = path113.join(
|
|
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(
|
|
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(
|
|
51405
|
+
fs63.readFileSync(path116.join(agentDir, "design-system-prompt.md"), "utf8")
|
|
51395
51406
|
);
|
|
51396
|
-
const skillsSource = path116.join(
|
|
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(
|
|
51415
|
-
const commandsSource = path117.join(
|
|
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(
|
|
51472
|
+
async function syncCodex(agentDir, files, options2) {
|
|
51462
51473
|
if (!isHarnessAvailable("codex")) return;
|
|
51463
51474
|
const { total: total2, names } = installHarnessCommands(
|
|
51464
|
-
|
|
51475
|
+
agentDir,
|
|
51465
51476
|
harnesses.codex,
|
|
51466
51477
|
commandToSkill,
|
|
51467
51478
|
files
|
|
51468
51479
|
);
|
|
51469
|
-
const designSkills = installDesignResources(
|
|
51470
|
-
|
|
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(
|
|
51502
|
+
function syncDesign(agentDir, targetBase, files) {
|
|
51496
51503
|
files.write(
|
|
51497
51504
|
path120.join(targetBase, "design-system-prompt.md"),
|
|
51498
|
-
fs66.readFileSync(path120.join(
|
|
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(
|
|
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(
|
|
51549
|
+
function syncPi(agentDir, files, options2) {
|
|
51543
51550
|
if (!isHarnessAvailable("pi")) return;
|
|
51544
51551
|
const { synced, names } = installHarnessCommands(
|
|
51545
|
-
|
|
51552
|
+
agentDir,
|
|
51546
51553
|
harnesses.pi,
|
|
51547
51554
|
commandToPrompt,
|
|
51548
51555
|
files
|
|
51549
51556
|
);
|
|
51550
|
-
const designSkills = installDesignResources(
|
|
51551
|
-
syncPiHooks(path121.join(
|
|
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(
|
|
51676
|
-
const designSkillNames = syncDesign(
|
|
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(
|
|
51682
|
-
syncPi(
|
|
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 ~/.
|
|
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
|
|
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("
|
|
53582
|
-
reason: "
|
|
53589
|
+
matches: (path128) => path128.startsWith("agent/commands/"),
|
|
53590
|
+
reason: "agent/commands changed"
|
|
53583
53591
|
},
|
|
53584
53592
|
{
|
|
53585
|
-
matches: (path128) => path128.startsWith("
|
|
53586
|
-
reason: "
|
|
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 === "
|
|
53594
|
-
reason: "
|
|
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, "..", "
|
|
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
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|