opencode-superagent 0.0.0-stage → 0.1.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 (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +333 -2
  3. package/agent/superagent-router.md +7 -0
  4. package/agent/superagent-worker.md +10 -0
  5. package/dist/server.d.ts +3 -0
  6. package/dist/server.js +115 -0
  7. package/dist/src/abort.d.ts +31 -0
  8. package/dist/src/abort.js +176 -0
  9. package/dist/src/agents.d.ts +51 -0
  10. package/dist/src/agents.js +83 -0
  11. package/dist/src/context.d.ts +20 -0
  12. package/dist/src/context.js +98 -0
  13. package/dist/src/dirs.d.ts +45 -0
  14. package/dist/src/dirs.js +129 -0
  15. package/dist/src/dispatch.d.ts +38 -0
  16. package/dist/src/dispatch.js +214 -0
  17. package/dist/src/format.d.ts +3 -0
  18. package/dist/src/format.js +14 -0
  19. package/dist/src/guard.d.ts +4 -0
  20. package/dist/src/guard.js +9 -0
  21. package/dist/src/prompts.d.ts +1 -0
  22. package/dist/src/prompts.js +36 -0
  23. package/dist/src/protocol.d.ts +210 -0
  24. package/dist/src/protocol.js +88 -0
  25. package/dist/src/recall.d.ts +58 -0
  26. package/dist/src/recall.js +309 -0
  27. package/dist/src/report.d.ts +72 -0
  28. package/dist/src/report.js +147 -0
  29. package/dist/src/router.d.ts +35 -0
  30. package/dist/src/router.js +209 -0
  31. package/dist/src/session-meta.d.ts +42 -0
  32. package/dist/src/session-meta.js +91 -0
  33. package/dist/src/state.d.ts +124 -0
  34. package/dist/src/state.js +431 -0
  35. package/dist/src/ticket-tools.d.ts +45 -0
  36. package/dist/src/ticket-tools.js +148 -0
  37. package/dist/src/ticket-view.d.ts +62 -0
  38. package/dist/src/ticket-view.js +135 -0
  39. package/dist/src/ticket.d.ts +246 -0
  40. package/dist/src/ticket.js +700 -0
  41. package/dist/src/tools.d.ts +85 -0
  42. package/dist/src/tools.js +376 -0
  43. package/dist/src/watchdog.d.ts +16 -0
  44. package/dist/src/watchdog.js +77 -0
  45. package/dist/src/watcher.d.ts +11 -0
  46. package/dist/src/watcher.js +181 -0
  47. package/dist/tui.d.ts +3 -0
  48. package/dist/tui.js +1027 -0
  49. package/package.json +79 -4
package/package.json CHANGED
@@ -1,6 +1,81 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/package.json",
2
3
  "name": "opencode-superagent",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
4
+ "version": "0.1.0",
5
+ "description": "Superagent: a resident router agent that dispatches background worker agents in OpenCode",
6
+ "type": "module",
7
+ "license": "MIT",
8
+ "private": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/xtccc/opencode-superagent.git"
12
+ },
13
+ "homepage": "https://github.com/xtccc/opencode-superagent#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/xtccc/opencode-superagent/issues"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "exports": {
21
+ ".": "./dist/server.js",
22
+ "./server": "./dist/server.js",
23
+ "./tui": "./dist/tui.js"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "agent",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "engines": {
32
+ "bun": ">=1.4.0"
33
+ },
34
+ "keywords": [
35
+ "opencode",
36
+ "opencode-plugin",
37
+ "agent",
38
+ "orchestration"
39
+ ],
40
+ "scripts": {
41
+ "build": "bun run script/build.ts",
42
+ "prepare": "bun run build",
43
+ "prepack": "bun run build",
44
+ "test": "bun test",
45
+ "typecheck": "bun check --no-script",
46
+ "typecheck:tsc": "tsc --noEmit"
47
+ },
48
+ "dependencies": {
49
+ "@opencode/schema": "^2.2.5"
50
+ },
51
+ "peerDependencies": {
52
+ "@opencode/plugin": "^2.0.27 || ^0.0.0-dev",
53
+ "@opentui/solid": ">=0.8.1",
54
+ "effect": "^4.1.0 || ^0.0.0-dev",
55
+ "solid-js": ">=1.9.0"
56
+ },
57
+ "peerDependenciesMeta": {
58
+ "@opencode/plugin": {
59
+ "optional": true
60
+ },
61
+ "@opentui/solid": {
62
+ "optional": true
63
+ },
64
+ "effect": {
65
+ "optional": true
66
+ },
67
+ "solid-js": {
68
+ "optional": true
69
+ }
70
+ },
71
+ "devDependencies": {
72
+ "@opencode/client": "^2.2.5",
73
+ "@opencode/plugin": "^2.2.5",
74
+ "@opentui/solid": "0.8.1",
75
+ "@tsconfig/bun": "1.0.9",
76
+ "@types/bun": "1.4.3",
77
+ "@typescript/native": "npm:typescript@7.1.0-beta",
78
+ "effect": "4.1.0",
79
+ "solid-js": "1.9.17"
80
+ }
81
+ }