oh-my-claude-sisyphus 1.1.0 → 1.1.1
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/commands/index.d.ts +78 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +148 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Command Expansion Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides SDK-compatible access to slash commands by reading
|
|
5
|
+
* command templates and expanding them with arguments.
|
|
6
|
+
*/
|
|
7
|
+
export interface CommandInfo {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
template: string;
|
|
11
|
+
filePath: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ExpandedCommand {
|
|
14
|
+
name: string;
|
|
15
|
+
prompt: string;
|
|
16
|
+
description: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get the commands directory path
|
|
20
|
+
*/
|
|
21
|
+
export declare function getCommandsDir(): string;
|
|
22
|
+
/**
|
|
23
|
+
* Get a specific command by name
|
|
24
|
+
*/
|
|
25
|
+
export declare function getCommand(name: string): CommandInfo | null;
|
|
26
|
+
/**
|
|
27
|
+
* Get all available commands
|
|
28
|
+
*/
|
|
29
|
+
export declare function getAllCommands(): CommandInfo[];
|
|
30
|
+
/**
|
|
31
|
+
* List available command names
|
|
32
|
+
*/
|
|
33
|
+
export declare function listCommands(): string[];
|
|
34
|
+
/**
|
|
35
|
+
* Expand a command template with arguments
|
|
36
|
+
*
|
|
37
|
+
* @param name - Command name (without leading slash)
|
|
38
|
+
* @param args - Arguments to substitute for $ARGUMENTS
|
|
39
|
+
* @returns Expanded command ready for SDK query
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import { expandCommand } from 'oh-my-claude-sisyphus';
|
|
44
|
+
*
|
|
45
|
+
* const prompt = expandCommand('ralph-loop', 'Build a REST API');
|
|
46
|
+
* // Returns the full ralph-loop template with "Build a REST API" substituted
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function expandCommand(name: string, args?: string): ExpandedCommand | null;
|
|
50
|
+
/**
|
|
51
|
+
* Expand a command and return just the prompt string
|
|
52
|
+
* Convenience function for direct use with SDK query
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import { expandCommandPrompt } from 'oh-my-claude-sisyphus';
|
|
57
|
+
* import { query } from '@anthropic-ai/claude-agent-sdk';
|
|
58
|
+
*
|
|
59
|
+
* const prompt = expandCommandPrompt('ultrawork', 'Refactor the auth module');
|
|
60
|
+
*
|
|
61
|
+
* for await (const msg of query({ prompt })) {
|
|
62
|
+
* console.log(msg);
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare function expandCommandPrompt(name: string, args?: string): string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Check if a command exists
|
|
69
|
+
*/
|
|
70
|
+
export declare function commandExists(name: string): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Batch expand multiple commands
|
|
73
|
+
*/
|
|
74
|
+
export declare function expandCommands(commands: Array<{
|
|
75
|
+
name: string;
|
|
76
|
+
args?: string;
|
|
77
|
+
}>): ExpandedCommand[];
|
|
78
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAsBD;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAsB3D;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,WAAW,EAAE,CAwB9C;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW,GAAG,eAAe,GAAG,IAAI,CAerF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW,GAAG,MAAM,GAAG,IAAI,CAGlF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,eAAe,EAAE,CAIlG"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Command Expansion Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides SDK-compatible access to slash commands by reading
|
|
5
|
+
* command templates and expanding them with arguments.
|
|
6
|
+
*/
|
|
7
|
+
import { readFileSync, existsSync, readdirSync } from 'fs';
|
|
8
|
+
import { join } from 'path';
|
|
9
|
+
import { homedir } from 'os';
|
|
10
|
+
/**
|
|
11
|
+
* Get the commands directory path
|
|
12
|
+
*/
|
|
13
|
+
export function getCommandsDir() {
|
|
14
|
+
return join(homedir(), '.claude', 'commands');
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Parse command frontmatter and content
|
|
18
|
+
*/
|
|
19
|
+
function parseCommandFile(content) {
|
|
20
|
+
const frontmatterMatch = content.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/);
|
|
21
|
+
if (!frontmatterMatch) {
|
|
22
|
+
return { description: '', template: content };
|
|
23
|
+
}
|
|
24
|
+
const frontmatter = frontmatterMatch[1];
|
|
25
|
+
const template = frontmatterMatch[2];
|
|
26
|
+
// Extract description from frontmatter
|
|
27
|
+
const descMatch = frontmatter.match(/description:\s*(.+)/);
|
|
28
|
+
const description = descMatch ? descMatch[1].trim() : '';
|
|
29
|
+
return { description, template };
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get a specific command by name
|
|
33
|
+
*/
|
|
34
|
+
export function getCommand(name) {
|
|
35
|
+
const commandsDir = getCommandsDir();
|
|
36
|
+
const filePath = join(commandsDir, `${name}.md`);
|
|
37
|
+
if (!existsSync(filePath)) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
const content = readFileSync(filePath, 'utf-8');
|
|
42
|
+
const { description, template } = parseCommandFile(content);
|
|
43
|
+
return {
|
|
44
|
+
name,
|
|
45
|
+
description,
|
|
46
|
+
template,
|
|
47
|
+
filePath
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
console.error(`Error reading command ${name}:`, error);
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get all available commands
|
|
57
|
+
*/
|
|
58
|
+
export function getAllCommands() {
|
|
59
|
+
const commandsDir = getCommandsDir();
|
|
60
|
+
if (!existsSync(commandsDir)) {
|
|
61
|
+
return [];
|
|
62
|
+
}
|
|
63
|
+
try {
|
|
64
|
+
const files = readdirSync(commandsDir).filter(f => f.endsWith('.md'));
|
|
65
|
+
const commands = [];
|
|
66
|
+
for (const file of files) {
|
|
67
|
+
const name = file.replace('.md', '');
|
|
68
|
+
const command = getCommand(name);
|
|
69
|
+
if (command) {
|
|
70
|
+
commands.push(command);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return commands;
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
console.error('Error listing commands:', error);
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* List available command names
|
|
82
|
+
*/
|
|
83
|
+
export function listCommands() {
|
|
84
|
+
return getAllCommands().map(c => c.name);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Expand a command template with arguments
|
|
88
|
+
*
|
|
89
|
+
* @param name - Command name (without leading slash)
|
|
90
|
+
* @param args - Arguments to substitute for $ARGUMENTS
|
|
91
|
+
* @returns Expanded command ready for SDK query
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* import { expandCommand } from 'oh-my-claude-sisyphus';
|
|
96
|
+
*
|
|
97
|
+
* const prompt = expandCommand('ralph-loop', 'Build a REST API');
|
|
98
|
+
* // Returns the full ralph-loop template with "Build a REST API" substituted
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
export function expandCommand(name, args = '') {
|
|
102
|
+
const command = getCommand(name);
|
|
103
|
+
if (!command) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
// Replace $ARGUMENTS placeholder with actual arguments
|
|
107
|
+
const prompt = command.template.replace(/\$ARGUMENTS/g, args);
|
|
108
|
+
return {
|
|
109
|
+
name,
|
|
110
|
+
prompt: prompt.trim(),
|
|
111
|
+
description: command.description
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Expand a command and return just the prompt string
|
|
116
|
+
* Convenience function for direct use with SDK query
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```typescript
|
|
120
|
+
* import { expandCommandPrompt } from 'oh-my-claude-sisyphus';
|
|
121
|
+
* import { query } from '@anthropic-ai/claude-agent-sdk';
|
|
122
|
+
*
|
|
123
|
+
* const prompt = expandCommandPrompt('ultrawork', 'Refactor the auth module');
|
|
124
|
+
*
|
|
125
|
+
* for await (const msg of query({ prompt })) {
|
|
126
|
+
* console.log(msg);
|
|
127
|
+
* }
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
export function expandCommandPrompt(name, args = '') {
|
|
131
|
+
const expanded = expandCommand(name, args);
|
|
132
|
+
return expanded ? expanded.prompt : null;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Check if a command exists
|
|
136
|
+
*/
|
|
137
|
+
export function commandExists(name) {
|
|
138
|
+
return getCommand(name) !== null;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Batch expand multiple commands
|
|
142
|
+
*/
|
|
143
|
+
export function expandCommands(commands) {
|
|
144
|
+
return commands
|
|
145
|
+
.map(({ name, args }) => expandCommand(name, args))
|
|
146
|
+
.filter((c) => c !== null);
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAe7B;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAChD,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,OAAe;IACvC,MAAM,gBAAgB,GAAG,OAAO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IAAI,CAAC,CAAC;IAE9D,OAAO;QACL,IAAI;QACJ,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE;QACrB,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY,EAAE,OAAe,EAAE;IACjE,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC3C,OAAO,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,QAAgD;IAC7E,OAAO,QAAQ;SACZ,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAClD,MAAM,CAAC,CAAC,CAAC,EAAwB,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;AACrD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { getDefaultMcpServers, toSdkMcpFormat } from './mcp/servers.js';
|
|
|
20
20
|
export { lspTools, astTools, allCustomTools } from './tools/index.js';
|
|
21
21
|
export { createMagicKeywordProcessor, detectMagicKeywords } from './features/magic-keywords.js';
|
|
22
22
|
export * from './shared/types.js';
|
|
23
|
+
export { expandCommand, expandCommandPrompt, getCommand, getAllCommands, listCommands, commandExists, expandCommands, getCommandsDir, type CommandInfo, type ExpandedCommand } from './commands/index.js';
|
|
23
24
|
/**
|
|
24
25
|
* Options for creating a Sisyphus session
|
|
25
26
|
*/
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAA0C,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAIpF,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChG,cAAc,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAA0C,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAIpF,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChG,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,cAA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,MAAM,KAAK,MAAM,EAAE,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CA6FhF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,MAAM,CAG3E;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,CAAC,EAAE;IAChD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,MAAM,CAYT"}
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,8 @@ export { getDefaultMcpServers, toSdkMcpFormat } from './mcp/servers.js';
|
|
|
22
22
|
export { lspTools, astTools, allCustomTools } from './tools/index.js';
|
|
23
23
|
export { createMagicKeywordProcessor, detectMagicKeywords } from './features/magic-keywords.js';
|
|
24
24
|
export * from './shared/types.js';
|
|
25
|
+
// Command expansion utilities for SDK integration
|
|
26
|
+
export { expandCommand, expandCommandPrompt, getCommand, getAllCommands, listCommands, commandExists, expandCommands, getCommandsDir } from './commands/index.js';
|
|
25
27
|
/**
|
|
26
28
|
* Create a Sisyphus orchestration session
|
|
27
29
|
*
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACh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