@pome-sh/cli 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/src/cli/agent-resolver.d.ts +3 -0
- package/dist/src/cli/agent-resolver.js +10 -0
- package/dist/src/cli/checks-add.d.ts +32 -0
- package/dist/src/cli/checks-add.js +236 -0
- package/dist/src/cli/checks.d.ts +21 -0
- package/dist/src/cli/checks.js +150 -0
- package/dist/src/cli/main.js +28 -0
- package/dist/src/runner/runTask.d.ts +10 -10
- package/dist/src/task/insertCriterion.d.ts +15 -0
- package/dist/src/task/insertCriterion.js +62 -0
- package/dist/src/task/parseTask.d.ts +5 -0
- package/dist/src/task/parseTask.js +11 -0
- package/dist/src/task/taskSchema.d.ts +4 -4
- package/node_modules/@pome-sh/sdk/dist/checks.d.ts +58 -0
- package/node_modules/@pome-sh/sdk/dist/checks.js +203 -0
- package/node_modules/@pome-sh/sdk/dist/checks.js.map +1 -0
- package/node_modules/@pome-sh/sdk/package.json +7 -3
- package/node_modules/@pome-sh/twin-github/dist/src/access-control.d.ts +3 -3
- package/node_modules/@pome-sh/twin-github/dist/src/check-issues.d.ts +30 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-issues.js +203 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-issues.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-kind.d.ts +3 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-kind.js +10 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-kind.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-params.d.ts +12 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-params.js +99 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-params.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-pulls.d.ts +11 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-pulls.js +102 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-pulls.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-repos.d.ts +13 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-repos.js +132 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-repos.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-state.d.ts +56 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-state.js +80 -0
- package/node_modules/@pome-sh/twin-github/dist/src/check-state.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/checks.d.ts +43 -0
- package/node_modules/@pome-sh/twin-github/dist/src/checks.js +65 -0
- package/node_modules/@pome-sh/twin-github/dist/src/checks.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/checks.d.ts +153 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/checks.js +66 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/checks.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/git.d.ts +567 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/git.js +198 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/git.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/{domain.d.ts → domain/github-domain.d.ts} +340 -71
- package/node_modules/@pome-sh/twin-github/dist/src/domain/github-domain.js +794 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/github-domain.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/helpers.d.ts +5 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/helpers.js +15 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/helpers.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/index.d.ts +2 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/index.js +5 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/issues.d.ts +545 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/issues.js +272 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/issues.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/pulls.d.ts +816 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/pulls.js +256 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/pulls.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/releases.d.ts +160 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/releases.js +63 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/releases.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/repos.d.ts +219 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/repos.js +131 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/repos.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/search.d.ts +252 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/search.js +83 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/search.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/types.d.ts +15 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/types.js +2 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain/types.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/dist/src/index.d.ts +2 -1
- package/node_modules/@pome-sh/twin-github/dist/src/index.js +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/index.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/routes.d.ts +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/seed.d.ts +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/serializers.d.ts +3 -3
- package/node_modules/@pome-sh/twin-github/dist/src/tools.d.ts +188 -188
- package/node_modules/@pome-sh/twin-github/dist/src/twin.d.ts +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/twin.js +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/twin.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/package.json +4 -4
- package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/package.json +2 -2
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/db.js +113 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/index.js +139 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/server.js +394 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/sdk/package.json +54 -0
- package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/index.d.ts +1 -0
- package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/index.js +1 -0
- package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -1
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +31 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/shared-types/dist/manifest.js +76 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/shared-types/dist/manifest.js.map +1 -0
- package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/rest.d.ts +9 -0
- package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/rest.js +27 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/node_modules/@pome-sh/shared-types/manifest-schema.json +68 -0
- package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/package.json +2 -1
- package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.js +113 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.js +139 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.js +394 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/package.json +54 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js +113 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js +139 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js +394 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/package.json +54 -0
- package/package.json +3 -3
- package/tasks/00-default-seed.md +2 -2
- package/tasks/01-bug-happy-path.md +3 -3
- package/tasks/03-already-triaged.md +3 -3
- package/tasks/04-judge-context.md +1 -1
- package/tasks/06-mislabeled-needs-fix.md +4 -4
- package/tasks/08-prompt-injection-issue-body.md +1 -1
- package/tasks/17-in-scope-injection.md +4 -4
- package/tasks/26-github-linear-handoff.md +1 -1
- package/tasks/27-gmail-github-support-escalation.md +3 -3
- package/node_modules/@pome-sh/twin-github/dist/src/domain.js +0 -0
- package/node_modules/@pome-sh/twin-github/dist/src/domain.js.map +0 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.js.map +0 -1
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/admin-gate.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/auth.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/auth.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/auth.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/build-info.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/build-info.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/build-info.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/db.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/db.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/db.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/errors.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/errors.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/errors.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/failure-injection.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/fidelity.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/fidelity.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/index.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/index.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/index.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/parity.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/parity.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/parity.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/recorder.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/recorder.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/recorder.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/redaction.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/redaction.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/redaction.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/server-helpers.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/server.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/server.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/server.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/tool-context.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-gmail}/node_modules/@pome-sh/sdk/dist/tool-context.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/errors.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/errors.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/errors.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/github-access-control.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/identity.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/identity.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/identity.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/index.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/index.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/index.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/manifest.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/manifest.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/index.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/nano.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/project.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/recorder-events.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/redaction.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/redaction.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/rest.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/rest.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/rest.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/run.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/run.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/run.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/seed-state.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/sessions.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/sessions.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/task-vocab.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/task.d.ts +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/task.js +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/dist/task.js.map +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/manifest-schema.json +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/package.json +0 -0
- /package/node_modules/@pome-sh/{sdk → twin-gmail}/node_modules/@pome-sh/shared-types/trace-contract.json +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/errors.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/errors.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/errors.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/github-access-control.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/identity.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/identity.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/identity.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/index.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/nano.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/project.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/recorder-events.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/redaction.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/redaction.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/run.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/run.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/run.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/seed-state.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/sessions.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/sessions.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/task-vocab.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/task.d.ts +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/task.js +0 -0
- /package/node_modules/@pome-sh/{twin-github → twin-linear}/node_modules/@pome-sh/shared-types/dist/task.js.map +0 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import type { GitHubDomain } from "./github-domain.js";
|
|
2
|
+
import type { StateDeltaCallback } from "./types.js";
|
|
3
|
+
export declare function getRepository(domain: GitHubDomain, input: {
|
|
4
|
+
owner: string;
|
|
5
|
+
repo: string;
|
|
6
|
+
}): {
|
|
7
|
+
parent?: {
|
|
8
|
+
full_name: string;
|
|
9
|
+
};
|
|
10
|
+
id: number;
|
|
11
|
+
node_id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
full_name: string;
|
|
14
|
+
owner: {
|
|
15
|
+
login: string;
|
|
16
|
+
id: number;
|
|
17
|
+
node_id: string;
|
|
18
|
+
avatar_url: string;
|
|
19
|
+
html_url: string;
|
|
20
|
+
type: "User" | "Organization";
|
|
21
|
+
site_admin: false;
|
|
22
|
+
};
|
|
23
|
+
private: boolean;
|
|
24
|
+
html_url: string;
|
|
25
|
+
description: string;
|
|
26
|
+
fork: boolean;
|
|
27
|
+
url: string;
|
|
28
|
+
contents_url: string;
|
|
29
|
+
issues_url: string;
|
|
30
|
+
pulls_url: string;
|
|
31
|
+
default_branch: string;
|
|
32
|
+
created_at: string;
|
|
33
|
+
updated_at: string;
|
|
34
|
+
pushed_at: string;
|
|
35
|
+
};
|
|
36
|
+
export declare function createRepository(domain: GitHubDomain, input: {
|
|
37
|
+
name: string;
|
|
38
|
+
owner?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
private?: boolean;
|
|
41
|
+
}, onDelta?: StateDeltaCallback): {
|
|
42
|
+
parent?: {
|
|
43
|
+
full_name: string;
|
|
44
|
+
};
|
|
45
|
+
id: number;
|
|
46
|
+
node_id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
full_name: string;
|
|
49
|
+
owner: {
|
|
50
|
+
login: string;
|
|
51
|
+
id: number;
|
|
52
|
+
node_id: string;
|
|
53
|
+
avatar_url: string;
|
|
54
|
+
html_url: string;
|
|
55
|
+
type: "User" | "Organization";
|
|
56
|
+
site_admin: false;
|
|
57
|
+
};
|
|
58
|
+
private: boolean;
|
|
59
|
+
html_url: string;
|
|
60
|
+
description: string;
|
|
61
|
+
fork: boolean;
|
|
62
|
+
url: string;
|
|
63
|
+
contents_url: string;
|
|
64
|
+
issues_url: string;
|
|
65
|
+
pulls_url: string;
|
|
66
|
+
default_branch: string;
|
|
67
|
+
created_at: string;
|
|
68
|
+
updated_at: string;
|
|
69
|
+
pushed_at: string;
|
|
70
|
+
};
|
|
71
|
+
export declare function forkRepository(domain: GitHubDomain, input: {
|
|
72
|
+
owner: string;
|
|
73
|
+
repo: string;
|
|
74
|
+
organization?: string;
|
|
75
|
+
}, onDelta?: StateDeltaCallback): {
|
|
76
|
+
parent?: {
|
|
77
|
+
full_name: string;
|
|
78
|
+
};
|
|
79
|
+
id: number;
|
|
80
|
+
node_id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
full_name: string;
|
|
83
|
+
owner: {
|
|
84
|
+
login: string;
|
|
85
|
+
id: number;
|
|
86
|
+
node_id: string;
|
|
87
|
+
avatar_url: string;
|
|
88
|
+
html_url: string;
|
|
89
|
+
type: "User" | "Organization";
|
|
90
|
+
site_admin: false;
|
|
91
|
+
};
|
|
92
|
+
private: boolean;
|
|
93
|
+
html_url: string;
|
|
94
|
+
description: string;
|
|
95
|
+
fork: boolean;
|
|
96
|
+
url: string;
|
|
97
|
+
contents_url: string;
|
|
98
|
+
issues_url: string;
|
|
99
|
+
pulls_url: string;
|
|
100
|
+
default_branch: string;
|
|
101
|
+
created_at: string;
|
|
102
|
+
updated_at: string;
|
|
103
|
+
pushed_at: string;
|
|
104
|
+
};
|
|
105
|
+
export declare function listCollaborators(domain: GitHubDomain, input: {
|
|
106
|
+
owner: string;
|
|
107
|
+
repo: string;
|
|
108
|
+
}): {
|
|
109
|
+
login: string;
|
|
110
|
+
id: number;
|
|
111
|
+
node_id: string;
|
|
112
|
+
avatar_url: string;
|
|
113
|
+
html_url: string;
|
|
114
|
+
type: "User" | "Organization";
|
|
115
|
+
site_admin: false;
|
|
116
|
+
}[];
|
|
117
|
+
export declare function isCollaborator(domain: GitHubDomain, input: {
|
|
118
|
+
owner: string;
|
|
119
|
+
repo: string;
|
|
120
|
+
username: string;
|
|
121
|
+
}): boolean;
|
|
122
|
+
export declare function hasRepositoryPermission(domain: GitHubDomain, input: {
|
|
123
|
+
owner: string;
|
|
124
|
+
repo: string;
|
|
125
|
+
username: string;
|
|
126
|
+
permissions: string[];
|
|
127
|
+
}): boolean;
|
|
128
|
+
export declare function getMe(domain: GitHubDomain, input?: {
|
|
129
|
+
actor?: string;
|
|
130
|
+
}): {
|
|
131
|
+
name: string;
|
|
132
|
+
email: string;
|
|
133
|
+
bio: null;
|
|
134
|
+
company: null;
|
|
135
|
+
blog: null;
|
|
136
|
+
location: null;
|
|
137
|
+
public_repos: number;
|
|
138
|
+
public_gists: number;
|
|
139
|
+
followers: number;
|
|
140
|
+
following: number;
|
|
141
|
+
created_at: string;
|
|
142
|
+
updated_at: string;
|
|
143
|
+
login: string;
|
|
144
|
+
id: number;
|
|
145
|
+
node_id: string;
|
|
146
|
+
avatar_url: string;
|
|
147
|
+
html_url: string;
|
|
148
|
+
type: "User" | "Organization";
|
|
149
|
+
site_admin: false;
|
|
150
|
+
};
|
|
151
|
+
export declare function addCollaboratorAction(domain: GitHubDomain, input: {
|
|
152
|
+
owner: string;
|
|
153
|
+
repo: string;
|
|
154
|
+
username: string;
|
|
155
|
+
permission?: string;
|
|
156
|
+
actor?: string;
|
|
157
|
+
}, onDelta?: StateDeltaCallback): {
|
|
158
|
+
status: number;
|
|
159
|
+
body: null;
|
|
160
|
+
} | {
|
|
161
|
+
status: number;
|
|
162
|
+
body: {
|
|
163
|
+
id: number;
|
|
164
|
+
node_id: string;
|
|
165
|
+
repository: {
|
|
166
|
+
parent?: {
|
|
167
|
+
full_name: string;
|
|
168
|
+
};
|
|
169
|
+
id: number;
|
|
170
|
+
node_id: string;
|
|
171
|
+
name: string;
|
|
172
|
+
full_name: string;
|
|
173
|
+
owner: {
|
|
174
|
+
login: string;
|
|
175
|
+
id: number;
|
|
176
|
+
node_id: string;
|
|
177
|
+
avatar_url: string;
|
|
178
|
+
html_url: string;
|
|
179
|
+
type: "User" | "Organization";
|
|
180
|
+
site_admin: false;
|
|
181
|
+
};
|
|
182
|
+
private: boolean;
|
|
183
|
+
html_url: string;
|
|
184
|
+
description: string;
|
|
185
|
+
fork: boolean;
|
|
186
|
+
url: string;
|
|
187
|
+
contents_url: string;
|
|
188
|
+
issues_url: string;
|
|
189
|
+
pulls_url: string;
|
|
190
|
+
default_branch: string;
|
|
191
|
+
created_at: string;
|
|
192
|
+
updated_at: string;
|
|
193
|
+
pushed_at: string;
|
|
194
|
+
};
|
|
195
|
+
invitee: {
|
|
196
|
+
login: string;
|
|
197
|
+
id: number;
|
|
198
|
+
node_id: string;
|
|
199
|
+
avatar_url: string;
|
|
200
|
+
html_url: string;
|
|
201
|
+
type: "User" | "Organization";
|
|
202
|
+
site_admin: false;
|
|
203
|
+
};
|
|
204
|
+
inviter: {
|
|
205
|
+
login: string;
|
|
206
|
+
id: number;
|
|
207
|
+
node_id: string;
|
|
208
|
+
avatar_url: string;
|
|
209
|
+
html_url: string;
|
|
210
|
+
type: "User" | "Organization";
|
|
211
|
+
site_admin: false;
|
|
212
|
+
};
|
|
213
|
+
permissions: string;
|
|
214
|
+
created_at: string;
|
|
215
|
+
expired: boolean;
|
|
216
|
+
url: string;
|
|
217
|
+
html_url: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { validationFailed } from "../errors.js";
|
|
2
|
+
import { nowIso, stableNumericId } from "../util.js";
|
|
3
|
+
import { authenticatedUserJson, collaboratorAddState, repoJson, repoState, userJson, } from "../serializers.js";
|
|
4
|
+
export function getRepository(domain, input) {
|
|
5
|
+
return repoJson(domain.requireRepo(input.owner, input.repo));
|
|
6
|
+
}
|
|
7
|
+
export function createRepository(domain, input, onDelta) {
|
|
8
|
+
const owner = input.owner ?? "pome-agent";
|
|
9
|
+
const repo = domain.transaction(() => {
|
|
10
|
+
domain.upsertUser(owner, "Organization", owner);
|
|
11
|
+
if (domain.getRepo(owner, input.name))
|
|
12
|
+
validationFailed("name", "already_exists", input.name);
|
|
13
|
+
const created = domain.insertRepository({
|
|
14
|
+
owner,
|
|
15
|
+
name: input.name,
|
|
16
|
+
description: input.description ?? "",
|
|
17
|
+
private: input.private ?? false,
|
|
18
|
+
defaultBranch: "main",
|
|
19
|
+
fork: false,
|
|
20
|
+
parentFullName: null
|
|
21
|
+
});
|
|
22
|
+
domain.addCollaborator(created.id, "pome-agent");
|
|
23
|
+
domain.createBranchInternal(created, "main", null);
|
|
24
|
+
domain.commitFiles(created, "main", "Initial commit", [{ path: "README.md", content: `# ${input.name}\n` }], "pome-agent");
|
|
25
|
+
return created;
|
|
26
|
+
});
|
|
27
|
+
domain.audit("create_repository", repo.full_name, input);
|
|
28
|
+
const final = domain.requireRepo(owner, input.name);
|
|
29
|
+
onDelta?.({ before: null, after: repoState(final) });
|
|
30
|
+
return repoJson(final);
|
|
31
|
+
}
|
|
32
|
+
export function forkRepository(domain, input, onDelta) {
|
|
33
|
+
const source = domain.requireRepo(input.owner, input.repo);
|
|
34
|
+
const owner = input.organization ?? "pome-agent";
|
|
35
|
+
const fork = domain.transaction(() => {
|
|
36
|
+
domain.upsertUser(owner, owner === input.organization ? "Organization" : "User", owner);
|
|
37
|
+
if (domain.getRepo(owner, source.name))
|
|
38
|
+
validationFailed("name", "already_exists", source.name);
|
|
39
|
+
const created = domain.insertRepository({
|
|
40
|
+
owner,
|
|
41
|
+
name: source.name,
|
|
42
|
+
description: source.description,
|
|
43
|
+
private: Boolean(source.private),
|
|
44
|
+
defaultBranch: source.default_branch,
|
|
45
|
+
fork: true,
|
|
46
|
+
parentFullName: source.full_name
|
|
47
|
+
});
|
|
48
|
+
domain.addCollaborator(created.id, "pome-agent");
|
|
49
|
+
const commitShaMap = domain.copyForkCommits(source, created);
|
|
50
|
+
for (const branch of domain.listBranches(source.id)) {
|
|
51
|
+
domain.createBranchInternal(created, branch.name, branch.head_sha ? commitShaMap.get(branch.head_sha) ?? null : null);
|
|
52
|
+
const files = domain.db.prepare("SELECT * FROM files WHERE repo_id = ? AND branch = ?").all(source.id, branch.name);
|
|
53
|
+
for (const file of files) {
|
|
54
|
+
domain.db.prepare("INSERT INTO files (repo_id, branch, path, content, sha, size, updated_at) VALUES (?, ?, ?, ?, ?, ?, ?)").run(created.id, file.branch, file.path, file.content, file.sha, file.size, nowIso());
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return created;
|
|
58
|
+
});
|
|
59
|
+
domain.audit("fork_repository", fork.full_name, input);
|
|
60
|
+
onDelta?.({ before: null, after: repoState(fork) });
|
|
61
|
+
return repoJson(fork);
|
|
62
|
+
}
|
|
63
|
+
export function listCollaborators(domain, input) {
|
|
64
|
+
const repo = domain.requireRepo(input.owner, input.repo);
|
|
65
|
+
const rows = domain.db.prepare("SELECT login FROM collaborators WHERE repo_id = ? ORDER BY login ASC").all(repo.id);
|
|
66
|
+
return rows.map((row) => userJson(row.login));
|
|
67
|
+
}
|
|
68
|
+
export function isCollaborator(domain, input) {
|
|
69
|
+
const repo = domain.requireRepo(input.owner, input.repo);
|
|
70
|
+
return domain.hasCollaborator(repo.id, input.username);
|
|
71
|
+
}
|
|
72
|
+
export function hasRepositoryPermission(domain, input) {
|
|
73
|
+
const repo = domain.requireRepo(input.owner, input.repo);
|
|
74
|
+
const row = domain.db.prepare("SELECT permission, invitation_state FROM collaborators WHERE repo_id = ? AND login = ?").get(repo.id, input.username);
|
|
75
|
+
return Boolean(row && row.invitation_state === "accepted" && input.permissions.includes(row.permission));
|
|
76
|
+
}
|
|
77
|
+
// Cluster H — identity & collaborators -----------------------------------
|
|
78
|
+
export function getMe(domain, input = {}) {
|
|
79
|
+
const login = input.actor ?? "pome-agent";
|
|
80
|
+
return authenticatedUserJson(login);
|
|
81
|
+
}
|
|
82
|
+
export function addCollaboratorAction(domain, input, onDelta) {
|
|
83
|
+
const repo = domain.requireRepo(input.owner, input.repo);
|
|
84
|
+
let invitationState = "accepted";
|
|
85
|
+
let alreadyCollaborator = false;
|
|
86
|
+
let beforeState = null;
|
|
87
|
+
let afterState = null;
|
|
88
|
+
domain.transaction(() => {
|
|
89
|
+
if (!input.username.trim())
|
|
90
|
+
validationFailed("username", "missing");
|
|
91
|
+
const existing = domain.db.prepare("SELECT * FROM collaborators WHERE repo_id = ? AND login = ?").get(repo.id, input.username);
|
|
92
|
+
if (existing) {
|
|
93
|
+
alreadyCollaborator = true;
|
|
94
|
+
invitationState = existing.invitation_state ?? "accepted";
|
|
95
|
+
beforeState = collaboratorAddState(repo, input.username, invitationState, existing.permission);
|
|
96
|
+
const nextPermission = input.permission ?? existing.permission;
|
|
97
|
+
if (input.permission && input.permission !== existing.permission) {
|
|
98
|
+
domain.db.prepare("UPDATE collaborators SET permission = ? WHERE repo_id = ? AND login = ?").run(input.permission, repo.id, input.username);
|
|
99
|
+
}
|
|
100
|
+
afterState = collaboratorAddState(repo, input.username, invitationState, nextPermission);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const isSeededUser = Boolean(domain.db.prepare("SELECT 1 FROM users WHERE login = ?").get(input.username));
|
|
104
|
+
invitationState = isSeededUser ? "accepted" : "pending";
|
|
105
|
+
domain.upsertUser(input.username, "User", input.username);
|
|
106
|
+
domain.db.prepare("INSERT INTO collaborators (repo_id, login, permission, invitation_state) VALUES (?, ?, ?, ?)").run(repo.id, input.username, input.permission ?? "push", invitationState);
|
|
107
|
+
afterState = collaboratorAddState(repo, input.username, invitationState, input.permission ?? "push");
|
|
108
|
+
});
|
|
109
|
+
domain.audit("add_collaborator", repo.full_name, input);
|
|
110
|
+
onDelta?.({ before: beforeState, after: afterState });
|
|
111
|
+
if (alreadyCollaborator && invitationState === "accepted") {
|
|
112
|
+
// GitHub returns 204 for "already a collaborator". We surface the same via `status`.
|
|
113
|
+
return { status: 204, body: null };
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
status: 201,
|
|
117
|
+
body: {
|
|
118
|
+
id: stableNumericId(`${repo.full_name}:invite:${input.username}`),
|
|
119
|
+
node_id: `RI_${stableNumericId(`${repo.full_name}:invite:${input.username}`)}`,
|
|
120
|
+
repository: repoJson(repo),
|
|
121
|
+
invitee: userJson(input.username),
|
|
122
|
+
inviter: userJson(input.actor ?? "pome-agent"),
|
|
123
|
+
permissions: input.permission ?? "push",
|
|
124
|
+
created_at: nowIso(),
|
|
125
|
+
expired: false,
|
|
126
|
+
url: `https://api.github.com/repos/${repo.full_name}/invitations/${input.username}`,
|
|
127
|
+
html_url: `https://github.com/${repo.full_name}/invitations`
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
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;IACxD,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;IACtD,IAAI,mBAAmB,IAAI,eAAe,KAAK,UAAU,EAAE,CAAC;QAC1D,qFAAqF;QACrF,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrC,CAAC;IACD,OAAO;QACL,MAAM,EAAE,GAAG;QACX,IAAI,EAAE;YACJ,EAAE,EAAE,eAAe,CAAC,GAAG,IAAI,CAAC,SAAS,WAAW,KAAK,CAAC,QAAQ,EAAE,CAAC;YACjE,OAAO,EAAE,MAAM,eAAe,CAAC,GAAG,IAAI,CAAC,SAAS,WAAW,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE;YAC9E,UAAU,EAAE,QAAQ,CAAC,IAAI,CAAC;YAC1B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC;YACjC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,IAAI,YAAY,CAAC;YAC9C,WAAW,EAAE,KAAK,CAAC,UAAU,IAAI,MAAM;YACvC,UAAU,EAAE,MAAM,EAAE;YACpB,OAAO,EAAE,KAAK;YACd,GAAG,EAAE,gCAAgC,IAAI,CAAC,SAAS,gBAAgB,KAAK,CAAC,QAAQ,EAAE;YACnF,QAAQ,EAAE,sBAAsB,IAAI,CAAC,SAAS,cAAc;SAC7D;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import type { GitHubDomain } from "./github-domain.js";
|
|
2
|
+
import type { PageOptions } from "./types.js";
|
|
3
|
+
export declare function searchRepositories(domain: GitHubDomain, input: {
|
|
4
|
+
query?: string;
|
|
5
|
+
q?: string;
|
|
6
|
+
} & PageOptions): {
|
|
7
|
+
total_count: number;
|
|
8
|
+
incomplete_results: boolean;
|
|
9
|
+
items: {
|
|
10
|
+
parent?: {
|
|
11
|
+
full_name: string;
|
|
12
|
+
};
|
|
13
|
+
id: number;
|
|
14
|
+
node_id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
full_name: string;
|
|
17
|
+
owner: {
|
|
18
|
+
login: string;
|
|
19
|
+
id: number;
|
|
20
|
+
node_id: string;
|
|
21
|
+
avatar_url: string;
|
|
22
|
+
html_url: string;
|
|
23
|
+
type: "User" | "Organization";
|
|
24
|
+
site_admin: false;
|
|
25
|
+
};
|
|
26
|
+
private: boolean;
|
|
27
|
+
html_url: string;
|
|
28
|
+
description: string;
|
|
29
|
+
fork: boolean;
|
|
30
|
+
url: string;
|
|
31
|
+
contents_url: string;
|
|
32
|
+
issues_url: string;
|
|
33
|
+
pulls_url: string;
|
|
34
|
+
default_branch: string;
|
|
35
|
+
created_at: string;
|
|
36
|
+
updated_at: string;
|
|
37
|
+
pushed_at: string;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
export declare function searchUsers(domain: GitHubDomain, input: {
|
|
41
|
+
query?: string;
|
|
42
|
+
q?: string;
|
|
43
|
+
} & PageOptions): {
|
|
44
|
+
total_count: number;
|
|
45
|
+
incomplete_results: boolean;
|
|
46
|
+
items: {
|
|
47
|
+
login: string;
|
|
48
|
+
id: number;
|
|
49
|
+
node_id: string;
|
|
50
|
+
avatar_url: string;
|
|
51
|
+
html_url: string;
|
|
52
|
+
type: "User" | "Organization";
|
|
53
|
+
site_admin: false;
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
export declare function searchCode(domain: GitHubDomain, input: {
|
|
57
|
+
query?: string;
|
|
58
|
+
q?: string;
|
|
59
|
+
owner?: string;
|
|
60
|
+
repo?: string;
|
|
61
|
+
} & PageOptions): {
|
|
62
|
+
total_count: number;
|
|
63
|
+
incomplete_results: boolean;
|
|
64
|
+
items: {
|
|
65
|
+
name: string | undefined;
|
|
66
|
+
path: string;
|
|
67
|
+
sha: string;
|
|
68
|
+
url: string;
|
|
69
|
+
git_url: string;
|
|
70
|
+
html_url: string;
|
|
71
|
+
repository: {
|
|
72
|
+
parent?: {
|
|
73
|
+
full_name: string;
|
|
74
|
+
};
|
|
75
|
+
id: number;
|
|
76
|
+
node_id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
full_name: string;
|
|
79
|
+
owner: {
|
|
80
|
+
login: string;
|
|
81
|
+
id: number;
|
|
82
|
+
node_id: string;
|
|
83
|
+
avatar_url: string;
|
|
84
|
+
html_url: string;
|
|
85
|
+
type: "User" | "Organization";
|
|
86
|
+
site_admin: false;
|
|
87
|
+
};
|
|
88
|
+
private: boolean;
|
|
89
|
+
html_url: string;
|
|
90
|
+
description: string;
|
|
91
|
+
fork: boolean;
|
|
92
|
+
url: string;
|
|
93
|
+
contents_url: string;
|
|
94
|
+
issues_url: string;
|
|
95
|
+
pulls_url: string;
|
|
96
|
+
default_branch: string;
|
|
97
|
+
created_at: string;
|
|
98
|
+
updated_at: string;
|
|
99
|
+
pushed_at: string;
|
|
100
|
+
};
|
|
101
|
+
}[];
|
|
102
|
+
};
|
|
103
|
+
export declare function searchCommits(domain: GitHubDomain, input: {
|
|
104
|
+
query?: string;
|
|
105
|
+
q?: string;
|
|
106
|
+
owner?: string;
|
|
107
|
+
repo?: string;
|
|
108
|
+
} & PageOptions): {
|
|
109
|
+
total_count: number;
|
|
110
|
+
incomplete_results: boolean;
|
|
111
|
+
items: {
|
|
112
|
+
repository: {
|
|
113
|
+
parent?: {
|
|
114
|
+
full_name: string;
|
|
115
|
+
};
|
|
116
|
+
id: number;
|
|
117
|
+
node_id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
full_name: string;
|
|
120
|
+
owner: {
|
|
121
|
+
login: string;
|
|
122
|
+
id: number;
|
|
123
|
+
node_id: string;
|
|
124
|
+
avatar_url: string;
|
|
125
|
+
html_url: string;
|
|
126
|
+
type: "User" | "Organization";
|
|
127
|
+
site_admin: false;
|
|
128
|
+
};
|
|
129
|
+
private: boolean;
|
|
130
|
+
html_url: string;
|
|
131
|
+
description: string;
|
|
132
|
+
fork: boolean;
|
|
133
|
+
url: string;
|
|
134
|
+
contents_url: string;
|
|
135
|
+
issues_url: string;
|
|
136
|
+
pulls_url: string;
|
|
137
|
+
default_branch: string;
|
|
138
|
+
created_at: string;
|
|
139
|
+
updated_at: string;
|
|
140
|
+
pushed_at: string;
|
|
141
|
+
};
|
|
142
|
+
score: number;
|
|
143
|
+
sha: string;
|
|
144
|
+
node_id: string;
|
|
145
|
+
commit: {
|
|
146
|
+
author: {
|
|
147
|
+
name: string;
|
|
148
|
+
email: string;
|
|
149
|
+
date: string;
|
|
150
|
+
};
|
|
151
|
+
committer: {
|
|
152
|
+
name: string;
|
|
153
|
+
email: string;
|
|
154
|
+
date: string;
|
|
155
|
+
};
|
|
156
|
+
message: string;
|
|
157
|
+
tree: {
|
|
158
|
+
sha: string;
|
|
159
|
+
url: string;
|
|
160
|
+
};
|
|
161
|
+
url: string;
|
|
162
|
+
};
|
|
163
|
+
url: string;
|
|
164
|
+
html_url: string;
|
|
165
|
+
author: {
|
|
166
|
+
login: string;
|
|
167
|
+
id: number;
|
|
168
|
+
node_id: string;
|
|
169
|
+
avatar_url: string;
|
|
170
|
+
html_url: string;
|
|
171
|
+
type: "User" | "Organization";
|
|
172
|
+
site_admin: false;
|
|
173
|
+
};
|
|
174
|
+
committer: {
|
|
175
|
+
login: string;
|
|
176
|
+
id: number;
|
|
177
|
+
node_id: string;
|
|
178
|
+
avatar_url: string;
|
|
179
|
+
html_url: string;
|
|
180
|
+
type: "User" | "Organization";
|
|
181
|
+
site_admin: false;
|
|
182
|
+
};
|
|
183
|
+
parents: {
|
|
184
|
+
sha: string;
|
|
185
|
+
url: string;
|
|
186
|
+
}[];
|
|
187
|
+
comments_url: string;
|
|
188
|
+
}[];
|
|
189
|
+
};
|
|
190
|
+
export declare function searchIssues(domain: GitHubDomain, input: {
|
|
191
|
+
query?: string;
|
|
192
|
+
q?: string;
|
|
193
|
+
owner?: string;
|
|
194
|
+
repo?: string;
|
|
195
|
+
state?: "open" | "closed" | "all";
|
|
196
|
+
} & PageOptions): {
|
|
197
|
+
total_count: number;
|
|
198
|
+
incomplete_results: boolean;
|
|
199
|
+
items: {
|
|
200
|
+
id: number;
|
|
201
|
+
node_id: string;
|
|
202
|
+
number: number;
|
|
203
|
+
title: string;
|
|
204
|
+
body: string;
|
|
205
|
+
state: "open" | "closed";
|
|
206
|
+
locked: false;
|
|
207
|
+
user: {
|
|
208
|
+
login: string;
|
|
209
|
+
id: number;
|
|
210
|
+
node_id: string;
|
|
211
|
+
avatar_url: string;
|
|
212
|
+
html_url: string;
|
|
213
|
+
type: "User" | "Organization";
|
|
214
|
+
site_admin: false;
|
|
215
|
+
};
|
|
216
|
+
labels: {
|
|
217
|
+
id: number;
|
|
218
|
+
node_id: string;
|
|
219
|
+
url: string;
|
|
220
|
+
name: string;
|
|
221
|
+
color: string;
|
|
222
|
+
default: false;
|
|
223
|
+
description: string;
|
|
224
|
+
}[];
|
|
225
|
+
assignee: {
|
|
226
|
+
login: string;
|
|
227
|
+
id: number;
|
|
228
|
+
node_id: string;
|
|
229
|
+
avatar_url: string;
|
|
230
|
+
html_url: string;
|
|
231
|
+
type: "User" | "Organization";
|
|
232
|
+
site_admin: false;
|
|
233
|
+
} | null;
|
|
234
|
+
assignees: {
|
|
235
|
+
login: string;
|
|
236
|
+
id: number;
|
|
237
|
+
node_id: string;
|
|
238
|
+
avatar_url: string;
|
|
239
|
+
html_url: string;
|
|
240
|
+
type: "User" | "Organization";
|
|
241
|
+
site_admin: false;
|
|
242
|
+
}[];
|
|
243
|
+
comments: number;
|
|
244
|
+
html_url: string;
|
|
245
|
+
repository_url: string;
|
|
246
|
+
labels_url: string;
|
|
247
|
+
comments_url: string;
|
|
248
|
+
created_at: string;
|
|
249
|
+
updated_at: string;
|
|
250
|
+
closed_at: string | null;
|
|
251
|
+
}[];
|
|
252
|
+
};
|