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.
- package/README.md +2 -0
- package/chat.syn +17 -12
- package/cli.syn +8 -1
- package/hub.tpl.syn +4 -4
- package/lampson.ps1 +2 -2
- package/lampson.sh +7 -4
- package/lib/agents.syn +35 -27
- package/lib/api.syn +37 -35
- package/lib/apikeys.syn +8 -8
- package/lib/approvals.syn +11 -7
- package/lib/apptools.syn +27 -24
- package/lib/channels.syn +38 -36
- package/lib/computer.syn +20 -20
- package/lib/diagnose.syn +9 -7
- package/lib/fs.syn +11 -11
- package/lib/judge.syn +4 -4
- package/lib/loop.syn +46 -21
- package/lib/lsp.syn +13 -13
- package/lib/mailbox.syn +34 -24
- package/lib/mcp.syn +25 -17
- package/lib/mcp_server.syn +34 -26
- package/lib/permission.syn +3 -1
- package/lib/plugins.syn +48 -40
- package/lib/prompt.syn +5 -5
- package/lib/provider.syn +25 -11
- package/lib/remotetools.syn +3 -1
- package/lib/runtime.syn +112 -85
- package/lib/sched_run.syn +19 -13
- package/lib/schedule.syn +25 -23
- package/lib/session.syn +6 -6
- package/lib/settings.syn +10 -10
- package/lib/skills.syn +9 -9
- package/lib/teamrun.syn +75 -28
- package/lib/teams.syn +190 -115
- package/lib/term.syn +2 -2
- package/lib/tools/bash.syn +2 -2
- package/lib/tools/common.syn +3 -3
- package/lib/tools/edit.syn +1 -1
- package/lib/tools/fetch.syn +7 -3
- package/lib/tools/find.syn +1 -1
- package/lib/tools/grep.syn +2 -2
- package/lib/tools/ls.syn +1 -1
- package/lib/tools/memo.syn +7 -7
- package/lib/tools/proc.syn +10 -10
- package/lib/tools/process.syn +1 -1
- package/lib/tools/read.syn +2 -2
- package/lib/tools/todo.syn +3 -3
- package/lib/tools/write.syn +1 -1
- package/lib/tools.syn +17 -15
- package/lib/trace.syn +5 -5
- package/lib/tree.syn +3 -3
- package/lib/update.syn +6 -0
- package/lib/workspaces.syn +25 -25
- package/lib/worktree.syn +323 -24
- package/package.json +2 -2
- package/plugins/chatwoot/plugin.syn +2 -0
- package/plugins/orders/plugin.json +1 -1
- package/plugins/orders/plugin.syn +1 -1
- package/plugins/telegram/plugin.syn +2 -0
- package/public/css/inbox.css +100 -0
- package/public/css/mobile.css +0 -13
- package/public/css/panel.css +21 -0
- package/public/css/teams.css +20 -52
- package/public/hub.html +3 -0
- package/public/index.html +3 -0
- package/public/js/config.js +3 -3
- package/public/js/devices.js +1 -1
- package/public/js/hub.js +3 -2
- package/public/js/inbox.js +234 -0
- package/public/js/navtabs.js +1 -6
- package/public/js/objlive.js +11 -3
- package/public/js/panel.js +12 -6
- package/public/js/teams-home.js +3 -33
- package/public/js/teams.js +35 -114
- package/public/js/workspaces.js +1 -1
- package/public/plugins-home.html +3 -0
- package/public/tasks-home.html +3 -0
- package/public/teams-home.html +3 -1
- package/public/teams.html +3 -2
- package/run.syn +17 -12
- package/sdk/index.d.ts +1 -1
- package/sdk/index.js +51 -8
- package/skills/synsema/SKILL.md +3 -3
- package/web.syn +10 -7
package/skills/synsema/SKILL.md
CHANGED
|
@@ -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
|