Skip to content

Commit 86a19e5

Browse files
chore(cli): prune unused commands and make skills optional
Remove unused CLI commands to reduce complexity: - sweep: Required 1.5GB model download, Python deps - quality: Had wrong DB path, incomplete integration - monitor: Duplicated daemon functionality - test: TestingAgent was stub implementation - workflow: Half-implemented feature Skills command now feature-flagged (STACKMEMORY_SKILLS=true): - handoff, checkpoint, dig, rlm still available when enabled Removes ~2600 lines of code while keeping core functionality.
1 parent 0ad84da commit 86a19e5

File tree

11 files changed

+55
-2403
lines changed

11 files changed

+55
-2403
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackmemoryai/stackmemory",
3-
"version": "0.5.47",
3+
"version": "0.5.48",
44
"description": "Lossless memory runtime for AI coding tools - organizes context as a call stack instead of linear chat logs, with team collaboration and infinite retention",
55
"engines": {
66
"node": ">=20.0.0",
@@ -74,6 +74,9 @@
7474
"daemons:stop": "node scripts/claude-sm-autostart.js stop",
7575
"daemon:session": "node dist/daemon/session-daemon.js",
7676
"daemon:session:start": "node dist/daemon/session-daemon.js --session-id",
77+
"daemon:start": "node dist/daemon/unified-daemon.js",
78+
"daemon:stop": "node dist/cli/index.js daemon stop",
79+
"daemon:status": "node dist/cli/index.js daemon status",
7780
"sync:start": "node scripts/background-sync-manager.js",
7881
"sync:setup": "./scripts/setup-background-sync.sh",
7982
"prepare": "echo 'Prepare step completed'"

src/__tests__/integration/cli-integration.test.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -87,31 +87,4 @@ describe('CLI Integration', () => {
8787
expect(result).toContain('Context Usage');
8888
});
8989
});
90-
91-
describe('Workflow Command', () => {
92-
it('should list available workflows', () => {
93-
// Initialize first
94-
execSync(`node ${cliPath} init`, { cwd: testDir });
95-
96-
const result = execSync(`node ${cliPath} workflow --list`, {
97-
cwd: testDir,
98-
encoding: 'utf8',
99-
});
100-
101-
expect(result).toContain('Available Workflows');
102-
});
103-
104-
it('should show workflow status', () => {
105-
// Initialize first
106-
execSync(`node ${cliPath} init`, { cwd: testDir });
107-
108-
const result = execSync(`node ${cliPath} workflow --status`, {
109-
cwd: testDir,
110-
encoding: 'utf8',
111-
});
112-
113-
// Should show status (even if no workflow active)
114-
expect(result).toBeDefined();
115-
});
116-
});
11790
});

src/cli/commands/__tests__/integration.test.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -49,50 +49,6 @@ describe('CLI Integration Tests', () => {
4949
});
5050
});
5151

52-
describe('Workflow Commands', () => {
53-
it('should list available workflows', () => {
54-
const result = execSync(cli('workflow --list'), {
55-
cwd: testDir,
56-
encoding: 'utf8',
57-
});
58-
59-
// Updated to match actual output
60-
expect(result).toContain('Available Workflows');
61-
expect(result).toContain('tdd');
62-
expect(result).toContain('feature');
63-
expect(result).toContain('bugfix');
64-
expect(result).toContain('refactor');
65-
});
66-
67-
it('should start TDD workflow', () => {
68-
const result = execSync(cli('workflow --start tdd'), {
69-
cwd: testDir,
70-
encoding: 'utf8',
71-
});
72-
73-
// Updated to match actual output
74-
expect(result).toContain('Started tdd workflow');
75-
expect(result).toContain('Workflow ID:');
76-
});
77-
78-
it('should show workflow status', { timeout: 30000 }, () => {
79-
// Start a workflow first
80-
execSync(cli('workflow --start feature'), {
81-
cwd: testDir,
82-
timeout: 15000,
83-
});
84-
85-
const result = execSync(cli('workflow --status'), {
86-
cwd: testDir,
87-
encoding: 'utf8',
88-
timeout: 15000,
89-
});
90-
91-
// Updated to match actual output
92-
expect(result).toContain('Active Workflows');
93-
});
94-
});
95-
9652
describe('Handoff Commands', () => {
9753
it('should generate handoff document', () => {
9854
const result = execSync(cli('handoff capture'), {

src/cli/commands/__tests__/sweep.test.ts

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)