typeclaw 0.41.0 → 0.42.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.
Files changed (91) hide show
  1. package/README.md +3 -2
  2. package/auth.schema.json +57 -0
  3. package/package.json +4 -4
  4. package/secrets.schema.json +57 -0
  5. package/src/agent/adaptive-thinking-compat.ts +79 -0
  6. package/src/agent/index.ts +89 -107
  7. package/src/agent/plugin-tools.ts +77 -130
  8. package/src/agent/provider-error.ts +37 -0
  9. package/src/agent/reload-tool.ts +1 -1
  10. package/src/agent/session-origin.ts +1 -0
  11. package/src/agent/subagents.ts +2 -2
  12. package/src/agent/system-prompt.ts +19 -5
  13. package/src/agent/tool-result-budget.ts +1 -1
  14. package/src/agent/tools/channel-history-render.ts +21 -0
  15. package/src/agent/tools/channel-history.ts +2 -17
  16. package/src/agent/tools/channel-read.ts +206 -0
  17. package/src/agent/tools/stream-snapshot.ts +8 -3
  18. package/src/bundled-plugins/agent-browser/index.ts +18 -8
  19. package/src/bundled-plugins/agent-browser/skills/agent-browser/SKILL.md +26 -2
  20. package/src/bundled-plugins/github-cli-auth/index.ts +25 -6
  21. package/src/bundled-plugins/memory/README.md +4 -1
  22. package/src/bundled-plugins/memory/belief-sentence.ts +50 -0
  23. package/src/bundled-plugins/memory/dreaming.ts +13 -6
  24. package/src/bundled-plugins/memory/load-memory.ts +22 -2
  25. package/src/bundled-plugins/memory/memory-logger.ts +1 -1
  26. package/src/bundled-plugins/memory/vector/hybrid.ts +73 -6
  27. package/src/bundled-plugins/memory/vector/passages.ts +2 -24
  28. package/src/bundled-plugins/memory/vector/truncation.ts +28 -0
  29. package/src/bundled-plugins/tool-result-cap/README.md +10 -1
  30. package/src/bundled-plugins/tool-result-cap/cap-result.ts +8 -0
  31. package/src/capabilities/control-plane.ts +24 -0
  32. package/src/capabilities/index.ts +2 -0
  33. package/src/capabilities/runtime.ts +30 -0
  34. package/src/channels/adapters/discord-bot.ts +112 -0
  35. package/src/channels/adapters/instagram-channel-resolver.ts +113 -0
  36. package/src/channels/adapters/instagram-classify.ts +69 -0
  37. package/src/channels/adapters/instagram-format.ts +8 -0
  38. package/src/channels/adapters/instagram.ts +346 -0
  39. package/src/channels/adapters/slack-bot.ts +147 -0
  40. package/src/channels/manager.ts +96 -44
  41. package/src/channels/router.ts +75 -2
  42. package/src/channels/schema.ts +5 -0
  43. package/src/channels/types.ts +46 -0
  44. package/src/cli/channel.ts +121 -9
  45. package/src/cli/hostd.ts +4 -3
  46. package/src/cli/init.ts +1 -0
  47. package/src/cli/logs.ts +2 -2
  48. package/src/cli/restart.ts +5 -3
  49. package/src/cli/shell.ts +2 -2
  50. package/src/cli/start.ts +2 -2
  51. package/src/cli/status.ts +37 -14
  52. package/src/cli/stop.ts +2 -2
  53. package/src/compose/restart.ts +4 -3
  54. package/src/compose/start.ts +2 -2
  55. package/src/compose/stop.ts +2 -2
  56. package/src/config/channels-mutation.ts +2 -1
  57. package/src/config/config.ts +10 -1
  58. package/src/config/providers.ts +61 -9
  59. package/src/container/controller.ts +104 -0
  60. package/src/container/index.ts +9 -0
  61. package/src/doctor/channel-checks.ts +28 -0
  62. package/src/hostd/daemon.ts +11 -7
  63. package/src/hostd/protocol.ts +2 -0
  64. package/src/init/index.ts +51 -2
  65. package/src/init/instagram-auth.ts +289 -0
  66. package/src/init/run-owner-claim.ts +1 -0
  67. package/src/inspect/logs-item.ts +2 -2
  68. package/src/mcp/client.ts +1 -1
  69. package/src/permissions/match-rule.ts +1 -1
  70. package/src/permissions/resolve.ts +1 -0
  71. package/src/role-claim/match-rule.ts +2 -1
  72. package/src/run/index.ts +21 -9
  73. package/src/run/{codex-fetch-observer.ts → llm-fetch-observer.ts} +182 -82
  74. package/src/sandbox/availability.ts +2 -2
  75. package/src/sandbox/build.ts +1 -1
  76. package/src/sandbox/policy.ts +2 -2
  77. package/src/secrets/discord-store.ts +4 -13
  78. package/src/secrets/instagram-store.ts +103 -0
  79. package/src/secrets/kakao-store.ts +4 -13
  80. package/src/secrets/line-store.ts +4 -13
  81. package/src/secrets/schema.ts +18 -0
  82. package/src/secrets/secrets-provider.ts +86 -0
  83. package/src/secrets/slack-store.ts +4 -13
  84. package/src/secrets/webex-store.ts +4 -13
  85. package/src/server/index.ts +2 -2
  86. package/src/skills/typeclaw-channel-instagram/SKILL.md +30 -0
  87. package/src/skills/typeclaw-config/SKILL.md +5 -3
  88. package/src/skills/typeclaw-plugins/SKILL.md +1 -1
  89. package/src/stream/broker.ts +4 -3
  90. package/src/stream/types.ts +1 -0
  91. package/typeclaw.schema.json +175 -1
@@ -33,8 +33,10 @@
33
33
  "openai-codex/gpt-5.5",
34
34
  "anthropic/claude-haiku-4-5",
35
35
  "anthropic/claude-sonnet-4-6",
36
+ "anthropic/claude-sonnet-5",
36
37
  "anthropic/claude-opus-4-7",
37
38
  "anthropic/claude-opus-4-8",
39
+ "anthropic/claude-fable-5",
38
40
  "fireworks/accounts/fireworks/routers/kimi-k2p6-turbo",
39
41
  "zai/glm-4.5-air",
40
42
  "zai/glm-4.6",
@@ -83,8 +85,10 @@
83
85
  "openai-codex/gpt-5.5",
84
86
  "anthropic/claude-haiku-4-5",
85
87
  "anthropic/claude-sonnet-4-6",
88
+ "anthropic/claude-sonnet-5",
86
89
  "anthropic/claude-opus-4-7",
87
90
  "anthropic/claude-opus-4-8",
91
+ "anthropic/claude-fable-5",
88
92
  "fireworks/accounts/fireworks/routers/kimi-k2p6-turbo",
89
93
  "zai/glm-4.5-air",
90
94
  "zai/glm-4.6",
@@ -134,8 +138,10 @@
134
138
  "openai-codex/gpt-5.5",
135
139
  "anthropic/claude-haiku-4-5",
136
140
  "anthropic/claude-sonnet-4-6",
141
+ "anthropic/claude-sonnet-5",
137
142
  "anthropic/claude-opus-4-7",
138
143
  "anthropic/claude-opus-4-8",
144
+ "anthropic/claude-fable-5",
139
145
  "fireworks/accounts/fireworks/routers/kimi-k2p6-turbo",
140
146
  "zai/glm-4.5-air",
141
147
  "zai/glm-4.6",
@@ -183,8 +189,10 @@
183
189
  "openai-codex/gpt-5.5",
184
190
  "anthropic/claude-haiku-4-5",
185
191
  "anthropic/claude-sonnet-4-6",
192
+ "anthropic/claude-sonnet-5",
186
193
  "anthropic/claude-opus-4-7",
187
194
  "anthropic/claude-opus-4-8",
195
+ "anthropic/claude-fable-5",
188
196
  "fireworks/accounts/fireworks/routers/kimi-k2p6-turbo",
189
197
  "zai/glm-4.5-air",
190
198
  "zai/glm-4.6",
@@ -233,8 +241,10 @@
233
241
  "openai-codex/gpt-5.5",
234
242
  "anthropic/claude-haiku-4-5",
235
243
  "anthropic/claude-sonnet-4-6",
244
+ "anthropic/claude-sonnet-5",
236
245
  "anthropic/claude-opus-4-7",
237
246
  "anthropic/claude-opus-4-8",
247
+ "anthropic/claude-fable-5",
238
248
  "fireworks/accounts/fireworks/routers/kimi-k2p6-turbo",
239
249
  "zai/glm-4.5-air",
240
250
  "zai/glm-4.6",
@@ -1023,6 +1033,166 @@
1023
1033
  }
1024
1034
  }
1025
1035
  },
1036
+ "instagram": {
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "engagement": {
1040
+ "default": {
1041
+ "trigger": [
1042
+ "mention",
1043
+ "reply",
1044
+ "dm"
1045
+ ],
1046
+ "stickiness": {
1047
+ "perReply": {
1048
+ "window": 900000
1049
+ }
1050
+ }
1051
+ },
1052
+ "type": "object",
1053
+ "properties": {
1054
+ "trigger": {
1055
+ "default": [
1056
+ "mention",
1057
+ "reply",
1058
+ "dm"
1059
+ ],
1060
+ "type": "array",
1061
+ "items": {
1062
+ "type": "string",
1063
+ "enum": [
1064
+ "mention",
1065
+ "reply",
1066
+ "dm"
1067
+ ]
1068
+ }
1069
+ },
1070
+ "stickiness": {
1071
+ "default": {
1072
+ "perReply": {
1073
+ "window": 900000
1074
+ }
1075
+ },
1076
+ "anyOf": [
1077
+ {
1078
+ "type": "string",
1079
+ "const": "off"
1080
+ },
1081
+ {
1082
+ "type": "object",
1083
+ "properties": {
1084
+ "perReply": {
1085
+ "type": "object",
1086
+ "properties": {
1087
+ "window": {
1088
+ "type": "integer",
1089
+ "minimum": 1,
1090
+ "maximum": 86400000
1091
+ }
1092
+ },
1093
+ "required": [
1094
+ "window"
1095
+ ]
1096
+ }
1097
+ },
1098
+ "required": [
1099
+ "perReply"
1100
+ ]
1101
+ }
1102
+ ]
1103
+ }
1104
+ }
1105
+ },
1106
+ "history": {
1107
+ "default": {
1108
+ "prefetch": {
1109
+ "thread": {
1110
+ "head": 3,
1111
+ "tail": 10
1112
+ },
1113
+ "channel": {
1114
+ "tail": 10
1115
+ }
1116
+ }
1117
+ },
1118
+ "type": "object",
1119
+ "properties": {
1120
+ "prefetch": {
1121
+ "default": {
1122
+ "thread": {
1123
+ "head": 3,
1124
+ "tail": 10
1125
+ },
1126
+ "channel": {
1127
+ "tail": 10
1128
+ }
1129
+ },
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "thread": {
1133
+ "default": {
1134
+ "head": 3,
1135
+ "tail": 10
1136
+ },
1137
+ "type": "object",
1138
+ "properties": {
1139
+ "head": {
1140
+ "default": 3,
1141
+ "type": "integer",
1142
+ "minimum": 0,
1143
+ "maximum": 200
1144
+ },
1145
+ "tail": {
1146
+ "default": 10,
1147
+ "type": "integer",
1148
+ "minimum": 0,
1149
+ "maximum": 200
1150
+ }
1151
+ }
1152
+ },
1153
+ "channel": {
1154
+ "default": {
1155
+ "tail": 10
1156
+ },
1157
+ "type": "object",
1158
+ "properties": {
1159
+ "tail": {
1160
+ "default": 10,
1161
+ "type": "integer",
1162
+ "minimum": 0,
1163
+ "maximum": 200
1164
+ }
1165
+ }
1166
+ }
1167
+ }
1168
+ }
1169
+ }
1170
+ },
1171
+ "enabled": {
1172
+ "default": true,
1173
+ "type": "boolean"
1174
+ },
1175
+ "quotedReply": {
1176
+ "default": {
1177
+ "enabled": true,
1178
+ "queueDelayMs": 10000
1179
+ },
1180
+ "type": "object",
1181
+ "properties": {
1182
+ "enabled": {
1183
+ "default": true,
1184
+ "type": "boolean"
1185
+ },
1186
+ "queueDelayMs": {
1187
+ "default": 10000,
1188
+ "type": "integer",
1189
+ "minimum": 0,
1190
+ "maximum": 9007199254740991
1191
+ }
1192
+ }
1193
+ }
1194
+ }
1195
+ },
1026
1196
  "line": {
1027
1197
  "type": "object",
1028
1198
  "properties": {
@@ -2396,7 +2566,7 @@
2396
2566
  "type": "array",
2397
2567
  "items": {
2398
2568
  "type": "string",
2399
- "pattern": "^(tui|cron|subagent(:[a-z][a-z0-9-]*)?|\\*|(slack|discord|telegram|webex|line|kakao|github):[^\\s]+)(\\s+[a-zA-Z][a-zA-Z0-9_]*:[^\\s]+)*$"
2569
+ "pattern": "^(tui|cron|subagent(:[a-z][a-z0-9-]*)?|\\*|(slack|discord|telegram|webex|instagram|line|kakao|github):[^\\s]+)(\\s+[a-zA-Z][a-zA-Z0-9_]*:[^\\s]+)*$"
2400
2570
  }
2401
2571
  },
2402
2572
  "permissions": {
@@ -2488,6 +2658,10 @@
2488
2658
  ]
2489
2659
  }
2490
2660
  },
2661
+ "branding": {
2662
+ "default": true,
2663
+ "type": "boolean"
2664
+ },
2491
2665
  "tool-result-cap": {
2492
2666
  "default": {
2493
2667
  "enabled": true,