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
|
@@ -1,279 +1,50 @@
|
|
|
1
1
|
---
|
|
2
|
-
allowed-tools: [Bash, Read, Write
|
|
3
|
-
description: 'Run tests and advance workflow phase'
|
|
4
|
-
timestamp-rule: 'GetTimestamp() for ALL timestamps'
|
|
5
|
-
architecture: 'Write-Through (JSON -> MD -> Events)'
|
|
6
|
-
storage-layer: true
|
|
7
|
-
source-of-truth: 'storage/state.json'
|
|
2
|
+
allowed-tools: [Bash, Read, Write]
|
|
8
3
|
---
|
|
9
4
|
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
-
Run tests to advance from implement phase to test phase in the workflow.
|
|
13
|
-
|
|
14
|
-
## Usage
|
|
5
|
+
# p. test
|
|
15
6
|
|
|
7
|
+
```bash
|
|
8
|
+
prjct context test
|
|
16
9
|
```
|
|
17
|
-
/p:test [all|unit|e2e|failed|fix]
|
|
18
|
-
[--blocking] # Exit with error if tests fail
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Context Variables
|
|
22
|
-
- `{projectId}`: From `.prjct/prjct.config.json`
|
|
23
|
-
- `{globalPath}`: `~/.prjct-cli/projects/{projectId}`
|
|
24
|
-
- `{configPath}`: `~/.prjct-cli/config.json`
|
|
25
|
-
- `{statePath}`: `{globalPath}/storage/state.json`
|
|
26
|
-
- `{memoryPath}`: `{globalPath}/memory/events.jsonl`
|
|
27
|
-
- `{syncPath}`: `{globalPath}/sync/pending.json`
|
|
28
|
-
|
|
29
|
-
## Step 1: Read Project Config
|
|
30
|
-
|
|
31
|
-
READ: `.prjct/prjct.config.json`
|
|
32
|
-
EXTRACT: `projectId`
|
|
33
|
-
|
|
34
|
-
IF file not found:
|
|
35
|
-
OUTPUT: "No prjct project. Run /p:init first."
|
|
36
|
-
STOP
|
|
37
|
-
|
|
38
|
-
## Step 1.5: Validate Workflow Phase
|
|
39
|
-
|
|
40
|
-
READ: `{globalPath}/storage/state.json`
|
|
41
|
-
|
|
42
|
-
IF currentTask is null:
|
|
43
|
-
OUTPUT: "No active task. Use p. task to start one."
|
|
44
|
-
STOP
|
|
45
|
-
|
|
46
|
-
IF currentTask.workflow exists:
|
|
47
|
-
IF currentTask.workflow.phase != "implement":
|
|
48
|
-
OUTPUT:
|
|
49
|
-
```
|
|
50
|
-
Cannot run tests. Current phase: {currentTask.workflow.phase}
|
|
51
|
-
|
|
52
|
-
Required phase: implement
|
|
53
|
-
|
|
54
|
-
Workflow: analyze → branch → implement → test → review → merge → ship → verify
|
|
55
|
-
```
|
|
56
|
-
STOP
|
|
57
|
-
|
|
58
|
-
## Step 2: Parse Arguments
|
|
59
|
-
|
|
60
|
-
SET defaults:
|
|
61
|
-
- {testMode} = "all"
|
|
62
|
-
- {blocking} = false
|
|
63
|
-
|
|
64
|
-
PARSE args:
|
|
65
|
-
- IF arg is "all|unit|e2e|failed|fix": {testMode} = arg
|
|
66
|
-
- IF arg contains "--blocking": {blocking} = true
|
|
67
|
-
|
|
68
|
-
## Step 3: Detect Testing Strategy
|
|
69
|
-
|
|
70
|
-
### Check for Native Test Runner
|
|
71
|
-
|
|
72
|
-
READ: `package.json`
|
|
73
|
-
IF has "scripts.test":
|
|
74
|
-
Detect package manager (package.json "packageManager" or lockfiles):
|
|
75
|
-
- pnpm-lock.yaml → pnpm
|
|
76
|
-
- yarn.lock → yarn
|
|
77
|
-
- bun.lock/bun.lockb → bun
|
|
78
|
-
- else → npm
|
|
79
|
-
|
|
80
|
-
{runner} = "{packageManager}"
|
|
81
|
-
{runnerCmd} = "{packageManager} test"
|
|
82
|
-
→ Go to Step 4 (Native Testing)
|
|
83
|
-
|
|
84
|
-
IF file exists: `pytest.ini` OR `pyproject.toml` with pytest:
|
|
85
|
-
{runner} = "pytest"
|
|
86
|
-
{runnerCmd} = "pytest"
|
|
87
|
-
→ Go to Step 4
|
|
88
|
-
|
|
89
|
-
IF file exists: `Cargo.toml`:
|
|
90
|
-
{runner} = "cargo"
|
|
91
|
-
{runnerCmd} = "cargo test"
|
|
92
|
-
→ Go to Step 4
|
|
93
|
-
|
|
94
|
-
IF file exists: `go.mod`:
|
|
95
|
-
{runner} = "go"
|
|
96
|
-
{runnerCmd} = "go test ./..."
|
|
97
|
-
→ Go to Step 4
|
|
98
|
-
|
|
99
|
-
IF file exists: `*.sln` OR `*.csproj`:
|
|
100
|
-
{runner} = "dotnet"
|
|
101
|
-
{runnerCmd} = "dotnet test"
|
|
102
|
-
→ Go to Step 4
|
|
103
|
-
|
|
104
|
-
IF no runner found:
|
|
105
|
-
OUTPUT: "No test runner detected."
|
|
106
|
-
OUTPUT: ""
|
|
107
|
-
OUTPUT: "Options:"
|
|
108
|
-
OUTPUT: "• Add 'test' script to package.json"
|
|
109
|
-
OUTPUT: "• Add pytest.ini for Python projects"
|
|
110
|
-
OUTPUT: "• Add Cargo.toml for Rust projects"
|
|
111
|
-
OUTPUT: "• Add go.mod for Go projects"
|
|
112
|
-
OUTPUT: "• Add a .sln/.csproj for .NET projects"
|
|
113
|
-
STOP
|
|
114
|
-
|
|
115
|
-
## Step 4: Native Test Runner
|
|
116
|
-
|
|
117
|
-
OUTPUT: "🧪 Running tests with {runner}..."
|
|
118
|
-
|
|
119
|
-
BASH: `{runnerCmd} 2>&1`
|
|
120
|
-
CAPTURE output as {testOutput}
|
|
121
|
-
|
|
122
|
-
### Parse Results
|
|
123
10
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
{passed} = extract passed count
|
|
131
|
-
{failed} = extract failed count
|
|
132
|
-
ELSE:
|
|
133
|
-
{testStatus} = "unknown"
|
|
11
|
+
Detect test runner from project files:
|
|
12
|
+
- package.json with scripts.test → npm/pnpm/yarn/bun test
|
|
13
|
+
- pytest.ini/pyproject.toml → pytest
|
|
14
|
+
- Cargo.toml → cargo test
|
|
15
|
+
- go.mod → go test ./...
|
|
16
|
+
- *.sln/*.csproj → dotnet test
|
|
134
17
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
IF {runner} == "npm" OR {runner} == "pnpm" OR {runner} == "yarn" OR {runner} == "bun":
|
|
140
|
-
# Reason: only JS test runners commonly support snapshot update flags.
|
|
141
|
-
BASH: `{runnerCmd} -- -u 2>&1` # Update snapshots (best effort)
|
|
142
|
-
|
|
143
|
-
OUTPUT: "Snapshots updated. Re-running tests..."
|
|
144
|
-
BASH: `{runnerCmd} 2>&1`
|
|
145
|
-
CAPTURE and re-parse results
|
|
146
|
-
|
|
147
|
-
→ Go to Step 5 (Results)
|
|
148
|
-
|
|
149
|
-
## Step 5: Results & Response
|
|
150
|
-
|
|
151
|
-
### Log to Memory
|
|
152
|
-
|
|
153
|
-
SET: {now} = GetTimestamp()
|
|
154
|
-
|
|
155
|
-
APPEND to `{memoryPath}`:
|
|
156
|
-
```json
|
|
157
|
-
{"ts":"{now}","type":"test_run","tool":"{runner}","passed":{passed},"failed":{failed},"mode":"{testMode}"}
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
### Check Blocking Mode
|
|
161
|
-
|
|
162
|
-
IF {blocking} AND {failed} > 0:
|
|
163
|
-
OUTPUT: "❌ {failed} tests failed. Blocking."
|
|
164
|
-
OUTPUT: ""
|
|
165
|
-
OUTPUT: "Fix failing tests or run without --blocking flag."
|
|
166
|
-
EXIT with error (non-zero)
|
|
167
|
-
|
|
168
|
-
### Success Response
|
|
169
|
-
|
|
170
|
-
IF {testStatus} == "passed":
|
|
171
|
-
### Update Workflow Phase (if workflow exists)
|
|
172
|
-
IF currentTask.workflow exists:
|
|
173
|
-
SET: {now} = GetTimestamp()
|
|
174
|
-
|
|
175
|
-
SET: currentTask.workflow.phase = "test"
|
|
176
|
-
SET: currentTask.workflow.checkpoints.implement = {
|
|
177
|
-
"completedAt": "{now}",
|
|
178
|
-
"data": { "filesChanged": {count}, "commits": {count} }
|
|
179
|
-
}
|
|
180
|
-
SET: currentTask.workflow.checkpoints.test = {
|
|
181
|
-
"completedAt": "{now}",
|
|
182
|
-
"data": { "passed": {passed}, "coverage": "{coverage}" }
|
|
183
|
-
}
|
|
184
|
-
SET: currentTask.workflow.lastCheckpoint = "test"
|
|
185
|
-
|
|
186
|
-
WRITE: `{statePath}`
|
|
187
|
-
|
|
188
|
-
### Log workflow events
|
|
189
|
-
APPEND to `{memoryPath}`:
|
|
190
|
-
```json
|
|
191
|
-
{"timestamp":"{now}","action":"phase_advanced","taskId":"{currentTask.id}","from":"implement","to":"test"}
|
|
192
|
-
{"timestamp":"{now}","action":"checkpoint_completed","taskId":"{currentTask.id}","checkpoint":"implement"}
|
|
193
|
-
{"timestamp":"{now}","action":"checkpoint_completed","taskId":"{currentTask.id}","checkpoint":"test"}
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### Queue sync event
|
|
197
|
-
APPEND to `{syncPath}`:
|
|
198
|
-
```json
|
|
199
|
-
{"type":"workflow.phase_advanced","data":{"taskId":"{currentTask.id}","from":"implement","to":"test"},"timestamp":"{now}"}
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
OUTPUT: "✅ All tests passing!"
|
|
203
|
-
OUTPUT: ""
|
|
204
|
-
OUTPUT: "📊 Results:"
|
|
205
|
-
OUTPUT: "• Passed: {passed}"
|
|
206
|
-
IF {coverage}:
|
|
207
|
-
OUTPUT: "• Coverage: {coverage}%"
|
|
208
|
-
|
|
209
|
-
IF currentTask.workflow exists:
|
|
210
|
-
OUTPUT: ""
|
|
211
|
-
OUTPUT: "Phase: test (4/11 checkpoints)"
|
|
212
|
-
OUTPUT: ""
|
|
213
|
-
OUTPUT: "Workflow:"
|
|
214
|
-
OUTPUT: "1. analyze ✓"
|
|
215
|
-
OUTPUT: "2. branch ✓"
|
|
216
|
-
OUTPUT: "3. implement ✓"
|
|
217
|
-
OUTPUT: "4. test ✓"
|
|
218
|
-
OUTPUT: "5. review ← next"
|
|
219
|
-
OUTPUT: ""
|
|
220
|
-
OUTPUT: "🎯 Next: p. review"
|
|
221
|
-
ELSE:
|
|
222
|
-
OUTPUT: ""
|
|
223
|
-
OUTPUT: "🎯 Next: /p:ship"
|
|
224
|
-
|
|
225
|
-
### Failure Response
|
|
226
|
-
|
|
227
|
-
IF {testStatus} == "failed":
|
|
228
|
-
OUTPUT: "❌ {failed} tests failing"
|
|
229
|
-
OUTPUT: ""
|
|
230
|
-
OUTPUT: "{testOutput}" # Show relevant failure output
|
|
231
|
-
OUTPUT: ""
|
|
232
|
-
OUTPUT: "💡 Auto-fix: /p:test fix"
|
|
233
|
-
OUTPUT: ""
|
|
234
|
-
OUTPUT: "📊 Summary: {passed}/{passed + failed} passed"
|
|
235
|
-
|
|
236
|
-
## Error Handling
|
|
237
|
-
|
|
238
|
-
| Error | Response | Action |
|
|
239
|
-
|-------|----------|--------|
|
|
240
|
-
| No project | "No prjct project" | STOP |
|
|
241
|
-
| No test runner | "No test runner detected" | Show setup options |
|
|
242
|
-
| Tests timeout | "Tests timed out" | Suggest increasing timeout |
|
|
243
|
-
|
|
244
|
-
## Examples
|
|
245
|
-
|
|
246
|
-
### Example 1: Native Tests Pass
|
|
18
|
+
Run tests:
|
|
19
|
+
```bash
|
|
20
|
+
{runnerCmd} 2>&1
|
|
247
21
|
```
|
|
248
|
-
🧪 Running tests with npm...
|
|
249
22
|
|
|
250
|
-
|
|
23
|
+
Parse results: passed/failed count
|
|
251
24
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
25
|
+
IF failed AND mode == "fix":
|
|
26
|
+
Try `{runnerCmd} -- -u` (update snapshots)
|
|
27
|
+
Re-run tests
|
|
255
28
|
|
|
256
|
-
|
|
29
|
+
**Output (pass)**:
|
|
257
30
|
```
|
|
31
|
+
✅ Tests passing
|
|
258
32
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
🧪 Running tests with npm...
|
|
262
|
-
|
|
263
|
-
❌ 3 tests failing
|
|
264
|
-
|
|
265
|
-
[test output here]
|
|
266
|
-
|
|
267
|
-
💡 Auto-fix: /p:test fix
|
|
33
|
+
Passed: {count}
|
|
34
|
+
Coverage: {%}
|
|
268
35
|
|
|
269
|
-
|
|
36
|
+
Next:
|
|
37
|
+
- Code review → `p. review`
|
|
38
|
+
- Ship → `p. ship`
|
|
270
39
|
```
|
|
271
40
|
|
|
272
|
-
|
|
41
|
+
**Output (fail)**:
|
|
273
42
|
```
|
|
274
|
-
|
|
43
|
+
❌ {failed} tests failing
|
|
275
44
|
|
|
276
|
-
|
|
45
|
+
{test output}
|
|
277
46
|
|
|
278
|
-
|
|
47
|
+
Next:
|
|
48
|
+
- Auto-fix → `p. test fix`
|
|
49
|
+
- Fix manually and re-run
|
|
279
50
|
```
|
package/CLAUDE.md
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
# CLAUDE.md
|
|
2
|
-
|
|
3
|
-
This file provides guidance to Claude Code when working with prjct-cli.
|
|
4
|
-
|
|
5
|
-
## Project Overview
|
|
6
|
-
|
|
7
|
-
**prjct-cli** is a developer momentum tool. Track progress through natural language commands (`p. <command>`) without meetings or traditional PM overhead.
|
|
8
|
-
|
|
9
|
-
## HOW PRJCT WORKS
|
|
10
|
-
|
|
11
|
-
When user types `p. <command>`, load the template from `templates/commands/{command}.md` and execute it **intelligently** - templates are GUIDANCE, not rigid scripts.
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
p. sync → Analyze project, generate domain agents
|
|
15
|
-
p. task X → Start task with classification + breakdown
|
|
16
|
-
p. done → Complete current subtask
|
|
17
|
-
p. ship X → Ship feature with PR + version bump
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## CRITICAL RULES
|
|
23
|
-
|
|
24
|
-
### 1. Path Resolution (MOST IMPORTANT)
|
|
25
|
-
**ALL writes go to global storage**: `~/.prjct-cli/projects/{projectId}/`
|
|
26
|
-
- **NEVER** write to `.prjct/` (config only, read-only)
|
|
27
|
-
- **NEVER** write to `./` (current directory)
|
|
28
|
-
|
|
29
|
-
### 2. Before Any Command
|
|
30
|
-
```
|
|
31
|
-
1. Read .prjct/prjct.config.json → get projectId
|
|
32
|
-
2. Set globalPath = ~/.prjct-cli/projects/{projectId}
|
|
33
|
-
3. Execute using globalPath for all writes
|
|
34
|
-
4. Log to {globalPath}/memory/events.jsonl
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### 3. Timestamps & UUIDs
|
|
38
|
-
```bash
|
|
39
|
-
# Timestamp (NEVER hardcode)
|
|
40
|
-
bun -e "console.log(new Date().toISOString())" 2>/dev/null || node -e "console.log(new Date().toISOString())"
|
|
41
|
-
|
|
42
|
-
# UUID
|
|
43
|
-
bun -e "console.log(crypto.randomUUID())" 2>/dev/null || node -e "console.log(require('crypto').randomUUID())"
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### 4. Git Commit Footer (CRITICAL - ALWAYS INCLUDE)
|
|
47
|
-
|
|
48
|
-
**Every commit MUST include the prjct signature:**
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
🤖 Generated with [p/](https://www.prjct.app/)
|
|
52
|
-
Designed for [Claude](https://www.anthropic.com/claude)
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**NON-NEGOTIABLE: The `🤖 Generated with [p/]` line identifies prjct-powered commits.**
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## ARCHITECTURE: Write-Through Pattern
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
User Action → Storage (JSON) → Context (MD) → Sync Events
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
| Layer | Path | Purpose |
|
|
67
|
-
|-------|------|---------|
|
|
68
|
-
| **Storage** | `storage/*.json` | Source of truth |
|
|
69
|
-
| **Context** | `context/*.md` | Claude-readable summaries |
|
|
70
|
-
| **Memory** | `memory/events.jsonl` | Audit trail (append-only) |
|
|
71
|
-
| **Agents** | `agents/*.md` | Domain specialists |
|
|
72
|
-
|
|
73
|
-
### File Structure
|
|
74
|
-
```
|
|
75
|
-
~/.prjct-cli/projects/{projectId}/
|
|
76
|
-
├── storage/
|
|
77
|
-
│ ├── state.json # Current task (SOURCE OF TRUTH)
|
|
78
|
-
│ ├── queue.json # Task queue
|
|
79
|
-
│ └── shipped.json # Shipped features
|
|
80
|
-
├── context/
|
|
81
|
-
│ ├── now.md # Current task (generated)
|
|
82
|
-
│ └── next.md # Queue (generated)
|
|
83
|
-
├── memory/
|
|
84
|
-
│ └── events.jsonl # Audit trail
|
|
85
|
-
├── agents/ # Domain specialists
|
|
86
|
-
└── sync/
|
|
87
|
-
└── pending.json # Backend events
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## COMMANDS
|
|
93
|
-
|
|
94
|
-
### Core Workflow
|
|
95
|
-
| Trigger | Purpose |
|
|
96
|
-
|---------|---------|
|
|
97
|
-
| `p. init` | Initialize project with deep analysis |
|
|
98
|
-
| `p. sync` | Analyze repo, generate agents |
|
|
99
|
-
| `p. task <desc>` | Start task with agentic classification |
|
|
100
|
-
| `p. done` | Complete current subtask |
|
|
101
|
-
| `p. ship [name]` | Ship with PR + version bump |
|
|
102
|
-
| `p. pause` | Pause active task |
|
|
103
|
-
| `p. resume` | Resume paused task |
|
|
104
|
-
| `p. bug <desc>` | Report bug with auto-priority |
|
|
105
|
-
|
|
106
|
-
### Issue Tracker Integrations
|
|
107
|
-
| Trigger | Purpose |
|
|
108
|
-
|---------|---------|
|
|
109
|
-
| `p. linear` | Linear issues (OAuth via MCP) |
|
|
110
|
-
| `p. jira` | JIRA issues (OAuth/SSO via MCP) |
|
|
111
|
-
| `p. github` | GitHub Issues (token via MCP) |
|
|
112
|
-
| `p. monday` | Monday.com boards (OAuth via MCP) |
|
|
113
|
-
| `p. enrich <ID>` | **AI-powered ticket enrichment** |
|
|
114
|
-
|
|
115
|
-
### Ticket Enrichment (`p. enrich`)
|
|
116
|
-
|
|
117
|
-
Transform vague PM tickets into technical PRDs:
|
|
118
|
-
|
|
119
|
-
```
|
|
120
|
-
PM creates: "Add user auth"
|
|
121
|
-
↓
|
|
122
|
-
p. enrich PRJ-59
|
|
123
|
-
↓
|
|
124
|
-
Architect analyzes codebase:
|
|
125
|
-
- Similar implementations found
|
|
126
|
-
- 5 files affected
|
|
127
|
-
- OAuth2 approach recommended
|
|
128
|
-
- 8 story points (not PM's guess of 2)
|
|
129
|
-
↓
|
|
130
|
-
Publishes PRD to tracker:
|
|
131
|
-
- Technical approach
|
|
132
|
-
- Acceptance criteria
|
|
133
|
-
- LLM-ready prompt (for any AI tool)
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
**Subcommands:**
|
|
137
|
-
- `p. enrich <ID>` - Enrich specific ticket
|
|
138
|
-
- `p. enrich setup` - Configure team preferences (estimation, output)
|
|
139
|
-
- `p. enrich batch` - Enrich all assigned tickets (backlog grooming)
|
|
140
|
-
|
|
141
|
-
### Workflow
|
|
142
|
-
```
|
|
143
|
-
p. sync → p. task "description" → [work] → p. done → p. ship
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### With Issue Tracker
|
|
147
|
-
```
|
|
148
|
-
p. linear → p. enrich PRJ-59 → p. linear start PRJ-59 → [work] → p. done → p. ship
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
---
|
|
152
|
-
|
|
153
|
-
## INTELLIGENT BEHAVIOR
|
|
154
|
-
|
|
155
|
-
Templates provide guidance. Use your intelligence to:
|
|
156
|
-
|
|
157
|
-
1. **Read before write** - Always read existing files first
|
|
158
|
-
2. **Explore before coding** - Use Task(Explore) to understand codebase
|
|
159
|
-
3. **Ask when uncertain** - Use AskUserQuestion to clarify
|
|
160
|
-
4. **Load agents** - Read from `{globalPath}/agents/` for domain expertise
|
|
161
|
-
5. **Adapt templates** - They're guidance, not rigid scripts
|
|
162
|
-
6. **Log everything** - Append to memory/events.jsonl
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
## OUTPUT FORMAT
|
|
167
|
-
|
|
168
|
-
Concise responses (< 4 lines):
|
|
169
|
-
```
|
|
170
|
-
✅ [What was done]
|
|
171
|
-
|
|
172
|
-
[Key metrics]
|
|
173
|
-
Next: [suggested action]
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
---
|
|
177
|
-
|
|
178
|
-
## KEY RULES
|
|
179
|
-
|
|
180
|
-
1. **Read files before editing** - Never assume structure
|
|
181
|
-
2. **Use node/bun for timestamps** - Never hardcode dates
|
|
182
|
-
3. **Follow template guidance** - But adapt intelligently
|
|
183
|
-
4. **Log to memory** - Append to `memory/events.jsonl`
|
|
184
|
-
5. **Suggest next actions** - Maintain user momentum
|
|
185
|
-
6. **Use linked skills** - Agents have skills in frontmatter
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
## SKILL INTEGRATION (v0.27)
|
|
190
|
-
|
|
191
|
-
Agents are linked to Claude Code skills from claude-plugins.dev.
|
|
192
|
-
|
|
193
|
-
### Agent → Skill Mapping
|
|
194
|
-
|
|
195
|
-
| Agent | Skill |
|
|
196
|
-
|-------|-------|
|
|
197
|
-
| `frontend.md` | `frontend-design` |
|
|
198
|
-
| `uxui.md` | `frontend-design` |
|
|
199
|
-
| `backend.md` | `javascript-typescript` |
|
|
200
|
-
| `testing.md` | `developer-kit` |
|
|
201
|
-
| `devops.md` | `developer-kit` |
|
|
202
|
-
| `prjct-planner.md` | `feature-dev` |
|
|
203
|
-
| `prjct-shipper.md` | `code-review` |
|
|
204
|
-
|
|
205
|
-
### Usage
|
|
206
|
-
|
|
207
|
-
- `p. sync` installs required skills automatically
|
|
208
|
-
- `p. task` invokes skills based on task type
|
|
209
|
-
- Skills config: `{globalPath}/config/skills.json`
|
|
210
|
-
|
|
211
|
-
See `templates/agentic/skill-integration.md` for details.
|
|
@@ -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
|
-
```
|