@hasna/todos 0.11.46 → 0.11.48
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/LICENSE +2 -1
- package/README.md +13 -0
- package/dashboard/dist/assets/{index-CVF1vn7Z.js → index-C3fBxEWP.js} +17 -17
- package/dashboard/dist/index.html +1 -1
- package/dist/cli/index.js +25860 -25224
- package/dist/mcp/index.js +27669 -25551
- package/dist/sdk/index.js +9 -12
- package/dist/server/index.js +74465 -3514
- package/package.json +1 -1
- package/dist/capabilities.d.ts +0 -32
- package/dist/capabilities.d.ts.map +0 -1
- package/dist/cli/brains.d.ts +0 -3
- package/dist/cli/brains.d.ts.map +0 -1
- package/dist/cli/commands/agent-commands.d.ts +0 -3
- package/dist/cli/commands/agent-commands.d.ts.map +0 -1
- package/dist/cli/commands/agent-reliability-commands.d.ts +0 -3
- package/dist/cli/commands/agent-reliability-commands.d.ts.map +0 -1
- package/dist/cli/commands/api-key-commands.d.ts +0 -3
- package/dist/cli/commands/api-key-commands.d.ts.map +0 -1
- package/dist/cli/commands/audit-ledger-commands.d.ts +0 -3
- package/dist/cli/commands/audit-ledger-commands.d.ts.map +0 -1
- package/dist/cli/commands/capacity-commands.d.ts +0 -3
- package/dist/cli/commands/capacity-commands.d.ts.map +0 -1
- package/dist/cli/commands/config-serve-commands.d.ts +0 -3
- package/dist/cli/commands/config-serve-commands.d.ts.map +0 -1
- package/dist/cli/commands/dispatch.d.ts +0 -3
- package/dist/cli/commands/dispatch.d.ts.map +0 -1
- package/dist/cli/commands/environment-snapshots.d.ts +0 -3
- package/dist/cli/commands/environment-snapshots.d.ts.map +0 -1
- package/dist/cli/commands/help-commands.d.ts +0 -3
- package/dist/cli/commands/help-commands.d.ts.map +0 -1
- package/dist/cli/commands/knowledge-commands.d.ts +0 -3
- package/dist/cli/commands/knowledge-commands.d.ts.map +0 -1
- package/dist/cli/commands/local-backup-commands.d.ts +0 -3
- package/dist/cli/commands/local-backup-commands.d.ts.map +0 -1
- package/dist/cli/commands/local-snapshot-commands.d.ts +0 -3
- package/dist/cli/commands/local-snapshot-commands.d.ts.map +0 -1
- package/dist/cli/commands/machines.d.ts +0 -3
- package/dist/cli/commands/machines.d.ts.map +0 -1
- package/dist/cli/commands/mcp-hooks-commands.d.ts +0 -3
- package/dist/cli/commands/mcp-hooks-commands.d.ts.map +0 -1
- package/dist/cli/commands/onboarding-commands.d.ts +0 -3
- package/dist/cli/commands/onboarding-commands.d.ts.map +0 -1
- package/dist/cli/commands/plan-template-commands.d.ts +0 -3
- package/dist/cli/commands/plan-template-commands.d.ts.map +0 -1
- package/dist/cli/commands/project-commands.d.ts +0 -3
- package/dist/cli/commands/project-commands.d.ts.map +0 -1
- package/dist/cli/commands/query-commands.d.ts +0 -3
- package/dist/cli/commands/query-commands.d.ts.map +0 -1
- package/dist/cli/commands/release-compatibility-commands.d.ts +0 -3
- package/dist/cli/commands/release-compatibility-commands.d.ts.map +0 -1
- package/dist/cli/commands/retrospective-commands.d.ts +0 -3
- package/dist/cli/commands/retrospective-commands.d.ts.map +0 -1
- package/dist/cli/commands/review-queue-commands.d.ts +0 -3
- package/dist/cli/commands/review-queue-commands.d.ts.map +0 -1
- package/dist/cli/commands/risk-commands.d.ts +0 -3
- package/dist/cli/commands/risk-commands.d.ts.map +0 -1
- package/dist/cli/commands/roadmap-commands.d.ts +0 -3
- package/dist/cli/commands/roadmap-commands.d.ts.map +0 -1
- package/dist/cli/commands/scale-hardening-commands.d.ts +0 -3
- package/dist/cli/commands/scale-hardening-commands.d.ts.map +0 -1
- package/dist/cli/commands/sdk-fixture-commands.d.ts +0 -3
- package/dist/cli/commands/sdk-fixture-commands.d.ts.map +0 -1
- package/dist/cli/commands/task-commands.d.ts +0 -3
- package/dist/cli/commands/task-commands.d.ts.map +0 -1
- package/dist/cli/commands/usage-ledger-commands.d.ts +0 -3
- package/dist/cli/commands/usage-ledger-commands.d.ts.map +0 -1
- package/dist/cli/components/App.d.ts +0 -2
- package/dist/cli/components/App.d.ts.map +0 -1
- package/dist/cli/components/Dashboard.d.ts +0 -7
- package/dist/cli/components/Dashboard.d.ts.map +0 -1
- package/dist/cli/components/Header.d.ts +0 -8
- package/dist/cli/components/Header.d.ts.map +0 -1
- package/dist/cli/components/ProjectList.d.ts +0 -8
- package/dist/cli/components/ProjectList.d.ts.map +0 -1
- package/dist/cli/components/SearchView.d.ts +0 -10
- package/dist/cli/components/SearchView.d.ts.map +0 -1
- package/dist/cli/components/TaskDetail.d.ts +0 -7
- package/dist/cli/components/TaskDetail.d.ts.map +0 -1
- package/dist/cli/components/TaskForm.d.ts +0 -15
- package/dist/cli/components/TaskForm.d.ts.map +0 -1
- package/dist/cli/components/TaskList.d.ts +0 -8
- package/dist/cli/components/TaskList.d.ts.map +0 -1
- package/dist/cli/helpers.d.ts +0 -22
- package/dist/cli/helpers.d.ts.map +0 -1
- package/dist/cli/index.d.ts +0 -3
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli-mcp-parity.d.ts +0 -41
- package/dist/cli-mcp-parity.d.ts.map +0 -1
- package/dist/contracts.d.ts +0 -87
- package/dist/contracts.d.ts.map +0 -1
- package/dist/contracts.js +0 -18172
- package/dist/db/agent-metrics.d.ts +0 -135
- package/dist/db/agent-metrics.d.ts.map +0 -1
- package/dist/db/agent-names.d.ts +0 -24
- package/dist/db/agent-names.d.ts.map +0 -1
- package/dist/db/agents.d.ts +0 -84
- package/dist/db/agents.d.ts.map +0 -1
- package/dist/db/api-keys.d.ts +0 -28
- package/dist/db/api-keys.d.ts.map +0 -1
- package/dist/db/audit.d.ts +0 -52
- package/dist/db/audit.d.ts.map +0 -1
- package/dist/db/boards.d.ts +0 -56
- package/dist/db/boards.d.ts.map +0 -1
- package/dist/db/budgets.d.ts +0 -27
- package/dist/db/budgets.d.ts.map +0 -1
- package/dist/db/builtin-templates.d.ts +0 -39
- package/dist/db/builtin-templates.d.ts.map +0 -1
- package/dist/db/calendar.d.ts +0 -52
- package/dist/db/calendar.d.ts.map +0 -1
- package/dist/db/checklists.d.ts +0 -13
- package/dist/db/checklists.d.ts.map +0 -1
- package/dist/db/checkpoints.d.ts +0 -55
- package/dist/db/checkpoints.d.ts.map +0 -1
- package/dist/db/comments.d.ts +0 -11
- package/dist/db/comments.d.ts.map +0 -1
- package/dist/db/cycles.d.ts +0 -78
- package/dist/db/cycles.d.ts.map +0 -1
- package/dist/db/database.d.ts +0 -13
- package/dist/db/database.d.ts.map +0 -1
- package/dist/db/dispatches.d.ts +0 -15
- package/dist/db/dispatches.d.ts.map +0 -1
- package/dist/db/file-locks.d.ts +0 -43
- package/dist/db/file-locks.d.ts.map +0 -1
- package/dist/db/handoffs.d.ts +0 -76
- package/dist/db/handoffs.d.ts.map +0 -1
- package/dist/db/inbox.d.ts +0 -47
- package/dist/db/inbox.d.ts.map +0 -1
- package/dist/db/kg.d.ts +0 -70
- package/dist/db/kg.d.ts.map +0 -1
- package/dist/db/locks.d.ts +0 -14
- package/dist/db/locks.d.ts.map +0 -1
- package/dist/db/machines.d.ts +0 -59
- package/dist/db/machines.d.ts.map +0 -1
- package/dist/db/migrations.d.ts +0 -2
- package/dist/db/migrations.d.ts.map +0 -1
- package/dist/db/orgs.d.ts +0 -13
- package/dist/db/orgs.d.ts.map +0 -1
- package/dist/db/patrol.d.ts +0 -35
- package/dist/db/patrol.d.ts.map +0 -1
- package/dist/db/plans.d.ts +0 -8
- package/dist/db/plans.d.ts.map +0 -1
- package/dist/db/project-agent-roles.d.ts +0 -34
- package/dist/db/project-agent-roles.d.ts.map +0 -1
- package/dist/db/project-knowledge.d.ts +0 -88
- package/dist/db/project-knowledge.d.ts.map +0 -1
- package/dist/db/project-risks.d.ts +0 -139
- package/dist/db/project-risks.d.ts.map +0 -1
- package/dist/db/projects.d.ts +0 -54
- package/dist/db/projects.d.ts.map +0 -1
- package/dist/db/retrospectives.d.ts +0 -98
- package/dist/db/retrospectives.d.ts.map +0 -1
- package/dist/db/schema.d.ts +0 -5
- package/dist/db/schema.d.ts.map +0 -1
- package/dist/db/sessions.d.ts +0 -8
- package/dist/db/sessions.d.ts.map +0 -1
- package/dist/db/snapshots.d.ts +0 -37
- package/dist/db/snapshots.d.ts.map +0 -1
- package/dist/db/task-claim.d.ts +0 -7
- package/dist/db/task-claim.d.ts.map +0 -1
- package/dist/db/task-commits.d.ts +0 -82
- package/dist/db/task-commits.d.ts.map +0 -1
- package/dist/db/task-crud.d.ts +0 -13
- package/dist/db/task-crud.d.ts.map +0 -1
- package/dist/db/task-files.d.ts +0 -74
- package/dist/db/task-files.d.ts.map +0 -1
- package/dist/db/task-graph.d.ts +0 -27
- package/dist/db/task-graph.d.ts.map +0 -1
- package/dist/db/task-lifecycle.d.ts +0 -96
- package/dist/db/task-lifecycle.d.ts.map +0 -1
- package/dist/db/task-lists.d.ts +0 -10
- package/dist/db/task-lists.d.ts.map +0 -1
- package/dist/db/task-relations.d.ts +0 -170
- package/dist/db/task-relations.d.ts.map +0 -1
- package/dist/db/task-relationships.d.ts +0 -36
- package/dist/db/task-relationships.d.ts.map +0 -1
- package/dist/db/task-runs.d.ts +0 -133
- package/dist/db/task-runs.d.ts.map +0 -1
- package/dist/db/task-status.d.ts +0 -65
- package/dist/db/task-status.d.ts.map +0 -1
- package/dist/db/task-workflow.d.ts +0 -7
- package/dist/db/task-workflow.d.ts.map +0 -1
- package/dist/db/tasks.d.ts +0 -15
- package/dist/db/tasks.d.ts.map +0 -1
- package/dist/db/templates.d.ts +0 -98
- package/dist/db/templates.d.ts.map +0 -1
- package/dist/db/traces.d.ts +0 -38
- package/dist/db/traces.d.ts.map +0 -1
- package/dist/db/webhooks.d.ts +0 -29
- package/dist/db/webhooks.d.ts.map +0 -1
- package/dist/index.d.ts +0 -196
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -30111
- package/dist/json-contracts.d.ts +0 -56
- package/dist/json-contracts.d.ts.map +0 -1
- package/dist/lib/activity-timeline.d.ts +0 -43
- package/dist/lib/activity-timeline.d.ts.map +0 -1
- package/dist/lib/agent-replay-simulator.d.ts +0 -66
- package/dist/lib/agent-replay-simulator.d.ts.map +0 -1
- package/dist/lib/agent-run-dispatcher.d.ts +0 -62
- package/dist/lib/agent-run-dispatcher.d.ts.map +0 -1
- package/dist/lib/agent-tasks.d.ts +0 -11
- package/dist/lib/agent-tasks.d.ts.map +0 -1
- package/dist/lib/approval-gates.d.ts +0 -52
- package/dist/lib/approval-gates.d.ts.map +0 -1
- package/dist/lib/artifact-store.d.ts +0 -68
- package/dist/lib/artifact-store.d.ts.map +0 -1
- package/dist/lib/audit-ledger.d.ts +0 -59
- package/dist/lib/audit-ledger.d.ts.map +0 -1
- package/dist/lib/auto-assign.d.ts +0 -23
- package/dist/lib/auto-assign.d.ts.map +0 -1
- package/dist/lib/branch-work-plans.d.ts +0 -46
- package/dist/lib/branch-work-plans.d.ts.map +0 -1
- package/dist/lib/burndown.d.ts +0 -18
- package/dist/lib/burndown.d.ts.map +0 -1
- package/dist/lib/capacity-forecasts.d.ts +0 -70
- package/dist/lib/capacity-forecasts.d.ts.map +0 -1
- package/dist/lib/claude-tasks.d.ts +0 -20
- package/dist/lib/claude-tasks.d.ts.map +0 -1
- package/dist/lib/cli-help.d.ts +0 -38
- package/dist/lib/cli-help.d.ts.map +0 -1
- package/dist/lib/completion-guard.d.ts +0 -17
- package/dist/lib/completion-guard.d.ts.map +0 -1
- package/dist/lib/config.d.ts +0 -400
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/context-packs.d.ts +0 -163
- package/dist/lib/context-packs.d.ts.map +0 -1
- package/dist/lib/dispatch-formatter.d.ts +0 -21
- package/dist/lib/dispatch-formatter.d.ts.map +0 -1
- package/dist/lib/dispatch.d.ts +0 -28
- package/dist/lib/dispatch.d.ts.map +0 -1
- package/dist/lib/doctor.d.ts +0 -46
- package/dist/lib/doctor.d.ts.map +0 -1
- package/dist/lib/environment-snapshots.d.ts +0 -111
- package/dist/lib/environment-snapshots.d.ts.map +0 -1
- package/dist/lib/event-hooks.d.ts +0 -58
- package/dist/lib/event-hooks.d.ts.map +0 -1
- package/dist/lib/external-issue-importers.d.ts +0 -60
- package/dist/lib/external-issue-importers.d.ts.map +0 -1
- package/dist/lib/extract.d.ts +0 -108
- package/dist/lib/extract.d.ts.map +0 -1
- package/dist/lib/gatherer.d.ts +0 -16
- package/dist/lib/gatherer.d.ts.map +0 -1
- package/dist/lib/github.d.ts +0 -25
- package/dist/lib/github.d.ts.map +0 -1
- package/dist/lib/local-backups.d.ts +0 -129
- package/dist/lib/local-backups.d.ts.map +0 -1
- package/dist/lib/local-bridge.d.ts +0 -81
- package/dist/lib/local-bridge.d.ts.map +0 -1
- package/dist/lib/local-encryption.d.ts +0 -94
- package/dist/lib/local-encryption.d.ts.map +0 -1
- package/dist/lib/local-extensions.d.ts +0 -92
- package/dist/lib/local-extensions.d.ts.map +0 -1
- package/dist/lib/local-fields.d.ts +0 -33
- package/dist/lib/local-fields.d.ts.map +0 -1
- package/dist/lib/local-notifications.d.ts +0 -55
- package/dist/lib/local-notifications.d.ts.map +0 -1
- package/dist/lib/local-reports.d.ts +0 -149
- package/dist/lib/local-reports.d.ts.map +0 -1
- package/dist/lib/local-snapshots.d.ts +0 -66
- package/dist/lib/local-snapshots.d.ts.map +0 -1
- package/dist/lib/logger.d.ts +0 -11
- package/dist/lib/logger.d.ts.map +0 -1
- package/dist/lib/mention-resolver.d.ts +0 -43
- package/dist/lib/mention-resolver.d.ts.map +0 -1
- package/dist/lib/model-config.d.ts +0 -14
- package/dist/lib/model-config.d.ts.map +0 -1
- package/dist/lib/natural-language-intake.d.ts +0 -56
- package/dist/lib/natural-language-intake.d.ts.map +0 -1
- package/dist/lib/north-star.d.ts +0 -33
- package/dist/lib/north-star.d.ts.map +0 -1
- package/dist/lib/onboarding-fixtures.d.ts +0 -31
- package/dist/lib/onboarding-fixtures.d.ts.map +0 -1
- package/dist/lib/package-version.d.ts +0 -2
- package/dist/lib/package-version.d.ts.map +0 -1
- package/dist/lib/policy-packs.d.ts +0 -87
- package/dist/lib/policy-packs.d.ts.map +0 -1
- package/dist/lib/project-bootstrap.d.ts +0 -35
- package/dist/lib/project-bootstrap.d.ts.map +0 -1
- package/dist/lib/public-release-gate.d.ts +0 -57
- package/dist/lib/public-release-gate.d.ts.map +0 -1
- package/dist/lib/recurrence.d.ts +0 -10
- package/dist/lib/recurrence.d.ts.map +0 -1
- package/dist/lib/redaction.d.ts +0 -12
- package/dist/lib/redaction.d.ts.map +0 -1
- package/dist/lib/release-compatibility.d.ts +0 -59
- package/dist/lib/release-compatibility.d.ts.map +0 -1
- package/dist/lib/release-notes.d.ts +0 -81
- package/dist/lib/release-notes.d.ts.map +0 -1
- package/dist/lib/retention-cleanup.d.ts +0 -63
- package/dist/lib/retention-cleanup.d.ts.map +0 -1
- package/dist/lib/review-queues.d.ts +0 -98
- package/dist/lib/review-queues.d.ts.map +0 -1
- package/dist/lib/roadmaps.d.ts +0 -133
- package/dist/lib/roadmaps.d.ts.map +0 -1
- package/dist/lib/runner-sandbox.d.ts +0 -50
- package/dist/lib/runner-sandbox.d.ts.map +0 -1
- package/dist/lib/saved-search-views.d.ts +0 -60
- package/dist/lib/saved-search-views.d.ts.map +0 -1
- package/dist/lib/scale-hardening.d.ts +0 -74
- package/dist/lib/scale-hardening.d.ts.map +0 -1
- package/dist/lib/sdk-integration-fixtures.d.ts +0 -65
- package/dist/lib/sdk-integration-fixtures.d.ts.map +0 -1
- package/dist/lib/search.d.ts +0 -17
- package/dist/lib/search.d.ts.map +0 -1
- package/dist/lib/sync-types.d.ts +0 -16
- package/dist/lib/sync-types.d.ts.map +0 -1
- package/dist/lib/sync-utils.d.ts +0 -12
- package/dist/lib/sync-utils.d.ts.map +0 -1
- package/dist/lib/sync.d.ts +0 -9
- package/dist/lib/sync.d.ts.map +0 -1
- package/dist/lib/task-contracts.d.ts +0 -75
- package/dist/lib/task-contracts.d.ts.map +0 -1
- package/dist/lib/task-dedupe.d.ts +0 -45
- package/dist/lib/task-dedupe.d.ts.map +0 -1
- package/dist/lib/task-runner.d.ts +0 -101
- package/dist/lib/task-runner.d.ts.map +0 -1
- package/dist/lib/terminal-notifications.d.ts +0 -53
- package/dist/lib/terminal-notifications.d.ts.map +0 -1
- package/dist/lib/tmux.d.ts +0 -28
- package/dist/lib/tmux.d.ts.map +0 -1
- package/dist/lib/todos-md.d.ts +0 -21
- package/dist/lib/todos-md.d.ts.map +0 -1
- package/dist/lib/tui-dashboard.d.ts +0 -49
- package/dist/lib/tui-dashboard.d.ts.map +0 -1
- package/dist/lib/usage-ledger.d.ts +0 -82
- package/dist/lib/usage-ledger.d.ts.map +0 -1
- package/dist/lib/verification-providers.d.ts +0 -54
- package/dist/lib/verification-providers.d.ts.map +0 -1
- package/dist/lib/workflow-prompts.d.ts +0 -38
- package/dist/lib/workflow-prompts.d.ts.map +0 -1
- package/dist/lib/workflow-states.d.ts +0 -70
- package/dist/lib/workflow-states.d.ts.map +0 -1
- package/dist/lib/workspace-trust.d.ts +0 -38
- package/dist/lib/workspace-trust.d.ts.map +0 -1
- package/dist/mcp/index.d.ts +0 -3
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/token-utils.d.ts +0 -15
- package/dist/mcp/token-utils.d.ts.map +0 -1
- package/dist/mcp/tools/agents.d.ts +0 -16
- package/dist/mcp/tools/agents.d.ts.map +0 -1
- package/dist/mcp/tools/code-tools.d.ts +0 -15
- package/dist/mcp/tools/code-tools.d.ts.map +0 -1
- package/dist/mcp/tools/dispatch.d.ts +0 -9
- package/dist/mcp/tools/dispatch.d.ts.map +0 -1
- package/dist/mcp/tools/environment-snapshots.d.ts +0 -8
- package/dist/mcp/tools/environment-snapshots.d.ts.map +0 -1
- package/dist/mcp/tools/machines.d.ts +0 -8
- package/dist/mcp/tools/machines.d.ts.map +0 -1
- package/dist/mcp/tools/task-adv-tools.d.ts +0 -20
- package/dist/mcp/tools/task-adv-tools.d.ts.map +0 -1
- package/dist/mcp/tools/task-auto-tools.d.ts +0 -20
- package/dist/mcp/tools/task-auto-tools.d.ts.map +0 -1
- package/dist/mcp/tools/task-crud.d.ts +0 -20
- package/dist/mcp/tools/task-crud.d.ts.map +0 -1
- package/dist/mcp/tools/task-meta-tools.d.ts +0 -12
- package/dist/mcp/tools/task-meta-tools.d.ts.map +0 -1
- package/dist/mcp/tools/task-project-tools.d.ts +0 -20
- package/dist/mcp/tools/task-project-tools.d.ts.map +0 -1
- package/dist/mcp/tools/task-rel-tools.d.ts +0 -19
- package/dist/mcp/tools/task-rel-tools.d.ts.map +0 -1
- package/dist/mcp/tools/task-resources.d.ts +0 -13
- package/dist/mcp/tools/task-resources.d.ts.map +0 -1
- package/dist/mcp/tools/task-workflow-tools.d.ts +0 -20
- package/dist/mcp/tools/task-workflow-tools.d.ts.map +0 -1
- package/dist/mcp/tools/templates.d.ts +0 -9
- package/dist/mcp/tools/templates.d.ts.map +0 -1
- package/dist/mcp/tools/webhooks.d.ts +0 -8
- package/dist/mcp/tools/webhooks.d.ts.map +0 -1
- package/dist/mcp/tools/workflow-prompts.d.ts +0 -3
- package/dist/mcp/tools/workflow-prompts.d.ts.map +0 -1
- package/dist/mcp.d.ts +0 -42
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -554
- package/dist/registry.d.ts +0 -35
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -18345
- package/dist/sdk/client.d.ts +0 -383
- package/dist/sdk/client.d.ts.map +0 -1
- package/dist/sdk/index.d.ts +0 -14
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/types.d.ts +0 -198
- package/dist/sdk/types.d.ts.map +0 -1
- package/dist/sdk.d.ts +0 -19
- package/dist/sdk.d.ts.map +0 -1
- package/dist/server/index.d.ts +0 -9
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/routes.d.ts +0 -85
- package/dist/server/routes.d.ts.map +0 -1
- package/dist/server/serve.d.ts +0 -39
- package/dist/server/serve.d.ts.map +0 -1
- package/dist/storage/index.d.ts +0 -4
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/interfaces.d.ts +0 -185
- package/dist/storage/interfaces.d.ts.map +0 -1
- package/dist/storage/local-sqlite.d.ts +0 -7
- package/dist/storage/local-sqlite.d.ts.map +0 -1
- package/dist/storage.d.ts +0 -4
- package/dist/storage.d.ts.map +0 -1
- package/dist/storage.js +0 -8380
- package/dist/test/no-network.d.ts +0 -7
- package/dist/test/no-network.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -1032
- package/dist/types/index.d.ts.map +0 -1
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
export interface AgentMetrics {
|
|
3
|
-
agent_id: string;
|
|
4
|
-
agent_name: string;
|
|
5
|
-
tasks_completed: number;
|
|
6
|
-
tasks_failed: number;
|
|
7
|
-
tasks_in_progress: number;
|
|
8
|
-
completion_rate: number;
|
|
9
|
-
avg_completion_minutes: number | null;
|
|
10
|
-
avg_confidence: number | null;
|
|
11
|
-
review_score_avg: number | null;
|
|
12
|
-
composite_score: number;
|
|
13
|
-
}
|
|
14
|
-
export interface LeaderboardEntry extends AgentMetrics {
|
|
15
|
-
rank: number;
|
|
16
|
-
}
|
|
17
|
-
export interface AgentReliabilityScorecardOptions {
|
|
18
|
-
project_id?: string;
|
|
19
|
-
since?: string;
|
|
20
|
-
stale_after_hours?: number;
|
|
21
|
-
}
|
|
22
|
-
export type AgentReliabilityGrade = "excellent" | "good" | "watch" | "at_risk";
|
|
23
|
-
export interface AgentReliabilityScorecard {
|
|
24
|
-
schema_version: 1;
|
|
25
|
-
local_only: true;
|
|
26
|
-
no_network: true;
|
|
27
|
-
generated_at: string;
|
|
28
|
-
agent_id: string;
|
|
29
|
-
agent_name: string;
|
|
30
|
-
scope: {
|
|
31
|
-
project_id: string | null;
|
|
32
|
-
since: string | null;
|
|
33
|
-
stale_after_hours: number;
|
|
34
|
-
};
|
|
35
|
-
score: number;
|
|
36
|
-
grade: AgentReliabilityGrade;
|
|
37
|
-
components: {
|
|
38
|
-
delivery: number;
|
|
39
|
-
verification: number;
|
|
40
|
-
run_reliability: number;
|
|
41
|
-
lock_hygiene: number;
|
|
42
|
-
retry_discipline: number;
|
|
43
|
-
handoff_hygiene: number;
|
|
44
|
-
};
|
|
45
|
-
signals: {
|
|
46
|
-
tasks_completed: number;
|
|
47
|
-
tasks_failed: number;
|
|
48
|
-
tasks_in_progress: number;
|
|
49
|
-
completion_rate: number;
|
|
50
|
-
passed_verifications: number;
|
|
51
|
-
failed_verifications: number;
|
|
52
|
-
unknown_verifications: number;
|
|
53
|
-
completed_tasks_with_passed_verification: number;
|
|
54
|
-
verification_coverage: number;
|
|
55
|
-
runs_completed: number;
|
|
56
|
-
runs_failed: number;
|
|
57
|
-
run_success_rate: number;
|
|
58
|
-
stale_task_locks: number;
|
|
59
|
-
stale_resource_locks: number;
|
|
60
|
-
handoffs_created: number;
|
|
61
|
-
handoffs_with_task_refs: number;
|
|
62
|
-
handoffs_with_blockers: number;
|
|
63
|
-
retry_count: number;
|
|
64
|
-
max_retry_count: number;
|
|
65
|
-
};
|
|
66
|
-
evidence: {
|
|
67
|
-
failed_tasks: Array<{
|
|
68
|
-
id: string;
|
|
69
|
-
short_id: string | null;
|
|
70
|
-
title: string;
|
|
71
|
-
updated_at: string;
|
|
72
|
-
}>;
|
|
73
|
-
failed_verifications: Array<{
|
|
74
|
-
id: string;
|
|
75
|
-
task_id: string;
|
|
76
|
-
command: string;
|
|
77
|
-
run_at: string;
|
|
78
|
-
}>;
|
|
79
|
-
failed_runs: Array<{
|
|
80
|
-
id: string;
|
|
81
|
-
task_id: string;
|
|
82
|
-
title: string | null;
|
|
83
|
-
completed_at: string | null;
|
|
84
|
-
}>;
|
|
85
|
-
stale_locks: Array<{
|
|
86
|
-
kind: "task" | "resource";
|
|
87
|
-
id: string;
|
|
88
|
-
locked_at: string;
|
|
89
|
-
resource_type?: string;
|
|
90
|
-
}>;
|
|
91
|
-
};
|
|
92
|
-
recommendations: string[];
|
|
93
|
-
}
|
|
94
|
-
export interface AgentReliabilityExport {
|
|
95
|
-
schema_version: 1;
|
|
96
|
-
local_only: true;
|
|
97
|
-
no_network: true;
|
|
98
|
-
generated_at: string;
|
|
99
|
-
filters: {
|
|
100
|
-
agent_id: string | null;
|
|
101
|
-
project_id: string | null;
|
|
102
|
-
since: string | null;
|
|
103
|
-
stale_after_hours: number;
|
|
104
|
-
};
|
|
105
|
-
count: number;
|
|
106
|
-
scorecards: AgentReliabilityScorecard[];
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Compute metrics for a single agent from task data.
|
|
110
|
-
*/
|
|
111
|
-
export declare function getAgentMetrics(agentId: string, opts?: {
|
|
112
|
-
project_id?: string;
|
|
113
|
-
}, db?: Database): AgentMetrics | null;
|
|
114
|
-
/**
|
|
115
|
-
* Get leaderboard: all agents ranked by composite score.
|
|
116
|
-
*/
|
|
117
|
-
export declare function getLeaderboard(opts?: {
|
|
118
|
-
project_id?: string;
|
|
119
|
-
limit?: number;
|
|
120
|
-
}, db?: Database): LeaderboardEntry[];
|
|
121
|
-
/**
|
|
122
|
-
* Score a task completion (store review score in metadata).
|
|
123
|
-
*/
|
|
124
|
-
export declare function scoreTask(taskId: string, score: number, reviewerId?: string, db?: Database): void;
|
|
125
|
-
export declare function getAgentReliabilityScorecard(agentId: string, options?: AgentReliabilityScorecardOptions, db?: Database): AgentReliabilityScorecard | null;
|
|
126
|
-
export declare function listAgentReliabilityScorecards(options?: AgentReliabilityScorecardOptions & {
|
|
127
|
-
agent_id?: string;
|
|
128
|
-
limit?: number;
|
|
129
|
-
}, db?: Database): AgentReliabilityScorecard[];
|
|
130
|
-
export declare function createAgentReliabilityExport(options?: AgentReliabilityScorecardOptions & {
|
|
131
|
-
agent_id?: string;
|
|
132
|
-
limit?: number;
|
|
133
|
-
}, db?: Database): AgentReliabilityExport;
|
|
134
|
-
export declare function renderAgentReliabilityMarkdown(report: AgentReliabilityExport | AgentReliabilityScorecard): string;
|
|
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AAC,EAAE,QAAQ,GAAG,gBAAgB,EAAE,CAmBhH;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,IAAI,CAajG;AAuFD,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,gCAAqC,EAC9C,EAAE,CAAC,EAAE,QAAQ,GACZ,yBAAyB,GAAG,IAAI,CAyMlC;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,GAAE,gCAAgC,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,EACtF,EAAE,CAAC,EAAE,QAAQ,GACZ,yBAAyB,EAAE,CAe7B;AAED,wBAAgB,4BAA4B,CAC1C,OAAO,GAAE,gCAAgC,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,EACtF,EAAE,CAAC,EAAE,QAAQ,GACZ,sBAAsB,CAgBxB;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,sBAAsB,GAAG,yBAAyB,GAAG,MAAM,CAuCjH"}
|
package/dist/db/agent-names.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
export declare class InvalidAgentNameError extends Error {
|
|
3
|
-
readonly suggestions: string[];
|
|
4
|
-
constructor(name: string, reason: string, suggestions?: string[]);
|
|
5
|
-
}
|
|
6
|
-
export declare const ROMAN_AGENT_NAMES: readonly ["caesar", "augustus", "marcus", "brutus", "cicero", "cato", "nero", "claudius", "tiberius", "hadrian", "trajan", "vespasian", "domitian", "caligula", "commodus", "livia", "julia", "octavia", "claudia", "agrippina", "cornelia", "valeria", "fulvia", "hortensia", "fabia"];
|
|
7
|
-
export declare const GREEK_AGENT_NAMES: readonly ["athena", "apollo", "artemis", "hera", "iris", "hector", "achilles", "odysseus", "theseus", "pericles", "solon", "sophia", "thalia", "calliope", "clio", "phoebe", "daphne", "leonidas", "andromeda", "cassander"];
|
|
8
|
-
export declare const NICE_AGENT_NAMES: readonly ["atlas", "aurora", "ember", "nova", "orion", "rhea", "selene", "sirius", "vesper", "zephyr"];
|
|
9
|
-
export declare const EXTENDED_AGENT_NAMES: readonly ["agrippa", "antonius", "aurelian", "aurelius", "camillus", "cassius", "celer", "cincinnatus", "corvus", "drusus", "fabius", "faustus", "flaccus", "gallus", "gaius", "horatius", "lucius", "lucullus", "marius", "marcellus", "maximus", "nerva", "pompey", "quintus", "regulus", "romulus", "scipio", "seneca", "sertorius", "sulla", "tacitus", "varro", "vitruvius", "plato", "socrates", "aristotle", "heraclitus", "democritus", "pythagoras", "hipparchus", "euclid", "archimedes", "zeno", "anaximander", "epictetus", "aeschylus", "sophocles", "euripides", "xenophon", "diogenes"];
|
|
10
|
-
export declare const PREFERRED_AGENT_NAMES: readonly ["caesar", "augustus", "marcus", "brutus", "cicero", "cato", "nero", "claudius", "tiberius", "hadrian", "trajan", "vespasian", "domitian", "caligula", "commodus", "livia", "julia", "octavia", "claudia", "agrippina", "cornelia", "valeria", "fulvia", "hortensia", "fabia", "athena", "apollo", "artemis", "hera", "iris", "hector", "achilles", "odysseus", "theseus", "pericles", "solon", "sophia", "thalia", "calliope", "clio", "phoebe", "daphne", "leonidas", "andromeda", "cassander", "atlas", "aurora", "ember", "nova", "orion", "rhea", "selene", "sirius", "vesper", "zephyr", "agrippa", "antonius", "aurelian", "aurelius", "camillus", "cassius", "celer", "cincinnatus", "corvus", "drusus", "fabius", "faustus", "flaccus", "gallus", "gaius", "horatius", "lucius", "lucullus", "marius", "marcellus", "maximus", "nerva", "pompey", "quintus", "regulus", "romulus", "scipio", "seneca", "sertorius", "sulla", "tacitus", "varro", "vitruvius", "plato", "socrates", "aristotle", "heraclitus", "democritus", "pythagoras", "hipparchus", "euclid", "archimedes", "zeno", "anaximander", "epictetus", "aeschylus", "sophocles", "euripides", "xenophon", "diogenes"];
|
|
11
|
-
export declare function normalizeAgentNameInput(name: string): string;
|
|
12
|
-
export declare function hasGeneratedNumericSuffix(name: string): boolean;
|
|
13
|
-
export declare function isGenericAgentName(name: string): boolean;
|
|
14
|
-
export declare function isBlockedAgentName(name: string): boolean;
|
|
15
|
-
export declare function suggestAgentNames(existingNames?: Iterable<string>): string[];
|
|
16
|
-
export declare function validateAgentName(name: string, existingNames?: Iterable<string>): string;
|
|
17
|
-
export interface AgentNameNormalization {
|
|
18
|
-
id: string;
|
|
19
|
-
old_name: string;
|
|
20
|
-
new_name: string;
|
|
21
|
-
reference_updates: number;
|
|
22
|
-
}
|
|
23
|
-
export declare function normalizeGeneratedAgentNames(db: Database): AgentNameNormalization[];
|
|
24
|
-
//# sourceMappingURL=agent-names.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-names.d.ts","sourceRoot":"","sources":["../../src/db/agent-names.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC;gBAEnB,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAE,MAAM,EAAO;CAKrE;AAED,eAAO,MAAM,iBAAiB,yRA0BpB,CAAC;AAEX,eAAO,MAAM,iBAAiB,8NAqBpB,CAAC;AAEX,eAAO,MAAM,gBAAgB,wGAWnB,CAAC;AAEX,eAAO,MAAM,oBAAoB,wkBAmDvB,CAAC;AAEX,eAAO,MAAM,qBAAqB,soCAKxB,CAAC;AAoBX,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CASxD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGxD;AAmFD,wBAAgB,iBAAiB,CAAC,aAAa,GAAE,QAAQ,CAAC,MAAM,CAAM,GAAG,MAAM,EAAE,CAUhF;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,GAAE,QAAQ,CAAC,MAAM,CAAM,GAAG,MAAM,CAwB5F;AAyCD,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,QAAQ,GAAG,sBAAsB,EAAE,CA6BnF"}
|
package/dist/db/agents.d.ts
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
import type { Agent, AgentConflictError, RegisterAgentInput } from "../types/index.js";
|
|
3
|
-
import { InvalidAgentNameError, normalizeGeneratedAgentNames, suggestAgentNames } from "./agent-names.js";
|
|
4
|
-
export { InvalidAgentNameError, normalizeGeneratedAgentNames, suggestAgentNames };
|
|
5
|
-
/**
|
|
6
|
-
* Auto-release stale agents: clears session_id for agents whose last_seen_at
|
|
7
|
-
* is beyond the active window. Enabled via TODOS_AGENT_AUTO_RELEASE=true.
|
|
8
|
-
*/
|
|
9
|
-
export declare function autoReleaseStaleAgents(db?: Database): number;
|
|
10
|
-
/**
|
|
11
|
-
* Returns names from the pool that are not currently held by an active agent.
|
|
12
|
-
* Active = last_seen_at within the configured stale window.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getAvailableNamesFromPool(pool: string[], db: Database): string[];
|
|
15
|
-
/**
|
|
16
|
-
* Register an agent. Returns the agent or a conflict descriptor.
|
|
17
|
-
*
|
|
18
|
-
* Conflict rules:
|
|
19
|
-
* - Name free → create, bind session_id if provided
|
|
20
|
-
* - Name taken, same session_id → heartbeat, return agent ✓
|
|
21
|
-
* - Name taken, different session_id, agent ACTIVE → CONFLICT error (unless force: true)
|
|
22
|
-
* - Name taken, different session_id, agent STALE → takeover, update session_id
|
|
23
|
-
* - Name taken, no session_id provided, agent ACTIVE with session → CONFLICT error (tightened)
|
|
24
|
-
* - Name taken, no session_id provided, agent has no session or is stale → heartbeat + return
|
|
25
|
-
* - force: true → skip active-agent check and take over regardless
|
|
26
|
-
*/
|
|
27
|
-
export declare function registerAgent(input: RegisterAgentInput, db?: Database): Agent | AgentConflictError;
|
|
28
|
-
export declare function isAgentConflict(result: Agent | AgentConflictError): result is AgentConflictError;
|
|
29
|
-
/**
|
|
30
|
-
* Release an agent — explicit logout. Clears session_id and sets last_seen_at to epoch
|
|
31
|
-
* so the name is immediately available for other agents.
|
|
32
|
-
*
|
|
33
|
-
* If session_id is provided, only release if it matches (prevents other sessions from
|
|
34
|
-
* releasing your agent).
|
|
35
|
-
*/
|
|
36
|
-
export declare function releaseAgent(id: string, session_id?: string, db?: Database): boolean;
|
|
37
|
-
export declare function getAgent(id: string, db?: Database): Agent | null;
|
|
38
|
-
export declare function getAgentByName(name: string, db?: Database): Agent | null;
|
|
39
|
-
export declare function listAgents(opts?: {
|
|
40
|
-
include_archived?: boolean;
|
|
41
|
-
} | Database, db?: Database): Agent[];
|
|
42
|
-
export declare function updateAgentActivity(id: string, db?: Database): void;
|
|
43
|
-
export declare function updateAgent(id: string, input: {
|
|
44
|
-
name?: string;
|
|
45
|
-
description?: string;
|
|
46
|
-
role?: string;
|
|
47
|
-
title?: string;
|
|
48
|
-
level?: string;
|
|
49
|
-
permissions?: string[];
|
|
50
|
-
capabilities?: string[];
|
|
51
|
-
reports_to?: string | null;
|
|
52
|
-
org_id?: string | null;
|
|
53
|
-
metadata?: Record<string, unknown>;
|
|
54
|
-
}, db?: Database): Agent;
|
|
55
|
-
/** Soft-delete: archives the agent instead of removing it. Tasks referencing this agent are preserved. */
|
|
56
|
-
export declare function deleteAgent(id: string, db?: Database): boolean;
|
|
57
|
-
/** Archive an agent (soft delete). */
|
|
58
|
-
export declare function archiveAgent(id: string, db?: Database): Agent | null;
|
|
59
|
-
/** Restore an archived agent. */
|
|
60
|
-
export declare function unarchiveAgent(id: string, db?: Database): Agent | null;
|
|
61
|
-
/** Get direct reports of an agent. */
|
|
62
|
-
export declare function getDirectReports(agentId: string, db?: Database): Agent[];
|
|
63
|
-
/** Get the full org tree starting from top-level agents (reports_to IS NULL). */
|
|
64
|
-
export declare function getOrgChart(db?: Database): OrgNode[];
|
|
65
|
-
export interface OrgNode {
|
|
66
|
-
agent: Agent;
|
|
67
|
-
reports: OrgNode[];
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Match agent capabilities against required capabilities (task tags).
|
|
71
|
-
* Returns a score from 0.0 (no match) to 1.0 (perfect match).
|
|
72
|
-
*/
|
|
73
|
-
export declare function matchCapabilities(agentCapabilities: string[], requiredCapabilities: string[]): number;
|
|
74
|
-
/**
|
|
75
|
-
* Get agents that match the given capabilities, sorted by match score.
|
|
76
|
-
*/
|
|
77
|
-
export declare function getCapableAgents(capabilities: string[], opts?: {
|
|
78
|
-
min_score?: number;
|
|
79
|
-
limit?: number;
|
|
80
|
-
}, db?: Database): {
|
|
81
|
-
agent: Agent;
|
|
82
|
-
score: number;
|
|
83
|
-
}[];
|
|
84
|
-
//# sourceMappingURL=agents.d.ts.map
|
package/dist/db/agents.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/db/agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAyB,kBAAkB,EAAE,MAAM,mBAAmB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oBAAoB,EAAE,MAAM,EAAE,GAAG,MAAM,CAUrG;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,MAAM,EAAE,EACtB,IAAI,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAC7C,EAAE,CAAC,EAAE,QAAQ,GACZ;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAanC"}
|
package/dist/db/api-keys.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
export interface ApiKeyRecord {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
prefix: string;
|
|
6
|
-
permissions: string[];
|
|
7
|
-
created_at: string;
|
|
8
|
-
last_used_at: string | null;
|
|
9
|
-
expires_at: string | null;
|
|
10
|
-
revoked_at: string | null;
|
|
11
|
-
}
|
|
12
|
-
export interface CreateApiKeyInput {
|
|
13
|
-
name: string;
|
|
14
|
-
permissions?: string[];
|
|
15
|
-
expires_at?: string | null;
|
|
16
|
-
}
|
|
17
|
-
export interface CreatedApiKey {
|
|
18
|
-
key: string;
|
|
19
|
-
record: ApiKeyRecord;
|
|
20
|
-
}
|
|
21
|
-
export declare function createApiKey(input: CreateApiKeyInput, db?: Database): CreatedApiKey;
|
|
22
|
-
export declare function listApiKeys(opts?: {
|
|
23
|
-
include_revoked?: boolean;
|
|
24
|
-
}, db?: Database): ApiKeyRecord[];
|
|
25
|
-
export declare function hasActiveApiKeys(db?: Database): boolean;
|
|
26
|
-
export declare function verifyApiKey(key: string, db?: Database): ApiKeyRecord | null;
|
|
27
|
-
export declare function revokeApiKey(idOrPrefix: string, db?: Database): ApiKeyRecord | null;
|
|
28
|
-
//# sourceMappingURL=api-keys.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":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@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
import type { TaskHistory } from "../types/index.js";
|
|
3
|
-
export declare function logTaskChange(taskId: string, action: string, field?: string, oldValue?: string | null, newValue?: string | null, agentId?: string | null, db?: Database): TaskHistory;
|
|
4
|
-
export declare function getTaskHistory(taskId: string, db?: Database): TaskHistory[];
|
|
5
|
-
export declare function getRecentActivity(limit?: number, db?: Database): TaskHistory[];
|
|
6
|
-
export interface RecapSummary {
|
|
7
|
-
hours: number;
|
|
8
|
-
since: string;
|
|
9
|
-
completed: {
|
|
10
|
-
id: string;
|
|
11
|
-
short_id: string | null;
|
|
12
|
-
title: string;
|
|
13
|
-
assigned_to: string | null;
|
|
14
|
-
completed_at: string | null;
|
|
15
|
-
duration_minutes: number | null;
|
|
16
|
-
}[];
|
|
17
|
-
created: {
|
|
18
|
-
id: string;
|
|
19
|
-
short_id: string | null;
|
|
20
|
-
title: string;
|
|
21
|
-
agent_id: string | null;
|
|
22
|
-
created_at: string;
|
|
23
|
-
}[];
|
|
24
|
-
in_progress: {
|
|
25
|
-
id: string;
|
|
26
|
-
short_id: string | null;
|
|
27
|
-
title: string;
|
|
28
|
-
assigned_to: string | null;
|
|
29
|
-
started_at: string | null;
|
|
30
|
-
}[];
|
|
31
|
-
blocked: {
|
|
32
|
-
id: string;
|
|
33
|
-
short_id: string | null;
|
|
34
|
-
title: string;
|
|
35
|
-
assigned_to: string | null;
|
|
36
|
-
}[];
|
|
37
|
-
stale: {
|
|
38
|
-
id: string;
|
|
39
|
-
short_id: string | null;
|
|
40
|
-
title: string;
|
|
41
|
-
assigned_to: string | null;
|
|
42
|
-
updated_at: string;
|
|
43
|
-
}[];
|
|
44
|
-
agents: {
|
|
45
|
-
name: string;
|
|
46
|
-
completed_count: number;
|
|
47
|
-
in_progress_count: number;
|
|
48
|
-
last_seen_at: string;
|
|
49
|
-
}[];
|
|
50
|
-
}
|
|
51
|
-
export declare function getRecap(hours?: number, projectId?: string, db?: Database): RecapSummary;
|
|
52
|
-
//# sourceMappingURL=audit.d.ts.map
|
package/dist/db/audit.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/db/audit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,EACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,EACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,EACvB,EAAE,CAAC,EAAE,QAAQ,GACZ,WAAW,CAUb;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,WAAW,EAAE,CAG3E;AAED,wBAAgB,iBAAiB,CAAC,KAAK,SAAK,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,WAAW,EAAE,CAG1E;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,EAAE,CAAC;IAC9J,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/G,WAAW,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,EAAE,CAAC;IAC7H,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,EAAE,CAAC;IAC9F,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChH,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACtG;AAED,wBAAgB,QAAQ,CAAC,KAAK,SAAI,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,YAAY,CAoDnF"}
|
package/dist/db/boards.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
import type { BoardCard, BoardLane, BoardScope, BoardSnapshot, TaskBoard } from "../types/index.js";
|
|
3
|
-
export interface CreateTaskBoardInput {
|
|
4
|
-
name: string;
|
|
5
|
-
scope?: BoardScope;
|
|
6
|
-
project_id?: string;
|
|
7
|
-
task_list_id?: string;
|
|
8
|
-
plan_id?: string;
|
|
9
|
-
agent_id?: string;
|
|
10
|
-
lanes?: BoardLane[];
|
|
11
|
-
filters?: Record<string, unknown>;
|
|
12
|
-
}
|
|
13
|
-
export interface UpdateTaskBoardInput {
|
|
14
|
-
name?: string;
|
|
15
|
-
project_id?: string | null;
|
|
16
|
-
task_list_id?: string | null;
|
|
17
|
-
plan_id?: string | null;
|
|
18
|
-
agent_id?: string | null;
|
|
19
|
-
lanes?: BoardLane[];
|
|
20
|
-
filters?: Record<string, unknown>;
|
|
21
|
-
}
|
|
22
|
-
export interface TaskBoardQuery {
|
|
23
|
-
scope?: BoardScope;
|
|
24
|
-
project_id?: string;
|
|
25
|
-
task_list_id?: string;
|
|
26
|
-
plan_id?: string;
|
|
27
|
-
agent_id?: string;
|
|
28
|
-
limit?: number;
|
|
29
|
-
}
|
|
30
|
-
export interface MoveBoardCardInput {
|
|
31
|
-
board_id: string;
|
|
32
|
-
card_id: string;
|
|
33
|
-
lane_id?: string;
|
|
34
|
-
status?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface TaskBoardBundle {
|
|
37
|
-
kind: "hasna.todos.task-board";
|
|
38
|
-
schemaVersion: 1;
|
|
39
|
-
exportedAt: string;
|
|
40
|
-
boards: TaskBoard[];
|
|
41
|
-
}
|
|
42
|
-
export declare function createTaskBoard(input: CreateTaskBoardInput, db?: Database): TaskBoard;
|
|
43
|
-
export declare function getTaskBoard(idOrName: string, db?: Database): TaskBoard | null;
|
|
44
|
-
export declare function listTaskBoards(query?: TaskBoardQuery, db?: Database): TaskBoard[];
|
|
45
|
-
export declare function updateTaskBoard(idOrName: string, input: UpdateTaskBoardInput, db?: Database): TaskBoard;
|
|
46
|
-
export declare function deleteTaskBoard(idOrName: string, db?: Database): boolean;
|
|
47
|
-
export declare function buildTaskBoardSnapshot(idOrBoard: string | TaskBoard, db?: Database): BoardSnapshot;
|
|
48
|
-
export declare function moveBoardCard(input: MoveBoardCardInput, db?: Database): BoardCard;
|
|
49
|
-
export declare function renderTaskBoard(snapshot: BoardSnapshot): string;
|
|
50
|
-
export declare function exportTaskBoardBundle(idOrName?: string, db?: Database): TaskBoardBundle;
|
|
51
|
-
export declare function importTaskBoardBundle(bundle: TaskBoardBundle, db?: Database): {
|
|
52
|
-
inserted: number;
|
|
53
|
-
updated: number;
|
|
54
|
-
skipped: number;
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=boards.d.ts.map
|
package/dist/db/boards.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boards.d.ts","sourceRoot":"","sources":["../../src/db/boards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EAET,UAAU,EACV,aAAa,EAGb,SAAS,EAGV,MAAM,mBAAmB,CAAC;AAK3B,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,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AS,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,aAAa,CA2BlG;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,SAAS,CAiBjF;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,CAmB/D;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,eAAe,CASvF;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAsCpI"}
|
package/dist/db/budgets.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
export interface AgentBudget {
|
|
3
|
-
agent_id: string;
|
|
4
|
-
max_concurrent: number;
|
|
5
|
-
max_cost_usd: number | null;
|
|
6
|
-
max_task_minutes: number | null;
|
|
7
|
-
period_hours: number;
|
|
8
|
-
created_at: string;
|
|
9
|
-
updated_at: string;
|
|
10
|
-
}
|
|
11
|
-
export interface BudgetCheck {
|
|
12
|
-
allowed: boolean;
|
|
13
|
-
reason?: string;
|
|
14
|
-
current_concurrent: number;
|
|
15
|
-
max_concurrent: number;
|
|
16
|
-
current_cost_usd?: number;
|
|
17
|
-
max_cost_usd?: number;
|
|
18
|
-
}
|
|
19
|
-
export declare function setBudget(agentId: string, opts: {
|
|
20
|
-
max_concurrent?: number;
|
|
21
|
-
max_cost_usd?: number | null;
|
|
22
|
-
max_task_minutes?: number | null;
|
|
23
|
-
period_hours?: number;
|
|
24
|
-
}, db?: Database): AgentBudget;
|
|
25
|
-
export declare function getBudget(agentId: string, db?: Database): AgentBudget | null;
|
|
26
|
-
export declare function checkBudget(agentId: string, db?: Database): BudgetCheck;
|
|
27
|
-
//# sourceMappingURL=budgets.d.ts.map
|
package/dist/db/budgets.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"budgets.d.ts","sourceRoot":"","sources":["../../src/db/budgets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE;IAAE,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EACxH,EAAE,CAAC,EAAE,QAAQ,GACZ,WAAW,CAgBb;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,IAAI,CAG5E;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,WAAW,CAuBvE"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
import type { TemplateVariable, TemplateTaskInput } from "../types/index.js";
|
|
3
|
-
import type { TemplateExport } from "./templates.js";
|
|
4
|
-
export declare const BUILTIN_TEMPLATE_LIBRARY_VERSION = "2026-05-21";
|
|
5
|
-
export declare const BUILTIN_TEMPLATE_LIBRARY_SOURCE = "bundled-local-template-library";
|
|
6
|
-
export interface BuiltinTemplate {
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
category: string;
|
|
10
|
-
version: string;
|
|
11
|
-
variables: TemplateVariable[];
|
|
12
|
-
tasks: (TemplateTaskInput & {
|
|
13
|
-
position: number;
|
|
14
|
-
depends_on_positions?: number[];
|
|
15
|
-
})[];
|
|
16
|
-
}
|
|
17
|
-
export declare const BUILTIN_TEMPLATES: BuiltinTemplate[];
|
|
18
|
-
export declare function listBuiltinTemplates(): BuiltinTemplate[];
|
|
19
|
-
export declare function getBuiltinTemplate(name: string): BuiltinTemplate | null;
|
|
20
|
-
export declare function exportBuiltinTemplate(name: string): TemplateExport;
|
|
21
|
-
export declare function exportBuiltinTemplateFiles(): Array<{
|
|
22
|
-
filename: string;
|
|
23
|
-
template: TemplateExport;
|
|
24
|
-
}>;
|
|
25
|
-
export declare function writeBuiltinTemplateFiles(directory: string): {
|
|
26
|
-
directory: string;
|
|
27
|
-
written: number;
|
|
28
|
-
files: string[];
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Initialize built-in templates. Skips any template whose name already exists.
|
|
32
|
-
* Returns the count of templates created.
|
|
33
|
-
*/
|
|
34
|
-
export declare function initBuiltinTemplates(db?: Database): {
|
|
35
|
-
created: number;
|
|
36
|
-
skipped: number;
|
|
37
|
-
names: string[];
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=builtin-templates.d.ts.map
|
|
@@ -1 +0,0 @@
|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wBAAgB,oBAAoB,CAAC,EAAE,CAAC,EAAE,QAAQ,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAyCzG"}
|
package/dist/db/calendar.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
import type { CalendarEvent, CalendarEventKind, LocalCalendarItem } from "../types/index.js";
|
|
3
|
-
export interface CreateCalendarItemInput {
|
|
4
|
-
kind?: CalendarEventKind;
|
|
5
|
-
title: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
starts_at: string;
|
|
8
|
-
ends_at?: string;
|
|
9
|
-
timezone?: string;
|
|
10
|
-
project_id?: string;
|
|
11
|
-
task_id?: string;
|
|
12
|
-
plan_id?: string;
|
|
13
|
-
run_id?: string;
|
|
14
|
-
recurrence_rule?: string;
|
|
15
|
-
metadata?: Record<string, unknown>;
|
|
16
|
-
}
|
|
17
|
-
export interface CalendarQuery {
|
|
18
|
-
project_id?: string;
|
|
19
|
-
task_id?: string;
|
|
20
|
-
plan_id?: string;
|
|
21
|
-
run_id?: string;
|
|
22
|
-
kind?: CalendarEventKind;
|
|
23
|
-
from?: string;
|
|
24
|
-
to?: string;
|
|
25
|
-
include_completed?: boolean;
|
|
26
|
-
include_runs?: boolean;
|
|
27
|
-
include_sla?: boolean;
|
|
28
|
-
include_local?: boolean;
|
|
29
|
-
limit?: number;
|
|
30
|
-
}
|
|
31
|
-
export interface IcsExportOptions extends CalendarQuery {
|
|
32
|
-
calendar_name?: string;
|
|
33
|
-
product_id?: string;
|
|
34
|
-
redact?: boolean;
|
|
35
|
-
generated_at?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface IcsImportResult {
|
|
38
|
-
imported: number;
|
|
39
|
-
skipped: number;
|
|
40
|
-
items: LocalCalendarItem[];
|
|
41
|
-
}
|
|
42
|
-
export declare function createCalendarItem(input: CreateCalendarItemInput, db?: Database): LocalCalendarItem;
|
|
43
|
-
export declare function getCalendarItem(id: string, db?: Database): LocalCalendarItem | null;
|
|
44
|
-
export declare function listCalendarItems(query?: CalendarQuery, db?: Database): LocalCalendarItem[];
|
|
45
|
-
export declare function listCalendarEvents(query?: CalendarQuery, db?: Database): CalendarEvent[];
|
|
46
|
-
export declare function exportCalendarIcs(options?: IcsExportOptions, db?: Database): {
|
|
47
|
-
filename: string;
|
|
48
|
-
content: string;
|
|
49
|
-
events: CalendarEvent[];
|
|
50
|
-
};
|
|
51
|
-
export declare function importCalendarIcs(content: string, db?: Database): IcsImportResult;
|
|
52
|
-
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/db/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,iBAAiB,EAA8B,MAAM,mBAAmB,CAAC;AAKzH,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;I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GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,EAAE,CAAA;CAAE,CAoC/I;AAmBD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,eAAe,CAgCjF"}
|
package/dist/db/checklists.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
import type { ChecklistItem, CreateChecklistItemInput } from "../types/index.js";
|
|
3
|
-
export declare function getChecklist(taskId: string, db?: Database): ChecklistItem[];
|
|
4
|
-
export declare function addChecklistItem(input: CreateChecklistItemInput, db?: Database): ChecklistItem;
|
|
5
|
-
export declare function checkChecklistItem(id: string, checked: boolean, db?: Database): ChecklistItem | null;
|
|
6
|
-
export declare function updateChecklistItemText(id: string, text: string, db?: Database): ChecklistItem | null;
|
|
7
|
-
export declare function removeChecklistItem(id: string, db?: Database): boolean;
|
|
8
|
-
export declare function clearChecklist(taskId: string, db?: Database): number;
|
|
9
|
-
export declare function getChecklistStats(taskId: string, db?: Database): {
|
|
10
|
-
total: number;
|
|
11
|
-
checked: number;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=checklists.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checklists.d.ts","sourceRoot":"","sources":["../../src/db/checklists.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAoB,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAOnG,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,aAAa,EAAE,CAM3E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,wBAAwB,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,aAAa,CAoB9F;AAED,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,IAAI,CASpG;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,IAAI,CASrG;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,OAAO,CAItE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,MAAM,CAIpE;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAMnG"}
|
package/dist/db/checkpoints.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { Database } from "bun:sqlite";
|
|
2
|
-
export interface Checkpoint {
|
|
3
|
-
id: string;
|
|
4
|
-
task_id: string;
|
|
5
|
-
agent_id: string | null;
|
|
6
|
-
step: string;
|
|
7
|
-
status: "pending" | "running" | "completed" | "failed" | "skipped";
|
|
8
|
-
data: Record<string, unknown>;
|
|
9
|
-
error: string | null;
|
|
10
|
-
attempt: number;
|
|
11
|
-
max_attempts: number;
|
|
12
|
-
started_at: string | null;
|
|
13
|
-
completed_at: string | null;
|
|
14
|
-
created_at: string;
|
|
15
|
-
updated_at: string;
|
|
16
|
-
}
|
|
17
|
-
export interface Heartbeat {
|
|
18
|
-
id: string;
|
|
19
|
-
task_id: string;
|
|
20
|
-
agent_id: string | null;
|
|
21
|
-
step: string | null;
|
|
22
|
-
message: string | null;
|
|
23
|
-
progress: number | null;
|
|
24
|
-
meta: Record<string, unknown>;
|
|
25
|
-
created_at: string;
|
|
26
|
-
}
|
|
27
|
-
export declare function upsertCheckpoint(task_id: string, step: string, updates: {
|
|
28
|
-
agent_id?: string;
|
|
29
|
-
status?: Checkpoint["status"];
|
|
30
|
-
data?: Record<string, unknown>;
|
|
31
|
-
error?: string | null;
|
|
32
|
-
attempt?: number;
|
|
33
|
-
max_attempts?: number;
|
|
34
|
-
started_at?: string | null;
|
|
35
|
-
completed_at?: string | null;
|
|
36
|
-
}, db?: Database): Checkpoint;
|
|
37
|
-
export declare function getCheckpoint(taskId: string, step: string, db?: Database): Checkpoint | null;
|
|
38
|
-
export declare function getTaskCheckpoints(taskId: string, db?: Database): Checkpoint[];
|
|
39
|
-
export declare function getTaskHeartbeats(taskId: string, limit?: number, db?: Database): Heartbeat[];
|
|
40
|
-
export declare function emitHeartbeat(task_id: string, opts?: {
|
|
41
|
-
agent_id?: string;
|
|
42
|
-
step?: string;
|
|
43
|
-
message?: string;
|
|
44
|
-
progress?: number;
|
|
45
|
-
meta?: Record<string, unknown>;
|
|
46
|
-
}, db?: Database): Heartbeat;
|
|
47
|
-
export declare function getLastHeartbeat(taskId: string, db?: Database): Heartbeat | null;
|
|
48
|
-
export declare function getTaskProgress(taskId: string, db?: Database): {
|
|
49
|
-
total_steps: number;
|
|
50
|
-
completed_steps: number;
|
|
51
|
-
failed_steps: number;
|
|
52
|
-
pending_steps: number;
|
|
53
|
-
last_heartbeat?: Heartbeat | null;
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=checkpoints.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkpoints.d.ts","sourceRoot":"","sources":["../../src/db/checkpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAA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