@surph_ai/cli 0.0.18 → 0.0.19
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/package.json
CHANGED
|
@@ -7,13 +7,21 @@ type ToolArgs = {
|
|
|
7
7
|
|
|
8
8
|
const handler: ToolHandler<ToolArgs> = async ({ args, user, context = null, board = null }: Record<string, any>) => {
|
|
9
9
|
try {
|
|
10
|
+
|
|
10
11
|
// your custom tool code goes here.
|
|
11
12
|
//
|
|
12
13
|
// pro tip: tell your coding agent to use "CHEATSHEET.md"
|
|
13
14
|
// as a guide for working with this sdk. for example, tell
|
|
14
15
|
// your coding agent "use CHEATSHEET.md to set up a fetch
|
|
15
|
-
// request for most recent context items."
|
|
16
|
+
// request for most recent context items."
|
|
17
|
+
//
|
|
18
|
+
// IMPORTANT: before testing your custom tool, remember to
|
|
19
|
+
// populate the "manifest.json" file so surph knows when to
|
|
20
|
+
// use it. To do so, run:
|
|
21
|
+
//
|
|
22
|
+
// npx @surph_ai/cli manifest
|
|
16
23
|
|
|
24
|
+
// this is your tool final payload:
|
|
17
25
|
return {}
|
|
18
26
|
} catch (error: any) {
|
|
19
27
|
throw error
|