lampson 0.5.1 → 0.5.3

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 (84) hide show
  1. package/README.md +2 -0
  2. package/chat.syn +17 -12
  3. package/cli.syn +8 -1
  4. package/hub.tpl.syn +4 -4
  5. package/lampson.ps1 +2 -2
  6. package/lampson.sh +7 -4
  7. package/lib/agents.syn +35 -27
  8. package/lib/api.syn +37 -35
  9. package/lib/apikeys.syn +8 -8
  10. package/lib/approvals.syn +11 -7
  11. package/lib/apptools.syn +27 -24
  12. package/lib/channels.syn +38 -36
  13. package/lib/computer.syn +20 -20
  14. package/lib/diagnose.syn +9 -7
  15. package/lib/fs.syn +11 -11
  16. package/lib/judge.syn +4 -4
  17. package/lib/loop.syn +46 -21
  18. package/lib/lsp.syn +13 -13
  19. package/lib/mailbox.syn +34 -24
  20. package/lib/mcp.syn +25 -17
  21. package/lib/mcp_server.syn +34 -26
  22. package/lib/permission.syn +3 -1
  23. package/lib/plugins.syn +48 -40
  24. package/lib/prompt.syn +5 -5
  25. package/lib/provider.syn +25 -11
  26. package/lib/remotetools.syn +3 -1
  27. package/lib/runtime.syn +112 -85
  28. package/lib/sched_run.syn +19 -13
  29. package/lib/schedule.syn +25 -23
  30. package/lib/session.syn +6 -6
  31. package/lib/settings.syn +10 -10
  32. package/lib/skills.syn +9 -9
  33. package/lib/teamrun.syn +75 -28
  34. package/lib/teams.syn +190 -115
  35. package/lib/term.syn +2 -2
  36. package/lib/tools/bash.syn +2 -2
  37. package/lib/tools/common.syn +3 -3
  38. package/lib/tools/edit.syn +1 -1
  39. package/lib/tools/fetch.syn +7 -3
  40. package/lib/tools/find.syn +1 -1
  41. package/lib/tools/grep.syn +2 -2
  42. package/lib/tools/ls.syn +1 -1
  43. package/lib/tools/memo.syn +7 -7
  44. package/lib/tools/proc.syn +10 -10
  45. package/lib/tools/process.syn +1 -1
  46. package/lib/tools/read.syn +2 -2
  47. package/lib/tools/todo.syn +3 -3
  48. package/lib/tools/write.syn +1 -1
  49. package/lib/tools.syn +17 -15
  50. package/lib/trace.syn +5 -5
  51. package/lib/tree.syn +3 -3
  52. package/lib/update.syn +6 -0
  53. package/lib/workspaces.syn +25 -25
  54. package/lib/worktree.syn +323 -24
  55. package/package.json +2 -2
  56. package/plugins/chatwoot/plugin.syn +2 -0
  57. package/plugins/orders/plugin.json +1 -1
  58. package/plugins/orders/plugin.syn +1 -1
  59. package/plugins/telegram/plugin.syn +2 -0
  60. package/public/css/inbox.css +100 -0
  61. package/public/css/mobile.css +0 -13
  62. package/public/css/panel.css +21 -0
  63. package/public/css/teams.css +20 -52
  64. package/public/hub.html +3 -0
  65. package/public/index.html +3 -0
  66. package/public/js/config.js +3 -3
  67. package/public/js/devices.js +1 -1
  68. package/public/js/hub.js +3 -2
  69. package/public/js/inbox.js +234 -0
  70. package/public/js/navtabs.js +1 -6
  71. package/public/js/objlive.js +11 -3
  72. package/public/js/panel.js +12 -6
  73. package/public/js/teams-home.js +3 -33
  74. package/public/js/teams.js +35 -114
  75. package/public/js/workspaces.js +1 -1
  76. package/public/plugins-home.html +3 -0
  77. package/public/tasks-home.html +3 -0
  78. package/public/teams-home.html +3 -1
  79. package/public/teams.html +3 -2
  80. package/run.syn +17 -12
  81. package/sdk/index.d.ts +1 -1
  82. package/sdk/index.js +51 -8
  83. package/skills/synsema/SKILL.md +3 -3
  84. package/web.syn +10 -7
@@ -39,7 +39,7 @@ description: Writing, checking, running and testing Synsema (.syn) code — synt
39
39
  top-level `require` or `serve` — the ENTRY file grants capabilities.
40
40
 
41
41
  ## Capabilities (deny-by-default)
42
- - Declare at the top: `require net("host")`, `require file("dir")` + `require file("dir/*")`,
42
+ - Declare at the top: `require net("host")`, `require file("dir")` + `require file("dir/**")` (scopes are globs by segment since 0.6.46: `dir/*` is one level, `dir/**` the whole tree),
43
43
  `require exec`, `require env("X_*")`, `require secret("KEY")`, `require serve(8080)`, `require time`.
44
44
  - A task's own top-of-body `require` lines are what `call_tool(task, args_map)` intersects
45
45
  (least-privilege). Plain calls run with the program's ambient capabilities.
@@ -73,7 +73,7 @@ description: Writing, checking, running and testing Synsema (.syn) code — synt
73
73
  editor is `lib/line.syn`; drive a terminal UI in tests via `proc_spawn(…, {pty: true})` (`tty_test.syn`).
74
74
  - **File watch (v0.6.9+)**: `let w be watch("src", {"interval": 0.2, "ignore": ["*.tmp"]})` → events
75
75
  `{type: "create"|"modify"|"delete", path, is_dir}` via `watch_recv(w, secs)` or `select`; polling with a
76
- snapshot (latency = interval), `watch_close(w)`. Gate: `file("src")` + `file("src/*")`.
76
+ snapshot (latency = interval), `watch_close(w)`. Gate: `file("src")` + `file("src/**")`.
77
77
 
78
78
  ## Traps verified on this machine (do not fight them)
79
79
  - Agents: an `agent` body sees ONLY its `spawn X with a = …` parameters, the builtins and the TOP-LEVEL
@@ -82,7 +82,7 @@ description: Writing, checking, running and testing Synsema (.syn) code — synt
82
82
  `stop` only inside loops. `synsema run`/`test` join agents at the end: a `while true` supervisor must be
83
83
  told to stop (bus/signal). (≤ 0.6.9 `test` had no swarm; v0.6.10+ runs agents for real in `test`.)
84
84
  - `;` between statements is a lexer error (one statement per line).
85
- - `file("./*")` behaves like `"*"` (whole disk). Use a named dir scope: `file("workspace/*")`.
85
+ - `file("./*")` behaves like `"*"` (whole disk). Use a named dir scope: `file("workspace/**")`.
86
86
  - `http_post(url, MAP)` sends `text(map)`, not JSON → `http_post(url, json_encode(body), {"Content-Type": "application/json"})`.
87
87
  - Responses have `status, ok, body, headers` — no `json` key → `json_decode(body of r)`; on network error: `status 0` + `error`.
88
88
  - `localhost` resolves to IPv6; use `127.0.0.1`.
package/web.syn CHANGED
@@ -24,6 +24,9 @@ intent: "Web chat for a coding agent: tools from an allow-list, least-privilege
24
24
 
25
25
  require serve(8080)
26
26
  require net
27
+ -- Synsema 0.6.46+: `require net` solo llega a direcciones públicas; LLMs locales, MCP, el hub y fetch a localhost/LAN
28
+ require net("0.0.0.0/0")
29
+ require net("::/0")
27
30
  require time
28
31
  require exec
29
32
  require random
@@ -35,19 +38,19 @@ require sign("LAMPSON_TOOLS")
35
38
  require db(".lampson/teams.db")
36
39
  require judge
37
40
  require file("workspace")
38
- require file("workspace/*")
41
+ require file("workspace/**")
39
42
  require file.read("skills")
40
- require file.read("skills/*")
43
+ require file.read("skills/**")
41
44
  require file.read("plugins")
42
- require file.read("plugins/*")
45
+ require file.read("plugins/**")
43
46
  require file.read("agents")
44
- require file.read("agents/*")
47
+ require file.read("agents/**")
45
48
  require file("memory")
46
- require file("memory/*")
49
+ require file("memory/**")
47
50
  require file(".lampson")
48
- require file(".lampson/*")
51
+ require file(".lampson/**")
49
52
  require file.read("public")
50
- require file.read("public/*")
53
+ require file.read("public/**")
51
54
 
52
55
  use "./lib/provider.syn" as provider
53
56
  use "./lib/tools.syn" as tools