typeclaw 0.41.0 → 0.42.0
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/README.md +3 -2
- package/auth.schema.json +57 -0
- package/package.json +2 -2
- package/secrets.schema.json +57 -0
- package/src/agent/index.ts +10 -6
- package/src/agent/session-origin.ts +1 -0
- package/src/agent/tools/channel-history-render.ts +21 -0
- package/src/agent/tools/channel-history.ts +2 -17
- package/src/agent/tools/channel-read.ts +206 -0
- package/src/bundled-plugins/agent-browser/skills/agent-browser/SKILL.md +26 -2
- package/src/bundled-plugins/github-cli-auth/index.ts +25 -6
- package/src/bundled-plugins/memory/vector/hybrid.ts +73 -6
- package/src/bundled-plugins/memory/vector/passages.ts +2 -24
- package/src/bundled-plugins/memory/vector/truncation.ts +28 -0
- package/src/bundled-plugins/tool-result-cap/README.md +10 -1
- package/src/bundled-plugins/tool-result-cap/cap-result.ts +8 -0
- package/src/channels/adapters/discord-bot.ts +112 -0
- package/src/channels/adapters/instagram-channel-resolver.ts +113 -0
- package/src/channels/adapters/instagram-classify.ts +69 -0
- package/src/channels/adapters/instagram-format.ts +8 -0
- package/src/channels/adapters/instagram.ts +346 -0
- package/src/channels/adapters/slack-bot.ts +147 -0
- package/src/channels/manager.ts +60 -2
- package/src/channels/router.ts +64 -0
- package/src/channels/schema.ts +5 -0
- package/src/channels/types.ts +46 -0
- package/src/cli/channel.ts +76 -1
- package/src/cli/init.ts +1 -0
- package/src/cli/status.ts +37 -14
- package/src/config/channels-mutation.ts +2 -1
- package/src/doctor/channel-checks.ts +28 -0
- package/src/hostd/daemon.ts +11 -7
- package/src/hostd/protocol.ts +2 -0
- package/src/init/index.ts +50 -1
- package/src/init/instagram-auth.ts +134 -0
- package/src/init/run-owner-claim.ts +1 -0
- package/src/permissions/match-rule.ts +1 -1
- package/src/permissions/resolve.ts +1 -0
- package/src/role-claim/match-rule.ts +2 -1
- package/src/secrets/instagram-store.ts +112 -0
- package/src/secrets/schema.ts +18 -0
- package/src/skills/typeclaw-channel-instagram/SKILL.md +30 -0
- package/typeclaw.schema.json +161 -1
package/typeclaw.schema.json
CHANGED
|
@@ -1023,6 +1023,166 @@
|
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
},
|
|
1026
|
+
"instagram": {
|
|
1027
|
+
"type": "object",
|
|
1028
|
+
"properties": {
|
|
1029
|
+
"engagement": {
|
|
1030
|
+
"default": {
|
|
1031
|
+
"trigger": [
|
|
1032
|
+
"mention",
|
|
1033
|
+
"reply",
|
|
1034
|
+
"dm"
|
|
1035
|
+
],
|
|
1036
|
+
"stickiness": {
|
|
1037
|
+
"perReply": {
|
|
1038
|
+
"window": 900000
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
"type": "object",
|
|
1043
|
+
"properties": {
|
|
1044
|
+
"trigger": {
|
|
1045
|
+
"default": [
|
|
1046
|
+
"mention",
|
|
1047
|
+
"reply",
|
|
1048
|
+
"dm"
|
|
1049
|
+
],
|
|
1050
|
+
"type": "array",
|
|
1051
|
+
"items": {
|
|
1052
|
+
"type": "string",
|
|
1053
|
+
"enum": [
|
|
1054
|
+
"mention",
|
|
1055
|
+
"reply",
|
|
1056
|
+
"dm"
|
|
1057
|
+
]
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"stickiness": {
|
|
1061
|
+
"default": {
|
|
1062
|
+
"perReply": {
|
|
1063
|
+
"window": 900000
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
"anyOf": [
|
|
1067
|
+
{
|
|
1068
|
+
"type": "string",
|
|
1069
|
+
"const": "off"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"type": "object",
|
|
1073
|
+
"properties": {
|
|
1074
|
+
"perReply": {
|
|
1075
|
+
"type": "object",
|
|
1076
|
+
"properties": {
|
|
1077
|
+
"window": {
|
|
1078
|
+
"type": "integer",
|
|
1079
|
+
"minimum": 1,
|
|
1080
|
+
"maximum": 86400000
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"required": [
|
|
1084
|
+
"window"
|
|
1085
|
+
]
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
"required": [
|
|
1089
|
+
"perReply"
|
|
1090
|
+
]
|
|
1091
|
+
}
|
|
1092
|
+
]
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
"history": {
|
|
1097
|
+
"default": {
|
|
1098
|
+
"prefetch": {
|
|
1099
|
+
"thread": {
|
|
1100
|
+
"head": 3,
|
|
1101
|
+
"tail": 10
|
|
1102
|
+
},
|
|
1103
|
+
"channel": {
|
|
1104
|
+
"tail": 10
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"type": "object",
|
|
1109
|
+
"properties": {
|
|
1110
|
+
"prefetch": {
|
|
1111
|
+
"default": {
|
|
1112
|
+
"thread": {
|
|
1113
|
+
"head": 3,
|
|
1114
|
+
"tail": 10
|
|
1115
|
+
},
|
|
1116
|
+
"channel": {
|
|
1117
|
+
"tail": 10
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
"type": "object",
|
|
1121
|
+
"properties": {
|
|
1122
|
+
"thread": {
|
|
1123
|
+
"default": {
|
|
1124
|
+
"head": 3,
|
|
1125
|
+
"tail": 10
|
|
1126
|
+
},
|
|
1127
|
+
"type": "object",
|
|
1128
|
+
"properties": {
|
|
1129
|
+
"head": {
|
|
1130
|
+
"default": 3,
|
|
1131
|
+
"type": "integer",
|
|
1132
|
+
"minimum": 0,
|
|
1133
|
+
"maximum": 200
|
|
1134
|
+
},
|
|
1135
|
+
"tail": {
|
|
1136
|
+
"default": 10,
|
|
1137
|
+
"type": "integer",
|
|
1138
|
+
"minimum": 0,
|
|
1139
|
+
"maximum": 200
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
"channel": {
|
|
1144
|
+
"default": {
|
|
1145
|
+
"tail": 10
|
|
1146
|
+
},
|
|
1147
|
+
"type": "object",
|
|
1148
|
+
"properties": {
|
|
1149
|
+
"tail": {
|
|
1150
|
+
"default": 10,
|
|
1151
|
+
"type": "integer",
|
|
1152
|
+
"minimum": 0,
|
|
1153
|
+
"maximum": 200
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
"enabled": {
|
|
1162
|
+
"default": true,
|
|
1163
|
+
"type": "boolean"
|
|
1164
|
+
},
|
|
1165
|
+
"quotedReply": {
|
|
1166
|
+
"default": {
|
|
1167
|
+
"enabled": true,
|
|
1168
|
+
"queueDelayMs": 10000
|
|
1169
|
+
},
|
|
1170
|
+
"type": "object",
|
|
1171
|
+
"properties": {
|
|
1172
|
+
"enabled": {
|
|
1173
|
+
"default": true,
|
|
1174
|
+
"type": "boolean"
|
|
1175
|
+
},
|
|
1176
|
+
"queueDelayMs": {
|
|
1177
|
+
"default": 10000,
|
|
1178
|
+
"type": "integer",
|
|
1179
|
+
"minimum": 0,
|
|
1180
|
+
"maximum": 9007199254740991
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1026
1186
|
"line": {
|
|
1027
1187
|
"type": "object",
|
|
1028
1188
|
"properties": {
|
|
@@ -2396,7 +2556,7 @@
|
|
|
2396
2556
|
"type": "array",
|
|
2397
2557
|
"items": {
|
|
2398
2558
|
"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]+)*$"
|
|
2559
|
+
"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
2560
|
}
|
|
2401
2561
|
},
|
|
2402
2562
|
"permissions": {
|