@lakitu/sdk 0.1.16 ā 0.1.17
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.
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
|
+
action,
|
|
9
10
|
mutation,
|
|
10
11
|
query,
|
|
11
12
|
internalMutation,
|
|
@@ -649,3 +650,34 @@ export const list = query({
|
|
|
649
650
|
}));
|
|
650
651
|
},
|
|
651
652
|
});
|
|
653
|
+
|
|
654
|
+
// ============================================
|
|
655
|
+
// Public API (for KSA access via HTTP)
|
|
656
|
+
// ============================================
|
|
657
|
+
|
|
658
|
+
/** Public action to spawn a subagent (called by KSAs) */
|
|
659
|
+
export const spawnPublic = action({
|
|
660
|
+
args: {
|
|
661
|
+
name: v.string(),
|
|
662
|
+
task: v.string(),
|
|
663
|
+
model: v.optional(v.string()),
|
|
664
|
+
},
|
|
665
|
+
handler: async (ctx, args) => {
|
|
666
|
+
return await ctx.runAction(internal.agent.subagents.spawn, {
|
|
667
|
+
name: args.name,
|
|
668
|
+
task: args.task,
|
|
669
|
+
tools: [],
|
|
670
|
+
model: args.model || DEFAULT_SUBAGENT_MODEL,
|
|
671
|
+
});
|
|
672
|
+
},
|
|
673
|
+
});
|
|
674
|
+
|
|
675
|
+
/** Public mutation to cancel a subagent (called by KSAs) */
|
|
676
|
+
export const cancelPublic = mutation({
|
|
677
|
+
args: {
|
|
678
|
+
subagentId: v.string(),
|
|
679
|
+
},
|
|
680
|
+
handler: async (ctx, args) => {
|
|
681
|
+
return await ctx.runMutation(internal.agent.subagents.cancel, args);
|
|
682
|
+
},
|
|
683
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../cli/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuQD,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../cli/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuQD,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBAoBhD"}
|