nodebench-mcp 2.70.0 → 3.0.1
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 +95 -41
- package/dist/agents/alertRouter.d.ts +38 -0
- package/dist/agents/alertRouter.js +151 -0
- package/dist/agents/alertRouter.js.map +1 -0
- package/dist/agents/entityMemory.d.ts +40 -0
- package/dist/agents/entityMemory.js +64 -0
- package/dist/agents/entityMemory.js.map +1 -0
- package/dist/agents/subAgents.d.ts +35 -0
- package/dist/agents/subAgents.js +62 -0
- package/dist/agents/subAgents.js.map +1 -0
- package/dist/benchmarks/benchmarkRunner.js +14 -0
- package/dist/benchmarks/benchmarkRunner.js.map +1 -1
- package/dist/benchmarks/chainEval.js +107 -0
- package/dist/benchmarks/chainEval.js.map +1 -1
- package/dist/benchmarks/llmJudgeEval.js +85 -0
- package/dist/benchmarks/llmJudgeEval.js.map +1 -1
- package/dist/benchmarks/searchQualityEval.js +118 -5
- package/dist/benchmarks/searchQualityEval.js.map +1 -1
- package/dist/cli/search.d.ts +13 -0
- package/dist/cli/search.js +130 -0
- package/dist/cli/search.js.map +1 -0
- package/dist/dashboard/operatingDashboardHtml.js +2 -1
- package/dist/dashboard/operatingDashboardHtml.js.map +1 -1
- package/dist/dashboard/operatingServer.js +3 -2
- package/dist/dashboard/operatingServer.js.map +1 -1
- package/dist/db.d.ts +6 -2
- package/dist/db.js +521 -6
- package/dist/db.js.map +1 -1
- package/dist/index.js +349 -67
- package/dist/index.js.map +1 -1
- package/dist/packageInfo.d.ts +3 -0
- package/dist/packageInfo.js +32 -0
- package/dist/packageInfo.js.map +1 -0
- package/dist/profiler/behaviorStore.d.ts +97 -0
- package/dist/profiler/behaviorStore.js +276 -0
- package/dist/profiler/behaviorStore.js.map +1 -0
- package/dist/profiler/eventCollector.d.ts +119 -0
- package/dist/profiler/eventCollector.js +267 -0
- package/dist/profiler/eventCollector.js.map +1 -0
- package/dist/profiler/index.d.ts +15 -0
- package/dist/profiler/index.js +16 -0
- package/dist/profiler/index.js.map +1 -0
- package/dist/profiler/mcpProxy.d.ts +49 -0
- package/dist/profiler/mcpProxy.js +123 -0
- package/dist/profiler/mcpProxy.js.map +1 -0
- package/dist/profiler/modelRouter.d.ts +30 -0
- package/dist/profiler/modelRouter.js +99 -0
- package/dist/profiler/modelRouter.js.map +1 -0
- package/dist/profiler/otelReceiver.d.ts +17 -0
- package/dist/profiler/otelReceiver.js +62 -0
- package/dist/profiler/otelReceiver.js.map +1 -0
- package/dist/profiler/proofEngine.d.ts +41 -0
- package/dist/profiler/proofEngine.js +93 -0
- package/dist/profiler/proofEngine.js.map +1 -0
- package/dist/profiler/workflowTemplates.d.ts +41 -0
- package/dist/profiler/workflowTemplates.js +95 -0
- package/dist/profiler/workflowTemplates.js.map +1 -0
- package/dist/providers/localMemoryProvider.js +3 -2
- package/dist/providers/localMemoryProvider.js.map +1 -1
- package/dist/runtimeConfig.d.ts +11 -0
- package/dist/runtimeConfig.js +27 -0
- package/dist/runtimeConfig.js.map +1 -0
- package/dist/sandboxApi.js +2 -1
- package/dist/sandboxApi.js.map +1 -1
- package/dist/security/auditLog.js +8 -3
- package/dist/security/auditLog.js.map +1 -1
- package/dist/subconscious/blocks.d.ts +43 -0
- package/dist/subconscious/blocks.js +158 -0
- package/dist/subconscious/blocks.js.map +1 -0
- package/dist/subconscious/classifier.d.ts +22 -0
- package/dist/subconscious/classifier.js +118 -0
- package/dist/subconscious/classifier.js.map +1 -0
- package/dist/subconscious/graphEngine.d.ts +65 -0
- package/dist/subconscious/graphEngine.js +234 -0
- package/dist/subconscious/graphEngine.js.map +1 -0
- package/dist/subconscious/index.d.ts +19 -0
- package/dist/subconscious/index.js +20 -0
- package/dist/subconscious/index.js.map +1 -0
- package/dist/subconscious/tools.d.ts +5 -0
- package/dist/subconscious/tools.js +255 -0
- package/dist/subconscious/tools.js.map +1 -0
- package/dist/subconscious/whisperPolicy.d.ts +20 -0
- package/dist/subconscious/whisperPolicy.js +171 -0
- package/dist/subconscious/whisperPolicy.js.map +1 -0
- package/dist/sweep/engine.d.ts +27 -0
- package/dist/sweep/engine.js +244 -0
- package/dist/sweep/engine.js.map +1 -0
- package/dist/sweep/index.d.ts +9 -0
- package/dist/sweep/index.js +8 -0
- package/dist/sweep/index.js.map +1 -0
- package/dist/sweep/sources/github_trending.d.ts +6 -0
- package/dist/sweep/sources/github_trending.js +37 -0
- package/dist/sweep/sources/github_trending.js.map +1 -0
- package/dist/sweep/sources/hackernews.d.ts +7 -0
- package/dist/sweep/sources/hackernews.js +57 -0
- package/dist/sweep/sources/hackernews.js.map +1 -0
- package/dist/sweep/sources/openbb_finance.d.ts +9 -0
- package/dist/sweep/sources/openbb_finance.js +46 -0
- package/dist/sweep/sources/openbb_finance.js.map +1 -0
- package/dist/sweep/sources/producthunt.d.ts +6 -0
- package/dist/sweep/sources/producthunt.js +41 -0
- package/dist/sweep/sources/producthunt.js.map +1 -0
- package/dist/sweep/sources/web_signals.d.ts +7 -0
- package/dist/sweep/sources/web_signals.js +63 -0
- package/dist/sweep/sources/web_signals.js.map +1 -0
- package/dist/sweep/sources/yahoo_finance.d.ts +6 -0
- package/dist/sweep/sources/yahoo_finance.js +47 -0
- package/dist/sweep/sources/yahoo_finance.js.map +1 -0
- package/dist/sweep/types.d.ts +50 -0
- package/dist/sweep/types.js +9 -0
- package/dist/sweep/types.js.map +1 -0
- package/dist/sync/founderEpisodeStore.d.ts +98 -0
- package/dist/sync/founderEpisodeStore.js +230 -0
- package/dist/sync/founderEpisodeStore.js.map +1 -0
- package/dist/sync/hyperloopArchive.d.ts +51 -0
- package/dist/sync/hyperloopArchive.js +153 -0
- package/dist/sync/hyperloopArchive.js.map +1 -0
- package/dist/sync/hyperloopEval.d.ts +123 -0
- package/dist/sync/hyperloopEval.js +389 -0
- package/dist/sync/hyperloopEval.js.map +1 -0
- package/dist/sync/protocol.d.ts +172 -0
- package/dist/sync/protocol.js +9 -0
- package/dist/sync/protocol.js.map +1 -0
- package/dist/sync/sessionMemory.d.ts +47 -0
- package/dist/sync/sessionMemory.js +138 -0
- package/dist/sync/sessionMemory.js.map +1 -0
- package/dist/sync/store.d.ts +384 -0
- package/dist/sync/store.js +1435 -0
- package/dist/sync/store.js.map +1 -0
- package/dist/sync/syncBridgeClient.d.ts +30 -0
- package/dist/sync/syncBridgeClient.js +172 -0
- package/dist/sync/syncBridgeClient.js.map +1 -0
- package/dist/tools/autonomousDeliveryTools.d.ts +2 -0
- package/dist/tools/autonomousDeliveryTools.js +1104 -0
- package/dist/tools/autonomousDeliveryTools.js.map +1 -0
- package/dist/tools/boilerplateTools.js +10 -9
- package/dist/tools/boilerplateTools.js.map +1 -1
- package/dist/tools/claudeCodeIngestTools.d.ts +10 -0
- package/dist/tools/claudeCodeIngestTools.js +347 -0
- package/dist/tools/claudeCodeIngestTools.js.map +1 -0
- package/dist/tools/coreWorkflowTools.d.ts +2 -0
- package/dist/tools/coreWorkflowTools.js +488 -0
- package/dist/tools/coreWorkflowTools.js.map +1 -0
- package/dist/tools/deltaTools.d.ts +15 -0
- package/dist/tools/deltaTools.js +1522 -0
- package/dist/tools/deltaTools.js.map +1 -0
- package/dist/tools/documentationTools.js +2 -1
- package/dist/tools/documentationTools.js.map +1 -1
- package/dist/tools/entityLookupTools.d.ts +14 -0
- package/dist/tools/entityLookupTools.js +159 -0
- package/dist/tools/entityLookupTools.js.map +1 -0
- package/dist/tools/entityTemporalTools.d.ts +12 -0
- package/dist/tools/entityTemporalTools.js +330 -0
- package/dist/tools/entityTemporalTools.js.map +1 -0
- package/dist/tools/founderLocalPipeline.d.ts +215 -0
- package/dist/tools/founderLocalPipeline.js +1516 -2
- package/dist/tools/founderLocalPipeline.js.map +1 -1
- package/dist/tools/founderOperatingModel.d.ts +120 -0
- package/dist/tools/founderOperatingModel.js +469 -0
- package/dist/tools/founderOperatingModel.js.map +1 -0
- package/dist/tools/founderOperatingModelTools.d.ts +2 -0
- package/dist/tools/founderOperatingModelTools.js +169 -0
- package/dist/tools/founderOperatingModelTools.js.map +1 -0
- package/dist/tools/founderStrategicOpsTools.d.ts +2 -0
- package/dist/tools/founderStrategicOpsTools.js +1310 -0
- package/dist/tools/founderStrategicOpsTools.js.map +1 -0
- package/dist/tools/graphifyTools.d.ts +19 -0
- package/dist/tools/graphifyTools.js +375 -0
- package/dist/tools/graphifyTools.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/monteCarloTools.d.ts +16 -0
- package/dist/tools/monteCarloTools.js +225 -0
- package/dist/tools/monteCarloTools.js.map +1 -0
- package/dist/tools/packetCompilerTools.d.ts +12 -0
- package/dist/tools/packetCompilerTools.js +322 -0
- package/dist/tools/packetCompilerTools.js.map +1 -0
- package/dist/tools/planSynthesisTools.d.ts +15 -0
- package/dist/tools/planSynthesisTools.js +455 -0
- package/dist/tools/planSynthesisTools.js.map +1 -0
- package/dist/tools/profilerTools.d.ts +20 -0
- package/dist/tools/profilerTools.js +364 -0
- package/dist/tools/profilerTools.js.map +1 -0
- package/dist/tools/progressiveDiscoveryTools.js +2 -1
- package/dist/tools/progressiveDiscoveryTools.js.map +1 -1
- package/dist/tools/savingsTools.d.ts +11 -0
- package/dist/tools/savingsTools.js +155 -0
- package/dist/tools/savingsTools.js.map +1 -0
- package/dist/tools/scenarioCompilerTools.d.ts +14 -0
- package/dist/tools/scenarioCompilerTools.js +290 -0
- package/dist/tools/scenarioCompilerTools.js.map +1 -0
- package/dist/tools/sharedContextTools.d.ts +2 -0
- package/dist/tools/sharedContextTools.js +423 -0
- package/dist/tools/sharedContextTools.js.map +1 -0
- package/dist/tools/sitemapTools.d.ts +15 -0
- package/dist/tools/sitemapTools.js +560 -0
- package/dist/tools/sitemapTools.js.map +1 -0
- package/dist/tools/sweepTools.d.ts +9 -0
- package/dist/tools/sweepTools.js +112 -0
- package/dist/tools/sweepTools.js.map +1 -0
- package/dist/tools/syncBridgeTools.d.ts +2 -0
- package/dist/tools/syncBridgeTools.js +258 -0
- package/dist/tools/syncBridgeTools.js.map +1 -0
- package/dist/tools/toolRegistry.js +1223 -45
- package/dist/tools/toolRegistry.js.map +1 -1
- package/dist/tools/workspaceTools.d.ts +19 -0
- package/dist/tools/workspaceTools.js +762 -0
- package/dist/tools/workspaceTools.js.map +1 -0
- package/dist/toolsetRegistry.js +162 -3
- package/dist/toolsetRegistry.js.map +1 -1
- package/package.json +39 -38
- package/rules/nodebench-agentic-reliability.md +32 -0
- package/rules/nodebench-analyst-diagnostic.md +25 -0
- package/rules/nodebench-auto-qa.md +31 -0
- package/rules/nodebench-completion-traceability.md +22 -0
- package/rules/nodebench-flywheel-continuous.md +25 -0
- package/rules/nodebench-pre-release-review.md +24 -0
- package/rules/nodebench-qa-dogfood.md +26 -0
- package/rules/nodebench-scenario-testing.md +30 -0
- package/rules/nodebench-self-direction.md +23 -0
- package/rules/nodebench-self-judge-loop.md +24 -0
- package/scripts/install.sh +215 -0
- package/dist/__tests__/analytics.test.d.ts +0 -11
- package/dist/__tests__/analytics.test.js +0 -546
- package/dist/__tests__/analytics.test.js.map +0 -1
- package/dist/__tests__/architectComplex.test.d.ts +0 -1
- package/dist/__tests__/architectComplex.test.js +0 -373
- package/dist/__tests__/architectComplex.test.js.map +0 -1
- package/dist/__tests__/architectSmoke.test.d.ts +0 -1
- package/dist/__tests__/architectSmoke.test.js +0 -92
- package/dist/__tests__/architectSmoke.test.js.map +0 -1
- package/dist/__tests__/audit-registry.d.ts +0 -1
- package/dist/__tests__/audit-registry.js +0 -60
- package/dist/__tests__/audit-registry.js.map +0 -1
- package/dist/__tests__/batchAutopilot.test.d.ts +0 -8
- package/dist/__tests__/batchAutopilot.test.js +0 -218
- package/dist/__tests__/batchAutopilot.test.js.map +0 -1
- package/dist/__tests__/cliSubcommands.test.d.ts +0 -1
- package/dist/__tests__/cliSubcommands.test.js +0 -138
- package/dist/__tests__/cliSubcommands.test.js.map +0 -1
- package/dist/__tests__/comparativeBench.test.d.ts +0 -1
- package/dist/__tests__/comparativeBench.test.js +0 -722
- package/dist/__tests__/comparativeBench.test.js.map +0 -1
- package/dist/__tests__/critterCalibrationEval.d.ts +0 -8
- package/dist/__tests__/critterCalibrationEval.js +0 -370
- package/dist/__tests__/critterCalibrationEval.js.map +0 -1
- package/dist/__tests__/dynamicLoading.test.d.ts +0 -1
- package/dist/__tests__/dynamicLoading.test.js +0 -280
- package/dist/__tests__/dynamicLoading.test.js.map +0 -1
- package/dist/__tests__/embeddingProvider.test.d.ts +0 -1
- package/dist/__tests__/embeddingProvider.test.js +0 -86
- package/dist/__tests__/embeddingProvider.test.js.map +0 -1
- package/dist/__tests__/evalDatasetBench.test.d.ts +0 -1
- package/dist/__tests__/evalDatasetBench.test.js +0 -738
- package/dist/__tests__/evalDatasetBench.test.js.map +0 -1
- package/dist/__tests__/evalHarness.test.d.ts +0 -1
- package/dist/__tests__/evalHarness.test.js +0 -1107
- package/dist/__tests__/evalHarness.test.js.map +0 -1
- package/dist/__tests__/fixtures/bfcl_v3_long_context.sample.json +0 -264
- package/dist/__tests__/fixtures/generateBfclLongContextFixture.d.ts +0 -10
- package/dist/__tests__/fixtures/generateBfclLongContextFixture.js +0 -135
- package/dist/__tests__/fixtures/generateBfclLongContextFixture.js.map +0 -1
- package/dist/__tests__/fixtures/generateSwebenchVerifiedFixture.d.ts +0 -14
- package/dist/__tests__/fixtures/generateSwebenchVerifiedFixture.js +0 -189
- package/dist/__tests__/fixtures/generateSwebenchVerifiedFixture.js.map +0 -1
- package/dist/__tests__/fixtures/generateToolbenchInstructionFixture.d.ts +0 -16
- package/dist/__tests__/fixtures/generateToolbenchInstructionFixture.js +0 -154
- package/dist/__tests__/fixtures/generateToolbenchInstructionFixture.js.map +0 -1
- package/dist/__tests__/fixtures/swebench_verified.sample.json +0 -162
- package/dist/__tests__/fixtures/toolbench_instruction.sample.json +0 -109
- package/dist/__tests__/forecastingDogfood.test.d.ts +0 -9
- package/dist/__tests__/forecastingDogfood.test.js +0 -284
- package/dist/__tests__/forecastingDogfood.test.js.map +0 -1
- package/dist/__tests__/forecastingScoring.test.d.ts +0 -9
- package/dist/__tests__/forecastingScoring.test.js +0 -202
- package/dist/__tests__/forecastingScoring.test.js.map +0 -1
- package/dist/__tests__/gaiaCapabilityAudioEval.test.d.ts +0 -15
- package/dist/__tests__/gaiaCapabilityAudioEval.test.js +0 -265
- package/dist/__tests__/gaiaCapabilityAudioEval.test.js.map +0 -1
- package/dist/__tests__/gaiaCapabilityEval.test.d.ts +0 -14
- package/dist/__tests__/gaiaCapabilityEval.test.js +0 -1259
- package/dist/__tests__/gaiaCapabilityEval.test.js.map +0 -1
- package/dist/__tests__/gaiaCapabilityFilesEval.test.d.ts +0 -15
- package/dist/__tests__/gaiaCapabilityFilesEval.test.js +0 -914
- package/dist/__tests__/gaiaCapabilityFilesEval.test.js.map +0 -1
- package/dist/__tests__/gaiaCapabilityMediaEval.test.d.ts +0 -15
- package/dist/__tests__/gaiaCapabilityMediaEval.test.js +0 -1101
- package/dist/__tests__/gaiaCapabilityMediaEval.test.js.map +0 -1
- package/dist/__tests__/helpers/answerMatch.d.ts +0 -41
- package/dist/__tests__/helpers/answerMatch.js +0 -267
- package/dist/__tests__/helpers/answerMatch.js.map +0 -1
- package/dist/__tests__/helpers/textLlm.d.ts +0 -25
- package/dist/__tests__/helpers/textLlm.js +0 -214
- package/dist/__tests__/helpers/textLlm.js.map +0 -1
- package/dist/__tests__/localDashboard.test.d.ts +0 -1
- package/dist/__tests__/localDashboard.test.js +0 -226
- package/dist/__tests__/localDashboard.test.js.map +0 -1
- package/dist/__tests__/multiHopDogfood.test.d.ts +0 -12
- package/dist/__tests__/multiHopDogfood.test.js +0 -303
- package/dist/__tests__/multiHopDogfood.test.js.map +0 -1
- package/dist/__tests__/openDatasetParallelEval.test.d.ts +0 -7
- package/dist/__tests__/openDatasetParallelEval.test.js +0 -209
- package/dist/__tests__/openDatasetParallelEval.test.js.map +0 -1
- package/dist/__tests__/openDatasetParallelEvalGaia.test.d.ts +0 -7
- package/dist/__tests__/openDatasetParallelEvalGaia.test.js +0 -279
- package/dist/__tests__/openDatasetParallelEvalGaia.test.js.map +0 -1
- package/dist/__tests__/openDatasetParallelEvalSwebench.test.d.ts +0 -7
- package/dist/__tests__/openDatasetParallelEvalSwebench.test.js +0 -220
- package/dist/__tests__/openDatasetParallelEvalSwebench.test.js.map +0 -1
- package/dist/__tests__/openDatasetParallelEvalToolbench.test.d.ts +0 -7
- package/dist/__tests__/openDatasetParallelEvalToolbench.test.js +0 -218
- package/dist/__tests__/openDatasetParallelEvalToolbench.test.js.map +0 -1
- package/dist/__tests__/openDatasetPerfComparison.test.d.ts +0 -10
- package/dist/__tests__/openDatasetPerfComparison.test.js +0 -318
- package/dist/__tests__/openDatasetPerfComparison.test.js.map +0 -1
- package/dist/__tests__/openclawDogfood.test.d.ts +0 -23
- package/dist/__tests__/openclawDogfood.test.js +0 -535
- package/dist/__tests__/openclawDogfood.test.js.map +0 -1
- package/dist/__tests__/openclawMessaging.test.d.ts +0 -14
- package/dist/__tests__/openclawMessaging.test.js +0 -232
- package/dist/__tests__/openclawMessaging.test.js.map +0 -1
- package/dist/__tests__/presetRealWorldBench.test.d.ts +0 -1
- package/dist/__tests__/presetRealWorldBench.test.js +0 -859
- package/dist/__tests__/presetRealWorldBench.test.js.map +0 -1
- package/dist/__tests__/tools.test.d.ts +0 -1
- package/dist/__tests__/tools.test.js +0 -3201
- package/dist/__tests__/tools.test.js.map +0 -1
- package/dist/__tests__/toolsetGatingEval.test.d.ts +0 -1
- package/dist/__tests__/toolsetGatingEval.test.js +0 -1099
- package/dist/__tests__/toolsetGatingEval.test.js.map +0 -1
- package/dist/__tests__/traceabilityDogfood.test.d.ts +0 -12
- package/dist/__tests__/traceabilityDogfood.test.js +0 -241
- package/dist/__tests__/traceabilityDogfood.test.js.map +0 -1
- package/dist/__tests__/webmcpTools.test.d.ts +0 -7
- package/dist/__tests__/webmcpTools.test.js +0 -195
- package/dist/__tests__/webmcpTools.test.js.map +0 -1
- package/dist/benchmarks/testProviderBus.d.ts +0 -7
- package/dist/benchmarks/testProviderBus.js +0 -272
- package/dist/benchmarks/testProviderBus.js.map +0 -1
- package/dist/hooks/postCompaction.d.ts +0 -14
- package/dist/hooks/postCompaction.js +0 -51
- package/dist/hooks/postCompaction.js.map +0 -1
- package/dist/security/__tests__/security.test.d.ts +0 -8
- package/dist/security/__tests__/security.test.js +0 -295
- package/dist/security/__tests__/security.test.js.map +0 -1
- package/dist/tools/documentTools.d.ts +0 -5
- package/dist/tools/documentTools.js +0 -524
- package/dist/tools/documentTools.js.map +0 -1
- package/dist/tools/financialTools.d.ts +0 -10
- package/dist/tools/financialTools.js +0 -403
- package/dist/tools/financialTools.js.map +0 -1
- package/dist/tools/memoryTools.d.ts +0 -5
- package/dist/tools/memoryTools.js +0 -137
- package/dist/tools/memoryTools.js.map +0 -1
- package/dist/tools/planningTools.d.ts +0 -5
- package/dist/tools/planningTools.js +0 -147
- package/dist/tools/planningTools.js.map +0 -1
- package/dist/tools/searchTools.d.ts +0 -5
- package/dist/tools/searchTools.js +0 -145
- package/dist/tools/searchTools.js.map +0 -1
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { EventEmitter } from "node:events";
|
|
2
|
+
import type { DurableObjectKind, SharedContextMessageClass, SharedContextPacket, SharedContextPacketType, SharedContextPeer, SharedContextPeerSummary, SharedContextProduct, SharedContextRole, SharedContextSurface, SharedContextTask, SharedContextTaskStatus, SyncOperationType, SyncQueueOperation, SyncScope } from "./protocol.js";
|
|
3
|
+
export interface DurableObjectInput {
|
|
4
|
+
id?: string;
|
|
5
|
+
kind: DurableObjectKind | string;
|
|
6
|
+
label: string;
|
|
7
|
+
source?: string;
|
|
8
|
+
status?: string;
|
|
9
|
+
metadata?: Record<string, unknown>;
|
|
10
|
+
queueForSync?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ObjectEdgeInput {
|
|
13
|
+
id?: string;
|
|
14
|
+
fromId: string;
|
|
15
|
+
toId: string;
|
|
16
|
+
edgeType: string;
|
|
17
|
+
confidence?: number;
|
|
18
|
+
metadata?: Record<string, unknown>;
|
|
19
|
+
queueForSync?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ExecutionReceiptInput {
|
|
22
|
+
id?: string;
|
|
23
|
+
runId?: string | null;
|
|
24
|
+
traceId?: string | null;
|
|
25
|
+
stepId?: string | null;
|
|
26
|
+
objectId?: string | null;
|
|
27
|
+
toolName?: string | null;
|
|
28
|
+
actionType: string;
|
|
29
|
+
summary: string;
|
|
30
|
+
input?: unknown;
|
|
31
|
+
output?: unknown;
|
|
32
|
+
status?: string;
|
|
33
|
+
metadata?: Record<string, unknown>;
|
|
34
|
+
queueForSync?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface LocalArtifactInput {
|
|
37
|
+
id?: string;
|
|
38
|
+
runId?: string | null;
|
|
39
|
+
objectId?: string | null;
|
|
40
|
+
kind: string;
|
|
41
|
+
path?: string | null;
|
|
42
|
+
summary?: string | null;
|
|
43
|
+
verificationStatus?: string;
|
|
44
|
+
content?: string | null;
|
|
45
|
+
metadata?: Record<string, unknown>;
|
|
46
|
+
queueForSync?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface LocalOutcomeInput {
|
|
49
|
+
id?: string;
|
|
50
|
+
runId?: string | null;
|
|
51
|
+
objectId?: string | null;
|
|
52
|
+
outcomeType: string;
|
|
53
|
+
headline: string;
|
|
54
|
+
userValue?: string | null;
|
|
55
|
+
stakeholderValue?: string | null;
|
|
56
|
+
status?: string;
|
|
57
|
+
evidence?: unknown[];
|
|
58
|
+
metadata?: Record<string, unknown>;
|
|
59
|
+
queueForSync?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface DeviceBindingInput {
|
|
62
|
+
deviceId: string;
|
|
63
|
+
deviceName: string;
|
|
64
|
+
platform?: string | null;
|
|
65
|
+
appVersion?: string | null;
|
|
66
|
+
bridgeUrl?: string | null;
|
|
67
|
+
deviceToken?: string | null;
|
|
68
|
+
bindingStatus?: "unpaired" | "paired" | "revoked";
|
|
69
|
+
metadata?: Record<string, unknown>;
|
|
70
|
+
}
|
|
71
|
+
export interface AccountBindingInput {
|
|
72
|
+
deviceId: string;
|
|
73
|
+
userId: string;
|
|
74
|
+
workspaceId?: string | null;
|
|
75
|
+
scopes: SyncScope[];
|
|
76
|
+
syncEnabled?: boolean;
|
|
77
|
+
syncMode?: "offline" | "connected" | "cloud";
|
|
78
|
+
metadata?: Record<string, unknown>;
|
|
79
|
+
}
|
|
80
|
+
export interface SharedContextPeerInput {
|
|
81
|
+
peerId?: string;
|
|
82
|
+
product: SharedContextProduct;
|
|
83
|
+
tenantId?: string | null;
|
|
84
|
+
workspaceId?: string | null;
|
|
85
|
+
surface: SharedContextSurface;
|
|
86
|
+
role: SharedContextRole;
|
|
87
|
+
capabilities?: string[];
|
|
88
|
+
contextScopes?: string[];
|
|
89
|
+
status?: SharedContextPeer["status"];
|
|
90
|
+
summary?: SharedContextPeerSummary;
|
|
91
|
+
metadata?: Record<string, unknown>;
|
|
92
|
+
queueForSync?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export interface SharedContextPeerFilters {
|
|
95
|
+
product?: SharedContextProduct;
|
|
96
|
+
workspaceId?: string | null;
|
|
97
|
+
tenantId?: string | null;
|
|
98
|
+
role?: SharedContextRole;
|
|
99
|
+
surface?: SharedContextSurface;
|
|
100
|
+
status?: SharedContextPeer["status"];
|
|
101
|
+
capability?: string;
|
|
102
|
+
scope?: string;
|
|
103
|
+
limit?: number;
|
|
104
|
+
}
|
|
105
|
+
export interface SharedContextPacketInput {
|
|
106
|
+
contextId?: string;
|
|
107
|
+
contextType: SharedContextPacketType;
|
|
108
|
+
producerPeerId: string;
|
|
109
|
+
tenantId?: string | null;
|
|
110
|
+
workspaceId?: string | null;
|
|
111
|
+
scope?: string[];
|
|
112
|
+
subject: string;
|
|
113
|
+
summary: string;
|
|
114
|
+
claims?: string[];
|
|
115
|
+
evidenceRefs?: string[];
|
|
116
|
+
stateSnapshot?: Record<string, unknown>;
|
|
117
|
+
timeWindow?: Record<string, unknown>;
|
|
118
|
+
freshness?: Record<string, unknown>;
|
|
119
|
+
permissions?: Record<string, unknown>;
|
|
120
|
+
confidence?: number;
|
|
121
|
+
lineage?: Record<string, unknown>;
|
|
122
|
+
invalidates?: string[];
|
|
123
|
+
nextActions?: string[];
|
|
124
|
+
version?: number;
|
|
125
|
+
status?: SharedContextPacket["status"];
|
|
126
|
+
metadata?: Record<string, unknown>;
|
|
127
|
+
queueForSync?: boolean;
|
|
128
|
+
}
|
|
129
|
+
export interface SharedContextPacketQuery {
|
|
130
|
+
contextType?: SharedContextPacketType;
|
|
131
|
+
producerPeerId?: string;
|
|
132
|
+
requestingPeerId?: string;
|
|
133
|
+
tenantId?: string | null;
|
|
134
|
+
workspaceId?: string | null;
|
|
135
|
+
status?: SharedContextPacket["status"];
|
|
136
|
+
scopeIncludes?: string;
|
|
137
|
+
subjectIncludes?: string;
|
|
138
|
+
limit?: number;
|
|
139
|
+
}
|
|
140
|
+
export interface SharedContextPacketResource {
|
|
141
|
+
packet: SharedContextPacket;
|
|
142
|
+
resourceUri: string;
|
|
143
|
+
pullQuery: {
|
|
144
|
+
contextType: SharedContextPacket["contextType"];
|
|
145
|
+
producerPeerId: string;
|
|
146
|
+
workspaceId?: string;
|
|
147
|
+
tenantId?: string;
|
|
148
|
+
scopeIncludes?: string;
|
|
149
|
+
subjectIncludes: string;
|
|
150
|
+
};
|
|
151
|
+
subscriptionQuery: {
|
|
152
|
+
peerId?: string;
|
|
153
|
+
workspaceId?: string;
|
|
154
|
+
contextType: SharedContextPacket["contextType"];
|
|
155
|
+
producerPeerId: string;
|
|
156
|
+
scopeIncludes?: string;
|
|
157
|
+
subjectIncludes: string;
|
|
158
|
+
eventTypes: string[];
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
export interface SharedContextSubscriptionQuery extends SharedContextPacketQuery {
|
|
162
|
+
peerId?: string;
|
|
163
|
+
eventTypes?: string[];
|
|
164
|
+
taskType?: string;
|
|
165
|
+
messageClass?: SharedContextMessageClass;
|
|
166
|
+
}
|
|
167
|
+
export interface SharedContextSubscriptionManifest {
|
|
168
|
+
peerId?: string;
|
|
169
|
+
snapshotQuery: {
|
|
170
|
+
limit: number;
|
|
171
|
+
peerId?: string;
|
|
172
|
+
workspaceId?: string;
|
|
173
|
+
contextType?: SharedContextPacket["contextType"];
|
|
174
|
+
producerPeerId?: string;
|
|
175
|
+
scopeIncludes?: string;
|
|
176
|
+
subjectIncludes?: string;
|
|
177
|
+
taskType?: string;
|
|
178
|
+
messageClass?: SharedContextMessageClass;
|
|
179
|
+
};
|
|
180
|
+
pullQuery: SharedContextPacketQuery;
|
|
181
|
+
subscriptionQuery: {
|
|
182
|
+
peerId?: string;
|
|
183
|
+
workspaceId?: string;
|
|
184
|
+
contextType?: SharedContextPacket["contextType"];
|
|
185
|
+
producerPeerId?: string;
|
|
186
|
+
scopeIncludes?: string;
|
|
187
|
+
subjectIncludes?: string;
|
|
188
|
+
taskType?: string;
|
|
189
|
+
messageClass?: SharedContextMessageClass;
|
|
190
|
+
eventTypes: string[];
|
|
191
|
+
};
|
|
192
|
+
packetResources: Array<{
|
|
193
|
+
contextId: string;
|
|
194
|
+
contextType: SharedContextPacket["contextType"];
|
|
195
|
+
subject: string;
|
|
196
|
+
resourceUri: string;
|
|
197
|
+
}>;
|
|
198
|
+
}
|
|
199
|
+
export interface SharedContextTaskInput {
|
|
200
|
+
taskId?: string;
|
|
201
|
+
taskType: string;
|
|
202
|
+
proposerPeerId: string;
|
|
203
|
+
assigneePeerId: string;
|
|
204
|
+
status?: SharedContextTaskStatus;
|
|
205
|
+
taskSpec?: Record<string, unknown>;
|
|
206
|
+
inputContextIds?: string[];
|
|
207
|
+
outputContextId?: string | null;
|
|
208
|
+
reason?: string | null;
|
|
209
|
+
metadata?: Record<string, unknown>;
|
|
210
|
+
queueForSync?: boolean;
|
|
211
|
+
}
|
|
212
|
+
export interface SharedContextScopedSnapshotFilters extends SharedContextSubscriptionQuery {
|
|
213
|
+
limit?: number;
|
|
214
|
+
}
|
|
215
|
+
export declare function getSharedContextEventBus(): EventEmitter;
|
|
216
|
+
export declare function upsertDurableObject(input: DurableObjectInput): {
|
|
217
|
+
objectId: string;
|
|
218
|
+
queuedSyncId?: string;
|
|
219
|
+
};
|
|
220
|
+
export declare function linkDurableObjects(input: ObjectEdgeInput): {
|
|
221
|
+
edgeId: string;
|
|
222
|
+
queuedSyncId?: string;
|
|
223
|
+
};
|
|
224
|
+
export declare function recordExecutionReceipt(input: ExecutionReceiptInput): {
|
|
225
|
+
receiptId: string;
|
|
226
|
+
queuedSyncId?: string;
|
|
227
|
+
};
|
|
228
|
+
export declare function recordLocalArtifact(input: LocalArtifactInput): {
|
|
229
|
+
artifactId: string;
|
|
230
|
+
queuedSyncId?: string;
|
|
231
|
+
};
|
|
232
|
+
export declare function recordLocalOutcome(input: LocalOutcomeInput): {
|
|
233
|
+
outcomeId: string;
|
|
234
|
+
queuedSyncId?: string;
|
|
235
|
+
};
|
|
236
|
+
export declare function upsertDeviceBinding(input: DeviceBindingInput): void;
|
|
237
|
+
export declare function bindDeviceToAccount(input: AccountBindingInput): {
|
|
238
|
+
bindingId: string;
|
|
239
|
+
};
|
|
240
|
+
export declare function getActiveAccountBinding(deviceId?: string): null | {
|
|
241
|
+
bindingId: string;
|
|
242
|
+
deviceId: string;
|
|
243
|
+
userId: string;
|
|
244
|
+
workspaceId: string | null;
|
|
245
|
+
scopes: SyncScope[];
|
|
246
|
+
syncEnabled: boolean;
|
|
247
|
+
syncMode: string;
|
|
248
|
+
lastSyncedAt: string | null;
|
|
249
|
+
revokedAt: string | null;
|
|
250
|
+
};
|
|
251
|
+
export declare function getDeviceBinding(deviceId: string): null | {
|
|
252
|
+
deviceId: string;
|
|
253
|
+
deviceName: string;
|
|
254
|
+
platform: string | null;
|
|
255
|
+
appVersion: string | null;
|
|
256
|
+
bridgeUrl: string | null;
|
|
257
|
+
deviceToken: string | null;
|
|
258
|
+
bindingStatus: string;
|
|
259
|
+
lastSeenAt: string | null;
|
|
260
|
+
};
|
|
261
|
+
export declare function enqueueSyncOperation(input: {
|
|
262
|
+
objectId: string | null;
|
|
263
|
+
objectKind: DurableObjectKind | string;
|
|
264
|
+
opType: SyncOperationType | string;
|
|
265
|
+
payload: Record<string, unknown>;
|
|
266
|
+
}): {
|
|
267
|
+
queueId: string;
|
|
268
|
+
payloadHash: string;
|
|
269
|
+
};
|
|
270
|
+
export declare function listPendingSyncOperations(limit?: number): SyncQueueOperation[];
|
|
271
|
+
export declare function markSyncAttempt(queueIds: string[], error?: string): void;
|
|
272
|
+
export declare function acknowledgeSyncOperations(args: {
|
|
273
|
+
queueIds: string[];
|
|
274
|
+
serverReceiptId?: string;
|
|
275
|
+
deviceId?: string;
|
|
276
|
+
userId?: string;
|
|
277
|
+
workspaceId?: string;
|
|
278
|
+
detail?: Record<string, unknown>;
|
|
279
|
+
}): void;
|
|
280
|
+
export declare function failSyncOperations(args: {
|
|
281
|
+
rejected: Array<{
|
|
282
|
+
id: string;
|
|
283
|
+
reason: string;
|
|
284
|
+
}>;
|
|
285
|
+
deviceId?: string;
|
|
286
|
+
userId?: string;
|
|
287
|
+
workspaceId?: string;
|
|
288
|
+
}): void;
|
|
289
|
+
export declare function getSyncBridgeStatus(deviceId?: string): {
|
|
290
|
+
mode: "offline" | "connected";
|
|
291
|
+
activeBinding: ReturnType<typeof getActiveAccountBinding>;
|
|
292
|
+
pendingCount: number;
|
|
293
|
+
retryCount: number;
|
|
294
|
+
acknowledgedCount: number;
|
|
295
|
+
lastAcknowledgedAt: string | null;
|
|
296
|
+
};
|
|
297
|
+
export declare function registerSharedContextPeer(input: SharedContextPeerInput): {
|
|
298
|
+
peerId: string;
|
|
299
|
+
queuedSyncId?: string;
|
|
300
|
+
};
|
|
301
|
+
export declare function heartbeatSharedContextPeer(peerId: string, summary?: SharedContextPeerSummary): {
|
|
302
|
+
peerId: string;
|
|
303
|
+
lastHeartbeatAt: string;
|
|
304
|
+
};
|
|
305
|
+
export declare function listSharedContextPeers(filters?: SharedContextPeerFilters): SharedContextPeer[];
|
|
306
|
+
export declare function getSharedContextPeer(peerId: string): SharedContextPeer | null;
|
|
307
|
+
export declare function getSharedContextPacket(contextId: string, requestingPeerId?: string): SharedContextPacket | null;
|
|
308
|
+
export declare function buildSharedContextPacketResource(packet: SharedContextPacket, requestingPeerId?: string): SharedContextPacketResource;
|
|
309
|
+
export declare function getSharedContextPacketResource(contextId: string, requestingPeerId?: string): SharedContextPacketResource | null;
|
|
310
|
+
export declare function buildSharedContextSubscriptionManifest(query?: SharedContextSubscriptionQuery): SharedContextSubscriptionManifest;
|
|
311
|
+
export declare function publishSharedContextPacket(input: SharedContextPacketInput): {
|
|
312
|
+
contextId: string;
|
|
313
|
+
queuedSyncId?: string;
|
|
314
|
+
};
|
|
315
|
+
export declare function pullSharedContextPackets(query?: SharedContextPacketQuery): SharedContextPacket[];
|
|
316
|
+
export declare function acknowledgeSharedContextPacket(contextId: string, peerId: string, detail?: Record<string, unknown>): {
|
|
317
|
+
ackId: string;
|
|
318
|
+
queuedSyncId?: string;
|
|
319
|
+
};
|
|
320
|
+
export declare function invalidateSharedContextPacket(contextId: string, producerPeerId: string, reason: string, invalidates?: string[]): {
|
|
321
|
+
contextId: string;
|
|
322
|
+
queuedSyncId: string;
|
|
323
|
+
};
|
|
324
|
+
export declare function sendSharedContextMessage(input: {
|
|
325
|
+
fromPeerId: string;
|
|
326
|
+
toPeerId: string;
|
|
327
|
+
messageClass: SharedContextMessageClass;
|
|
328
|
+
payload: Record<string, unknown>;
|
|
329
|
+
queueForSync?: boolean;
|
|
330
|
+
}): {
|
|
331
|
+
messageId: string;
|
|
332
|
+
queuedSyncId?: string;
|
|
333
|
+
};
|
|
334
|
+
export declare function listSharedContextMessages(peerId: string, unreadOnly?: boolean): Array<{
|
|
335
|
+
messageId: string;
|
|
336
|
+
fromPeerId: string;
|
|
337
|
+
toPeerId: string;
|
|
338
|
+
messageClass: SharedContextMessageClass;
|
|
339
|
+
payload: Record<string, unknown>;
|
|
340
|
+
status: string;
|
|
341
|
+
createdAt: string;
|
|
342
|
+
}>;
|
|
343
|
+
export declare function proposeSharedContextTask(input: SharedContextTaskInput): {
|
|
344
|
+
taskId: string;
|
|
345
|
+
queuedSyncId?: string;
|
|
346
|
+
};
|
|
347
|
+
export declare function acceptSharedContextTask(taskId: string, peerId: string): {
|
|
348
|
+
task: SharedContextTask;
|
|
349
|
+
queuedSyncId: string;
|
|
350
|
+
};
|
|
351
|
+
export declare function rejectSharedContextTask(taskId: string, peerId: string, reason: string): {
|
|
352
|
+
task: SharedContextTask;
|
|
353
|
+
queuedSyncId: string;
|
|
354
|
+
};
|
|
355
|
+
export declare function completeSharedContextTask(taskId: string, peerId: string, outputContextId?: string | null): {
|
|
356
|
+
task: SharedContextTask;
|
|
357
|
+
queuedSyncId: string;
|
|
358
|
+
};
|
|
359
|
+
export declare function escalateSharedContextTask(taskId: string, peerId: string, reason: string, outputContextId?: string | null): {
|
|
360
|
+
task: SharedContextTask;
|
|
361
|
+
queuedSyncId: string;
|
|
362
|
+
};
|
|
363
|
+
export declare function getSharedContextSnapshot(limit?: number, requestingPeerId?: string): {
|
|
364
|
+
peers: SharedContextPeer[];
|
|
365
|
+
recentPackets: SharedContextPacket[];
|
|
366
|
+
recentTasks: SharedContextTask[];
|
|
367
|
+
recentMessages: Array<{
|
|
368
|
+
messageId: string;
|
|
369
|
+
fromPeerId: string;
|
|
370
|
+
toPeerId: string;
|
|
371
|
+
messageClass: SharedContextMessageClass;
|
|
372
|
+
payload: Record<string, unknown>;
|
|
373
|
+
status: string;
|
|
374
|
+
createdAt: string;
|
|
375
|
+
}>;
|
|
376
|
+
counts: {
|
|
377
|
+
activePeers: number;
|
|
378
|
+
activePackets: number;
|
|
379
|
+
invalidatedPackets: number;
|
|
380
|
+
openTasks: number;
|
|
381
|
+
unreadMessages: number;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
export declare function getSharedContextScopedSnapshot(filters?: SharedContextScopedSnapshotFilters): ReturnType<typeof getSharedContextSnapshot>;
|