typeclaw 0.1.5 → 0.1.6
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 +14 -12
- package/auth.schema.json +41 -0
- package/cron.schema.json +8 -0
- package/package.json +1 -1
- package/secrets.schema.json +41 -0
- package/src/agent/auth.ts +45 -22
- package/src/agent/index.ts +189 -19
- package/src/agent/multimodal/index.ts +12 -0
- package/src/agent/multimodal/look-at.ts +185 -0
- package/src/agent/multimodal/looker.ts +145 -0
- package/src/agent/plugin-tools.ts +30 -1
- package/src/agent/session-origin.ts +194 -46
- package/src/agent/subagents.ts +57 -1
- package/src/agent/system-prompt.ts +1 -1
- package/src/agent/tool-result-budget.ts +121 -0
- package/src/bundled-plugins/backup/index.ts +23 -8
- package/src/bundled-plugins/backup/runner.ts +22 -0
- package/src/bundled-plugins/memory/README.md +7 -4
- package/src/bundled-plugins/memory/append-tool.ts +87 -61
- package/src/bundled-plugins/memory/dreaming.ts +23 -9
- package/src/bundled-plugins/memory/find-entry-tool.ts +62 -0
- package/src/bundled-plugins/memory/fragment-parser.ts +19 -44
- package/src/bundled-plugins/memory/index.ts +91 -8
- package/src/bundled-plugins/memory/load-memory.ts +74 -34
- package/src/bundled-plugins/memory/memory-logger.ts +72 -29
- package/src/bundled-plugins/memory/migration.ts +276 -0
- package/src/bundled-plugins/memory/stream-events.ts +55 -0
- package/src/bundled-plugins/memory/stream-io.ts +63 -0
- package/src/bundled-plugins/memory/watermark.ts +48 -8
- package/src/bundled-plugins/security/index.ts +103 -10
- package/src/bundled-plugins/security/permissions.ts +12 -0
- package/src/bundled-plugins/security/policies/git-exfil.ts +51 -18
- package/src/bundled-plugins/tool-result-cap/README.md +9 -4
- package/src/bundled-plugins/tool-result-cap/cap-jsonl.ts +115 -0
- package/src/bundled-plugins/tool-result-cap/cap-result.ts +25 -13
- package/src/bundled-plugins/tool-result-cap/index.ts +16 -2
- package/src/channels/adapters/discord-bot-classify.ts +2 -6
- package/src/channels/adapters/discord-bot.ts +4 -45
- package/src/channels/adapters/kakaotalk-classify.ts +3 -7
- package/src/channels/adapters/kakaotalk.ts +28 -47
- package/src/channels/adapters/slack-bot-classify.ts +2 -6
- package/src/channels/adapters/slack-bot.ts +4 -50
- package/src/channels/adapters/telegram-bot-classify.ts +8 -10
- package/src/channels/adapters/telegram-bot.ts +3 -16
- package/src/channels/index.ts +3 -2
- package/src/channels/manager.ts +15 -1
- package/src/channels/persistence.ts +44 -10
- package/src/channels/router.ts +228 -19
- package/src/channels/schema.ts +6 -156
- package/src/cli/channel.ts +200 -4
- package/src/cli/compose-usage.ts +182 -0
- package/src/cli/compose.ts +33 -0
- package/src/cli/hostd.ts +49 -1
- package/src/cli/index.ts +4 -0
- package/src/cli/init.ts +799 -319
- package/src/cli/model.ts +244 -0
- package/src/cli/provider.ts +404 -0
- package/src/cli/reload.ts +6 -1
- package/src/cli/role.ts +156 -0
- package/src/cli/run.ts +3 -1
- package/src/cli/tui.ts +8 -1
- package/src/cli/usage-args.ts +47 -0
- package/src/cli/usage.ts +97 -0
- package/src/compose/index.ts +1 -0
- package/src/compose/usage.ts +65 -0
- package/src/config/config.ts +385 -12
- package/src/config/index.ts +7 -0
- package/src/config/models-mutation.ts +200 -0
- package/src/config/providers-mutation.ts +250 -0
- package/src/config/providers.ts +141 -2
- package/src/config/reloadable.ts +15 -4
- package/src/container/index.ts +5 -0
- package/src/container/require-running.ts +33 -0
- package/src/container/start.ts +39 -58
- package/src/cron/consumer.ts +22 -2
- package/src/cron/index.ts +45 -4
- package/src/cron/schema.ts +104 -0
- package/src/doctor/checks.ts +50 -33
- package/src/git/system-commit.ts +103 -0
- package/src/hostd/daemon.ts +16 -0
- package/src/hostd/kakao-renewal-manager.ts +223 -0
- package/src/hostd/paths.ts +7 -0
- package/src/init/dockerfile.ts +32 -6
- package/src/init/index.ts +183 -62
- package/src/init/kakaotalk-auth.ts +18 -1
- package/src/init/models-dev.ts +26 -1
- package/src/init/run-owner-claim.ts +77 -0
- package/src/permissions/builtins.ts +70 -0
- package/src/permissions/grant.ts +99 -0
- package/src/permissions/index.ts +29 -0
- package/src/permissions/match-rule.ts +305 -0
- package/src/permissions/permissions.ts +196 -0
- package/src/permissions/resolve.ts +80 -0
- package/src/permissions/schema.ts +79 -0
- package/src/plugin/context.ts +8 -4
- package/src/plugin/define.ts +2 -0
- package/src/plugin/index.ts +2 -0
- package/src/plugin/manager.ts +41 -0
- package/src/plugin/registry.ts +9 -0
- package/src/plugin/types.ts +35 -1
- package/src/role-claim/client.ts +182 -0
- package/src/role-claim/code.ts +53 -0
- package/src/role-claim/controller.ts +194 -0
- package/src/role-claim/index.ts +19 -0
- package/src/role-claim/match-rule.ts +43 -0
- package/src/role-claim/pending.ts +100 -0
- package/src/run/channel-session-factory.ts +76 -5
- package/src/run/index.ts +55 -6
- package/src/secrets/encryption.ts +116 -0
- package/src/secrets/kakao-renewal.ts +248 -0
- package/src/secrets/kakao-store.ts +66 -7
- package/src/secrets/keys.ts +173 -0
- package/src/secrets/schema.ts +23 -0
- package/src/secrets/storage.ts +68 -0
- package/src/server/index.ts +122 -11
- package/src/shared/index.ts +4 -0
- package/src/shared/protocol.ts +27 -0
- package/src/skills/typeclaw-channel-kakaotalk/SKILL.md +3 -3
- package/src/skills/typeclaw-config/SKILL.md +38 -64
- package/src/skills/typeclaw-memory/SKILL.md +1 -1
- package/src/skills/typeclaw-permissions/SKILL.md +166 -0
- package/src/stream/types.ts +7 -1
- package/src/usage/aggregate.ts +117 -0
- package/src/usage/format.ts +30 -0
- package/src/usage/index.ts +68 -0
- package/src/usage/report.ts +354 -0
- package/src/usage/scan.ts +186 -0
- package/typeclaw.schema.json +57 -45
package/typeclaw.schema.json
CHANGED
|
@@ -11,19 +11,36 @@
|
|
|
11
11
|
"minimum": 1,
|
|
12
12
|
"maximum": 65535
|
|
13
13
|
},
|
|
14
|
-
"
|
|
15
|
-
"default":
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
14
|
+
"models": {
|
|
15
|
+
"default": {
|
|
16
|
+
"default": "openai/gpt-5.4-nano"
|
|
17
|
+
},
|
|
18
|
+
"type": "object",
|
|
19
|
+
"propertyNames": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"openai/gpt-5.4-nano",
|
|
27
|
+
"openai/gpt-5.4-mini",
|
|
28
|
+
"openai/gpt-5.4",
|
|
29
|
+
"openai/gpt-5.5",
|
|
30
|
+
"openai-codex/gpt-5.4-mini",
|
|
31
|
+
"openai-codex/gpt-5.4",
|
|
32
|
+
"openai-codex/gpt-5.5",
|
|
33
|
+
"fireworks/accounts/fireworks/routers/kimi-k2p6-turbo",
|
|
34
|
+
"zai/glm-4.5-air",
|
|
35
|
+
"zai/glm-4.6",
|
|
36
|
+
"zai/glm-4.7",
|
|
37
|
+
"zai-coding/glm-4.5-air",
|
|
38
|
+
"zai-coding/glm-4.7",
|
|
39
|
+
"zai-coding/glm-5",
|
|
40
|
+
"zai-coding/glm-5-turbo",
|
|
41
|
+
"zai-coding/glm-5.1"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
27
44
|
},
|
|
28
45
|
"mounts": {
|
|
29
46
|
"default": [],
|
|
@@ -76,14 +93,6 @@
|
|
|
76
93
|
"discord-bot": {
|
|
77
94
|
"type": "object",
|
|
78
95
|
"properties": {
|
|
79
|
-
"allow": {
|
|
80
|
-
"default": [],
|
|
81
|
-
"type": "array",
|
|
82
|
-
"items": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"minLength": 1
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
96
|
"engagement": {
|
|
88
97
|
"default": {
|
|
89
98
|
"trigger": [
|
|
@@ -225,14 +234,6 @@
|
|
|
225
234
|
"kakaotalk": {
|
|
226
235
|
"type": "object",
|
|
227
236
|
"properties": {
|
|
228
|
-
"allow": {
|
|
229
|
-
"default": [],
|
|
230
|
-
"type": "array",
|
|
231
|
-
"items": {
|
|
232
|
-
"type": "string",
|
|
233
|
-
"minLength": 1
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
237
|
"engagement": {
|
|
237
238
|
"default": {
|
|
238
239
|
"trigger": [
|
|
@@ -374,14 +375,6 @@
|
|
|
374
375
|
"slack-bot": {
|
|
375
376
|
"type": "object",
|
|
376
377
|
"properties": {
|
|
377
|
-
"allow": {
|
|
378
|
-
"default": [],
|
|
379
|
-
"type": "array",
|
|
380
|
-
"items": {
|
|
381
|
-
"type": "string",
|
|
382
|
-
"minLength": 1
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
378
|
"engagement": {
|
|
386
379
|
"default": {
|
|
387
380
|
"trigger": [
|
|
@@ -523,14 +516,6 @@
|
|
|
523
516
|
"telegram-bot": {
|
|
524
517
|
"type": "object",
|
|
525
518
|
"properties": {
|
|
526
|
-
"allow": {
|
|
527
|
-
"default": [],
|
|
528
|
-
"type": "array",
|
|
529
|
-
"items": {
|
|
530
|
-
"type": "string",
|
|
531
|
-
"minLength": 1
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
519
|
"engagement": {
|
|
535
520
|
"default": {
|
|
536
521
|
"trigger": [
|
|
@@ -829,6 +814,33 @@
|
|
|
829
814
|
}
|
|
830
815
|
}
|
|
831
816
|
},
|
|
817
|
+
"roles": {
|
|
818
|
+
"type": "object",
|
|
819
|
+
"propertyNames": {
|
|
820
|
+
"type": "string"
|
|
821
|
+
},
|
|
822
|
+
"additionalProperties": {
|
|
823
|
+
"type": "object",
|
|
824
|
+
"properties": {
|
|
825
|
+
"match": {
|
|
826
|
+
"type": "array",
|
|
827
|
+
"items": {
|
|
828
|
+
"type": "string",
|
|
829
|
+
"pattern": "^(tui|cron|subagent(:[a-z][a-z0-9-]*)?|\\*|(slack|discord|telegram|kakao):[^\\s]+)(\\s+[a-zA-Z][a-zA-Z0-9_]*:[^\\s]+)*$"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
"permissions": {
|
|
833
|
+
"type": "array",
|
|
834
|
+
"items": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"minLength": 1,
|
|
837
|
+
"pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$"
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
"additionalProperties": false
|
|
842
|
+
}
|
|
843
|
+
},
|
|
832
844
|
"tool-result-cap": {
|
|
833
845
|
"default": {
|
|
834
846
|
"enabled": true,
|