pi-harness-runtime 1.1.398 → 1.1.402
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/AGENTS.md +44 -2
- package/CHANGELOG.md +21 -0
- package/RULES.md +28 -0
- package/harness/agent-handoff.ts +2 -3
- package/harness/autonomous-review.ts +1 -1
- package/harness/blackboard.ts +2 -3
- package/harness/context-compact-orchestrator.ts +1 -1
- package/harness/context-window-manager.ts +2 -2
- package/harness/e2e/playwright-runner.ts +6 -4
- package/harness/herdr-agents.ts +1 -1
- package/harness/job-state-machine.ts +1 -1
- package/harness/langchain/daemon.ts +3 -3
- package/harness/langchain/graph.ts +2 -2
- package/harness/langchain/ping-pong-middleware.ts +2 -2
- package/harness/loop-code-agent.ts +6 -4
- package/harness/loop-controller.ts +1 -1
- package/harness/loop-review-agent.ts +1 -1
- package/harness/loop-types.ts +1 -1
- package/harness/master-planner.ts +1 -1
- package/harness/project-detector/detector.ts +1 -2
- package/harness/repair-engine.ts +2 -4
- package/harness/service-diagnostics.ts +1 -1
- package/harness/skill-sync.ts +3 -3
- package/index.ts +276 -55
- package/mirror.ts +1 -1
- package/package.json +5 -3
- package/packages/a2a-adapter/dist/discovery.d.ts.map +1 -1
- package/packages/a2a-adapter/dist/discovery.js +0 -1
- package/packages/a2a-adapter/dist/discovery.js.map +1 -1
- package/packages/a2a-adapter/package.json +1 -1
- package/packages/a2a-adapter/src/discovery.ts +0 -1
- package/packages/agent-policy/package.json +1 -1
- package/packages/architecture-generator/package.json +1 -1
- package/packages/auth/dist/index.d.ts +9 -0
- package/packages/auth/dist/index.d.ts.map +1 -0
- package/packages/auth/dist/index.js +9 -0
- package/packages/auth/dist/index.js.map +1 -0
- package/packages/auth/package.json +1 -1
- package/packages/auth/src/index.ts +9 -0
- package/packages/autonomous-refactor/package.json +1 -1
- package/packages/autonomous-runtime/package.json +1 -1
- package/packages/cache-strategy/package.json +1 -1
- package/packages/capability-registry/package.json +1 -1
- package/packages/checkpoint/package.json +1 -1
- package/packages/cli-plugin-sdk/package.json +1 -1
- package/packages/clipboard/package.json +1 -1
- package/packages/clipboard-plugin/package.json +1 -1
- package/packages/code-generation/package.json +1 -1
- package/packages/code-review/package.json +1 -1
- package/packages/codex-adapter/package.json +1 -1
- package/packages/codex-watcher/package.json +1 -1
- package/packages/config-capture/dist/index.d.ts +52 -0
- package/packages/config-capture/dist/index.d.ts.map +1 -0
- package/packages/config-capture/dist/index.js +261 -0
- package/packages/config-capture/dist/index.js.map +1 -0
- package/packages/config-capture/package.json +1 -1
- package/packages/connection-runtime/package.json +1 -1
- package/packages/context-compiler/package.json +1 -1
- package/packages/context-discovery/package.json +1 -1
- package/packages/context-manager/package.json +1 -1
- package/packages/contracts/package.json +1 -1
- package/packages/cookie-sanitizer/package.json +1 -1
- package/packages/cost-optimizer/package.json +1 -1
- package/packages/dependency-analyzer/package.json +1 -1
- package/packages/django-plugin/package.json +1 -1
- package/packages/doc-generator/package.json +1 -1
- package/packages/durable-review/package.json +1 -1
- package/packages/e2e-tester/package.json +1 -1
- package/packages/evaluation-engine/package.json +1 -1
- package/packages/evaluation-runner/package.json +1 -1
- package/packages/event-bus/package.json +1 -1
- package/packages/event-sink/package.json +1 -1
- package/packages/event-store/package.json +1 -1
- package/packages/experience-replay/package.json +1 -1
- package/packages/feedback-collector/package.json +1 -1
- package/packages/file-copy-helper/dist/extension.d.ts +15 -0
- package/packages/file-copy-helper/dist/extension.d.ts.map +1 -0
- package/packages/file-copy-helper/dist/extension.debug.d.ts +15 -0
- package/packages/file-copy-helper/dist/extension.debug.d.ts.map +1 -0
- package/packages/file-copy-helper/dist/extension.debug.js +215 -0
- package/packages/file-copy-helper/dist/extension.debug.js.map +1 -0
- package/packages/file-copy-helper/dist/extension.js +222 -0
- package/packages/file-copy-helper/dist/extension.js.map +1 -0
- package/packages/file-copy-helper/dist/index.d.ts +3 -0
- package/packages/file-copy-helper/dist/index.d.ts.map +1 -0
- package/packages/file-copy-helper/dist/index.js +3 -0
- package/packages/file-copy-helper/dist/index.js.map +1 -0
- package/packages/file-copy-helper/dist/intent-detector.d.ts +21 -0
- package/packages/file-copy-helper/dist/intent-detector.d.ts.map +1 -0
- package/packages/file-copy-helper/dist/intent-detector.js +348 -0
- package/packages/file-copy-helper/dist/intent-detector.js.map +1 -0
- package/packages/file-copy-helper/package.json +1 -1
- package/packages/framework-detector/package.json +1 -1
- package/packages/framework-plugin-sdk/package.json +1 -1
- package/packages/frappe-plugin/package.json +1 -1
- package/packages/generic-web-plugin/package.json +1 -1
- package/packages/health-monitor/package.json +1 -1
- package/packages/intent-analyzer/package.json +1 -1
- package/packages/jev-judge/dist/auto-continue.d.ts +161 -2
- package/packages/jev-judge/dist/auto-continue.d.ts.map +1 -1
- package/packages/jev-judge/dist/auto-continue.js +267 -22
- package/packages/jev-judge/dist/auto-continue.js.map +1 -1
- package/packages/jev-judge/dist/index.d.ts +2 -0
- package/packages/jev-judge/dist/index.d.ts.map +1 -1
- package/packages/jev-judge/dist/index.js +2 -0
- package/packages/jev-judge/dist/index.js.map +1 -1
- package/packages/jev-judge/dist/question-risk.d.ts +50 -0
- package/packages/jev-judge/dist/question-risk.d.ts.map +1 -0
- package/packages/jev-judge/dist/question-risk.js +100 -0
- package/packages/jev-judge/dist/question-risk.js.map +1 -0
- package/packages/jev-judge/package.json +1 -1
- package/packages/jev-judge/src/auto-continue.ts +426 -29
- package/packages/jev-judge/src/index.ts +4 -0
- package/packages/jev-judge/src/question-risk.ts +151 -0
- package/packages/jev-judge/tests/auto-continue-context.test.ts +221 -0
- package/packages/jev-judge/tests/outcome-application.test.ts +132 -0
- package/packages/jev-judge/tests/question-risk.test.ts +116 -0
- package/packages/knowledge-graph/package.json +1 -1
- package/packages/knowledge-retrieval/package.json +1 -1
- package/packages/laravel-plugin/package.json +1 -1
- package/packages/learning-engine/package.json +1 -1
- package/packages/logging/README.md +36 -3
- package/packages/logging/dist/config.d.ts +7 -0
- package/packages/logging/dist/config.d.ts.map +1 -1
- package/packages/logging/dist/config.js +14 -0
- package/packages/logging/dist/config.js.map +1 -1
- package/packages/logging/dist/incidents/schema.d.ts +111 -0
- package/packages/logging/dist/incidents/schema.d.ts.map +1 -0
- package/packages/logging/dist/incidents/schema.js +0 -0
- package/packages/logging/dist/incidents/schema.js.map +1 -0
- package/packages/logging/dist/index.d.ts +2 -0
- package/packages/logging/dist/index.d.ts.map +1 -1
- package/packages/logging/dist/index.js +2 -0
- package/packages/logging/dist/index.js.map +1 -1
- package/packages/logging/dist/server/http.d.ts +4 -3
- package/packages/logging/dist/server/http.d.ts.map +1 -1
- package/packages/logging/dist/server/http.js +35 -3
- package/packages/logging/dist/server/http.js.map +1 -1
- package/packages/logging/dist/server/incident-qdrant.d.ts +83 -0
- package/packages/logging/dist/server/incident-qdrant.d.ts.map +1 -0
- package/packages/logging/dist/server/incident-qdrant.js +129 -0
- package/packages/logging/dist/server/incident-qdrant.js.map +1 -0
- package/packages/logging/dist/server/incident-store.d.ts +76 -0
- package/packages/logging/dist/server/incident-store.d.ts.map +1 -0
- package/packages/logging/dist/server/incident-store.js +157 -0
- package/packages/logging/dist/server/incident-store.js.map +1 -0
- package/packages/logging/dist/server/index.d.ts +4 -0
- package/packages/logging/dist/server/index.d.ts.map +1 -1
- package/packages/logging/dist/server/index.js +2 -0
- package/packages/logging/dist/server/index.js.map +1 -1
- package/packages/logging/dist/server/service.d.ts +33 -0
- package/packages/logging/dist/server/service.d.ts.map +1 -1
- package/packages/logging/dist/server/service.js +63 -0
- package/packages/logging/dist/server/service.js.map +1 -1
- package/packages/logging/dist/shipper.d.ts +74 -3
- package/packages/logging/dist/shipper.d.ts.map +1 -1
- package/packages/logging/dist/shipper.js +88 -5
- package/packages/logging/dist/shipper.js.map +1 -1
- package/packages/logging/dist/singleton.d.ts.map +1 -1
- package/packages/logging/dist/singleton.js +1 -0
- package/packages/logging/dist/singleton.js.map +1 -1
- package/packages/logging/package.json +1 -1
- package/packages/logging/src/config.ts +22 -0
- package/packages/logging/src/incidents/schema.ts +0 -0
- package/packages/logging/src/index.ts +17 -0
- package/packages/logging/src/server/http.ts +42 -3
- package/packages/logging/src/server/incident-qdrant.ts +177 -0
- package/packages/logging/src/server/incident-store.ts +192 -0
- package/packages/logging/src/server/index.ts +21 -0
- package/packages/logging/src/server/service.ts +79 -0
- package/packages/logging/src/shipper.ts +120 -5
- package/packages/logging/src/singleton.ts +1 -0
- package/packages/logging/test/fanout.test.ts +186 -0
- package/packages/logging/test/incidents.test.ts +404 -0
- package/packages/mcp-adapter/package.json +1 -1
- package/packages/memory-engine/package.json +1 -1
- package/packages/milestone-manager/package.json +1 -1
- package/packages/model-registry/package.json +1 -1
- package/packages/nextjs-plugin/package.json +1 -1
- package/packages/notification/dist/adapters/detail-format.d.ts +10 -2
- package/packages/notification/dist/adapters/detail-format.d.ts.map +1 -1
- package/packages/notification/dist/adapters/detail-format.js +39 -0
- package/packages/notification/dist/adapters/detail-format.js.map +1 -1
- package/packages/notification/dist/adapters/line-adapter.d.ts +33 -0
- package/packages/notification/dist/adapters/line-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/line-adapter.js +84 -7
- package/packages/notification/dist/adapters/line-adapter.js.map +1 -1
- package/packages/notification/dist/adapters/telegram-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/telegram-adapter.js +6 -2
- package/packages/notification/dist/adapters/telegram-adapter.js.map +1 -1
- package/packages/notification/dist/notification-center.d.ts.map +1 -1
- package/packages/notification/dist/notification-center.js +59 -7
- package/packages/notification/dist/notification-center.js.map +1 -1
- package/packages/notification/dist/pending-question.d.ts +69 -2
- package/packages/notification/dist/pending-question.d.ts.map +1 -1
- package/packages/notification/dist/pending-question.js +88 -2
- package/packages/notification/dist/pending-question.js.map +1 -1
- package/packages/notification/dist/types.d.ts +18 -0
- package/packages/notification/dist/types.d.ts.map +1 -1
- package/packages/notification/package.json +1 -1
- package/packages/notification/src/adapters/detail-format.ts +42 -2
- package/packages/notification/src/adapters/line-adapter.ts +94 -7
- package/packages/notification/src/adapters/telegram-adapter.ts +6 -2
- package/packages/notification/src/notification-center.ts +65 -8
- package/packages/notification/src/pending-question.ts +160 -8
- package/packages/notification/src/types.ts +18 -0
- package/packages/notification/test/approval-payload.test.ts +269 -0
- package/packages/notification/test/pending-question-lifecycle.test.ts +195 -0
- package/packages/observability/package.json +1 -1
- package/packages/okf-indexer/dist/index.d.ts +9 -0
- package/packages/okf-indexer/dist/index.d.ts.map +1 -0
- package/packages/okf-indexer/dist/index.js +9 -0
- package/packages/okf-indexer/dist/index.js.map +1 -0
- package/packages/okf-indexer/package.json +1 -1
- package/packages/okf-indexer/src/index.ts +9 -0
- package/packages/paperclip-integration/package.json +1 -1
- package/packages/performance-optimizer/package.json +1 -1
- package/packages/permission-mode/package.json +1 -1
- package/packages/privilege-broker/package.json +1 -1
- package/packages/project-analyzer/package.json +1 -1
- package/packages/project-bootstrap/package.json +1 -1
- package/packages/projection-engine/package.json +1 -1
- package/packages/prompt-compiler/package.json +1 -1
- package/packages/prompt-versioning/package.json +1 -1
- package/packages/provider-adapter-sdk/package.json +1 -1
- package/packages/provider-router/dist/provider-router.d.ts.map +1 -1
- package/packages/provider-router/dist/types.d.ts +2 -2
- package/packages/provider-router/dist/types.d.ts.map +1 -1
- package/packages/provider-router/dist/types.js +1 -1
- package/packages/provider-router/package.json +1 -1
- package/packages/provider-router/src/types.ts +2 -2
- package/packages/provider-selector/package.json +1 -1
- package/packages/providers/package.json +1 -1
- package/packages/qdrant-skills/package.json +1 -1
- package/packages/quota-manager/package.json +1 -1
- package/packages/rate-limiter/package.json +1 -1
- package/packages/react-vite-plugin/package.json +1 -1
- package/packages/relay/package.json +1 -1
- package/packages/release-manager/package.json +1 -1
- package/packages/requirement-compiler/package.json +1 -1
- package/packages/runtime/package.json +1 -1
- package/packages/scheduler/dist/index.d.ts +9 -0
- package/packages/scheduler/dist/index.d.ts.map +1 -0
- package/packages/scheduler/dist/index.js +9 -0
- package/packages/scheduler/dist/index.js.map +1 -0
- package/packages/scheduler/dist/scheduler.d.ts +17 -0
- package/packages/scheduler/dist/scheduler.d.ts.map +1 -0
- package/packages/scheduler/dist/scheduler.js +41 -0
- package/packages/scheduler/dist/scheduler.js.map +1 -0
- package/packages/scheduler/package.json +1 -1
- package/packages/scheduler/src/index.ts +9 -0
- package/packages/scheduler-adapter/package.json +1 -1
- package/packages/session/package.json +1 -1
- package/packages/session-api/package.json +1 -1
- package/packages/session-export/package.json +1 -1
- package/packages/shared-context/dist/index.d.ts +7 -0
- package/packages/shared-context/dist/index.d.ts.map +1 -0
- package/packages/shared-context/dist/index.js +7 -0
- package/packages/shared-context/dist/index.js.map +1 -0
- package/packages/shared-context/dist/shared-context.d.ts +12 -0
- package/packages/shared-context/dist/shared-context.d.ts.map +1 -0
- package/packages/shared-context/dist/shared-context.js +39 -0
- package/packages/shared-context/dist/shared-context.js.map +1 -0
- package/packages/shared-context/package.json +1 -1
- package/packages/skill-mcp-client/dist/client.d.ts +56 -0
- package/packages/skill-mcp-client/dist/client.d.ts.map +1 -0
- package/packages/skill-mcp-client/dist/client.js +101 -0
- package/packages/skill-mcp-client/dist/client.js.map +1 -0
- package/packages/skill-mcp-client/dist/errors.d.ts +44 -0
- package/packages/skill-mcp-client/dist/errors.d.ts.map +1 -0
- package/packages/skill-mcp-client/dist/errors.js +68 -0
- package/packages/skill-mcp-client/dist/errors.js.map +1 -0
- package/packages/skill-mcp-client/dist/index.d.ts +9 -0
- package/packages/skill-mcp-client/dist/index.d.ts.map +1 -0
- package/packages/skill-mcp-client/dist/index.js +9 -0
- package/packages/skill-mcp-client/dist/index.js.map +1 -0
- package/packages/skill-mcp-client/dist/types.d.ts +106 -0
- package/packages/skill-mcp-client/dist/types.d.ts.map +1 -0
- package/packages/skill-mcp-client/dist/types.js +14 -0
- package/packages/skill-mcp-client/dist/types.js.map +1 -0
- package/packages/skill-mcp-client/package.json +1 -1
- package/packages/skill-registry/package.json +1 -1
- package/packages/skills/package.json +1 -5
- package/packages/sprint-planner/package.json +1 -1
- package/packages/subscription-engine/package.json +1 -1
- package/packages/task-compiler/package.json +1 -1
- package/packages/telegram/package.json +1 -1
- package/packages/telegram/src/agent-messages.d.ts +28 -0
- package/packages/telegram/src/agent-messages.js +90 -0
- package/packages/telegram/src/bindings.d.ts +296 -0
- package/packages/telegram/src/bindings.js +1086 -0
- package/packages/telegram/src/bus.d.ts +759 -0
- package/packages/telegram/src/bus.js +2732 -0
- package/packages/telegram/src/commands.d.ts +761 -0
- package/packages/telegram/src/commands.js +2622 -0
- package/packages/telegram/src/config.d.ts +222 -0
- package/packages/telegram/src/config.js +844 -0
- package/packages/telegram/src/delivery.d.ts +161 -0
- package/packages/telegram/src/delivery.js +550 -0
- package/packages/telegram/src/extension.d.ts +7 -0
- package/packages/telegram/src/extension.js +2444 -0
- package/packages/telegram/src/inbound.d.ts +94 -0
- package/packages/telegram/src/inbound.js +478 -0
- package/packages/telegram/src/index.d.ts +6 -0
- package/packages/telegram/src/index.js +6 -0
- package/packages/telegram/src/keyboard.d.ts +21 -0
- package/packages/telegram/src/keyboard.js +37 -0
- package/packages/telegram/src/lifecycle.d.ts +210 -0
- package/packages/telegram/src/lifecycle.js +538 -0
- package/packages/telegram/src/pi.d.ts +76 -0
- package/packages/telegram/src/pi.js +130 -0
- package/packages/telegram/src/polling.d.ts +332 -0
- package/packages/telegram/src/polling.js +1219 -0
- package/packages/telegram/src/replies.d.ts +210 -0
- package/packages/telegram/src/replies.js +752 -0
- package/packages/telegram/src/routing.d.ts +388 -0
- package/packages/telegram/src/routing.js +7886 -0
- package/packages/telegram/src/runtime.d.ts +159 -0
- package/packages/telegram/src/runtime.js +351 -0
- package/packages/telegram/src/telegram-api.d.ts +564 -0
- package/packages/telegram/src/telegram-api.js +1332 -0
- package/packages/telegram/src/turns.d.ts +108 -0
- package/packages/telegram/src/turns.js +482 -0
- package/packages/telegram/src/updates.d.ts +1545 -0
- package/packages/telegram/src/updates.js +6420 -0
- package/packages/tencentdb-memory/package.json +1 -1
- package/packages/tencentdb-sync/package.json +1 -1
- package/packages/test-data-generator/package.json +1 -1
- package/packages/test-generator/package.json +1 -1
- package/packages/todo-bd-sync/dist/detector.d.ts +54 -0
- package/packages/todo-bd-sync/dist/detector.d.ts.map +1 -0
- package/packages/todo-bd-sync/dist/detector.js +132 -0
- package/packages/todo-bd-sync/dist/detector.js.map +1 -0
- package/packages/todo-bd-sync/dist/extension.d.ts +30 -0
- package/packages/todo-bd-sync/dist/extension.d.ts.map +1 -0
- package/packages/todo-bd-sync/dist/extension.js +35 -0
- package/packages/todo-bd-sync/dist/extension.js.map +1 -0
- package/packages/todo-bd-sync/dist/index.d.ts +87 -0
- package/packages/todo-bd-sync/dist/index.d.ts.map +1 -0
- package/packages/todo-bd-sync/dist/index.js +296 -0
- package/packages/todo-bd-sync/dist/index.js.map +1 -0
- package/packages/todo-bd-sync/dist/sync.d.ts +72 -0
- package/packages/todo-bd-sync/dist/sync.d.ts.map +1 -0
- package/packages/todo-bd-sync/dist/sync.js +290 -0
- package/packages/todo-bd-sync/dist/sync.js.map +1 -0
- package/packages/todo-bd-sync/dist/task-analyzer.d.ts +49 -0
- package/packages/todo-bd-sync/dist/task-analyzer.d.ts.map +1 -0
- package/packages/todo-bd-sync/dist/task-analyzer.js +240 -0
- package/packages/todo-bd-sync/dist/task-analyzer.js.map +1 -0
- package/packages/todo-bd-sync/dist/todo-reminder.d.ts +126 -0
- package/packages/todo-bd-sync/dist/todo-reminder.d.ts.map +1 -0
- package/packages/todo-bd-sync/dist/todo-reminder.js +329 -0
- package/packages/todo-bd-sync/dist/todo-reminder.js.map +1 -0
- package/packages/todo-bd-sync/dist/types.d.ts +65 -0
- package/packages/todo-bd-sync/dist/types.d.ts.map +1 -0
- package/packages/todo-bd-sync/dist/types.js +67 -0
- package/packages/todo-bd-sync/dist/types.js.map +1 -0
- package/packages/todo-bd-sync/package.json +1 -1
- package/packages/token-estimation/dist/index.d.ts +94 -0
- package/packages/token-estimation/dist/index.d.ts.map +1 -0
- package/packages/token-estimation/dist/index.js +115 -0
- package/packages/token-estimation/dist/index.js.map +1 -0
- package/packages/token-estimation/package.json +1 -1
- package/packages/token-optimizer/package.json +1 -1
- package/packages/trajectory/package.json +1 -1
- package/packages/tui/package.json +1 -1
- package/packages/types/dist/ai-providers.d.ts +36 -0
- package/packages/types/dist/ai-providers.d.ts.map +1 -0
- package/packages/types/dist/ai-providers.js +66 -0
- package/packages/types/dist/ai-providers.js.map +1 -0
- package/packages/types/dist/index.d.ts +12 -0
- package/packages/types/dist/index.d.ts.map +1 -0
- package/packages/types/dist/index.js +12 -0
- package/packages/types/dist/index.js.map +1 -0
- package/packages/types/package.json +5 -5
- package/packages/types/src/index.ts +12 -0
- package/packages/voice-api/package.json +1 -1
- package/packages/webmcp-tester/package.json +1 -1
- package/packages/wiki/package.json +1 -1
- package/packages/workflow-events/package.json +1 -1
- package/packages/workspace-scanner/package.json +1 -1
- package/packages/worktree/package.json +1 -1
- package/packages/worktree/worktree.ts +1 -1
- package/packages/write-review/package.json +1 -1
- package/renderer.ts +1 -1
- package/scripts/build-packages.ts +162 -0
- package/scripts/relay-client.ts +2 -2
- package/scripts/typecheck-packages.mjs +3 -3
- package/scripts/unified-webhook-server.ts +22 -10
- package/scripts/verify-package-contents.ts +345 -0
- package/scripts/ws-server.ts +1 -1
- package/tracker.ts +1 -1
- package/harness/browser-scrapers/base-browser-scraper.d.ts +0 -91
- package/harness/browser-scrapers/chrome-profile-manager.d.ts +0 -80
- package/harness/browser-scrapers/codex-browser-scraper.d.ts +0 -60
- package/harness/browser-scrapers/index.d.ts +0 -29
- package/harness/browser-scrapers/zai-browser-scraper.d.ts +0 -79
- package/harness/e2e/browser-scrapers/base-browser-scraper.d.ts +0 -92
- package/harness/e2e/browser-scrapers/chrome-profile-manager.d.ts +0 -81
- package/harness/e2e/browser-scrapers/codex-browser-scraper.d.ts +0 -61
- package/harness/e2e/browser-scrapers/index.d.ts +0 -30
- package/harness/e2e/browser-scrapers/zai-browser-scraper.d.ts +0 -80
- package/harness/langchain/agents.d.ts +0 -143
- package/harness/langchain/agents.test.d.ts +0 -2
- package/harness/langchain/checkpointer.d.ts +0 -48
- package/harness/langchain/checkpointer.test.d.ts +0 -8
- package/harness/langchain/cron-cli.d.ts +0 -12
- package/harness/langchain/daemon.d.ts +0 -161
- package/harness/langchain/daemon.test.d.ts +0 -11
- package/harness/langchain/file-tools.d.ts +0 -97
- package/harness/langchain/graph.d.ts +0 -706
- package/harness/langchain/model-router.d.ts +0 -63
- package/harness/langchain/model-router.test.d.ts +0 -2
- package/harness/langchain/models.d.ts +0 -72
- package/harness/langchain/ping-pong-middleware.d.ts +0 -28
- package/harness/langchain/ping-pong-middleware.test.d.ts +0 -2
- package/harness/langchain/run.d.ts +0 -15
- package/harness/langchain/scoreboard.test.d.ts +0 -13
- package/harness/langchain/status-line.d.ts +0 -91
- package/harness/langchain/status-line.test.d.ts +0 -8
- package/harness/langchain/surge.d.ts +0 -111
- package/harness/langchain/surge.test.d.ts +0 -10
- package/harness/langchain/widget.d.ts +0 -105
- package/harness/langchain/widget.test.d.ts +0 -8
- package/packages/autonomous-runtime/dist/worker.d.ts +0 -63
- package/packages/autonomous-runtime/dist/worker.js +0 -133
- package/packages/capability-registry/src/types.d.ts +0 -47
- package/packages/clipboard/dist/clipboard.d.ts +0 -11
- package/packages/clipboard/dist/clipboard.js +0 -40
- package/packages/clipboard/dist/index.d.ts +0 -2
- package/packages/clipboard/dist/index.js +0 -2
- package/packages/clipboard/dist/types.d.ts +0 -13
- package/packages/clipboard/dist/types.js +0 -5
- package/packages/context-discovery/dist/discover.d.ts +0 -3
- package/packages/context-discovery/dist/discover.js +0 -42
- package/packages/context-discovery/dist/discovery.d.ts +0 -28
- package/packages/context-discovery/dist/discovery.js +0 -21
- package/packages/context-discovery/dist/index.d.ts +0 -3
- package/packages/context-discovery/dist/index.js +0 -2
- package/packages/context-discovery/dist/types.d.ts +0 -16
- package/packages/context-discovery/dist/types.js +0 -2
- package/packages/event-bus/dist/bus.d.ts +0 -15
- package/packages/event-bus/dist/bus.js +0 -90
- package/packages/event-bus/dist/index.d.ts +0 -4
- package/packages/event-bus/dist/index.js +0 -3
- package/packages/event-bus/dist/test/bus.test.js +0 -52
- package/packages/event-bus/dist/types.d.ts +0 -27
- package/packages/event-bus/dist/types.js +0 -10
- package/packages/event-store/dist/index.d.ts +0 -3
- package/packages/event-store/dist/index.js +0 -2
- package/packages/event-store/dist/store.d.ts +0 -15
- package/packages/event-store/dist/store.js +0 -131
- package/packages/event-store/dist/test/store.test.js +0 -57
- package/packages/event-store/dist/types.d.ts +0 -48
- package/packages/event-store/dist/types.js +0 -5
- package/packages/event-store/src/types.d.ts +0 -48
- package/packages/file-copy-helper/dist/src/extension.js +0 -186
- package/packages/model-registry/src/types.d.ts +0 -63
- package/packages/notification/dist/src/adapters/email-adapter.d.ts +0 -17
- package/packages/notification/dist/src/adapters/email-adapter.d.ts.map +0 -1
- package/packages/notification/dist/src/adapters/email-adapter.js +0 -89
- package/packages/notification/dist/src/adapters/email-adapter.js.map +0 -1
- package/packages/notification/dist/src/adapters/line-adapter.d.ts +0 -17
- package/packages/notification/dist/src/adapters/line-adapter.d.ts.map +0 -1
- package/packages/notification/dist/src/adapters/line-adapter.js +0 -99
- package/packages/notification/dist/src/adapters/line-adapter.js.map +0 -1
- package/packages/notification/dist/src/adapters/ntfy-adapter.d.ts +0 -17
- package/packages/notification/dist/src/adapters/ntfy-adapter.d.ts.map +0 -1
- package/packages/notification/dist/src/adapters/ntfy-adapter.js +0 -84
- package/packages/notification/dist/src/adapters/ntfy-adapter.js.map +0 -1
- package/packages/notification/dist/src/adapters/telegram-adapter.d.ts +0 -56
- package/packages/notification/dist/src/adapters/telegram-adapter.d.ts.map +0 -1
- package/packages/notification/dist/src/adapters/telegram-adapter.js +0 -251
- package/packages/notification/dist/src/adapters/telegram-adapter.js.map +0 -1
- package/packages/notification/dist/src/adapters/webhook-adapter.d.ts +0 -15
- package/packages/notification/dist/src/adapters/webhook-adapter.d.ts.map +0 -1
- package/packages/notification/dist/src/adapters/webhook-adapter.js +0 -64
- package/packages/notification/dist/src/adapters/webhook-adapter.js.map +0 -1
- package/packages/notification/dist/src/base-adapter.d.ts +0 -36
- package/packages/notification/dist/src/base-adapter.d.ts.map +0 -1
- package/packages/notification/dist/src/base-adapter.js +0 -39
- package/packages/notification/dist/src/base-adapter.js.map +0 -1
- package/packages/notification/dist/src/index.d.ts +0 -12
- package/packages/notification/dist/src/index.d.ts.map +0 -1
- package/packages/notification/dist/src/index.js +0 -12
- package/packages/notification/dist/src/index.js.map +0 -1
- package/packages/notification/dist/src/notification-center.d.ts +0 -89
- package/packages/notification/dist/src/notification-center.d.ts.map +0 -1
- package/packages/notification/dist/src/notification-center.js +0 -356
- package/packages/notification/dist/src/notification-center.js.map +0 -1
- package/packages/notification/dist/src/notification-policy.d.ts +0 -66
- package/packages/notification/dist/src/notification-policy.d.ts.map +0 -1
- package/packages/notification/dist/src/notification-policy.js +0 -153
- package/packages/notification/dist/src/notification-policy.js.map +0 -1
- package/packages/notification/dist/src/telegram-webhook-handler.d.ts +0 -86
- package/packages/notification/dist/src/telegram-webhook-handler.d.ts.map +0 -1
- package/packages/notification/dist/src/telegram-webhook-handler.js +0 -149
- package/packages/notification/dist/src/telegram-webhook-handler.js.map +0 -1
- package/packages/notification/dist/src/types.d.ts +0 -106
- package/packages/notification/dist/src/types.d.ts.map +0 -1
- package/packages/notification/dist/src/types.js +0 -7
- package/packages/notification/dist/src/types.js.map +0 -1
- package/packages/projection-engine/dist/engine.d.ts +0 -61
- package/packages/projection-engine/dist/engine.js +0 -76
- package/packages/projection-engine/dist/index.d.ts +0 -2
- package/packages/projection-engine/dist/index.js +0 -2
- package/packages/projection-engine/dist/project.d.ts +0 -3
- package/packages/projection-engine/dist/project.js +0 -24
- package/packages/projection-engine/dist/types.d.ts +0 -55
- package/packages/projection-engine/dist/types.js +0 -5
- package/packages/projection-engine/src/types.d.ts +0 -55
- package/packages/provider-adapter-sdk/dist/src/builder.d.ts +0 -140
- package/packages/provider-adapter-sdk/dist/src/builder.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/builder.js +0 -332
- package/packages/provider-adapter-sdk/dist/src/builder.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/errors.d.ts +0 -71
- package/packages/provider-adapter-sdk/dist/src/errors.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/errors.js +0 -111
- package/packages/provider-adapter-sdk/dist/src/errors.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/index.d.ts +0 -15
- package/packages/provider-adapter-sdk/dist/src/index.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/index.js +0 -19
- package/packages/provider-adapter-sdk/dist/src/index.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/registry.d.ts +0 -108
- package/packages/provider-adapter-sdk/dist/src/registry.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/registry.js +0 -301
- package/packages/provider-adapter-sdk/dist/src/registry.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/tester.d.ts +0 -71
- package/packages/provider-adapter-sdk/dist/src/tester.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/tester.js +0 -392
- package/packages/provider-adapter-sdk/dist/src/tester.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/types.d.ts +0 -182
- package/packages/provider-adapter-sdk/dist/src/types.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/src/types.js +0 -11
- package/packages/provider-adapter-sdk/dist/src/types.js.map +0 -1
- package/packages/provider-router/dist/capability-registry/src/types.d.ts +0 -47
- package/packages/provider-router/dist/capability-registry/src/types.d.ts.map +0 -1
- package/packages/provider-router/dist/capability-registry/src/types.js +0 -10
- package/packages/provider-router/dist/capability-registry/src/types.js.map +0 -1
- package/packages/provider-router/dist/provider-router/src/index.d.ts +0 -23
- package/packages/provider-router/dist/provider-router/src/index.d.ts.map +0 -1
- package/packages/provider-router/dist/provider-router/src/index.js +0 -25
- package/packages/provider-router/dist/provider-router/src/index.js.map +0 -1
- package/packages/provider-router/dist/provider-router/src/policy.d.ts +0 -10
- package/packages/provider-router/dist/provider-router/src/policy.d.ts.map +0 -1
- package/packages/provider-router/dist/provider-router/src/policy.js +0 -45
- package/packages/provider-router/dist/provider-router/src/policy.js.map +0 -1
- package/packages/provider-router/dist/provider-router/src/provider-router.d.ts +0 -56
- package/packages/provider-router/dist/provider-router/src/provider-router.d.ts.map +0 -1
- package/packages/provider-router/dist/provider-router/src/provider-router.js +0 -222
- package/packages/provider-router/dist/provider-router/src/provider-router.js.map +0 -1
- package/packages/provider-router/dist/provider-router/src/strategies.d.ts +0 -19
- package/packages/provider-router/dist/provider-router/src/strategies.d.ts.map +0 -1
- package/packages/provider-router/dist/provider-router/src/strategies.js +0 -110
- package/packages/provider-router/dist/provider-router/src/strategies.js.map +0 -1
- package/packages/provider-router/dist/provider-router/src/types.d.ts +0 -91
- package/packages/provider-router/dist/provider-router/src/types.d.ts.map +0 -1
- package/packages/provider-router/dist/provider-router/src/types.js +0 -10
- package/packages/provider-router/dist/provider-router/src/types.js.map +0 -1
- package/packages/provider-router/dist/src/index.d.ts +0 -23
- package/packages/provider-router/dist/src/index.d.ts.map +0 -1
- package/packages/provider-router/dist/src/index.js +0 -25
- package/packages/provider-router/dist/src/index.js.map +0 -1
- package/packages/provider-router/dist/src/policy.d.ts +0 -10
- package/packages/provider-router/dist/src/policy.d.ts.map +0 -1
- package/packages/provider-router/dist/src/policy.js +0 -45
- package/packages/provider-router/dist/src/policy.js.map +0 -1
- package/packages/provider-router/dist/src/provider-router.d.ts +0 -56
- package/packages/provider-router/dist/src/provider-router.d.ts.map +0 -1
- package/packages/provider-router/dist/src/provider-router.js +0 -222
- package/packages/provider-router/dist/src/provider-router.js.map +0 -1
- package/packages/provider-router/dist/src/strategies.d.ts +0 -19
- package/packages/provider-router/dist/src/strategies.d.ts.map +0 -1
- package/packages/provider-router/dist/src/strategies.js +0 -110
- package/packages/provider-router/dist/src/strategies.js.map +0 -1
- package/packages/provider-router/dist/src/types.d.ts +0 -91
- package/packages/provider-router/dist/src/types.d.ts.map +0 -1
- package/packages/provider-router/dist/src/types.js +0 -10
- package/packages/provider-router/dist/src/types.js.map +0 -1
- package/packages/provider-router/dist/types/src/runtime-types.d.ts +0 -412
- package/packages/provider-router/dist/types/src/runtime-types.d.ts.map +0 -1
- package/packages/provider-router/dist/types/src/runtime-types.js +0 -2
- package/packages/provider-router/dist/types/src/runtime-types.js.map +0 -1
- package/packages/session-api/dist/api.d.ts +0 -83
- package/packages/session-api/dist/api.js +0 -35
- package/packages/session-api/dist/index.d.ts +0 -2
- package/packages/session-api/dist/index.js +0 -2
- package/packages/session-api/dist/types.d.ts +0 -22
- package/packages/session-api/dist/types.js +0 -5
- package/packages/session-export/dist/exporter.d.ts +0 -28
- package/packages/session-export/dist/exporter.js +0 -38
- package/packages/session-export/dist/index.d.ts +0 -2
- package/packages/session-export/dist/index.js +0 -2
- package/packages/session-export/dist/types.d.ts +0 -20
- package/packages/session-export/dist/types.js +0 -5
- package/packages/subscription-engine/dist/engine.d.ts +0 -13
- package/packages/subscription-engine/dist/engine.js +0 -40
- package/packages/subscription-engine/dist/index.d.ts +0 -2
- package/packages/subscription-engine/dist/index.js +0 -2
- package/packages/subscription-engine/dist/subscriptions.d.ts +0 -19
- package/packages/subscription-engine/dist/subscriptions.js +0 -32
- package/packages/subscription-engine/dist/types.d.ts +0 -24
- package/packages/subscription-engine/dist/types.js +0 -5
- package/packages/trajectory/test/store.test.d.ts +0 -2
- package/packages/workflow-events/dist/events.d.ts +0 -38
- package/packages/workflow-events/dist/events.js +0 -46
- package/packages/workflow-events/dist/index.d.ts +0 -2
- package/packages/workflow-events/dist/index.js +0 -2
- package/packages/workflow-events/dist/pipeline.d.ts +0 -21
- package/packages/workflow-events/dist/pipeline.js +0 -27
- package/packages/workflow-events/dist/types.d.ts +0 -110
- package/packages/workflow-events/dist/types.js +0 -5
- package/packages/workflow-events/src/types.d.ts +0 -110
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Telegram inbound routing composition
|
|
3
|
+
* Zones: telegram inbound, orchestration, queue/menu/command composition
|
|
4
|
+
* Wires authorized updates into menus, commands, media grouping, and prompt queueing, and owns exact assistant-output target/route authority capture
|
|
5
|
+
*/
|
|
6
|
+
import * as Bus from "./bus.ts";
|
|
7
|
+
import * as Commands from "./commands.ts";
|
|
8
|
+
import type { TelegramConfigStore } from "./config.ts";
|
|
9
|
+
import type { TelegramInboundHandlerRuntime } from "./inbound.ts";
|
|
10
|
+
import type { TelegramUpdateJournalQueuedCompletion, TelegramUpdateJournalQueuedReceiptEvidence } from "./journal.ts";
|
|
11
|
+
import * as Media from "./media.ts";
|
|
12
|
+
import * as Menu from "./menu.ts";
|
|
13
|
+
import * as Model from "./model.ts";
|
|
14
|
+
import * as OutboundHandlers from "./outbound.ts";
|
|
15
|
+
import * as PromptTemplates from "./prompt-templates.ts";
|
|
16
|
+
import * as Queue from "./queue.ts";
|
|
17
|
+
import type { TelegramBridgeRuntime } from "./runtime.ts";
|
|
18
|
+
import type { TelegramSectionRegistry } from "./sections.ts";
|
|
19
|
+
import type { TelegramApiCallOptions, TelegramInputRichMessage } from "./telegram-api.ts";
|
|
20
|
+
import * as TextGroups from "./text-groups.ts";
|
|
21
|
+
import * as ThreadReconciler from "./thread-reconciler.ts";
|
|
22
|
+
import type { TelegramInstanceThreadIdentityCandidate, TelegramTopicTargetRecord } from "./threads.ts";
|
|
23
|
+
import * as Turns from "./turns.ts";
|
|
24
|
+
import type { createTelegramWorkspaceExternalProtectionCapture } from "./workspace-retirement.ts";
|
|
25
|
+
interface TelegramPromptPeerView {
|
|
26
|
+
id?: unknown;
|
|
27
|
+
is_bot?: unknown;
|
|
28
|
+
username?: unknown;
|
|
29
|
+
first_name?: unknown;
|
|
30
|
+
last_name?: unknown;
|
|
31
|
+
title?: unknown;
|
|
32
|
+
}
|
|
33
|
+
export declare function resolveTelegramGuestPromptPeer(input: {
|
|
34
|
+
chatType?: string;
|
|
35
|
+
chat?: TelegramPromptPeerView;
|
|
36
|
+
from?: TelegramPromptPeerView;
|
|
37
|
+
replyFrom?: TelegramPromptPeerView;
|
|
38
|
+
guestBotCallerUser?: TelegramPromptPeerView;
|
|
39
|
+
guestBotCallerChat?: TelegramPromptPeerView;
|
|
40
|
+
ownerUserId?: number;
|
|
41
|
+
}): string | undefined;
|
|
42
|
+
/** Stable file scope of the remote Guest Mode peer: username, else numeric id; never the bot's own scope. */
|
|
43
|
+
export declare function resolveTelegramGuestFileScope(input: Parameters<typeof resolveTelegramGuestPromptPeer>[0]): string;
|
|
44
|
+
import * as Threads from "./threads.ts";
|
|
45
|
+
import * as Updates from "./updates.ts";
|
|
46
|
+
/** Prepare the selected leader's exact retained originals; no copy, adoption, acceptance proof or dispatch. */
|
|
47
|
+
export declare function prepareTelegramLiveLeaderOriginal(input: {
|
|
48
|
+
request: Threads.TelegramWorkspaceRestoreRequest;
|
|
49
|
+
messages: readonly unknown[];
|
|
50
|
+
isCurrent(): boolean;
|
|
51
|
+
}): Updates.TelegramLiveDeferredInputPreparation | undefined;
|
|
52
|
+
export type TelegramLiveRebindCleanupIssue = {
|
|
53
|
+
status: "not-ready";
|
|
54
|
+
} | {
|
|
55
|
+
status: "finished";
|
|
56
|
+
operationId: string;
|
|
57
|
+
cleanup: ThreadReconciler.TelegramLiveRebindCleanupOutcome;
|
|
58
|
+
recorded: boolean;
|
|
59
|
+
};
|
|
60
|
+
/** Default live-rebind cleanup pacing: quick early attempts, then minutely, within a 15-minute window. */
|
|
61
|
+
export declare const TELEGRAM_LIVE_REBIND_CLEANUP_SCHEDULE: Readonly<{
|
|
62
|
+
delaysMs: readonly number[];
|
|
63
|
+
intervalMs: 60000;
|
|
64
|
+
windowMs: number;
|
|
65
|
+
}>;
|
|
66
|
+
/** Chooser-scoped saved command reference; it is never retained after the chooser record. */
|
|
67
|
+
type TelegramLiveRebindSelectedCommandReference = {
|
|
68
|
+
operationId: string;
|
|
69
|
+
preparedSource: Bus.TelegramBusPreparedCommandSource;
|
|
70
|
+
selectedCommand: Bus.TelegramBusSelectedCommandInput;
|
|
71
|
+
};
|
|
72
|
+
/** One warm live attempt with exact post-release peer donor settlement; no startup recovery, Restore ACK or cleanup. */
|
|
73
|
+
export declare function createTelegramLiveRebindCoordinator(input: {
|
|
74
|
+
request: Threads.TelegramWorkspaceRestoreRequest;
|
|
75
|
+
/** Captures caller source/reference, admission, profile, transport and Pi lifetime. */
|
|
76
|
+
authority: Threads.TelegramWorkspaceRestoreAuthority;
|
|
77
|
+
messages: readonly unknown[];
|
|
78
|
+
restoreStore: Threads.TelegramWorkspaceRestore;
|
|
79
|
+
threadStore: Pick<Threads.TelegramTopicTargetStore, "withWorkspaceRestoreSnapshot">;
|
|
80
|
+
getRecipient(): (Threads.TelegramWorkspaceRestoreRecipient & {
|
|
81
|
+
bindingKey: string;
|
|
82
|
+
}) | undefined;
|
|
83
|
+
leader?: {
|
|
84
|
+
apply(intent: Threads.TelegramWorkspaceLiveRebindIntent, mode: "apply" | "inspect", isCurrent: () => boolean): Promise<void>;
|
|
85
|
+
/** Synchronous local identity only; safe inside a Workspace publication fence. */
|
|
86
|
+
isApplied(intent: Threads.TelegramWorkspaceLiveRebindIntent): boolean;
|
|
87
|
+
} & ({
|
|
88
|
+
/** Confirm ordinary queue admission of these same bound messages, never handler replay. */
|
|
89
|
+
continue(messages: readonly unknown[], isCurrent: () => boolean): Promise<boolean>;
|
|
90
|
+
/** Observe only the same issued admission through its existing receipt owner; never re-enqueue. */
|
|
91
|
+
observeAdmission?(): boolean;
|
|
92
|
+
complete?: never;
|
|
93
|
+
} | {
|
|
94
|
+
/** Issue one semantic completion; the adapter owns detached delivery and errors, not a removal ACK. */
|
|
95
|
+
complete(messages: readonly unknown[], isCurrent: () => boolean): void;
|
|
96
|
+
continue?: never;
|
|
97
|
+
});
|
|
98
|
+
follower?: {
|
|
99
|
+
run: ReturnType<typeof Bus.createTelegramBusLiveRebindController>;
|
|
100
|
+
/** Explicit staged singleton command branch; absence preserves ordinary live input behavior. */
|
|
101
|
+
selectedCommand?: Bus.TelegramBusSelectedCommandInput;
|
|
102
|
+
};
|
|
103
|
+
recordRuntimeEvent?: (category: string, error: unknown, details: Record<string, unknown>) => void;
|
|
104
|
+
}): {
|
|
105
|
+
/** Correlation only; a later cleanup attempt rereads and revalidates the canonical row itself. */
|
|
106
|
+
operationId: string;
|
|
107
|
+
/** Body-free copy of the authenticated saved command reference: correlation only, never authority, an ACK or a cleanup permit. */
|
|
108
|
+
selectedCommandReference(): TelegramLiveRebindSelectedCommandReference | undefined;
|
|
109
|
+
advance(): Promise<"protected" | "unknown" | "released">;
|
|
110
|
+
};
|
|
111
|
+
/** One admitted Restore attempt through recipient readiness, never source dispatch or cleanup. */
|
|
112
|
+
export declare function advanceTelegramWorkspaceRestore(input: {
|
|
113
|
+
request: Threads.TelegramWorkspaceRestoreRequest;
|
|
114
|
+
authority: Threads.TelegramWorkspaceRestoreAuthority;
|
|
115
|
+
restoreStore: Threads.TelegramWorkspaceRestore;
|
|
116
|
+
getRecipient: () => Threads.TelegramWorkspaceRestoreRecipient | undefined;
|
|
117
|
+
/** Adapter proves current canonical ownership and authenticates observations; apply needs a fresh issuance. */
|
|
118
|
+
runRecipient: (input: {
|
|
119
|
+
intent: Threads.TelegramWorkspaceRestoreIntent;
|
|
120
|
+
mode: "apply" | "inspect";
|
|
121
|
+
isCurrent: () => boolean;
|
|
122
|
+
}) => Promise<{
|
|
123
|
+
operationId: string;
|
|
124
|
+
recipient: Threads.TelegramWorkspaceRestoreRecipient;
|
|
125
|
+
target: Threads.TelegramWorkspaceRestoreRequest["target"];
|
|
126
|
+
slot: string;
|
|
127
|
+
ready: boolean;
|
|
128
|
+
} | undefined>;
|
|
129
|
+
/**
|
|
130
|
+
* Recovery for a same-session successor already on the relocated target: it may receive the first grant, but only
|
|
131
|
+
* read-only inspection runs. It never commits a new relocation or applies a target.
|
|
132
|
+
*/
|
|
133
|
+
inspectOnly?: true;
|
|
134
|
+
}): Promise<Threads.TelegramWorkspaceRestoreIntent | undefined>;
|
|
135
|
+
export declare const TELEGRAM_ALL_TAB_COMMAND_MAX_AGE_MS: number;
|
|
136
|
+
/** The toast for expired or previous-process routing controls; the chooser notice is written separately. */
|
|
137
|
+
export declare const TELEGRAM_ROUTING_CHOICE_EXPIRED = "Routing choice expired";
|
|
138
|
+
export declare function isTelegramAllTabCommandExpired(message: {
|
|
139
|
+
date?: number;
|
|
140
|
+
message_thread_id?: number;
|
|
141
|
+
}, nowMs?: number): boolean;
|
|
142
|
+
export type TelegramRoutedMessage = {
|
|
143
|
+
date?: number;
|
|
144
|
+
} & Updates.TelegramUpdateMessage & Media.TelegramMediaMessage & Media.TelegramMediaGroupMessage & Commands.TelegramCommandRuntimeMessage & Turns.TelegramTurnMessage;
|
|
145
|
+
export type TelegramRoutedCallbackQuery = Updates.TelegramCallbackQuery & Menu.MenuCallbackQuery;
|
|
146
|
+
export interface TelegramInboundBusProjectionRuntime {
|
|
147
|
+
getTargetOwnership: Updates.TelegramTargetOwnershipLookup;
|
|
148
|
+
getLiveThreadTargets(): Queue.TelegramQueueTarget[];
|
|
149
|
+
getLocalThreadLabelForTarget(target: Queue.TelegramQueueTarget): string | undefined;
|
|
150
|
+
}
|
|
151
|
+
export declare function createTelegramInboundBusProjectionRuntime(deps: {
|
|
152
|
+
instanceId: string;
|
|
153
|
+
listFollowers(): readonly Bus.TelegramBusFollowerView[];
|
|
154
|
+
listThreadRecords(): readonly TelegramTopicTargetRecord[];
|
|
155
|
+
getLeaderTarget(): Queue.TelegramQueueTarget | undefined;
|
|
156
|
+
isFollowerRegistered(): boolean;
|
|
157
|
+
getFollowerTarget(): Queue.TelegramQueueTarget | undefined;
|
|
158
|
+
getCurrentIdentity(target?: Queue.TelegramQueueTarget): TelegramInstanceThreadIdentityCandidate;
|
|
159
|
+
}): TelegramInboundBusProjectionRuntime;
|
|
160
|
+
export interface TelegramInboundRouteRuntimeDeps<TMessage extends TelegramRoutedMessage, TCallbackQuery extends TelegramRoutedCallbackQuery, TContext, TModel extends Model.MenuModel> {
|
|
161
|
+
configStore: Pick<TelegramConfigStore, "get" | "getAllowedUserId" | "persistAllowedUserId" | "persist"> & {
|
|
162
|
+
set?: TelegramConfigStore["set"];
|
|
163
|
+
};
|
|
164
|
+
callApi?: <TResponse>(method: string, body: Record<string, unknown>, options?: TelegramApiCallOptions) => Promise<TResponse>;
|
|
165
|
+
getCurrentInstanceId?: () => string | undefined;
|
|
166
|
+
getAdmissionScope?: () => string | undefined;
|
|
167
|
+
getAdmissionJournalBinding?: () => string | undefined;
|
|
168
|
+
getMessageOwnership?: Updates.TelegramMessageOwnershipLookup;
|
|
169
|
+
getTargetOwnership?: Updates.TelegramTargetOwnershipLookup;
|
|
170
|
+
recordMessageOwnership?: Updates.TelegramMessageOwnershipRecorder;
|
|
171
|
+
getLiveThreadTargets?: () => Queue.TelegramQueueTarget[];
|
|
172
|
+
getDisplayTitle?: Threads.TelegramCurrentThreadAssembly["getDisplayTitle"];
|
|
173
|
+
getLocalThreadLabelForTarget?: (target: Queue.TelegramQueueTarget) => string | undefined;
|
|
174
|
+
getCurrentLeaderEpoch?: () => number | string | undefined;
|
|
175
|
+
setCurrentLeaderIdentity?: (identity: {
|
|
176
|
+
target: Queue.TelegramQueueTarget;
|
|
177
|
+
slot?: string;
|
|
178
|
+
threadName?: string;
|
|
179
|
+
}) => void;
|
|
180
|
+
getThreadReconciliationMachineState?: () => ThreadReconciler.ThreadReconciliationMachineState | undefined;
|
|
181
|
+
recordThreadReconciliationPlan?: (plan: ThreadReconciler.ThreadReconciliationPlan) => void;
|
|
182
|
+
handleTelegramTopicLifecycleUpdate?: (lifecycle: Updates.TelegramTopicLifecycleUpdate<TMessage>, ctx: TContext) => Promise<void> | void;
|
|
183
|
+
handleTelegramThreadTargetObserved?: (target: Threads.TelegramTopicTargetRecord["target"], ctx: TContext) => Promise<void> | void;
|
|
184
|
+
foreignOwnedUpdateForwarder?: Updates.TelegramForeignOwnedUpdateForwarder<TContext, Updates.TelegramMessageReactionUpdated, TCallbackQuery, TMessage>;
|
|
185
|
+
getWorkspaceRestoreStore?: () => Threads.TelegramWorkspaceRestore | undefined;
|
|
186
|
+
captureWorkspaceExternalProtection?: ReturnType<typeof createTelegramWorkspaceExternalProtectionCapture>;
|
|
187
|
+
/** Strict committed abandonment plus retained original; shared by Restore and temporary-input cancellation. */
|
|
188
|
+
inspectRestoreSourceAbandonment?: (updateId: number, journalBindingKey: string) => Threads.TelegramTemporaryThreadCancellationEvidence | undefined;
|
|
189
|
+
inspectRoutingInputGroupExpiry?: (input: Threads.TelegramTemporaryThreadInput) => readonly Threads.TelegramTemporaryThreadCancellationEvidence[] | undefined;
|
|
190
|
+
/** Strict active-journal observation only; a hint or missing source never substitutes for this ACK. */
|
|
191
|
+
inspectRestoreSourceCompletion?: (expected: Updates.TelegramDeferredSourceEvidence & {
|
|
192
|
+
completionSha256: string;
|
|
193
|
+
}) => (Updates.TelegramDeferredSourceEvidence & {
|
|
194
|
+
completionSha256: string;
|
|
195
|
+
}) | undefined;
|
|
196
|
+
inspectRestoreQueuedReceipt?: (expected: TelegramUpdateJournalQueuedCompletion & {
|
|
197
|
+
journalBindingKey: string;
|
|
198
|
+
}) => TelegramUpdateJournalQueuedReceiptEvidence | undefined;
|
|
199
|
+
hasWorkspaceRestoreAuthority?: () => boolean;
|
|
200
|
+
/** Exact live root authority; capability advertisement alone cannot replace owned profile/session/recipient fences. */
|
|
201
|
+
hasWorkspaceLiveRebindAuthority?: () => boolean;
|
|
202
|
+
/** Strict complete namespace plus exact current/historical references; only an empty result clears journal protection. */
|
|
203
|
+
inspectTemporaryThreadSources?: (target: Queue.TelegramQueueTarget, requiredJournalBindingKeys: readonly string[], ownInputs?: readonly Threads.TelegramTemporaryThreadInput[]) => readonly number[] | undefined;
|
|
204
|
+
/** Quiet period after the last cancelled input before one cleanup attempt; defaults to 1000 ms. */
|
|
205
|
+
temporaryThreadCleanupDelayMs?: number;
|
|
206
|
+
/** Live-rebind cleanup attempt pacing; the bounded window ends in `not-issued`, never a time-based deletion. */
|
|
207
|
+
liveRebindCleanupSchedule?: {
|
|
208
|
+
delaysMs: readonly number[];
|
|
209
|
+
intervalMs: number;
|
|
210
|
+
windowMs: number;
|
|
211
|
+
};
|
|
212
|
+
getSessionGeneration?: () => number;
|
|
213
|
+
workspaceRestoreRecipient?: {
|
|
214
|
+
getSessionId: (ctx: TContext) => string | undefined;
|
|
215
|
+
getCwd: (ctx: TContext) => string | undefined;
|
|
216
|
+
getLeaderIdentity: Threads.TelegramLeaderThreadStateRuntime["getIdentity"];
|
|
217
|
+
/** Read-only current leader work; source/chooser lifetime is not recipient authority. */
|
|
218
|
+
observeLeaderWork?: (oldTarget: Queue.TelegramQueueTarget & {
|
|
219
|
+
threadId: number;
|
|
220
|
+
}, ctx: TContext) => Bus.TelegramBusLiveRebindWorkState;
|
|
221
|
+
followerRegistry: Pick<Bus.TelegramBusFollowerRegistry, "get" | "register">;
|
|
222
|
+
runFollower: ReturnType<typeof Bus.createTelegramBusWorkspaceRestoreController>;
|
|
223
|
+
liveFollower?: {
|
|
224
|
+
/** Pure trusted assembly availability (Commands/native/menu and local protocol), never future target activation. */
|
|
225
|
+
isSelectedCommandAvailable?(follower: Readonly<Bus.TelegramBusFollowerView>, name: string): boolean;
|
|
226
|
+
/** Exact session journal identity from the existing registration/journal owners, never the profile routing key. */
|
|
227
|
+
getJournalBindingKey(follower: Bus.TelegramBusFollowerView): string | undefined;
|
|
228
|
+
run: ReturnType<typeof Bus.createTelegramBusLiveRebindController>;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
bridgeRuntime: TelegramBridgeRuntime;
|
|
232
|
+
activeTurnRuntime: Queue.TelegramActiveTurnStore;
|
|
233
|
+
mediaGroupRuntime: Media.TelegramMediaGroupController<TMessage, TContext>;
|
|
234
|
+
textGroupRuntime: TextGroups.TelegramTextGroupController<TMessage, TContext>;
|
|
235
|
+
telegramQueueStore: Queue.TelegramQueueStateStore<TContext>;
|
|
236
|
+
queueMutationRuntime: Queue.TelegramQueueMutationController<TContext>;
|
|
237
|
+
modelMenuRuntime: Menu.TelegramModelMenuRuntime<TModel>;
|
|
238
|
+
currentModelRuntime: Model.CurrentModelRuntime<TContext, TModel>;
|
|
239
|
+
modelSwitchController: Model.TelegramModelSwitchController<TContext, Model.ScopedTelegramModel<TModel>>;
|
|
240
|
+
menuActions: Menu.TelegramMenuActionRuntime<TContext, TModel>;
|
|
241
|
+
/** Thinking controls refuse while the active Telegram turn expects a voice reply. */
|
|
242
|
+
isVoiceReplyActive?: () => boolean;
|
|
243
|
+
updateSettingsMenuMessage?: (state: Menu.TelegramModelMenuState<TModel>, ctx: TContext) => Promise<void>;
|
|
244
|
+
openQueueMenu: (chatId: number, replyToMessageId: number, ctx: TContext, threadId?: number, options?: Pick<TelegramApiCallOptions, "assertAuthority">) => Promise<void>;
|
|
245
|
+
openSettingsMenu?: (chatId: number, replyToMessageId: number, ctx: TContext, threadId?: number, options?: Pick<TelegramApiCallOptions, "assertAuthority">) => Promise<void>;
|
|
246
|
+
settingsMenuCallbackHandler?: (query: TCallbackQuery, ctx: TContext) => Promise<boolean>;
|
|
247
|
+
queueMenuCallbackHandler: (query: TCallbackQuery, ctx: TContext) => Promise<boolean>;
|
|
248
|
+
buttonActionStore?: OutboundHandlers.TelegramButtonActionStore;
|
|
249
|
+
invokeBoundButtonAction?: (action: OutboundHandlers.TelegramOutboundButtonAction, query: TCallbackQuery, ctx: TContext) => Promise<false | "new" | "edit">;
|
|
250
|
+
inboundHandlerRuntime: TelegramInboundHandlerRuntime<TContext>;
|
|
251
|
+
threadStore?: Threads.TelegramTopicTargetStore;
|
|
252
|
+
runWorkspaceOperation?: <T>(input: {
|
|
253
|
+
operationId: string;
|
|
254
|
+
operationKind: string;
|
|
255
|
+
scopes: readonly [{
|
|
256
|
+
kind: "profile";
|
|
257
|
+
}];
|
|
258
|
+
}, operation: () => Promise<T>) => Promise<T>;
|
|
259
|
+
updateStatus: (ctx: TContext, error?: string) => void;
|
|
260
|
+
isContextActive?: (ctx: TContext) => boolean;
|
|
261
|
+
dispatchNextQueuedTelegramTurn: (ctx: TContext) => void;
|
|
262
|
+
requestNextDispatchAnnouncement?: () => void;
|
|
263
|
+
cancelNextDispatchAnnouncement?: () => void;
|
|
264
|
+
requestDeferredDispatchNextQueuedTelegramTurn?: (dispatch: (ctx: TContext) => void) => void;
|
|
265
|
+
hasDeferredDispatchContext?: () => boolean;
|
|
266
|
+
startTypingLoop?: (ctx: TContext, chatId?: number, options?: {
|
|
267
|
+
target?: {
|
|
268
|
+
chatId: number;
|
|
269
|
+
threadId?: number;
|
|
270
|
+
};
|
|
271
|
+
}) => void;
|
|
272
|
+
stopTypingLoop?: () => void;
|
|
273
|
+
answerCallbackQuery: (callbackQueryId: string, text?: string, options?: Pick<TelegramApiCallOptions, "assertAuthority">) => Promise<void>;
|
|
274
|
+
editInteractiveMessage?: (chatId: number, messageId: number, text: string, mode: "markdown" | "html" | "plain", replyMarkup: Menu.TelegramReplyMarkup, options?: {
|
|
275
|
+
target?: Queue.TelegramQueueTarget;
|
|
276
|
+
assertAuthority?: TelegramApiCallOptions["assertAuthority"];
|
|
277
|
+
}) => Promise<void>;
|
|
278
|
+
editMessageReplyMarkup?: (chatId: number, messageId: number, replyMarkup: OutboundHandlers.TelegramOutboundButtonMarkup) => Promise<void>;
|
|
279
|
+
sendInteractiveMessage?: (chatId: number, text: string, mode: "markdown" | "html" | "plain", replyMarkup: Menu.TelegramReplyMarkup, options?: {
|
|
280
|
+
target?: Queue.TelegramQueueTarget;
|
|
281
|
+
replyToMessageId?: number;
|
|
282
|
+
assertAuthority?: TelegramApiCallOptions["assertAuthority"];
|
|
283
|
+
}) => Promise<number | undefined>;
|
|
284
|
+
deleteMessage?: (chatId: number, messageId: number) => Promise<void>;
|
|
285
|
+
answerGuestQuery: (guestQueryId: string, text?: string) => Promise<void>;
|
|
286
|
+
/** Answers the guest query immediately and returns its inline message id. */
|
|
287
|
+
answerGuestQueryForInlineMessage?: (guestQueryId: string, text: string, options?: {
|
|
288
|
+
parseMode?: "HTML";
|
|
289
|
+
}) => Promise<string | undefined>;
|
|
290
|
+
/** Starts the animated placeholder on an answered guest inline message. */
|
|
291
|
+
startGuestPlaceholder?: (inlineMessageId: string) => void;
|
|
292
|
+
sendTextReply: (chatId: number, replyToMessageId: number, text: string, options?: {
|
|
293
|
+
parseMode?: "HTML";
|
|
294
|
+
target?: Queue.TelegramQueueTarget;
|
|
295
|
+
assertAuthority?: TelegramApiCallOptions["assertAuthority"];
|
|
296
|
+
}) => Promise<number | undefined>;
|
|
297
|
+
setMyCommands: Commands.TelegramBotCommandRegistrationDeps["setMyCommands"];
|
|
298
|
+
/** Captures independent recipient authority, never the source execution or dialog handle. */
|
|
299
|
+
captureThreadNameRecipientAuthority?: (target: Queue.TelegramQueueTarget, ctx: TContext) => (() => void) | undefined;
|
|
300
|
+
validateThreadName?: (threadName: string) => string | undefined;
|
|
301
|
+
renameCurrentThread?: Commands.TelegramThreadDisplayNameRenamePort;
|
|
302
|
+
resetCurrentThreadName?: Commands.TelegramThreadDisplayNameResetPort;
|
|
303
|
+
getCommands: () => Parameters<typeof PromptTemplates.getTelegramPromptTemplateCommands>[0];
|
|
304
|
+
downloadFile: Media.DownloadTelegramMessageFilesDeps["downloadFile"];
|
|
305
|
+
resolveTimeLine?: (chatId: number) => string | null;
|
|
306
|
+
getThinkingLevel: () => Model.ThinkingLevel;
|
|
307
|
+
setThinkingLevel: (level: Model.ThinkingLevel) => void;
|
|
308
|
+
persistScopedModelPatterns?: (patterns: string[], ctx: TContext) => Promise<void>;
|
|
309
|
+
setModel: (model: TModel) => Promise<boolean>;
|
|
310
|
+
sendUserMessage?: (message: string, options?: Queue.TelegramPromptDeliveryOptions) => void;
|
|
311
|
+
isIdle: (ctx: TContext) => boolean;
|
|
312
|
+
hasPendingMessages: (ctx: TContext) => boolean;
|
|
313
|
+
requestNewSession?: (source: unknown) => void;
|
|
314
|
+
compact: (ctx: TContext, callbacks: {
|
|
315
|
+
onComplete: () => void;
|
|
316
|
+
onError: (error: unknown) => void;
|
|
317
|
+
}) => void;
|
|
318
|
+
recordRuntimeEvent?: (category: string, error: unknown, details?: Record<string, unknown>) => void;
|
|
319
|
+
beginCommandEffectWork?: Commands.TelegramCommandRuntimeDeps<TMessage, TContext>["beginCommandEffectWork"];
|
|
320
|
+
sectionRegistry?: TelegramSectionRegistry;
|
|
321
|
+
sendSectionRichMessage?: (chatId: number, message: TelegramInputRichMessage, options?: {
|
|
322
|
+
target?: {
|
|
323
|
+
chatId: number;
|
|
324
|
+
threadId?: number;
|
|
325
|
+
};
|
|
326
|
+
}) => Promise<number | undefined>;
|
|
327
|
+
}
|
|
328
|
+
export declare function createTelegramInboundRouteRuntime<TUpdate extends Updates.TelegramUpdateFlow & {
|
|
329
|
+
message?: TMessage;
|
|
330
|
+
edited_message?: TMessage;
|
|
331
|
+
callback_query?: TCallbackQuery;
|
|
332
|
+
}, TMessage extends TelegramRoutedMessage, TCallbackQuery extends TelegramRoutedCallbackQuery, TContext, TModel extends Model.MenuModel>(deps: TelegramInboundRouteRuntimeDeps<TMessage, TCallbackQuery, TContext, TModel>): Updates.TelegramUpdateRuntimeController<TContext, TUpdate> & {
|
|
333
|
+
expireRoutingInput: NonNullable<Updates.TelegramUpdateWorkerRuntimeDeps<TContext>["expireRoutingInput"]>;
|
|
334
|
+
shouldReviewHistoricalInput: NonNullable<Updates.TelegramUpdateWorkerRuntimeDeps<TContext>["shouldReviewHistoricalInput"]>;
|
|
335
|
+
shouldHoldPendingInput: NonNullable<Updates.TelegramUpdateWorkerRuntimeDeps<TContext>["shouldHoldPendingInput"]>;
|
|
336
|
+
forgetPreviousWorld(input: Updates.TelegramHeldSourcePreparation<TContext>, captureTransport?: (ctx: TContext) => (() => boolean) | undefined): Promise<{
|
|
337
|
+
forgotten: number;
|
|
338
|
+
deleted: number;
|
|
339
|
+
}>;
|
|
340
|
+
beforeQueueReceiptPublished: NonNullable<Updates.TelegramUpdateWorkerRuntimeDeps<TContext>["beforeQueueReceiptPublished"]>;
|
|
341
|
+
onQueueReceiptCommitted: NonNullable<Updates.TelegramUpdateWorkerRuntimeDeps<TContext>["onQueueReceiptCommitted"]>;
|
|
342
|
+
onQueueReceiptCompleted: NonNullable<Updates.TelegramUpdateWorkerRuntimeDeps<TContext>["onQueueReceiptCompleted"]>;
|
|
343
|
+
onUpdateCompleted: NonNullable<Updates.TelegramUpdateWorkerRuntimeDeps<TContext>["onUpdateCompleted"]>;
|
|
344
|
+
onWorkspaceRestoreRecipientObserved(follower: Bus.TelegramBusFollowerView, isCurrent: () => boolean, ctx: TContext | undefined): Promise<void> | undefined;
|
|
345
|
+
waitForRestoreSettlement(): Promise<void>;
|
|
346
|
+
/** Commands-owned registry port for dormant scoped recipient assembly, not ordinary update replay. */
|
|
347
|
+
prepareHeldCommand: ReturnType<typeof Commands.createTelegramCommandHandlerTargetRuntime<TMessage, TContext>>["prepareHeldCommand"];
|
|
348
|
+
canPrepareHeldCommand: ReturnType<typeof Commands.createTelegramCommandHandlerTargetRuntime<TMessage, TContext>>["canPrepareHeldCommand"];
|
|
349
|
+
/** Fresh body-free recipient observation only; never reconstructs an attempt or grants cleanup. */
|
|
350
|
+
observeLiveRebindLeaderWork(intent: Threads.TelegramWorkspaceLiveRebindIntent, ctx: TContext): Promise<Bus.TelegramBusLiveRebindWorkObservation | undefined>;
|
|
351
|
+
/** Fresh non-destructive candidate only; no retained idle, cleanup action or deletion grant. */
|
|
352
|
+
prepareLiveRebindLeaderCleanup(intent: Threads.TelegramWorkspaceLiveRebindIntent, ctx: TContext): Promise<ThreadReconciler.TelegramLiveRebindCleanupPreparation | undefined>;
|
|
353
|
+
/** Requires the authenticated peer's exact retained released carrier; never recreates save/apply/release. */
|
|
354
|
+
prepareLiveRebindFollowerCleanup(intent: Threads.TelegramWorkspaceLiveRebindIntent, ctx: TContext): Promise<ThreadReconciler.TelegramLiveRebindCleanupPreparation | undefined>;
|
|
355
|
+
/**
|
|
356
|
+
* One cleanup attempt under fresh admission: a fresh clear sample, then the durable issue marker, one unretried
|
|
357
|
+
* deletion and the terminal record. `not-ready` leaves the released row unissued; `undefined` is lost authority.
|
|
358
|
+
*/
|
|
359
|
+
issueLiveRebindLeaderCleanup(intent: Threads.TelegramWorkspaceLiveRebindIntent, ctx: TContext): Promise<TelegramLiveRebindCleanupIssue | undefined>;
|
|
360
|
+
issueLiveRebindFollowerCleanup(intent: Threads.TelegramWorkspaceLiveRebindIntent, ctx: TContext): Promise<TelegramLiveRebindCleanupIssue | undefined>;
|
|
361
|
+
/** Coordinator-only prompt admission; caller retains Workspace/canonical and exact recipient authority. */
|
|
362
|
+
continueLiveRebindPrompt(messages: readonly TMessage[], ctx: TContext, target: Queue.TelegramQueueTarget & {
|
|
363
|
+
threadId: number;
|
|
364
|
+
}, isCurrent: () => boolean): Promise<boolean>;
|
|
365
|
+
};
|
|
366
|
+
export interface TelegramAssistantOutputAuthority<TTransportStamp> {
|
|
367
|
+
transportStamp: TTransportStamp;
|
|
368
|
+
route: "direct" | "follower" | "none";
|
|
369
|
+
directEpoch?: number | string;
|
|
370
|
+
followerGeneration?: string;
|
|
371
|
+
target?: Queue.TelegramQueueTarget;
|
|
372
|
+
}
|
|
373
|
+
export interface TelegramAssistantOutputAuthorityRuntime<TTransportStamp> {
|
|
374
|
+
captureAuthority: () => TelegramAssistantOutputAuthority<TTransportStamp>;
|
|
375
|
+
isAuthorityActive: (authority: TelegramAssistantOutputAuthority<TTransportStamp>) => boolean;
|
|
376
|
+
canDeliver: () => boolean;
|
|
377
|
+
}
|
|
378
|
+
export declare function createTelegramAssistantOutputAuthorityRuntime<TTransportStamp>(deps: {
|
|
379
|
+
getPreferredTarget: () => Queue.TelegramQueueTarget | undefined;
|
|
380
|
+
getFallbackChatId: () => number | undefined;
|
|
381
|
+
getTransportStamp: () => TTransportStamp;
|
|
382
|
+
isTransportStampActive: (stamp: TTransportStamp) => boolean;
|
|
383
|
+
ownsDirect: () => boolean;
|
|
384
|
+
getDirectEpoch: () => number | string | undefined;
|
|
385
|
+
isFollowerRegistered: () => boolean;
|
|
386
|
+
getFollowerGeneration: () => string | undefined;
|
|
387
|
+
}): TelegramAssistantOutputAuthorityRuntime<TTransportStamp>;
|
|
388
|
+
export {};
|