prjct-cli 0.35.2 → 0.35.4
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/core/commands/analysis.ts +58 -32
- package/core/commands/command-data.ts +11 -50
- package/core/commands/commands.ts +18 -21
- package/core/commands/context.ts +238 -0
- package/core/commands/register.ts +7 -5
- package/core/commands/setup.ts +1 -17
- package/core/commands/workflow.ts +3 -2
- package/core/index.ts +2 -4
- package/core/services/index.ts +2 -0
- package/core/services/sync-service.ts +1080 -0
- package/core/types/commands.ts +0 -12
- package/core/types/index.ts +0 -1
- package/dist/bin/prjct.mjs +1219 -310
- package/package.json +2 -8
- package/templates/_bases/tracker-base.md +309 -0
- package/templates/agentic/agent-routing.md +22 -88
- package/templates/agentic/agents/uxui.md +42 -197
- package/templates/agentic/context-filtering.md +14 -56
- package/templates/agentic/orchestrator.md +31 -365
- package/templates/agentic/skill-integration.md +37 -289
- package/templates/agentic/subagent-generation.md +31 -104
- package/templates/agentic/task-fragmentation.md +39 -273
- package/templates/agents/AGENTS.md +32 -188
- package/templates/commands/bug.md +22 -520
- package/templates/commands/dash.md +26 -161
- package/templates/commands/done.md +19 -250
- package/templates/commands/enrich.md +21 -732
- package/templates/commands/github.md +9 -0
- package/templates/commands/history.md +296 -83
- package/templates/commands/idea.md +18 -160
- package/templates/commands/init.md +20 -209
- package/templates/commands/jira.md +9 -0
- package/templates/commands/linear.md +9 -0
- package/templates/commands/merge.md +21 -185
- package/templates/commands/monday.md +9 -0
- package/templates/commands/next.md +21 -103
- package/templates/commands/p.md +198 -63
- package/templates/commands/pause.md +21 -272
- package/templates/commands/resume.md +19 -348
- package/templates/commands/setup.md +0 -1
- package/templates/commands/ship.md +30 -627
- package/templates/commands/sync.md +11 -1345
- package/templates/commands/task.md +17 -439
- package/templates/commands/test.md +30 -259
- package/CLAUDE.md +0 -211
- package/packages/shared/node_modules/@types/bun/LICENSE +0 -21
- package/packages/shared/node_modules/@types/bun/README.md +0 -20
- package/packages/shared/node_modules/@types/bun/index.d.ts +0 -1
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/CLAUDE.md +0 -105
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/README.md +0 -33
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/bun.d.ts +0 -7032
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/bun.ns.d.ts +0 -5
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/bundle.d.ts +0 -74
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/deprecated.d.ts +0 -184
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/devserver.d.ts +0 -187
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/README.md +0 -28
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/bytecode.mdx +0 -465
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/css.mdx +0 -1024
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/esbuild.mdx +0 -298
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/executables.mdx +0 -1277
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/fullstack.mdx +0 -1086
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/hot-reloading.mdx +0 -229
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/html-static.mdx +0 -488
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/index.mdx +0 -1604
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/loaders.mdx +0 -451
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/macros.mdx +0 -328
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/minifier.mdx +0 -1286
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/bundler/plugins.mdx +0 -425
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/feedback.mdx +0 -75
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/arraybuffer-to-array.mdx +0 -29
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/arraybuffer-to-blob.mdx +0 -26
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/arraybuffer-to-buffer.mdx +0 -27
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/arraybuffer-to-string.mdx +0 -17
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/arraybuffer-to-typedarray.mdx +0 -41
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/blob-to-arraybuffer.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/blob-to-dataview.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/blob-to-stream.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/blob-to-string.mdx +0 -17
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/blob-to-typedarray.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/buffer-to-arraybuffer.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/buffer-to-blob.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/buffer-to-readablestream.mdx +0 -43
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/buffer-to-string.mdx +0 -27
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/buffer-to-typedarray.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/dataview-to-string.mdx +0 -17
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/typedarray-to-arraybuffer.mdx +0 -27
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/typedarray-to-blob.mdx +0 -18
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/typedarray-to-buffer.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/typedarray-to-dataview.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/typedarray-to-readablestream.mdx +0 -43
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/binary/typedarray-to-string.mdx +0 -18
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/deployment/aws-lambda.mdx +0 -204
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/deployment/digital-ocean.mdx +0 -161
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/deployment/google-cloud-run.mdx +0 -194
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/deployment/railway.mdx +0 -145
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/deployment/render.mdx +0 -82
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/deployment/vercel.mdx +0 -97
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/astro.mdx +0 -82
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/discordjs.mdx +0 -80
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/docker.mdx +0 -151
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/drizzle.mdx +0 -195
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/elysia.mdx +0 -31
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/express.mdx +0 -43
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/gel.mdx +0 -261
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/hono.mdx +0 -47
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/mongoose.mdx +0 -92
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/neon-drizzle.mdx +0 -234
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/neon-serverless-postgres.mdx +0 -60
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/nextjs.mdx +0 -103
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/nuxt.mdx +0 -96
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/pm2.mdx +0 -55
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/prisma-postgres.mdx +0 -169
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/prisma.mdx +0 -164
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/qwik.mdx +0 -114
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/react.mdx +0 -52
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/remix.mdx +0 -97
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/sentry.mdx +0 -54
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/solidstart.mdx +0 -62
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/ssr-react.mdx +0 -49
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/stric.mdx +0 -54
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/sveltekit.mdx +0 -138
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/systemd.mdx +0 -114
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/tanstack-start.mdx +0 -791
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/upstash.mdx +0 -87
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/ecosystem/vite.mdx +0 -77
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/html-rewriter/extract-links.mdx +0 -71
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/html-rewriter/extract-social-meta.mdx +0 -97
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/cluster.mdx +0 -69
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/fetch-unix.mdx +0 -35
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/fetch.mdx +0 -26
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/file-uploads.mdx +0 -97
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/hot.mdx +0 -28
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/proxy.mdx +0 -50
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/server.mdx +0 -48
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/simple.mdx +0 -20
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/stream-file.mdx +0 -50
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/stream-iterator.mdx +0 -49
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/stream-node-streams-in-bun.mdx +0 -22
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/http/tls.mdx +0 -32
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/index.mdx +0 -10
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/add-dev.mdx +0 -28
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/add-git.mdx +0 -40
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/add-optional.mdx +0 -27
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/add-peer.mdx +0 -45
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/add-tarball.mdx +0 -35
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/add.mdx +0 -44
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/azure-artifacts.mdx +0 -76
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/cicd.mdx +0 -43
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/custom-registry.mdx +0 -32
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/from-npm-install-to-bun-install.mdx +0 -230
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/git-diff-bun-lockfile.mdx +0 -48
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/jfrog-artifactory.mdx +0 -28
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/npm-alias.mdx +0 -25
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/registry-scope.mdx +0 -40
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/trusted.mdx +0 -52
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/workspaces.mdx +0 -70
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/install/yarnlock.mdx +0 -51
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/process/argv.mdx +0 -66
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/process/ctrl-c.mdx +0 -18
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/process/ipc.mdx +0 -69
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/process/nanoseconds.mdx +0 -15
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/process/os-signals.mdx +0 -31
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/process/spawn-stderr.mdx +0 -34
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/process/spawn-stdout.mdx +0 -28
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/process/spawn.mdx +0 -43
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/process/stdin.mdx +0 -62
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/read-file/arraybuffer.mdx +0 -30
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/read-file/buffer.mdx +0 -21
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/read-file/exists.mdx +0 -18
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/read-file/json.mdx +0 -19
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/read-file/mime.mdx +0 -22
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/read-file/stream.mdx +0 -28
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/read-file/string.mdx +0 -24
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/read-file/uint8array.mdx +0 -23
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/read-file/watch.mdx +0 -66
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/build-time-constants.mdx +0 -295
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/cicd.mdx +0 -45
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/codesign-macos-executable.mdx +0 -61
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/define-constant.mdx +0 -149
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/delete-directory.mdx +0 -39
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/delete-file.mdx +0 -21
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/heap-snapshot.mdx +0 -28
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/import-html.mdx +0 -15
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/import-json.mdx +0 -46
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/import-toml.mdx +0 -32
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/import-yaml.mdx +0 -104
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/read-env.mdx +0 -37
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/set-env.mdx +0 -51
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/shell.mdx +0 -42
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/timezone.mdx +0 -38
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/tsconfig-paths.mdx +0 -31
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/typescript.mdx +0 -51
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/vscode-debugger.mdx +0 -47
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/runtime/web-debugger.mdx +0 -103
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/node-readable-to-arraybuffer.mdx +0 -13
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/node-readable-to-blob.mdx +0 -13
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/node-readable-to-json.mdx +0 -14
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/node-readable-to-string.mdx +0 -14
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/node-readable-to-uint8array.mdx +0 -13
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/to-array.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/to-arraybuffer.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/to-blob.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/to-buffer.mdx +0 -17
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/to-json.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/to-string.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/streams/to-typedarray.mdx +0 -24
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/bail.mdx +0 -24
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/concurrent-test-glob.mdx +0 -146
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/coverage-threshold.mdx +0 -67
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/coverage.mdx +0 -49
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/happy-dom.mdx +0 -73
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/migrate-from-jest.mdx +0 -125
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/mock-clock.mdx +0 -50
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/mock-functions.mdx +0 -70
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/rerun-each.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/run-tests.mdx +0 -116
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/skip-tests.mdx +0 -43
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/snapshot.mdx +0 -102
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/spy-on.mdx +0 -49
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/svelte-test.mdx +0 -113
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/testing-library.mdx +0 -93
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/timeout.mdx +0 -17
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/todo-tests.mdx +0 -74
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/update-snapshots.mdx +0 -49
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/test/watch-mode.mdx +0 -24
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/base64.mdx +0 -17
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/deep-equals.mdx +0 -41
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/deflate.mdx +0 -20
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/detect-bun.mdx +0 -28
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/entrypoint.mdx +0 -19
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/escape-html.mdx +0 -24
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/file-url-to-path.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/gzip.mdx +0 -20
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/hash-a-password.mdx +0 -56
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/import-meta-dir.mdx +0 -15
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/import-meta-file.mdx +0 -15
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/import-meta-path.mdx +0 -15
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/javascript-uuid.mdx +0 -25
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/main.mdx +0 -43
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/path-to-file-url.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/sleep.mdx +0 -24
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/upgrade.mdx +0 -93
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/version.mdx +0 -23
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/util/which-path-to-executable-bin.mdx +0 -17
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/websocket/compression.mdx +0 -33
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/websocket/context.mdx +0 -79
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/websocket/pubsub.mdx +0 -43
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/websocket/simple.mdx +0 -38
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/append.mdx +0 -54
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/basic.mdx +0 -46
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/blob.mdx +0 -30
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/cat.mdx +0 -19
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/file-cp.mdx +0 -18
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/filesink.mdx +0 -54
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/response.mdx +0 -19
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/stdout.mdx +0 -23
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/stream.mdx +0 -19
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/guides/write-file/unlink.mdx +0 -18
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/index.mdx +0 -133
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/installation.mdx +0 -365
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/bunx.mdx +0 -91
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/catalogs.mdx +0 -292
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/add.mdx +0 -179
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/audit.mdx +0 -60
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/info.mdx +0 -70
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/install.mdx +0 -606
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/link.mdx +0 -61
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/outdated.mdx +0 -197
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/patch.mdx +0 -69
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/pm.mdx +0 -323
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/publish.mdx +0 -131
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/remove.mdx +0 -16
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/update.mdx +0 -140
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/cli/why.mdx +0 -84
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/filter.mdx +0 -102
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/global-cache.mdx +0 -72
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/isolated-installs.mdx +0 -220
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/lifecycle.mdx +0 -64
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/lockfile.mdx +0 -64
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/npmrc.mdx +0 -111
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/overrides.mdx +0 -83
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/scopes-registries.mdx +0 -35
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/security-scanner-api.mdx +0 -95
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/pm/workspaces.mdx +0 -115
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/project/benchmarking.mdx +0 -241
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/project/bindgen.mdx +0 -223
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/project/building-windows.mdx +0 -133
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/project/contributing.mdx +0 -388
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/project/feedback.mdx +0 -20
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/project/license.mdx +0 -78
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/project/roadmap.mdx +0 -8
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/quickstart.mdx +0 -251
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/auto-install.mdx +0 -97
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/binary-data.mdx +0 -846
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/bun-apis.mdx +0 -59
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/bunfig.mdx +0 -723
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/c-compiler.mdx +0 -204
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/child-process.mdx +0 -659
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/color.mdx +0 -267
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/console.mdx +0 -67
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/cookies.mdx +0 -454
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/debugger.mdx +0 -335
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/environment-variables.mdx +0 -231
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/ffi.mdx +0 -565
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/file-io.mdx +0 -306
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/file-system-router.mdx +0 -118
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/file-types.mdx +0 -435
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/glob.mdx +0 -181
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/globals.mdx +0 -72
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/hashing.mdx +0 -315
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/html-rewriter.mdx +0 -333
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/http/cookies.mdx +0 -79
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/http/error-handling.mdx +0 -40
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/http/metrics.mdx +0 -36
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/http/routing.mdx +0 -289
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/http/server.mdx +0 -645
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/http/tls.mdx +0 -101
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/http/websockets.mdx +0 -414
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/index.mdx +0 -223
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/jsx.mdx +0 -115
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/module-resolution.mdx +0 -374
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/networking/dns.mdx +0 -111
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/networking/fetch.mdx +0 -484
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/networking/tcp.mdx +0 -239
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/networking/udp.mdx +0 -129
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/node-api.mdx +0 -19
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/nodejs-compat.mdx +0 -468
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/plugins.mdx +0 -419
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/redis.mdx +0 -583
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/s3.mdx +0 -863
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/secrets.mdx +0 -340
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/semver.mdx +0 -57
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/shell.mdx +0 -637
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/sql.mdx +0 -1404
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/sqlite.mdx +0 -721
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/streams.mdx +0 -232
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/templating/create.mdx +0 -269
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/templating/init.mdx +0 -58
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/transpiler.mdx +0 -288
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/typescript.mdx +0 -58
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/utils.mdx +0 -922
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/watch-mode.mdx +0 -161
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/web-apis.mdx +0 -29
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/workers.mdx +0 -314
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/runtime/yaml.mdx +0 -469
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/add.mdx +0 -166
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/build.mdx +0 -196
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/bunx.mdx +0 -49
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/feedback.mdx +0 -17
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/init.mdx +0 -84
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/install.mdx +0 -173
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/link.mdx +0 -163
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/outdated.mdx +0 -140
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/patch.mdx +0 -171
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/publish.mdx +0 -198
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/remove.mdx +0 -146
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/run.mdx +0 -293
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/test.mdx +0 -100
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/snippets/cli/update.mdx +0 -144
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/code-coverage.mdx +0 -409
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/configuration.mdx +0 -514
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/dates-times.mdx +0 -129
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/discovery.mdx +0 -90
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/dom.mdx +0 -226
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/index.mdx +0 -380
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/lifecycle.mdx +0 -366
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/mocks.mdx +0 -637
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/reporters.mdx +0 -126
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/runtime-behavior.mdx +0 -342
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/snapshots.mdx +0 -434
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/test/writing-tests.mdx +0 -672
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/docs/typescript.mdx +0 -54
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/extensions.d.ts +0 -35
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/fetch.d.ts +0 -79
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/ffi.d.ts +0 -1154
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/globals.d.ts +0 -2067
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/html-rewriter.d.ts +0 -186
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/index.d.ts +0 -32
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/jsc.d.ts +0 -233
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/overrides.d.ts +0 -376
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/package.json +0 -37
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/redis.d.ts +0 -3352
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/s3.d.ts +0 -1299
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/security.d.ts +0 -101
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/serve.d.ts +0 -1296
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/shell.d.ts +0 -380
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/sql.d.ts +0 -887
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/sqlite.d.ts +0 -1321
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/test-globals.d.ts +0 -22
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/test.d.ts +0 -2391
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/vendor/expect-type/branding.d.ts +0 -283
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/vendor/expect-type/index.d.ts +0 -1207
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/vendor/expect-type/messages.d.ts +0 -395
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/vendor/expect-type/overloads.d.ts +0 -669
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/vendor/expect-type/utils.d.ts +0 -431
- package/packages/shared/node_modules/@types/bun/node_modules/bun-types/wasm.d.ts +0 -193
- package/packages/shared/node_modules/@types/bun/package.json +0 -53
- package/packages/shared/package.json +0 -29
- package/packages/shared/src/index.ts +0 -10
- package/packages/shared/src/schemas.ts +0 -124
- package/packages/shared/src/types.ts +0 -187
- package/packages/shared/src/unified.ts +0 -174
- package/packages/shared/src/utils.ts +0 -148
- package/packages/shared/tsconfig.json +0 -18
- package/templates/commands/redo.md +0 -144
- package/templates/commands/undo.md +0 -154
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
import analyzer from '../domain/analyzer'
|
|
17
17
|
import { generateContext } from '../context/generator'
|
|
18
18
|
import commandInstaller from '../infrastructure/command-installer'
|
|
19
|
+
import { syncService } from '../services'
|
|
19
20
|
|
|
20
21
|
export class AnalysisCommands extends PrjctCommandsBase {
|
|
21
22
|
/**
|
|
@@ -189,58 +190,83 @@ export class AnalysisCommands extends PrjctCommandsBase {
|
|
|
189
190
|
}
|
|
190
191
|
|
|
191
192
|
/**
|
|
192
|
-
* /p:sync -
|
|
193
|
+
* /p:sync - Comprehensive project sync
|
|
193
194
|
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
195
|
+
* Uses syncService to do ALL operations in one TypeScript execution:
|
|
196
|
+
* - Git analysis
|
|
197
|
+
* - Project stats
|
|
198
|
+
* - Agent generation
|
|
199
|
+
* - Context file generation
|
|
200
|
+
* - Skill configuration
|
|
201
|
+
* - State updates
|
|
202
|
+
*
|
|
203
|
+
* This eliminates the need for Claude to make 50+ individual tool calls.
|
|
197
204
|
*/
|
|
198
205
|
async sync(projectPath: string = process.cwd()): Promise<CommandResult> {
|
|
199
206
|
try {
|
|
200
207
|
const initResult = await this.ensureProjectInit(projectPath)
|
|
201
208
|
if (!initResult.success) return initResult
|
|
202
209
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
console.log('🔄 Syncing project state...\n')
|
|
210
|
+
console.log('🔄 Syncing project...\n')
|
|
206
211
|
|
|
207
|
-
//
|
|
208
|
-
|
|
209
|
-
const analysisResult = await this.analyze({}, projectPath)
|
|
212
|
+
// Use syncService to do EVERYTHING in one call
|
|
213
|
+
const result = await syncService.sync(projectPath)
|
|
210
214
|
|
|
211
|
-
if (!
|
|
212
|
-
console.error('❌
|
|
213
|
-
return
|
|
215
|
+
if (!result.success) {
|
|
216
|
+
console.error('❌ Sync failed:', result.error)
|
|
217
|
+
return { success: false, error: result.error }
|
|
214
218
|
}
|
|
215
219
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
// 2. Generate CLAUDE.md with RAW DATA (no processing)
|
|
219
|
-
// Claude will read this and decide what to do
|
|
220
|
-
await generateContext(projectId!, projectPath)
|
|
221
|
-
|
|
222
|
-
// 3. Update global config
|
|
220
|
+
// Update global config
|
|
223
221
|
const globalConfigResult = await commandInstaller.installGlobalConfig()
|
|
224
222
|
if (globalConfigResult.success) {
|
|
225
223
|
console.log('📝 Updated ~/.claude/CLAUDE.md')
|
|
226
224
|
}
|
|
227
225
|
|
|
228
|
-
//
|
|
229
|
-
|
|
230
|
-
timestamp: dateHelper.getTimestamp(),
|
|
231
|
-
projectId,
|
|
232
|
-
})
|
|
226
|
+
// Format output
|
|
227
|
+
console.log(`🔄 Project synced to prjct v${result.cliVersion}\n`)
|
|
233
228
|
|
|
234
|
-
console.log('
|
|
235
|
-
console.log(
|
|
236
|
-
console.log(
|
|
237
|
-
console.log(
|
|
238
|
-
console.log(
|
|
239
|
-
|
|
240
|
-
console.log('
|
|
229
|
+
console.log('📊 Project Stats')
|
|
230
|
+
console.log(`├── Files: ~${result.stats.fileCount}`)
|
|
231
|
+
console.log(`├── Commits: ${result.git.commits}`)
|
|
232
|
+
console.log(`├── Version: ${result.stats.version}`)
|
|
233
|
+
console.log(`└── Stack: ${result.stats.ecosystem}\n`)
|
|
234
|
+
|
|
235
|
+
console.log('🌿 Git Status')
|
|
236
|
+
console.log(`├── Branch: ${result.git.branch}`)
|
|
237
|
+
console.log(`├── Uncommitted: ${result.git.hasChanges ? 'Yes' : 'Clean'}`)
|
|
238
|
+
console.log(`└── Recent: ${result.git.weeklyCommits} commits this week\n`)
|
|
239
|
+
|
|
240
|
+
console.log('📁 Context Updated')
|
|
241
|
+
for (const file of result.contextFiles) {
|
|
242
|
+
console.log(`├── ${file}`)
|
|
243
|
+
}
|
|
244
|
+
console.log('')
|
|
245
|
+
|
|
246
|
+
const workflowAgents = result.agents.filter(a => a.type === 'workflow').map(a => a.name)
|
|
247
|
+
const domainAgents = result.agents.filter(a => a.type === 'domain').map(a => a.name)
|
|
248
|
+
|
|
249
|
+
console.log(`🤖 Agents Regenerated (${result.agents.length})`)
|
|
250
|
+
console.log(`├── Workflow: ${workflowAgents.join(', ')}`)
|
|
251
|
+
console.log(`└── Domain: ${domainAgents.join(', ') || 'none'}\n`)
|
|
252
|
+
|
|
253
|
+
if (result.skills.length > 0) {
|
|
254
|
+
console.log('📦 Skills Configured')
|
|
255
|
+
for (const skill of result.skills) {
|
|
256
|
+
console.log(`├── ${skill.agent}.md → ${skill.skill}`)
|
|
257
|
+
}
|
|
258
|
+
console.log('')
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
if (result.git.hasChanges) {
|
|
262
|
+
console.log('⚠️ You have uncommitted changes\n')
|
|
263
|
+
} else {
|
|
264
|
+
console.log('✨ Repository is clean!\n')
|
|
265
|
+
}
|
|
241
266
|
|
|
242
267
|
return {
|
|
243
268
|
success: true,
|
|
269
|
+
data: result,
|
|
244
270
|
}
|
|
245
271
|
} catch (error) {
|
|
246
272
|
console.error('❌ Error:', (error as Error).message)
|
|
@@ -62,17 +62,6 @@ export const COMMANDS: CommandMeta[] = [
|
|
|
62
62
|
requiresProject: true,
|
|
63
63
|
features: ['Agentic type classification', '7-phase workflow', 'Git branch management', 'Task breakdown'],
|
|
64
64
|
},
|
|
65
|
-
{
|
|
66
|
-
name: 'feature',
|
|
67
|
-
group: 'core',
|
|
68
|
-
description: 'DEPRECATED - Use /p:task instead',
|
|
69
|
-
usage: { claude: '/p:task "<description>"', terminal: 'prjct task "<description>"' },
|
|
70
|
-
params: '<description>',
|
|
71
|
-
implemented: true,
|
|
72
|
-
hasTemplate: true,
|
|
73
|
-
requiresProject: true,
|
|
74
|
-
deprecated: true,
|
|
75
|
-
},
|
|
76
65
|
{
|
|
77
66
|
name: 'spec',
|
|
78
67
|
group: 'core',
|
|
@@ -83,28 +72,6 @@ export const COMMANDS: CommandMeta[] = [
|
|
|
83
72
|
hasTemplate: true,
|
|
84
73
|
requiresProject: true,
|
|
85
74
|
},
|
|
86
|
-
{
|
|
87
|
-
name: 'now',
|
|
88
|
-
group: 'core',
|
|
89
|
-
description: 'DEPRECATED - Use /p:task instead',
|
|
90
|
-
usage: { claude: '/p:task "<description>"', terminal: 'prjct task "<description>"' },
|
|
91
|
-
params: '[task]',
|
|
92
|
-
implemented: true,
|
|
93
|
-
hasTemplate: true,
|
|
94
|
-
requiresProject: true,
|
|
95
|
-
deprecated: true,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'work',
|
|
99
|
-
group: 'core',
|
|
100
|
-
description: 'DEPRECATED - Use /p:task instead',
|
|
101
|
-
usage: { claude: '/p:task "<description>"', terminal: 'prjct task "<description>"' },
|
|
102
|
-
params: '[task]',
|
|
103
|
-
implemented: true,
|
|
104
|
-
hasTemplate: true,
|
|
105
|
-
requiresProject: true,
|
|
106
|
-
deprecated: true,
|
|
107
|
-
},
|
|
108
75
|
{
|
|
109
76
|
name: 'pause',
|
|
110
77
|
group: 'core',
|
|
@@ -328,16 +295,6 @@ export const COMMANDS: CommandMeta[] = [
|
|
|
328
295
|
hasTemplate: true,
|
|
329
296
|
requiresProject: true,
|
|
330
297
|
},
|
|
331
|
-
{
|
|
332
|
-
name: 'migrate-all',
|
|
333
|
-
group: 'setup',
|
|
334
|
-
description: 'Migrate all legacy projects to UUID format',
|
|
335
|
-
usage: { claude: '/p:migrate-all', terminal: 'prjct migrate-all' },
|
|
336
|
-
params: '[--deep-scan] [--dry-run]',
|
|
337
|
-
implemented: true,
|
|
338
|
-
hasTemplate: true,
|
|
339
|
-
requiresProject: false,
|
|
340
|
-
},
|
|
341
298
|
{
|
|
342
299
|
name: 'auth',
|
|
343
300
|
group: 'setup',
|
|
@@ -348,12 +305,16 @@ export const COMMANDS: CommandMeta[] = [
|
|
|
348
305
|
hasTemplate: true,
|
|
349
306
|
requiresProject: false,
|
|
350
307
|
},
|
|
308
|
+
{
|
|
309
|
+
name: 'context',
|
|
310
|
+
group: 'setup',
|
|
311
|
+
description: 'Get project context as JSON for Claude templates',
|
|
312
|
+
usage: { claude: null, terminal: 'prjct context <command> [args]' },
|
|
313
|
+
params: '<command> [args]',
|
|
314
|
+
implemented: true,
|
|
315
|
+
hasTemplate: false,
|
|
316
|
+
requiresProject: true,
|
|
317
|
+
features: ['Returns JSON with project context', 'Runs orchestrator', 'Loads agents and skills'],
|
|
318
|
+
},
|
|
351
319
|
]
|
|
352
320
|
|
|
353
|
-
// Legacy compatibility - category field mapping
|
|
354
|
-
export function getCommandsWithCategory(): Array<CommandMeta & { category: string }> {
|
|
355
|
-
return COMMANDS.map(cmd => ({
|
|
356
|
-
...cmd,
|
|
357
|
-
category: cmd.group, // Map group to category for backward compat
|
|
358
|
-
}))
|
|
359
|
-
}
|
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
*
|
|
4
4
|
* MD-First Architecture - All state in Markdown files.
|
|
5
5
|
*
|
|
6
|
-
* COMMANDS
|
|
7
|
-
* - Workflow
|
|
8
|
-
* - Planning
|
|
9
|
-
* - Shipping
|
|
10
|
-
* - Analytics
|
|
11
|
-
* - Maintenance
|
|
12
|
-
* - Analysis
|
|
13
|
-
* - Setup
|
|
6
|
+
* COMMANDS:
|
|
7
|
+
* - Workflow: done, next, pause, resume
|
|
8
|
+
* - Planning: init, bug, idea, spec
|
|
9
|
+
* - Shipping: ship
|
|
10
|
+
* - Analytics: dash, help
|
|
11
|
+
* - Maintenance: cleanup, design, recover, undo, redo, history
|
|
12
|
+
* - Analysis: analyze, sync
|
|
13
|
+
* - Setup: start, setup
|
|
14
|
+
* - Context: context
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
import { WorkflowCommands } from './workflow'
|
|
@@ -20,6 +21,7 @@ import { AnalyticsCommands } from './analytics'
|
|
|
20
21
|
import { MaintenanceCommands } from './maintenance'
|
|
21
22
|
import { AnalysisCommands } from './analysis'
|
|
22
23
|
import { SetupCommands } from './setup'
|
|
24
|
+
import { ContextCommands } from './context'
|
|
23
25
|
|
|
24
26
|
import type {
|
|
25
27
|
CommandResult,
|
|
@@ -28,7 +30,6 @@ import type {
|
|
|
28
30
|
DesignOptions,
|
|
29
31
|
CleanupOptions,
|
|
30
32
|
SetupOptions,
|
|
31
|
-
MigrateOptions,
|
|
32
33
|
AnalyzeOptions
|
|
33
34
|
} from '../types'
|
|
34
35
|
|
|
@@ -45,6 +46,7 @@ class PrjctCommands {
|
|
|
45
46
|
private maintenance: MaintenanceCommands
|
|
46
47
|
private analysis: AnalysisCommands
|
|
47
48
|
private setupCmds: SetupCommands
|
|
49
|
+
private contextCmds: ContextCommands
|
|
48
50
|
|
|
49
51
|
// Shared state
|
|
50
52
|
agent: unknown
|
|
@@ -60,6 +62,7 @@ class PrjctCommands {
|
|
|
60
62
|
this.maintenance = new MaintenanceCommands()
|
|
61
63
|
this.analysis = new AnalysisCommands()
|
|
62
64
|
this.setupCmds = new SetupCommands()
|
|
65
|
+
this.contextCmds = new ContextCommands()
|
|
63
66
|
|
|
64
67
|
this.agent = null
|
|
65
68
|
this.agentInfo = null
|
|
@@ -69,10 +72,6 @@ class PrjctCommands {
|
|
|
69
72
|
|
|
70
73
|
// ========== Workflow Commands ==========
|
|
71
74
|
|
|
72
|
-
async work(task: string | null = null, projectPath: string = process.cwd()): Promise<CommandResult> {
|
|
73
|
-
return this.workflow.now(task, projectPath)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
75
|
async done(projectPath: string = process.cwd()): Promise<CommandResult> {
|
|
77
76
|
return this.workflow.done(projectPath)
|
|
78
77
|
}
|
|
@@ -95,10 +94,6 @@ class PrjctCommands {
|
|
|
95
94
|
return this.planning.init(idea, projectPath)
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
async feature(description: string, projectPath: string = process.cwd()): Promise<CommandResult> {
|
|
99
|
-
return this.planning.feature(description, projectPath)
|
|
100
|
-
}
|
|
101
|
-
|
|
102
97
|
async bug(description: string, projectPath: string = process.cwd()): Promise<CommandResult> {
|
|
103
98
|
return this.planning.bug(description, projectPath)
|
|
104
99
|
}
|
|
@@ -163,6 +158,12 @@ class PrjctCommands {
|
|
|
163
158
|
return this.analysis.sync(projectPath)
|
|
164
159
|
}
|
|
165
160
|
|
|
161
|
+
// ========== Context Commands ==========
|
|
162
|
+
|
|
163
|
+
async context(input: string | null = null, projectPath: string = process.cwd()): Promise<CommandResult> {
|
|
164
|
+
return this.contextCmds.context(input, projectPath)
|
|
165
|
+
}
|
|
166
|
+
|
|
166
167
|
// ========== Setup Commands ==========
|
|
167
168
|
|
|
168
169
|
async start(): Promise<CommandResult> {
|
|
@@ -173,10 +174,6 @@ class PrjctCommands {
|
|
|
173
174
|
return this.setupCmds.setup(options)
|
|
174
175
|
}
|
|
175
176
|
|
|
176
|
-
async migrateAll(options: MigrateOptions = {}): Promise<CommandResult> {
|
|
177
|
-
return this.setupCmds.migrateAll(options)
|
|
178
|
-
}
|
|
179
|
-
|
|
180
177
|
async installStatusLine(): Promise<{ success: boolean; error?: string }> {
|
|
181
178
|
return this.setupCmds.installStatusLine()
|
|
182
179
|
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context Commands - Exposes orchestrator context to Claude
|
|
3
|
+
*
|
|
4
|
+
* The `context` command runs the orchestrator and returns JSON with everything
|
|
5
|
+
* Claude needs to execute workflows:
|
|
6
|
+
* - projectId and globalPath for file operations
|
|
7
|
+
* - detected domains from task description
|
|
8
|
+
* - loaded agents with file paths and previews
|
|
9
|
+
* - current task state (if any)
|
|
10
|
+
* - repo analysis data
|
|
11
|
+
*
|
|
12
|
+
* This bridges the gap between TypeScript orchestration and Claude Code templates.
|
|
13
|
+
*
|
|
14
|
+
* @module commands/context
|
|
15
|
+
* @version 1.0.0
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import fs from 'fs/promises'
|
|
19
|
+
import path from 'path'
|
|
20
|
+
import configManager from '../infrastructure/config-manager'
|
|
21
|
+
import pathManager from '../infrastructure/path-manager'
|
|
22
|
+
import { stateStorage } from '../storage'
|
|
23
|
+
import orchestratorExecutor from '../agentic/orchestrator-executor'
|
|
24
|
+
import { isNotFoundError } from '../types/fs'
|
|
25
|
+
import type { CommandResult } from '../types'
|
|
26
|
+
|
|
27
|
+
// =============================================================================
|
|
28
|
+
// Types
|
|
29
|
+
// =============================================================================
|
|
30
|
+
|
|
31
|
+
export interface ContextOutput {
|
|
32
|
+
projectId: string
|
|
33
|
+
globalPath: string
|
|
34
|
+
currentTask: {
|
|
35
|
+
id: string
|
|
36
|
+
description: string
|
|
37
|
+
startedAt: string
|
|
38
|
+
subtasks?: Array<{
|
|
39
|
+
id: string
|
|
40
|
+
description: string
|
|
41
|
+
status: string
|
|
42
|
+
domain: string
|
|
43
|
+
}>
|
|
44
|
+
currentSubtaskIndex?: number
|
|
45
|
+
} | null
|
|
46
|
+
domains: string[]
|
|
47
|
+
primaryDomain: string | null
|
|
48
|
+
agents: Array<{
|
|
49
|
+
name: string
|
|
50
|
+
domain: string
|
|
51
|
+
filePath: string
|
|
52
|
+
skills: string[]
|
|
53
|
+
preview: string
|
|
54
|
+
}>
|
|
55
|
+
subtasks: Array<{
|
|
56
|
+
id: string
|
|
57
|
+
description: string
|
|
58
|
+
domain: string
|
|
59
|
+
agent: string
|
|
60
|
+
status: string
|
|
61
|
+
order: number
|
|
62
|
+
}> | null
|
|
63
|
+
repoAnalysis: {
|
|
64
|
+
ecosystem: string
|
|
65
|
+
frameworks: string[]
|
|
66
|
+
hasTests: boolean
|
|
67
|
+
technologies: string[]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// =============================================================================
|
|
72
|
+
// Context Commands Class
|
|
73
|
+
// =============================================================================
|
|
74
|
+
|
|
75
|
+
export class ContextCommands {
|
|
76
|
+
/**
|
|
77
|
+
* Get full project context for Claude
|
|
78
|
+
*
|
|
79
|
+
* Usage:
|
|
80
|
+
* prjct context task "add user auth"
|
|
81
|
+
* prjct context done
|
|
82
|
+
* prjct context ship
|
|
83
|
+
*
|
|
84
|
+
* Returns JSON with all orchestrator data.
|
|
85
|
+
*/
|
|
86
|
+
async context(
|
|
87
|
+
input: string | null = null,
|
|
88
|
+
projectPath: string = process.cwd()
|
|
89
|
+
): Promise<CommandResult> {
|
|
90
|
+
try {
|
|
91
|
+
// Parse input: first word is command, rest is arguments
|
|
92
|
+
const parts = (input || '').trim().split(/\s+/)
|
|
93
|
+
const command = parts[0] || 'task'
|
|
94
|
+
const taskDescription = parts.slice(1).join(' ')
|
|
95
|
+
|
|
96
|
+
// Get project info
|
|
97
|
+
const config = await configManager.readConfig(projectPath)
|
|
98
|
+
if (!config || !config.projectId) {
|
|
99
|
+
const output: Partial<ContextOutput> = {
|
|
100
|
+
projectId: '',
|
|
101
|
+
globalPath: '',
|
|
102
|
+
currentTask: null,
|
|
103
|
+
domains: [],
|
|
104
|
+
primaryDomain: null,
|
|
105
|
+
agents: [],
|
|
106
|
+
subtasks: null,
|
|
107
|
+
repoAnalysis: {
|
|
108
|
+
ecosystem: 'unknown',
|
|
109
|
+
frameworks: [],
|
|
110
|
+
hasTests: false,
|
|
111
|
+
technologies: [],
|
|
112
|
+
},
|
|
113
|
+
}
|
|
114
|
+
console.log(JSON.stringify(output, null, 2))
|
|
115
|
+
return {
|
|
116
|
+
success: false,
|
|
117
|
+
message: 'No prjct project. Run `p. init` first.',
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const projectId = config.projectId
|
|
122
|
+
const globalPath = pathManager.getGlobalProjectPath(projectId)
|
|
123
|
+
|
|
124
|
+
// Get current task state
|
|
125
|
+
const state = await stateStorage.read(projectId)
|
|
126
|
+
const currentTask = state?.currentTask
|
|
127
|
+
? {
|
|
128
|
+
id: state.currentTask.id,
|
|
129
|
+
description: state.currentTask.description,
|
|
130
|
+
startedAt: state.currentTask.startedAt,
|
|
131
|
+
subtasks: state.currentTask.subtasks?.map((st) => ({
|
|
132
|
+
id: st.id,
|
|
133
|
+
description: st.description,
|
|
134
|
+
status: st.status,
|
|
135
|
+
domain: st.domain,
|
|
136
|
+
})),
|
|
137
|
+
currentSubtaskIndex: state.currentTask.currentSubtaskIndex,
|
|
138
|
+
}
|
|
139
|
+
: null
|
|
140
|
+
|
|
141
|
+
// Run orchestrator if we have a task description
|
|
142
|
+
let orchestratorContext = null
|
|
143
|
+
if (taskDescription) {
|
|
144
|
+
try {
|
|
145
|
+
orchestratorContext = await orchestratorExecutor.execute(
|
|
146
|
+
command,
|
|
147
|
+
taskDescription,
|
|
148
|
+
projectPath
|
|
149
|
+
)
|
|
150
|
+
} catch (error) {
|
|
151
|
+
// Orchestration failed - continue without it
|
|
152
|
+
console.error(`Warning: Orchestrator failed: ${(error as Error).message}`)
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Load repo analysis
|
|
157
|
+
const repoAnalysis = await this.loadRepoAnalysis(globalPath)
|
|
158
|
+
|
|
159
|
+
// Build output
|
|
160
|
+
const output: ContextOutput = {
|
|
161
|
+
projectId,
|
|
162
|
+
globalPath,
|
|
163
|
+
currentTask,
|
|
164
|
+
domains: orchestratorContext?.detectedDomains || [],
|
|
165
|
+
primaryDomain: orchestratorContext?.primaryDomain || null,
|
|
166
|
+
agents:
|
|
167
|
+
orchestratorContext?.agents.map((a) => ({
|
|
168
|
+
name: a.name,
|
|
169
|
+
domain: a.domain,
|
|
170
|
+
filePath: a.filePath,
|
|
171
|
+
skills: a.skills,
|
|
172
|
+
preview: a.content.substring(0, 500),
|
|
173
|
+
})) || [],
|
|
174
|
+
subtasks:
|
|
175
|
+
orchestratorContext?.subtasks?.map((st) => ({
|
|
176
|
+
id: st.id,
|
|
177
|
+
description: st.description,
|
|
178
|
+
domain: st.domain,
|
|
179
|
+
agent: st.agent,
|
|
180
|
+
status: st.status,
|
|
181
|
+
order: st.order,
|
|
182
|
+
})) || null,
|
|
183
|
+
repoAnalysis: {
|
|
184
|
+
ecosystem: repoAnalysis?.ecosystem || 'unknown',
|
|
185
|
+
frameworks: repoAnalysis?.frameworks || [],
|
|
186
|
+
hasTests: repoAnalysis?.hasTests || false,
|
|
187
|
+
technologies: repoAnalysis?.technologies || [],
|
|
188
|
+
},
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// Output JSON to stdout
|
|
192
|
+
console.log(JSON.stringify(output, null, 2))
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
success: true,
|
|
196
|
+
message: '', // Empty message - JSON output is the result
|
|
197
|
+
}
|
|
198
|
+
} catch (error) {
|
|
199
|
+
return {
|
|
200
|
+
success: false,
|
|
201
|
+
message: `Context error: ${(error as Error).message}`,
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Load repo analysis from analysis/repo-analysis.json
|
|
208
|
+
*/
|
|
209
|
+
private async loadRepoAnalysis(globalPath: string): Promise<{
|
|
210
|
+
ecosystem: string
|
|
211
|
+
frameworks: string[]
|
|
212
|
+
hasTests: boolean
|
|
213
|
+
technologies: string[]
|
|
214
|
+
} | null> {
|
|
215
|
+
try {
|
|
216
|
+
const analysisPath = path.join(globalPath, 'analysis', 'repo-analysis.json')
|
|
217
|
+
const content = await fs.readFile(analysisPath, 'utf-8')
|
|
218
|
+
const data = JSON.parse(content)
|
|
219
|
+
return {
|
|
220
|
+
ecosystem: data.ecosystem || 'unknown',
|
|
221
|
+
frameworks: data.frameworks || [],
|
|
222
|
+
hasTests: data.hasTests ?? false,
|
|
223
|
+
technologies: data.technologies || [],
|
|
224
|
+
}
|
|
225
|
+
} catch (error) {
|
|
226
|
+
if (isNotFoundError(error)) return null
|
|
227
|
+
return null
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// =============================================================================
|
|
233
|
+
// Exports
|
|
234
|
+
// =============================================================================
|
|
235
|
+
|
|
236
|
+
const contextCommands = new ContextCommands()
|
|
237
|
+
export default contextCommands
|
|
238
|
+
export { contextCommands }
|
|
@@ -17,6 +17,7 @@ import { AnalyticsCommands } from './analytics'
|
|
|
17
17
|
import { MaintenanceCommands } from './maintenance'
|
|
18
18
|
import { AnalysisCommands } from './analysis'
|
|
19
19
|
import { SetupCommands } from './setup'
|
|
20
|
+
import { ContextCommands } from './context'
|
|
20
21
|
|
|
21
22
|
// Singleton instances of command groups
|
|
22
23
|
const workflow = new WorkflowCommands()
|
|
@@ -26,6 +27,7 @@ const analytics = new AnalyticsCommands()
|
|
|
26
27
|
const maintenance = new MaintenanceCommands()
|
|
27
28
|
const analysis = new AnalysisCommands()
|
|
28
29
|
const setup = new SetupCommands()
|
|
30
|
+
const context = new ContextCommands()
|
|
29
31
|
|
|
30
32
|
/**
|
|
31
33
|
* Register categories
|
|
@@ -50,8 +52,6 @@ export function registerAllCommands(): void {
|
|
|
50
52
|
const getMeta = (name: string) => COMMANDS.find(c => c.name === name)
|
|
51
53
|
|
|
52
54
|
// Workflow commands
|
|
53
|
-
commandRegistry.registerMethod('work', workflow, 'now', getMeta('work'))
|
|
54
|
-
commandRegistry.registerMethod('now', workflow, 'now', getMeta('now'))
|
|
55
55
|
commandRegistry.registerMethod('done', workflow, 'done', getMeta('done'))
|
|
56
56
|
commandRegistry.registerMethod('next', workflow, 'next', getMeta('next'))
|
|
57
57
|
commandRegistry.registerMethod('pause', workflow, 'pause', getMeta('pause'))
|
|
@@ -59,7 +59,6 @@ export function registerAllCommands(): void {
|
|
|
59
59
|
|
|
60
60
|
// Planning commands
|
|
61
61
|
commandRegistry.registerMethod('init', planning, 'init', getMeta('init'))
|
|
62
|
-
commandRegistry.registerMethod('feature', planning, 'feature', getMeta('feature'))
|
|
63
62
|
commandRegistry.registerMethod('bug', planning, 'bug', getMeta('bug'))
|
|
64
63
|
commandRegistry.registerMethod('idea', planning, 'idea', getMeta('idea'))
|
|
65
64
|
commandRegistry.registerMethod('spec', planning, 'spec', getMeta('spec'))
|
|
@@ -86,7 +85,9 @@ export function registerAllCommands(): void {
|
|
|
86
85
|
// Setup commands
|
|
87
86
|
commandRegistry.registerMethod('start', setup, 'start', getMeta('start'))
|
|
88
87
|
commandRegistry.registerMethod('setup', setup, 'setup', getMeta('setup'))
|
|
89
|
-
|
|
88
|
+
|
|
89
|
+
// Context command (for Claude templates)
|
|
90
|
+
commandRegistry.registerMethod('context', context, 'context', getMeta('context'))
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
// Auto-register on import
|
|
@@ -100,5 +101,6 @@ export {
|
|
|
100
101
|
analytics,
|
|
101
102
|
maintenance,
|
|
102
103
|
analysis,
|
|
103
|
-
setup
|
|
104
|
+
setup,
|
|
105
|
+
context
|
|
104
106
|
}
|
package/core/commands/setup.ts
CHANGED
|
@@ -8,7 +8,7 @@ import chalk from 'chalk'
|
|
|
8
8
|
|
|
9
9
|
import commandInstaller from '../infrastructure/command-installer'
|
|
10
10
|
import pathManager from '../infrastructure/path-manager'
|
|
11
|
-
import type { CommandResult, SetupOptions
|
|
11
|
+
import type { CommandResult, SetupOptions } from '../types'
|
|
12
12
|
import { PrjctCommandsBase } from './base'
|
|
13
13
|
import { VERSION } from '../utils/version'
|
|
14
14
|
|
|
@@ -254,20 +254,4 @@ echo "⚡ prjct"
|
|
|
254
254
|
console.log('')
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
/**
|
|
258
|
-
* Migrate all projects to UUID format
|
|
259
|
-
*/
|
|
260
|
-
async migrateAll(_options: MigrateOptions = {}): Promise<CommandResult> {
|
|
261
|
-
console.log('🔄 Migrating all projects to UUID format...\n')
|
|
262
|
-
|
|
263
|
-
// TODO: Implement full migration logic
|
|
264
|
-
// For now, return success as this is a stub
|
|
265
|
-
console.log('✅ Migration complete (no projects needed migration)\n')
|
|
266
|
-
|
|
267
|
-
return {
|
|
268
|
-
success: true,
|
|
269
|
-
message: 'Migration complete',
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
257
|
}
|
|
@@ -81,12 +81,13 @@ export class WorkflowCommands extends PrjctCommandsBase {
|
|
|
81
81
|
})
|
|
82
82
|
|
|
83
83
|
return {
|
|
84
|
+
// Include full CommandExecutor result first (orchestratorContext, prompt, etc.)
|
|
85
|
+
...result,
|
|
86
|
+
// Then override with our specific values
|
|
84
87
|
success: true,
|
|
85
88
|
task,
|
|
86
89
|
agenticMode: true,
|
|
87
90
|
availableAgents,
|
|
88
|
-
// Include full CommandExecutor result (orchestratorContext, prompt, etc.)
|
|
89
|
-
...result,
|
|
90
91
|
}
|
|
91
92
|
} else {
|
|
92
93
|
// Read from storage (JSON is source of truth)
|
package/core/index.ts
CHANGED
|
@@ -90,21 +90,17 @@ async function main(): Promise<void> {
|
|
|
90
90
|
result = await commands.cleanup(options)
|
|
91
91
|
} else if (commandName === 'setup') {
|
|
92
92
|
result = await commands.setup(options)
|
|
93
|
-
} else if (commandName === 'migrate-all') {
|
|
94
|
-
result = await commands.migrateAll(options)
|
|
95
93
|
} else {
|
|
96
94
|
// Standard commands - type-safe invocation
|
|
97
95
|
const param = parsedArgs.join(' ') || null
|
|
98
96
|
const standardCommands: Record<string, (p: string | null) => Promise<CommandResult>> = {
|
|
99
97
|
// Core workflow
|
|
100
|
-
work: (p) => commands.work(p),
|
|
101
98
|
done: () => commands.done(),
|
|
102
99
|
next: () => commands.next(),
|
|
103
100
|
pause: (p) => commands.pause(p || ''),
|
|
104
101
|
resume: (p) => commands.resume(p),
|
|
105
102
|
// Planning
|
|
106
103
|
init: (p) => commands.init(p),
|
|
107
|
-
feature: (p) => commands.feature(p || ''),
|
|
108
104
|
bug: (p) => commands.bug(p || ''),
|
|
109
105
|
idea: (p) => commands.idea(p || ''),
|
|
110
106
|
spec: (p) => commands.spec(p),
|
|
@@ -120,6 +116,8 @@ async function main(): Promise<void> {
|
|
|
120
116
|
// Setup
|
|
121
117
|
sync: () => commands.sync(),
|
|
122
118
|
start: () => commands.start(),
|
|
119
|
+
// Context (for Claude templates)
|
|
120
|
+
context: (p) => commands.context(p),
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
const handler = standardCommands[commandName]
|
package/core/services/index.ts
CHANGED
|
@@ -9,6 +9,8 @@ export { agentService, AgentService } from './agent-service'
|
|
|
9
9
|
export { projectService, ProjectService } from './project-service'
|
|
10
10
|
export { memoryService, MemoryService } from './memory-service'
|
|
11
11
|
export { breakdownService, BreakdownService } from './breakdown-service'
|
|
12
|
+
export { syncService, SyncService } from './sync-service'
|
|
13
|
+
export type { SyncResult } from './sync-service'
|
|
12
14
|
|
|
13
15
|
// Re-export types from canonical source
|
|
14
16
|
export type {
|