@crewx/sdk 0.9.0-rc.22 → 0.9.0-rc.221
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/account/auth-client.d.ts +61 -0
- package/dist/account/auth-json-v2.d.ts +1 -0
- package/dist/account/auth-json.d.ts +30 -0
- package/dist/account/config.d.ts +37 -0
- package/dist/account/env-bootstrap.d.ts +11 -0
- package/dist/account/errors.d.ts +24 -0
- package/dist/account/index.d.ts +12 -0
- package/dist/account/index.js +2 -0
- package/dist/account/session-manager.d.ts +47 -0
- package/dist/activity-log/builder.d.ts +59 -6
- package/dist/agent/agent-list-view.d.ts +19 -0
- package/dist/agent-interceptor/chain.d.ts +25 -0
- package/dist/agent-interceptor/index.d.ts +6 -0
- package/dist/agent-interceptor/model-runner.d.ts +19 -0
- package/dist/agent-interceptor/program-runner.d.ts +13 -0
- package/dist/agent-interceptor/protocol.d.ts +68 -0
- package/dist/agent-interceptor/run-stop.d.ts +3 -0
- package/dist/agent-interceptor/schema.d.ts +267 -0
- package/dist/agent-interceptor/types.d.ts +88 -0
- package/dist/app/app-files/args.d.ts +12 -0
- package/dist/app/app-files/errors.d.ts +6 -0
- package/dist/app/app-files/index.d.ts +35 -0
- package/dist/app/app-files/lock.d.ts +26 -0
- package/dist/app/app-files/root.d.ts +22 -0
- package/dist/app/app-files/store.d.ts +48 -0
- package/dist/app/app-files/write.child.d.ts +1 -0
- package/dist/app/app.d.ts +168 -0
- package/dist/app/backend-env.d.ts +3 -0
- package/dist/app/content-media-types.d.ts +2 -0
- package/dist/app/context.d.ts +2 -0
- package/dist/app/entry.d.ts +9 -0
- package/dist/app/frame.d.ts +55 -0
- package/dist/app/index.d.ts +20 -0
- package/dist/app/index.js +13 -0
- package/dist/app/job-bridge.child.d.ts +1 -0
- package/dist/app/job-bridge.d.ts +67 -0
- package/dist/app/job-bridge.drain.child.d.ts +1 -0
- package/dist/app/job-bridge.example.d.ts +11 -0
- package/dist/app/job-contract.d.ts +40 -0
- package/dist/app/job-wire.d.ts +149 -0
- package/dist/app/protocol.d.ts +9 -0
- package/dist/app/runtime.d.ts +23 -0
- package/dist/app/schedule-contract.d.ts +59 -0
- package/dist/app/tool-mode.d.ts +3 -0
- package/dist/app-artifact-policy/check.d.ts +2 -0
- package/dist/app-artifact-policy/contract.d.ts +54 -0
- package/dist/app-artifact-policy/helper.d.ts +15 -0
- package/dist/app-artifact-policy/index.d.ts +3 -0
- package/dist/app-artifact-policy/index.js +18 -0
- package/dist/app-artifact-policy/paths.d.ts +24 -0
- package/dist/app-artifact-policy/scan.d.ts +47 -0
- package/dist/app-sync/continuation.d.ts +67 -0
- package/dist/app-sync/coordinator.d.ts +92 -0
- package/dist/app-sync/create-ledger.d.ts +27 -0
- package/dist/app-sync/index.d.ts +9 -0
- package/dist/app-sync/index.js +390 -0
- package/dist/app-sync/scope.d.ts +35 -0
- package/dist/app-sync/session-fence.d.ts +26 -0
- package/dist/app-sync/sqlite-store.d.ts +237 -0
- package/dist/app-sync/types.d.ts +855 -0
- package/dist/app-ui/index.d.ts +95 -0
- package/dist/app-ui/index.js +1 -0
- package/dist/attachment-receive/index.d.ts +76 -0
- package/dist/attachment-receive/index.js +2 -0
- package/dist/boxing/box.types.d.ts +4 -0
- package/dist/config/canonicalize-agent-options.d.ts +2 -0
- package/dist/config/default-agent-models.d.ts +11 -0
- package/dist/config/global-settings.d.ts +33 -0
- package/dist/config/migrate-grok-mode.d.ts +6 -0
- package/dist/config/model-compat.d.ts +31 -0
- package/dist/config/models.generated.d.ts +38 -0
- package/dist/config/models.remote.d.ts +1 -0
- package/dist/config/overdrive.d.ts +7 -0
- package/dist/config/pricing.d.ts +6 -3
- package/dist/config/pricing.generated.d.ts +4 -0
- package/dist/config/pricing.types.d.ts +4 -0
- package/dist/config/timeout.config.d.ts +4 -0
- package/dist/config/wi-boards.d.ts +19 -0
- package/dist/context/GoalLoader.d.ts +6 -0
- package/dist/context-budget/continuity.d.ts +64 -0
- package/dist/context-budget/fixed-slot-shrink.d.ts +97 -0
- package/dist/context-budget/index.d.ts +168 -0
- package/dist/conversation/index.d.ts +1 -1
- package/dist/conversation/sqlite-provider.d.ts +6 -3
- package/dist/conversation/to-template-messages.d.ts +9 -0
- package/dist/conversation/types.d.ts +86 -1
- package/dist/desktop/command-runner.d.ts +4 -0
- package/dist/desktop/default-adapters.d.ts +4 -0
- package/dist/desktop/global-install.d.ts +19 -0
- package/dist/desktop/index.d.ts +3 -0
- package/dist/desktop/index.js +3 -0
- package/dist/desktop/install.d.ts +5 -0
- package/dist/desktop/lnk.d.ts +22 -0
- package/dist/desktop/manifest.d.ts +21 -0
- package/dist/desktop/types.d.ts +67 -0
- package/dist/desktop/version.d.ts +1 -0
- package/dist/desktop/windows-paths.d.ts +21 -0
- package/dist/desktop/wrapper.d.ts +18 -0
- package/dist/esm/account/index.js +2 -0
- package/dist/esm/app/index.js +13 -0
- package/dist/esm/app-artifact-policy/index.js +18 -0
- package/dist/esm/app-sync/index.js +390 -0
- package/dist/esm/attachment-receive/index.js +2 -0
- package/dist/esm/desktop/index.js +3 -0
- package/dist/esm/history-snapshot/index.js +16 -0
- package/dist/esm/index.js +1394 -224
- package/dist/esm/node/index.js +2 -0
- package/dist/esm/plugins/index.js +569 -219
- package/dist/esm/process/index.js +1 -0
- package/dist/esm/publish/index.js +2 -0
- package/dist/esm/repository/index.js +828 -211
- package/dist/esm/skills/index.js +2 -0
- package/dist/esm/testing/index.js +1 -1
- package/dist/events/types.d.ts +44 -0
- package/dist/facade/Crewx.d.ts +107 -5
- package/dist/facade/task-ticket.d.ts +14 -0
- package/dist/highlight/thread-highlight-prompt.d.ts +2 -0
- package/dist/highlight/thread-highlighter.d.ts +326 -0
- package/dist/history-snapshot/index.d.ts +83 -0
- package/dist/history-snapshot/index.js +16 -0
- package/dist/index.browser.d.ts +26 -1
- package/dist/index.browser.js +6 -2
- package/dist/index.d.ts +169 -19
- package/dist/index.js +1394 -224
- package/dist/internal/console-decoder.d.ts +38 -0
- package/dist/internal/windows-spawn.d.ts +10 -0
- package/dist/layout/types.d.ts +18 -1
- package/dist/lifecycle/process-lease.d.ts +80 -0
- package/dist/lifecycle/process-owner.d.ts +20 -0
- package/dist/lifecycle/task-heartbeat.d.ts +41 -0
- package/dist/lifecycle/task-stop.d.ts +112 -0
- package/dist/lifecycle/update-admission.d.ts +45 -0
- package/dist/local-server/base-url.d.ts +18 -0
- package/dist/local-server/index.d.ts +8 -0
- package/dist/local-server/opencode.d.ts +8 -0
- package/dist/local-server/probe.d.ts +3 -0
- package/dist/local-server/runtime.d.ts +26 -0
- package/dist/local-server/types.d.ts +43 -0
- package/dist/mcp-app/agent-access.d.ts +33 -0
- package/dist/mcp-app/app-handoff.d.ts +109 -0
- package/dist/mcp-app/app-icon-read.d.ts +7 -0
- package/dist/mcp-app/app-job-bridge.d.ts +30 -0
- package/dist/mcp-app/app-job-bridge.example.d.ts +36 -0
- package/dist/mcp-app/app-job.d.ts +168 -0
- package/dist/mcp-app/app-schedule.d.ts +85 -0
- package/dist/mcp-app/apps-context.d.ts +32 -0
- package/dist/mcp-app/bundle-provenance.d.ts +3 -0
- package/dist/mcp-app/candidate-registration.d.ts +4 -0
- package/dist/mcp-app/card-handler.d.ts +7 -0
- package/dist/mcp-app/catalog.d.ts +7 -0
- package/dist/mcp-app/content-channel.d.ts +86 -0
- package/dist/mcp-app/content-declarations.d.ts +31 -0
- package/dist/mcp-app/dev-checks.d.ts +31 -0
- package/dist/mcp-app/diagnostic-reason.d.ts +3 -0
- package/dist/mcp-app/discovery.d.ts +164 -0
- package/dist/mcp-app/errors.d.ts +7 -0
- package/dist/mcp-app/index.d.ts +46 -0
- package/dist/mcp-app/installed-app-ref.d.ts +25 -0
- package/dist/mcp-app/model-context.d.ts +29 -0
- package/dist/mcp-app/node-app-discovery-fs.d.ts +23 -0
- package/dist/mcp-app/product-bundle-assets.d.ts +27 -0
- package/dist/mcp-app/product-bundle-loader.d.ts +53 -0
- package/dist/mcp-app/projection.d.ts +14 -0
- package/dist/mcp-app/prompt-cards.d.ts +28 -0
- package/dist/mcp-app/registry.d.ts +28 -0
- package/dist/mcp-app/skill-backend.d.ts +141 -0
- package/dist/mcp-app/state-set.d.ts +9 -0
- package/dist/mcp-app/types.d.ts +501 -0
- package/dist/mcp-app/view-call.d.ts +7 -0
- package/dist/mcp-app/workspace-app-assets.d.ts +42 -0
- package/dist/mcp-app/workspace-app-scan-cache.d.ts +27 -0
- package/dist/mcp-app/workspace-snapshot.d.ts +81 -0
- package/dist/migrations/0011_far_black_tarantula.sql +1 -0
- package/dist/migrations/0012_blue_turbo.sql +23 -0
- package/dist/migrations/0013_hesitant_adam_destine.sql +15 -0
- package/dist/migrations/0014_organic_mongu.sql +73 -0
- package/dist/migrations/0015_panoramic_gorilla_man.sql +71 -0
- package/dist/migrations/0016_fuzzy_hemingway.sql +14 -0
- package/dist/migrations/0017_project_stage_sdk_migration.sql +29 -0
- package/dist/migrations/0018_bored_jackal.sql +33 -0
- package/dist/migrations/0019_backfill_task_thread_ids.sql +74 -0
- package/dist/migrations/0020_useful_iron_lad.sql +55 -0
- package/dist/migrations/0021_dashing_peter_quill.sql +51 -0
- package/dist/migrations/0022_wandering_bucky.sql +1 -0
- package/dist/migrations/0023_red_payback.sql +1 -0
- package/dist/migrations/0024_storage_metadata.sql +262 -0
- package/dist/migrations/0025_task_heartbeat.sql +8 -0
- package/dist/migrations/0025_thread_app_instance_ledger.sql +2 -0
- package/dist/migrations/0026_mcp_action_source.sql +47 -0
- package/dist/migrations/0027_task_stop_scope_cleanup.sql +5 -0
- package/dist/migrations/0027_ui_instance_active_unique.sql +2 -0
- package/dist/migrations/0029_nice_rhino.sql +1 -0
- package/dist/migrations/0031_petite_arclight.sql +6 -0
- package/dist/migrations/0032_ui_instance_opened_by.sql +1 -0
- package/dist/migrations/0033_thread_creator_boundary_guard.sql +38 -0
- package/dist/migrations/0034_keen_fallen_one.sql +36 -0
- package/dist/migrations/0035_request_log_daily.sql +11 -0
- package/dist/migrations/0036_ui_definition_archive.sql +8 -0
- package/dist/migrations/0037_ui_instance_agent_open_request.sql +1 -0
- package/dist/migrations/0038_task_rating.sql +3 -0
- package/dist/migrations/0039_aspiring_purifiers.sql +9 -0
- package/dist/migrations/0040_task_provider_inputs.sql +53 -0
- package/dist/migrations/0041_tranquil_vivisector.sql +54 -0
- package/dist/migrations/0042_breezy_blue_shield.sql +31 -0
- package/dist/migrations/0043_nervous_darkstar.sql +1 -0
- package/dist/migrations/0044_military_galactus.sql +8 -0
- package/dist/migrations/0045_task_pid_started_at.sql +1 -0
- package/dist/migrations/0046_acoustic_karnak.sql +49 -0
- package/dist/migrations/0047_doc_sync_connect_requests.sql +18 -0
- package/dist/migrations/0048_smart_gertrude_yorkes.sql +47 -0
- package/dist/migrations/0049_blue_sleepwalker.sql +25 -0
- package/dist/migrations/0050_rapid_black_cat.sql +89 -0
- package/dist/migrations/0051_lying_sinister_six.sql +1 -0
- package/dist/migrations/0052_lying_gambit.sql +33 -0
- package/dist/migrations/0053_smart_shriek.sql +172 -0
- package/dist/migrations/0054_lying_surge.sql +63 -0
- package/dist/migrations/0055_curious_talkback.sql +92 -0
- package/dist/migrations/0056_stale_menace.sql +14 -0
- package/dist/migrations/0057_eager_captain_flint.sql +18 -0
- package/dist/migrations/meta/0011_snapshot.json +1342 -0
- package/dist/migrations/meta/0012_snapshot.json +1494 -0
- package/dist/migrations/meta/0013_snapshot.json +1592 -0
- package/dist/migrations/meta/0014_snapshot.json +1975 -0
- package/dist/migrations/meta/0015_snapshot.json +2315 -0
- package/dist/migrations/meta/0016_snapshot.json +2419 -0
- package/dist/migrations/meta/0017_snapshot.json +2419 -0
- package/dist/migrations/meta/0018_snapshot.json +2570 -0
- package/dist/migrations/meta/0020_snapshot.json +2895 -0
- package/dist/migrations/meta/0021_snapshot.json +3031 -0
- package/dist/migrations/meta/0022_snapshot.json +3039 -0
- package/dist/migrations/meta/0023_snapshot.json +3047 -0
- package/dist/migrations/meta/0029_snapshot.json +3206 -0
- package/dist/migrations/meta/0031_snapshot.json +3251 -0
- package/dist/migrations/meta/0034_snapshot.json +3473 -0
- package/dist/migrations/meta/0035_snapshot.json +3547 -0
- package/dist/migrations/meta/0036_snapshot.json +3591 -0
- package/dist/migrations/meta/0037_snapshot.json +3598 -0
- package/dist/migrations/meta/0038_snapshot.json +3626 -0
- package/dist/migrations/meta/0039_snapshot.json +3684 -0
- package/dist/migrations/meta/0040_snapshot.json +3759 -0
- package/dist/migrations/meta/0041_snapshot.json +4156 -0
- package/dist/migrations/meta/0042_snapshot.json +4383 -0
- package/dist/migrations/meta/0043_snapshot.json +4390 -0
- package/dist/migrations/meta/0044_snapshot.json +4435 -0
- package/dist/migrations/meta/0045_snapshot.json +4442 -0
- package/dist/migrations/meta/0046_snapshot.json +4733 -0
- package/dist/migrations/meta/0047_snapshot.json +4832 -0
- package/dist/migrations/meta/0048_snapshot.json +5128 -0
- package/dist/migrations/meta/0049_snapshot.json +5165 -0
- package/dist/migrations/meta/0050_snapshot.json +5717 -0
- package/dist/migrations/meta/0051_snapshot.json +5725 -0
- package/dist/migrations/meta/0052_snapshot.json +5930 -0
- package/dist/migrations/meta/0053_snapshot.json +6780 -0
- package/dist/migrations/meta/0054_snapshot.json +6784 -0
- package/dist/migrations/meta/0055_snapshot.json +6896 -0
- package/dist/migrations/meta/0056_snapshot.json +6971 -0
- package/dist/migrations/meta/0057_snapshot.json +6971 -0
- package/dist/migrations/meta/_journal.json +329 -0
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +2 -0
- package/dist/paths.d.ts +1 -0
- package/dist/plugin/types.d.ts +1 -0
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +569 -219
- package/dist/plugins/sqlite-tracing.d.ts +46 -0
- package/dist/process/index.d.ts +2 -0
- package/dist/process/index.js +1 -0
- package/dist/process/process-control.d.ts +74 -0
- package/dist/prompt/tag-names.d.ts +22 -0
- package/dist/provider/acp/adapter.d.ts +37 -2
- package/dist/provider/acp/adapters/antigravity-account.d.ts +4 -0
- package/dist/provider/acp/completion-observer.d.ts +24 -0
- package/dist/provider/acp/connection.d.ts +69 -3
- package/dist/provider/acp/index.d.ts +3 -3
- package/dist/provider/acp/meta.d.ts +11 -0
- package/dist/provider/acp/register.d.ts +1 -0
- package/dist/provider/acp/runtime.d.ts +1 -0
- package/dist/provider/acp/types.d.ts +31 -4
- package/dist/provider/bridge.browser.d.ts +3 -0
- package/dist/provider/bridge.d.ts +28 -4
- package/dist/provider/classify-task-error.d.ts +2 -0
- package/dist/provider/claude-agent-env.d.ts +1 -0
- package/dist/provider/cli/adapter.types.d.ts +35 -7
- package/dist/provider/cli/adapters/agent-call.util.d.ts +1 -1
- package/dist/provider/cli/adapters/antigravity-stream.d.ts +27 -0
- package/dist/provider/cli/adapters/antigravity.d.ts +1 -0
- package/dist/provider/cli/adapters/cli-knob.util.d.ts +7 -0
- package/dist/provider/cli/adapters/codex-item.d.ts +1 -0
- package/dist/provider/cli/adapters/event-timestamp.util.d.ts +1 -0
- package/dist/provider/cli/adapters/grok.d.ts +2 -0
- package/dist/provider/cli/adapters/index.d.ts +5 -0
- package/dist/provider/cli/adapters/opencode-data-dir.d.ts +17 -0
- package/dist/provider/cli/adapters/opencode.d.ts +1 -0
- package/dist/provider/cli/builtin-allow.d.ts +6 -0
- package/dist/provider/cli/index.d.ts +3 -2
- package/dist/provider/cli/meta.d.ts +18 -1
- package/dist/provider/cli/protocol-envelope.d.ts +3 -0
- package/dist/provider/errors.d.ts +11 -1
- package/dist/provider/idle-watchdog.d.ts +19 -0
- package/dist/provider/model-ladder.d.ts +8 -0
- package/dist/provider/models.d.ts +17 -12
- package/dist/provider/order.d.ts +1 -1
- package/dist/provider/parse-usage.d.ts +6 -0
- package/dist/provider/provider-selection.d.ts +8 -0
- package/dist/provider/redact-technical-message.d.ts +1 -0
- package/dist/provider/safe-opencode-text.d.ts +2 -0
- package/dist/provider/task-error.types.d.ts +20 -0
- package/dist/provider-account/accounts.d.ts +15 -0
- package/dist/provider-account/antigravity-acp/auth.d.ts +29 -0
- package/dist/provider-account/antigravity-acp/browser.d.ts +4 -0
- package/dist/provider-account/antigravity-acp/install.d.ts +42 -0
- package/dist/provider-account/antigravity-acp/lease.d.ts +23 -0
- package/dist/provider-account/antigravity-acp/lifecycle.d.ts +76 -0
- package/dist/provider-account/antigravity-acp/manifest.d.ts +76 -0
- package/dist/provider-account/antigravity-acp/profile.d.ts +4 -0
- package/dist/provider-account/capabilities.d.ts +6 -0
- package/dist/provider-account/index.d.ts +13 -0
- package/dist/provider-account/registry.d.ts +30 -0
- package/dist/provider-account/types.d.ts +47 -0
- package/dist/publish/constants.d.ts +6 -0
- package/dist/publish/errors.d.ts +7 -0
- package/dist/publish/index.d.ts +55 -0
- package/dist/publish/index.js +2 -0
- package/dist/publish/manifest.d.ts +47 -0
- package/dist/publish/marketplace-api.constants.d.ts +1 -0
- package/dist/publish/pack.d.ts +6 -0
- package/dist/publish/scan.d.ts +10 -0
- package/dist/publish/secrets.d.ts +6 -0
- package/dist/publish/upload.d.ts +19 -0
- package/dist/remote/execution-profile.d.ts +9 -0
- package/dist/remote/index.d.ts +1 -0
- package/dist/remote/types.d.ts +28 -0
- package/dist/repository/agent-send-history.repository.d.ts +23 -0
- package/dist/repository/agent-suggestion.repository.d.ts +34 -0
- package/dist/repository/base-sqlite-repository.d.ts +1 -0
- package/dist/repository/common-code.repository.d.ts +45 -0
- package/dist/repository/db.d.ts +13 -1
- package/dist/repository/index.d.ts +62 -6
- package/dist/repository/index.js +828 -211
- package/dist/repository/logs-db.d.ts +12 -0
- package/dist/repository/notification.repository.d.ts +58 -0
- package/dist/repository/project.repository.d.ts +90 -0
- package/dist/repository/public-task-answer.d.ts +24 -0
- package/dist/repository/request-log-mover.d.ts +70 -0
- package/dist/repository/request-log.repository.d.ts +7 -3
- package/dist/repository/run-columns.d.ts +10 -0
- package/dist/repository/run-history.repository.d.ts +112 -0
- package/dist/repository/schedule-run.repository.d.ts +103 -0
- package/dist/repository/sidebar-tab.repository.d.ts +86 -0
- package/dist/repository/storage-metadata.repository.d.ts +64 -0
- package/dist/repository/task-log-migration.d.ts +74 -0
- package/dist/repository/task-log.repository.d.ts +47 -0
- package/dist/repository/task-status.d.ts +21 -0
- package/dist/repository/task.repository.d.ts +329 -8
- package/dist/repository/thread-history.repository.d.ts +193 -0
- package/dist/repository/thread-origin-verdict.d.ts +27 -0
- package/dist/repository/thread-title.types.d.ts +29 -0
- package/dist/repository/thread.repository.d.ts +134 -5
- package/dist/repository/usage-backfill.d.ts +62 -0
- package/dist/repository/usage-from-logs.d.ts +22 -0
- package/dist/repository/workflow-anchor-kinds.d.ts +4 -0
- package/dist/repository/workspace.repository.d.ts +3 -0
- package/dist/route/decide.d.ts +56 -0
- package/dist/route/eligibility.d.ts +11 -0
- package/dist/route/errors.d.ts +11 -0
- package/dist/route/index.d.ts +14 -0
- package/dist/route/runner.d.ts +15 -0
- package/dist/route/sqlite-store.d.ts +18 -0
- package/dist/route/store.d.ts +48 -0
- package/dist/route/strategies.d.ts +4 -0
- package/dist/route/types.d.ts +325 -0
- package/dist/schema/agent-send-history.d.ts +85 -0
- package/dist/schema/agent-suggestions.d.ts +199 -0
- package/dist/schema/app-sync.d.ts +2533 -0
- package/dist/schema/common-codes.d.ts +216 -0
- package/dist/schema/doc-create-dispatches.d.ts +101 -0
- package/dist/schema/doc-sync-connect-requests.d.ts +140 -0
- package/dist/schema/doc-sync-links.d.ts +556 -0
- package/dist/schema/index.d.ts +23 -0
- package/dist/schema/model-routes.d.ts +638 -0
- package/dist/schema/notifications.d.ts +303 -0
- package/dist/schema/projects.d.ts +610 -0
- package/dist/schema/request-log-daily.d.ts +151 -0
- package/dist/schema/run-column-backfill.d.ts +81 -0
- package/dist/schema/schedule-runs.d.ts +451 -0
- package/dist/schema/sidebar-tabs.d.ts +466 -0
- package/dist/schema/storage-metadata.d.ts +181 -0
- package/dist/schema/task-log-events.d.ts +119 -0
- package/dist/schema/task-provider-inputs.d.ts +100 -0
- package/dist/schema/tasks.d.ts +1172 -1
- package/dist/schema/thread-creator-unverified.d.ts +45 -0
- package/dist/schema/thread-history.d.ts +734 -0
- package/dist/schema/threads.d.ts +59 -0
- package/dist/schema/ui-action-receipts.d.ts +358 -0
- package/dist/schema/ui-definition-archive.d.ts +63 -0
- package/dist/schema/ui-instance-repins.d.ts +222 -0
- package/dist/schema/ui-instances.d.ts +324 -0
- package/dist/schema/workspaces.d.ts +17 -0
- package/dist/skills/index.d.ts +15 -0
- package/dist/skills/index.js +2 -0
- package/dist/skills/types.d.ts +18 -0
- package/dist/task-log/anchor-child-tasks.d.ts +7 -0
- package/dist/task-log/delegation-trailer.d.ts +34 -0
- package/dist/template/engine.d.ts +2 -2
- package/dist/template/helpers/exec.browser.d.ts +4 -3
- package/dist/template/helpers/exec.d.ts +4 -3
- package/dist/template/helpers/format-conversation.d.ts +1 -0
- package/dist/template/types.d.ts +20 -0
- package/dist/testing/index.js +1 -1
- package/dist/types/index.d.ts +3285 -84
- package/dist/types/task-log.types.d.ts +6 -1
- package/dist/ui-card/index.d.ts +2 -0
- package/dist/ui-card/legacy-card-parser.d.ts +11 -0
- package/dist/ui-instance/definition.d.ts +6 -0
- package/dist/ui-instance/errors.d.ts +18 -0
- package/dist/ui-instance/index.d.ts +11 -0
- package/dist/ui-instance/json.d.ts +19 -0
- package/dist/ui-instance/lineage.d.ts +24 -0
- package/dist/ui-instance/runtime.d.ts +19 -0
- package/dist/ui-instance/store.d.ts +216 -0
- package/dist/ui-instance/types.d.ts +384 -0
- package/dist/ui-plugin/app-icon.d.ts +50 -0
- package/dist/ui-plugin/app-manifest.d.ts +64 -0
- package/dist/ui-plugin/csp.d.ts +28 -0
- package/dist/ui-plugin/index.d.ts +8 -0
- package/dist/ui-plugin/limits.d.ts +27 -0
- package/dist/ui-plugin/manifest.d.ts +3 -0
- package/dist/ui-plugin/types.d.ts +220 -0
- package/dist/ui-plugin/validator.d.ts +18 -0
- package/dist/utils/crewx-executable.d.ts +76 -0
- package/dist/utils/crewx-home.d.ts +1 -0
- package/dist/utils/env-defaults.d.ts +3 -0
- package/dist/utils/id.d.ts +1 -1
- package/dist/utils/local-identity.d.ts +2 -0
- package/dist/utils/runner-env.d.ts +3 -0
- package/dist/utils/timestamp.d.ts +1 -0
- package/dist/utils/workspace.d.ts +1 -0
- package/dist/wi/create.d.ts +48 -0
- package/dist/wi/select.d.ts +20 -0
- package/package.json +90 -3
- package/templates/agents/default.yaml +311 -128
- package/templates/documents/crewx-manual.md +138 -138
- package/templates/documents/crewx-quick-guide.md +8 -7
- package/templates/workflows/wi-default-flow.yaml +65 -0
- package/templates/workflows/wi-plan-flow.yaml +140 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { AppSyncBinding, AppSyncContinuationCapability, AppSyncConflictArchive, AppSyncConflictArchiveInput, AppSyncConflictResolutionInput, AppSyncConflictResolutionResult, AppSyncConflictSummary, AppSyncAccountDataPurgeInput, AppSyncAccountDataPurgeResult, AppSyncCreationBudget, AppSyncCreationJob, AppSyncDocumentPort, AppSyncGrant, AppSyncListConflictsInput, AppSyncOperationContext, AppSyncRemote, AppSyncStore, DocCreateLedger } from './types.js';
|
|
2
|
+
import { AppSyncSessionFence, type AppSyncGrantFenceToken, type AppSyncSessionFenceToken } from './session-fence.js';
|
|
3
|
+
import { AppSyncScopeRegistry } from './scope.js';
|
|
4
|
+
interface AppSyncContinuationRuntimeDependencies {
|
|
5
|
+
readonly store: AppSyncStore;
|
|
6
|
+
readonly continuation?: AppSyncContinuationCapability;
|
|
7
|
+
readonly remote: AppSyncRemote;
|
|
8
|
+
readonly documents: AppSyncDocumentPort;
|
|
9
|
+
readonly creationBudget: AppSyncCreationBudget;
|
|
10
|
+
readonly createLedger?: DocCreateLedger;
|
|
11
|
+
readonly onAdapterError?: (error: unknown) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare class AppSyncContinuationRuntime {
|
|
14
|
+
private readonly dependencies;
|
|
15
|
+
private readonly scopeRegistry;
|
|
16
|
+
private readonly sessionFence;
|
|
17
|
+
private readonly now;
|
|
18
|
+
private readonly createId;
|
|
19
|
+
private readonly hasPendingRevoke;
|
|
20
|
+
private readonly continuation;
|
|
21
|
+
private readonly continuationStore;
|
|
22
|
+
private readonly pageSize;
|
|
23
|
+
constructor(dependencies: AppSyncContinuationRuntimeDependencies, scopeRegistry: AppSyncScopeRegistry, sessionFence: AppSyncSessionFence, now: () => number, createId: () => string, hasPendingRevoke: (bindingId: string) => boolean);
|
|
24
|
+
tick(binding: AppSyncBinding, grant: AppSyncGrant, session: AppSyncSessionFenceToken, grantToken: AppSyncGrantFenceToken, _context: AppSyncOperationContext): Promise<void>;
|
|
25
|
+
listConflicts(input: AppSyncListConflictsInput): AppSyncConflictSummary[];
|
|
26
|
+
private assertHumanBindingIdentity;
|
|
27
|
+
private requireCurrentSession;
|
|
28
|
+
private requireHumanOperationBinding;
|
|
29
|
+
readConflictArchive(input: AppSyncConflictArchiveInput): Promise<AppSyncConflictArchive>;
|
|
30
|
+
purgeAccountData(input: AppSyncAccountDataPurgeInput): Promise<AppSyncAccountDataPurgeResult>;
|
|
31
|
+
resolveConflict(input: AppSyncConflictResolutionInput): Promise<AppSyncConflictResolutionResult>;
|
|
32
|
+
dispatchReattachCreation(binding: AppSyncBinding, grant: AppSyncGrant, session: AppSyncSessionFenceToken, candidate: AppSyncCreationJob, context: AppSyncOperationContext): Promise<void>;
|
|
33
|
+
private deferClaim;
|
|
34
|
+
private traverseWithCursorRecovery;
|
|
35
|
+
private traverseGrantDocs;
|
|
36
|
+
private traverseDeletedRefs;
|
|
37
|
+
private validateGrantDocsPage;
|
|
38
|
+
private validateDeletedRefsPage;
|
|
39
|
+
private readActiveGrant;
|
|
40
|
+
private processPendingDiscoveries;
|
|
41
|
+
private reconcileDiscoveredDocument;
|
|
42
|
+
private inspectLocal;
|
|
43
|
+
private readPendingDocument;
|
|
44
|
+
private validateRemoteDocument;
|
|
45
|
+
private queueOrConfirmReattachment;
|
|
46
|
+
private markReattached;
|
|
47
|
+
private markPendingForReconcile;
|
|
48
|
+
private applyConditionalSave;
|
|
49
|
+
private applyEffect;
|
|
50
|
+
private reconcileAfterLocalRace;
|
|
51
|
+
private preserveConflict;
|
|
52
|
+
private recordOutcome;
|
|
53
|
+
private readRemoteById;
|
|
54
|
+
private readRemoteDocument;
|
|
55
|
+
private applyHumanResolution;
|
|
56
|
+
private cleanupResolvedConflict;
|
|
57
|
+
private readVerifiedArchive;
|
|
58
|
+
private refreshConflictAfterStale;
|
|
59
|
+
private archiveFenceGrant;
|
|
60
|
+
private purgeFenceGrant;
|
|
61
|
+
private createArchiveFenceContext;
|
|
62
|
+
private assertArchiveFenceCurrent;
|
|
63
|
+
private createFenceContext;
|
|
64
|
+
private assertFenceCurrent;
|
|
65
|
+
private isFenceCurrent;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { type AppSyncBinding, type AppSyncBindingInput, type AppSyncBeginControlRequest, type AppSyncControlRequest, type AppSyncControlRequestHandle, type AppSyncControlRequestIdentity, type AppSyncGrantInvalidation, type AppSyncOperationContext, type AppSyncRemote, type AppSyncDocumentPort, type AppSyncCreationBudget, type AppSyncConflictResolutionInput, type AppSyncConflictResolutionResult, type AppSyncConflictArchiveInput, type AppSyncConflictArchive, type AppSyncAccountDataPurgeInput, type AppSyncAccountDataPurgeResult, type AppSyncListConflictsInput, type AppSyncConflictSummary, type AppSyncContinuationCapability, type AppSyncResolveControlRequest, type AppSyncSnapshot, type AppSyncStore, type AppSyncWorkspacePort, type DocCreateLedger } from './types.js';
|
|
2
|
+
import { AppSyncSessionFence } from './session-fence.js';
|
|
3
|
+
import { AppSyncScopeRegistry } from './scope.js';
|
|
4
|
+
export declare class AppSyncRemoteError extends Error {
|
|
5
|
+
readonly code: string;
|
|
6
|
+
readonly status?: number | undefined;
|
|
7
|
+
readonly retryAfterMs?: number | undefined;
|
|
8
|
+
constructor(code: string, status?: number | undefined, retryAfterMs?: number | undefined);
|
|
9
|
+
}
|
|
10
|
+
export interface AppSyncCoordinatorDependencies {
|
|
11
|
+
readonly store: AppSyncStore;
|
|
12
|
+
readonly workspace: AppSyncWorkspacePort;
|
|
13
|
+
readonly remote: AppSyncRemote;
|
|
14
|
+
readonly documents: AppSyncDocumentPort;
|
|
15
|
+
readonly creationBudget: AppSyncCreationBudget;
|
|
16
|
+
readonly createLedger?: DocCreateLedger;
|
|
17
|
+
readonly continuation?: AppSyncContinuationCapability;
|
|
18
|
+
readonly scopeRegistry?: AppSyncScopeRegistry;
|
|
19
|
+
readonly sessionFence?: AppSyncSessionFence;
|
|
20
|
+
readonly now?: () => number;
|
|
21
|
+
readonly createId?: () => string;
|
|
22
|
+
readonly onAdapterError?: (error: unknown) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare class AppSyncCoordinator {
|
|
25
|
+
private readonly dependencies;
|
|
26
|
+
private readonly scopeRegistry;
|
|
27
|
+
private readonly sessionFence;
|
|
28
|
+
private readonly now;
|
|
29
|
+
private readonly createId;
|
|
30
|
+
private readonly scanRuns;
|
|
31
|
+
private readonly tickRuns;
|
|
32
|
+
private readonly remoteReadSemaphore;
|
|
33
|
+
private readonly continuationRuntime;
|
|
34
|
+
private scanEpoch;
|
|
35
|
+
get activeSessionEpoch(): number | null;
|
|
36
|
+
constructor(dependencies: AppSyncCoordinatorDependencies);
|
|
37
|
+
bind(input: AppSyncBindingInput): Promise<AppSyncBinding>;
|
|
38
|
+
scan(bindingId: string, context: AppSyncOperationContext): Promise<AppSyncSnapshot>;
|
|
39
|
+
tick(bindingId: string, context: AppSyncOperationContext): Promise<AppSyncSnapshot>;
|
|
40
|
+
private performTick;
|
|
41
|
+
private limitCreationClaims;
|
|
42
|
+
private makeDispatchGate;
|
|
43
|
+
private deferClaim;
|
|
44
|
+
private recordMissingDispatchGate;
|
|
45
|
+
suspendAccount(accountKey: string): Promise<void>;
|
|
46
|
+
invalidateGrant(input: AppSyncGrantInvalidation): Promise<void>;
|
|
47
|
+
beginControlRequest(input: AppSyncBeginControlRequest): Promise<AppSyncControlRequest>;
|
|
48
|
+
getControlRequest(input: AppSyncControlRequestHandle): AppSyncControlRequest | undefined;
|
|
49
|
+
getPendingControlRequest(input: AppSyncControlRequestIdentity): AppSyncControlRequest | undefined;
|
|
50
|
+
markControlRequestUnknown(input: AppSyncControlRequestHandle): Promise<AppSyncControlRequest>;
|
|
51
|
+
resolveControlRequest(input: AppSyncResolveControlRequest): Promise<AppSyncControlRequest>;
|
|
52
|
+
snapshot(bindingId: string): Promise<AppSyncSnapshot>;
|
|
53
|
+
private performScan;
|
|
54
|
+
private listAllowedRefs;
|
|
55
|
+
private readEligibleFile;
|
|
56
|
+
private beforeDocumentDispatch;
|
|
57
|
+
private readRemoteDocument;
|
|
58
|
+
private dispatchCreation;
|
|
59
|
+
private reconcileExisting;
|
|
60
|
+
private handleCreationError;
|
|
61
|
+
private handleExistingError;
|
|
62
|
+
private markDeleted;
|
|
63
|
+
private recordOutcome;
|
|
64
|
+
private recordBeforeDispatchFailure;
|
|
65
|
+
private writeResult;
|
|
66
|
+
private validateControlIdentity;
|
|
67
|
+
private hasPendingRevoke;
|
|
68
|
+
private holdPendingRevoke;
|
|
69
|
+
private invalidateStoredGeneration;
|
|
70
|
+
private pauseUnavailableBinding;
|
|
71
|
+
private pauseAuthentication;
|
|
72
|
+
private returnProcessingResultsToWaiting;
|
|
73
|
+
private suspendDocumentBinding;
|
|
74
|
+
private reportAdapterError;
|
|
75
|
+
private activateSession;
|
|
76
|
+
private suspendBindingsForAccount;
|
|
77
|
+
private shouldReconcile;
|
|
78
|
+
private validRemoteDocument;
|
|
79
|
+
private grantFromBinding;
|
|
80
|
+
private bindingHasGrant;
|
|
81
|
+
private isTransferStatus;
|
|
82
|
+
private isEligible;
|
|
83
|
+
private requireAuthenticatedAccount;
|
|
84
|
+
private isCurrent;
|
|
85
|
+
private refreshBindingStatus;
|
|
86
|
+
private snapshotNow;
|
|
87
|
+
listConflicts(input: AppSyncListConflictsInput): AppSyncConflictSummary[];
|
|
88
|
+
readConflictArchive(input: AppSyncConflictArchiveInput): Promise<AppSyncConflictArchive>;
|
|
89
|
+
resolveConflict(input: AppSyncConflictResolutionInput): Promise<AppSyncConflictResolutionResult>;
|
|
90
|
+
purgeAccountData(input: AppSyncAccountDataPurgeInput): Promise<AppSyncAccountDataPurgeResult>;
|
|
91
|
+
private retryAt;
|
|
92
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type AppSyncSendDecision, type AppSyncSendGate, type DocCreateDispatchInput, type DocCreateDispatchSource, type DocCreateLedger, type DocCreateLedgerPeek } from './types.js';
|
|
2
|
+
type SqliteDatabase = import('better-sqlite3').Database;
|
|
3
|
+
export declare class AppSyncBudgetDeferredError extends Error {
|
|
4
|
+
readonly retryAt: number;
|
|
5
|
+
readonly code = "APP_SYNC_BUDGET_DEFERRED";
|
|
6
|
+
constructor(retryAt: number);
|
|
7
|
+
}
|
|
8
|
+
export declare class SqliteDocCreateLedger implements DocCreateLedger {
|
|
9
|
+
private readonly sqlite;
|
|
10
|
+
constructor(sqlite: SqliteDatabase);
|
|
11
|
+
peek(accountKey: string, now: number): DocCreateLedgerPeek;
|
|
12
|
+
reserve(input: DocCreateDispatchInput): AppSyncSendDecision;
|
|
13
|
+
reserveForced(input: DocCreateDispatchInput): void;
|
|
14
|
+
prune(now: number): number;
|
|
15
|
+
private readWindow;
|
|
16
|
+
private insert;
|
|
17
|
+
private deleteExpired;
|
|
18
|
+
}
|
|
19
|
+
export declare function createDispatchGate(input: {
|
|
20
|
+
readonly ledger: DocCreateLedger;
|
|
21
|
+
readonly accountKey: string;
|
|
22
|
+
readonly requestId: string;
|
|
23
|
+
readonly source: DocCreateDispatchSource;
|
|
24
|
+
readonly now: () => number;
|
|
25
|
+
readonly guard?: () => void;
|
|
26
|
+
}): AppSyncSendGate;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { AppSyncCoordinator, AppSyncRemoteError } from './coordinator.js';
|
|
2
|
+
export type { AppSyncCoordinatorDependencies } from './coordinator.js';
|
|
3
|
+
export { AppSyncBudgetDeferredError, SqliteDocCreateLedger, createDispatchGate } from './create-ledger.js';
|
|
4
|
+
export { AppSyncSessionFence } from './session-fence.js';
|
|
5
|
+
export { AppSyncScopeRegistry, APP_SYNC_SCOPE_DEFINITION, APP_SYNC_SCOPE_SELECTORS, APP_SYNC_SCOPE_VERSION, fingerprintMarkdown, normalizeResolvedRootSegments, } from './scope.js';
|
|
6
|
+
export { SqliteAppSyncStore } from './sqlite-store.js';
|
|
7
|
+
export type { AppSyncFrontMatterValidation, AppSyncRefValidation, AppSyncScopeDefinition, AppSyncScopeKind, } from './scope.js';
|
|
8
|
+
export type { AppSyncGrantFenceToken, AppSyncSessionFenceToken } from './session-fence.js';
|
|
9
|
+
export { APP_SYNC_APP_ID, APP_SYNC_CONTINUATION_MAX_PAGE_SIZE, APP_SYNC_CONTINUATION_MIN_INTERVAL_MS, APP_SYNC_FRONT_MATTER_MAX_BYTES, APP_SYNC_LOCAL_RECORD_LIMIT, APP_SYNC_PAGE_SIZE, DOC001_CREATE_LIMIT_PER_WINDOW, DOC001_CREATE_WINDOW_MS, type AppSyncBinding, type AppSyncBindingInput, type AppSyncBeginControlRequest, type AppSyncBeforeDispatchResult, type AppSyncCounts, type AppSyncControlRequest, type AppSyncControlRequestHandle, type AppSyncControlRequestIdentity, type AppSyncControlRequestKind, type AppSyncControlRequestState, type AppSyncControlResolution, type AppSyncConflict, type AppSyncConflictArchive, type AppSyncConflictArchiveInput, type AppSyncConflictChoice, type AppSyncConflictPreservationStatus, type AppSyncConflictResolutionInput, type AppSyncConflictResolutionResult, type AppSyncConflictState, type AppSyncConflictSummary, type AppSyncConflictVaultPort, type AppSyncAccountDataPurgeInput, type AppSyncAccountDataPurgeResult, type AppSyncContinuationApplyResult, type AppSyncContinuationCapability, type AppSyncContinuationEffect, type AppSyncContinuationSourceCheck, type AppSyncContinuationStore, type AppSyncCreateResult, type AppSyncCreationBudget, type AppSyncCreationClaim, type AppSyncCreationJob, type AppSyncDocumentOutcome, type AppSyncDocumentBaseline, type AppSyncDocumentInspection, type AppSyncDocumentPort, type AppSyncEligibility, type AppSyncFileEntry, type AppSyncFilePage, type AppSyncFileRead, type AppSyncGrant, type AppSyncGrantDoc, type AppSyncGrantDocsPage, type AppSyncDeletedRef, type AppSyncDeletedRefsPage, type AppSyncDiscoveryCheckpoint, type AppSyncPendingDiscovery, type AppSyncOperationFence, type AppSyncGrantInvalidation, type AppSyncGrantSnapshot, type AppSyncJobStatus, type AppSyncListConflictsInput, type AppSyncOperationContext, type AppSyncRemote, type AppSyncRemoteDocument, type AppSyncSendDecision, type AppSyncSendGate, type AppSyncResolveControlRequest, type AppSyncResult, type AppSyncResultStatus, type AppSyncScopeSelectors, type AppSyncSessionState, type AppSyncSnapshot, type AppSyncStatus, type AppSyncStore, type AppSyncWorkspacePort, type DocCreateDispatchInput, type DocCreateDispatchSource, type DocCreateLedger, type DocCreateLedgerPeek, } from './types.js';
|