@temmo/cli 0.0.0 → 0.19.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.
- package/.claude-plugin/marketplace.json +14 -0
- package/.claude-plugin/plugin.json +16 -0
- package/.codex-plugin/plugin.json +30 -0
- package/.cursor-plugin/plugin.json +22 -0
- package/.mcp.json +18 -0
- package/LICENSE +202 -0
- package/README.md +82 -2
- package/THIRD_PARTY_NOTICES +32 -0
- package/commands/afk.md +17 -0
- package/deploy/build-ui.mjs +65 -0
- package/deploy/claude/README.md +16 -0
- package/deploy/claude/auto-mode.json +31 -0
- package/deploy/postgres/compose.yaml +26 -0
- package/deploy/temmo-runner.service +24 -0
- package/deploy/verify-ui.mjs +15 -0
- package/harness-core/README.md +27 -0
- package/harness-core/bin/harness.mjs +17 -0
- package/harness-core/package.json +10 -0
- package/harness-core/stage.mjs +108 -0
- package/harness-core/stages/commit.md +7 -0
- package/harness-core/stages/pr.md +7 -0
- package/harness-core/stages/push.md +7 -0
- package/hooks/codex-hooks.json +14 -0
- package/hooks/cursor-hooks.json +17 -0
- package/hooks/hooks.json +27 -0
- package/lib/acp/permission.js +72 -0
- package/lib/acp/sessionConfig.js +109 -0
- package/lib/activity.js +244 -0
- package/lib/agent-guard.js +72 -0
- package/lib/agents-route.js +55 -0
- package/lib/agents.js +213 -0
- package/lib/agui.js +255 -0
- package/lib/alerts.js +36 -0
- package/lib/analyze-otlp.js +46 -0
- package/lib/analyze-run-code.js +397 -0
- package/lib/analyze-sources.js +372 -0
- package/lib/approval-card.js +54 -0
- package/lib/approval-cli.js +53 -0
- package/lib/approval-request.js +81 -0
- package/lib/approval-signer.js +48 -0
- package/lib/approvals.js +295 -0
- package/lib/attachment-cache.js +236 -0
- package/lib/attachment.js +63 -0
- package/lib/blocked.js +20 -0
- package/lib/build-review.js +90 -0
- package/lib/builder/cli.js +90 -0
- package/lib/builder/policy.js +176 -0
- package/lib/builder/recover.js +189 -0
- package/lib/builder/run.js +240 -0
- package/lib/builder/settle.js +198 -0
- package/lib/builder/stage.js +240 -0
- package/lib/builder/state.js +73 -0
- package/lib/builder/supervisor.js +289 -0
- package/lib/builder-clean.js +223 -0
- package/lib/builder-code.cjs +67 -0
- package/lib/builder.js +9 -0
- package/lib/bus-postgres.js +281 -0
- package/lib/bus.js +349 -0
- package/lib/catalog/author.js +278 -0
- package/lib/catalog/dot.js +426 -0
- package/lib/catalog/pattern-model.js +193 -0
- package/lib/catalog/patterns.js +324 -0
- package/lib/catalog/projects.js +83 -0
- package/lib/catalog/records.js +2 -0
- package/lib/catalog/roster.js +70 -0
- package/lib/catalog/team-files.js +49 -0
- package/lib/catalog/teams.js +109 -0
- package/lib/claude-socket.js +333 -0
- package/lib/cli.js +741 -0
- package/lib/code-mode.js +45 -0
- package/lib/code-read-policy.yaml +9 -0
- package/lib/code-run.js +461 -0
- package/lib/codex-compact.js +141 -0
- package/lib/compaction.js +21 -0
- package/lib/config.js +424 -0
- package/lib/cursor-trace.js +248 -0
- package/lib/deep-link.js +20 -0
- package/lib/deliver-push.js +120 -0
- package/lib/delivery.js +28 -0
- package/lib/deploy-tree.js +227 -0
- package/lib/durable.js +404 -0
- package/lib/factory-tick.js +32 -0
- package/lib/family.js +63 -0
- package/lib/fetch-origin.js +53 -0
- package/lib/format.js +133 -0
- package/lib/harness-surface-cli.js +153 -0
- package/lib/harness-surface.js +486 -0
- package/lib/harness.js +271 -0
- package/lib/hook.mjs +291 -0
- package/lib/idle.js +40 -0
- package/lib/install-cursor.js +115 -0
- package/lib/install-opencode.js +105 -0
- package/lib/job.js +82 -0
- package/lib/land-cli.js +319 -0
- package/lib/land-member.js +64 -0
- package/lib/land.js +320 -0
- package/lib/lessons.js +223 -0
- package/lib/limit-alert.js +423 -0
- package/lib/limits.js +284 -0
- package/lib/machine-prompt.js +19 -0
- package/lib/merge-sweep.js +149 -0
- package/lib/messaging.js +1002 -0
- package/lib/mission-cli.js +103 -0
- package/lib/mission.js +241 -0
- package/lib/mode.js +215 -0
- package/lib/models.js +114 -0
- package/lib/names.js +86 -0
- package/lib/opencode-api.js +57 -0
- package/lib/opencode-plugin.mjs +313 -0
- package/lib/operator-token.js +78 -0
- package/lib/operator.js +187 -0
- package/lib/pad-activity.js +143 -0
- package/lib/pad-fresh.js +44 -0
- package/lib/pad.js +198 -0
- package/lib/pattern-cli.js +120 -0
- package/lib/pattern-compiler.js +68 -0
- package/lib/pattern-runs.js +795 -0
- package/lib/pattern-stall.js +58 -0
- package/lib/pattern-tick.js +45 -0
- package/lib/pattern-workflow.js +69 -0
- package/lib/pi-extension.mjs +98 -0
- package/lib/pi.js +57 -0
- package/lib/plugin-copy.js +76 -0
- package/lib/pm-review.js +32 -0
- package/lib/pm-workspace.js +87 -0
- package/lib/postgres.js +115 -0
- package/lib/pr-card.js +34 -0
- package/lib/probe.js +295 -0
- package/lib/process.js +67 -0
- package/lib/project-pause.js +23 -0
- package/lib/prune.js +793 -0
- package/lib/questions.js +250 -0
- package/lib/receipts.js +63 -0
- package/lib/reflect.js +962 -0
- package/lib/rename-migration.js +118 -0
- package/lib/run-terminal.js +437 -0
- package/lib/runner-request.js +33 -0
- package/lib/sandbox-app.js +120 -0
- package/lib/sandbox-claims.js +258 -0
- package/lib/sandbox-cli.js +188 -0
- package/lib/sandbox-hosts-cli.js +68 -0
- package/lib/sandbox-hosts.js +94 -0
- package/lib/sandbox-pr.js +102 -0
- package/lib/sandbox-proposal.js +367 -0
- package/lib/sandbox-tools.js +143 -0
- package/lib/sandbox.js +501 -0
- package/lib/schedule-session.js +68 -0
- package/lib/session-activity.js +67 -0
- package/lib/session-events.js +94 -0
- package/lib/sessions/control.js +244 -0
- package/lib/sessions/git-refs.js +265 -0
- package/lib/sessions/launch.js +359 -0
- package/lib/sessions/registry.js +450 -0
- package/lib/sessions/scope.js +111 -0
- package/lib/setup.js +377 -0
- package/lib/signed-approval.js +225 -0
- package/lib/slash.js +167 -0
- package/lib/spawn-cli.js +45 -0
- package/lib/spawn.js +107 -0
- package/lib/start-limit.js +58 -0
- package/lib/state.js +24 -0
- package/lib/stop.js +308 -0
- package/lib/store-read.js +62 -0
- package/lib/store.js +252 -0
- package/lib/subagent-guard.js +240 -0
- package/lib/surfaces/channel-post.js +43 -0
- package/lib/surfaces/instructions.js +15 -0
- package/lib/surfaces/mcp-reload.js +144 -0
- package/lib/surfaces/ops.js +629 -0
- package/lib/surfaces/render-mcp.js +33 -0
- package/lib/surfaces/run-terminal-ops.js +40 -0
- package/lib/surfaces/sandbox-ops.js +36 -0
- package/lib/surfaces/schema.js +7 -0
- package/lib/surfaces/task-view.js +90 -0
- package/lib/surfaces/types.js +4 -0
- package/lib/task-cli.js +274 -0
- package/lib/task-order.js +34 -0
- package/lib/task-order.mjs +2 -0
- package/lib/task-route.js +125 -0
- package/lib/tasks.js +631 -0
- package/lib/team-permission.js +34 -0
- package/lib/team-templates/blitz/team.dot +9 -0
- package/lib/team-templates/factory/team.dot +26 -0
- package/lib/team-templates/feature/team.dot +14 -0
- package/lib/team-templates/fix-and-review/team.dot +12 -0
- package/lib/team-templates/product/team.dot +16 -0
- package/lib/team-templates/release/team.dot +7 -0
- package/lib/team-templates/review/team.dot +6 -0
- package/lib/terminal-draft.js +42 -0
- package/lib/thread-branch.js +82 -0
- package/lib/thread-channel-store.js +181 -0
- package/lib/thread-channels.js +116 -0
- package/lib/thread-listening.js +20 -0
- package/lib/thread-routes.js +91 -0
- package/lib/threads.js +441 -0
- package/lib/tool-api.js +33 -0
- package/lib/transcript.js +98 -0
- package/lib/ui-build-output.js +19 -0
- package/lib/ui-capabilities.js +90 -0
- package/lib/usage.js +182 -0
- package/lib/vendor/mcp-sdk.d.mts +4 -0
- package/lib/vendor/mcp-sdk.mjs +17046 -0
- package/lib/waiter.js +127 -0
- package/lib/workflows.js +546 -0
- package/lib/worktree-setup.js +86 -0
- package/package.json +112 -1
- package/runner/adapters/claude.js +465 -0
- package/runner/adapters/cli-sandbox.js +277 -0
- package/runner/adapters/codex.js +675 -0
- package/runner/adapters/cursor.mjs +937 -0
- package/runner/adapters/fake.js +119 -0
- package/runner/adapters/opencode-sandbox.js +370 -0
- package/runner/adapters/opencode.js +486 -0
- package/runner/adapters/pi-sandbox.js +134 -0
- package/runner/adapters/pi.js +364 -0
- package/runner/client.js +40 -0
- package/runner/contract.js +129 -0
- package/runner/control.js +178 -0
- package/runner/delivery.js +184 -0
- package/runner/factory-tick.mjs +10 -0
- package/runner/lock.js +41 -0
- package/runner/main.mjs +118 -0
- package/runner/pattern-tick.mjs +16 -0
- package/runner/publish.js +113 -0
- package/runner/runner.js +2612 -0
- package/runner/sandbox-run.mjs +239 -0
- package/runner/schedules.js +294 -0
- package/runner/task-wake.js +59 -0
- package/scripts/ai-collab +3 -0
- package/scripts/ai-collab-bus.mjs +4 -0
- package/scripts/ai-collab-code-mcp.mjs +3 -0
- package/scripts/ai-collab-hook +3 -0
- package/scripts/ai-collab-hook.mjs +3 -0
- package/scripts/ai-collab-mcp-tools.mjs +2 -0
- package/scripts/ai-collab-mcp.mjs +3 -0
- package/scripts/ai-collab.mjs +3 -0
- package/scripts/install-cursor.mjs +11 -0
- package/scripts/install-opencode.mjs +10 -0
- package/scripts/temmo +3 -0
- package/scripts/temmo-bus.mjs +151 -0
- package/scripts/temmo-code-mcp.mjs +63 -0
- package/scripts/temmo-hook +3 -0
- package/scripts/temmo-hook.mjs +201 -0
- package/scripts/temmo-mcp-tools.mjs +22 -0
- package/scripts/temmo-mcp.mjs +27 -0
- package/scripts/temmo.mjs +4 -0
- package/skills/antislop/SKILL.md +701 -0
- package/skills/antislop/VERSION +1 -0
- package/skills/antislop-code/SKILL.md +128 -0
- package/skills/antislop-human/LICENSE-web-quality-skills +21 -0
- package/skills/antislop-human/SKILL.md +204 -0
- package/skills/antislop-human/contrast-check.py +168 -0
- package/skills/antislop-human/contrast-mcp.py +125 -0
- package/skills/antislop-human/references/A11Y-PATTERNS.md +249 -0
- package/skills/antislop-human/references/WCAG.md +127 -0
- package/skills/antislop-layoutmobile/SKILL.md +170 -0
- package/skills/antislop-ui/LICENSE-web-quality-skills +21 -0
- package/skills/antislop-ui/SKILL.md +351 -0
- package/skills/antislop-ui/references/CORE-WEB-VITALS.md +181 -0
- package/skills/antislop-ui/references/WEB-BASELINE.md +28 -0
- package/skills/harness-surface/SKILL.md +42 -0
- package/skills/land/SKILL.md +32 -0
- package/skills/memory-file/SKILL.md +39 -0
- package/skills/temmo/SKILL.md +101 -0
- package/skills/temmo/references/role-programs.md +47 -0
- package/skills/ui-sdk/SKILL.md +56 -0
- package/skills/ui-sdk/references/agent-ready.md +136 -0
- package/skills/ui-sdk/references/build-interface.md +187 -0
- package/skills/ui-sdk/references/create-component.md +88 -0
- package/skills/ui-sdk/references/patterns.md +246 -0
- package/skills/ui-sdk/references/styles.md +66 -0
- package/skills/ui-sdk/references/testing.md +172 -0
- package/skills/ui-sdk/references/web-components.md +78 -0
- package/tools/screen-state.mjs +119 -0
- package/tools/smoke-ui.mjs +540 -0
- package/web/app/activity.jsx +251 -0
- package/web/app/agent-mark.tsx +43 -0
- package/web/app/alert-level.jsx +16 -0
- package/web/app/api/[action]/route.js +8 -0
- package/web/app/api/auth/[step]/route.js +12 -0
- package/web/app/api/events/route.js +8 -0
- package/web/app/api/file/[name]/route.js +8 -0
- package/web/app/api/land/route.js +12 -0
- package/web/app/api/lessons/route.js +8 -0
- package/web/app/api/push/key/route.js +8 -0
- package/web/app/api/push/subscribe/route.js +12 -0
- package/web/app/api/push/test/route.js +8 -0
- package/web/app/api/refs/route.js +8 -0
- package/web/app/api/review-diff/route.js +8 -0
- package/web/app/api/schedules/route.js +8 -0
- package/web/app/api/thread-diff/route.js +8 -0
- package/web/app/api/version/route.js +6 -0
- package/web/app/cards.jsx +189 -0
- package/web/app/chat-api.js +82 -0
- package/web/app/chat-composer.jsx +313 -0
- package/web/app/chat-console.jsx +691 -0
- package/web/app/chat-image.tsx +61 -0
- package/web/app/chat-message.jsx +122 -0
- package/web/app/chat-shared.jsx +59 -0
- package/web/app/chat-sidebar.jsx +25 -0
- package/web/app/chat-stream.js +127 -0
- package/web/app/chat.jsx +31 -0
- package/web/app/compactions.jsx +57 -0
- package/web/app/composer-actions.tsx +87 -0
- package/web/app/decisions.jsx +53 -0
- package/web/app/fonts/OFL-hanken-grotesk.txt +93 -0
- package/web/app/fonts/OFL-ibm-plex-mono.txt +93 -0
- package/web/app/fonts/hanken-grotesk-latin-wght-normal.woff2 +0 -0
- package/web/app/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/web/app/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/web/app/globals.css +199 -0
- package/web/app/home.jsx +246 -0
- package/web/app/icon.svg +1 -0
- package/web/app/land-panel.jsx +63 -0
- package/web/app/land-reviews.jsx +20 -0
- package/web/app/layout.jsx +17 -0
- package/web/app/lessons.tsx +76 -0
- package/web/app/logo.tsx +13 -0
- package/web/app/logos.jsx +16 -0
- package/web/app/manifest.js +8 -0
- package/web/app/mode-menu.tsx +46 -0
- package/web/app/new-session.jsx +275 -0
- package/web/app/notify.jsx +180 -0
- package/web/app/outcomes.tsx +94 -0
- package/web/app/page.jsx +9 -0
- package/web/app/pattern-graph.jsx +75 -0
- package/web/app/patterns-page.jsx +293 -0
- package/web/app/phone-nav.tsx +36 -0
- package/web/app/progress-feed.tsx +33 -0
- package/web/app/providers.tsx +27 -0
- package/web/app/quote.jsx +15 -0
- package/web/app/run-card.tsx +200 -0
- package/web/app/run-requests.tsx +148 -0
- package/web/app/scheduled.jsx +105 -0
- package/web/app/session-panel.tsx +174 -0
- package/web/app/session-toolbar.tsx +180 -0
- package/web/app/shadcn.css +638 -0
- package/web/app/shipped.jsx +49 -0
- package/web/app/subagent-runs.jsx +31 -0
- package/web/app/task-graph.jsx +67 -0
- package/web/app/tasks-strip.tsx +36 -0
- package/web/app/tasks.jsx +375 -0
- package/web/app/team-author.jsx +145 -0
- package/web/app/team-editor.jsx +88 -0
- package/web/app/thread-agents.tsx +32 -0
- package/web/app/thread-place.tsx +9 -0
- package/web/app/thread-sessions.tsx +149 -0
- package/web/app/thread-sidebar.tsx +418 -0
- package/web/app/thread-switcher.tsx +27 -0
- package/web/app/tool-diff.jsx +94 -0
- package/web/components/a2ui/controls.jsx +36 -0
- package/web/components/a2ui/option-picker.jsx +23 -0
- package/web/components/a2ui/script.tsx +121 -0
- package/web/components/a2ui/surface.jsx +81 -0
- package/web/components/chat/thread.jsx +50 -0
- package/web/components/script-text.tsx +42 -0
- package/web/components/ui/avatar.jsx +115 -0
- package/web/components/ui/badge.jsx +47 -0
- package/web/components/ui/button.jsx +63 -0
- package/web/components/ui/chat-container.jsx +52 -0
- package/web/components/ui/choice-list.tsx +72 -0
- package/web/components/ui/code-block.jsx +60 -0
- package/web/components/ui/copy-button.tsx +41 -0
- package/web/components/ui/dropdown-menu.jsx +257 -0
- package/web/components/ui/markdown.jsx +84 -0
- package/web/components/ui/message.jsx +28 -0
- package/web/components/ui/popover.jsx +33 -0
- package/web/components/ui/scroll-button.jsx +34 -0
- package/web/components/ui/select.jsx +189 -0
- package/web/components/ui/sheet.jsx +152 -0
- package/web/components/ui/sonner.jsx +10 -0
- package/web/components/ui/tabs.jsx +88 -0
- package/web/components/ui/textarea.jsx +20 -0
- package/web/components/ui/tooltip.jsx +56 -0
- package/web/components.json +24 -0
- package/web/instrumentation.js +8 -0
- package/web/lib/a2ui-catalog.js +34 -0
- package/web/lib/a2ui-pr.js +76 -0
- package/web/lib/a2ui-run-catalog.js +18 -0
- package/web/lib/a2ui-run.js +93 -0
- package/web/lib/a2ui.js +262 -0
- package/web/lib/activity-rows.js +275 -0
- package/web/lib/agent-detail.js +5 -0
- package/web/lib/alert-level.js +44 -0
- package/web/lib/approval-mode.js +22 -0
- package/web/lib/chat-turns.js +174 -0
- package/web/lib/child-subagents.js +16 -0
- package/web/lib/compaction-view.js +48 -0
- package/web/lib/composer-actions.js +40 -0
- package/web/lib/context-view.js +57 -0
- package/web/lib/fuzzy.js +26 -0
- package/web/lib/highlight.js +44 -0
- package/web/lib/lessons-view.js +23 -0
- package/web/lib/mentions.js +16 -0
- package/web/lib/message-routing.js +105 -0
- package/web/lib/new-session.js +85 -0
- package/web/lib/operator-messages.js +28 -0
- package/web/lib/pattern-graph.js +165 -0
- package/web/lib/pattern-view.js +33 -0
- package/web/lib/pending-summary.js +18 -0
- package/web/lib/permission-modes.js +30 -0
- package/web/lib/project-feed.js +107 -0
- package/web/lib/quote.js +7 -0
- package/web/lib/reply-quote.js +31 -0
- package/web/lib/scheduled.js +79 -0
- package/web/lib/selection.js +110 -0
- package/web/lib/send-confirmation.js +22 -0
- package/web/lib/session-dead.js +10 -0
- package/web/lib/session-state.js +132 -0
- package/web/lib/sidebar.js +15 -0
- package/web/lib/slash-commands.js +164 -0
- package/web/lib/start-default.js +35 -0
- package/web/lib/start-mode.js +35 -0
- package/web/lib/stream-views.js +49 -0
- package/web/lib/subagent-state.js +20 -0
- package/web/lib/task-board.js +54 -0
- package/web/lib/task-graph.js +183 -0
- package/web/lib/task-tags.js +41 -0
- package/web/lib/team-editor.js +10 -0
- package/web/lib/thread-groups.js +86 -0
- package/web/lib/threads.js +28 -0
- package/web/lib/tool-diff.js +273 -0
- package/web/lib/ui-events.js +58 -0
- package/web/lib/utils.js +5 -0
- package/web/lib/view-memory.js +25 -0
- package/web/next.config.mjs +37 -0
- package/web/postcss.config.mjs +1 -0
- package/web/proxy.js +25 -0
- package/web/public/sw.js +39 -0
- package/web/server/auth.js +178 -0
- package/web/server/dispatch.js +293 -0
- package/web/server/history.js +56 -0
- package/web/server/hosted.js +58 -0
- package/web/server/hub.js +126 -0
- package/web/server/instance.js +5 -0
- package/web/server/land-reviews.js +64 -0
- package/web/server/push.js +148 -0
- package/web/server/run-terminal.js +79 -0
- package/web/server/schedules.js +38 -0
- package/web/server/shipped.js +51 -0
- package/web/server/task-board.js +71 -0
- package/web/server/threads.js +209 -0
- package/web/server/ui.js +2937 -0
- package/web/tsconfig.base.json +16 -0
- package/web/tsconfig.json +9 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "temmo",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "Local"
|
|
5
|
+
},
|
|
6
|
+
"plugins": [
|
|
7
|
+
{
|
|
8
|
+
"name": "temmo",
|
|
9
|
+
"source": "./",
|
|
10
|
+
"description": "Peer messaging over a private local message bus."
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"description": "Local coding-agent messaging over a private local message bus."
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "temmo",
|
|
3
|
+
"displayName": "Temmo",
|
|
4
|
+
"version": "0.19.0",
|
|
5
|
+
"description": "Best-effort messages and start/stop status between coding-agent peers over a private local message bus (Postgres-backed, loopback only). Inbound messages are surfaced as untrusted, provenance-labelled context.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"message-bus",
|
|
8
|
+
"messaging",
|
|
9
|
+
"peers",
|
|
10
|
+
"coding-agents"
|
|
11
|
+
],
|
|
12
|
+
"hooks": "./hooks/hooks.json",
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "bcmyguest"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "temmo",
|
|
3
|
+
"version": "0.19.0",
|
|
4
|
+
"description": "Best-effort messages and start/stop status between coding-agent peers over a private local message bus (Postgres-backed, loopback only). Inbound messages are surfaced as untrusted, provenance-labelled context.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"message-bus",
|
|
7
|
+
"messaging",
|
|
8
|
+
"peers",
|
|
9
|
+
"coding-agents"
|
|
10
|
+
],
|
|
11
|
+
"hooks": "./hooks/codex-hooks.json",
|
|
12
|
+
"skills": "./skills/",
|
|
13
|
+
"mcpServers": {
|
|
14
|
+
"temmo": {
|
|
15
|
+
"command": "node",
|
|
16
|
+
"args": [
|
|
17
|
+
"${PLUGIN_ROOT}/scripts/temmo-mcp.mjs",
|
|
18
|
+
"codex"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"temmo-code": {
|
|
22
|
+
"command": "node",
|
|
23
|
+
"args": [
|
|
24
|
+
"${PLUGIN_ROOT}/scripts/temmo-code-mcp.mjs",
|
|
25
|
+
"codex"
|
|
26
|
+
],
|
|
27
|
+
"tool_timeout_sec": 150
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "temmo",
|
|
3
|
+
"version": "0.19.0",
|
|
4
|
+
"description": "Best-effort messages and start/stop status between coding-agent peers over a private local message bus (Postgres-backed, loopback only). Inbound messages are surfaced as untrusted, provenance-labelled context.",
|
|
5
|
+
"commands": "./commands/",
|
|
6
|
+
"mcpServers": {
|
|
7
|
+
"temmo": {
|
|
8
|
+
"command": "node",
|
|
9
|
+
"args": [
|
|
10
|
+
"${CURSOR_PLUGIN_ROOT}/scripts/temmo-mcp.mjs",
|
|
11
|
+
"cursor"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"temmo-code": {
|
|
15
|
+
"command": "node",
|
|
16
|
+
"args": [
|
|
17
|
+
"${CURSOR_PLUGIN_ROOT}/scripts/temmo-code-mcp.mjs",
|
|
18
|
+
"cursor"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
package/.mcp.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"temmo": {
|
|
4
|
+
"command": "node",
|
|
5
|
+
"args": [
|
|
6
|
+
"${CLAUDE_PLUGIN_ROOT}/scripts/temmo-mcp.mjs",
|
|
7
|
+
"claude"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"temmo-code": {
|
|
11
|
+
"command": "node",
|
|
12
|
+
"args": [
|
|
13
|
+
"${CLAUDE_PLUGIN_ROOT}/scripts/temmo-code-mcp.mjs",
|
|
14
|
+
"claude"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,83 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Temmo
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@temmo/cli)
|
|
4
|
+
|
|
5
|
+
Your coding agents keep working while you're away from the keyboard. Temmo runs Claude Code, Codex, Cursor, OpenCode and [pi](docs/pi.md) on your own machine, and you steer them from your phone.
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
- Watch each tool call as it happens.
|
|
10
|
+
- Answer questions and approve commands from anywhere.
|
|
11
|
+
- Agents run on the subscriptions you already pay for, and sessions you start from the phone run in a sandbox. Messages stay on your machine and your tailnet.
|
|
12
|
+
|
|
13
|
+
**Docs:** <https://bcmyguest.github.io/temmo/> · Formerly ai-collab: [what changed](docs/rename.md)
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
You need Node 24+, Docker, and at least one agent CLI on `PATH`.
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npx @temmo/cli postgres up
|
|
21
|
+
npx @temmo/cli setup
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Setup installs Temmo for each agent it finds, then prints the steps to open the app on your phone. Start an agent in any git repo and it shows up in the phone app. You can run setup again safely; it skips any step that has already finished.
|
|
25
|
+
|
|
26
|
+
[What setup installs](docs/quick-start.md#what-setup-does) · [Flags](docs/quick-start.md) · [Phone access](docs/quick-start.md#phone-access)
|
|
27
|
+
|
|
28
|
+
## What a session looks like
|
|
29
|
+
|
|
30
|
+
```mermaid
|
|
31
|
+
sequenceDiagram
|
|
32
|
+
actor You as You (phone)
|
|
33
|
+
participant T as Temmo (your machine)
|
|
34
|
+
participant A as Agent (sandbox)
|
|
35
|
+
|
|
36
|
+
You->>T: "fix the flaky login test"
|
|
37
|
+
T->>A: deliver, waking it if idle
|
|
38
|
+
A-->>You: tool calls, live
|
|
39
|
+
A->>T: "OK to run npm test?"
|
|
40
|
+
T-->>You: push notification
|
|
41
|
+
You->>T: Approve
|
|
42
|
+
T->>A: approved
|
|
43
|
+
A-->>You: "Fixed. PR #42 is green."
|
|
44
|
+
You->>T: Merge
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[Architecture](docs/architecture-diagrams.md) · [Security model](docs/security.md)
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
| | |
|
|
52
|
+
|---|---|
|
|
53
|
+
| [Install](https://bcmyguest.github.io/temmo/install/) | Per-harness install by hand |
|
|
54
|
+
| [Configuration](https://bcmyguest.github.io/temmo/configuration/) | `defaults.json`, `projects.json`, environment variables |
|
|
55
|
+
| [Phone UI](https://bcmyguest.github.io/temmo/phone-ui/) | Home, chat, task tags, activity, starting sessions, push |
|
|
56
|
+
| [AFK mode](https://bcmyguest.github.io/temmo/afk/) | Progress posts and phone questions while you are away |
|
|
57
|
+
| [Approvals and questions](https://bcmyguest.github.io/temmo/approvals/) | Permission prompts answered from the phone |
|
|
58
|
+
| [Landing from the phone](docs/phone-ui.md#landing-from-the-phone) | `temmo land finish` opens a draft PR with proof, or a review packet without GitHub; the Land panel merges green PRs; `temmo deploy` updates the host; `deploy --from <branch>` serves a branch on the phone before landing |
|
|
59
|
+
| [Landing policy](docs/teams.md#landing-policy) | A team's `landing` attribute picks PR, packet or branch; agents never push `main` |
|
|
60
|
+
| [Builders](docs/builders.md) | One agent per task in OpenShell, with `oncebitten` checks when installed on the host |
|
|
61
|
+
| [Teams and patterns](docs/teams.md) | Define roles and handoffs in DOT and verify their transitions with local traces |
|
|
62
|
+
| [Factory](docs/teams.md#factory) | The software factory: a PM, three Haiku feature lanes with Opus review, a cleanup blitz every 5 merges and a release check, as DOT patterns; a host merge sweep under a checked-in policy and a release per merge |
|
|
63
|
+
| [Tasks](docs/tasks.md) | The project task store outside git, the phone board, operator decisions on tasks, and `task_list` search (`status`, `query`, `limit`, `ids`, `include_done`) |
|
|
64
|
+
| [Mission file](docs/mission.md) | `MISSION.md`: the product vision, goals and rules the scheduled PM tick and the factory read |
|
|
65
|
+
| [Activity](docs/activity.md) | Every tool call each harness exposes, live in the UI; `temmo activity <peer#session>` tails one session from a shell |
|
|
66
|
+
| [Roadmap](docs/roadmap.md) | The work queued next, in order |
|
|
67
|
+
| [Threads](docs/threads.md) | A thread is a channel: `send` to `thread:<id>` reaches every listening session; `thread_listen` mutes or unmutes it (subagents start muted); `thread_messages` reads it |
|
|
68
|
+
| [Agents starting agents](docs/messaging.md#agents-starting-agents) | `spawn_agent` (or `temmo spawn`) starts a child of any harness that reports to its parent after each run |
|
|
69
|
+
| [Long-session trajectories](docs/roadmap.md#long-session-trajectories) | `session_pad` keeps a recap per session; the runner injects it at wake, restart and compaction and copies rule lines from the brief and operator messages into its constraints section (`spawn_agent` `pad: false` opts a session out). Once the conversation passes about 50K tokens the runner restarts it at the next turn end on a fresh conversation with the task and the pad (`AI_COLLAB_PAD_RESTART_TOKENS`, `spawn_agent` `padRestart: false` per session) |
|
|
70
|
+
| [Code mode](docs/code-mode.md) | Native code mode and `run_code` for AI Collab reads, required for new sessions launched by tags |
|
|
71
|
+
| [Architecture diagrams](docs/architecture-diagrams.md) | What is off-the-shelf, what is home-grown, and where the network boundaries are |
|
|
72
|
+
| [Security model](https://bcmyguest.github.io/temmo/security/) | What is sent and what is trusted |
|
|
73
|
+
| [Troubleshooting](https://bcmyguest.github.io/temmo/troubleshooting/) | Known limits and fixes |
|
|
74
|
+
| [Development](https://bcmyguest.github.io/temmo/development/) | Tests, CI, releases, the demo, `npm run land` for maintainers |
|
|
75
|
+
| [AG-UI design](docs/ag-ui.md) | Event protocol and migration |
|
|
76
|
+
|
|
77
|
+
The docs source is [`docs/`](docs/); [`site/`](site/) builds it.
|
|
78
|
+
|
|
79
|
+
The phone UI uses React and Next.js. New UI SDK components use TypeScript, starting with the outcome request form. The project includes the `ui-sdk` skill and package-version docs under `node_modules/@ui-sdk/react/docs/`.
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
[Apache License 2.0](LICENSE).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Third-party notices
|
|
2
|
+
|
|
3
|
+
temmo includes code reimplemented from t3code (https://github.com/pingdotgg/t3code),
|
|
4
|
+
commit 452d8f0:
|
|
5
|
+
|
|
6
|
+
- lib/acp/sessionConfig.ts, from packages/provider-acp/src/server/sessionConfig.ts
|
|
7
|
+
- lib/acp/permission.ts, from packages/provider-acp/src/server/adapter.ts
|
|
8
|
+
(selectPermissionOptionId) and packages/provider-acp/src/server/elicitationForm.ts
|
|
9
|
+
|
|
10
|
+
t3code is distributed under the MIT License:
|
|
11
|
+
|
|
12
|
+
MIT License
|
|
13
|
+
|
|
14
|
+
Copyright (c) 2026 T3 Tools Inc.
|
|
15
|
+
|
|
16
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
17
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
18
|
+
in the Software without restriction, including without limitation the rights
|
|
19
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
20
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
21
|
+
furnished to do so, subject to the following conditions:
|
|
22
|
+
|
|
23
|
+
The above copyright notice and this permission notice shall be included in all
|
|
24
|
+
copies or substantial portions of the Software.
|
|
25
|
+
|
|
26
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
27
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
28
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
29
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
30
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
31
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
32
|
+
SOFTWARE.
|
package/commands/afk.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: afk
|
|
3
|
+
description: Set the Temmo operator AFK mode (on, off, quiet) for every running agent in every project.
|
|
4
|
+
argument-hint: on|off|quiet
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
allowed-tools: Bash(node:*)
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Set the operator AFK mode to `$ARGUMENTS`.
|
|
10
|
+
|
|
11
|
+
1. Accept only `on`, `off`, or `quiet` (no argument: show the current mode). Stop and ask for anything else.
|
|
12
|
+
2. Run exactly one command: `node "${CLAUDE_PLUGIN_ROOT}/scripts/temmo.mjs" afk $ARGUMENTS`.
|
|
13
|
+
If `${CLAUDE_PLUGIN_ROOT}` was not replaced with a path, run `scripts/temmo afk $ARGUMENTS` from the temmo plugin directory (Cursor: `${CURSOR_PLUGIN_ROOT}`).
|
|
14
|
+
3. Report the command's output in one line. Do not message any agent.
|
|
15
|
+
|
|
16
|
+
Modes: `on` means the operator is away: agents post milestone progress, ask on the phone, and wait at Stop for operator messages.
|
|
17
|
+
`off` means the operator is present (the default). `quiet` means only context alerts and blocking questions.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { homedir } from "node:os";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
|
|
7
|
+
const root = fileURLToPath(new URL("..", import.meta.url));
|
|
8
|
+
|
|
9
|
+
// The UI unit: temmo-ui, or ai-collab-ui until setup has replaced it (lib/names.ts installedServices; this script
|
|
10
|
+
// is copied alone into release trees, so it does not import lib/).
|
|
11
|
+
function uiUnit() {
|
|
12
|
+
const dir = path.join(process.env.XDG_CONFIG_HOME || path.join(process.env.HOME || homedir(), ".config"), "systemd", "user");
|
|
13
|
+
return !existsSync(path.join(dir, "temmo-ui.service")) && existsSync(path.join(dir, "ai-collab-ui.service")) ? "ai-collab-ui.service" : "temmo-ui.service";
|
|
14
|
+
}
|
|
15
|
+
const web = path.join(root, "web");
|
|
16
|
+
const next = path.join(root, "node_modules", "next", "dist", "bin", "next");
|
|
17
|
+
|
|
18
|
+
// Use this option from the checkout served by the temmo-ui user unit.
|
|
19
|
+
const options = process.argv.slice(2);
|
|
20
|
+
const deployAndVerify = options.includes("--deploy-and-verify");
|
|
21
|
+
const args = [next, "build", web, ...options.filter(arg => arg !== "--deploy-and-verify")];
|
|
22
|
+
|
|
23
|
+
if (process.env.TEMMO_NEXT_DIST) {
|
|
24
|
+
if (deployAndVerify) throw new Error("--deploy-and-verify requires publishing the default UI build");
|
|
25
|
+
const build = spawnSync(process.execPath, args, { stdio: "inherit" });
|
|
26
|
+
if (build.error) throw build.error;
|
|
27
|
+
process.exit(build.status ?? 1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const builds = path.join(web, ".next-builds");
|
|
31
|
+
mkdirSync(builds, { recursive: true });
|
|
32
|
+
const output = mkdtempSync(path.join(builds, "build-"));
|
|
33
|
+
const distDir = path.relative(web, output);
|
|
34
|
+
let published = false;
|
|
35
|
+
try {
|
|
36
|
+
const build = spawnSync(process.execPath, args, {
|
|
37
|
+
stdio: "inherit",
|
|
38
|
+
env: { ...process.env, TEMMO_NEXT_DIST: distDir },
|
|
39
|
+
});
|
|
40
|
+
if (build.error) throw build.error;
|
|
41
|
+
process.exitCode = build.status ?? 1;
|
|
42
|
+
if (process.exitCode === 0) {
|
|
43
|
+
if (!readFileSync(path.join(output, "BUILD_ID"), "utf8").trim()) throw new Error("Next.js produced an empty BUILD_ID");
|
|
44
|
+
const pointer = path.join(output, "current.tmp");
|
|
45
|
+
writeFileSync(pointer, path.basename(output) + "\n");
|
|
46
|
+
renameSync(pointer, path.join(builds, "current"));
|
|
47
|
+
published = true;
|
|
48
|
+
}
|
|
49
|
+
} finally {
|
|
50
|
+
if (!published) rmSync(output, { recursive: true, force: true });
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (published && deployAndVerify) {
|
|
54
|
+
const restart = spawnSync("systemctl", ["--user", "restart", uiUnit()], {
|
|
55
|
+
stdio: "inherit",
|
|
56
|
+
});
|
|
57
|
+
if (restart.error) throw restart.error;
|
|
58
|
+
process.exitCode = restart.status ?? 1;
|
|
59
|
+
if (process.exitCode === 0) {
|
|
60
|
+
const verify = fileURLToPath(new URL("./verify-ui.mjs", import.meta.url));
|
|
61
|
+
const result = spawnSync(process.execPath, [verify], { stdio: "inherit" });
|
|
62
|
+
if (result.error) throw result.error;
|
|
63
|
+
process.exitCode = result.status ?? 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Claude Code auto mode trust
|
|
2
|
+
|
|
3
|
+
`auto-mode.json` holds the `autoMode.environment` list for the operator's `~/.claude/settings.json`. It names the
|
|
4
|
+
temmo checkout and its worktrees, the bcmyguest GitHub org, the OpenShell agent sandboxes, the local model
|
|
5
|
+
servers and the agent scratch directories as inside the trust boundary, so the classifier stops blocking routine
|
|
6
|
+
work there. Restarting the temmo units, pushing main and changing sandbox egress stay outside it.
|
|
7
|
+
|
|
8
|
+
Claude Code reads `autoMode` only from user settings, managed settings or `--settings`, never from a repo's
|
|
9
|
+
`.claude/settings.json` ([Where the classifier reads configuration](https://code.claude.com/docs/en/auto-mode-config)).
|
|
10
|
+
The operator applies it once, after reading it; the command backs up the old file first:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
f=~/.claude/settings.json; cp -p "$f" "$f.bak-$(date +%s)" && jq --slurpfile a deploy/claude/auto-mode.json '.autoMode.environment = $a[0].autoMode.environment' "$f" > "$f.new" && chmod 600 "$f.new" && mv "$f.new" "$f"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Check the result with `claude auto-mode config`.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"autoMode": {
|
|
3
|
+
"environment": [
|
|
4
|
+
"### Org-wide",
|
|
5
|
+
"**Organization**: None configured",
|
|
6
|
+
"**Cloud provider(s)**: None configured",
|
|
7
|
+
"**Repository visibility**: assume private unless the remote host and repo name indicate otherwise, or a visibility check in the transcript shows public",
|
|
8
|
+
"**Internal sharing / snippet hosting**: None configured — treat public paste/gist services as outside the trust boundary",
|
|
9
|
+
"**Secrets management**: None configured",
|
|
10
|
+
"**Default / protected branches**: None configured",
|
|
11
|
+
"**CI/CD deploy targets**: None configured",
|
|
12
|
+
"**Network posture**: None configured",
|
|
13
|
+
"**Source control**: the GitHub org bcmyguest, the user's own repos (temmo, personal-skills, oncebitten, wteam, template-*).",
|
|
14
|
+
"**Trusted internal domains**: None configured",
|
|
15
|
+
"**Trusted cloud buckets**: None configured",
|
|
16
|
+
"**Key internal services**: the temmo bus, UI and runner (loopback, systemd --user units); the Halogen model server on localhost:8731; lemonade on localhost:13305. Restarting the temmo units stays blocked (it kills running agents); Halogen start/stop is routine.",
|
|
17
|
+
"**Internal package registry**: None configured",
|
|
18
|
+
"**Sensitive data locations & audiences**: any file or store holding personal data, confidential business data, credentials, regulated data, or similarly sensitive material; preserve exact handles when known and share only with audiences cleared at the [named+specifics] bar",
|
|
19
|
+
"**Data retention / declassification**: None configured",
|
|
20
|
+
"**Sensitive remote targets**: any namespace, host, or container whose name carries `prod` or `production` as a whole word or name segment (hyphen/underscore/dot-delimited — e.g. matches `prod-db`, not `producer`)",
|
|
21
|
+
"**Protected deployment namespaces / environments**: None configured — fall back to the Sensitive remote targets heuristic",
|
|
22
|
+
"**Protected IaC scopes**: IAM, RBAC, networking, quota, and node-pool resources; anything whose name or tag carries `prod` or `production` as a whole word or name segment",
|
|
23
|
+
"### User-specific",
|
|
24
|
+
"**Primary use of Claude Code**: software development",
|
|
25
|
+
"**Trusted repo**: /home/b/ai-collab and its git worktrees (~/ai-collab-wt-*, ~/ai-collab/.claude/worktrees/*), remote github.com/bcmyguest/temmo. Pushing a non-main branch there and opening a PR is routine; only the operator pushes main.",
|
|
26
|
+
"**Org-specific CLIs**: None configured",
|
|
27
|
+
"**Agent sandboxes**: OpenShell sandboxes named aic-* or temmo-* are the agents' own isolated workspaces. `openshell sandbox exec|upload|download|start|stop|list` on them is local work inside the trust boundary. Changing their network policy or egress hosts is not: the operator does that.",
|
|
28
|
+
"**Scratch space**: /tmp/h2v2, /tmp/fh, /tmp/dbg and $CLAUDE_JOB_DIR are agent scratch directories inside project scope."
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Local Postgres for the DBOS workflow engine (workflowEngine: "dbos"). Loopback only; the data
|
|
2
|
+
# directory and password live under the user's own paths, so no root and no exposed port are needed.
|
|
3
|
+
# Setup: npm run postgres:setup (creates the password file and starts the container).
|
|
4
|
+
name: ai-collab-postgres
|
|
5
|
+
services:
|
|
6
|
+
postgres:
|
|
7
|
+
image: postgres:17
|
|
8
|
+
restart: unless-stopped
|
|
9
|
+
ports:
|
|
10
|
+
- "127.0.0.1:5432:5432"
|
|
11
|
+
environment:
|
|
12
|
+
POSTGRES_USER: ai_collab
|
|
13
|
+
POSTGRES_DB: ai_collab
|
|
14
|
+
POSTGRES_PASSWORD_FILE: /run/secrets/pg-password
|
|
15
|
+
secrets:
|
|
16
|
+
- pg-password
|
|
17
|
+
volumes:
|
|
18
|
+
- ${TEMMO_PG_DATA:-$HOME/.local/state/temmo/postgres}:/var/lib/postgresql/data
|
|
19
|
+
healthcheck:
|
|
20
|
+
test: ["CMD-SHELL", "pg_isready -U ai_collab -d ai_collab"]
|
|
21
|
+
interval: 5s
|
|
22
|
+
timeout: 3s
|
|
23
|
+
retries: 12
|
|
24
|
+
secrets:
|
|
25
|
+
pg-password:
|
|
26
|
+
file: ${TEMMO_PG_PASSWORD_FILE:-${XDG_CONFIG_HOME:-$HOME/.config}/temmo/pg-password}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Owned-session runner (docs/owned-sessions-contract.md); copy to ~/.config/systemd/user/ and set the node path.
|
|
2
|
+
[Unit]
|
|
3
|
+
Description=Temmo owned-session runner
|
|
4
|
+
After=network-online.target
|
|
5
|
+
|
|
6
|
+
[Service]
|
|
7
|
+
Type=simple
|
|
8
|
+
WorkingDirectory=%h/ai-collab
|
|
9
|
+
Environment=NODE_ENV=production
|
|
10
|
+
# Harness CLIs (codex, claude, cursor-agent, opencode) must be on this PATH.
|
|
11
|
+
Environment=PATH=%h/.local/bin:%h/.local/share/mise/shims:/usr/local/bin:/usr/bin:/bin
|
|
12
|
+
# Replace with the output of `command -v node` (Node 22.13 or later, for node:sqlite).
|
|
13
|
+
# Node 22.18 or later: runs the .ts modules through type stripping.
|
|
14
|
+
ExecStart=/usr/bin/node %h/ai-collab/runner/main.mjs
|
|
15
|
+
Restart=on-failure
|
|
16
|
+
RestartSec=2
|
|
17
|
+
# Adapter children live in this unit's cgroup, so a UI restart never touches them; runner stops cut transcript runs.
|
|
18
|
+
KillMode=control-group
|
|
19
|
+
KillSignal=SIGTERM
|
|
20
|
+
TimeoutStopSec=15
|
|
21
|
+
UMask=0077
|
|
22
|
+
|
|
23
|
+
[Install]
|
|
24
|
+
WantedBy=default.target
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Run after the UI service has been activated. Pass its URL as the first argument,
|
|
2
|
+
// or set TEMMO_UI_VERIFY_URL. The default targets the local operator service.
|
|
3
|
+
// The smoke opens Home and the decision inbox, then returns Home without acting on decisions.
|
|
4
|
+
import { spawnSync } from "node:child_process";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
|
|
7
|
+
const url = process.argv[2] || process.env.TEMMO_UI_VERIFY_URL
|
|
8
|
+
|| `http://127.0.0.1:${process.env.TEMMO_UI_PORT || 8795}/`;
|
|
9
|
+
const smoke = fileURLToPath(new URL("../tools/smoke-ui.mjs", import.meta.url));
|
|
10
|
+
const result = spawnSync(process.execPath, [smoke, url, "--operator-workflow"], {
|
|
11
|
+
stdio: "inherit",
|
|
12
|
+
timeout: 90_000,
|
|
13
|
+
});
|
|
14
|
+
if (result.error) throw result.error;
|
|
15
|
+
process.exitCode = result.status ?? 1;
|