lorenz 0.1.5 → 0.1.7
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/README.md +83 -20
- package/RELEASE-MANIFEST.json +6 -1
- package/node_modules/@lorenz/agent-sdk/dist/index.d.ts +1 -0
- package/node_modules/@lorenz/agent-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/agent-sdk/dist/index.js +1 -0
- package/node_modules/@lorenz/agent-sdk/dist/index.js.map +1 -1
- package/node_modules/@lorenz/agent-sdk/dist/module.d.ts +38 -0
- package/node_modules/@lorenz/agent-sdk/dist/module.d.ts.map +1 -0
- package/node_modules/@lorenz/agent-sdk/dist/module.js +41 -0
- package/node_modules/@lorenz/agent-sdk/dist/module.js.map +1 -0
- package/node_modules/@lorenz/cli/dist/agentExecutorLoader.d.ts +30 -0
- package/node_modules/@lorenz/cli/dist/agentExecutorLoader.d.ts.map +1 -0
- package/node_modules/@lorenz/cli/dist/agentExecutorLoader.js +63 -0
- package/node_modules/@lorenz/cli/dist/agentExecutorLoader.js.map +1 -0
- package/node_modules/@lorenz/cli/dist/daemon.d.ts +42 -19
- package/node_modules/@lorenz/cli/dist/daemon.d.ts.map +1 -1
- package/node_modules/@lorenz/cli/dist/daemon.js +74 -28
- package/node_modules/@lorenz/cli/dist/daemon.js.map +1 -1
- package/node_modules/@lorenz/cli/dist/daemonLock.d.ts +59 -0
- package/node_modules/@lorenz/cli/dist/daemonLock.d.ts.map +1 -0
- package/node_modules/@lorenz/cli/dist/daemonLock.js +304 -0
- package/node_modules/@lorenz/cli/dist/daemonLock.js.map +1 -0
- package/node_modules/@lorenz/cli/dist/daemonStatus.d.ts +16 -0
- package/node_modules/@lorenz/cli/dist/daemonStatus.d.ts.map +1 -0
- package/node_modules/@lorenz/cli/dist/daemonStatus.js +21 -0
- package/node_modules/@lorenz/cli/dist/daemonStatus.js.map +1 -0
- package/node_modules/@lorenz/cli/dist/doctor.d.ts +6 -0
- package/node_modules/@lorenz/cli/dist/doctor.d.ts.map +1 -1
- package/node_modules/@lorenz/cli/dist/doctor.js +38 -1
- package/node_modules/@lorenz/cli/dist/doctor.js.map +1 -1
- package/node_modules/@lorenz/cli/dist/extensionLoader.d.ts +126 -0
- package/node_modules/@lorenz/cli/dist/extensionLoader.d.ts.map +1 -0
- package/node_modules/@lorenz/cli/dist/extensionLoader.js +187 -0
- package/node_modules/@lorenz/cli/dist/extensionLoader.js.map +1 -0
- package/node_modules/@lorenz/cli/dist/flags-manifest.d.ts +42 -0
- package/node_modules/@lorenz/cli/dist/flags-manifest.d.ts.map +1 -0
- package/node_modules/@lorenz/cli/dist/flags-manifest.js +67 -0
- package/node_modules/@lorenz/cli/dist/flags-manifest.js.map +1 -0
- package/node_modules/@lorenz/cli/dist/index.d.ts +6 -0
- package/node_modules/@lorenz/cli/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/cli/dist/index.js +4 -0
- package/node_modules/@lorenz/cli/dist/index.js.map +1 -1
- package/node_modules/@lorenz/cli/dist/leadershipStore.d.ts +42 -0
- package/node_modules/@lorenz/cli/dist/leadershipStore.d.ts.map +1 -0
- package/node_modules/@lorenz/cli/dist/leadershipStore.js +2 -0
- package/node_modules/@lorenz/cli/dist/leadershipStore.js.map +1 -0
- package/node_modules/@lorenz/cli/dist/main.d.ts +11 -7
- package/node_modules/@lorenz/cli/dist/main.d.ts.map +1 -1
- package/node_modules/@lorenz/cli/dist/main.js +58 -8
- package/node_modules/@lorenz/cli/dist/main.js.map +1 -1
- package/node_modules/@lorenz/cli/dist/toolLoader.d.ts +28 -0
- package/node_modules/@lorenz/cli/dist/toolLoader.d.ts.map +1 -0
- package/node_modules/@lorenz/cli/dist/toolLoader.js +62 -0
- package/node_modules/@lorenz/cli/dist/toolLoader.js.map +1 -0
- package/node_modules/@lorenz/cli/dist/trackerLoader.d.ts +24 -0
- package/node_modules/@lorenz/cli/dist/trackerLoader.d.ts.map +1 -0
- package/node_modules/@lorenz/cli/dist/trackerLoader.js +34 -0
- package/node_modules/@lorenz/cli/dist/trackerLoader.js.map +1 -0
- package/node_modules/@lorenz/cli/dist/workerDriverLoader.d.ts +15 -55
- package/node_modules/@lorenz/cli/dist/workerDriverLoader.d.ts.map +1 -1
- package/node_modules/@lorenz/cli/dist/workerDriverLoader.js +26 -203
- package/node_modules/@lorenz/cli/dist/workerDriverLoader.js.map +1 -1
- package/node_modules/@lorenz/cli/package.json +1 -0
- package/node_modules/@lorenz/config/dist/index.d.ts +1 -1
- package/node_modules/@lorenz/config/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/config/dist/index.js +1 -1
- package/node_modules/@lorenz/config/dist/index.js.map +1 -1
- package/node_modules/@lorenz/config/dist/parse.d.ts +17 -0
- package/node_modules/@lorenz/config/dist/parse.d.ts.map +1 -1
- package/node_modules/@lorenz/config/dist/parse.js +107 -11
- package/node_modules/@lorenz/config/dist/parse.js.map +1 -1
- package/node_modules/@lorenz/config/dist/schemas.d.ts +0 -2
- package/node_modules/@lorenz/config/dist/schemas.d.ts.map +1 -1
- package/node_modules/@lorenz/config/dist/schemas.js +5 -1
- package/node_modules/@lorenz/config/dist/schemas.js.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/coordinator.d.ts +55 -21
- package/node_modules/@lorenz/dispatch-coordinator/dist/coordinator.d.ts.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/coordinator.js +187 -82
- package/node_modules/@lorenz/dispatch-coordinator/dist/coordinator.js.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/gate.d.ts +6 -4
- package/node_modules/@lorenz/dispatch-coordinator/dist/gate.d.ts.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/gate.js +9 -6
- package/node_modules/@lorenz/dispatch-coordinator/dist/gate.js.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/index.d.ts +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/index.js +5 -6
- package/node_modules/@lorenz/dispatch-coordinator/dist/index.js.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/mcpEndpointManager.d.ts +7 -5
- package/node_modules/@lorenz/dispatch-coordinator/dist/mcpEndpointManager.d.ts.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/mcpEndpointManager.js +12 -10
- package/node_modules/@lorenz/dispatch-coordinator/dist/mcpEndpointManager.js.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/nullEndpointManager.d.ts +11 -10
- package/node_modules/@lorenz/dispatch-coordinator/dist/nullEndpointManager.d.ts.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/nullEndpointManager.js +15 -22
- package/node_modules/@lorenz/dispatch-coordinator/dist/nullEndpointManager.js.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/types.d.ts +16 -15
- package/node_modules/@lorenz/dispatch-coordinator/dist/types.d.ts.map +1 -1
- package/node_modules/@lorenz/dispatch-coordinator/dist/types.js +6 -7
- package/node_modules/@lorenz/dispatch-coordinator/dist/types.js.map +1 -1
- package/node_modules/@lorenz/domain/dist/index.d.ts +75 -9
- package/node_modules/@lorenz/domain/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/domain/dist/index.js +40 -0
- package/node_modules/@lorenz/domain/dist/index.js.map +1 -1
- package/node_modules/@lorenz/flags/dist/coerce.d.ts +12 -0
- package/node_modules/@lorenz/flags/dist/coerce.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/coerce.js +44 -0
- package/node_modules/@lorenz/flags/dist/coerce.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/default.d.ts +6 -0
- package/node_modules/@lorenz/flags/dist/default.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/default.js +22 -0
- package/node_modules/@lorenz/flags/dist/default.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/deprecations.d.ts +20 -0
- package/node_modules/@lorenz/flags/dist/deprecations.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/deprecations.js +42 -0
- package/node_modules/@lorenz/flags/dist/deprecations.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/env.d.ts +17 -0
- package/node_modules/@lorenz/flags/dist/env.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/env.js +90 -0
- package/node_modules/@lorenz/flags/dist/env.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/errors.d.ts +22 -0
- package/node_modules/@lorenz/flags/dist/errors.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/errors.js +61 -0
- package/node_modules/@lorenz/flags/dist/errors.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/index.d.ts +8 -0
- package/node_modules/@lorenz/flags/dist/index.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/index.js +11 -0
- package/node_modules/@lorenz/flags/dist/index.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/keys.d.ts +6 -0
- package/node_modules/@lorenz/flags/dist/keys.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/keys.js +15 -0
- package/node_modules/@lorenz/flags/dist/keys.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/layers.d.ts +14 -0
- package/node_modules/@lorenz/flags/dist/layers.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/layers.js +107 -0
- package/node_modules/@lorenz/flags/dist/layers.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/manifest.d.ts +71 -0
- package/node_modules/@lorenz/flags/dist/manifest.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/manifest.js +137 -0
- package/node_modules/@lorenz/flags/dist/manifest.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/resolve.d.ts +8 -0
- package/node_modules/@lorenz/flags/dist/resolve.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/resolve.js +178 -0
- package/node_modules/@lorenz/flags/dist/resolve.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/testing.d.ts +19 -0
- package/node_modules/@lorenz/flags/dist/testing.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/testing.js +68 -0
- package/node_modules/@lorenz/flags/dist/testing.js.map +1 -0
- package/node_modules/@lorenz/flags/dist/types.d.ts +93 -0
- package/node_modules/@lorenz/flags/dist/types.d.ts.map +1 -0
- package/node_modules/@lorenz/flags/dist/types.js +2 -0
- package/node_modules/@lorenz/flags/dist/types.js.map +1 -0
- package/node_modules/@lorenz/flags/package.json +16 -0
- package/node_modules/@lorenz/jira-tracker/dist/index.d.ts +1 -0
- package/node_modules/@lorenz/jira-tracker/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/jira-tracker/dist/index.js +1 -0
- package/node_modules/@lorenz/jira-tracker/dist/index.js.map +1 -1
- package/node_modules/@lorenz/jira-tracker/dist/provider.d.ts.map +1 -1
- package/node_modules/@lorenz/jira-tracker/dist/provider.js +3 -36
- package/node_modules/@lorenz/jira-tracker/dist/provider.js.map +1 -1
- package/node_modules/@lorenz/jira-tracker/dist/register.d.ts +5 -3
- package/node_modules/@lorenz/jira-tracker/dist/register.d.ts.map +1 -1
- package/node_modules/@lorenz/jira-tracker/dist/register.js +9 -3
- package/node_modules/@lorenz/jira-tracker/dist/register.js.map +1 -1
- package/node_modules/@lorenz/jira-tracker/dist/tools.d.ts +18 -0
- package/node_modules/@lorenz/jira-tracker/dist/tools.d.ts.map +1 -0
- package/node_modules/@lorenz/{tracker-sdk/dist/toolPack.js → jira-tracker/dist/tools.js} +76 -78
- package/node_modules/@lorenz/jira-tracker/dist/tools.js.map +1 -0
- package/node_modules/@lorenz/jira-tracker/package.json +1 -0
- package/node_modules/@lorenz/linear-tracker/dist/provider.d.ts.map +1 -1
- package/node_modules/@lorenz/linear-tracker/dist/provider.js +0 -2
- package/node_modules/@lorenz/linear-tracker/dist/provider.js.map +1 -1
- package/node_modules/@lorenz/local-tracker/dist/provider.d.ts.map +1 -1
- package/node_modules/@lorenz/local-tracker/dist/provider.js +0 -2
- package/node_modules/@lorenz/local-tracker/dist/provider.js.map +1 -1
- package/node_modules/@lorenz/mcp/dist/agentEndpoint.d.ts +16 -3
- package/node_modules/@lorenz/mcp/dist/agentEndpoint.d.ts.map +1 -1
- package/node_modules/@lorenz/mcp/dist/agentEndpoint.js +105 -17
- package/node_modules/@lorenz/mcp/dist/agentEndpoint.js.map +1 -1
- package/node_modules/@lorenz/mcp/dist/auth.d.ts +88 -0
- package/node_modules/@lorenz/mcp/dist/auth.d.ts.map +1 -1
- package/node_modules/@lorenz/mcp/dist/auth.js +53 -0
- package/node_modules/@lorenz/mcp/dist/auth.js.map +1 -1
- package/node_modules/@lorenz/mcp/dist/index.d.ts +3 -2
- package/node_modules/@lorenz/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/mcp/dist/index.js +1 -1
- package/node_modules/@lorenz/mcp/dist/index.js.map +1 -1
- package/node_modules/@lorenz/mcp/dist/server.d.ts +22 -0
- package/node_modules/@lorenz/mcp/dist/server.d.ts.map +1 -1
- package/node_modules/@lorenz/mcp/dist/server.js +85 -12
- package/node_modules/@lorenz/mcp/dist/server.js.map +1 -1
- package/node_modules/@lorenz/mcp/dist/tools.d.ts.map +1 -1
- package/node_modules/@lorenz/mcp/dist/tools.js +5 -8
- package/node_modules/@lorenz/mcp/dist/tools.js.map +1 -1
- package/node_modules/@lorenz/orchestrator/dist/claimStore.d.ts +157 -0
- package/node_modules/@lorenz/orchestrator/dist/claimStore.d.ts.map +1 -0
- package/node_modules/@lorenz/orchestrator/dist/claimStore.js +621 -0
- package/node_modules/@lorenz/orchestrator/dist/claimStore.js.map +1 -0
- package/node_modules/@lorenz/orchestrator/dist/codec.d.ts +38 -0
- package/node_modules/@lorenz/orchestrator/dist/codec.d.ts.map +1 -0
- package/node_modules/@lorenz/orchestrator/dist/codec.js +176 -0
- package/node_modules/@lorenz/orchestrator/dist/codec.js.map +1 -0
- package/node_modules/@lorenz/orchestrator/dist/index.d.ts +55 -51
- package/node_modules/@lorenz/orchestrator/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/orchestrator/dist/index.js +285 -45
- package/node_modules/@lorenz/orchestrator/dist/index.js.map +1 -1
- package/node_modules/@lorenz/orchestrator/dist/sqlite.d.ts +34 -0
- package/node_modules/@lorenz/orchestrator/dist/sqlite.d.ts.map +1 -0
- package/node_modules/@lorenz/orchestrator/dist/sqlite.js +142 -0
- package/node_modules/@lorenz/orchestrator/dist/sqlite.js.map +1 -0
- package/node_modules/@lorenz/orchestrator/dist/state.d.ts +47 -0
- package/node_modules/@lorenz/orchestrator/dist/state.d.ts.map +1 -0
- package/node_modules/@lorenz/orchestrator/dist/state.js +15 -0
- package/node_modules/@lorenz/orchestrator/dist/state.js.map +1 -0
- package/node_modules/@lorenz/orchestrator/dist/turso.d.ts +28 -0
- package/node_modules/@lorenz/orchestrator/dist/turso.d.ts.map +1 -0
- package/node_modules/@lorenz/orchestrator/dist/turso.js +125 -0
- package/node_modules/@lorenz/orchestrator/dist/turso.js.map +1 -0
- package/node_modules/@lorenz/orchestrator/package.json +6 -2
- package/node_modules/@lorenz/presenter/dist/index.d.ts +14 -0
- package/node_modules/@lorenz/presenter/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/presenter/dist/index.js +18 -0
- package/node_modules/@lorenz/presenter/dist/index.js.map +1 -1
- package/node_modules/@lorenz/projections/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/projections/dist/index.js +1 -0
- package/node_modules/@lorenz/projections/dist/index.js.map +1 -1
- package/node_modules/@lorenz/runtime/dist/index.d.ts +27 -8
- package/node_modules/@lorenz/runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/runtime/dist/index.js +422 -98
- package/node_modules/@lorenz/runtime/dist/index.js.map +1 -1
- package/node_modules/@lorenz/runtime-events/dist/index.d.ts +14 -0
- package/node_modules/@lorenz/runtime-events/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/slack-tracker/dist/client.d.ts +0 -7
- package/node_modules/@lorenz/slack-tracker/dist/client.d.ts.map +1 -1
- package/node_modules/@lorenz/slack-tracker/dist/client.js +4 -5
- package/node_modules/@lorenz/slack-tracker/dist/client.js.map +1 -1
- package/node_modules/@lorenz/slack-tracker/dist/index.d.ts +0 -1
- package/node_modules/@lorenz/slack-tracker/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/slack-tracker/dist/index.js +0 -1
- package/node_modules/@lorenz/slack-tracker/dist/index.js.map +1 -1
- package/node_modules/@lorenz/slack-tracker/dist/provider.d.ts.map +1 -1
- package/node_modules/@lorenz/slack-tracker/dist/provider.js +0 -2
- package/node_modules/@lorenz/slack-tracker/dist/provider.js.map +1 -1
- package/node_modules/@lorenz/ssh/dist/index.d.ts +2 -0
- package/node_modules/@lorenz/ssh/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/ssh/dist/index.js +2 -1
- package/node_modules/@lorenz/ssh/dist/index.js.map +1 -1
- package/node_modules/@lorenz/tool-sdk/dist/index.d.ts +1 -0
- package/node_modules/@lorenz/tool-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/tool-sdk/dist/index.js +1 -0
- package/node_modules/@lorenz/tool-sdk/dist/index.js.map +1 -1
- package/node_modules/@lorenz/tool-sdk/dist/module.d.ts +38 -0
- package/node_modules/@lorenz/tool-sdk/dist/module.d.ts.map +1 -0
- package/node_modules/@lorenz/tool-sdk/dist/module.js +42 -0
- package/node_modules/@lorenz/tool-sdk/dist/module.js.map +1 -0
- package/node_modules/@lorenz/tracker-sdk/dist/index.d.ts +2 -2
- package/node_modules/@lorenz/tracker-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/tracker-sdk/dist/index.js +1 -1
- package/node_modules/@lorenz/tracker-sdk/dist/index.js.map +1 -1
- package/node_modules/@lorenz/tracker-sdk/dist/module.d.ts +37 -0
- package/node_modules/@lorenz/tracker-sdk/dist/module.d.ts.map +1 -0
- package/node_modules/@lorenz/tracker-sdk/dist/module.js +38 -0
- package/node_modules/@lorenz/tracker-sdk/dist/module.js.map +1 -0
- package/node_modules/@lorenz/tracker-sdk/dist/provider.d.ts +11 -55
- package/node_modules/@lorenz/tracker-sdk/dist/provider.d.ts.map +1 -1
- package/node_modules/@lorenz/tracker-sdk/package.json +1 -2
- package/node_modules/@lorenz/worker-host-pool/dist/index.d.ts +34 -6
- package/node_modules/@lorenz/worker-host-pool/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/worker-host-pool/dist/index.js +110 -143
- package/node_modules/@lorenz/worker-host-pool/dist/index.js.map +1 -1
- package/node_modules/@lorenz/worker-sdk/dist/index.d.ts +1 -0
- package/node_modules/@lorenz/worker-sdk/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/worker-sdk/dist/index.js +1 -0
- package/node_modules/@lorenz/worker-sdk/dist/index.js.map +1 -1
- package/node_modules/@lorenz/worker-sdk/dist/local.d.ts +74 -0
- package/node_modules/@lorenz/worker-sdk/dist/local.d.ts.map +1 -0
- package/node_modules/@lorenz/worker-sdk/dist/local.js +112 -0
- package/node_modules/@lorenz/worker-sdk/dist/local.js.map +1 -0
- package/node_modules/@lorenz/worker-sdk/dist/module.d.ts +8 -16
- package/node_modules/@lorenz/worker-sdk/dist/module.d.ts.map +1 -1
- package/node_modules/@lorenz/worker-sdk/dist/module.js +15 -35
- package/node_modules/@lorenz/worker-sdk/dist/module.js.map +1 -1
- package/node_modules/@lorenz/workflow/dist/index.d.ts +11 -0
- package/node_modules/@lorenz/workflow/dist/index.d.ts.map +1 -1
- package/node_modules/@lorenz/workflow/dist/index.js +3 -0
- package/node_modules/@lorenz/workflow/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/node_modules/@lorenz/linear-tracker/dist/toolOps.d.ts +0 -8
- package/node_modules/@lorenz/linear-tracker/dist/toolOps.d.ts.map +0 -1
- package/node_modules/@lorenz/linear-tracker/dist/toolOps.js +0 -251
- package/node_modules/@lorenz/linear-tracker/dist/toolOps.js.map +0 -1
- package/node_modules/@lorenz/local-tracker/dist/toolOps.d.ts +0 -9
- package/node_modules/@lorenz/local-tracker/dist/toolOps.d.ts.map +0 -1
- package/node_modules/@lorenz/local-tracker/dist/toolOps.js +0 -86
- package/node_modules/@lorenz/local-tracker/dist/toolOps.js.map +0 -1
- package/node_modules/@lorenz/slack-tracker/dist/toolOps.d.ts +0 -13
- package/node_modules/@lorenz/slack-tracker/dist/toolOps.d.ts.map +0 -1
- package/node_modules/@lorenz/slack-tracker/dist/toolOps.js +0 -76
- package/node_modules/@lorenz/slack-tracker/dist/toolOps.js.map +0 -1
- package/node_modules/@lorenz/tracker-sdk/dist/toolPack.d.ts +0 -10
- package/node_modules/@lorenz/tracker-sdk/dist/toolPack.d.ts.map +0 -1
- package/node_modules/@lorenz/tracker-sdk/dist/toolPack.js.map +0 -1
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { normalizeIssue } from "@lorenz/issue";
|
|
2
|
-
import { isRecord } from "@lorenz/domain";
|
|
3
|
-
import { linearTrackerOptions } from "./options.js";
|
|
4
|
-
import { executeLinearTool } from "./tools.js";
|
|
5
|
-
const linearIssueFields = `
|
|
6
|
-
id
|
|
7
|
-
identifier
|
|
8
|
-
title
|
|
9
|
-
description
|
|
10
|
-
priority
|
|
11
|
-
state { id name type }
|
|
12
|
-
branchName
|
|
13
|
-
url
|
|
14
|
-
assignee { id }
|
|
15
|
-
labels(first: 50) { nodes { name } }
|
|
16
|
-
inverseRelations(first: 50) {
|
|
17
|
-
nodes {
|
|
18
|
-
type
|
|
19
|
-
issue { id identifier state { name type } }
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
createdAt
|
|
23
|
-
updatedAt
|
|
24
|
-
`;
|
|
25
|
-
/**
|
|
26
|
-
* Normalized issue operations behind the provider-neutral `tracker_*` pack, implemented over
|
|
27
|
-
* the same GraphQL transport as the `linear_graphql` tool (credentials, retries, logging).
|
|
28
|
-
*/
|
|
29
|
-
export function linearToolOps(settings, context) {
|
|
30
|
-
const { fetchImpl } = context;
|
|
31
|
-
return {
|
|
32
|
-
readIssue: async (issueId) => readLinearIssue(settings, issueId, fetchImpl),
|
|
33
|
-
queryIssues: async (args) => queryLinearIssues(settings, args, fetchImpl),
|
|
34
|
-
updateStatus: async (issueId, status) => updateLinearStatus(settings, issueId, status, fetchImpl),
|
|
35
|
-
listComments: async (issueId) => listLinearComments(settings, issueId, fetchImpl),
|
|
36
|
-
addComment: async (issueId, body) => createLinearComment(settings, issueId, body, fetchImpl),
|
|
37
|
-
updateComment: async (_issueId, commentId, body) => updateLinearComment(settings, commentId, body, fetchImpl),
|
|
38
|
-
createIssue: async (input) => createLinearIssue(settings, input, fetchImpl),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
async function readLinearIssue(settings, issueId, fetchImpl) {
|
|
42
|
-
const data = await linearData(settings, `query LorenzTrackerReadIssue($id: String!) {
|
|
43
|
-
issue(id: $id) { ${linearIssueFields} }
|
|
44
|
-
}`, { id: issueId }, fetchImpl);
|
|
45
|
-
if (!data.issue)
|
|
46
|
-
throw new Error(`linear issue not found: ${issueId}`);
|
|
47
|
-
return normalizeLinearIssue(data.issue, settings.tracker.assignee);
|
|
48
|
-
}
|
|
49
|
-
async function queryLinearIssues(settings, args, fetchImpl) {
|
|
50
|
-
const issueIds = stringArray(args.issueIds);
|
|
51
|
-
if (issueIds) {
|
|
52
|
-
const data = await linearData(settings, `query LorenzTrackerIssuesById($ids: [ID!]!, $first: Int!) {
|
|
53
|
-
issues(filter: {id: {in: $ids}}, first: $first) { nodes { ${linearIssueFields} } }
|
|
54
|
-
}`, { ids: issueIds, first: issueIds.length }, fetchImpl);
|
|
55
|
-
return data.issues.nodes.map((issue) => normalizeLinearIssue(issue, settings.tracker.assignee));
|
|
56
|
-
}
|
|
57
|
-
const states = stringArray(args.states) ?? settings.tracker.activeStates;
|
|
58
|
-
const options = linearTrackerOptions(settings);
|
|
59
|
-
const projectSlugs = options.projectSlugs ?? (options.projectSlug ? [options.projectSlug] : []);
|
|
60
|
-
const data = await linearData(settings, `query LorenzTrackerQuery($projectSlugs: [String!]!, $stateNames: [String!]!, $first: Int!) {
|
|
61
|
-
issues(filter: {project: {slugId: {in: $projectSlugs}}, state: {name: {in: $stateNames}}}, first: $first) {
|
|
62
|
-
nodes { ${linearIssueFields} }
|
|
63
|
-
}
|
|
64
|
-
}`, { projectSlugs, stateNames: states, first: numberArg(args.limit, 50) }, fetchImpl);
|
|
65
|
-
return data.issues.nodes.map((issue) => normalizeLinearIssue(issue, settings.tracker.assignee));
|
|
66
|
-
}
|
|
67
|
-
async function updateLinearStatus(settings, issueId, status, fetchImpl) {
|
|
68
|
-
const lookup = await linearData(settings, `query LorenzTrackerLinearStates($id: String!) {
|
|
69
|
-
issue(id: $id) { team { states(first: 100) { nodes { id name } } } }
|
|
70
|
-
}`, { id: issueId }, fetchImpl);
|
|
71
|
-
const state = lookup.issue?.team?.states?.nodes?.find((candidate) => candidate.name.trim().toLowerCase() === status.trim().toLowerCase());
|
|
72
|
-
if (!state)
|
|
73
|
-
throw new Error(`linear state not found: ${status}`);
|
|
74
|
-
const data = await linearData(settings, `mutation LorenzTrackerLinearUpdate($id: String!, $input: IssueUpdateInput!) {
|
|
75
|
-
issueUpdate(id: $id, input: $input) { success issue { ${linearIssueFields} } }
|
|
76
|
-
}`, { id: issueId, input: { stateId: state.id } }, fetchImpl);
|
|
77
|
-
if (!data.issueUpdate.success || !data.issueUpdate.issue)
|
|
78
|
-
throw new Error("linear issueUpdate failed");
|
|
79
|
-
return normalizeLinearIssue(data.issueUpdate.issue, settings.tracker.assignee);
|
|
80
|
-
}
|
|
81
|
-
async function createLinearComment(settings, issueId, body, fetchImpl) {
|
|
82
|
-
const data = await linearData(settings, `mutation LorenzTrackerLinearComment($input: CommentCreateInput!) {
|
|
83
|
-
commentCreate(input: $input) {
|
|
84
|
-
success
|
|
85
|
-
comment {
|
|
86
|
-
id
|
|
87
|
-
body
|
|
88
|
-
createdAt
|
|
89
|
-
updatedAt
|
|
90
|
-
url
|
|
91
|
-
user { id name email }
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}`, { input: { issueId, body } }, fetchImpl);
|
|
95
|
-
if (!data.commentCreate.success || !data.commentCreate.comment) {
|
|
96
|
-
throw new Error("linear commentCreate failed");
|
|
97
|
-
}
|
|
98
|
-
return normalizeLinearComment(data.commentCreate.comment);
|
|
99
|
-
}
|
|
100
|
-
async function listLinearComments(settings, issueId, fetchImpl) {
|
|
101
|
-
const out = [];
|
|
102
|
-
let after = null;
|
|
103
|
-
for (;;) {
|
|
104
|
-
const data = await linearData(settings, `query LorenzTrackerLinearComments($id: String!, $after: String) {
|
|
105
|
-
issue(id: $id) {
|
|
106
|
-
comments(first: 100, after: $after) {
|
|
107
|
-
nodes {
|
|
108
|
-
id
|
|
109
|
-
body
|
|
110
|
-
createdAt
|
|
111
|
-
updatedAt
|
|
112
|
-
url
|
|
113
|
-
user { id name email }
|
|
114
|
-
}
|
|
115
|
-
pageInfo {
|
|
116
|
-
hasNextPage
|
|
117
|
-
endCursor
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}`, { id: issueId, after }, fetchImpl);
|
|
122
|
-
const issue = isRecord(data) && isRecord(data.issue) ? data.issue : null;
|
|
123
|
-
if (!issue)
|
|
124
|
-
throw new Error(`linear issue not found: ${issueId}`);
|
|
125
|
-
const comments = isRecord(issue.comments) ? issue.comments : {};
|
|
126
|
-
const nodes = Array.isArray(comments.nodes) ? comments.nodes : [];
|
|
127
|
-
for (const node of nodes) {
|
|
128
|
-
if (isRecord(node))
|
|
129
|
-
out.push(normalizeLinearComment(node));
|
|
130
|
-
}
|
|
131
|
-
const pageInfo = isRecord(comments.pageInfo) ? comments.pageInfo : {};
|
|
132
|
-
after = stringValue(pageInfo, "endCursor");
|
|
133
|
-
if (pageInfo.hasNextPage !== true || !after)
|
|
134
|
-
return out;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
async function updateLinearComment(settings, commentId, body, fetchImpl) {
|
|
138
|
-
const data = await linearData(settings, `mutation LorenzTrackerLinearCommentUpdate($id: String!, $input: CommentUpdateInput!) {
|
|
139
|
-
commentUpdate(id: $id, input: $input) {
|
|
140
|
-
success
|
|
141
|
-
comment {
|
|
142
|
-
id
|
|
143
|
-
body
|
|
144
|
-
createdAt
|
|
145
|
-
updatedAt
|
|
146
|
-
url
|
|
147
|
-
user { id name email }
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}`, { id: commentId, input: { body } }, fetchImpl);
|
|
151
|
-
if (!data.commentUpdate.success || !data.commentUpdate.comment) {
|
|
152
|
-
throw new Error("linear commentUpdate failed");
|
|
153
|
-
}
|
|
154
|
-
return normalizeLinearComment(data.commentUpdate.comment);
|
|
155
|
-
}
|
|
156
|
-
async function createLinearIssue(settings, input, fetchImpl) {
|
|
157
|
-
const options = linearTrackerOptions(settings);
|
|
158
|
-
const projectSlug = options.projectSlug ?? options.projectSlugs?.[0];
|
|
159
|
-
if (!projectSlug)
|
|
160
|
-
throw new Error("tracker.project_slug is required to create Linear issues");
|
|
161
|
-
const projectData = await linearData(settings, `query LorenzTrackerLinearProject($slug: String!) {
|
|
162
|
-
projects(filter: {slugId: {eq: $slug}}, first: 1) {
|
|
163
|
-
nodes { id teams(first: 1) { nodes { id states(first: 100) { nodes { id name type } } } } }
|
|
164
|
-
}
|
|
165
|
-
}`, { slug: projectSlug }, fetchImpl);
|
|
166
|
-
const project = projectData.projects.nodes[0];
|
|
167
|
-
const team = project?.teams.nodes[0];
|
|
168
|
-
if (!project || !team)
|
|
169
|
-
throw new Error(`linear project not found: ${projectSlug}`);
|
|
170
|
-
const state = team.states.nodes.find((candidate) => candidate.name === input.status) ??
|
|
171
|
-
team.states.nodes.find((candidate) => candidate.type === "unstarted") ??
|
|
172
|
-
team.states.nodes[0];
|
|
173
|
-
if (!state)
|
|
174
|
-
throw new Error("linear project has no workflow states");
|
|
175
|
-
const assignee = input.assignee?.trim() || settings.tracker.assignee?.trim();
|
|
176
|
-
const data = await linearData(settings, `mutation LorenzTrackerLinearCreate($input: IssueCreateInput!) {
|
|
177
|
-
issueCreate(input: $input) { success issue { ${linearIssueFields} } }
|
|
178
|
-
}`, {
|
|
179
|
-
input: {
|
|
180
|
-
teamId: team.id,
|
|
181
|
-
projectId: project.id,
|
|
182
|
-
stateId: state.id,
|
|
183
|
-
title: input.title,
|
|
184
|
-
description: input.body ?? "",
|
|
185
|
-
...(assignee ? { assigneeId: assignee } : {}),
|
|
186
|
-
},
|
|
187
|
-
}, fetchImpl);
|
|
188
|
-
if (!data.issueCreate.success || !data.issueCreate.issue)
|
|
189
|
-
throw new Error("linear issueCreate failed");
|
|
190
|
-
return normalizeLinearIssue(data.issueCreate.issue, settings.tracker.assignee);
|
|
191
|
-
}
|
|
192
|
-
async function linearData(settings, query, variables, fetchImpl) {
|
|
193
|
-
const result = await executeLinearTool("linear_graphql", { query, variables }, settings, fetchImpl);
|
|
194
|
-
if (!result.success)
|
|
195
|
-
throw new Error(result.error ?? "linear_graphql failed");
|
|
196
|
-
const body = result.result;
|
|
197
|
-
if (!isRecord(body) || !isRecord(body.data))
|
|
198
|
-
throw new Error("linear_graphql returned no data");
|
|
199
|
-
return body.data;
|
|
200
|
-
}
|
|
201
|
-
function normalizeLinearIssue(issue, assignee) {
|
|
202
|
-
return normalizeIssue({
|
|
203
|
-
...issue,
|
|
204
|
-
state: issue.state,
|
|
205
|
-
state_type: isRecord(issue.state) ? issue.state.type : null,
|
|
206
|
-
branch_name: issue.branchName,
|
|
207
|
-
assignee_id: isRecord(issue.assignee) ? issue.assignee.id : null,
|
|
208
|
-
labels: nodesFromConnection(issue.labels),
|
|
209
|
-
relations: nodesFromConnection(issue.inverseRelations),
|
|
210
|
-
created_at: issue.createdAt,
|
|
211
|
-
updated_at: issue.updatedAt,
|
|
212
|
-
}, assignee);
|
|
213
|
-
}
|
|
214
|
-
function normalizeLinearComment(comment) {
|
|
215
|
-
const user = isRecord(comment.user) ? comment.user : {};
|
|
216
|
-
return {
|
|
217
|
-
id: requireStr(comment, "id"),
|
|
218
|
-
body: typeof comment.body === "string" ? comment.body : "",
|
|
219
|
-
author: stringValue(user, "id") ?? stringValue(user, "name") ?? stringValue(user, "email"),
|
|
220
|
-
createdAt: stringValue(comment, "createdAt"),
|
|
221
|
-
updatedAt: stringValue(comment, "updatedAt"),
|
|
222
|
-
url: stringValue(comment, "url"),
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
function nodesFromConnection(value) {
|
|
226
|
-
if (!isRecord(value) || !Array.isArray(value.nodes))
|
|
227
|
-
return [];
|
|
228
|
-
return value.nodes;
|
|
229
|
-
}
|
|
230
|
-
function stringValue(record, key) {
|
|
231
|
-
const value = record[key];
|
|
232
|
-
return typeof value === "string" && value.trim() !== "" ? value : null;
|
|
233
|
-
}
|
|
234
|
-
function requireStr(record, key) {
|
|
235
|
-
const value = stringValue(record, key);
|
|
236
|
-
if (!value)
|
|
237
|
-
throw new Error(`'${key}' is required`);
|
|
238
|
-
return value;
|
|
239
|
-
}
|
|
240
|
-
function stringArray(value) {
|
|
241
|
-
if (value === undefined || value === null)
|
|
242
|
-
return null;
|
|
243
|
-
if (!Array.isArray(value) || !value.every((entry) => typeof entry === "string")) {
|
|
244
|
-
throw new Error("expected an array of strings");
|
|
245
|
-
}
|
|
246
|
-
return value;
|
|
247
|
-
}
|
|
248
|
-
function numberArg(value, fallback) {
|
|
249
|
-
return typeof value === "number" && Number.isInteger(value) && value > 0 ? value : fallback;
|
|
250
|
-
}
|
|
251
|
-
//# sourceMappingURL=toolOps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolOps.js","sourceRoot":"","sources":["../src/toolOps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAA6B,MAAM,gBAAgB,CAAC;AAQrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OA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Ops } from "@lorenz/tracker-sdk";
|
|
3
|
-
/**
|
|
4
|
-
* Normalized issue operations behind the provider-neutral `tracker_*` pack, delegating to
|
|
5
|
-
* the `local_*` tools so both surfaces share one board implementation. The board's query
|
|
6
|
-
* tool filters and projects natively, so queries are exposed as pre-projected rows.
|
|
7
|
-
*/
|
|
8
|
-
export declare function localToolOps(settings: Settings): TrackerToolOps;
|
|
9
|
-
//# sourceMappingURL=toolOps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolOps.d.ts","sourceRoot":"","sources":["../src/toolOps.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAsB,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI9E;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,CAoC/D"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { normalizeIssue } from "@lorenz/issue";
|
|
2
|
-
import { isRecord } from "@lorenz/domain";
|
|
3
|
-
import { executeLocalTool } from "./tools.js";
|
|
4
|
-
/**
|
|
5
|
-
* Normalized issue operations behind the provider-neutral `tracker_*` pack, delegating to
|
|
6
|
-
* the `local_*` tools so both surfaces share one board implementation. The board's query
|
|
7
|
-
* tool filters and projects natively, so queries are exposed as pre-projected rows.
|
|
8
|
-
*/
|
|
9
|
-
export function localToolOps(settings) {
|
|
10
|
-
return {
|
|
11
|
-
readIssue: async (issueId) => {
|
|
12
|
-
const result = await executeLocalTool("local_read_issue", { issueId }, settings);
|
|
13
|
-
if (!result.success)
|
|
14
|
-
throw new Error(result.error ?? "local_read_issue failed");
|
|
15
|
-
return localReadResultToIssue(result.result);
|
|
16
|
-
},
|
|
17
|
-
queryRows: async (args) => {
|
|
18
|
-
const result = await executeLocalTool("local_query", args, settings);
|
|
19
|
-
if (!result.success)
|
|
20
|
-
throw new Error(result.error ?? "local_query failed");
|
|
21
|
-
const payload = isRecord(result.result) ? result.result : {};
|
|
22
|
-
return {
|
|
23
|
-
rows: Array.isArray(payload.rows) ? payload.rows : [],
|
|
24
|
-
total: typeof payload.total === "number" ? payload.total : 0,
|
|
25
|
-
skipped: Array.isArray(payload.skipped) ? payload.skipped : [],
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
updateStatus: async (issueId, status) => {
|
|
29
|
-
const result = await executeLocalTool("local_update_status", { issueId, status }, settings);
|
|
30
|
-
if (!result.success)
|
|
31
|
-
throw new Error(result.error ?? "local_update_status failed");
|
|
32
|
-
return issueResult(result.result);
|
|
33
|
-
},
|
|
34
|
-
addComment: async (issueId, body) => {
|
|
35
|
-
const result = await executeLocalTool("local_comment", { issueId, body }, settings);
|
|
36
|
-
if (!result.success)
|
|
37
|
-
throw new Error(result.error ?? "local_comment failed");
|
|
38
|
-
},
|
|
39
|
-
createIssue: async (input) => {
|
|
40
|
-
const result = await executeLocalTool("local_create_issue", { title: input.title, body: input.body, status: input.status }, settings);
|
|
41
|
-
if (!result.success)
|
|
42
|
-
throw new Error(result.error ?? "local_create_issue failed");
|
|
43
|
-
return issueResult(result.result);
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function localReadResultToIssue(value) {
|
|
48
|
-
if (!isRecord(value) || !isRecord(value.issue))
|
|
49
|
-
throw new Error("local_read_issue returned no issue");
|
|
50
|
-
return normalizeIssue({
|
|
51
|
-
id: requireStr(value.issue, "id"),
|
|
52
|
-
identifier: requireStr(value.issue, "id"),
|
|
53
|
-
title: requireStr(value.issue, "title"),
|
|
54
|
-
description: typeof value.issue.description === "string" ? value.issue.description : null,
|
|
55
|
-
state: requireStr(value.issue, "status"),
|
|
56
|
-
state_type: stateTypeFromStatus(requireStr(value.issue, "status")),
|
|
57
|
-
labels: [],
|
|
58
|
-
blockers: [],
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
function issueResult(value) {
|
|
62
|
-
if (!isRecord(value) || !isRecord(value.issue))
|
|
63
|
-
throw new Error("tracker tool returned no issue");
|
|
64
|
-
return normalizeIssue(value.issue);
|
|
65
|
-
}
|
|
66
|
-
function stateTypeFromStatus(status) {
|
|
67
|
-
const normalized = status.trim().toLowerCase();
|
|
68
|
-
if (normalized.includes("done") || normalized.includes("closed"))
|
|
69
|
-
return "completed";
|
|
70
|
-
if (normalized.includes("cancel"))
|
|
71
|
-
return "canceled";
|
|
72
|
-
if (normalized.includes("backlog"))
|
|
73
|
-
return "backlog";
|
|
74
|
-
if (normalized.includes("triage"))
|
|
75
|
-
return "triage";
|
|
76
|
-
if (normalized.includes("progress"))
|
|
77
|
-
return "started";
|
|
78
|
-
return "unstarted";
|
|
79
|
-
}
|
|
80
|
-
function requireStr(args, key) {
|
|
81
|
-
const value = args[key];
|
|
82
|
-
if (typeof value !== "string" || value.trim() === "")
|
|
83
|
-
throw new Error(`'${key}' is required`);
|
|
84
|
-
return value;
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=toolOps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolOps.js","sourceRoot":"","sources":["../src/toolOps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAA6B,MAAM,gBAAgB,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkB;IAC7C,OAAO;QACL,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAC3B,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,CAAC,CAAC;YACjF,IAAI,CAAC,MAAM,CAAC,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,yBAAyB,CAAC,CA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;QAAE,MAAM,IAAI,KAAK,CAAC,IAAI,GAAG,eAAe,CAAC,CAAC;IAC9F,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Settings } from "@lorenz/domain";
|
|
2
|
-
import type { TrackerOpsContext, TrackerToolOps } from "@lorenz/tracker-sdk";
|
|
3
|
-
import type { SlackTransport } from "./transport.js";
|
|
4
|
-
/**
|
|
5
|
-
* Normalized issue operations behind the provider-neutral `tracker_*` pack, implemented over
|
|
6
|
-
* the same transport, trust boundary, and transactional status swap as the `slack_*` tools.
|
|
7
|
-
* `createIssue` is intentionally absent: Slack issues are created by humans @-mentioning the
|
|
8
|
-
* bot, never by an agent.
|
|
9
|
-
*/
|
|
10
|
-
export declare function slackToolOps(settings: Settings, context: TrackerOpsContext): TrackerToolOps;
|
|
11
|
-
/** Like {@link slackToolOps} with an injected transport (tests use the in-memory one). */
|
|
12
|
-
export declare function slackToolOpsWith(settings: Settings, transport: SlackTransport): TrackerToolOps;
|
|
13
|
-
//# sourceMappingURL=toolOps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolOps.d.ts","sourceRoot":"","sources":["../src/toolOps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,iBAAiB,GAAG,cAAc,CAE3F;AAED,0FAA0F;AAC1F,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,GAAG,cAAc,CA6B9F"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { slackMessageToIssue, SlackTrackerClient, splitIssueId } from "./client.js";
|
|
2
|
-
import { requireTrackedMessage, updateSlackStatus } from "./operations.js";
|
|
3
|
-
import { resolveThreadState } from "./threadState.js";
|
|
4
|
-
import { SlackWebTransport } from "./webTransport.js";
|
|
5
|
-
/**
|
|
6
|
-
* Normalized issue operations behind the provider-neutral `tracker_*` pack, implemented over
|
|
7
|
-
* the same transport, trust boundary, and transactional status swap as the `slack_*` tools.
|
|
8
|
-
* `createIssue` is intentionally absent: Slack issues are created by humans @-mentioning the
|
|
9
|
-
* bot, never by an agent.
|
|
10
|
-
*/
|
|
11
|
-
export function slackToolOps(settings, context) {
|
|
12
|
-
return slackToolOpsWith(settings, new SlackWebTransport(settings, context.fetchImpl));
|
|
13
|
-
}
|
|
14
|
-
/** Like {@link slackToolOps} with an injected transport (tests use the in-memory one). */
|
|
15
|
-
export function slackToolOpsWith(settings, transport) {
|
|
16
|
-
return {
|
|
17
|
-
readIssue: async (issueId) => {
|
|
18
|
-
const [channel, ts] = requireIssueIdParts(issueId);
|
|
19
|
-
const root = await requireTrackedMessage(settings, transport, channel, ts);
|
|
20
|
-
const thread = await resolveThreadState(settings, transport, root);
|
|
21
|
-
return slackMessageToIssue(root, settings, {
|
|
22
|
-
permalinkBase: await transport.teamUrl(),
|
|
23
|
-
state: thread.state,
|
|
24
|
-
request: thread.request,
|
|
25
|
-
});
|
|
26
|
-
},
|
|
27
|
-
queryIssues: async (args) => querySlackIssues(settings, transport, args),
|
|
28
|
-
updateStatus: async (issueId, status) => {
|
|
29
|
-
const [channel, ts] = requireIssueIdParts(issueId);
|
|
30
|
-
const outcome = await updateSlackStatus(settings, transport, channel, ts, status);
|
|
31
|
-
if (!outcome.ok)
|
|
32
|
-
throw new Error(outcome.message);
|
|
33
|
-
// The posted status reply IS the new authoritative state; no re-read needed.
|
|
34
|
-
return slackMessageToIssue(outcome.root, settings, {
|
|
35
|
-
permalinkBase: await transport.teamUrl(),
|
|
36
|
-
state: outcome.status,
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
addComment: async (issueId, body) => {
|
|
40
|
-
const [channel, ts] = requireIssueIdParts(issueId);
|
|
41
|
-
await requireTrackedMessage(settings, transport, channel, ts);
|
|
42
|
-
await transport.postReply(channel, ts, body);
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
async function querySlackIssues(settings, transport, args) {
|
|
47
|
-
if (typeof args.jql === "string" && args.jql.trim() !== "") {
|
|
48
|
-
// Reject rather than silently ignore: a "filtered" result that ignored the filter would
|
|
49
|
-
// hand the agent terminal/stale issues presented as matches.
|
|
50
|
-
throw new Error("'jql' is not supported by the slack tracker; filter with 'where' instead");
|
|
51
|
-
}
|
|
52
|
-
const client = new SlackTrackerClient(settings, transport);
|
|
53
|
-
const issueIds = stringArray(args.issueIds);
|
|
54
|
-
if (issueIds)
|
|
55
|
-
return client.fetchIssuesByIds(issueIds);
|
|
56
|
-
const states = stringArray(args.states);
|
|
57
|
-
if (states)
|
|
58
|
-
return client.fetchIssuesByStates(states);
|
|
59
|
-
// Match the other trackers' default scope: candidates, not the full mention history.
|
|
60
|
-
return client.fetchCandidateIssues();
|
|
61
|
-
}
|
|
62
|
-
function requireIssueIdParts(issueId) {
|
|
63
|
-
const parts = splitIssueId(issueId);
|
|
64
|
-
if (!parts)
|
|
65
|
-
throw new Error("issueId must be in '<channel>:<ts>' form");
|
|
66
|
-
return parts;
|
|
67
|
-
}
|
|
68
|
-
function stringArray(value) {
|
|
69
|
-
if (value === undefined || value === null)
|
|
70
|
-
return null;
|
|
71
|
-
if (!Array.isArray(value) || !value.every((entry) => typeof entry === "string")) {
|
|
72
|
-
throw new Error("expected an array of strings");
|
|
73
|
-
}
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=toolOps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolOps.js","sourceRoot":"","sources":["../src/toolOps.ts"],"names":[],"mappings":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AI,QAAQ;QAAE,OAAO,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxC,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACtD,qFAAqF;IACrF,OAAO,MAAM,CAAC,oBAAoB,EAAE,CAAC;AACvC,CAAC;AAED,SAAS,mBAAmB,CAAC,OAAe;IAC1C,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IACpC,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IACxE,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACvD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,EAAE,CAAC;QAChF,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAClD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ToolProvider } from "@lorenz/tool-sdk";
|
|
2
|
-
import type { TrackerRegistry } from "./registry.js";
|
|
3
|
-
/**
|
|
4
|
-
* The provider-neutral `tracker` tool pack: one set of `tracker_*` tools that works against
|
|
5
|
-
* whichever tracker drives dispatch, implemented purely over the provider's normalized
|
|
6
|
-
* {@link TrackerToolOps}. Backends without tool operations (e.g. the in-process memory
|
|
7
|
-
* fixture) advertise no tools and fail any direct call with a clear message.
|
|
8
|
-
*/
|
|
9
|
-
export declare function createTrackerToolProvider(trackers: TrackerRegistry): ToolProvider;
|
|
10
|
-
//# sourceMappingURL=toolPack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolPack.d.ts","sourceRoot":"","sources":["../src/toolPack.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,YAAY,EAGlB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAerD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,eAAe,GAAG,YAAY,CAQjF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolPack.js","sourceRoot":"","sources":["../src/toolPack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAA6B,MAAM,gBAAgB,CAAC;AACnF,OAAO,EACL,UAAU,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EACX,sBAAsB,GAIvB,MAAM,kBAAkB,CAAC;AAK1B,MAAM,kBAAkB,GAAG;IACzB,oBAAoB;IACpB,eAAe;IACf,uBAAuB;IACvB,uBAAuB;IACvB,iBAAiB;IACjB,wBAAwB;IACxB,sBAAsB;CACd,CAAC;AAEX,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAE5F;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,QAAyB;IACjE,OAAO;QACL,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,CAAC,QAAQ,EAAE,EAAE,CACtB,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,EAAE;QAC3E,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAC1C,kBAAkB,CA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