@bolloon/bolloon-agent 0.1.35 → 0.1.37
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 +1 -1
- package/dist/agents/p2p-chat-tools.js +6 -6
- package/dist/agents/permission-mode.js +115 -0
- package/dist/agents/pi-sdk.js +435 -25
- package/dist/agents/pre-tool-validator.js +194 -0
- package/dist/agents/workflow-pivot-loop.js +113 -12
- package/dist/bollharness-integration/context-router.js +2 -2
- package/dist/bollharness-integration/guard-checker.js +1 -1
- package/dist/bootstrap/bootstrap.js +3 -0
- package/dist/bootstrap/context-collector.js +17 -1
- package/dist/bootstrap/context-hierarchy.js +218 -0
- package/dist/bootstrap/lifecycle-hooks.js +86 -24
- package/dist/bootstrap/project-context.js +10 -3
- package/dist/context-compaction/auto-compact.js +144 -0
- package/dist/context-compaction/budget-gate.js +28 -0
- package/dist/context-compaction/budget-reduce.js +35 -0
- package/dist/context-compaction/context-collapse.js +66 -0
- package/dist/context-compaction/index.js +21 -0
- package/dist/context-compaction/microcompact.js +51 -0
- package/dist/context-compaction/pipeline.js +123 -0
- package/dist/context-compaction/snip.js +45 -0
- package/dist/context-compaction/token-estimator.js +35 -0
- package/dist/context-compaction/types.js +19 -0
- package/dist/heartbeat/HealthMonitor.js +3 -2
- package/dist/index.js +38 -2
- package/dist/llm/llm-judgment-client.js +32 -30
- package/dist/llm/pi-ai.js +103 -16
- package/dist/llm/system-prompt/health.js +129 -0
- package/dist/llm/system-prompt/registry.js +246 -0
- package/dist/llm/system-prompt/strip-hibsml.js +51 -0
- package/dist/llm/tool-manifest/ask_user_input.js +35 -0
- package/dist/llm/tool-manifest/bash.js +23 -0
- package/dist/llm/tool-manifest/create_file.js +24 -0
- package/dist/llm/tool-manifest/fetch_sports_data.js +26 -0
- package/dist/llm/tool-manifest/image_search.js +24 -0
- package/dist/llm/tool-manifest/index.js +69 -0
- package/dist/llm/tool-manifest/mcp.js +43 -0
- package/dist/llm/tool-manifest/message_compose.js +31 -0
- package/dist/llm/tool-manifest/places.js +83 -0
- package/dist/llm/tool-manifest/present_files.js +21 -0
- package/dist/llm/tool-manifest/recipe.js +40 -0
- package/dist/llm/tool-manifest/recommend_apps.js +23 -0
- package/dist/llm/tool-manifest/str_replace.js +27 -0
- package/dist/llm/tool-manifest/types.js +7 -0
- package/dist/llm/tool-manifest/view.js +24 -0
- package/dist/llm/tool-manifest/weather.js +27 -0
- package/dist/llm/tool-manifest/web.js +51 -0
- package/dist/network/p2p-direct.js +23 -0
- package/dist/network/source-intent-broadcaster.js +203 -0
- package/dist/network/source-intent.js +100 -0
- package/dist/pi-ecosystem-judgment/adaptive-scan.js +48 -0
- package/dist/pi-ecosystem-judgment/injection-gate.js +54 -12
- package/dist/pi-ecosystem-judgment/value-injection.js +8 -2
- package/dist/security/context-router-tool.js +1 -1
- package/dist/security/input-scanner.js +223 -0
- package/dist/web/client.js +3089 -4458
- package/dist/web/index.html +58 -67
- package/dist/web/server.js +299 -117
- package/dist/web/style.css +531 -249
- package/dist/web/ui/message-renderer.js +352 -0
- package/dist/web/ui/step-timeline.js +279 -0
- package/package.json +2 -2
- package/.auto-evolve-calls +0 -1
- package/.last-auto-evolve-baseline +0 -1
- package/Bolloon.md +0 -103
- package/dist/agents/constraint-layer.js.map +0 -1
- package/dist/agents/pi-sdk.js.map +0 -1
- package/dist/agents/workflow-engine.js.map +0 -1
- package/dist/bollharness/src/index.js +0 -5
- package/dist/bollharness/src/scripts/checks/check_adr_plan_numbering.js +0 -6
- package/dist/bollharness/src/scripts/checks/check_api_types.js +0 -45
- package/dist/bollharness/src/scripts/checks/check_artifact_link.js +0 -146
- package/dist/bollharness/src/scripts/checks/check_bridge_deps.js +0 -6
- package/dist/bollharness/src/scripts/checks/check_bugfix_binding.js +0 -6
- package/dist/bollharness/src/scripts/checks/check_bugfix_binding_ci.js +0 -6
- package/dist/bollharness/src/scripts/checks/check_doc_file_references.js +0 -6
- package/dist/bollharness/src/scripts/checks/check_doc_freshness.js +0 -135
- package/dist/bollharness/src/scripts/checks/check_doc_links.js +0 -31
- package/dist/bollharness/src/scripts/checks/check_file_existence_claims.js +0 -6
- package/dist/bollharness/src/scripts/checks/check_fragment_integrity.js +0 -34
- package/dist/bollharness/src/scripts/checks/check_hook_installed.js +0 -63
- package/dist/bollharness/src/scripts/checks/check_issue_closure.js +0 -41
- package/dist/bollharness/src/scripts/checks/check_mcp_parity.js +0 -6
- package/dist/bollharness/src/scripts/checks/check_security.js +0 -48
- package/dist/bollharness/src/scripts/checks/check_skill_parity.js +0 -6
- package/dist/bollharness/src/scripts/checks/check_versions.js +0 -6
- package/dist/bollharness/src/scripts/checks/finding.js +0 -13
- package/dist/bollharness/src/scripts/checks/next_decision_number.js +0 -20
- package/dist/bollharness/src/scripts/checks/regenerate_magic_docs.js +0 -6
- package/dist/bollharness/src/scripts/ci/detect_rebaseline_triggers.js +0 -8
- package/dist/bollharness/src/scripts/ci/scan_subprocess_cfg.js +0 -8
- package/dist/bollharness/src/scripts/ci/scan_verify_artifacts.js +0 -8
- package/dist/bollharness/src/scripts/ci/scan_yaml_schema.js +0 -8
- package/dist/bollharness/src/scripts/context_router.js +0 -67
- package/dist/bollharness/src/scripts/deploy-guard.js +0 -157
- package/dist/bollharness/src/scripts/guard-feedback.js +0 -192
- package/dist/bollharness/src/scripts/guard_router.js +0 -158
- package/dist/bollharness/src/scripts/hooks/_hook_output.js +0 -6
- package/dist/bollharness/src/scripts/hooks/auto-python3.js +0 -6
- package/dist/bollharness/src/scripts/hooks/deploy-progress-on-session-end.js +0 -6
- package/dist/bollharness/src/scripts/hooks/failure-analyzer.js +0 -6
- package/dist/bollharness/src/scripts/hooks/gate-judgment-inject.js +0 -92
- package/dist/bollharness/src/scripts/hooks/gate-transition-judgment.js +0 -63
- package/dist/bollharness/src/scripts/hooks/inbox-ack.js +0 -6
- package/dist/bollharness/src/scripts/hooks/inbox-inject-on-start.js +0 -6
- package/dist/bollharness/src/scripts/hooks/inbox-validate.js +0 -6
- package/dist/bollharness/src/scripts/hooks/inbox-write-ledger.js +0 -6
- package/dist/bollharness/src/scripts/hooks/initializer-agent.js +0 -6
- package/dist/bollharness/src/scripts/hooks/loop-detection.js +0 -73
- package/dist/bollharness/src/scripts/hooks/owner-guard.js +0 -6
- package/dist/bollharness/src/scripts/hooks/precompact.js +0 -6
- package/dist/bollharness/src/scripts/hooks/review-agent-gatekeeper.js +0 -6
- package/dist/bollharness/src/scripts/hooks/risk-tracker.js +0 -108
- package/dist/bollharness/src/scripts/hooks/sanitize-on-read.js +0 -6
- package/dist/bollharness/src/scripts/hooks/session-reflection.js +0 -7
- package/dist/bollharness/src/scripts/hooks/session-start-magic-docs.js +0 -7
- package/dist/bollharness/src/scripts/hooks/session-start-reset-risk.js +0 -7
- package/dist/bollharness/src/scripts/hooks/session-start-toolkit-reminder.js +0 -7
- package/dist/bollharness/src/scripts/hooks/stop-evaluator.js +0 -157
- package/dist/bollharness/src/scripts/hooks/tool-call-counter.js +0 -6
- package/dist/bollharness/src/scripts/hooks/trace-analyzer.js +0 -10
- package/dist/bollharness/src/scripts/install/install-trust-token.js +0 -7
- package/dist/bollharness/src/scripts/install/multi_project_registry.js +0 -9
- package/dist/bollharness/src/scripts/install/phase2_auto.js +0 -21
- package/dist/bollharness/src/scripts/install/pre_commit_installer.js +0 -6
- package/dist/bollharness/src/scripts/install/tier_selector.js +0 -7
- package/dist/bollharness/src/scripts/install/transcript_miner.js +0 -7
- package/dist/bollharness/src/scripts/lib/claim_patterns.js +0 -10
- package/dist/bollharness/src/scripts/lib/sanitize_patterns.js +0 -12
- package/dist/bollharness/src/scripts/sanitize.js +0 -6
- package/dist/bollharness-integration/context-router-judgment.js.map +0 -1
- package/dist/bollharness-integration/context-router.js.map +0 -1
- package/dist/bollharness-integration/gate-state-machine.js.map +0 -1
- package/dist/bollharness-integration/gate-transition-hooks.js.map +0 -1
- package/dist/bollharness-integration/guard-checker.js.map +0 -1
- package/dist/bollharness-integration/index.js.map +0 -1
- package/dist/bollharness-integration/integration.js.map +0 -1
- package/dist/bollharness-integration/llm/pi-ai.d.ts +0 -60
- package/dist/bollharness-integration/pi-ecosystem-colony/index.d.ts +0 -153
- package/dist/bollharness-integration/pi-ecosystem-goals/index.d.ts +0 -136
- package/dist/bollharness-integration/pi-ecosystem-judgment/decision.d.ts +0 -117
- package/dist/bollharness-integration/pi-ecosystem-judgment/distillation.d.ts +0 -78
- package/dist/bollharness-integration/pi-ecosystem-judgment/index.d.ts +0 -139
- package/dist/bollharness-integration/pi-ecosystem-mcp/index.d.ts +0 -127
- package/dist/bollharness-integration/pi-ecosystem-subagents/index.d.ts +0 -95
- package/dist/bollharness-integration/skill-adapter.js.map +0 -1
- package/dist/constraint-runtime/src/_archive_helper.js +0 -9
- package/dist/constraint-runtime/src/agent/coordinator.js +0 -48
- package/dist/constraint-runtime/src/agent/index.js +0 -1
- package/dist/constraint-runtime/src/assistant/index.js +0 -12
- package/dist/constraint-runtime/src/bootstrap/index.js +0 -12
- package/dist/constraint-runtime/src/bootstrap_graph.js +0 -13
- package/dist/constraint-runtime/src/bridge/index.js +0 -12
- package/dist/constraint-runtime/src/buddy/index.js +0 -12
- package/dist/constraint-runtime/src/cli/index.js +0 -12
- package/dist/constraint-runtime/src/command_graph.js +0 -10
- package/dist/constraint-runtime/src/commands.js +0 -60
- package/dist/constraint-runtime/src/components/index.js +0 -12
- package/dist/constraint-runtime/src/constants/index.js +0 -12
- package/dist/constraint-runtime/src/constraint/budget.js +0 -22
- package/dist/constraint-runtime/src/constraint/budget.js.map +0 -1
- package/dist/constraint-runtime/src/constraint/index.js +0 -2
- package/dist/constraint-runtime/src/constraint/permission.js +0 -20
- package/dist/constraint-runtime/src/constraint/permission.js.map +0 -1
- package/dist/constraint-runtime/src/context.js +0 -30
- package/dist/constraint-runtime/src/coordinator/index.js +0 -12
- package/dist/constraint-runtime/src/cost_hook.js +0 -4
- package/dist/constraint-runtime/src/cost_tracker.js +0 -8
- package/dist/constraint-runtime/src/deferred_init.js +0 -10
- package/dist/constraint-runtime/src/direct_modes.js +0 -6
- package/dist/constraint-runtime/src/dynamic-tool-loader.js +0 -85
- package/dist/constraint-runtime/src/entrypoints/index.js +0 -12
- package/dist/constraint-runtime/src/execution_registry.js +0 -44
- package/dist/constraint-runtime/src/history.js +0 -9
- package/dist/constraint-runtime/src/hooks/index.js +0 -12
- package/dist/constraint-runtime/src/index.js +0 -26
- package/dist/constraint-runtime/src/ink.js +0 -4
- package/dist/constraint-runtime/src/keybindings/index.js +0 -12
- package/dist/constraint-runtime/src/memdir/index.js +0 -12
- package/dist/constraint-runtime/src/migrations/index.js +0 -12
- package/dist/constraint-runtime/src/models.js +0 -1
- package/dist/constraint-runtime/src/models.js.map +0 -1
- package/dist/constraint-runtime/src/moreright/index.js +0 -12
- package/dist/constraint-runtime/src/native_ts/index.js +0 -12
- package/dist/constraint-runtime/src/output_styles/index.js +0 -12
- package/dist/constraint-runtime/src/parity_audit.js +0 -12
- package/dist/constraint-runtime/src/plugins/index.js +0 -12
- package/dist/constraint-runtime/src/port_manifest.js +0 -11
- package/dist/constraint-runtime/src/prefetch.js +0 -9
- package/dist/constraint-runtime/src/query.js +0 -1
- package/dist/constraint-runtime/src/remote/index.js +0 -12
- package/dist/constraint-runtime/src/remote_runtime.js +0 -9
- package/dist/constraint-runtime/src/runtime/index.js +0 -1
- package/dist/constraint-runtime/src/runtime/session.js +0 -35
- package/dist/constraint-runtime/src/schemas/index.js +0 -12
- package/dist/constraint-runtime/src/screens/index.js +0 -12
- package/dist/constraint-runtime/src/server/index.js +0 -12
- package/dist/constraint-runtime/src/services/index.js +0 -12
- package/dist/constraint-runtime/src/session_store.js +0 -22
- package/dist/constraint-runtime/src/setup.js +0 -30
- package/dist/constraint-runtime/src/skills/index.js +0 -1
- package/dist/constraint-runtime/src/skills/skill-registry.js +0 -28
- package/dist/constraint-runtime/src/state/index.js +0 -12
- package/dist/constraint-runtime/src/system_init.js +0 -20
- package/dist/constraint-runtime/src/thinking/engine.js +0 -42
- package/dist/constraint-runtime/src/thinking/index.js +0 -1
- package/dist/constraint-runtime/src/tool_pool.js +0 -8
- package/dist/constraint-runtime/src/tools/OpenCLI/execAdapter.js +0 -7
- package/dist/constraint-runtime/src/tools/OpenCLI/listAdapters.js +0 -7
- package/dist/constraint-runtime/src/tools/OpenCLI/runCommand.js +0 -7
- package/dist/constraint-runtime/src/tools/PolymarketSDK/cancelOrder.js +0 -6
- package/dist/constraint-runtime/src/tools/PolymarketSDK/createOrder.js +0 -6
- package/dist/constraint-runtime/src/tools/PolymarketSDK/getMarket.js +0 -5
- package/dist/constraint-runtime/src/tools/PolymarketSDK/getOrders.js +0 -6
- package/dist/constraint-runtime/src/tools/PolymarketSDK/listMarkets.js +0 -4
- package/dist/constraint-runtime/src/tools/SafeSDK/confirmTransaction.js +0 -6
- package/dist/constraint-runtime/src/tools/SafeSDK/createTransaction.js +0 -8
- package/dist/constraint-runtime/src/tools/SafeSDK/deploySafe.js +0 -6
- package/dist/constraint-runtime/src/tools/SafeSDK/executeTransaction.js +0 -6
- package/dist/constraint-runtime/src/tools/SafeSDK/getBalance.js +0 -6
- package/dist/constraint-runtime/src/tools/SafeSDK/getPendingTransactions.js +0 -6
- package/dist/constraint-runtime/src/tools/SafeSDK/proposeTransaction.js +0 -6
- package/dist/constraint-runtime/src/tools/WalletTools/autoPay.js +0 -29
- package/dist/constraint-runtime/src/tools/WalletTools/createWallet.js +0 -10
- package/dist/constraint-runtime/src/tools/WalletTools/getBalance.js +0 -13
- package/dist/constraint-runtime/src/tools/WalletTools/importWallet.js +0 -22
- package/dist/constraint-runtime/src/tools/WalletTools/sendTransaction.js +0 -25
- package/dist/constraint-runtime/src/tools/WalletTools/signMessage.js +0 -10
- package/dist/constraint-runtime/src/tools/WalletTools/transferToken.js +0 -25
- package/dist/constraint-runtime/src/tools.js +0 -80
- package/dist/constraint-runtime/src/transcript.js +0 -19
- package/dist/constraint-runtime/src/types/index.js +0 -12
- package/dist/constraint-runtime/src/upstream_proxy/index.js +0 -12
- package/dist/constraint-runtime/src/utils/index.js +0 -12
- package/dist/constraint-runtime/src/vim/index.js +0 -12
- package/dist/constraint-runtime/src/voice/index.js +0 -12
- package/dist/constraints/index.js.map +0 -1
- package/dist/documents/reader.js.map +0 -1
- package/dist/llm/config-store.js.map +0 -1
- package/dist/llm/pi-ai.js.map +0 -1
- package/dist/network/agent-network.js.map +0 -1
- package/dist/network/iroh-integration.js.map +0 -1
- package/dist/network/iroh-transport.js.map +0 -1
- package/dist/network/p2p.js.map +0 -1
- package/dist/network/storage/adapters/json-adapter.js.map +0 -1
- package/dist/pi-ecosystem-colony/index.js.map +0 -1
- package/dist/pi-ecosystem-goals/index.js.map +0 -1
- package/dist/pi-ecosystem-judgment/decision.js.map +0 -1
- package/dist/pi-ecosystem-judgment/distillation.js.map +0 -1
- package/dist/pi-ecosystem-judgment/human-value-store.js.map +0 -1
- package/dist/pi-ecosystem-judgment/index.js.map +0 -1
- package/dist/pi-ecosystem-judgment/value-injection.js.map +0 -1
- package/dist/pi-ecosystem-mcp/index.js.map +0 -1
- package/dist/pi-ecosystem-subagents/index.js.map +0 -1
- package/dist/social/ant-colony/AdaptiveHeartbeat.js.map +0 -1
- package/dist/social/ant-colony/PheromoneEngine.js.map +0 -1
- package/dist/social/ant-colony/types.js.map +0 -1
- package/dist/social/channels/ChannelManager.js.map +0 -1
- package/dist/social/channels/DiapChannelBridge.js.map +0 -1
- package/dist/social/channels/InterestMatcher.js.map +0 -1
- package/dist/social/channels/types.js.map +0 -1
- package/dist/social/global-shared-context.js.map +0 -1
- package/dist/social/heartbeat.js.map +0 -1
- package/lefthook.yml +0 -29
- package/scripts/auto-evolve-loop.ts +0 -376
- package/scripts/auto-evolve-oneshot.sh +0 -155
- package/scripts/auto-evolve-snapshot.sh +0 -136
- package/scripts/build-cli.js +0 -216
- package/scripts/build-web.ts +0 -82
- package/scripts/detect-schema-changes.sh +0 -48
- package/scripts/diff-reviewer.ts +0 -159
- package/scripts/postinstall.js +0 -153
- package/scripts/weekly-report.ts +0 -364
- package/src/agents/agent-manifest-protocol.ts +0 -117
- package/src/agents/constraint-layer.ts +0 -309
- package/src/agents/iroh-secret.ts +0 -32
- package/src/agents/p2p-chat-tools.ts +0 -383
- package/src/agents/p2p-document-tools.ts +0 -347
- package/src/agents/pi-sdk.ts +0 -2462
- package/src/agents/protocol.ts +0 -398
- package/src/agents/shell-guard.ts +0 -417
- package/src/agents/shell-tool.ts +0 -103
- package/src/agents/skill-loader.ts +0 -202
- package/src/agents/subagent-manager.ts +0 -553
- package/src/agents/workflow-engine.ts +0 -332
- package/src/agents/workflow-pivot-loop.ts +0 -675
- package/src/bollharness/.sanitize-report.json +0 -13
- package/src/bollharness/CLAUDE.md +0 -73
- package/src/bollharness/LICENSE +0 -21
- package/src/bollharness/README.md +0 -143
- package/src/bollharness/README.zh-CN.md +0 -131
- package/src/bollharness/package.json +0 -20
- package/src/bollharness/reference/SOURCE-COMMIT.txt +0 -3
- package/src/bollharness/reference/boll-reference/scripts/hooks/.sanitize-report.json +0 -12
- package/src/bollharness/reference/boll-reference/scripts/hooks/find-boll-root.sh +0 -27
- package/src/bollharness/reference/boll-reference/scripts/hooks/precompact.sh +0 -57
- package/src/bollharness/reference/boll-reference/scripts/hooks/stop-evaluator.md +0 -57
- package/src/bollharness/schemas/metrics-jsonl-allowlist.json +0 -67
- package/src/bollharness/scripts/checks/next_decision_number.sh +0 -48
- package/src/bollharness/scripts/ci/count-components.sh +0 -65
- package/src/bollharness/scripts/context-fragments/artifact-linkage.md +0 -14
- package/src/bollharness/scripts/context-fragments/auth-consumers.md +0 -17
- package/src/bollharness/scripts/context-fragments/bridge-constitution.md +0 -13
- package/src/bollharness/scripts/context-fragments/catalyst-distributed.md +0 -18
- package/src/bollharness/scripts/context-fragments/closure-checklist.md +0 -13
- package/src/bollharness/scripts/context-fragments/contract-consumers.md +0 -15
- package/src/bollharness/scripts/context-fragments/db-shared-structures.md +0 -15
- package/src/bollharness/scripts/context-fragments/fixed-three-layers.md +0 -19
- package/src/bollharness/scripts/context-fragments/general-dev-principles.md +0 -11
- package/src/bollharness/scripts/context-fragments/issue-first.md +0 -8
- package/src/bollharness/scripts/context-fragments/mcp-parity.md +0 -16
- package/src/bollharness/scripts/context-fragments/pi-agent-operations.md +0 -108
- package/src/bollharness/scripts/context-fragments/protocol-consumers.md +0 -15
- package/src/bollharness/scripts/context-fragments/run-events-consumers.md +0 -15
- package/src/bollharness/scripts/context-fragments/scene-fidelity.md +0 -13
- package/src/bollharness/scripts/context-fragments/truth-source-hierarchy.md +0 -15
- package/src/bollharness/scripts/context-fragments/two-language.md +0 -15
- package/src/bollharness/scripts/context-fragments/version-sources.md +0 -14
- package/src/bollharness/scripts/hooks/find-project-root.sh +0 -47
- package/src/bollharness/scripts/hooks/inbox-poll.sh +0 -78
- package/src/bollharness/scripts/hooks/precompact.sh +0 -56
- package/src/bollharness/scripts/hooks/stop-evaluator.md +0 -83
- package/src/bollharness/scripts/sync-from-upstream.sh +0 -281
- package/src/bollharness/src/index.ts +0 -5
- package/src/bollharness/src/scripts/checks/check_adr_plan_numbering.ts +0 -11
- package/src/bollharness/src/scripts/checks/check_api_types.ts +0 -52
- package/src/bollharness/src/scripts/checks/check_artifact_link.ts +0 -156
- package/src/bollharness/src/scripts/checks/check_bridge_deps.ts +0 -11
- package/src/bollharness/src/scripts/checks/check_bugfix_binding.ts +0 -11
- package/src/bollharness/src/scripts/checks/check_bugfix_binding_ci.ts +0 -11
- package/src/bollharness/src/scripts/checks/check_doc_file_references.ts +0 -11
- package/src/bollharness/src/scripts/checks/check_doc_freshness.ts +0 -141
- package/src/bollharness/src/scripts/checks/check_doc_links.ts +0 -36
- package/src/bollharness/src/scripts/checks/check_file_existence_claims.ts +0 -11
- package/src/bollharness/src/scripts/checks/check_fragment_integrity.ts +0 -40
- package/src/bollharness/src/scripts/checks/check_hook_installed.ts +0 -70
- package/src/bollharness/src/scripts/checks/check_issue_closure.ts +0 -51
- package/src/bollharness/src/scripts/checks/check_mcp_parity.ts +0 -11
- package/src/bollharness/src/scripts/checks/check_security.ts +0 -54
- package/src/bollharness/src/scripts/checks/check_skill_parity.ts +0 -11
- package/src/bollharness/src/scripts/checks/check_versions.ts +0 -11
- package/src/bollharness/src/scripts/checks/finding.ts +0 -35
- package/src/bollharness/src/scripts/checks/next_decision_number.ts +0 -24
- package/src/bollharness/src/scripts/checks/regenerate_magic_docs.ts +0 -11
- package/src/bollharness/src/scripts/ci/detect_rebaseline_triggers.ts +0 -14
- package/src/bollharness/src/scripts/ci/scan_subprocess_cfg.ts +0 -14
- package/src/bollharness/src/scripts/ci/scan_verify_artifacts.ts +0 -14
- package/src/bollharness/src/scripts/ci/scan_yaml_schema.ts +0 -14
- package/src/bollharness/src/scripts/context_router.ts +0 -76
- package/src/bollharness/src/scripts/deploy-guard.ts +0 -182
- package/src/bollharness/src/scripts/guard-feedback.ts +0 -215
- package/src/bollharness/src/scripts/guard_router.ts +0 -194
- package/src/bollharness/src/scripts/hooks/_hook_output.js +0 -3
- package/src/bollharness/src/scripts/hooks/_hook_output.ts +0 -11
- package/src/bollharness/src/scripts/hooks/auto-python3.ts +0 -10
- package/src/bollharness/src/scripts/hooks/deploy-progress-on-session-end.ts +0 -10
- package/src/bollharness/src/scripts/hooks/failure-analyzer.ts +0 -10
- package/src/bollharness/src/scripts/hooks/gate-judgment-inject.ts +0 -111
- package/src/bollharness/src/scripts/hooks/gate-transition-judgment.ts +0 -74
- package/src/bollharness/src/scripts/hooks/inbox-ack.ts +0 -10
- package/src/bollharness/src/scripts/hooks/inbox-inject-on-start.ts +0 -10
- package/src/bollharness/src/scripts/hooks/inbox-validate.ts +0 -10
- package/src/bollharness/src/scripts/hooks/inbox-write-ledger.ts +0 -10
- package/src/bollharness/src/scripts/hooks/initializer-agent.ts +0 -10
- package/src/bollharness/src/scripts/hooks/loop-detection.ts +0 -83
- package/src/bollharness/src/scripts/hooks/owner-guard.ts +0 -10
- package/src/bollharness/src/scripts/hooks/precompact.ts +0 -10
- package/src/bollharness/src/scripts/hooks/review-agent-gatekeeper.ts +0 -10
- package/src/bollharness/src/scripts/hooks/risk-tracker.ts +0 -121
- package/src/bollharness/src/scripts/hooks/sanitize-on-read.ts +0 -10
- package/src/bollharness/src/scripts/hooks/session-reflection.ts +0 -12
- package/src/bollharness/src/scripts/hooks/session-start-magic-docs.ts +0 -12
- package/src/bollharness/src/scripts/hooks/session-start-reset-risk.ts +0 -12
- package/src/bollharness/src/scripts/hooks/session-start-toolkit-reminder.ts +0 -12
- package/src/bollharness/src/scripts/hooks/stop-evaluator.ts +0 -164
- package/src/bollharness/src/scripts/hooks/tool-call-counter.ts +0 -10
- package/src/bollharness/src/scripts/hooks/trace-analyzer.ts +0 -14
- package/src/bollharness/src/scripts/install/install-trust-token.ts +0 -13
- package/src/bollharness/src/scripts/install/multi_project_registry.ts +0 -13
- package/src/bollharness/src/scripts/install/phase2_auto.ts +0 -28
- package/src/bollharness/src/scripts/install/pre_commit_installer.ts +0 -10
- package/src/bollharness/src/scripts/install/tier_selector.ts +0 -10
- package/src/bollharness/src/scripts/install/transcript_miner.ts +0 -13
- package/src/bollharness/src/scripts/lib/claim_patterns.ts +0 -11
- package/src/bollharness/src/scripts/lib/sanitize_patterns.ts +0 -13
- package/src/bollharness/src/scripts/sanitize.ts +0 -9
- package/src/bollharness/templates/persona/default.json +0 -19
- package/src/bollharness/templates/scaffold/.gitignore.append +0 -16
- package/src/bollharness/templates/scaffold/CLAUDE.md +0 -89
- package/src/bollharness-integration/channel-judgment-engine.ts +0 -634
- package/src/bollharness-integration/context-chain-router.ts +0 -474
- package/src/bollharness-integration/context-router-judgment.ts +0 -339
- package/src/bollharness-integration/context-router.ts +0 -583
- package/src/bollharness-integration/gate-state-machine.ts +0 -444
- package/src/bollharness-integration/gate-transition-hooks.ts +0 -137
- package/src/bollharness-integration/guard-checker.ts +0 -451
- package/src/bollharness-integration/index.ts +0 -195
- package/src/bollharness-integration/integration.ts +0 -538
- package/src/bollharness-integration/judgment-prompts.yaml +0 -535
- package/src/bollharness-integration/llm-judgment-engine.ts +0 -712
- package/src/bollharness-integration/skill-adapter.ts +0 -646
- package/src/bootstrap/bootstrap.ts +0 -132
- package/src/bootstrap/context-collector.ts +0 -342
- package/src/bootstrap/lifecycle-hooks.ts +0 -176
- package/src/bootstrap/project-context.ts +0 -163
- package/src/cli/interface.ts +0 -211
- package/src/cli-entry.ts +0 -304
- package/src/constraints/index.ts +0 -6
- package/src/documents/reader.ts +0 -85
- package/src/documents/store.ts +0 -252
- package/src/electron-preload.ts +0 -25
- package/src/electron.ts +0 -200
- package/src/heartbeat/DaemonManager.ts +0 -283
- package/src/heartbeat/HealthMonitor.ts +0 -316
- package/src/heartbeat/StartupVerifier.ts +0 -223
- package/src/heartbeat/Watchdog.ts +0 -208
- package/src/heartbeat/index.ts +0 -109
- package/src/heartbeat/self-improve-bus.ts +0 -110
- package/src/heartbeat/types.ts +0 -82
- package/src/index.ts +0 -1690
- package/src/llm/audio-config-store.ts +0 -246
- package/src/llm/config-store.ts +0 -400
- package/src/llm/llm-judgment-client.ts +0 -470
- package/src/llm/pi-ai.ts +0 -558
- package/src/llm/video-config-store.ts +0 -257
- package/src/network/agent-network.ts +0 -800
- package/src/network/hybrid-messenger.ts +0 -199
- package/src/network/iroh-bootstrap.ts +0 -57
- package/src/network/iroh-discovery.ts +0 -208
- package/src/network/iroh-integration.ts +0 -158
- package/src/network/iroh-transport.ts +0 -637
- package/src/network/known-peers.ts +0 -102
- package/src/network/p2p-direct.ts +0 -240
- package/src/network/p2p-secret.ts +0 -153
- package/src/network/p2p.ts +0 -964
- package/src/network/storage/adapters/json-adapter.ts +0 -454
- package/src/network/storage/index.ts +0 -203
- package/src/network/storage/types.ts +0 -166
- package/src/security/builtin-guards.ts +0 -162
- package/src/security/context-router-tool.ts +0 -122
- package/src/security/react-harness.ts +0 -177
- package/src/security/tool-gate.ts +0 -294
- package/src/social/ant-colony/index.js +0 -19
- package/src/social/channels/ChannelManager.ts +0 -485
- package/src/social/channels/DiapChannelBridge.ts +0 -501
- package/src/social/channels/InterestMatcher.ts +0 -189
- package/src/social/channels/agent-workflow-config.json +0 -214
- package/src/social/channels/agent-workflow-config.yaml +0 -334
- package/src/social/channels/channel-agent-session.ts +0 -407
- package/src/social/channels/channel-heartbeat-agent.ts +0 -622
- package/src/social/channels/diap-doc-parser.ts +0 -282
- package/src/social/channels/harness-workflow-integrator.ts +0 -594
- package/src/social/channels/index.ts +0 -22
- package/src/social/channels/types.ts +0 -115
- package/src/social/global-shared-context.ts +0 -506
- package/src/social/heartbeat.ts +0 -1057
- package/src/social/persona/enhanced-persona.ts +0 -359
- package/src/types.d.ts +0 -12
- package/src/utils/auto-evolve-policy.ts +0 -138
- package/src/utils/auto-update.ts +0 -482
- package/src/utils/clamp.ts +0 -5
- package/src/web/agent-delegate-server.ts +0 -148
- package/src/web/api-config.html +0 -520
- package/src/web/client.js +0 -4898
- package/src/web/components/p2p/P2PModal.tsx +0 -416
- package/src/web/components/p2p/index.ts +0 -566
- package/src/web/components/p2p/index.tsx +0 -297
- package/src/web/components/p2p/p2p-connection.ts +0 -338
- package/src/web/components/p2p/p2p-identity.ts +0 -92
- package/src/web/components/p2p/p2p-manager.ts +0 -147
- package/src/web/components/p2p/p2p-messages.ts +0 -219
- package/src/web/components/p2p/p2p-modal.ts +0 -685
- package/src/web/components/p2p/p2p-store-memory.ts +0 -162
- package/src/web/components/p2p/p2p-tools.ts +0 -315
- package/src/web/components/p2p/types.ts +0 -170
- package/src/web/components/wallet-viem.mjs +0 -118
- package/src/web/design.md +0 -99
- package/src/web/icons/apple-touch-icon.png +0 -0
- package/src/web/icons/favicon-16x16.png +0 -0
- package/src/web/icons/favicon-192x192.png +0 -0
- package/src/web/icons/favicon-32x32.png +0 -0
- package/src/web/icons/favicon-48x48.png +0 -0
- package/src/web/icons/favicon-512x512.png +0 -0
- package/src/web/icons/favicon.icns +0 -0
- package/src/web/icons/favicon.ico +0 -0
- package/src/web/icons/icon.png +0 -0
- package/src/web/icons/image.png +0 -0
- package/src/web/index.html +0 -382
- package/src/web/iroh-delegate-transport.ts +0 -139
- package/src/web/manifest.json +0 -21
- package/src/web/server.ts +0 -5571
- package/src/web/style.css +0 -4455
- package/staging/auto-evolve/clean-001/.review-verdict +0 -9
- package/staging/auto-evolve/clean-001/clean-001.patch +0 -14
- package/staging/auto-evolve/e2e-001/.patch-id +0 -1
- package/staging/auto-evolve/e2e-001/.review-verdict +0 -12
- package/staging/auto-evolve/e2e-001/e2e-001.patch +0 -11
- package/staging/auto-evolve/test-bad/.review-verdict +0 -12
- package/staging/auto-evolve/test-bad/test-bad.patch +0 -11
- package/tsconfig.cli.json +0 -16
- package/tsconfig.electron.json +0 -20
- package/tsconfig.json +0 -18
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
|
-
import * as path from 'path';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
4
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
5
|
-
const __dirname = path.dirname(__filename);
|
|
6
|
-
function resolveToolPath(sourceHint) {
|
|
7
|
-
return path.join(__dirname, sourceHint);
|
|
8
|
-
}
|
|
9
|
-
function inferFunctionName(sourceHint) {
|
|
10
|
-
const basename = path.basename(sourceHint, path.extname(sourceHint));
|
|
11
|
-
const nameMap = {
|
|
12
|
-
listMarkets: 'listMarkets',
|
|
13
|
-
getMarket: 'getMarket',
|
|
14
|
-
createOrder: 'createOrder',
|
|
15
|
-
cancelOrder: 'cancelOrder',
|
|
16
|
-
getOrders: 'getOrders',
|
|
17
|
-
createTransaction: 'createTransaction',
|
|
18
|
-
proposeTransaction: 'proposeTransaction',
|
|
19
|
-
confirmTransaction: 'confirmTransaction',
|
|
20
|
-
executeTransaction: 'executeTransaction',
|
|
21
|
-
getPendingTransactions: 'getPendingTransactions',
|
|
22
|
-
getBalance: 'getBalance',
|
|
23
|
-
deploySafe: 'deploySafe',
|
|
24
|
-
runCommand: 'runCommand',
|
|
25
|
-
listAdapters: 'listAdapters',
|
|
26
|
-
execAdapter: 'execAdapter',
|
|
27
|
-
};
|
|
28
|
-
return nameMap[basename] || basename;
|
|
29
|
-
}
|
|
30
|
-
export async function executeToolFromSnapshot(sourceHint, params) {
|
|
31
|
-
try {
|
|
32
|
-
const fullPath = resolveToolPath(sourceHint);
|
|
33
|
-
if (!fs.existsSync(fullPath)) {
|
|
34
|
-
return {
|
|
35
|
-
success: false,
|
|
36
|
-
error: `Tool file not found: ${fullPath}`,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
const module = await import(`file://${fullPath}?t=${Date.now()}`);
|
|
40
|
-
const functionName = inferFunctionName(sourceHint);
|
|
41
|
-
if (typeof module[functionName] !== 'function') {
|
|
42
|
-
return {
|
|
43
|
-
success: false,
|
|
44
|
-
error: `Function '${functionName}' not found in ${sourceHint}`,
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
const result = await module[functionName](params);
|
|
48
|
-
return {
|
|
49
|
-
success: true,
|
|
50
|
-
data: result,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
return {
|
|
55
|
-
success: false,
|
|
56
|
-
error: error instanceof Error ? error.message : String(error),
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
export class DynamicToolExecutor {
|
|
61
|
-
async loadAndExecute(modulePath, functionName, params) {
|
|
62
|
-
try {
|
|
63
|
-
const fullPath = resolveToolPath(modulePath);
|
|
64
|
-
if (!fs.existsSync(fullPath)) {
|
|
65
|
-
return { success: false, error: `Module not found: ${fullPath}` };
|
|
66
|
-
}
|
|
67
|
-
const module = await import(`file://${fullPath}?t=${Date.now()}`);
|
|
68
|
-
if (typeof module[functionName] !== 'function') {
|
|
69
|
-
return {
|
|
70
|
-
success: false,
|
|
71
|
-
error: `Function '${functionName}' not exported from ${modulePath}`,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
const result = await module[functionName](params);
|
|
75
|
-
return { success: true, data: result };
|
|
76
|
-
}
|
|
77
|
-
catch (error) {
|
|
78
|
-
return {
|
|
79
|
-
success: false,
|
|
80
|
-
error: error instanceof Error ? error.message : String(error),
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
export const defaultExecutor = new DynamicToolExecutor();
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('entrypoints');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { PORTED_COMMANDS, executeCommand } from './commands.js';
|
|
2
|
-
import { PORTED_TOOLS, executeTool } from './tools.js';
|
|
3
|
-
export class MirroredCommand {
|
|
4
|
-
name;
|
|
5
|
-
sourceHint;
|
|
6
|
-
constructor(name, sourceHint) {
|
|
7
|
-
this.name = name;
|
|
8
|
-
this.sourceHint = sourceHint;
|
|
9
|
-
}
|
|
10
|
-
execute(prompt) {
|
|
11
|
-
return executeCommand(this.name, prompt).message;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class MirroredTool {
|
|
15
|
-
name;
|
|
16
|
-
sourceHint;
|
|
17
|
-
constructor(name, sourceHint) {
|
|
18
|
-
this.name = name;
|
|
19
|
-
this.sourceHint = sourceHint;
|
|
20
|
-
}
|
|
21
|
-
async execute(payload) {
|
|
22
|
-
const result = await executeTool(this.name, payload);
|
|
23
|
-
return result.message;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export class ExecutionRegistry {
|
|
27
|
-
commands;
|
|
28
|
-
tools;
|
|
29
|
-
constructor(commands, tools) {
|
|
30
|
-
this.commands = commands;
|
|
31
|
-
this.tools = tools;
|
|
32
|
-
}
|
|
33
|
-
command(name) {
|
|
34
|
-
const lowered = name.toLowerCase();
|
|
35
|
-
return this.commands.find(c => c.name.toLowerCase() === lowered);
|
|
36
|
-
}
|
|
37
|
-
tool(name) {
|
|
38
|
-
const lowered = name.toLowerCase();
|
|
39
|
-
return this.tools.find(t => t.name.toLowerCase() === lowered);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export function buildExecutionRegistry() {
|
|
43
|
-
return new ExecutionRegistry(PORTED_COMMANDS.map(m => new MirroredCommand(m.name, m.sourceHint)), PORTED_TOOLS.map(m => new MirroredTool(m.name, m.sourceHint)));
|
|
44
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('hooks');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export * from './constraint/index.js';
|
|
2
|
-
export * from './thinking/index.js';
|
|
3
|
-
export * from './agent/index.js';
|
|
4
|
-
export * from './skills/index.js';
|
|
5
|
-
export * from './runtime/index.js';
|
|
6
|
-
export { ToolPermissionContext } from './constraint/permission.js';
|
|
7
|
-
export { BudgetTracker } from './constraint/budget.js';
|
|
8
|
-
export { DeepThinkingEngine } from './thinking/engine.js';
|
|
9
|
-
export { AgentCoordinator } from './agent/coordinator.js';
|
|
10
|
-
export { SkillRegistry } from './skills/skill-registry.js';
|
|
11
|
-
export { Session } from './runtime/session.js';
|
|
12
|
-
export * from './models.js';
|
|
13
|
-
export { HistoryLog } from './history.js';
|
|
14
|
-
export { TranscriptStore } from './transcript.js';
|
|
15
|
-
export { CostTracker } from './cost_tracker.js';
|
|
16
|
-
export { buildSetup, runSetup } from './setup.js';
|
|
17
|
-
export { buildPortContext } from './context.js';
|
|
18
|
-
export { buildCommandGraph } from './command_graph.js';
|
|
19
|
-
export { buildBootstrapGraph } from './bootstrap_graph.js';
|
|
20
|
-
export { runParityAudit } from './parity_audit.js';
|
|
21
|
-
export { runRemoteMode, runSshMode, runTeleportMode } from './remote_runtime.js';
|
|
22
|
-
export { runDirectConnect, runDeepLink } from './direct_modes.js';
|
|
23
|
-
export { assembleToolPool } from './tool_pool.js';
|
|
24
|
-
export { saveSession, loadSession } from './session_store.js';
|
|
25
|
-
export const VERSION = '0.1.0';
|
|
26
|
-
export const NAME = '@bolloon/constraint-runtime';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('keybindings');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('memdir');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('migrations');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/constraint-runtime/src/models.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('moreright');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('native_ts');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('outputstyles');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export function runParityAudit() {
|
|
2
|
-
return {
|
|
3
|
-
archivePresent: false,
|
|
4
|
-
rootFileCoverage: [0, 0],
|
|
5
|
-
directoryCoverage: [0, 0],
|
|
6
|
-
totalFileRatio: [0, 0],
|
|
7
|
-
commandEntryRatio: [0, 0],
|
|
8
|
-
toolEntryRatio: [0, 0],
|
|
9
|
-
missingRootTargets: [],
|
|
10
|
-
missingDirectoryTargets: [],
|
|
11
|
-
};
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('plugins');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as path from 'path';
|
|
2
|
-
import { fileURLToPath } from 'url';
|
|
3
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
4
|
-
const __dirname = path.dirname(__filename);
|
|
5
|
-
export function buildPortManifest(srcRoot) {
|
|
6
|
-
return {
|
|
7
|
-
srcRoot: srcRoot || __dirname,
|
|
8
|
-
totalPythonFiles: 0,
|
|
9
|
-
topLevelModules: [],
|
|
10
|
-
};
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function startMdmRawRead() {
|
|
2
|
-
return { name: 'mdm_raw_read', started: true, detail: 'Simulated MDM raw-read prefetch for workspace bootstrap' };
|
|
3
|
-
}
|
|
4
|
-
export function startKeychainPrefetch() {
|
|
5
|
-
return { name: 'keychain_prefetch', started: true, detail: 'Simulated keychain prefetch for trusted startup path' };
|
|
6
|
-
}
|
|
7
|
-
export function startProjectScan(root) {
|
|
8
|
-
return { name: 'project_scan', started: true, detail: `Scanned project root ${root}` };
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('remote');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function runRemoteMode(target) {
|
|
2
|
-
return { mode: 'remote', connected: true, detail: `Remote control placeholder prepared for ${target}` };
|
|
3
|
-
}
|
|
4
|
-
export function runSshMode(target) {
|
|
5
|
-
return { mode: 'ssh', connected: true, detail: `SSH proxy placeholder prepared for ${target}` };
|
|
6
|
-
}
|
|
7
|
-
export function runTeleportMode(target) {
|
|
8
|
-
return { mode: 'teleport', connected: true, detail: `Teleport resume/create placeholder prepared for ${target}` };
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Session } from './session.js';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ToolPermissionContext } from '../constraint/permission.js';
|
|
2
|
-
import { BudgetTracker } from '../constraint/budget.js';
|
|
3
|
-
export class Session {
|
|
4
|
-
sessionId;
|
|
5
|
-
messages;
|
|
6
|
-
context;
|
|
7
|
-
turnCount;
|
|
8
|
-
permissionContext;
|
|
9
|
-
budget;
|
|
10
|
-
constructor(sessionId, messages = [], context = {}, turnCount = 0, permissionContext = ToolPermissionContext.fromIterables(), budget = new BudgetTracker()) {
|
|
11
|
-
this.sessionId = sessionId;
|
|
12
|
-
this.messages = messages;
|
|
13
|
-
this.context = context;
|
|
14
|
-
this.turnCount = turnCount;
|
|
15
|
-
this.permissionContext = permissionContext;
|
|
16
|
-
this.budget = budget;
|
|
17
|
-
}
|
|
18
|
-
addMessage(msg) {
|
|
19
|
-
this.messages.push(msg);
|
|
20
|
-
this.turnCount++;
|
|
21
|
-
}
|
|
22
|
-
get history() {
|
|
23
|
-
return [...this.messages];
|
|
24
|
-
}
|
|
25
|
-
clear() {
|
|
26
|
-
this.messages = [];
|
|
27
|
-
this.turnCount = 0;
|
|
28
|
-
}
|
|
29
|
-
setContext(key, value) {
|
|
30
|
-
this.context[key] = value;
|
|
31
|
-
}
|
|
32
|
-
getContext(key) {
|
|
33
|
-
return this.context[key];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('schemas');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('screens');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('server');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('services');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
|
-
import * as path from 'path';
|
|
3
|
-
const SESSION_DIR = '.port_sessions';
|
|
4
|
-
export function saveSession(session) {
|
|
5
|
-
const targetDir = path.join(process.cwd(), SESSION_DIR);
|
|
6
|
-
if (!fs.existsSync(targetDir)) {
|
|
7
|
-
fs.mkdirSync(targetDir, { recursive: true });
|
|
8
|
-
}
|
|
9
|
-
const filePath = path.join(targetDir, `${session.sessionId}.json`);
|
|
10
|
-
fs.writeFileSync(filePath, JSON.stringify(session, null, 2));
|
|
11
|
-
return filePath;
|
|
12
|
-
}
|
|
13
|
-
export function loadSession(sessionId) {
|
|
14
|
-
const filePath = path.join(process.cwd(), SESSION_DIR, `${sessionId}.json`);
|
|
15
|
-
const data = JSON.parse(fs.readFileSync(filePath, 'utf-8'));
|
|
16
|
-
return {
|
|
17
|
-
sessionId: data.sessionId,
|
|
18
|
-
messages: data.messages,
|
|
19
|
-
inputTokens: data.inputTokens,
|
|
20
|
-
outputTokens: data.outputTokens,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as platform from 'platform';
|
|
2
|
-
import { runDeferredInit } from './deferred_init.js';
|
|
3
|
-
import { startMdmRawRead, startKeychainPrefetch, startProjectScan } from './prefetch.js';
|
|
4
|
-
export function buildWorkspaceSetup() {
|
|
5
|
-
return {
|
|
6
|
-
pythonVersion: `${platform.version}`,
|
|
7
|
-
implementation: platform.name || 'unknown',
|
|
8
|
-
platformName: platform.os?.toString() || 'unknown',
|
|
9
|
-
testCommand: 'npm test',
|
|
10
|
-
startupSteps: [
|
|
11
|
-
'start top-level prefetch side effects',
|
|
12
|
-
'build workspace context',
|
|
13
|
-
'load mirrored command snapshot',
|
|
14
|
-
'load mirrored tool snapshot',
|
|
15
|
-
'prepare parity audit hooks',
|
|
16
|
-
'apply trust-gated deferred init',
|
|
17
|
-
],
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function runSetup(cwd, trusted = true) {
|
|
21
|
-
const root = cwd || process.cwd();
|
|
22
|
-
return {
|
|
23
|
-
setup: buildWorkspaceSetup(),
|
|
24
|
-
prefetches: [startMdmRawRead(), startKeychainPrefetch(), startProjectScan(root)],
|
|
25
|
-
deferredInit: runDeferredInit(trusted),
|
|
26
|
-
trusted,
|
|
27
|
-
cwd: root,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export { buildWorkspaceSetup as buildSetup };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SkillRegistry } from './skill-registry.js';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export class SkillRegistry {
|
|
2
|
-
skills = new Map();
|
|
3
|
-
register(skill) {
|
|
4
|
-
if (this.skills.has(skill.name)) {
|
|
5
|
-
throw new Error(`Skill already registered: ${skill.name}`);
|
|
6
|
-
}
|
|
7
|
-
this.skills.set(skill.name, skill);
|
|
8
|
-
}
|
|
9
|
-
unregister(name) {
|
|
10
|
-
return this.skills.delete(name);
|
|
11
|
-
}
|
|
12
|
-
get(name) {
|
|
13
|
-
return this.skills.get(name);
|
|
14
|
-
}
|
|
15
|
-
list() {
|
|
16
|
-
return Array.from(this.skills.values());
|
|
17
|
-
}
|
|
18
|
-
has(name) {
|
|
19
|
-
return this.skills.has(name);
|
|
20
|
-
}
|
|
21
|
-
async execute(name, params) {
|
|
22
|
-
const skill = this.skills.get(name);
|
|
23
|
-
if (!skill) {
|
|
24
|
-
throw new Error(`Skill not found: ${name}`);
|
|
25
|
-
}
|
|
26
|
-
return skill.execute(params);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { loadArchiveMetadata } from '../_archive_helper.js';
|
|
2
|
-
const SNAPSHOT = loadArchiveMetadata('state');
|
|
3
|
-
export const ARCHIVE_NAME = SNAPSHOT['archive_name'];
|
|
4
|
-
export const MODULE_COUNT = SNAPSHOT['module_count'];
|
|
5
|
-
export const SAMPLE_FILES = SNAPSHOT['sample_files'];
|
|
6
|
-
export const PORTING_NOTE = `Python placeholder package for '${ARCHIVE_NAME}' with ${MODULE_COUNT} archived module references.`;
|
|
7
|
-
export default {
|
|
8
|
-
ARCHIVE_NAME,
|
|
9
|
-
MODULE_COUNT,
|
|
10
|
-
PORTING_NOTE,
|
|
11
|
-
SAMPLE_FILES,
|
|
12
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { getCommands, builtInCommandNames } from './commands.js';
|
|
2
|
-
import { getTools } from './tools.js';
|
|
3
|
-
import { runSetup } from './setup.js';
|
|
4
|
-
export function buildSystemInitMessage(trusted = true) {
|
|
5
|
-
const setup = runSetup(undefined, trusted);
|
|
6
|
-
const commands = getCommands();
|
|
7
|
-
const tools = getTools();
|
|
8
|
-
const lines = [
|
|
9
|
-
'# System Init',
|
|
10
|
-
'',
|
|
11
|
-
`Trusted: ${setup.trusted}`,
|
|
12
|
-
`Built-in command names: ${builtInCommandNames().size}`,
|
|
13
|
-
`Loaded command entries: ${commands.length}`,
|
|
14
|
-
`Loaded tool entries: ${tools.length}`,
|
|
15
|
-
'',
|
|
16
|
-
'Startup steps:',
|
|
17
|
-
...setup.setup.startupSteps.map(step => `- ${step}`),
|
|
18
|
-
];
|
|
19
|
-
return lines.join('\n');
|
|
20
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export class DeepThinkingEngine {
|
|
2
|
-
maxDepth;
|
|
3
|
-
constructor(maxDepth = 3) {
|
|
4
|
-
this.maxDepth = maxDepth;
|
|
5
|
-
}
|
|
6
|
-
async think(prompt) {
|
|
7
|
-
const steps = [];
|
|
8
|
-
let current = prompt;
|
|
9
|
-
for (let i = 0; i < this.maxDepth; i++) {
|
|
10
|
-
const thought = await this.generateThought(current, i);
|
|
11
|
-
const reflection = await this.reflect(thought, current, i);
|
|
12
|
-
steps.push({
|
|
13
|
-
step: i + 1,
|
|
14
|
-
thought,
|
|
15
|
-
reflection: reflection.question,
|
|
16
|
-
improvement: reflection.improvement
|
|
17
|
-
});
|
|
18
|
-
if (reflection.improvement) {
|
|
19
|
-
current = reflection.improvement;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return {
|
|
23
|
-
originalPrompt: prompt,
|
|
24
|
-
steps,
|
|
25
|
-
finalOutput: steps[steps.length - 1]?.improvement ?? current,
|
|
26
|
-
depth: this.maxDepth
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
async generateThought(prompt, step) {
|
|
30
|
-
return `[Step ${step + 1}] Analysis of: ${prompt}`;
|
|
31
|
-
}
|
|
32
|
-
async reflect(thought, original, step) {
|
|
33
|
-
const isLastStep = step === this.maxDepth - 1;
|
|
34
|
-
return {
|
|
35
|
-
question: `Review: Is "${thought}" comprehensive and accurate?`,
|
|
36
|
-
improvement: isLastStep ? undefined : `${thought} (refined)`
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
setDepth(depth) {
|
|
40
|
-
this.maxDepth = Math.max(1, Math.min(depth, 10));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DeepThinkingEngine } from './engine.js';
|