@actagent/tlon 2026.6.2

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 (65) hide show
  1. package/README.md +5 -0
  2. package/actagent.plugin.json +15 -0
  3. package/api.ts +17 -0
  4. package/channel-plugin-api.ts +2 -0
  5. package/doctor-contract-api.ts +2 -0
  6. package/index.ts +17 -0
  7. package/npm-shrinkwrap.json +861 -0
  8. package/package.json +87 -0
  9. package/runtime-api.ts +17 -0
  10. package/setup-api.ts +3 -0
  11. package/setup-entry.ts +10 -0
  12. package/src/account-fields.ts +32 -0
  13. package/src/channel.message-adapter.test.ts +147 -0
  14. package/src/channel.runtime.ts +260 -0
  15. package/src/channel.ts +193 -0
  16. package/src/config-schema.ts +55 -0
  17. package/src/core.test.ts +299 -0
  18. package/src/doctor-contract.ts +10 -0
  19. package/src/doctor.test.ts +47 -0
  20. package/src/doctor.ts +11 -0
  21. package/src/logger-runtime.ts +2 -0
  22. package/src/monitor/approval-runtime.ts +364 -0
  23. package/src/monitor/approval.test.ts +34 -0
  24. package/src/monitor/approval.ts +283 -0
  25. package/src/monitor/authorization.ts +31 -0
  26. package/src/monitor/cites.ts +55 -0
  27. package/src/monitor/discovery.ts +69 -0
  28. package/src/monitor/history.ts +227 -0
  29. package/src/monitor/index.ts +1531 -0
  30. package/src/monitor/media.test.ts +81 -0
  31. package/src/monitor/media.ts +157 -0
  32. package/src/monitor/processed-messages.test.ts +59 -0
  33. package/src/monitor/processed-messages.ts +90 -0
  34. package/src/monitor/settings-helpers.test.ts +114 -0
  35. package/src/monitor/settings-helpers.ts +151 -0
  36. package/src/monitor/utils.ts +403 -0
  37. package/src/runtime.ts +10 -0
  38. package/src/security.test.ts +654 -0
  39. package/src/session-route.ts +41 -0
  40. package/src/settings.ts +391 -0
  41. package/src/setup-core.ts +232 -0
  42. package/src/setup-surface.ts +98 -0
  43. package/src/targets.ts +103 -0
  44. package/src/tlon-api.test.ts +573 -0
  45. package/src/tlon-api.ts +390 -0
  46. package/src/types.ts +161 -0
  47. package/src/urbit/auth.ssrf.test.ts +46 -0
  48. package/src/urbit/auth.ts +49 -0
  49. package/src/urbit/base-url.test.ts +49 -0
  50. package/src/urbit/base-url.ts +62 -0
  51. package/src/urbit/channel-ops.test.ts +37 -0
  52. package/src/urbit/channel-ops.ts +150 -0
  53. package/src/urbit/context.ts +51 -0
  54. package/src/urbit/errors.ts +52 -0
  55. package/src/urbit/fetch.ts +43 -0
  56. package/src/urbit/foreigns.ts +49 -0
  57. package/src/urbit/send.test.ts +84 -0
  58. package/src/urbit/send.ts +229 -0
  59. package/src/urbit/sse-client.test.ts +262 -0
  60. package/src/urbit/sse-client.ts +507 -0
  61. package/src/urbit/story.ts +327 -0
  62. package/src/urbit/upload.test.ts +156 -0
  63. package/src/urbit/upload.ts +60 -0
  64. package/test-api.ts +2 -0
  65. package/tsconfig.json +16 -0
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Tlon (ACTAgent plugin)
2
+
3
+ Tlon/Urbit channel plugin for ACTAgent. Supports DMs, group mentions, and thread replies.
4
+
5
+ Docs: https://docs.actagent.ai/channels/tlon
@@ -0,0 +1,15 @@
1
+ {
2
+ "id": "tlon",
3
+ "name": "Tlon/Urbit",
4
+ "description": "ACTAgent Tlon/Urbit channel plugin for chat workflows.",
5
+ "activation": {
6
+ "onStartup": false
7
+ },
8
+ "channels": ["tlon"],
9
+ "skills": ["node_modules/@tloncorp/tlon-skill"],
10
+ "configSchema": {
11
+ "type": "object",
12
+ "additionalProperties": false,
13
+ "properties": {}
14
+ }
15
+ }
package/api.ts ADDED
@@ -0,0 +1,17 @@
1
+ // Tlon API module exposes the plugin public contract.
2
+ export {
3
+ createDedupeCache,
4
+ createLoggerBackedRuntime,
5
+ fetchWithSsrFGuard,
6
+ isBlockedHostnameOrIp,
7
+ type LookupFn,
8
+ type ACTAgentConfig,
9
+ type ReplyPayload,
10
+ type RuntimeEnv,
11
+ SsrFBlockedError,
12
+ type SsrFPolicy,
13
+ ssrfPolicyFromAllowPrivateNetwork,
14
+ ssrfPolicyFromDangerouslyAllowPrivateNetwork,
15
+ } from "./runtime-api.js";
16
+ export { tlonPlugin } from "./src/channel.js";
17
+ export { setTlonRuntime } from "./src/runtime.js";
@@ -0,0 +1,2 @@
1
+ // Tlon API module exposes the plugin public contract.
2
+ export { tlonPlugin } from "./src/channel.js";
@@ -0,0 +1,2 @@
1
+ // Tlon API module exposes the plugin public contract.
2
+ export { normalizeCompatibilityConfig, legacyConfigRules } from "./src/doctor-contract.js";
package/index.ts ADDED
@@ -0,0 +1,17 @@
1
+ // Tlon plugin entrypoint registers its ACTAgent integration.
2
+ import { defineBundledChannelEntry } from "actagent/plugin-sdk/channel-entry-contract";
3
+
4
+ export default defineBundledChannelEntry({
5
+ id: "tlon",
6
+ name: "Tlon",
7
+ description: "Tlon/Urbit channel plugin",
8
+ importMetaUrl: import.meta.url,
9
+ plugin: {
10
+ specifier: "./channel-plugin-api.js",
11
+ exportName: "tlonPlugin",
12
+ },
13
+ runtime: {
14
+ specifier: "./api.js",
15
+ exportName: "setTlonRuntime",
16
+ },
17
+ });