wave-agent-sdk 0.13.0 → 0.13.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slashCommandManager.d.ts","sourceRoot":"","sources":["../../src/managers/slashCommandManager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAQ1E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAWlD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKxD,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,mBAAmB;IAQ5B,OAAO,CAAC,SAAS;IAPnB,OAAO,CAAC,QAAQ,CAAmC;IACnD,OAAO,CAAC,cAAc,CAAyC;IAC/D,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,6BAA6B,CAAgC;gBAG3D,SAAS,EAAE,SAAS,EAC5B,OAAO,EAAE,0BAA0B;IAK9B,UAAU,IAAI,IAAI;IAazB,OAAO,KAAK,cAAc,GAEzB;IAED,OAAO,KAAK,SAAS,GAEpB;IAED,OAAO,KAAK,qBAAqB,GAEhC;IAED,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,KAAK,YAAY,GAEvB;IAED,OAAO,KAAK,eAAe,GAE1B;IAED,OAAO,CAAC,yBAAyB;IAcjC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IA2C1B;;OAEG;IACI,qBAAqB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI;IAyK3D;;OAEG;IACI,sBAAsB,CAC3B,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,kBAAkB,EAAE,GAC7B,IAAI;
|
|
1
|
+
{"version":3,"file":"slashCommandManager.d.ts","sourceRoot":"","sources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YAAY,GAAG,SAAS;IAI9D;;OAEG;IACU,cAAc,CACzB,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,OAAO,CAAC;IA2BnB;;;OAGG;IACI,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG;QAClD,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAeD;;OAEG;IACI,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAI7C;;OAEG;IACI,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAI1E;;OAEG;IACI,iBAAiB,IAAI,kBAAkB,EAAE;IAIhD;;OAEG;YACW,+BAA+B;IAkD7C;;OAEG;IACI,mBAAmB,IAAI,IAAI;CAQnC"}
|
|
@@ -237,7 +237,7 @@ export class SlashCommandManager {
|
|
|
237
237
|
if (args) {
|
|
238
238
|
processedContent = substituteCommandParameters(processedContent, args);
|
|
239
239
|
}
|
|
240
|
-
await this.executeCustomCommandInMainAgent(namespacedName, processedContent, command.config);
|
|
240
|
+
await this.executeCustomCommandInMainAgent(namespacedName, processedContent, command.config, args);
|
|
241
241
|
},
|
|
242
242
|
});
|
|
243
243
|
}
|
|
@@ -349,13 +349,13 @@ export class SlashCommandManager {
|
|
|
349
349
|
/**
|
|
350
350
|
* Execute custom command in main agent instead of sub-agent
|
|
351
351
|
*/
|
|
352
|
-
async executeCustomCommandInMainAgent(commandName, content, config) {
|
|
352
|
+
async executeCustomCommandInMainAgent(commandName, content, config, args) {
|
|
353
353
|
try {
|
|
354
354
|
// Parse bash commands from the content
|
|
355
355
|
const { commands, processedContent } = parseBashCommands(content);
|
|
356
356
|
// Add user message immediately so text block shows before bash execution
|
|
357
357
|
const messageId = this.messageManager.addUserMessage({
|
|
358
|
-
content: `/${commandName}`,
|
|
358
|
+
content: `/${commandName}${args ? ` ${args}` : ""}`,
|
|
359
359
|
customCommandContent: processedContent,
|
|
360
360
|
});
|
|
361
361
|
// Execute bash commands and update the message if any exist
|
package/package.json
CHANGED
|
@@ -350,6 +350,7 @@ export class SlashCommandManager {
|
|
|
350
350
|
namespacedName,
|
|
351
351
|
processedContent,
|
|
352
352
|
command.config,
|
|
353
|
+
args,
|
|
353
354
|
);
|
|
354
355
|
},
|
|
355
356
|
});
|
|
@@ -486,6 +487,7 @@ export class SlashCommandManager {
|
|
|
486
487
|
commandName: string,
|
|
487
488
|
content: string,
|
|
488
489
|
config?: { model?: string; allowedTools?: string[] },
|
|
490
|
+
args?: string,
|
|
489
491
|
): Promise<void> {
|
|
490
492
|
try {
|
|
491
493
|
// Parse bash commands from the content
|
|
@@ -493,7 +495,7 @@ export class SlashCommandManager {
|
|
|
493
495
|
|
|
494
496
|
// Add user message immediately so text block shows before bash execution
|
|
495
497
|
const messageId = this.messageManager.addUserMessage({
|
|
496
|
-
content: `/${commandName}`,
|
|
498
|
+
content: `/${commandName}${args ? ` ${args}` : ""}`,
|
|
497
499
|
customCommandContent: processedContent,
|
|
498
500
|
});
|
|
499
501
|
|