@jcheesepkg/nanobot 0.8.7 → 0.8.8

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.
@@ -556,15 +556,15 @@ declare const ToolsConfigSchema: z.ZodObject<{
556
556
  export?: string | undefined;
557
557
  }>, "many">>;
558
558
  }, "strip", z.ZodTypeAny, {
559
- exec: {
560
- timeout: number;
561
- };
562
559
  web: {
563
560
  search: {
564
561
  apiKey: string;
565
562
  maxResults: number;
566
563
  };
567
564
  };
565
+ exec: {
566
+ timeout: number;
567
+ };
568
568
  restrictToWorkspace: boolean;
569
569
  enabled?: string[] | undefined;
570
570
  disabled?: string[] | undefined;
@@ -574,9 +574,6 @@ declare const ToolsConfigSchema: z.ZodObject<{
574
574
  export?: string | undefined;
575
575
  }[] | undefined;
576
576
  }, {
577
- exec?: {
578
- timeout?: number | undefined;
579
- } | undefined;
580
577
  enabled?: string[] | undefined;
581
578
  web?: {
582
579
  search?: {
@@ -584,6 +581,9 @@ declare const ToolsConfigSchema: z.ZodObject<{
584
581
  maxResults?: number | undefined;
585
582
  } | undefined;
586
583
  } | undefined;
584
+ exec?: {
585
+ timeout?: number | undefined;
586
+ } | undefined;
587
587
  restrictToWorkspace?: boolean | undefined;
588
588
  disabled?: string[] | undefined;
589
589
  custom?: {
@@ -1015,15 +1015,15 @@ declare const ConfigSchema: z.ZodObject<{
1015
1015
  export?: string | undefined;
1016
1016
  }>, "many">>;
1017
1017
  }, "strip", z.ZodTypeAny, {
1018
- exec: {
1019
- timeout: number;
1020
- };
1021
1018
  web: {
1022
1019
  search: {
1023
1020
  apiKey: string;
1024
1021
  maxResults: number;
1025
1022
  };
1026
1023
  };
1024
+ exec: {
1025
+ timeout: number;
1026
+ };
1027
1027
  restrictToWorkspace: boolean;
1028
1028
  enabled?: string[] | undefined;
1029
1029
  disabled?: string[] | undefined;
@@ -1033,9 +1033,6 @@ declare const ConfigSchema: z.ZodObject<{
1033
1033
  export?: string | undefined;
1034
1034
  }[] | undefined;
1035
1035
  }, {
1036
- exec?: {
1037
- timeout?: number | undefined;
1038
- } | undefined;
1039
1036
  enabled?: string[] | undefined;
1040
1037
  web?: {
1041
1038
  search?: {
@@ -1043,6 +1040,9 @@ declare const ConfigSchema: z.ZodObject<{
1043
1040
  maxResults?: number | undefined;
1044
1041
  } | undefined;
1045
1042
  } | undefined;
1043
+ exec?: {
1044
+ timeout?: number | undefined;
1045
+ } | undefined;
1046
1046
  restrictToWorkspace?: boolean | undefined;
1047
1047
  disabled?: string[] | undefined;
1048
1048
  custom?: {
@@ -1139,15 +1139,15 @@ declare const ConfigSchema: z.ZodObject<{
1139
1139
  port: number;
1140
1140
  };
1141
1141
  tools: {
1142
- exec: {
1143
- timeout: number;
1144
- };
1145
1142
  web: {
1146
1143
  search: {
1147
1144
  apiKey: string;
1148
1145
  maxResults: number;
1149
1146
  };
1150
1147
  };
1148
+ exec: {
1149
+ timeout: number;
1150
+ };
1151
1151
  restrictToWorkspace: boolean;
1152
1152
  enabled?: string[] | undefined;
1153
1153
  disabled?: string[] | undefined;
@@ -1245,9 +1245,6 @@ declare const ConfigSchema: z.ZodObject<{
1245
1245
  port?: number | undefined;
1246
1246
  } | undefined;
1247
1247
  tools?: {
1248
- exec?: {
1249
- timeout?: number | undefined;
1250
- } | undefined;
1251
1248
  enabled?: string[] | undefined;
1252
1249
  web?: {
1253
1250
  search?: {
@@ -1255,6 +1252,9 @@ declare const ConfigSchema: z.ZodObject<{
1255
1252
  maxResults?: number | undefined;
1256
1253
  } | undefined;
1257
1254
  } | undefined;
1255
+ exec?: {
1256
+ timeout?: number | undefined;
1257
+ } | undefined;
1258
1258
  restrictToWorkspace?: boolean | undefined;
1259
1259
  disabled?: string[] | undefined;
1260
1260
  custom?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcheesepkg/nanobot",
3
- "version": "0.8.7",
3
+ "version": "0.8.8",
4
4
  "description": "Lightweight AI assistant - TypeScript port",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -71,3 +71,32 @@ Skills use three-level loading:
71
71
  - `name`: The skill name
72
72
  - `description`: What the skill does AND when to use it. Include trigger contexts.
73
73
  All "when to use" info goes here since the body only loads after triggering.
74
+
75
+ ### Flex Message Integration
76
+
77
+ If the skill produces output that would benefit from rich visual display (cards, progress trackers, summaries, confirmations), include `flex_message` tool usage in the SKILL.md.
78
+
79
+ Available templates: `fortune`, `info_card`, `action_buttons`, `receipt`, `morning_summary`, `hydration`.
80
+
81
+ For anything else, use `custom` with common fields:
82
+ ```
83
+ flex_message(template="custom", data={
84
+ title: "カードタイトル",
85
+ body: "本文テキスト",
86
+ header_color: "#FF6B6B",
87
+ buttons: [
88
+ { label: "ボタン", text: "送信テキスト", style: "primary" }
89
+ ]
90
+ })
91
+ ```
92
+
93
+ Include this in the skill's Output section:
94
+ ```markdown
95
+ ## Output
96
+
97
+ **ALWAYS use the `flex_message` tool** to display results as a rich card.
98
+ After the tool returns, output ONLY the raw JSON string returned by the tool.
99
+ ```
100
+
101
+ Good candidates for flex: trackers, reminders, summaries, confirmations, selections.
102
+ Not needed for: conversational replies, simple text answers, file operations.