prjct-cli 0.35.1 → 0.35.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/CHANGELOG.md +15 -0
- package/core/commands/workflow.ts +25 -9
- package/dist/bin/prjct.mjs +22 -8
- package/package.json +1 -1
- package/templates/_bases/tracker-base.md +309 -0
- package/templates/agentic/orchestrator.md +211 -269
- package/templates/commands/github.md +9 -0
- package/templates/commands/history.md +296 -83
- package/templates/commands/jira.md +9 -0
- package/templates/commands/linear.md +9 -0
- package/templates/commands/monday.md +9 -0
- package/templates/commands/p.md +198 -63
- package/templates/commands/resume.md +68 -4
- package/templates/commands/sync.md +103 -0
- 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/templates/commands/redo.md +0 -144
- package/templates/commands/undo.md +0 -154
package/templates/commands/p.md
CHANGED
|
@@ -7,79 +7,214 @@ allowed-tools: [Read, Write, Edit, Bash, Glob, Grep, Task, AskUserQuestion, Todo
|
|
|
7
7
|
|
|
8
8
|
**ARGUMENTS**: $ARGUMENTS
|
|
9
9
|
|
|
10
|
-
##
|
|
11
|
-
|
|
12
|
-
1. Parse ARGUMENTS: first word = `command`, rest = `commandArgs`
|
|
13
|
-
2. Get npm global root:
|
|
14
|
-
```bash
|
|
15
|
-
npm root -g
|
|
16
|
-
```
|
|
17
|
-
3. **Run Orchestrator** (for task-related commands):
|
|
18
|
-
- Read: `{npmRoot}/prjct-cli/templates/agentic/orchestrator.md`
|
|
19
|
-
- Execute orchestrator Steps 1-5 to load agents and skills
|
|
20
|
-
4. Read command template:
|
|
21
|
-
```
|
|
22
|
-
{npmRoot}/prjct-cli/templates/commands/{command}.md
|
|
23
|
-
```
|
|
24
|
-
5. Execute template with `commandArgs` + orchestrator context
|
|
25
|
-
|
|
26
|
-
## Orchestrator Integration
|
|
27
|
-
|
|
28
|
-
For these commands, run orchestrator FIRST:
|
|
29
|
-
- `task`, `done`, `ship` - Core workflow
|
|
30
|
-
- `bug`, `plan`, `prd`, `spec`, `design` - Planning
|
|
31
|
-
- `review`, `merge` - Git operations
|
|
32
|
-
|
|
33
|
-
Skip orchestrator for:
|
|
34
|
-
- `init`, `sync`, `setup` - Project config (no task context)
|
|
35
|
-
- `dash`, `next`, `history` - Read-only views
|
|
36
|
-
- `linear`, `jira`, `github`, `monday` - Integrations (own logic)
|
|
37
|
-
|
|
38
|
-
## Example
|
|
39
|
-
|
|
40
|
-
ARGUMENTS = "task fix the login bug"
|
|
41
|
-
|
|
42
|
-
1. command = "task"
|
|
43
|
-
2. commandArgs = "fix the login bug"
|
|
44
|
-
3. npm root -g → `/opt/homebrew/lib/node_modules`
|
|
45
|
-
4. **Orchestrator**:
|
|
46
|
-
- Analyze: "login bug" → domains: [frontend, backend]
|
|
47
|
-
- Load agents: frontend.md, backend.md
|
|
48
|
-
- Invoke skills: ui-design, api-design
|
|
49
|
-
5. Read: `/opt/homebrew/lib/node_modules/prjct-cli/templates/commands/task.md`
|
|
50
|
-
6. Execute with: "fix the login bug" + orchestrator context
|
|
10
|
+
## Quick Routing
|
|
51
11
|
|
|
52
|
-
|
|
12
|
+
Parse ARGUMENTS and route to the correct command template.
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
PARSE: $ARGUMENTS
|
|
16
|
+
SET: command = first word (lowercase)
|
|
17
|
+
SET: commandArgs = rest of arguments
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Command Aliases (Redirects)
|
|
23
|
+
|
|
24
|
+
These commands redirect to unified commands:
|
|
25
|
+
|
|
26
|
+
| Input | Redirects To |
|
|
27
|
+
|-------|--------------|
|
|
28
|
+
| `p. undo` | `p. history undo` |
|
|
29
|
+
| `p. redo` | `p. history redo` |
|
|
30
|
+
|
|
31
|
+
If command is `undo` or `redo`:
|
|
32
|
+
PREPEND "history" to arguments
|
|
33
|
+
SET: command = "history"
|
|
34
|
+
SET: commandArgs = "{original_command} {commandArgs}"
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Command Categories
|
|
39
|
+
|
|
40
|
+
### Core Workflow (use orchestrator)
|
|
41
|
+
- `task` - Start any task with PM Expert enrichment
|
|
42
|
+
- `done` - Complete current subtask
|
|
43
|
+
- `ship` - Ship feature with version bump
|
|
44
|
+
|
|
45
|
+
### Planning (use orchestrator for task context)
|
|
46
|
+
- `plan` - Quarter-based roadmap planning
|
|
47
|
+
- `prd` - Create PRD with Chief Architect
|
|
48
|
+
- `spec` - Spec-driven development
|
|
49
|
+
- `design` - Design workflow
|
|
50
|
+
- `enrich` - Ticket enrichment
|
|
51
|
+
|
|
52
|
+
### Project Management (no orchestrator)
|
|
53
|
+
- `init` - Initialize project
|
|
54
|
+
- `sync` - Deep project analysis
|
|
55
|
+
- `setup` - Configure prjct
|
|
56
|
+
- `dash` - View dashboard
|
|
57
|
+
|
|
58
|
+
### Queue & Ideas (no orchestrator)
|
|
59
|
+
- `next` - Show priority queue
|
|
60
|
+
- `idea` - Quick idea capture
|
|
61
|
+
- `bug` - Report bug with auto-priority
|
|
62
|
+
|
|
63
|
+
### Issue Trackers (own logic)
|
|
64
|
+
- `linear` - Linear integration
|
|
65
|
+
- `jira` - JIRA integration
|
|
66
|
+
- `github` - GitHub Issues integration
|
|
67
|
+
- `monday` - Monday.com integration
|
|
68
|
+
|
|
69
|
+
### Git Operations (use orchestrator)
|
|
70
|
+
- `git` - Smart git operations
|
|
71
|
+
- `merge` - Merge PR
|
|
72
|
+
- `review` - Code review
|
|
73
|
+
|
|
74
|
+
### Analysis (no orchestrator)
|
|
75
|
+
- `analyze` - Analyze project
|
|
76
|
+
- `history` - View/undo/redo snapshots
|
|
77
|
+
- `impact` - Track outcomes
|
|
78
|
+
|
|
79
|
+
### Utilities (no orchestrator)
|
|
80
|
+
- `cleanup` - Code cleanup
|
|
81
|
+
- `update` - Force update prjct
|
|
82
|
+
- `verify` - Verify completion
|
|
83
|
+
- `test` - Run tests
|
|
84
|
+
- `serve` - Start web server
|
|
85
|
+
- `auth` - Manage authentication
|
|
86
|
+
- `skill` - Skill management
|
|
87
|
+
- `pause` - Pause current task
|
|
88
|
+
- `resume` - Resume paused task
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Execution Flow
|
|
93
|
+
|
|
94
|
+
### Step 1: Get npm global root
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
npm root -g
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
SET: npmRoot = result
|
|
101
|
+
|
|
102
|
+
### Step 2: Load State (always)
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
READ: .prjct/prjct.config.json
|
|
106
|
+
EXTRACT: projectId
|
|
107
|
+
|
|
108
|
+
IF file exists:
|
|
109
|
+
SET: globalPath = ~/.prjct-cli/projects/{projectId}
|
|
110
|
+
READ: {globalPath}/storage/state.json (if exists)
|
|
111
|
+
SET: hasActiveTask = state.currentTask != null
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Step 3: Load Agent (if project has one)
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
IF {globalPath}/agents/ has files:
|
|
118
|
+
# Load the main project agent (generated by sync)
|
|
119
|
+
GLOB: {globalPath}/agents/*.md
|
|
120
|
+
READ: first agent file (project-specific patterns)
|
|
121
|
+
SET: agentContext = agent content
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Step 4: Check if orchestrator needed
|
|
53
125
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
**Integrations**: `linear` `jira` `github` `monday`
|
|
59
|
-
**Git**: `git` `merge` `review`
|
|
60
|
-
**Analysis**: `analyze` `history` `impact`
|
|
61
|
-
**Utils**: `cleanup` `update` `verify` `test` `undo` `redo` `serve` `auth` `skill`
|
|
126
|
+
Commands that benefit from orchestrator (task context + agent loading):
|
|
127
|
+
- `task`, `done`, `ship`
|
|
128
|
+
- `bug`, `plan`, `prd`, `spec`, `design`
|
|
129
|
+
- `review`, `merge`
|
|
62
130
|
|
|
63
|
-
|
|
131
|
+
For these commands:
|
|
132
|
+
```
|
|
133
|
+
READ: {npmRoot}/prjct-cli/templates/agentic/orchestrator.md
|
|
134
|
+
EXECUTE: orchestrator Steps 1-5 to build execution context
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Step 5: Load and execute command template
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
READ: {npmRoot}/prjct-cli/templates/commands/{command}.md
|
|
141
|
+
EXECUTE: template with:
|
|
142
|
+
- commandArgs as $ARGUMENTS
|
|
143
|
+
- orchestrator context (if loaded)
|
|
144
|
+
- agent context (if loaded)
|
|
145
|
+
- state context (if available)
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## State Context Injection
|
|
151
|
+
|
|
152
|
+
When executing any command, include:
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
## Current State
|
|
156
|
+
|
|
157
|
+
Project: {projectId}
|
|
158
|
+
{IF hasActiveTask:}
|
|
159
|
+
Active Task: {state.currentTask.description}
|
|
160
|
+
Branch: {state.currentTask.branch.name}
|
|
161
|
+
Subtask: {state.currentTask.currentSubtaskIndex + 1}/{state.currentTask.subtasks.length}
|
|
162
|
+
{ELSE:}
|
|
163
|
+
No active task.
|
|
164
|
+
{ENDIF}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
---
|
|
64
168
|
|
|
65
|
-
|
|
169
|
+
## Output Format
|
|
170
|
+
|
|
171
|
+
For orchestrator-enabled commands, output context header:
|
|
66
172
|
|
|
67
173
|
```
|
|
68
174
|
🎯 Task: {commandArgs}
|
|
69
175
|
|
|
70
176
|
📦 Context:
|
|
71
|
-
├──
|
|
72
|
-
├──
|
|
73
|
-
└── Domain: {
|
|
177
|
+
├── Agent: {loadedAgent || 'none'}
|
|
178
|
+
├── State: {hasActiveTask ? 'active task' : 'no task'}
|
|
179
|
+
└── Domain: {detectedDomain || 'general'}
|
|
180
|
+
|
|
181
|
+
{Continue with command execution...}
|
|
74
182
|
```
|
|
75
183
|
|
|
76
|
-
|
|
184
|
+
For utility commands, execute directly without context header.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Error Handling
|
|
189
|
+
|
|
190
|
+
| Error | Action |
|
|
191
|
+
|-------|--------|
|
|
192
|
+
| Unknown command | "Unknown command: {command}. Run `p. help` for available commands." |
|
|
193
|
+
| No project | "No prjct project. Run `p. init` first." (for commands that need project) |
|
|
194
|
+
| Template not found | "Template not found: {command}.md" |
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Available Commands
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
Core: task done ship pause resume
|
|
202
|
+
Project: init sync setup dash
|
|
203
|
+
Planning: plan prd spec design enrich
|
|
204
|
+
Queue: next idea bug
|
|
205
|
+
Trackers: linear jira github monday
|
|
206
|
+
Git: git merge review
|
|
207
|
+
Analysis: analyze history impact
|
|
208
|
+
Utils: cleanup update verify test serve auth skill
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
77
212
|
|
|
78
|
-
##
|
|
213
|
+
## NOW: Execute
|
|
79
214
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
215
|
+
1. Parse command from $ARGUMENTS
|
|
216
|
+
2. Handle aliases (undo → history undo, redo → history redo)
|
|
217
|
+
3. Run `npm root -g` to get template path
|
|
218
|
+
4. Load state and agent context
|
|
219
|
+
5. Check if orchestrator needed
|
|
220
|
+
6. Load and execute command template
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Read, Write, Bash, AskUserQuestion]
|
|
3
|
-
description: 'Resume paused or interrupted session'
|
|
2
|
+
allowed-tools: [Read, Write, Bash, Glob, AskUserQuestion]
|
|
3
|
+
description: 'Resume paused or interrupted session with full context'
|
|
4
4
|
timestamp-rule: 'GetTimestamp() for all timestamps'
|
|
5
5
|
architecture: 'Write-Through (JSON → MD → Events)'
|
|
6
6
|
storage-layer: true
|
|
@@ -9,7 +9,19 @@ claude-context: 'context/now.md'
|
|
|
9
9
|
backend-sync: 'sync/pending.json'
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
#
|
|
12
|
+
# p. resume - Resume Session with Full Context
|
|
13
|
+
|
|
14
|
+
**Purpose**: Resume work on a project by loading full context from the last session.
|
|
15
|
+
|
|
16
|
+
## IMPORTANT: Multi-Session Continuity
|
|
17
|
+
|
|
18
|
+
When starting a NEW Claude Code session (not just resuming a paused task), `p. resume` provides:
|
|
19
|
+
- Full project state including active task
|
|
20
|
+
- Enterprise domain progress
|
|
21
|
+
- Stack and patterns from project agent
|
|
22
|
+
- Session context (last action, next steps, blockers)
|
|
23
|
+
|
|
24
|
+
This is the recommended way to start any session on an existing project.
|
|
13
25
|
|
|
14
26
|
## Architecture: Write-Through Pattern
|
|
15
27
|
|
|
@@ -155,7 +167,36 @@ SET: state.{clearField} = null # Clear pausedTask or interruptedTask based on w
|
|
|
155
167
|
SET: state.lastUpdated = {now}
|
|
156
168
|
WRITE: `{statePath}`
|
|
157
169
|
|
|
158
|
-
## Step 5:
|
|
170
|
+
## Step 5: Load Enterprise Context (NEW)
|
|
171
|
+
|
|
172
|
+
### 5.1 Load Project Agent
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
GLOB: {globalPath}/agents/*.md
|
|
176
|
+
IF files found:
|
|
177
|
+
READ: first agent file
|
|
178
|
+
SET: agentContent = file content
|
|
179
|
+
SET: agentName = filename
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### 5.2 Extract Enterprise State
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
IF state.domains exists:
|
|
186
|
+
SET: hasDomains = true
|
|
187
|
+
SET: domains = state.domains
|
|
188
|
+
|
|
189
|
+
IF state.stack exists:
|
|
190
|
+
SET: hasStack = true
|
|
191
|
+
SET: stack = state.stack
|
|
192
|
+
|
|
193
|
+
IF state.context exists:
|
|
194
|
+
SET: lastAction = state.context.lastAction
|
|
195
|
+
SET: nextAction = state.context.nextAction
|
|
196
|
+
SET: blockers = state.context.blockers
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Step 6: Generate Context (FOR CLAUDE)
|
|
159
200
|
|
|
160
201
|
WRITE: `{nowContextPath}`
|
|
161
202
|
|
|
@@ -169,6 +210,29 @@ Resumed: {now}
|
|
|
169
210
|
Session: {taskToResume.sessionId}
|
|
170
211
|
{IF taskToResume.estimate: Estimate: {taskToResume.estimate}}
|
|
171
212
|
{IF taskToResume.subtasks: Subtask: {currentSubtask.description}}
|
|
213
|
+
|
|
214
|
+
{IF hasStack:}
|
|
215
|
+
## Stack
|
|
216
|
+
- Language: {stack.language}
|
|
217
|
+
- Framework: {stack.framework}
|
|
218
|
+
- State: {stack.stateManagement}
|
|
219
|
+
{ENDIF}
|
|
220
|
+
|
|
221
|
+
{IF hasDomains:}
|
|
222
|
+
## Domain Progress
|
|
223
|
+
{FOR EACH [name, info] in domains:}
|
|
224
|
+
- {name}: {info.progress}% ({info.status})
|
|
225
|
+
{END FOR}
|
|
226
|
+
{ENDIF}
|
|
227
|
+
|
|
228
|
+
{IF lastAction:}
|
|
229
|
+
## Session Context
|
|
230
|
+
- Last Action: {lastAction}
|
|
231
|
+
- Next: {nextAction}
|
|
232
|
+
{IF blockers:}
|
|
233
|
+
- Blockers: {blockers.join(', ')}
|
|
234
|
+
{ENDIF}
|
|
235
|
+
{ENDIF}
|
|
172
236
|
```
|
|
173
237
|
|
|
174
238
|
## Step 6: Queue Sync Event (FOR BACKEND)
|
|
@@ -372,6 +372,109 @@ WRITE: `{globalPath}/analysis/repo-analysis.json`
|
|
|
372
372
|
|
|
373
373
|
---
|
|
374
374
|
|
|
375
|
+
## Step 3.5.7: Update Enterprise State (CRITICAL for Multi-Session)
|
|
376
|
+
|
|
377
|
+
**CRITICAL**: This step updates state.json with enterprise fields for multi-session continuity.
|
|
378
|
+
|
|
379
|
+
### 3.5.7.1 Read Existing State
|
|
380
|
+
|
|
381
|
+
```
|
|
382
|
+
READ: {globalPath}/storage/state.json
|
|
383
|
+
|
|
384
|
+
IF file not found:
|
|
385
|
+
CREATE default state:
|
|
386
|
+
{
|
|
387
|
+
"projectId": "{projectId}",
|
|
388
|
+
"currentTask": null,
|
|
389
|
+
"queue": [],
|
|
390
|
+
"shipped": []
|
|
391
|
+
}
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
### 3.5.7.2 Update Stack Info
|
|
395
|
+
|
|
396
|
+
```
|
|
397
|
+
SET: state.stack = {
|
|
398
|
+
"language": "{detected language - e.g., TypeScript, Python, Go}",
|
|
399
|
+
"runtime": "{runtime - e.g., Node.js, Python 3.11, Go 1.21}",
|
|
400
|
+
"framework": "{primary framework - e.g., React, Django, Gin}",
|
|
401
|
+
"stateManagement": "{if detected - e.g., Zustand, Redux, None}",
|
|
402
|
+
"database": "{if detected - e.g., PostgreSQL, MongoDB}",
|
|
403
|
+
"styling": "{if detected - e.g., Tailwind, CSS Modules}",
|
|
404
|
+
"testRunner": "{test framework - e.g., Vitest, Pytest, go test}"
|
|
405
|
+
}
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
### 3.5.7.3 Determine Project Type
|
|
409
|
+
|
|
410
|
+
```
|
|
411
|
+
# Count domains detected
|
|
412
|
+
SET: domainCount = count of detected domains (frontend, backend, database, etc.)
|
|
413
|
+
|
|
414
|
+
# Determine project type
|
|
415
|
+
IF fileCount > 300 OR domainCount >= 4:
|
|
416
|
+
SET: state.projectType = "enterprise"
|
|
417
|
+
ELSE IF domainCount >= 2 OR fileCount > 50:
|
|
418
|
+
SET: state.projectType = "complex"
|
|
419
|
+
ELSE:
|
|
420
|
+
SET: state.projectType = "simple"
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### 3.5.7.4 Initialize Domains (Enterprise Projects)
|
|
424
|
+
|
|
425
|
+
IF state.projectType == "enterprise" OR state.projectType == "complex":
|
|
426
|
+
|
|
427
|
+
```
|
|
428
|
+
# Detect and initialize domain progress
|
|
429
|
+
SET: state.domains = {}
|
|
430
|
+
|
|
431
|
+
FOR EACH domain in {detectedDomains}:
|
|
432
|
+
# Count files in domain area
|
|
433
|
+
COUNT files matching domain patterns
|
|
434
|
+
|
|
435
|
+
SET: state.domains[domain] = {
|
|
436
|
+
"status": "pending",
|
|
437
|
+
"progress": 0,
|
|
438
|
+
"tests": "none",
|
|
439
|
+
"keyFiles": ["{detected key files for domain}"],
|
|
440
|
+
"dependencies": []
|
|
441
|
+
}
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
### 3.5.7.5 Update Metrics
|
|
445
|
+
|
|
446
|
+
```
|
|
447
|
+
SET: state.metrics = {
|
|
448
|
+
"totalFiles": {fileCount},
|
|
449
|
+
"totalLOC": {locCount if available},
|
|
450
|
+
"testCoverage": null,
|
|
451
|
+
"lastBuild": "unknown"
|
|
452
|
+
}
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
### 3.5.7.6 Update Session Context
|
|
456
|
+
|
|
457
|
+
```
|
|
458
|
+
SET: state.lastSync = {timestamp}
|
|
459
|
+
SET: state.lastUpdated = {timestamp}
|
|
460
|
+
|
|
461
|
+
IF state.context does not exist:
|
|
462
|
+
SET: state.context = {}
|
|
463
|
+
|
|
464
|
+
SET: state.context.lastSession = {timestamp}
|
|
465
|
+
SET: state.context.lastAction = "Synced project"
|
|
466
|
+
SET: state.context.nextAction = "Run `p. task \"description\"` to start working"
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
### 3.5.7.7 Write Updated State
|
|
470
|
+
|
|
471
|
+
```
|
|
472
|
+
WRITE: {globalPath}/storage/state.json
|
|
473
|
+
OUTPUT: "📊 Updated state.json with enterprise fields"
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
375
478
|
## Step 3.6: Generate/Update Roadmap (For Existing Projects)
|
|
376
479
|
|
|
377
480
|
**CRITICAL**: This step populates the roadmap from git history for existing projects.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/bun`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for bun (https://bun.com).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bun.
|
|
9
|
-
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bun/index.d.ts)
|
|
10
|
-
````ts
|
|
11
|
-
/// <reference types="bun-types" />
|
|
12
|
-
|
|
13
|
-
````
|
|
14
|
-
|
|
15
|
-
### Additional Details
|
|
16
|
-
* Last updated: Thu, 18 Dec 2025 18:43:14 GMT
|
|
17
|
-
* Dependencies: [bun-types](https://npmjs.com/package/bun-types)
|
|
18
|
-
|
|
19
|
-
# Credits
|
|
20
|
-
These definitions were written by [Jarred Sumner](https://github.com/Jarred-Sumner), [Robobun](https://github.com/robobun), [Dylan Conway](https://github.com/dylan-conway), [Meghan Denny](https://github.com/nektro), [Michael H](https://github.com/RiskyMH), and [Alistair Smith](https://github.com/alii).
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="bun-types" />
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
Default to using Bun instead of Node.js.
|
|
2
|
-
|
|
3
|
-
- Use `bun <file>` instead of `node <file>` or `ts-node <file>`
|
|
4
|
-
- Use `bun test` instead of `jest` or `vitest`
|
|
5
|
-
- Use `bun build <file.html|file.ts|file.css>` instead of `webpack` or `esbuild`
|
|
6
|
-
- Use `bun install` instead of `npm install` or `yarn install` or `pnpm install`
|
|
7
|
-
- Use `bun run <script>` instead of `npm run <script>` or `yarn run <script>` or `pnpm run <script>`
|
|
8
|
-
- Use `bunx <package> <command>` instead of `npx <package> <command>`
|
|
9
|
-
- Bun automatically loads .env, so don't use dotenv.
|
|
10
|
-
|
|
11
|
-
## APIs
|
|
12
|
-
|
|
13
|
-
- `Bun.serve()` supports WebSockets, HTTPS, and routes. Don't use `express`.
|
|
14
|
-
- `bun:sqlite` for SQLite. Don't use `better-sqlite3`.
|
|
15
|
-
- `Bun.redis` for Redis. Don't use `ioredis`.
|
|
16
|
-
- `Bun.sql` for Postgres. Don't use `pg` or `postgres.js`.
|
|
17
|
-
- `WebSocket` is built-in. Don't use `ws`.
|
|
18
|
-
- Prefer `Bun.file` over `node:fs`'s readFile/writeFile
|
|
19
|
-
- Bun.$`ls` instead of execa.
|
|
20
|
-
|
|
21
|
-
## Testing
|
|
22
|
-
|
|
23
|
-
Use `bun test` to run tests.
|
|
24
|
-
|
|
25
|
-
```ts#index.test.ts
|
|
26
|
-
import { test, expect } from "bun:test";
|
|
27
|
-
|
|
28
|
-
test("hello world", () => {
|
|
29
|
-
expect(1).toBe(1);
|
|
30
|
-
});
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Frontend
|
|
34
|
-
|
|
35
|
-
Use HTML imports with `Bun.serve()`. Don't use `vite`. HTML imports fully support React, CSS, Tailwind.
|
|
36
|
-
|
|
37
|
-
Server:
|
|
38
|
-
|
|
39
|
-
```ts#index.ts
|
|
40
|
-
import index from "./index.html"
|
|
41
|
-
|
|
42
|
-
Bun.serve({
|
|
43
|
-
routes: {
|
|
44
|
-
"/": index,
|
|
45
|
-
"/api/users/:id": {
|
|
46
|
-
GET: (req) => {
|
|
47
|
-
return new Response(JSON.stringify({ id: req.params.id }));
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
// optional websocket support
|
|
52
|
-
websocket: {
|
|
53
|
-
open: (ws) => {
|
|
54
|
-
ws.send("Hello, world!");
|
|
55
|
-
},
|
|
56
|
-
message: (ws, message) => {
|
|
57
|
-
ws.send(message);
|
|
58
|
-
},
|
|
59
|
-
close: (ws) => {
|
|
60
|
-
// handle close
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
development: {
|
|
64
|
-
hmr: true,
|
|
65
|
-
console: true,
|
|
66
|
-
}
|
|
67
|
-
})
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
HTML files can import .tsx, .jsx or .js files directly and Bun's bundler will transpile & bundle automatically. `<link>` tags can point to stylesheets and Bun's CSS bundler will bundle.
|
|
71
|
-
|
|
72
|
-
```html#index.html
|
|
73
|
-
<html>
|
|
74
|
-
<body>
|
|
75
|
-
<h1>Hello, world!</h1>
|
|
76
|
-
<script type="module" src="./frontend.tsx"></script>
|
|
77
|
-
</body>
|
|
78
|
-
</html>
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
With the following `frontend.tsx`:
|
|
82
|
-
|
|
83
|
-
```tsx#frontend.tsx
|
|
84
|
-
import React from "react";
|
|
85
|
-
import { createRoot } from "react-dom/client";
|
|
86
|
-
|
|
87
|
-
// import .css files directly and it works
|
|
88
|
-
import './index.css';
|
|
89
|
-
|
|
90
|
-
const root = createRoot(document.body);
|
|
91
|
-
|
|
92
|
-
export default function Frontend() {
|
|
93
|
-
return <h1>Hello, world!</h1>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
root.render(<Frontend />);
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
Then, run index.ts
|
|
100
|
-
|
|
101
|
-
```sh
|
|
102
|
-
bun --hot ./index.ts
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
For more information, read the Bun API docs in `docs/**.mdx`.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# TypeScript types for Bun
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<a href="https://bun.com"><img src="https://bun.com/logo@2x.png" alt="Logo"></a>
|
|
5
|
-
</p>
|
|
6
|
-
|
|
7
|
-
These are the type definitions for Bun's JavaScript runtime APIs.
|
|
8
|
-
|
|
9
|
-
# Installation
|
|
10
|
-
|
|
11
|
-
Install the `@types/bun` npm package:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
# yarn/npm/pnpm work too
|
|
15
|
-
# @types/bun is an ordinary npm package
|
|
16
|
-
bun add -D @types/bun
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
That's it! VS Code and TypeScript automatically load `@types/*` packages into your project, so the `Bun` global and all `bun:*` modules should be available immediately.
|
|
20
|
-
|
|
21
|
-
# Contributing
|
|
22
|
-
|
|
23
|
-
The `@types/bun` package is a shim that loads `bun-types`. The `bun-types` package lives in the Bun repo under `packages/bun-types`.
|
|
24
|
-
|
|
25
|
-
To add a new file, add it under `packages/bun-types`. Then add a [triple-slash directive](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html) pointing to it inside [./index.d.ts](./index.d.ts).
|
|
26
|
-
|
|
27
|
-
```diff
|
|
28
|
-
+ /// <reference path="./newfile.d.ts" />
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
bun build
|
|
33
|
-
```
|