workon 2.1.2 → 3.0.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/README.md +19 -4
- package/bin/workon +1 -11
- package/dist/cli.js +2227 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +1216 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +280 -0
- package/dist/index.d.ts +280 -0
- package/dist/index.js +1173 -0
- package/dist/index.js.map +1 -0
- package/package.json +68 -21
- package/.claude/settings.local.json +0 -11
- package/.cursorindexingignore +0 -3
- package/.history/.gitignore_20250806202718 +0 -30
- package/.history/.gitignore_20250806231444 +0 -32
- package/.history/.gitignore_20250806231450 +0 -32
- package/.history/lib/tmux_20250806233103.js +0 -109
- package/.history/lib/tmux_20250806233219.js +0 -109
- package/.history/lib/tmux_20250806233223.js +0 -109
- package/.history/lib/tmux_20250806233230.js +0 -109
- package/.history/lib/tmux_20250806233231.js +0 -109
- package/.history/lib/tmux_20250807120751.js +0 -190
- package/.history/lib/tmux_20250807120757.js +0 -190
- package/.history/lib/tmux_20250807120802.js +0 -190
- package/.history/lib/tmux_20250807120808.js +0 -190
- package/.history/package_20250807114243.json +0 -43
- package/.history/package_20250807114257.json +0 -43
- package/.history/package_20250807114404.json +0 -43
- package/.history/package_20250807114409.json +0 -43
- package/.history/package_20250807114510.json +0 -43
- package/.history/package_20250807114637.json +0 -43
- package/.vscode/launch.json +0 -20
- package/.vscode/terminals.json +0 -11
- package/CHANGELOG.md +0 -103
- package/CLAUDE.md +0 -100
- package/cli/base.js +0 -16
- package/cli/config/index.js +0 -19
- package/cli/config/list.js +0 -26
- package/cli/config/set.js +0 -19
- package/cli/config/unset.js +0 -26
- package/cli/index.js +0 -184
- package/cli/interactive.js +0 -290
- package/cli/manage.js +0 -413
- package/cli/open.js +0 -414
- package/commands/base.js +0 -105
- package/commands/core/cwd/index.js +0 -86
- package/commands/core/ide/index.js +0 -84
- package/commands/core/web/index.js +0 -109
- package/commands/extensions/claude/index.js +0 -211
- package/commands/extensions/docker/index.js +0 -167
- package/commands/extensions/npm/index.js +0 -208
- package/commands/registry.js +0 -196
- package/demo-colon-syntax.js +0 -57
- package/docs/adr/001-command-centric-architecture.md +0 -304
- package/docs/adr/002-positional-command-arguments.md +0 -402
- package/docs/ideas.md +0 -93
- package/lib/config.js +0 -51
- package/lib/environment/base.js +0 -12
- package/lib/environment/index.js +0 -108
- package/lib/environment/project.js +0 -26
- package/lib/project.js +0 -68
- package/lib/tmux.js +0 -221
- package/lib/validation.js +0 -120
- package/test-architecture.js +0 -145
- package/test-colon-syntax.js +0 -85
- package/test-registry.js +0 -57
package/test-registry.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const registry = require('./commands/registry');
|
|
2
|
-
|
|
3
|
-
async function testRegistry() {
|
|
4
|
-
console.log('Testing Command Registry...\n');
|
|
5
|
-
|
|
6
|
-
try {
|
|
7
|
-
await registry.initialize();
|
|
8
|
-
console.log('✅ Registry initialized successfully\n');
|
|
9
|
-
|
|
10
|
-
// Test getting valid event names
|
|
11
|
-
const eventNames = registry.getValidEventNames();
|
|
12
|
-
console.log('Valid event names:', eventNames);
|
|
13
|
-
|
|
14
|
-
// Test getting commands for manage UI
|
|
15
|
-
const manageCommands = registry.getCommandsForManageUI();
|
|
16
|
-
console.log('\nCommands for manage UI:');
|
|
17
|
-
manageCommands.forEach(cmd => {
|
|
18
|
-
console.log(` - ${cmd.name} (${cmd.value}): ${cmd.description}`);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
// Test getting specific commands
|
|
22
|
-
console.log('\nTesting specific commands:');
|
|
23
|
-
const cwdCommand = registry.getCommandByName('cwd');
|
|
24
|
-
if (cwdCommand) {
|
|
25
|
-
console.log('✅ CWD command found');
|
|
26
|
-
console.log(' Metadata:', cwdCommand.metadata);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const claudeCommand = registry.getCommandByName('claude');
|
|
30
|
-
if (claudeCommand) {
|
|
31
|
-
console.log('✅ Claude command found');
|
|
32
|
-
console.log(' Metadata:', claudeCommand.metadata);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Test tmux commands
|
|
36
|
-
const tmuxCommands = registry.getTmuxEnabledCommands();
|
|
37
|
-
console.log('\nTmux-enabled commands:');
|
|
38
|
-
tmuxCommands.forEach(cmd => {
|
|
39
|
-
console.log(` - ${cmd.name} (priority: ${cmd.priority})`);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
// Test validation
|
|
43
|
-
console.log('\nTesting validation:');
|
|
44
|
-
if (cwdCommand) {
|
|
45
|
-
console.log('CWD validation (true):', cwdCommand.validation.validateConfig(true));
|
|
46
|
-
console.log('CWD validation (invalid):', cwdCommand.validation.validateConfig(123));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
console.log('\n✅ All tests passed!');
|
|
50
|
-
|
|
51
|
-
} catch (error) {
|
|
52
|
-
console.error('❌ Error testing registry:', error.message);
|
|
53
|
-
console.error(error.stack);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
testRegistry();
|