typeclaw 0.43.1 → 0.45.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.
Files changed (86) hide show
  1. package/README.md +1 -1
  2. package/auth.schema.json +92 -0
  3. package/package.json +7 -6
  4. package/secrets.schema.json +92 -0
  5. package/src/agent/index.ts +25 -2
  6. package/src/agent/model-fallback.ts +59 -40
  7. package/src/agent/multimodal/look-at.ts +29 -10
  8. package/src/agent/plugin-tools.ts +9 -4
  9. package/src/agent/provider-error.ts +71 -18
  10. package/src/agent/retry-same-ref.ts +139 -0
  11. package/src/agent/session-origin.ts +1 -0
  12. package/src/agent/subagents.ts +6 -2
  13. package/src/agent/tools/channel-edit.ts +144 -0
  14. package/src/agent/tools/channel-fetch-attachment.ts +51 -8
  15. package/src/agent/tools/channel-reply.ts +41 -18
  16. package/src/agent/tools/channel-send.ts +82 -13
  17. package/src/agent/tools/curl-impersonate.ts +40 -1
  18. package/src/agent/tools/webfetch/fetch.ts +86 -3
  19. package/src/agent/tools/webfetch/tool.ts +26 -3
  20. package/src/agent/tools/webfetch/types.ts +8 -0
  21. package/src/agent/turn-runner.ts +65 -36
  22. package/src/bundled-plugins/agent-browser/skills/agent-browser/SKILL.md +28 -11
  23. package/src/bundled-plugins/github-cli-auth/gh-review-detect.ts +101 -1
  24. package/src/bundled-plugins/github-cli-auth/review-recorder.ts +44 -3
  25. package/src/bundled-plugins/guard/policies/managed-config.ts +20 -4
  26. package/src/bundled-plugins/memory/README.md +9 -9
  27. package/src/bundled-plugins/memory/index.ts +40 -9
  28. package/src/bundled-plugins/reviewer/skills/code-review.ts +22 -2
  29. package/src/channels/adapters/discord-bot-edit.ts +49 -0
  30. package/src/channels/adapters/discord-bot.ts +5 -0
  31. package/src/channels/adapters/discord-edit.ts +51 -0
  32. package/src/channels/adapters/discord.ts +4 -0
  33. package/src/channels/adapters/github/inbound.ts +20 -14
  34. package/src/channels/adapters/github/review-thread-resolver.ts +38 -4
  35. package/src/channels/adapters/slack-bot-edit.ts +58 -0
  36. package/src/channels/adapters/slack-bot.ts +18 -6
  37. package/src/channels/adapters/slack-edit.ts +47 -0
  38. package/src/channels/adapters/slack.ts +5 -0
  39. package/src/channels/adapters/teams-classify.ts +144 -0
  40. package/src/channels/adapters/teams-edit.ts +61 -0
  41. package/src/channels/adapters/teams-id-token.ts +112 -0
  42. package/src/channels/adapters/teams-key.ts +32 -0
  43. package/src/channels/adapters/teams.ts +523 -0
  44. package/src/channels/adapters/telegram-bot-edit.ts +51 -0
  45. package/src/channels/adapters/telegram-bot.ts +5 -0
  46. package/src/channels/adapters/webex-bot.ts +5 -0
  47. package/src/channels/adapters/webex-edit.ts +47 -0
  48. package/src/channels/adapters/webex.ts +5 -0
  49. package/src/channels/continuation-willingness.ts +227 -35
  50. package/src/channels/github-review-turn-ledger.ts +43 -0
  51. package/src/channels/index.ts +1 -1
  52. package/src/channels/manager.ts +54 -1
  53. package/src/channels/router.ts +482 -53
  54. package/src/channels/schema.ts +33 -0
  55. package/src/channels/types.ts +36 -0
  56. package/src/cli/channel.ts +92 -4
  57. package/src/cli/hostd.ts +41 -0
  58. package/src/cli/init.ts +58 -1
  59. package/src/config/channels-mutation.ts +9 -1
  60. package/src/cron/index.ts +16 -4
  61. package/src/cron/reloadable.ts +25 -7
  62. package/src/cron/scheduler.ts +4 -0
  63. package/src/cron/schema.ts +143 -35
  64. package/src/doctor/channel-checks.ts +27 -0
  65. package/src/hostd/daemon.ts +23 -3
  66. package/src/hostd/protocol.ts +2 -0
  67. package/src/hostd/teams-renewal-manager.ts +212 -0
  68. package/src/init/checkpoint.ts +1 -1
  69. package/src/init/index.ts +68 -1
  70. package/src/init/run-owner-claim.ts +1 -0
  71. package/src/init/teams-auth.ts +111 -0
  72. package/src/inspect/label.ts +4 -0
  73. package/src/permissions/match-rule.ts +11 -1
  74. package/src/permissions/resolve.ts +1 -0
  75. package/src/role-claim/match-rule.ts +2 -1
  76. package/src/run/index.ts +35 -8
  77. package/src/run/llm-fetch-observer.ts +27 -5
  78. package/src/sandbox/build.ts +12 -0
  79. package/src/sandbox/policy.ts +13 -0
  80. package/src/sandbox/writable-zones.ts +46 -10
  81. package/src/secrets/schema.ts +32 -0
  82. package/src/secrets/teams-renewal.ts +229 -0
  83. package/src/secrets/teams-store.ts +108 -0
  84. package/src/server/command-runner.ts +2 -1
  85. package/src/server/index.ts +2 -1
  86. package/typeclaw.schema.json +163 -3
@@ -1833,6 +1833,166 @@
1833
1833
  }
1834
1834
  }
1835
1835
  },
1836
+ "teams": {
1837
+ "type": "object",
1838
+ "properties": {
1839
+ "engagement": {
1840
+ "default": {
1841
+ "trigger": [
1842
+ "mention",
1843
+ "reply",
1844
+ "dm"
1845
+ ],
1846
+ "stickiness": {
1847
+ "perReply": {
1848
+ "window": 900000
1849
+ }
1850
+ }
1851
+ },
1852
+ "type": "object",
1853
+ "properties": {
1854
+ "trigger": {
1855
+ "default": [
1856
+ "mention",
1857
+ "reply",
1858
+ "dm"
1859
+ ],
1860
+ "type": "array",
1861
+ "items": {
1862
+ "type": "string",
1863
+ "enum": [
1864
+ "mention",
1865
+ "reply",
1866
+ "dm"
1867
+ ]
1868
+ }
1869
+ },
1870
+ "stickiness": {
1871
+ "default": {
1872
+ "perReply": {
1873
+ "window": 900000
1874
+ }
1875
+ },
1876
+ "anyOf": [
1877
+ {
1878
+ "type": "string",
1879
+ "const": "off"
1880
+ },
1881
+ {
1882
+ "type": "object",
1883
+ "properties": {
1884
+ "perReply": {
1885
+ "type": "object",
1886
+ "properties": {
1887
+ "window": {
1888
+ "type": "integer",
1889
+ "minimum": 1,
1890
+ "maximum": 86400000
1891
+ }
1892
+ },
1893
+ "required": [
1894
+ "window"
1895
+ ]
1896
+ }
1897
+ },
1898
+ "required": [
1899
+ "perReply"
1900
+ ]
1901
+ }
1902
+ ]
1903
+ }
1904
+ }
1905
+ },
1906
+ "history": {
1907
+ "default": {
1908
+ "prefetch": {
1909
+ "thread": {
1910
+ "head": 3,
1911
+ "tail": 10
1912
+ },
1913
+ "channel": {
1914
+ "tail": 10
1915
+ }
1916
+ }
1917
+ },
1918
+ "type": "object",
1919
+ "properties": {
1920
+ "prefetch": {
1921
+ "default": {
1922
+ "thread": {
1923
+ "head": 3,
1924
+ "tail": 10
1925
+ },
1926
+ "channel": {
1927
+ "tail": 10
1928
+ }
1929
+ },
1930
+ "type": "object",
1931
+ "properties": {
1932
+ "thread": {
1933
+ "default": {
1934
+ "head": 3,
1935
+ "tail": 10
1936
+ },
1937
+ "type": "object",
1938
+ "properties": {
1939
+ "head": {
1940
+ "default": 3,
1941
+ "type": "integer",
1942
+ "minimum": 0,
1943
+ "maximum": 200
1944
+ },
1945
+ "tail": {
1946
+ "default": 10,
1947
+ "type": "integer",
1948
+ "minimum": 0,
1949
+ "maximum": 200
1950
+ }
1951
+ }
1952
+ },
1953
+ "channel": {
1954
+ "default": {
1955
+ "tail": 10
1956
+ },
1957
+ "type": "object",
1958
+ "properties": {
1959
+ "tail": {
1960
+ "default": 10,
1961
+ "type": "integer",
1962
+ "minimum": 0,
1963
+ "maximum": 200
1964
+ }
1965
+ }
1966
+ }
1967
+ }
1968
+ }
1969
+ }
1970
+ },
1971
+ "enabled": {
1972
+ "default": true,
1973
+ "type": "boolean"
1974
+ },
1975
+ "quotedReply": {
1976
+ "default": {
1977
+ "enabled": true,
1978
+ "queueDelayMs": 10000
1979
+ },
1980
+ "type": "object",
1981
+ "properties": {
1982
+ "enabled": {
1983
+ "default": true,
1984
+ "type": "boolean"
1985
+ },
1986
+ "queueDelayMs": {
1987
+ "default": 10000,
1988
+ "type": "integer",
1989
+ "minimum": 0,
1990
+ "maximum": 9007199254740991
1991
+ }
1992
+ }
1993
+ }
1994
+ }
1995
+ },
1836
1996
  "telegram-bot": {
1837
1997
  "type": "object",
1838
1998
  "properties": {
@@ -2566,7 +2726,7 @@
2566
2726
  "type": "array",
2567
2727
  "items": {
2568
2728
  "type": "string",
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]+)*$"
2729
+ "pattern": "^(tui|cron|subagent(:[a-z][a-z0-9-]*)?|\\*|(slack|discord|telegram|webex|teams|instagram|line|kakao|github):[^\\s]+)(\\s+[a-zA-Z][a-zA-Z0-9_]*:[^\\s]+)*$"
2570
2730
  }
2571
2731
  },
2572
2732
  "permissions": {
@@ -2701,7 +2861,7 @@
2701
2861
  "idleMs": 60000,
2702
2862
  "bufferBytes": 500000,
2703
2863
  "injectionBudgetBytes": 16384,
2704
- "minIdleDeltaLines": 3,
2864
+ "minIdleDeltaLines": 20,
2705
2865
  "spawnTimeoutMs": 50000
2706
2866
  },
2707
2867
  "type": "object",
@@ -2725,7 +2885,7 @@
2725
2885
  "maximum": 9007199254740991
2726
2886
  },
2727
2887
  "minIdleDeltaLines": {
2728
- "default": 3,
2888
+ "default": 20,
2729
2889
  "type": "integer",
2730
2890
  "minimum": 0,
2731
2891
  "maximum": 9007199254740991