claude-code-swarm 0.0.1 → 0.3.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/.claude-plugin/marketplace.json +15 -0
- package/.claude-plugin/plugin.json +8 -0
- package/CLAUDE.md +266 -0
- package/README.md +108 -1
- package/docs/design.md +1181 -0
- package/docs/implementation-plan.md +635 -0
- package/e2e/helpers/assertions.mjs +162 -0
- package/e2e/helpers/cleanup.mjs +48 -0
- package/e2e/helpers/cli.mjs +327 -0
- package/e2e/helpers/map-mock-server.mjs +121 -0
- package/e2e/helpers/workspace.mjs +72 -0
- package/e2e/tier1-hooks.test.mjs +176 -0
- package/e2e/tier2-skill.test.mjs +146 -0
- package/e2e/tier3-coordination.test.mjs +88 -0
- package/e2e/tier4-map.test.mjs +203 -0
- package/e2e/vitest.config.e2e.mjs +19 -0
- package/hooks/hooks.json +107 -0
- package/package.json +45 -14
- package/plan.md +214 -0
- package/references/multi-agent-protocol/.sudocode/issues.jsonl +120 -0
- package/references/multi-agent-protocol/.sudocode/specs.jsonl +15 -0
- package/references/multi-agent-protocol/LICENSE +21 -0
- package/references/multi-agent-protocol/README.md +113 -0
- package/references/multi-agent-protocol/docs/00-design-specification.md +496 -0
- package/references/multi-agent-protocol/docs/01-open-questions.md +1050 -0
- package/references/multi-agent-protocol/docs/02-wire-protocol.md +296 -0
- package/references/multi-agent-protocol/docs/03-streaming-semantics.md +252 -0
- package/references/multi-agent-protocol/docs/04-error-handling.md +231 -0
- package/references/multi-agent-protocol/docs/05-connection-model.md +244 -0
- package/references/multi-agent-protocol/docs/06-visibility-permissions.md +243 -0
- package/references/multi-agent-protocol/docs/07-federation.md +335 -0
- package/references/multi-agent-protocol/docs/08-macro-agent-migration.md +253 -0
- package/references/multi-agent-protocol/docs/09-authentication.md +748 -0
- package/references/multi-agent-protocol/docs/10-environment-awareness.md +242 -0
- package/references/multi-agent-protocol/docs/10-mail-protocol.md +553 -0
- package/references/multi-agent-protocol/docs/11-anp-inspired-improvements.md +1079 -0
- package/references/multi-agent-protocol/docs/11-trajectory-protocol.md +292 -0
- package/references/multi-agent-protocol/docs/12-anp-implementation-plan.md +641 -0
- package/references/multi-agent-protocol/docs/agent-iam-integration.md +877 -0
- package/references/multi-agent-protocol/docs/agentic-mesh-integration-draft.md +459 -0
- package/references/multi-agent-protocol/docs/git-transport-draft.md +251 -0
- package/references/multi-agent-protocol/docs-site/Gemfile +22 -0
- package/references/multi-agent-protocol/docs-site/README.md +82 -0
- package/references/multi-agent-protocol/docs-site/_config.yml +91 -0
- package/references/multi-agent-protocol/docs-site/_includes/head_custom.html +20 -0
- package/references/multi-agent-protocol/docs-site/_sass/color_schemes/map.scss +42 -0
- package/references/multi-agent-protocol/docs-site/_sass/custom/custom.scss +34 -0
- package/references/multi-agent-protocol/docs-site/examples/full-integration.md +510 -0
- package/references/multi-agent-protocol/docs-site/examples/index.md +138 -0
- package/references/multi-agent-protocol/docs-site/examples/simple-chat.md +282 -0
- package/references/multi-agent-protocol/docs-site/examples/task-queue.md +399 -0
- package/references/multi-agent-protocol/docs-site/getting-started/index.md +98 -0
- package/references/multi-agent-protocol/docs-site/getting-started/installation.md +219 -0
- package/references/multi-agent-protocol/docs-site/getting-started/overview.md +172 -0
- package/references/multi-agent-protocol/docs-site/getting-started/quickstart.md +237 -0
- package/references/multi-agent-protocol/docs-site/index.md +136 -0
- package/references/multi-agent-protocol/docs-site/protocol/authentication.md +391 -0
- package/references/multi-agent-protocol/docs-site/protocol/connection-model.md +376 -0
- package/references/multi-agent-protocol/docs-site/protocol/design.md +284 -0
- package/references/multi-agent-protocol/docs-site/protocol/error-handling.md +312 -0
- package/references/multi-agent-protocol/docs-site/protocol/federation.md +449 -0
- package/references/multi-agent-protocol/docs-site/protocol/index.md +129 -0
- package/references/multi-agent-protocol/docs-site/protocol/permissions.md +398 -0
- package/references/multi-agent-protocol/docs-site/protocol/streaming.md +353 -0
- package/references/multi-agent-protocol/docs-site/protocol/wire-protocol.md +369 -0
- package/references/multi-agent-protocol/docs-site/sdk/api/agent.md +357 -0
- package/references/multi-agent-protocol/docs-site/sdk/api/client.md +380 -0
- package/references/multi-agent-protocol/docs-site/sdk/api/index.md +62 -0
- package/references/multi-agent-protocol/docs-site/sdk/api/server.md +453 -0
- package/references/multi-agent-protocol/docs-site/sdk/api/types.md +468 -0
- package/references/multi-agent-protocol/docs-site/sdk/guides/agent.md +375 -0
- package/references/multi-agent-protocol/docs-site/sdk/guides/authentication.md +405 -0
- package/references/multi-agent-protocol/docs-site/sdk/guides/client.md +352 -0
- package/references/multi-agent-protocol/docs-site/sdk/guides/index.md +89 -0
- package/references/multi-agent-protocol/docs-site/sdk/guides/server.md +360 -0
- package/references/multi-agent-protocol/docs-site/sdk/guides/testing.md +446 -0
- package/references/multi-agent-protocol/docs-site/sdk/guides/transports.md +363 -0
- package/references/multi-agent-protocol/docs-site/sdk/index.md +206 -0
- package/references/multi-agent-protocol/package-lock.json +4230 -0
- package/references/multi-agent-protocol/package.json +56 -0
- package/references/multi-agent-protocol/schema/meta.json +584 -0
- package/references/multi-agent-protocol/schema/schema.json +3067 -0
- package/references/openhive/.claude/settings.json +6 -0
- package/references/openhive/.dockerignore +54 -0
- package/references/openhive/.github/workflows/docker.yml +52 -0
- package/references/openhive/.sudocode/issues.jsonl +24 -0
- package/references/openhive/.sudocode/specs.jsonl +4 -0
- package/references/openhive/CLAUDE.md +88 -0
- package/references/openhive/Dockerfile +105 -0
- package/references/openhive/README.md +745 -0
- package/references/openhive/bin/openhive.js +6 -0
- package/references/openhive/cloudbuild.yaml +80 -0
- package/references/openhive/deploy/cloud-run.sh +106 -0
- package/references/openhive/deploy/openhive.env.example +80 -0
- package/references/openhive/deploy/openhive.service +91 -0
- package/references/openhive/docker-compose.yml +67 -0
- package/references/openhive/docker-entrypoint.sh +117 -0
- package/references/openhive/docs/API_MIGRATION.md +176 -0
- package/references/openhive/docs/DEPLOYMENT.md +847 -0
- package/references/openhive/docs/DESIGN_v1.md +489 -0
- package/references/openhive/docs/DESIGN_v2.md +564 -0
- package/references/openhive/docs/HEADSCALE_HOSTING_SPEC.md +513 -0
- package/references/openhive/docs/HIVE_SYNC_DESIGN.md +2362 -0
- package/references/openhive/docs/HIVE_SYNC_IMPLEMENTATION_PLAN.md +1169 -0
- package/references/openhive/docs/HOSTING.md +601 -0
- package/references/openhive/docs/IMPLEMENTATION_PLAN.md +428 -0
- package/references/openhive/docs/LOCAL_SETUP.md +506 -0
- package/references/openhive/docs/MACRO_AGENT_ATLAS_EXTENSION.md +351 -0
- package/references/openhive/docs/MEMORY_BANK_SYNC_SPEC.md +909 -0
- package/references/openhive/docs/PLAN_v1.md +471 -0
- package/references/openhive/docs/PLAN_v2.md +623 -0
- package/references/openhive/docs/WEBSOCKET.md +267 -0
- package/references/openhive/docs/openswarm-bootstrap-token-spec.md +240 -0
- package/references/openhive/ecosystem.config.cjs +76 -0
- package/references/openhive/fly.toml +63 -0
- package/references/openhive/package-lock.json +17640 -0
- package/references/openhive/package.json +128 -0
- package/references/openhive/packages/openhive-types/package-lock.json +1473 -0
- package/references/openhive/packages/openhive-types/package.json +42 -0
- package/references/openhive/packages/openhive-types/src/index.ts +36 -0
- package/references/openhive/packages/openhive-types/src/map-coordination.ts +92 -0
- package/references/openhive/packages/openhive-types/src/map-session-sync.ts +50 -0
- package/references/openhive/packages/openhive-types/src/map-sync.ts +68 -0
- package/references/openhive/packages/openhive-types/tsconfig.json +15 -0
- package/references/openhive/packages/openhive-types/tsconfig.tsbuildinfo +1 -0
- package/references/openhive/packages/openhive-types/tsup.config.ts +12 -0
- package/references/openhive/railway.json +13 -0
- package/references/openhive/railway.toml +24 -0
- package/references/openhive/render.yaml +51 -0
- package/references/openhive/src/__tests__/auth.test.ts +148 -0
- package/references/openhive/src/__tests__/bridge/credentials.test.ts +65 -0
- package/references/openhive/src/__tests__/bridge/dal.test.ts +279 -0
- package/references/openhive/src/__tests__/bridge/inbound.test.ts +349 -0
- package/references/openhive/src/__tests__/bridge/manager.test.ts +419 -0
- package/references/openhive/src/__tests__/bridge/mentions.test.ts +83 -0
- package/references/openhive/src/__tests__/bridge/outbound.test.ts +209 -0
- package/references/openhive/src/__tests__/bridge/slack-adapter.test.ts +276 -0
- package/references/openhive/src/__tests__/cli.test.ts +342 -0
- package/references/openhive/src/__tests__/config.test.ts +205 -0
- package/references/openhive/src/__tests__/coordination/coordination.test.ts +1072 -0
- package/references/openhive/src/__tests__/coordination/cross-instance.test.ts +540 -0
- package/references/openhive/src/__tests__/coordination/e2e.test.ts +780 -0
- package/references/openhive/src/__tests__/data-dir.test.ts +332 -0
- package/references/openhive/src/__tests__/db.test.ts +258 -0
- package/references/openhive/src/__tests__/discovery.test.ts +288 -0
- package/references/openhive/src/__tests__/events/dal.test.ts +371 -0
- package/references/openhive/src/__tests__/events/dispatch.test.ts +202 -0
- package/references/openhive/src/__tests__/events/e2e.test.ts +528 -0
- package/references/openhive/src/__tests__/events/normalizers.test.ts +263 -0
- package/references/openhive/src/__tests__/events/router.test.ts +314 -0
- package/references/openhive/src/__tests__/events/routes.test.ts +407 -0
- package/references/openhive/src/__tests__/follows.test.ts +328 -0
- package/references/openhive/src/__tests__/helpers/test-dirs.ts +44 -0
- package/references/openhive/src/__tests__/ingest-keys.test.ts +925 -0
- package/references/openhive/src/__tests__/map/sync-client-content.test.ts +288 -0
- package/references/openhive/src/__tests__/map/sync-client.test.ts +500 -0
- package/references/openhive/src/__tests__/map/sync-listener.test.ts +504 -0
- package/references/openhive/src/__tests__/middleware/hostname-guard.test.ts +73 -0
- package/references/openhive/src/__tests__/migrations.test.ts +260 -0
- package/references/openhive/src/__tests__/opentasks/client.test.ts +497 -0
- package/references/openhive/src/__tests__/opentasks/discovery.test.ts +283 -0
- package/references/openhive/src/__tests__/opentasks/e2e.test.ts +767 -0
- package/references/openhive/src/__tests__/routes/agents.test.ts +417 -0
- package/references/openhive/src/__tests__/routes/opentasks-content.test.ts +493 -0
- package/references/openhive/src/__tests__/routes/resource-content.test.ts +1741 -0
- package/references/openhive/src/__tests__/sessions/adapters.test.ts +524 -0
- package/references/openhive/src/__tests__/sessions/routes.test.ts +1053 -0
- package/references/openhive/src/__tests__/sessions/storage.test.ts +545 -0
- package/references/openhive/src/__tests__/sessions/trajectory-checkpoints.test.ts +349 -0
- package/references/openhive/src/__tests__/sessions/trajectory-routes.test.ts +290 -0
- package/references/openhive/src/__tests__/swarm/config.test.ts +125 -0
- package/references/openhive/src/__tests__/swarm/credentials.test.ts +254 -0
- package/references/openhive/src/__tests__/swarm/dal.test.ts +290 -0
- package/references/openhive/src/__tests__/swarm/e2e.test.ts +827 -0
- package/references/openhive/src/__tests__/swarm/fixtures/exit-immediately.js +3 -0
- package/references/openhive/src/__tests__/swarm/fixtures/map-server.js +147 -0
- package/references/openhive/src/__tests__/swarm/fixtures/sleep-server.js +52 -0
- package/references/openhive/src/__tests__/swarm/local-provider.test.ts +279 -0
- package/references/openhive/src/__tests__/swarm/manager.test.ts +305 -0
- package/references/openhive/src/__tests__/swarm/routes.test.ts +396 -0
- package/references/openhive/src/__tests__/swarm/workspace.test.ts +257 -0
- package/references/openhive/src/__tests__/swarmhub/client.test.ts +324 -0
- package/references/openhive/src/__tests__/swarmhub/config.test.ts +213 -0
- package/references/openhive/src/__tests__/swarmhub/connector.test.ts +581 -0
- package/references/openhive/src/__tests__/swarmhub/routes.test.ts +639 -0
- package/references/openhive/src/__tests__/swarmhub/slack-client.test.ts +164 -0
- package/references/openhive/src/__tests__/swarmhub/slack-connector.test.ts +164 -0
- package/references/openhive/src/__tests__/swarmhub/slack-routes.test.ts +373 -0
- package/references/openhive/src/__tests__/swarmhub/webhook-handler.test.ts +295 -0
- package/references/openhive/src/__tests__/sync/resource-sync.test.ts +1418 -0
- package/references/openhive/src/__tests__/sync/sync.test.ts +800 -0
- package/references/openhive/src/api/index.ts +65 -0
- package/references/openhive/src/api/middleware/auth.ts +227 -0
- package/references/openhive/src/api/middleware/hostname-guard.ts +38 -0
- package/references/openhive/src/api/routes/admin.ts +366 -0
- package/references/openhive/src/api/routes/agents.ts +223 -0
- package/references/openhive/src/api/routes/auth.ts +164 -0
- package/references/openhive/src/api/routes/bridges.ts +384 -0
- package/references/openhive/src/api/routes/comments.ts +294 -0
- package/references/openhive/src/api/routes/coordination.ts +312 -0
- package/references/openhive/src/api/routes/events.ts +158 -0
- package/references/openhive/src/api/routes/federation.ts +367 -0
- package/references/openhive/src/api/routes/feed.ts +212 -0
- package/references/openhive/src/api/routes/hives.ts +264 -0
- package/references/openhive/src/api/routes/map.ts +674 -0
- package/references/openhive/src/api/routes/memory-banks.ts +971 -0
- package/references/openhive/src/api/routes/posts.ts +342 -0
- package/references/openhive/src/api/routes/resource-content.ts +727 -0
- package/references/openhive/src/api/routes/resources.ts +1013 -0
- package/references/openhive/src/api/routes/search.ts +45 -0
- package/references/openhive/src/api/routes/sessions.ts +1187 -0
- package/references/openhive/src/api/routes/swarm-hosting.ts +313 -0
- package/references/openhive/src/api/routes/sync-protocol.ts +168 -0
- package/references/openhive/src/api/routes/sync.ts +279 -0
- package/references/openhive/src/api/routes/uploads.ts +174 -0
- package/references/openhive/src/api/routes/webhooks.ts +603 -0
- package/references/openhive/src/api/schemas/agents.ts +26 -0
- package/references/openhive/src/api/schemas/comments.ts +22 -0
- package/references/openhive/src/api/schemas/hives.ts +33 -0
- package/references/openhive/src/api/schemas/posts.ts +37 -0
- package/references/openhive/src/api/schemas/sync.ts +56 -0
- package/references/openhive/src/auth/index.ts +2 -0
- package/references/openhive/src/auth/jwks.ts +58 -0
- package/references/openhive/src/bridge/adapters/slack.ts +306 -0
- package/references/openhive/src/bridge/credentials.ts +72 -0
- package/references/openhive/src/bridge/inbound.ts +288 -0
- package/references/openhive/src/bridge/index.ts +42 -0
- package/references/openhive/src/bridge/manager.ts +425 -0
- package/references/openhive/src/bridge/mentions.ts +42 -0
- package/references/openhive/src/bridge/outbound.ts +103 -0
- package/references/openhive/src/bridge/schema.ts +82 -0
- package/references/openhive/src/bridge/types.ts +238 -0
- package/references/openhive/src/cli/network.ts +480 -0
- package/references/openhive/src/cli.ts +620 -0
- package/references/openhive/src/config.ts +611 -0
- package/references/openhive/src/coordination/index.ts +43 -0
- package/references/openhive/src/coordination/listener.ts +92 -0
- package/references/openhive/src/coordination/schema.ts +79 -0
- package/references/openhive/src/coordination/service.ts +233 -0
- package/references/openhive/src/coordination/types.ts +177 -0
- package/references/openhive/src/data-dir.ts +105 -0
- package/references/openhive/src/db/adapters/index.ts +21 -0
- package/references/openhive/src/db/adapters/postgres.ts +310 -0
- package/references/openhive/src/db/adapters/sqlite.ts +56 -0
- package/references/openhive/src/db/adapters/types.ts +65 -0
- package/references/openhive/src/db/dal/agents.ts +430 -0
- package/references/openhive/src/db/dal/bridge.ts +336 -0
- package/references/openhive/src/db/dal/comments.ts +213 -0
- package/references/openhive/src/db/dal/coordination.ts +361 -0
- package/references/openhive/src/db/dal/events.ts +381 -0
- package/references/openhive/src/db/dal/follows.ts +96 -0
- package/references/openhive/src/db/dal/hives.ts +198 -0
- package/references/openhive/src/db/dal/ingest-keys.ts +176 -0
- package/references/openhive/src/db/dal/instances.ts +196 -0
- package/references/openhive/src/db/dal/invites.ts +123 -0
- package/references/openhive/src/db/dal/map.ts +750 -0
- package/references/openhive/src/db/dal/posts.ts +274 -0
- package/references/openhive/src/db/dal/remote-agents.ts +56 -0
- package/references/openhive/src/db/dal/search.ts +238 -0
- package/references/openhive/src/db/dal/sync-events.ts +160 -0
- package/references/openhive/src/db/dal/sync-groups.ts +100 -0
- package/references/openhive/src/db/dal/sync-peer-configs.ts +216 -0
- package/references/openhive/src/db/dal/sync-peers.ts +145 -0
- package/references/openhive/src/db/dal/syncable-resources.ts +888 -0
- package/references/openhive/src/db/dal/trajectory-checkpoints.ts +291 -0
- package/references/openhive/src/db/dal/uploads.ts +124 -0
- package/references/openhive/src/db/dal/votes.ts +124 -0
- package/references/openhive/src/db/index.ts +293 -0
- package/references/openhive/src/db/providers/index.ts +75 -0
- package/references/openhive/src/db/providers/postgres.ts +529 -0
- package/references/openhive/src/db/providers/sqlite.ts +1383 -0
- package/references/openhive/src/db/providers/turso.ts +1360 -0
- package/references/openhive/src/db/providers/types.ts +516 -0
- package/references/openhive/src/db/schema.ts +641 -0
- package/references/openhive/src/discovery/index.ts +403 -0
- package/references/openhive/src/events/dispatch.ts +106 -0
- package/references/openhive/src/events/index.ts +17 -0
- package/references/openhive/src/events/normalizers/github.ts +133 -0
- package/references/openhive/src/events/normalizers/index.ts +62 -0
- package/references/openhive/src/events/normalizers/slack.ts +50 -0
- package/references/openhive/src/events/router.ts +156 -0
- package/references/openhive/src/events/schema.ts +66 -0
- package/references/openhive/src/events/types.ts +130 -0
- package/references/openhive/src/federation/index.ts +1 -0
- package/references/openhive/src/federation/service.ts +776 -0
- package/references/openhive/src/headscale/client.ts +256 -0
- package/references/openhive/src/headscale/config.ts +212 -0
- package/references/openhive/src/headscale/index.ts +23 -0
- package/references/openhive/src/headscale/manager.ts +249 -0
- package/references/openhive/src/headscale/sync.ts +272 -0
- package/references/openhive/src/headscale/types.ts +231 -0
- package/references/openhive/src/index.ts +225 -0
- package/references/openhive/src/map/client-entry.ts +26 -0
- package/references/openhive/src/map/index.ts +76 -0
- package/references/openhive/src/map/schema.ts +119 -0
- package/references/openhive/src/map/service.ts +323 -0
- package/references/openhive/src/map/sync-client.ts +696 -0
- package/references/openhive/src/map/sync-listener.ts +409 -0
- package/references/openhive/src/map/types.ts +290 -0
- package/references/openhive/src/network/factory.ts +118 -0
- package/references/openhive/src/network/headscale-provider.ts +437 -0
- package/references/openhive/src/network/index.ts +43 -0
- package/references/openhive/src/network/tailscale-client.ts +289 -0
- package/references/openhive/src/network/tailscale-provider.ts +287 -0
- package/references/openhive/src/network/types.ts +178 -0
- package/references/openhive/src/opentasks-client/client.ts +374 -0
- package/references/openhive/src/opentasks-client/index.ts +7 -0
- package/references/openhive/src/realtime/index.ts +282 -0
- package/references/openhive/src/server.ts +1069 -0
- package/references/openhive/src/services/email.ts +177 -0
- package/references/openhive/src/services/sitemap.ts +135 -0
- package/references/openhive/src/sessions/adapters/claude.ts +466 -0
- package/references/openhive/src/sessions/adapters/codex.ts +265 -0
- package/references/openhive/src/sessions/adapters/index.ts +263 -0
- package/references/openhive/src/sessions/adapters/raw.ts +144 -0
- package/references/openhive/src/sessions/adapters/types.ts +83 -0
- package/references/openhive/src/sessions/index.ts +50 -0
- package/references/openhive/src/sessions/storage/adapters/gcs.ts +277 -0
- package/references/openhive/src/sessions/storage/adapters/local.ts +240 -0
- package/references/openhive/src/sessions/storage/adapters/s3.ts +321 -0
- package/references/openhive/src/sessions/storage/index.ts +231 -0
- package/references/openhive/src/sessions/storage/types.ts +189 -0
- package/references/openhive/src/sessions/types.ts +415 -0
- package/references/openhive/src/shared/types/index.ts +45 -0
- package/references/openhive/src/shared/types/map-coordination.ts +92 -0
- package/references/openhive/src/shared/types/map-session-sync.ts +170 -0
- package/references/openhive/src/shared/types/map-sync.ts +68 -0
- package/references/openhive/src/skill.ts +203 -0
- package/references/openhive/src/storage/adapters/local.ts +169 -0
- package/references/openhive/src/storage/adapters/s3.ts +195 -0
- package/references/openhive/src/storage/index.ts +64 -0
- package/references/openhive/src/storage/types.ts +69 -0
- package/references/openhive/src/swarm/credentials.ts +98 -0
- package/references/openhive/src/swarm/dal.ts +206 -0
- package/references/openhive/src/swarm/index.ts +28 -0
- package/references/openhive/src/swarm/manager.ts +917 -0
- package/references/openhive/src/swarm/providers/local.ts +338 -0
- package/references/openhive/src/swarm/providers/sandboxed-local.ts +478 -0
- package/references/openhive/src/swarm/providers/workspace.ts +52 -0
- package/references/openhive/src/swarm/schema.ts +43 -0
- package/references/openhive/src/swarm/types.ts +333 -0
- package/references/openhive/src/swarmhub/client.ts +279 -0
- package/references/openhive/src/swarmhub/connector.ts +463 -0
- package/references/openhive/src/swarmhub/index.ts +43 -0
- package/references/openhive/src/swarmhub/routes.ts +296 -0
- package/references/openhive/src/swarmhub/types.ts +213 -0
- package/references/openhive/src/swarmhub/webhook-handler.ts +126 -0
- package/references/openhive/src/sync/compaction.ts +193 -0
- package/references/openhive/src/sync/coordination-hooks.ts +154 -0
- package/references/openhive/src/sync/crypto.ts +79 -0
- package/references/openhive/src/sync/gossip.ts +136 -0
- package/references/openhive/src/sync/hooks.ts +202 -0
- package/references/openhive/src/sync/materializer-repo.ts +256 -0
- package/references/openhive/src/sync/materializer.ts +682 -0
- package/references/openhive/src/sync/middleware.ts +140 -0
- package/references/openhive/src/sync/peer-resolver.ts +157 -0
- package/references/openhive/src/sync/resource-hooks.ts +161 -0
- package/references/openhive/src/sync/schema.ts +158 -0
- package/references/openhive/src/sync/service.ts +990 -0
- package/references/openhive/src/sync/types.ts +369 -0
- package/references/openhive/src/terminal/index.ts +4 -0
- package/references/openhive/src/terminal/pty-manager.ts +337 -0
- package/references/openhive/src/terminal/resolve-tui.ts +44 -0
- package/references/openhive/src/terminal/terminal-ws.ts +251 -0
- package/references/openhive/src/types.ts +442 -0
- package/references/openhive/src/utils/git-remote.ts +329 -0
- package/references/openhive/src/web/App.tsx +77 -0
- package/references/openhive/src/web/__tests__/components/dashboard/RecentActivity.test.tsx +77 -0
- package/references/openhive/src/web/__tests__/components/dashboard/StatsOverview.test.tsx +62 -0
- package/references/openhive/src/web/__tests__/components/dashboard/SwarmStatusSummary.test.tsx +122 -0
- package/references/openhive/src/web/__tests__/components/dashboard/SyncResourcesStatus.test.tsx +104 -0
- package/references/openhive/src/web/__tests__/components/layout/Sidebar.test.tsx +110 -0
- package/references/openhive/src/web/__tests__/components/swarm/StatusBadges.test.tsx +65 -0
- package/references/openhive/src/web/__tests__/components/terminal/query-responses.test.ts +143 -0
- package/references/openhive/src/web/__tests__/components/terminal/terminal-mouse.test.ts +509 -0
- package/references/openhive/src/web/__tests__/hooks/useEventsApi.test.ts +378 -0
- package/references/openhive/src/web/__tests__/pages/Dashboard.test.tsx +57 -0
- package/references/openhive/src/web/__tests__/pages/Events.test.tsx +886 -0
- package/references/openhive/src/web/__tests__/pages/Explore.test.tsx +63 -0
- package/references/openhive/src/web/__tests__/routing.test.tsx +79 -0
- package/references/openhive/src/web/__tests__/setup.ts +37 -0
- package/references/openhive/src/web/__tests__/stores/dashboard.test.ts +49 -0
- package/references/openhive/src/web/components/common/AgentBadge.tsx +58 -0
- package/references/openhive/src/web/components/common/Avatar.tsx +78 -0
- package/references/openhive/src/web/components/common/ErrorBoundary.tsx +76 -0
- package/references/openhive/src/web/components/common/Highlight.tsx +79 -0
- package/references/openhive/src/web/components/common/ImageUpload.tsx +209 -0
- package/references/openhive/src/web/components/common/LoadingSpinner.tsx +37 -0
- package/references/openhive/src/web/components/common/Logo.tsx +21 -0
- package/references/openhive/src/web/components/common/Markdown.tsx +53 -0
- package/references/openhive/src/web/components/common/ProtectedRoute.tsx +18 -0
- package/references/openhive/src/web/components/common/ThemeToggle.tsx +38 -0
- package/references/openhive/src/web/components/common/TimeAgo.tsx +17 -0
- package/references/openhive/src/web/components/common/Toast.tsx +70 -0
- package/references/openhive/src/web/components/common/VoteButtons.tsx +100 -0
- package/references/openhive/src/web/components/dashboard/RecentActivity.tsx +100 -0
- package/references/openhive/src/web/components/dashboard/StatsOverview.tsx +40 -0
- package/references/openhive/src/web/components/dashboard/SwarmStatusSummary.tsx +89 -0
- package/references/openhive/src/web/components/dashboard/SyncResourcesStatus.tsx +81 -0
- package/references/openhive/src/web/components/feed/FeedControls.tsx +38 -0
- package/references/openhive/src/web/components/feed/NewPostsIndicator.tsx +75 -0
- package/references/openhive/src/web/components/feed/PostCard.tsx +129 -0
- package/references/openhive/src/web/components/feed/PostList.tsx +83 -0
- package/references/openhive/src/web/components/layout/Footer.tsx +5 -0
- package/references/openhive/src/web/components/layout/Layout.tsx +29 -0
- package/references/openhive/src/web/components/layout/Sidebar.tsx +348 -0
- package/references/openhive/src/web/components/post/CommentForm.tsx +59 -0
- package/references/openhive/src/web/components/post/CommentTree.tsx +145 -0
- package/references/openhive/src/web/components/resources/MemoryBrowser.tsx +208 -0
- package/references/openhive/src/web/components/resources/OpenTasksSummary.tsx +138 -0
- package/references/openhive/src/web/components/resources/SkillBrowser.tsx +284 -0
- package/references/openhive/src/web/components/swarm/StatusBadges.tsx +56 -0
- package/references/openhive/src/web/components/terminal/TerminalPanel.tsx +485 -0
- package/references/openhive/src/web/components/terminal/index.ts +2 -0
- package/references/openhive/src/web/components/terminal/query-responses.ts +70 -0
- package/references/openhive/src/web/components/terminal/terminal-mouse.ts +222 -0
- package/references/openhive/src/web/hooks/useApi.ts +740 -0
- package/references/openhive/src/web/hooks/useDocumentTitle.ts +49 -0
- package/references/openhive/src/web/hooks/useInfiniteScroll.ts +58 -0
- package/references/openhive/src/web/hooks/useRealtimeUpdates.ts +154 -0
- package/references/openhive/src/web/hooks/useWebSocket.ts +225 -0
- package/references/openhive/src/web/index.html +73 -0
- package/references/openhive/src/web/lib/api.ts +518 -0
- package/references/openhive/src/web/main.tsx +32 -0
- package/references/openhive/src/web/pages/About.tsx +131 -0
- package/references/openhive/src/web/pages/Agent.tsx +130 -0
- package/references/openhive/src/web/pages/Agents.tsx +69 -0
- package/references/openhive/src/web/pages/AuthCallback.tsx +75 -0
- package/references/openhive/src/web/pages/Dashboard.tsx +41 -0
- package/references/openhive/src/web/pages/Events.tsx +1025 -0
- package/references/openhive/src/web/pages/Explore.tsx +43 -0
- package/references/openhive/src/web/pages/Hive.tsx +134 -0
- package/references/openhive/src/web/pages/Hives.tsx +64 -0
- package/references/openhive/src/web/pages/Home.tsx +43 -0
- package/references/openhive/src/web/pages/Login.tsx +122 -0
- package/references/openhive/src/web/pages/Post.tsx +216 -0
- package/references/openhive/src/web/pages/ResourceDetail.tsx +426 -0
- package/references/openhive/src/web/pages/Resources.tsx +276 -0
- package/references/openhive/src/web/pages/Search.tsx +234 -0
- package/references/openhive/src/web/pages/SessionDetail.tsx +703 -0
- package/references/openhive/src/web/pages/Sessions.tsx +129 -0
- package/references/openhive/src/web/pages/Settings.tsx +826 -0
- package/references/openhive/src/web/pages/SwarmCraft.tsx +16 -0
- package/references/openhive/src/web/pages/Swarms.tsx +981 -0
- package/references/openhive/src/web/pages/Terminal.tsx +69 -0
- package/references/openhive/src/web/postcss.config.js +5 -0
- package/references/openhive/src/web/public/favicon.svg +11 -0
- package/references/openhive/src/web/public/manifest.json +21 -0
- package/references/openhive/src/web/stores/auth.ts +207 -0
- package/references/openhive/src/web/stores/dashboard.ts +23 -0
- package/references/openhive/src/web/stores/realtime.ts +90 -0
- package/references/openhive/src/web/stores/theme.ts +70 -0
- package/references/openhive/src/web/stores/toast.ts +63 -0
- package/references/openhive/src/web/styles/globals.css +503 -0
- package/references/openhive/src/web/sw.ts +228 -0
- package/references/openhive/src/web/utils/serviceWorker.ts +86 -0
- package/references/openhive/src/web/vite.config.ts +81 -0
- package/references/openhive/tsconfig.json +32 -0
- package/references/openhive/tsup.config.ts +17 -0
- package/references/openhive/vitest.config.ts +30 -0
- package/references/openhive/vitest.web.config.ts +20 -0
- package/references/opentasks/.claude/settings.json +6 -0
- package/references/opentasks/.claude-plugin/plugin.json +20 -0
- package/references/opentasks/.lintstagedrc.json +4 -0
- package/references/opentasks/.prettierignore +4 -0
- package/references/opentasks/.prettierrc.json +11 -0
- package/references/opentasks/.sudocode/issues.jsonl +89 -0
- package/references/opentasks/.sudocode/specs.jsonl +24 -0
- package/references/opentasks/README.md +401 -0
- package/references/opentasks/docs/ARCHITECTURE.md +841 -0
- package/references/opentasks/docs/DESIGN.md +689 -0
- package/references/opentasks/docs/INTERFACE.md +670 -0
- package/references/opentasks/docs/PERSISTENCE.md +1638 -0
- package/references/opentasks/docs/PROVIDERS.md +1412 -0
- package/references/opentasks/docs/SCHEMA.md +815 -0
- package/references/opentasks/docs/TESTING.md +1081 -0
- package/references/opentasks/eslint.config.js +58 -0
- package/references/opentasks/package-lock.json +4348 -0
- package/references/opentasks/package.json +81 -0
- package/references/opentasks/skills/opentasks/SKILL.md +139 -0
- package/references/opentasks/skills/opentasks/dependency-management.md +119 -0
- package/references/opentasks/skills/opentasks/feedback-and-review.md +100 -0
- package/references/opentasks/skills/opentasks/linking-external-data.md +103 -0
- package/references/opentasks/skills/opentasks/spec-to-implementation.md +98 -0
- package/references/opentasks/src/__tests__/cli-tools.test.ts +800 -0
- package/references/opentasks/src/__tests__/cli.test.ts +97 -0
- package/references/opentasks/src/__tests__/p1-p3-gaps.test.ts +635 -0
- package/references/opentasks/src/cli.ts +929 -0
- package/references/opentasks/src/client/__tests__/client-crud.test.ts +546 -0
- package/references/opentasks/src/client/__tests__/client.test.ts +658 -0
- package/references/opentasks/src/client/__tests__/socket-discovery.test.ts +122 -0
- package/references/opentasks/src/client/client.ts +560 -0
- package/references/opentasks/src/client/index.ts +32 -0
- package/references/opentasks/src/config/__tests__/defaults.test.ts +66 -0
- package/references/opentasks/src/config/__tests__/env.test.ts +155 -0
- package/references/opentasks/src/config/__tests__/index.test.ts +148 -0
- package/references/opentasks/src/config/__tests__/loader.test.ts +173 -0
- package/references/opentasks/src/config/__tests__/merge.test.ts +121 -0
- package/references/opentasks/src/config/__tests__/schema.test.ts +446 -0
- package/references/opentasks/src/config/defaults.ts +18 -0
- package/references/opentasks/src/config/env.ts +170 -0
- package/references/opentasks/src/config/errors.ts +33 -0
- package/references/opentasks/src/config/index.ts +63 -0
- package/references/opentasks/src/config/loader.ts +90 -0
- package/references/opentasks/src/config/merge.ts +64 -0
- package/references/opentasks/src/config/schema.ts +767 -0
- package/references/opentasks/src/core/__tests__/conditional-redirects.test.ts +116 -0
- package/references/opentasks/src/core/__tests__/connections.test.ts +194 -0
- package/references/opentasks/src/core/__tests__/hash.test.ts +161 -0
- package/references/opentasks/src/core/__tests__/id.test.ts +175 -0
- package/references/opentasks/src/core/__tests__/init.test.ts +115 -0
- package/references/opentasks/src/core/__tests__/location.test.ts +94 -0
- package/references/opentasks/src/core/__tests__/merge-driver.test.ts +300 -0
- package/references/opentasks/src/core/__tests__/redirects.test.ts +169 -0
- package/references/opentasks/src/core/__tests__/resolve-location-target.test.ts +468 -0
- package/references/opentasks/src/core/__tests__/uri.test.ts +228 -0
- package/references/opentasks/src/core/__tests__/worktree.test.ts +160 -0
- package/references/opentasks/src/core/conditional-redirects.ts +100 -0
- package/references/opentasks/src/core/connections.ts +217 -0
- package/references/opentasks/src/core/discover.ts +195 -0
- package/references/opentasks/src/core/hash.ts +74 -0
- package/references/opentasks/src/core/id.ts +174 -0
- package/references/opentasks/src/core/index.ts +108 -0
- package/references/opentasks/src/core/init.ts +66 -0
- package/references/opentasks/src/core/location.ts +139 -0
- package/references/opentasks/src/core/merge-driver.ts +280 -0
- package/references/opentasks/src/core/redirects.ts +182 -0
- package/references/opentasks/src/core/uri.ts +270 -0
- package/references/opentasks/src/core/worktree.ts +504 -0
- package/references/opentasks/src/daemon/__tests__/e2e-live-agent.test.ts +344 -0
- package/references/opentasks/src/daemon/__tests__/e2e-session-pipeline.test.ts +447 -0
- package/references/opentasks/src/daemon/__tests__/e2e-watch.test.ts +279 -0
- package/references/opentasks/src/daemon/__tests__/entire-linker.test.ts +1074 -0
- package/references/opentasks/src/daemon/__tests__/entire-watcher.test.ts +659 -0
- package/references/opentasks/src/daemon/__tests__/flush.test.ts +306 -0
- package/references/opentasks/src/daemon/__tests__/integration.test.ts +338 -0
- package/references/opentasks/src/daemon/__tests__/ipc.test.ts +406 -0
- package/references/opentasks/src/daemon/__tests__/lifecycle.test.ts +378 -0
- package/references/opentasks/src/daemon/__tests__/lock.test.ts +240 -0
- package/references/opentasks/src/daemon/__tests__/methods/graph.test.ts +372 -0
- package/references/opentasks/src/daemon/__tests__/methods/provider.test.ts +238 -0
- package/references/opentasks/src/daemon/__tests__/methods/tools.test.ts +690 -0
- package/references/opentasks/src/daemon/__tests__/multi-location.test.ts +945 -0
- package/references/opentasks/src/daemon/__tests__/registry.test.ts +268 -0
- package/references/opentasks/src/daemon/__tests__/watcher.test.ts +329 -0
- package/references/opentasks/src/daemon/entire-linker.ts +615 -0
- package/references/opentasks/src/daemon/entire-watcher.ts +415 -0
- package/references/opentasks/src/daemon/factory.ts +133 -0
- package/references/opentasks/src/daemon/flush.ts +168 -0
- package/references/opentasks/src/daemon/index.ts +120 -0
- package/references/opentasks/src/daemon/ipc.ts +491 -0
- package/references/opentasks/src/daemon/lifecycle.ts +1106 -0
- package/references/opentasks/src/daemon/location-state.ts +481 -0
- package/references/opentasks/src/daemon/lock.ts +168 -0
- package/references/opentasks/src/daemon/methods/__tests__/graph.test.ts +359 -0
- package/references/opentasks/src/daemon/methods/__tests__/provider.test.ts +227 -0
- package/references/opentasks/src/daemon/methods/__tests__/tools.test.ts +360 -0
- package/references/opentasks/src/daemon/methods/__tests__/watch.test.ts +656 -0
- package/references/opentasks/src/daemon/methods/archive.ts +193 -0
- package/references/opentasks/src/daemon/methods/graph.ts +274 -0
- package/references/opentasks/src/daemon/methods/lifecycle.ts +112 -0
- package/references/opentasks/src/daemon/methods/location.ts +118 -0
- package/references/opentasks/src/daemon/methods/provider.ts +159 -0
- package/references/opentasks/src/daemon/methods/tools.ts +221 -0
- package/references/opentasks/src/daemon/methods/watch.ts +206 -0
- package/references/opentasks/src/daemon/registry.ts +244 -0
- package/references/opentasks/src/daemon/types.ts +163 -0
- package/references/opentasks/src/daemon/watcher.ts +248 -0
- package/references/opentasks/src/entire/__tests__/agent-registry.test.ts +127 -0
- package/references/opentasks/src/entire/__tests__/claude-generator.test.ts +49 -0
- package/references/opentasks/src/entire/__tests__/commit-msg.test.ts +89 -0
- package/references/opentasks/src/entire/__tests__/cursor-agent.test.ts +224 -0
- package/references/opentasks/src/entire/__tests__/flush-sentinel.test.ts +93 -0
- package/references/opentasks/src/entire/__tests__/gemini-agent.test.ts +375 -0
- package/references/opentasks/src/entire/__tests__/git-hooks.test.ts +85 -0
- package/references/opentasks/src/entire/__tests__/hook-managers.test.ts +128 -0
- package/references/opentasks/src/entire/__tests__/opencode-agent.test.ts +329 -0
- package/references/opentasks/src/entire/__tests__/redaction.test.ts +143 -0
- package/references/opentasks/src/entire/__tests__/session-store.test.ts +83 -0
- package/references/opentasks/src/entire/__tests__/summarize.test.ts +346 -0
- package/references/opentasks/src/entire/__tests__/transcript-timestamp.test.ts +127 -0
- package/references/opentasks/src/entire/__tests__/types.test.ts +112 -0
- package/references/opentasks/src/entire/__tests__/utils.test.ts +296 -0
- package/references/opentasks/src/entire/__tests__/validation.test.ts +103 -0
- package/references/opentasks/src/entire/__tests__/worktree.test.ts +66 -0
- package/references/opentasks/src/entire/agent/registry.ts +143 -0
- package/references/opentasks/src/entire/agent/session-types.ts +117 -0
- package/references/opentasks/src/entire/agent/types.ts +217 -0
- package/references/opentasks/src/entire/commands/clean.ts +134 -0
- package/references/opentasks/src/entire/commands/disable.ts +85 -0
- package/references/opentasks/src/entire/commands/doctor.ts +152 -0
- package/references/opentasks/src/entire/commands/enable.ts +149 -0
- package/references/opentasks/src/entire/commands/explain.ts +271 -0
- package/references/opentasks/src/entire/commands/reset.ts +105 -0
- package/references/opentasks/src/entire/commands/resume.ts +194 -0
- package/references/opentasks/src/entire/commands/rewind.ts +204 -0
- package/references/opentasks/src/entire/commands/status.ts +150 -0
- package/references/opentasks/src/entire/config.ts +153 -0
- package/references/opentasks/src/entire/git-operations.ts +485 -0
- package/references/opentasks/src/entire/hooks/git-hooks.ts +171 -0
- package/references/opentasks/src/entire/hooks/lifecycle.ts +224 -0
- package/references/opentasks/src/entire/index.ts +644 -0
- package/references/opentasks/src/entire/security/redaction.ts +263 -0
- package/references/opentasks/src/entire/session/state-machine.ts +463 -0
- package/references/opentasks/src/entire/store/checkpoint-store.ts +489 -0
- package/references/opentasks/src/entire/store/native-store.ts +178 -0
- package/references/opentasks/src/entire/store/provider-types.ts +99 -0
- package/references/opentasks/src/entire/store/session-store.ts +233 -0
- package/references/opentasks/src/entire/strategy/attribution.ts +300 -0
- package/references/opentasks/src/entire/strategy/common.ts +222 -0
- package/references/opentasks/src/entire/strategy/content-overlap.ts +242 -0
- package/references/opentasks/src/entire/strategy/manual-commit.ts +1008 -0
- package/references/opentasks/src/entire/strategy/types.ts +285 -0
- package/references/opentasks/src/entire/summarize/claude-generator.ts +119 -0
- package/references/opentasks/src/entire/summarize/summarize.ts +432 -0
- package/references/opentasks/src/entire/types.ts +408 -0
- package/references/opentasks/src/entire/utils/chunk-files.ts +49 -0
- package/references/opentasks/src/entire/utils/commit-message.ts +65 -0
- package/references/opentasks/src/entire/utils/detect-agent.ts +36 -0
- package/references/opentasks/src/entire/utils/hook-managers.ts +118 -0
- package/references/opentasks/src/entire/utils/ide-tags.ts +32 -0
- package/references/opentasks/src/entire/utils/paths.ts +59 -0
- package/references/opentasks/src/entire/utils/preview-rewind.ts +86 -0
- package/references/opentasks/src/entire/utils/rewind-conflict.ts +121 -0
- package/references/opentasks/src/entire/utils/shadow-branch.ts +113 -0
- package/references/opentasks/src/entire/utils/string-utils.ts +46 -0
- package/references/opentasks/src/entire/utils/todo-extract.ts +193 -0
- package/references/opentasks/src/entire/utils/trailers.ts +190 -0
- package/references/opentasks/src/entire/utils/transcript-parse.ts +177 -0
- package/references/opentasks/src/entire/utils/transcript-timestamp.ts +61 -0
- package/references/opentasks/src/entire/utils/tree-ops.ts +227 -0
- package/references/opentasks/src/entire/utils/tty.ts +72 -0
- package/references/opentasks/src/entire/utils/validation.ts +67 -0
- package/references/opentasks/src/entire/utils/worktree.ts +58 -0
- package/references/opentasks/src/graph/EdgeTypeRegistry.ts +330 -0
- package/references/opentasks/src/graph/FederatedGraph.ts +796 -0
- package/references/opentasks/src/graph/GraphologyAdapter.ts +374 -0
- package/references/opentasks/src/graph/HydratingFederatedGraph.ts +533 -0
- package/references/opentasks/src/graph/__tests__/EdgeTypeRegistry.test.ts +263 -0
- package/references/opentasks/src/graph/__tests__/FederatedGraph.test.ts +821 -0
- package/references/opentasks/src/graph/__tests__/GraphologyAdapter.test.ts +408 -0
- package/references/opentasks/src/graph/__tests__/HydratingFederatedGraph.test.ts +735 -0
- package/references/opentasks/src/graph/__tests__/debounce.test.ts +276 -0
- package/references/opentasks/src/graph/__tests__/e2e-store-roundtrip.test.ts +349 -0
- package/references/opentasks/src/graph/__tests__/edge-cases.test.ts +595 -0
- package/references/opentasks/src/graph/__tests__/expansion.test.ts +304 -0
- package/references/opentasks/src/graph/__tests__/git-graph-syncer.test.ts +572 -0
- package/references/opentasks/src/graph/__tests__/provider-store.test.ts +1091 -0
- package/references/opentasks/src/graph/__tests__/query.test.ts +991 -0
- package/references/opentasks/src/graph/__tests__/store.test.ts +998 -0
- package/references/opentasks/src/graph/__tests__/sync.test.ts +178 -0
- package/references/opentasks/src/graph/__tests__/validation.test.ts +657 -0
- package/references/opentasks/src/graph/coordination.ts +454 -0
- package/references/opentasks/src/graph/debounce.ts +154 -0
- package/references/opentasks/src/graph/expansion.ts +364 -0
- package/references/opentasks/src/graph/git-graph-syncer.ts +321 -0
- package/references/opentasks/src/graph/history.ts +438 -0
- package/references/opentasks/src/graph/index.ts +145 -0
- package/references/opentasks/src/graph/provider-store.ts +1077 -0
- package/references/opentasks/src/graph/query.ts +651 -0
- package/references/opentasks/src/graph/store.ts +861 -0
- package/references/opentasks/src/graph/sync.ts +116 -0
- package/references/opentasks/src/graph/types.ts +420 -0
- package/references/opentasks/src/graph/validation.ts +520 -0
- package/references/opentasks/src/index.ts +270 -0
- package/references/opentasks/src/materialization/CLAUDE.md +88 -0
- package/references/opentasks/src/materialization/README.md +187 -0
- package/references/opentasks/src/materialization/__tests__/archive-methods.test.ts +194 -0
- package/references/opentasks/src/materialization/__tests__/archiver.test.ts +528 -0
- package/references/opentasks/src/materialization/__tests__/config.test.ts +123 -0
- package/references/opentasks/src/materialization/__tests__/git-remote-store.test.ts +533 -0
- package/references/opentasks/src/materialization/__tests__/graph-id.test.ts +82 -0
- package/references/opentasks/src/materialization/__tests__/http-remote-store.test.ts +263 -0
- package/references/opentasks/src/materialization/__tests__/materialize-before-archive.test.ts +246 -0
- package/references/opentasks/src/materialization/__tests__/remote-store-factory.test.ts +152 -0
- package/references/opentasks/src/materialization/__tests__/snapshot.test.ts +209 -0
- package/references/opentasks/src/materialization/archiver.ts +318 -0
- package/references/opentasks/src/materialization/git-archive-store.ts +568 -0
- package/references/opentasks/src/materialization/git-remote-store.ts +551 -0
- package/references/opentasks/src/materialization/graph-id.ts +173 -0
- package/references/opentasks/src/materialization/http-remote-store.ts +190 -0
- package/references/opentasks/src/materialization/index.ts +62 -0
- package/references/opentasks/src/materialization/remote-store-factory.ts +55 -0
- package/references/opentasks/src/materialization/snapshot.ts +230 -0
- package/references/opentasks/src/materialization/types.ts +410 -0
- package/references/opentasks/src/providers/__tests__/beads.test.ts +752 -0
- package/references/opentasks/src/providers/__tests__/claude-tasks.test.ts +485 -0
- package/references/opentasks/src/providers/__tests__/entire-e2e.test.ts +692 -0
- package/references/opentasks/src/providers/__tests__/entire-sessionlog-e2e.test.ts +1113 -0
- package/references/opentasks/src/providers/__tests__/entire.test.ts +1016 -0
- package/references/opentasks/src/providers/__tests__/from-config.test.ts +183 -0
- package/references/opentasks/src/providers/__tests__/global.test.ts +515 -0
- package/references/opentasks/src/providers/__tests__/materialization.test.ts +567 -0
- package/references/opentasks/src/providers/__tests__/native.test.ts +693 -0
- package/references/opentasks/src/providers/__tests__/registry.test.ts +232 -0
- package/references/opentasks/src/providers/beads.ts +1155 -0
- package/references/opentasks/src/providers/claude-tasks.ts +402 -0
- package/references/opentasks/src/providers/entire.ts +608 -0
- package/references/opentasks/src/providers/from-config.ts +210 -0
- package/references/opentasks/src/providers/global.ts +460 -0
- package/references/opentasks/src/providers/index.ts +147 -0
- package/references/opentasks/src/providers/location.ts +237 -0
- package/references/opentasks/src/providers/materialization.ts +346 -0
- package/references/opentasks/src/providers/native.ts +725 -0
- package/references/opentasks/src/providers/registry.ts +114 -0
- package/references/opentasks/src/providers/sudocode.ts +1292 -0
- package/references/opentasks/src/providers/sync.ts +485 -0
- package/references/opentasks/src/providers/traits/RelationshipQueryable.ts +169 -0
- package/references/opentasks/src/providers/traits/TaskManageable.ts +211 -0
- package/references/opentasks/src/providers/traits/Watchable.ts +260 -0
- package/references/opentasks/src/providers/traits/__tests__/RelationshipQueryable.test.ts +217 -0
- package/references/opentasks/src/providers/traits/__tests__/TaskManageable.test.ts +241 -0
- package/references/opentasks/src/providers/traits/index.ts +42 -0
- package/references/opentasks/src/providers/types.ts +439 -0
- package/references/opentasks/src/schema/__tests__/validation.test.ts +283 -0
- package/references/opentasks/src/schema/base.ts +88 -0
- package/references/opentasks/src/schema/edges.ts +78 -0
- package/references/opentasks/src/schema/index.ts +37 -0
- package/references/opentasks/src/schema/nodes.ts +119 -0
- package/references/opentasks/src/schema/storage.ts +130 -0
- package/references/opentasks/src/schema/validation.ts +209 -0
- package/references/opentasks/src/storage/__tests__/atomic-write.test.ts +227 -0
- package/references/opentasks/src/storage/__tests__/file-lock.test.ts +120 -0
- package/references/opentasks/src/storage/__tests__/jsonl.test.ts +267 -0
- package/references/opentasks/src/storage/__tests__/locked-writer.test.ts +134 -0
- package/references/opentasks/src/storage/__tests__/sqlite.test.ts +572 -0
- package/references/opentasks/src/storage/atomic-write.ts +86 -0
- package/references/opentasks/src/storage/file-lock.ts +215 -0
- package/references/opentasks/src/storage/index.ts +24 -0
- package/references/opentasks/src/storage/interface.ts +289 -0
- package/references/opentasks/src/storage/jsonl.ts +264 -0
- package/references/opentasks/src/storage/locked-writer.ts +140 -0
- package/references/opentasks/src/storage/sqlite-schema.ts +177 -0
- package/references/opentasks/src/storage/sqlite.ts +791 -0
- package/references/opentasks/src/tools/__tests__/annotate.test.ts +381 -0
- package/references/opentasks/src/tools/__tests__/link.test.ts +299 -0
- package/references/opentasks/src/tools/__tests__/query.test.ts +350 -0
- package/references/opentasks/src/tools/__tests__/task.test.ts +218 -0
- package/references/opentasks/src/tools/annotate.ts +277 -0
- package/references/opentasks/src/tools/index.ts +57 -0
- package/references/opentasks/src/tools/link.ts +163 -0
- package/references/opentasks/src/tools/query.ts +468 -0
- package/references/opentasks/src/tools/task.ts +213 -0
- package/references/opentasks/src/tools/types.ts +451 -0
- package/references/opentasks/src/tracking/__tests__/claude-tool-categorizer.test.ts +223 -0
- package/references/opentasks/src/tracking/__tests__/transcript-extractor.test.ts +262 -0
- package/references/opentasks/src/tracking/claude-tool-categorizer.ts +155 -0
- package/references/opentasks/src/tracking/index.ts +32 -0
- package/references/opentasks/src/tracking/skill-tracker.ts +322 -0
- package/references/opentasks/src/tracking/transcript-extractor.ts +225 -0
- package/references/opentasks/tests/e2e/helpers/assertions.ts +211 -0
- package/references/opentasks/tests/e2e/helpers/beads-helpers.ts +487 -0
- package/references/opentasks/tests/e2e/helpers/fixtures.ts +236 -0
- package/references/opentasks/tests/e2e/helpers/index.ts +122 -0
- package/references/opentasks/tests/e2e/helpers/sudocode-helpers.ts +341 -0
- package/references/opentasks/tests/e2e/helpers/system-setup.ts +504 -0
- package/references/opentasks/tests/e2e/helpers/test-agent.ts +504 -0
- package/references/opentasks/tests/e2e/infrastructure.e2e.test.ts +521 -0
- package/references/opentasks/tests/e2e/skill-tracking.e2e.test.ts +625 -0
- package/references/opentasks/tests/e2e/workflows/feedback-loop.e2e.test.ts +279 -0
- package/references/opentasks/tests/e2e/workflows/multi-agent.e2e.test.ts +304 -0
- package/references/opentasks/tests/e2e/workflows/provider-sync/background-sync.e2e.test.ts +292 -0
- package/references/opentasks/tests/e2e/workflows/provider-sync/beads-provider-compat.e2e.test.ts +249 -0
- package/references/opentasks/tests/e2e/workflows/provider-sync/cross-provider-edges.e2e.test.ts +407 -0
- package/references/opentasks/tests/e2e/workflows/provider-sync/federated-ready.e2e.test.ts +504 -0
- package/references/opentasks/tests/e2e/workflows/provider-sync/hydration.e2e.test.ts +340 -0
- package/references/opentasks/tests/e2e/workflows/provider-sync/materialization.e2e.test.ts +370 -0
- package/references/opentasks/tests/e2e/workflows/provider-sync/sudocode-provider-compat.e2e.test.ts +683 -0
- package/references/opentasks/tests/e2e/workflows/provider-sync/watchable-beads.e2e.test.ts +573 -0
- package/references/opentasks/tests/e2e/workflows/spec-driven.e2e.test.ts +244 -0
- package/references/opentasks/tests/e2e/worktree-location.e2e.test.ts +699 -0
- package/references/opentasks/tests/integration/daemon/helpers.ts +147 -0
- package/references/opentasks/tests/integration/daemon/ipc.integration.test.ts +343 -0
- package/references/opentasks/tests/integration/daemon/lifecycle.integration.test.ts +407 -0
- package/references/opentasks/tests/integration/graph/federated-graph.integration.test.ts +660 -0
- package/references/opentasks/tests/integration/helpers/flags.ts +28 -0
- package/references/opentasks/tests/integration/helpers/index.ts +47 -0
- package/references/opentasks/tests/integration/helpers/process.ts +133 -0
- package/references/opentasks/tests/integration/helpers/temp.ts +105 -0
- package/references/opentasks/tests/integration/helpers/wait.ts +133 -0
- package/references/opentasks/tests/integration/helpers.test.ts +120 -0
- package/references/opentasks/tests/integration/providers/beads-task-manageable.integration.test.ts +450 -0
- package/references/opentasks/tests/integration/providers/beads.integration.test.ts +388 -0
- package/references/opentasks/tests/integration/providers/native-task-manageable.integration.test.ts +667 -0
- package/references/opentasks/tests/integration/providers/sudocode-task-manageable.integration.test.ts +406 -0
- package/references/opentasks/tests/integration/providers/sudocode.integration.test.ts +342 -0
- package/references/opentasks/tests/integration/storage/jsonl-durability.integration.test.ts +390 -0
- package/references/opentasks/tests/integration/storage/sqlite-durability.integration.test.ts +527 -0
- package/references/opentasks/tests/integration/worktree/redirect-location-resolution.integration.test.ts +578 -0
- package/references/opentasks/tests/integration/worktree/worktree-flow.integration.test.ts +656 -0
- package/references/opentasks/tsconfig.json +18 -0
- package/references/opentasks/vitest.config.ts +27 -0
- package/references/opentasks/vitest.e2e.config.ts +35 -0
- package/references/opentasks/vitest.integration.config.ts +19 -0
- package/references/openteams/.claude/settings.json +6 -0
- package/references/openteams/CLAUDE.md +98 -0
- package/references/openteams/README.md +508 -0
- package/references/openteams/SKILL.md +198 -0
- package/references/openteams/design.md +250 -0
- package/references/openteams/docs/visual-editor-design.md +1225 -0
- package/references/openteams/editor/index.html +15 -0
- package/references/openteams/editor/package.json +39 -0
- package/references/openteams/editor/src/App.tsx +48 -0
- package/references/openteams/editor/src/components/canvas/Canvas.tsx +131 -0
- package/references/openteams/editor/src/components/canvas/QuickAddMenu.tsx +134 -0
- package/references/openteams/editor/src/components/edges/PeerRouteEdge.tsx +82 -0
- package/references/openteams/editor/src/components/edges/SignalFlowEdge.tsx +77 -0
- package/references/openteams/editor/src/components/edges/SpawnEdge.tsx +54 -0
- package/references/openteams/editor/src/components/inspector/ChannelInspector.tsx +158 -0
- package/references/openteams/editor/src/components/inspector/EdgeInspector.tsx +168 -0
- package/references/openteams/editor/src/components/inspector/Inspector.tsx +46 -0
- package/references/openteams/editor/src/components/inspector/RoleInspector.tsx +508 -0
- package/references/openteams/editor/src/components/inspector/TeamInspector.tsx +126 -0
- package/references/openteams/editor/src/components/nodes/ChannelNode.tsx +103 -0
- package/references/openteams/editor/src/components/nodes/RoleNode.tsx +157 -0
- package/references/openteams/editor/src/components/nodes/node-styles.ts +101 -0
- package/references/openteams/editor/src/components/sidebar/Sidebar.tsx +227 -0
- package/references/openteams/editor/src/components/toolbar/ExportModal.tsx +110 -0
- package/references/openteams/editor/src/components/toolbar/ImportModal.tsx +139 -0
- package/references/openteams/editor/src/components/toolbar/Toolbar.tsx +190 -0
- package/references/openteams/editor/src/hooks/use-autosave.ts +126 -0
- package/references/openteams/editor/src/hooks/use-keyboard.ts +106 -0
- package/references/openteams/editor/src/hooks/use-validation.ts +45 -0
- package/references/openteams/editor/src/index.css +245 -0
- package/references/openteams/editor/src/lib/auto-layout.ts +51 -0
- package/references/openteams/editor/src/lib/bundled-templates.ts +42 -0
- package/references/openteams/editor/src/lib/compiler.ts +75 -0
- package/references/openteams/editor/src/lib/load-template.ts +103 -0
- package/references/openteams/editor/src/lib/rebuild-edges.ts +104 -0
- package/references/openteams/editor/src/lib/serializer.ts +408 -0
- package/references/openteams/editor/src/lib/signal-catalog.ts +50 -0
- package/references/openteams/editor/src/lib/validator.ts +172 -0
- package/references/openteams/editor/src/main.tsx +10 -0
- package/references/openteams/editor/src/stores/canvas-store.ts +80 -0
- package/references/openteams/editor/src/stores/config-store.ts +243 -0
- package/references/openteams/editor/src/stores/history-store.ts +143 -0
- package/references/openteams/editor/src/stores/theme-store.ts +66 -0
- package/references/openteams/editor/src/stores/ui-store.ts +46 -0
- package/references/openteams/editor/src/stores/validation-store.ts +27 -0
- package/references/openteams/editor/src/types/editor.ts +74 -0
- package/references/openteams/editor/src/vite-env.d.ts +1 -0
- package/references/openteams/editor/tests/compiler.test.ts +151 -0
- package/references/openteams/editor/tests/e2e-add-remove.test.ts +386 -0
- package/references/openteams/editor/tests/e2e-components.test.tsx +424 -0
- package/references/openteams/editor/tests/e2e-export-roundtrip.test.ts +299 -0
- package/references/openteams/editor/tests/e2e-template-load.test.ts +204 -0
- package/references/openteams/editor/tests/e2e-ui-store.test.ts +126 -0
- package/references/openteams/editor/tests/e2e-undo-redo.test.ts +203 -0
- package/references/openteams/editor/tests/e2e-validation.test.ts +307 -0
- package/references/openteams/editor/tests/serializer.test.ts +142 -0
- package/references/openteams/editor/tests/setup.ts +52 -0
- package/references/openteams/editor/tests/validator.test.ts +92 -0
- package/references/openteams/editor/tsconfig.json +21 -0
- package/references/openteams/editor/tsconfig.tsbuildinfo +1 -0
- package/references/openteams/editor/vite.config.ts +28 -0
- package/references/openteams/examples/bmad-method/prompts/analyst/ROLE.md +16 -0
- package/references/openteams/examples/bmad-method/prompts/analyst/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/prompts/architect/ROLE.md +24 -0
- package/references/openteams/examples/bmad-method/prompts/architect/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/prompts/developer/ROLE.md +25 -0
- package/references/openteams/examples/bmad-method/prompts/developer/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/prompts/master/ROLE.md +21 -0
- package/references/openteams/examples/bmad-method/prompts/master/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/prompts/pm/ROLE.md +20 -0
- package/references/openteams/examples/bmad-method/prompts/pm/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/prompts/qa/ROLE.md +17 -0
- package/references/openteams/examples/bmad-method/prompts/qa/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/prompts/quick-flow-dev/ROLE.md +23 -0
- package/references/openteams/examples/bmad-method/prompts/quick-flow-dev/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/prompts/scrum-master/ROLE.md +27 -0
- package/references/openteams/examples/bmad-method/prompts/scrum-master/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/prompts/tech-writer/ROLE.md +21 -0
- package/references/openteams/examples/bmad-method/prompts/tech-writer/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/prompts/ux-designer/ROLE.md +16 -0
- package/references/openteams/examples/bmad-method/prompts/ux-designer/SOUL.md +5 -0
- package/references/openteams/examples/bmad-method/roles/analyst.yaml +9 -0
- package/references/openteams/examples/bmad-method/roles/architect.yaml +9 -0
- package/references/openteams/examples/bmad-method/roles/developer.yaml +8 -0
- package/references/openteams/examples/bmad-method/roles/master.yaml +8 -0
- package/references/openteams/examples/bmad-method/roles/pm.yaml +9 -0
- package/references/openteams/examples/bmad-method/roles/qa.yaml +8 -0
- package/references/openteams/examples/bmad-method/roles/quick-flow-dev.yaml +8 -0
- package/references/openteams/examples/bmad-method/roles/scrum-master.yaml +9 -0
- package/references/openteams/examples/bmad-method/roles/tech-writer.yaml +8 -0
- package/references/openteams/examples/bmad-method/roles/ux-designer.yaml +8 -0
- package/references/openteams/examples/bmad-method/team.yaml +161 -0
- package/references/openteams/examples/bug-fix-pipeline/roles/fixer.yaml +9 -0
- package/references/openteams/examples/bug-fix-pipeline/roles/investigator.yaml +8 -0
- package/references/openteams/examples/bug-fix-pipeline/roles/pr-creator.yaml +6 -0
- package/references/openteams/examples/bug-fix-pipeline/roles/triager.yaml +7 -0
- package/references/openteams/examples/bug-fix-pipeline/roles/verifier.yaml +8 -0
- package/references/openteams/examples/bug-fix-pipeline/team.yaml +88 -0
- package/references/openteams/examples/codebase-migration/roles/assessor.yaml +7 -0
- package/references/openteams/examples/codebase-migration/roles/migrator.yaml +9 -0
- package/references/openteams/examples/codebase-migration/roles/planner.yaml +5 -0
- package/references/openteams/examples/codebase-migration/roles/test-extractor.yaml +9 -0
- package/references/openteams/examples/codebase-migration/roles/validator.yaml +7 -0
- package/references/openteams/examples/codebase-migration/team.yaml +81 -0
- package/references/openteams/examples/docs-sync/roles/adr-writer.yaml +7 -0
- package/references/openteams/examples/docs-sync/roles/api-doc-writer.yaml +7 -0
- package/references/openteams/examples/docs-sync/roles/change-detector.yaml +7 -0
- package/references/openteams/examples/docs-sync/roles/doc-reviewer.yaml +7 -0
- package/references/openteams/examples/docs-sync/roles/guide-writer.yaml +7 -0
- package/references/openteams/examples/docs-sync/team.yaml +84 -0
- package/references/openteams/examples/gsd/prompts/codebase-mapper/ROLE.md +17 -0
- package/references/openteams/examples/gsd/prompts/codebase-mapper/SOUL.md +5 -0
- package/references/openteams/examples/gsd/prompts/debugger/ROLE.md +25 -0
- package/references/openteams/examples/gsd/prompts/debugger/SOUL.md +5 -0
- package/references/openteams/examples/gsd/prompts/executor/ROLE.md +34 -0
- package/references/openteams/examples/gsd/prompts/executor/SOUL.md +5 -0
- package/references/openteams/examples/gsd/prompts/integration-checker/ROLE.md +18 -0
- package/references/openteams/examples/gsd/prompts/integration-checker/SOUL.md +3 -0
- package/references/openteams/examples/gsd/prompts/orchestrator/ROLE.md +42 -0
- package/references/openteams/examples/gsd/prompts/orchestrator/SOUL.md +5 -0
- package/references/openteams/examples/gsd/prompts/phase-researcher/ROLE.md +15 -0
- package/references/openteams/examples/gsd/prompts/phase-researcher/SOUL.md +3 -0
- package/references/openteams/examples/gsd/prompts/plan-checker/ROLE.md +17 -0
- package/references/openteams/examples/gsd/prompts/plan-checker/SOUL.md +3 -0
- package/references/openteams/examples/gsd/prompts/planner/ROLE.md +28 -0
- package/references/openteams/examples/gsd/prompts/planner/SOUL.md +5 -0
- package/references/openteams/examples/gsd/prompts/project-researcher/ROLE.md +16 -0
- package/references/openteams/examples/gsd/prompts/project-researcher/SOUL.md +3 -0
- package/references/openteams/examples/gsd/prompts/research-synthesizer/ROLE.md +13 -0
- package/references/openteams/examples/gsd/prompts/research-synthesizer/SOUL.md +3 -0
- package/references/openteams/examples/gsd/prompts/roadmapper/ROLE.md +14 -0
- package/references/openteams/examples/gsd/prompts/roadmapper/SOUL.md +3 -0
- package/references/openteams/examples/gsd/prompts/verifier/ROLE.md +19 -0
- package/references/openteams/examples/gsd/prompts/verifier/SOUL.md +5 -0
- package/references/openteams/examples/gsd/roles/codebase-mapper.yaml +8 -0
- package/references/openteams/examples/gsd/roles/debugger.yaml +8 -0
- package/references/openteams/examples/gsd/roles/executor.yaml +8 -0
- package/references/openteams/examples/gsd/roles/integration-checker.yaml +8 -0
- package/references/openteams/examples/gsd/roles/orchestrator.yaml +9 -0
- package/references/openteams/examples/gsd/roles/phase-researcher.yaml +7 -0
- package/references/openteams/examples/gsd/roles/plan-checker.yaml +8 -0
- package/references/openteams/examples/gsd/roles/planner.yaml +8 -0
- package/references/openteams/examples/gsd/roles/project-researcher.yaml +8 -0
- package/references/openteams/examples/gsd/roles/research-synthesizer.yaml +7 -0
- package/references/openteams/examples/gsd/roles/roadmapper.yaml +7 -0
- package/references/openteams/examples/gsd/roles/verifier.yaml +8 -0
- package/references/openteams/examples/gsd/team.yaml +154 -0
- package/references/openteams/examples/incident-response/roles/communicator.yaml +5 -0
- package/references/openteams/examples/incident-response/roles/fix-proposer.yaml +7 -0
- package/references/openteams/examples/incident-response/roles/incident-triager.yaml +8 -0
- package/references/openteams/examples/incident-response/roles/investigator.yaml +8 -0
- package/references/openteams/examples/incident-response/team.yaml +68 -0
- package/references/openteams/examples/pr-review-checks/roles/code-reviewer.yaml +7 -0
- package/references/openteams/examples/pr-review-checks/roles/security-scanner.yaml +6 -0
- package/references/openteams/examples/pr-review-checks/roles/summarizer.yaml +6 -0
- package/references/openteams/examples/pr-review-checks/roles/test-checker.yaml +8 -0
- package/references/openteams/examples/pr-review-checks/team.yaml +64 -0
- package/references/openteams/examples/security-audit/roles/code-analyzer.yaml +6 -0
- package/references/openteams/examples/security-audit/roles/dep-scanner.yaml +7 -0
- package/references/openteams/examples/security-audit/roles/fixer.yaml +9 -0
- package/references/openteams/examples/security-audit/roles/pr-creator.yaml +6 -0
- package/references/openteams/examples/security-audit/roles/prioritizer.yaml +6 -0
- package/references/openteams/examples/security-audit/roles/secrets-scanner.yaml +6 -0
- package/references/openteams/examples/security-audit/roles/verifier.yaml +8 -0
- package/references/openteams/examples/security-audit/team.yaml +102 -0
- package/references/openteams/media/banner.png +0 -0
- package/references/openteams/media/editor.png +0 -0
- package/references/openteams/package-lock.json +4804 -0
- package/references/openteams/package.json +58 -0
- package/references/openteams/schema/role.schema.json +147 -0
- package/references/openteams/schema/team.schema.json +311 -0
- package/references/openteams/src/cli/editor.ts +170 -0
- package/references/openteams/src/cli/generate.test.ts +191 -0
- package/references/openteams/src/cli/generate.ts +220 -0
- package/references/openteams/src/cli/prompt-utils.ts +42 -0
- package/references/openteams/src/cli/template.test.ts +365 -0
- package/references/openteams/src/cli/template.ts +205 -0
- package/references/openteams/src/cli.ts +22 -0
- package/references/openteams/src/generators/agent-prompt-generator.test.ts +332 -0
- package/references/openteams/src/generators/agent-prompt-generator.ts +527 -0
- package/references/openteams/src/generators/package-generator.test.ts +129 -0
- package/references/openteams/src/generators/package-generator.ts +102 -0
- package/references/openteams/src/generators/skill-generator.test.ts +246 -0
- package/references/openteams/src/generators/skill-generator.ts +388 -0
- package/references/openteams/src/index.ts +84 -0
- package/references/openteams/src/template/builtins.test.ts +74 -0
- package/references/openteams/src/template/builtins.ts +108 -0
- package/references/openteams/src/template/install-service.test.ts +452 -0
- package/references/openteams/src/template/install-service.ts +332 -0
- package/references/openteams/src/template/loader.test.ts +1696 -0
- package/references/openteams/src/template/loader.ts +804 -0
- package/references/openteams/src/template/resolver.test.ts +304 -0
- package/references/openteams/src/template/resolver.ts +251 -0
- package/references/openteams/src/template/types.ts +229 -0
- package/references/openteams/tsconfig.cjs.json +7 -0
- package/references/openteams/tsconfig.esm.json +8 -0
- package/references/openteams/tsconfig.json +16 -0
- package/references/openteams/vitest.config.ts +9 -0
- package/references/sessionlog/.husky/pre-commit +1 -0
- package/references/sessionlog/.lintstagedrc.json +4 -0
- package/references/sessionlog/.prettierignore +4 -0
- package/references/sessionlog/.prettierrc.json +11 -0
- package/references/sessionlog/LICENSE +21 -0
- package/references/sessionlog/README.md +453 -0
- package/references/sessionlog/eslint.config.js +58 -0
- package/references/sessionlog/package-lock.json +3672 -0
- package/references/sessionlog/package.json +65 -0
- package/references/sessionlog/src/__tests__/agent-hooks.test.ts +570 -0
- package/references/sessionlog/src/__tests__/agent-registry.test.ts +127 -0
- package/references/sessionlog/src/__tests__/claude-code-hooks.test.ts +225 -0
- package/references/sessionlog/src/__tests__/claude-generator.test.ts +46 -0
- package/references/sessionlog/src/__tests__/commit-msg.test.ts +86 -0
- package/references/sessionlog/src/__tests__/cursor-agent.test.ts +224 -0
- package/references/sessionlog/src/__tests__/e2e-live.test.ts +890 -0
- package/references/sessionlog/src/__tests__/event-log.test.ts +183 -0
- package/references/sessionlog/src/__tests__/flush-sentinel.test.ts +105 -0
- package/references/sessionlog/src/__tests__/gemini-agent.test.ts +375 -0
- package/references/sessionlog/src/__tests__/git-hooks.test.ts +78 -0
- package/references/sessionlog/src/__tests__/hook-managers.test.ts +121 -0
- package/references/sessionlog/src/__tests__/lifecycle-tasks.test.ts +759 -0
- package/references/sessionlog/src/__tests__/opencode-agent.test.ts +338 -0
- package/references/sessionlog/src/__tests__/redaction.test.ts +136 -0
- package/references/sessionlog/src/__tests__/session-repo.test.ts +353 -0
- package/references/sessionlog/src/__tests__/session-store.test.ts +166 -0
- package/references/sessionlog/src/__tests__/setup-ccweb.test.ts +466 -0
- package/references/sessionlog/src/__tests__/skill-live.test.ts +461 -0
- package/references/sessionlog/src/__tests__/summarize.test.ts +348 -0
- package/references/sessionlog/src/__tests__/task-plan-e2e.test.ts +610 -0
- package/references/sessionlog/src/__tests__/task-plan-live.test.ts +632 -0
- package/references/sessionlog/src/__tests__/transcript-timestamp.test.ts +121 -0
- package/references/sessionlog/src/__tests__/types.test.ts +166 -0
- package/references/sessionlog/src/__tests__/utils.test.ts +333 -0
- package/references/sessionlog/src/__tests__/validation.test.ts +103 -0
- package/references/sessionlog/src/__tests__/worktree.test.ts +57 -0
- package/references/sessionlog/src/agent/registry.ts +143 -0
- package/references/sessionlog/src/agent/session-types.ts +113 -0
- package/references/sessionlog/src/agent/types.ts +220 -0
- package/references/sessionlog/src/cli.ts +597 -0
- package/references/sessionlog/src/commands/clean.ts +133 -0
- package/references/sessionlog/src/commands/disable.ts +84 -0
- package/references/sessionlog/src/commands/doctor.ts +145 -0
- package/references/sessionlog/src/commands/enable.ts +202 -0
- package/references/sessionlog/src/commands/explain.ts +261 -0
- package/references/sessionlog/src/commands/reset.ts +105 -0
- package/references/sessionlog/src/commands/resume.ts +180 -0
- package/references/sessionlog/src/commands/rewind.ts +195 -0
- package/references/sessionlog/src/commands/setup-ccweb.ts +275 -0
- package/references/sessionlog/src/commands/status.ts +172 -0
- package/references/sessionlog/src/config.ts +165 -0
- package/references/sessionlog/src/events/event-log.ts +126 -0
- package/references/sessionlog/src/git-operations.ts +558 -0
- package/references/sessionlog/src/hooks/git-hooks.ts +165 -0
- package/references/sessionlog/src/hooks/lifecycle.ts +391 -0
- package/references/sessionlog/src/index.ts +650 -0
- package/references/sessionlog/src/security/redaction.ts +283 -0
- package/references/sessionlog/src/session/state-machine.ts +452 -0
- package/references/sessionlog/src/store/checkpoint-store.ts +509 -0
- package/references/sessionlog/src/store/native-store.ts +173 -0
- package/references/sessionlog/src/store/provider-types.ts +99 -0
- package/references/sessionlog/src/store/session-store.ts +266 -0
- package/references/sessionlog/src/strategy/attribution.ts +296 -0
- package/references/sessionlog/src/strategy/common.ts +207 -0
- package/references/sessionlog/src/strategy/content-overlap.ts +228 -0
- package/references/sessionlog/src/strategy/manual-commit.ts +988 -0
- package/references/sessionlog/src/strategy/types.ts +279 -0
- package/references/sessionlog/src/summarize/claude-generator.ts +115 -0
- package/references/sessionlog/src/summarize/summarize.ts +432 -0
- package/references/sessionlog/src/types.ts +508 -0
- package/references/sessionlog/src/utils/chunk-files.ts +49 -0
- package/references/sessionlog/src/utils/commit-message.ts +65 -0
- package/references/sessionlog/src/utils/detect-agent.ts +36 -0
- package/references/sessionlog/src/utils/hook-managers.ts +125 -0
- package/references/sessionlog/src/utils/ide-tags.ts +32 -0
- package/references/sessionlog/src/utils/paths.ts +79 -0
- package/references/sessionlog/src/utils/preview-rewind.ts +80 -0
- package/references/sessionlog/src/utils/rewind-conflict.ts +121 -0
- package/references/sessionlog/src/utils/shadow-branch.ts +109 -0
- package/references/sessionlog/src/utils/string-utils.ts +46 -0
- package/references/sessionlog/src/utils/todo-extract.ts +188 -0
- package/references/sessionlog/src/utils/trailers.ts +187 -0
- package/references/sessionlog/src/utils/transcript-parse.ts +177 -0
- package/references/sessionlog/src/utils/transcript-timestamp.ts +59 -0
- package/references/sessionlog/src/utils/tree-ops.ts +219 -0
- package/references/sessionlog/src/utils/tty.ts +72 -0
- package/references/sessionlog/src/utils/validation.ts +65 -0
- package/references/sessionlog/src/utils/worktree.ts +58 -0
- package/references/sessionlog/src/wire-types.ts +59 -0
- package/references/sessionlog/templates/setup-env.sh +153 -0
- package/references/sessionlog/tsconfig.json +18 -0
- package/references/sessionlog/vitest.config.ts +12 -0
- package/references/swarmkit/LICENSE +21 -0
- package/references/swarmkit/README.md +130 -0
- package/references/swarmkit/docs/design.md +453 -0
- package/references/swarmkit/docs/package-setup-reference.md +519 -0
- package/references/swarmkit/package-lock.json +1938 -0
- package/references/swarmkit/package.json +43 -0
- package/references/swarmkit/src/cli.ts +41 -0
- package/references/swarmkit/src/commands/add.ts +126 -0
- package/references/swarmkit/src/commands/doctor.ts +117 -0
- package/references/swarmkit/src/commands/hive.ts +279 -0
- package/references/swarmkit/src/commands/init/phases/configure.ts +96 -0
- package/references/swarmkit/src/commands/init/phases/global-setup.ts +102 -0
- package/references/swarmkit/src/commands/init/phases/packages.ts +44 -0
- package/references/swarmkit/src/commands/init/phases/project.ts +81 -0
- package/references/swarmkit/src/commands/init/phases/use-case.ts +47 -0
- package/references/swarmkit/src/commands/init/state.test.ts +23 -0
- package/references/swarmkit/src/commands/init/state.ts +22 -0
- package/references/swarmkit/src/commands/init/wizard.ts +160 -0
- package/references/swarmkit/src/commands/init.ts +17 -0
- package/references/swarmkit/src/commands/login.ts +106 -0
- package/references/swarmkit/src/commands/logout.ts +22 -0
- package/references/swarmkit/src/commands/remove.ts +72 -0
- package/references/swarmkit/src/commands/status.ts +101 -0
- package/references/swarmkit/src/commands/update.ts +62 -0
- package/references/swarmkit/src/commands/whoami.ts +41 -0
- package/references/swarmkit/src/config/global.test.ts +258 -0
- package/references/swarmkit/src/config/global.ts +141 -0
- package/references/swarmkit/src/config/keys.test.ts +109 -0
- package/references/swarmkit/src/config/keys.ts +49 -0
- package/references/swarmkit/src/doctor/checks.test.ts +366 -0
- package/references/swarmkit/src/doctor/checks.ts +292 -0
- package/references/swarmkit/src/doctor/types.ts +33 -0
- package/references/swarmkit/src/hub/auth-flow.test.ts +127 -0
- package/references/swarmkit/src/hub/auth-flow.ts +144 -0
- package/references/swarmkit/src/hub/client.test.ts +224 -0
- package/references/swarmkit/src/hub/client.ts +185 -0
- package/references/swarmkit/src/hub/credentials.test.ts +132 -0
- package/references/swarmkit/src/hub/credentials.ts +51 -0
- package/references/swarmkit/src/index.ts +116 -0
- package/references/swarmkit/src/packages/installer.test.ts +365 -0
- package/references/swarmkit/src/packages/installer.ts +206 -0
- package/references/swarmkit/src/packages/plugin.test.ts +141 -0
- package/references/swarmkit/src/packages/plugin.ts +46 -0
- package/references/swarmkit/src/packages/registry.test.ts +235 -0
- package/references/swarmkit/src/packages/registry.ts +209 -0
- package/references/swarmkit/src/packages/setup.test.ts +1349 -0
- package/references/swarmkit/src/packages/setup.ts +635 -0
- package/references/swarmkit/src/utils/ui.test.ts +115 -0
- package/references/swarmkit/src/utils/ui.ts +62 -0
- package/references/swarmkit/tsconfig.json +17 -0
- package/references/swarmkit/vitest.config.ts +9 -0
- package/scripts/bootstrap.mjs +26 -0
- package/scripts/generate-agents.mjs +32 -0
- package/scripts/map-hook.mjs +187 -0
- package/scripts/map-sidecar.mjs +115 -0
- package/scripts/sync-version.mjs +22 -0
- package/scripts/team-loader.mjs +87 -0
- package/settings.json +13 -0
- package/skills/swarm/SKILL.md +71 -0
- package/src/__tests__/agent-generator.test.mjs +299 -0
- package/src/__tests__/bootstrap.test.mjs +353 -0
- package/src/__tests__/config.test.mjs +286 -0
- package/src/__tests__/context-output.test.mjs +138 -0
- package/src/__tests__/helpers.mjs +136 -0
- package/src/__tests__/inbox.test.mjs +174 -0
- package/src/__tests__/index.test.mjs +90 -0
- package/src/__tests__/map-connection.test.mjs +134 -0
- package/src/__tests__/map-events.test.mjs +325 -0
- package/src/__tests__/paths.test.mjs +70 -0
- package/src/__tests__/roles.test.mjs +112 -0
- package/src/__tests__/sessionlog.test.mjs +139 -0
- package/src/__tests__/sidecar-client.test.mjs +73 -0
- package/src/__tests__/sidecar-server.test.mjs +318 -0
- package/src/__tests__/template.test.mjs +109 -0
- package/src/agent-generator.mjs +325 -0
- package/src/bootstrap.mjs +237 -0
- package/src/config.mjs +86 -0
- package/src/context-output.mjs +150 -0
- package/src/inbox.mjs +105 -0
- package/src/index.mjs +98 -0
- package/src/map-connection.mjs +121 -0
- package/src/map-events.mjs +175 -0
- package/src/paths.mjs +74 -0
- package/src/roles.mjs +72 -0
- package/src/sessionlog.mjs +161 -0
- package/src/sidecar-client.mjs +131 -0
- package/src/sidecar-server.mjs +247 -0
- package/src/swarmkit-resolver.mjs +111 -0
- package/src/template.mjs +163 -0
- package/vitest.config.mjs +17 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -6
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* E2E: Export/Import roundtrip
|
|
3
|
+
* Tests the full cycle: load template → modify → export YAML →
|
|
4
|
+
* re-import → verify state matches.
|
|
5
|
+
*/
|
|
6
|
+
import { describe, it, expect, beforeEach } from 'vitest';
|
|
7
|
+
import * as yaml from 'js-yaml';
|
|
8
|
+
import { useCanvasStore } from '../src/stores/canvas-store';
|
|
9
|
+
import { useConfigStore } from '../src/stores/config-store';
|
|
10
|
+
import { useHistoryStore } from '../src/stores/history-store';
|
|
11
|
+
import { useValidationStore } from '../src/stores/validation-store';
|
|
12
|
+
import { BUNDLED_TEMPLATES } from '../src/lib/bundled-templates';
|
|
13
|
+
import { loadTemplate } from '../src/lib/load-template';
|
|
14
|
+
import { compileToYaml } from '../src/lib/compiler';
|
|
15
|
+
import { configToCanvas, canvasToManifest, rolesToDefinitions } from '../src/lib/serializer';
|
|
16
|
+
import type { TeamManifest, RoleDefinition } from '@openteams/template/types';
|
|
17
|
+
import type { RoleNodeData } from '../src/types/editor';
|
|
18
|
+
|
|
19
|
+
function resetStores() {
|
|
20
|
+
useCanvasStore.getState().clear();
|
|
21
|
+
useConfigStore.getState().clear();
|
|
22
|
+
useHistoryStore.getState().clear();
|
|
23
|
+
useValidationStore.getState().clear();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
describe('E2E: Export/Import roundtrip', () => {
|
|
27
|
+
beforeEach(resetStores);
|
|
28
|
+
|
|
29
|
+
it('GSD template export produces valid team.yaml', () => {
|
|
30
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
31
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
32
|
+
|
|
33
|
+
const files = compileToYaml();
|
|
34
|
+
const teamFile = files.find(f => f.path === 'team.yaml');
|
|
35
|
+
expect(teamFile).toBeDefined();
|
|
36
|
+
|
|
37
|
+
const parsed = yaml.load(teamFile!.content) as TeamManifest;
|
|
38
|
+
expect(parsed.name).toBe('gsd');
|
|
39
|
+
expect(parsed.roles).toHaveLength(12);
|
|
40
|
+
expect(parsed.topology.root.role).toBe('orchestrator');
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('export produces role files for each role', () => {
|
|
44
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
45
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
46
|
+
|
|
47
|
+
const files = compileToYaml();
|
|
48
|
+
const roleFiles = files.filter(f => f.path.startsWith('roles/'));
|
|
49
|
+
|
|
50
|
+
// Should have one file per role
|
|
51
|
+
expect(roleFiles.length).toBe(12);
|
|
52
|
+
|
|
53
|
+
// Each should be valid YAML
|
|
54
|
+
for (const file of roleFiles) {
|
|
55
|
+
const parsed = yaml.load(file.content) as Record<string, unknown>;
|
|
56
|
+
expect(parsed).toBeDefined();
|
|
57
|
+
expect(parsed.name).toBeDefined();
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('roundtrip: load → export → re-import preserves roles', () => {
|
|
62
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
63
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
64
|
+
|
|
65
|
+
// Capture state after load
|
|
66
|
+
const originalRoleCount = useConfigStore.getState().roles.size;
|
|
67
|
+
const originalChannelCount = Object.keys(useConfigStore.getState().channels).length;
|
|
68
|
+
|
|
69
|
+
// Export
|
|
70
|
+
const files = compileToYaml();
|
|
71
|
+
const teamYaml = files.find(f => f.path === 'team.yaml')!.content;
|
|
72
|
+
const manifest = yaml.load(teamYaml) as TeamManifest;
|
|
73
|
+
|
|
74
|
+
// Build role definitions from role files
|
|
75
|
+
const roleMap = new Map<string, RoleDefinition>();
|
|
76
|
+
for (const file of files.filter(f => f.path.startsWith('roles/'))) {
|
|
77
|
+
const role = yaml.load(file.content) as RoleDefinition;
|
|
78
|
+
if (role?.name) roleMap.set(role.name, role);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Re-import
|
|
82
|
+
resetStores();
|
|
83
|
+
loadTemplate(manifest, roleMap);
|
|
84
|
+
|
|
85
|
+
// Verify state matches
|
|
86
|
+
expect(useConfigStore.getState().roles.size).toBe(originalRoleCount);
|
|
87
|
+
expect(Object.keys(useConfigStore.getState().channels).length).toBe(originalChannelCount);
|
|
88
|
+
expect(useConfigStore.getState().team.name).toBe('gsd');
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it('roundtrip preserves topology structure', () => {
|
|
92
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
93
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
94
|
+
|
|
95
|
+
const files = compileToYaml();
|
|
96
|
+
const manifest = yaml.load(files.find(f => f.path === 'team.yaml')!.content) as TeamManifest;
|
|
97
|
+
|
|
98
|
+
expect(manifest.topology.root.role).toBe('orchestrator');
|
|
99
|
+
expect(manifest.topology.companions?.map(c => c.role)).toContain('roadmapper');
|
|
100
|
+
expect(manifest.topology.companions?.map(c => c.role)).toContain('verifier');
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
it('roundtrip preserves communication channels', () => {
|
|
104
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
105
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
106
|
+
|
|
107
|
+
const files = compileToYaml();
|
|
108
|
+
const manifest = yaml.load(files.find(f => f.path === 'team.yaml')!.content) as TeamManifest;
|
|
109
|
+
|
|
110
|
+
expect(manifest.communication?.channels).toBeDefined();
|
|
111
|
+
expect(Object.keys(manifest.communication!.channels!)).toContain('project_lifecycle');
|
|
112
|
+
expect(manifest.communication!.channels!.project_lifecycle.signals).toContain('PROJECT_INITIALIZED');
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
it('roundtrip preserves peer routes', () => {
|
|
116
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
117
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
118
|
+
|
|
119
|
+
const originalRouteCount = useConfigStore.getState().peerRoutes.length;
|
|
120
|
+
|
|
121
|
+
const files = compileToYaml();
|
|
122
|
+
const manifest = yaml.load(files.find(f => f.path === 'team.yaml')!.content) as TeamManifest;
|
|
123
|
+
|
|
124
|
+
const exportedRouteCount = manifest.communication?.routing?.peers?.length || 0;
|
|
125
|
+
expect(exportedRouteCount).toBe(originalRouteCount);
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
it('roundtrip preserves spawn rules', () => {
|
|
129
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
130
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
131
|
+
|
|
132
|
+
const files = compileToYaml();
|
|
133
|
+
const manifest = yaml.load(files.find(f => f.path === 'team.yaml')!.content) as TeamManifest;
|
|
134
|
+
|
|
135
|
+
expect(manifest.topology.spawn_rules).toBeDefined();
|
|
136
|
+
expect(manifest.topology.spawn_rules!['orchestrator']).toHaveLength(11);
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
it('export after adding a role includes the new role', () => {
|
|
140
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
141
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
142
|
+
|
|
143
|
+
// Add a new role
|
|
144
|
+
const config = useConfigStore.getState();
|
|
145
|
+
config.setRole('custom-agent', {
|
|
146
|
+
name: 'custom-agent',
|
|
147
|
+
displayName: 'Custom Agent',
|
|
148
|
+
description: 'A custom agent',
|
|
149
|
+
capabilities: ['analyze'],
|
|
150
|
+
});
|
|
151
|
+
useCanvasStore.getState().addNode({
|
|
152
|
+
id: 'role-custom-agent',
|
|
153
|
+
type: 'role',
|
|
154
|
+
position: { x: 0, y: 0 },
|
|
155
|
+
data: {
|
|
156
|
+
kind: 'role',
|
|
157
|
+
roleName: 'custom-agent',
|
|
158
|
+
displayName: 'Custom Agent',
|
|
159
|
+
description: 'A custom agent',
|
|
160
|
+
topologyPosition: 'spawned',
|
|
161
|
+
capabilities: ['analyze'],
|
|
162
|
+
emits: [],
|
|
163
|
+
subscribesTo: [],
|
|
164
|
+
peerRoutesOut: 0,
|
|
165
|
+
peerRoutesIn: 0,
|
|
166
|
+
canSpawn: [],
|
|
167
|
+
errors: [],
|
|
168
|
+
warnings: [],
|
|
169
|
+
} as RoleNodeData,
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
const files = compileToYaml();
|
|
173
|
+
const manifest = yaml.load(files.find(f => f.path === 'team.yaml')!.content) as TeamManifest;
|
|
174
|
+
|
|
175
|
+
expect(manifest.roles).toContain('custom-agent');
|
|
176
|
+
expect(manifest.roles).toHaveLength(13);
|
|
177
|
+
|
|
178
|
+
const roleFile = files.find(f => f.path === 'roles/custom-agent.yaml');
|
|
179
|
+
expect(roleFile).toBeDefined();
|
|
180
|
+
const roleDef = yaml.load(roleFile!.content) as Record<string, unknown>;
|
|
181
|
+
expect(roleDef.name).toBe('custom-agent');
|
|
182
|
+
expect(roleDef.display_name).toBe('Custom Agent');
|
|
183
|
+
expect(roleDef.capabilities).toEqual(['analyze']);
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
it('export preserves model assignments', () => {
|
|
187
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
188
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
189
|
+
|
|
190
|
+
// Set a model
|
|
191
|
+
useConfigStore.getState().setRoleModel('orchestrator', 'opus');
|
|
192
|
+
|
|
193
|
+
const files = compileToYaml();
|
|
194
|
+
const manifest = yaml.load(files.find(f => f.path === 'team.yaml')!.content) as TeamManifest;
|
|
195
|
+
|
|
196
|
+
expect(manifest.topology.root.config?.model).toBe('opus');
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
it('export preserves enforcement mode', () => {
|
|
200
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
201
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
202
|
+
|
|
203
|
+
// Change enforcement
|
|
204
|
+
useConfigStore.getState().setTeam({ enforcement: 'strict' });
|
|
205
|
+
|
|
206
|
+
const files = compileToYaml();
|
|
207
|
+
const manifest = yaml.load(files.find(f => f.path === 'team.yaml')!.content) as TeamManifest;
|
|
208
|
+
|
|
209
|
+
expect(manifest.communication?.enforcement).toBe('strict');
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
it('export produces prompt files when content exists', () => {
|
|
213
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
214
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
215
|
+
|
|
216
|
+
// Add prompt content to a role
|
|
217
|
+
const config = useConfigStore.getState();
|
|
218
|
+
const role = config.roles.get('orchestrator')!;
|
|
219
|
+
config.setRole('orchestrator', {
|
|
220
|
+
...role,
|
|
221
|
+
promptContent: '# Orchestrator\nYou coordinate the team.',
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
const files = compileToYaml();
|
|
225
|
+
const promptFile = files.find(f => f.path === 'prompts/orchestrator/ROLE.md');
|
|
226
|
+
expect(promptFile).toBeDefined();
|
|
227
|
+
expect(promptFile!.content).toContain('# Orchestrator');
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
it('configToCanvas and canvasToManifest are inverses', () => {
|
|
231
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
232
|
+
|
|
233
|
+
// Forward: manifest → canvas
|
|
234
|
+
const canvasState = configToCanvas(tmpl.manifest, tmpl.roles);
|
|
235
|
+
expect(canvasState.nodes.length).toBeGreaterThan(0);
|
|
236
|
+
expect(canvasState.edges.length).toBeGreaterThan(0);
|
|
237
|
+
|
|
238
|
+
// Reverse: config → manifest
|
|
239
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
240
|
+
const config = useConfigStore.getState();
|
|
241
|
+
const roleModels = new Map(Object.entries(config.roleModels));
|
|
242
|
+
const manifest = canvasToManifest(
|
|
243
|
+
config.team,
|
|
244
|
+
config.roles,
|
|
245
|
+
config.channels,
|
|
246
|
+
config.subscriptions,
|
|
247
|
+
config.emissions,
|
|
248
|
+
config.peerRoutes,
|
|
249
|
+
config.spawnRules,
|
|
250
|
+
config.topologyRoot,
|
|
251
|
+
config.topologyCompanions,
|
|
252
|
+
roleModels,
|
|
253
|
+
);
|
|
254
|
+
|
|
255
|
+
expect(manifest.name).toBe(tmpl.manifest.name);
|
|
256
|
+
expect(manifest.roles.length).toBe(tmpl.manifest.roles.length);
|
|
257
|
+
expect(manifest.topology.root.role).toBe(tmpl.manifest.topology.root.role);
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
it('rolesToDefinitions converts config roles to YAML-ready format', () => {
|
|
261
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
262
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
263
|
+
|
|
264
|
+
const config = useConfigStore.getState();
|
|
265
|
+
const defs = rolesToDefinitions(config.roles);
|
|
266
|
+
|
|
267
|
+
expect(defs.size).toBe(12);
|
|
268
|
+
|
|
269
|
+
const orchestrator = defs.get('orchestrator');
|
|
270
|
+
expect(orchestrator).toBeDefined();
|
|
271
|
+
expect(orchestrator?.name).toBe('orchestrator');
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
it('export omits empty emission and subscription arrays', () => {
|
|
275
|
+
resetStores();
|
|
276
|
+
useConfigStore.getState().setTeam({ name: 'minimal' });
|
|
277
|
+
useConfigStore.getState().setRole('root', {
|
|
278
|
+
name: 'root',
|
|
279
|
+
displayName: 'Root',
|
|
280
|
+
description: '',
|
|
281
|
+
capabilities: [],
|
|
282
|
+
});
|
|
283
|
+
useConfigStore.getState().setTopologyRoot('root');
|
|
284
|
+
// Explicitly set empty emissions
|
|
285
|
+
useConfigStore.getState().setEmissions('root', []);
|
|
286
|
+
|
|
287
|
+
const files = compileToYaml();
|
|
288
|
+
const manifest = yaml.load(files.find(f => f.path === 'team.yaml')!.content) as Record<string, unknown>;
|
|
289
|
+
|
|
290
|
+
// Communication section should not contain empty emissions
|
|
291
|
+
const comm = manifest.communication as Record<string, unknown> | undefined;
|
|
292
|
+
if (comm?.emissions) {
|
|
293
|
+
const emissions = comm.emissions as Record<string, string[]>;
|
|
294
|
+
for (const val of Object.values(emissions)) {
|
|
295
|
+
expect(val.length).toBeGreaterThan(0);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
});
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* E2E: Template loading flow
|
|
3
|
+
* Tests that loading a bundled template correctly populates all stores
|
|
4
|
+
* and produces the expected canvas state.
|
|
5
|
+
*/
|
|
6
|
+
import { describe, it, expect, beforeEach } from 'vitest';
|
|
7
|
+
import { useCanvasStore } from '../src/stores/canvas-store';
|
|
8
|
+
import { useConfigStore } from '../src/stores/config-store';
|
|
9
|
+
import { useHistoryStore } from '../src/stores/history-store';
|
|
10
|
+
import { useValidationStore } from '../src/stores/validation-store';
|
|
11
|
+
import { BUNDLED_TEMPLATES } from '../src/lib/bundled-templates';
|
|
12
|
+
import { loadTemplate } from '../src/lib/load-template';
|
|
13
|
+
|
|
14
|
+
function resetStores() {
|
|
15
|
+
useCanvasStore.getState().clear();
|
|
16
|
+
useConfigStore.getState().clear();
|
|
17
|
+
useHistoryStore.getState().clear();
|
|
18
|
+
useValidationStore.getState().clear();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
describe('E2E: Template loading flow', () => {
|
|
22
|
+
beforeEach(resetStores);
|
|
23
|
+
|
|
24
|
+
it('loads gsd template with correct role count', () => {
|
|
25
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
26
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
27
|
+
|
|
28
|
+
const config = useConfigStore.getState();
|
|
29
|
+
expect(config.roles.size).toBe(12);
|
|
30
|
+
expect(config.team.name).toBe('gsd');
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it('creates canvas nodes for each role and channel', () => {
|
|
34
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
35
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
36
|
+
|
|
37
|
+
const canvas = useCanvasStore.getState();
|
|
38
|
+
const roleNodes = canvas.nodes.filter(n => n.data.kind === 'role');
|
|
39
|
+
const channelNodes = canvas.nodes.filter(n => n.data.kind === 'channel');
|
|
40
|
+
|
|
41
|
+
expect(roleNodes.length).toBe(12);
|
|
42
|
+
expect(channelNodes.length).toBe(4);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it('sets topology root and companions correctly', () => {
|
|
46
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
47
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
48
|
+
|
|
49
|
+
const config = useConfigStore.getState();
|
|
50
|
+
expect(config.topologyRoot).toBe('orchestrator');
|
|
51
|
+
expect(config.topologyCompanions).toContain('roadmapper');
|
|
52
|
+
expect(config.topologyCompanions).toContain('verifier');
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('creates peer route edges from routing config', () => {
|
|
56
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
57
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
58
|
+
|
|
59
|
+
const canvas = useCanvasStore.getState();
|
|
60
|
+
const peerEdges = canvas.edges.filter(e => e.data?.kind === 'peer-route');
|
|
61
|
+
const config = useConfigStore.getState();
|
|
62
|
+
|
|
63
|
+
expect(peerEdges.length).toBe(config.peerRoutes.length);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('creates signal flow edges for emissions and subscriptions', () => {
|
|
67
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
68
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
69
|
+
|
|
70
|
+
const canvas = useCanvasStore.getState();
|
|
71
|
+
const signalEdges = canvas.edges.filter(e => e.data?.kind === 'signal-flow');
|
|
72
|
+
const emissionEdges = signalEdges.filter(e => (e.data as any).direction === 'emission');
|
|
73
|
+
const subEdges = signalEdges.filter(e => (e.data as any).direction === 'subscription');
|
|
74
|
+
|
|
75
|
+
// Should have both emission and subscription edges
|
|
76
|
+
expect(emissionEdges.length).toBeGreaterThan(0);
|
|
77
|
+
expect(subEdges.length).toBeGreaterThan(0);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
it('creates spawn edges from spawn_rules', () => {
|
|
81
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
82
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
83
|
+
|
|
84
|
+
const canvas = useCanvasStore.getState();
|
|
85
|
+
const spawnEdges = canvas.edges.filter(e => e.data?.kind === 'spawn');
|
|
86
|
+
const config = useConfigStore.getState();
|
|
87
|
+
|
|
88
|
+
// orchestrator can spawn 11 roles
|
|
89
|
+
const orchestratorSpawns = config.spawnRules['orchestrator'] || [];
|
|
90
|
+
expect(orchestratorSpawns.length).toBe(11);
|
|
91
|
+
|
|
92
|
+
// Spawn edges should match total spawn rules
|
|
93
|
+
const totalSpawnRules = Object.values(config.spawnRules)
|
|
94
|
+
.reduce((sum, targets) => sum + targets.length, 0);
|
|
95
|
+
expect(spawnEdges.length).toBe(totalSpawnRules);
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
it('sets correct topology position on role nodes', () => {
|
|
99
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
100
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
101
|
+
|
|
102
|
+
const canvas = useCanvasStore.getState();
|
|
103
|
+
|
|
104
|
+
const orchestratorNode = canvas.nodes.find(n => n.id === 'role-orchestrator');
|
|
105
|
+
expect(orchestratorNode?.data.topologyPosition).toBe('root');
|
|
106
|
+
|
|
107
|
+
const roadmapperNode = canvas.nodes.find(n => n.id === 'role-roadmapper');
|
|
108
|
+
expect(roadmapperNode?.data.topologyPosition).toBe('companion');
|
|
109
|
+
|
|
110
|
+
const executorNode = canvas.nodes.find(n => n.id === 'role-executor');
|
|
111
|
+
expect(executorNode?.data.topologyPosition).toBe('spawned');
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
it('populates channels in config store', () => {
|
|
115
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
116
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
117
|
+
|
|
118
|
+
const config = useConfigStore.getState();
|
|
119
|
+
const channelNames = Object.keys(config.channels);
|
|
120
|
+
|
|
121
|
+
expect(channelNames).toContain('project_lifecycle');
|
|
122
|
+
expect(channelNames).toContain('planning_events');
|
|
123
|
+
expect(channelNames).toContain('execution_events');
|
|
124
|
+
expect(channelNames).toContain('verification_events');
|
|
125
|
+
|
|
126
|
+
// Check signals exist in channels
|
|
127
|
+
expect(config.channels.project_lifecycle.signals).toContain('PROJECT_INITIALIZED');
|
|
128
|
+
expect(config.channels.execution_events.signals).toContain('WAVE_STARTED');
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it('resets history on template load', () => {
|
|
132
|
+
// Load once
|
|
133
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
134
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
135
|
+
|
|
136
|
+
// Should have exactly one snapshot (the initial push)
|
|
137
|
+
const history = useHistoryStore.getState();
|
|
138
|
+
expect(history.undoStack.length).toBe(1);
|
|
139
|
+
expect(history.redoStack.length).toBe(0);
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
it('loads BMAD template with different structure', () => {
|
|
143
|
+
const tmpl = BUNDLED_TEMPLATES['bmad-method'];
|
|
144
|
+
if (!tmpl) return; // Skip if not available
|
|
145
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
146
|
+
|
|
147
|
+
const config = useConfigStore.getState();
|
|
148
|
+
expect(config.team.name).toBe('bmad-method');
|
|
149
|
+
expect(config.roles.size).toBeGreaterThan(0);
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
it('switching templates replaces all state', () => {
|
|
153
|
+
const gsd = BUNDLED_TEMPLATES['gsd'];
|
|
154
|
+
loadTemplate(gsd.manifest, gsd.roles);
|
|
155
|
+
|
|
156
|
+
const gsdRoleCount = useConfigStore.getState().roles.size;
|
|
157
|
+
|
|
158
|
+
// Load a different template
|
|
159
|
+
const bmad = BUNDLED_TEMPLATES['bmad-method'];
|
|
160
|
+
if (!bmad) return;
|
|
161
|
+
loadTemplate(bmad.manifest, bmad.roles);
|
|
162
|
+
|
|
163
|
+
const bmadRoleCount = useConfigStore.getState().roles.size;
|
|
164
|
+
expect(bmadRoleCount).not.toBe(gsdRoleCount);
|
|
165
|
+
expect(useConfigStore.getState().team.name).toBe('bmad-method');
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
it('populates emission and subscription mappings', () => {
|
|
169
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
170
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
171
|
+
|
|
172
|
+
const config = useConfigStore.getState();
|
|
173
|
+
|
|
174
|
+
// Emissions should have at least one role
|
|
175
|
+
const emittingRoles = Object.keys(config.emissions);
|
|
176
|
+
expect(emittingRoles.length).toBeGreaterThan(0);
|
|
177
|
+
|
|
178
|
+
// Subscriptions should have at least one role
|
|
179
|
+
const subscribingRoles = Object.keys(config.subscriptions);
|
|
180
|
+
expect(subscribingRoles.length).toBeGreaterThan(0);
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
it('extracts extensions from manifest', () => {
|
|
184
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
185
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
186
|
+
|
|
187
|
+
const config = useConfigStore.getState();
|
|
188
|
+
// GSD has a gsd extension key in the manifest
|
|
189
|
+
const hasExtensions = Object.keys(config.team.extensions).length > 0;
|
|
190
|
+
// It may or may not have extensions depending on the bundled template
|
|
191
|
+
// At minimum the extensions object should exist
|
|
192
|
+
expect(config.team.extensions).toBeDefined();
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
it('auto-layouts nodes with non-zero positions', () => {
|
|
196
|
+
const tmpl = BUNDLED_TEMPLATES['gsd'];
|
|
197
|
+
loadTemplate(tmpl.manifest, tmpl.roles);
|
|
198
|
+
|
|
199
|
+
const canvas = useCanvasStore.getState();
|
|
200
|
+
// At least some nodes should have been positioned by dagre
|
|
201
|
+
const positioned = canvas.nodes.filter(n => n.position.x !== 0 || n.position.y !== 0);
|
|
202
|
+
expect(positioned.length).toBeGreaterThan(0);
|
|
203
|
+
});
|
|
204
|
+
});
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* E2E: UI store and layer toggles
|
|
3
|
+
* Tests the UI state management, panel visibility,
|
|
4
|
+
* and layer toggling behavior.
|
|
5
|
+
*/
|
|
6
|
+
import { describe, it, expect, beforeEach } from 'vitest';
|
|
7
|
+
import { useUIStore } from '../src/stores/ui-store';
|
|
8
|
+
|
|
9
|
+
function resetUI() {
|
|
10
|
+
// Reset to defaults by toggling back if needed
|
|
11
|
+
const state = useUIStore.getState();
|
|
12
|
+
if (!state.sidebarOpen) state.toggleSidebar();
|
|
13
|
+
if (!state.inspectorOpen) state.toggleInspector();
|
|
14
|
+
if (state.importModalOpen) state.setImportModalOpen(false);
|
|
15
|
+
if (state.exportModalOpen) state.setExportModalOpen(false);
|
|
16
|
+
// Reset layers to defaults
|
|
17
|
+
if (!state.layers.peerRoutes) state.toggleLayer('peerRoutes');
|
|
18
|
+
if (!state.layers.channels) state.toggleLayer('channels');
|
|
19
|
+
if (state.layers.spawnRules) state.toggleLayer('spawnRules');
|
|
20
|
+
if (state.layers.inheritance) state.toggleLayer('inheritance');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
describe('E2E: UI store and layers', () => {
|
|
24
|
+
beforeEach(resetUI);
|
|
25
|
+
|
|
26
|
+
describe('Panel visibility', () => {
|
|
27
|
+
it('sidebar starts open', () => {
|
|
28
|
+
expect(useUIStore.getState().sidebarOpen).toBe(true);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('toggle sidebar hides and shows it', () => {
|
|
32
|
+
useUIStore.getState().toggleSidebar();
|
|
33
|
+
expect(useUIStore.getState().sidebarOpen).toBe(false);
|
|
34
|
+
|
|
35
|
+
useUIStore.getState().toggleSidebar();
|
|
36
|
+
expect(useUIStore.getState().sidebarOpen).toBe(true);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('inspector starts open', () => {
|
|
40
|
+
expect(useUIStore.getState().inspectorOpen).toBe(true);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('toggle inspector hides and shows it', () => {
|
|
44
|
+
useUIStore.getState().toggleInspector();
|
|
45
|
+
expect(useUIStore.getState().inspectorOpen).toBe(false);
|
|
46
|
+
|
|
47
|
+
useUIStore.getState().toggleInspector();
|
|
48
|
+
expect(useUIStore.getState().inspectorOpen).toBe(true);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
it('modals start closed', () => {
|
|
52
|
+
expect(useUIStore.getState().importModalOpen).toBe(false);
|
|
53
|
+
expect(useUIStore.getState().exportModalOpen).toBe(false);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it('opening import modal', () => {
|
|
57
|
+
useUIStore.getState().setImportModalOpen(true);
|
|
58
|
+
expect(useUIStore.getState().importModalOpen).toBe(true);
|
|
59
|
+
|
|
60
|
+
useUIStore.getState().setImportModalOpen(false);
|
|
61
|
+
expect(useUIStore.getState().importModalOpen).toBe(false);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it('opening export modal', () => {
|
|
65
|
+
useUIStore.getState().setExportModalOpen(true);
|
|
66
|
+
expect(useUIStore.getState().exportModalOpen).toBe(true);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
describe('Layer toggles', () => {
|
|
71
|
+
it('peer routes layer starts on', () => {
|
|
72
|
+
expect(useUIStore.getState().layers.peerRoutes).toBe(true);
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
it('channels layer starts on', () => {
|
|
76
|
+
expect(useUIStore.getState().layers.channels).toBe(true);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it('spawn rules layer starts off', () => {
|
|
80
|
+
expect(useUIStore.getState().layers.spawnRules).toBe(false);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it('inheritance layer starts off', () => {
|
|
84
|
+
expect(useUIStore.getState().layers.inheritance).toBe(false);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it('toggling a layer flips its state', () => {
|
|
88
|
+
useUIStore.getState().toggleLayer('peerRoutes');
|
|
89
|
+
expect(useUIStore.getState().layers.peerRoutes).toBe(false);
|
|
90
|
+
|
|
91
|
+
useUIStore.getState().toggleLayer('peerRoutes');
|
|
92
|
+
expect(useUIStore.getState().layers.peerRoutes).toBe(true);
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it('toggling one layer does not affect others', () => {
|
|
96
|
+
useUIStore.getState().toggleLayer('spawnRules');
|
|
97
|
+
|
|
98
|
+
expect(useUIStore.getState().layers.spawnRules).toBe(true);
|
|
99
|
+
expect(useUIStore.getState().layers.peerRoutes).toBe(true);
|
|
100
|
+
expect(useUIStore.getState().layers.channels).toBe(true);
|
|
101
|
+
expect(useUIStore.getState().layers.inheritance).toBe(false);
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
it('all layers can be turned on simultaneously', () => {
|
|
105
|
+
useUIStore.getState().toggleLayer('spawnRules');
|
|
106
|
+
useUIStore.getState().toggleLayer('inheritance');
|
|
107
|
+
|
|
108
|
+
const layers = useUIStore.getState().layers;
|
|
109
|
+
expect(layers.peerRoutes).toBe(true);
|
|
110
|
+
expect(layers.channels).toBe(true);
|
|
111
|
+
expect(layers.spawnRules).toBe(true);
|
|
112
|
+
expect(layers.inheritance).toBe(true);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
it('all layers can be turned off simultaneously', () => {
|
|
116
|
+
useUIStore.getState().toggleLayer('peerRoutes');
|
|
117
|
+
useUIStore.getState().toggleLayer('channels');
|
|
118
|
+
|
|
119
|
+
const layers = useUIStore.getState().layers;
|
|
120
|
+
expect(layers.peerRoutes).toBe(false);
|
|
121
|
+
expect(layers.channels).toBe(false);
|
|
122
|
+
expect(layers.spawnRules).toBe(false);
|
|
123
|
+
expect(layers.inheritance).toBe(false);
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
});
|