Mikael Hugo
0b5fa75c0d
fix(lint): fix all pre-existing lint failures
...
- check-sf-extension-inventory.mjs: expand parseDirectRegisteredCommands()
scan to include 7 more files (guards/inturn.js, notifications/notify.js,
permissions/index.js, ui/usage-bar.js, commands/legacy/audit.js,
commands/legacy/create-extension.js, commands/legacy/create-slash-command.js)
and filter results by BASE_RUNTIME_COMMAND_NAMES to exclude doc-string false
positives ("name" in create-slash-command.js template text)
- extension-manifest.json: remove 'clear' (subcommand of logs/notifications,
never a top-level pi.registerCommand)
- packages/pi-agent-core/src/db/sf-db.ts: fix 23 noVoidTypeReturn errors
- openDatabase: void → boolean (caller uses return value at line 5625)
- claimEscalationOverride: void → boolean (caller checks at escalation.js:243)
- resolveSelfFeedbackEntry: void → boolean (caller checks at self-feedback.js:387)
- copyWorktreeDb: void → boolean (caller checks at reconcileWorktreeDb)
- compactUokMessages: void → {before,after} (caller returns value at message-bus.js:238)
- insertSessionTurn: void → bigint|null (caller uses id at session-recorder.js:104)
- expireStaleMemories: void → number (caller uses count at auto-start.js:1047)
- deleteMemorySourceRow: void → boolean (caller returns value at memory-source-store.js:107)
- deleteMemoryEmbedding: void → boolean (caller returns value at memory-embeddings.js:328)
- updateBacklogItemStatus: remove dead return expression (callers discard value)
- removeBacklogItem: remove dead return expression (callers discard value)
- updateGateCircuitBreaker: remove dead return {total,avgMs,...} (wrong-type
code accidentally merged from getGateLatencyStats, never reachable)
- markUokMessageRead: remove dead return true/false (callers discard value)
- Auto-fix formatting and organizeImports in ~30 source files (biome --write)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 04:02:31 +02:00
Mikael Hugo
924383b6f7
sf snapshot: uncommitted changes after 197m inactivity
2026-05-10 15:59:33 +02:00
Mikael Hugo
02a4339a51
refactor: rename pi-* packages to forge-native names (Phase 1)
...
Rename all four packages/pi-* directories to forge-native names,
stripping the 'pi' identity and establishing forge's own:
- packages/pi-coding-agent → packages/coding-agent
- packages/pi-ai → packages/ai
- packages/pi-agent-core → packages/agent-core
- packages/pi-tui → packages/tui
Package names updated:
- @singularity-forge/pi-coding-agent → @singularity-forge/coding-agent
- @singularity-forge/pi-ai → @singularity-forge/ai
- @singularity-forge/pi-agent-core → @singularity-forge/agent-core
- @singularity-forge/pi-tui → @singularity-forge/tui
All import references, bare string references, path references,
internal variable names (_bundledPi*), and dist files updated.
@mariozechner/pi-* third-party compat aliases preserved.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-10 11:28:01 +02:00
Mikael Hugo
19bfc3d3f6
feat(sf): align node sqlite uok runtime
2026-05-08 03:01:20 +02:00
Mikael Hugo
4f39c3f4c8
docs: tighten sf runtime state boundary
2026-05-07 04:00:58 +02:00
Mikael Hugo
8e80456cdc
docs: remove mcp server package residue
2026-05-07 03:51:45 +02:00
Mikael Hugo
f655188814
sf snapshot: uncommitted changes after 93m inactivity
2026-05-06 11:37:27 +02:00
Mikael Hugo
d75ebfe7c3
sf snapshot: uncommitted changes after 43m inactivity
2026-05-05 21:39:56 +02:00
Mikael Hugo
0c7c4eca5b
fix(sf): harden auto loops and skill sandbox
2026-05-02 19:46:36 +02:00
Mikael Hugo
3915dfda3a
chore(vitest): bump testTimeout 30s→60s to absorb cold-import latency
...
Cold vitest+esbuild module-graph imports take 16-25s on this repo (dynamic
imports of captures.js and friends). The 30s testTimeout was racing the
import phase, producing 30s spurious failures across dev-engine-wrapper,
ensure-db-open, workflow-mcp, sf-tools, verification-gate, hook-key-parsing,
visualizer-overlay, and others — all timing out at exactly ~30s with no
real assertion failure.
Also bumps hookTimeout symmetrically.
Re-running the affected files: 147/147 pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 11:53:31 +02:00
Mikael Hugo
5f52680285
chore: snapshot in-flight work (mcp graph refactor, native edit module, misc)
...
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 08:31:44 +02:00
Mikael Hugo
f00af5b67f
chore: remove last vitest exclude — lsp-integration already converted
...
💘 Generated with Crush
Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-05-02 06:22:59 +02:00
Mikael Hugo
a920164a04
chore: worktree e2e test update
...
💘 Generated with Crush
Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-05-02 06:21:09 +02:00
Mikael Hugo
6fcf61ba0e
chore: lockfile update and vitest config cleanup
...
💘 Generated with Crush
Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-05-02 06:19:52 +02:00
Mikael Hugo
7106a04951
chore: remaining studio and web updates
...
💘 Generated with Crush
Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-05-02 06:18:50 +02:00
Mikael Hugo
2be52e28a3
test: convert ci_monitor and linux-ready to vitest, add vectordrive to include
2026-05-02 05:45:40 +02:00
Mikael Hugo
449d0ca878
test: convert remaining standalone tests to vitest, remove debug logs, fix parser fallback
2026-05-02 05:43:32 +02:00
Mikael Hugo
ba5ecfc050
fix: stalled-tool-recovery test wrap in describe/it, minor cleanup
...
- Wrap bare test blocks in describe/it for vitest compatibility
- Clean up vitest.config.ts
💘 Generated with Crush
Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-05-02 05:41:39 +02:00
Mikael Hugo
7dd59ad70d
test: enable 7 more converted vitest tests and fix worktree-nested-git slice size
2026-05-02 05:35:42 +02:00
Mikael Hugo
9ad818d4a0
test: enable 7 converted vitest tests previously in exclude list
2026-05-02 05:32:32 +02:00
Mikael Hugo
0682fbc32a
test: remove debug logs, fix loop.ts logging, and enable converted vitest tests
2026-05-02 05:13:14 +02:00
Mikael Hugo
3ddb8c84e0
chore: commit current worktree state
2026-05-02 05:11:03 +02:00
Mikael Hugo
b62f7b20ec
fix: convert node:test API calls to vitest equivalents
...
- t.after() → afterEach() with import injection
- t.before() → beforeEach() with import injection
- t.test() → test() (flatten subtests)
- t.skip() → return with skip comment
- Fix vitest.config.ts poolOptions deprecation for Vitest 4
- Run fix-vitest-api.mjs across 108 affected test files
💘 Generated with Crush
Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-05-02 04:42:38 +02:00
Mikael Hugo
59aaf3dcf3
chore: migrate test suite from node:test to vitest
...
Add vitest.config.ts with forks pool, v8 coverage, and package aliases.
Run migrate-to-vitest.mjs to replace `from "node:test"` imports with
`from 'vitest'` across 749 test files, converting mock.fn→vi.fn and
mock.timers→vi fake timers where needed.
💘 Generated with Crush
Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-05-02 04:37:33 +02:00