@ai-matrx/agents 0.43.11 → 0.43.13
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/CHANGELOG.md +13 -0
- package/dist/content-transfer/index.cjs.map +1 -1
- package/dist/content-transfer/index.js.map +1 -1
- package/dist/content-transfer/react/index.cjs.map +1 -1
- package/dist/content-transfer/react/index.js.map +1 -1
- package/dist/generated/api-types.cjs.map +1 -1
- package/dist/generated/api-types.d.cts +1606 -44
- package/dist/generated/api-types.d.ts +1606 -44
- package/dist/generated/source-attribution.cjs +8 -1
- package/dist/generated/source-attribution.cjs.map +1 -1
- package/dist/generated/source-attribution.d.cts +2 -2
- package/dist/generated/source-attribution.d.ts +2 -2
- package/dist/generated/source-attribution.js +8 -1
- package/dist/generated/source-attribution.js.map +1 -1
- package/dist/generated/stream-events.cjs +86 -0
- package/dist/generated/stream-events.cjs.map +1 -1
- package/dist/generated/stream-events.d.cts +27 -1
- package/dist/generated/stream-events.d.ts +27 -1
- package/dist/generated/stream-events.js +86 -0
- package/dist/generated/stream-events.js.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{keys.generated-5CeTgBps.d.cts → keys.generated-CN7fvAPz.d.cts} +4 -4
- package/dist/{keys.generated-5CeTgBps.d.ts → keys.generated-CN7fvAPz.d.ts} +4 -4
- package/dist/mandates/index.cjs +2 -2
- package/dist/mandates/index.cjs.map +1 -1
- package/dist/mandates/index.d.cts +2 -2
- package/dist/mandates/index.d.ts +2 -2
- package/dist/mandates/index.js +2 -2
- package/dist/mandates/index.js.map +1 -1
- package/dist/matrx/index.d.cts +1 -1
- package/dist/matrx/index.d.ts +1 -1
- package/generated/api-types.ts +1606 -44
- package/generated/source-attribution.ts +7 -0
- package/generated/stream-events.ts +115 -0
- package/mandates/snapshots/keys.0.43.12.json +653 -0
- package/mandates/snapshots/keys.0.43.13.json +653 -0
- package/package.json +3 -3
|
@@ -303,6 +303,11 @@ var SOURCE_FEATURES = [
|
|
|
303
303
|
"masterwork_bench_extract",
|
|
304
304
|
"masterwork_bench_judge",
|
|
305
305
|
"masterwork_bench_panel",
|
|
306
|
+
"crm.party_kind",
|
|
307
|
+
"crm.personalization",
|
|
308
|
+
"mandates.batch_lane",
|
|
309
|
+
"rag.page_clean",
|
|
310
|
+
"seo.page_analysis",
|
|
306
311
|
"meet:after_meeting_workflow",
|
|
307
312
|
"news_monitor",
|
|
308
313
|
"platform_checks_drain",
|
|
@@ -316,7 +321,9 @@ var SOURCE_FEATURE_PATTERNS = [
|
|
|
316
321
|
"mandate_live:[a-z0-9_]+\\.[a-z0-9_]+",
|
|
317
322
|
"proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\-]*",
|
|
318
323
|
"pipe\\.step:[^\\s]{1,90}",
|
|
319
|
-
"sch_tool:[A-Za-z0-9_.\\-]{1,111}"
|
|
324
|
+
"sch_tool:[A-Za-z0-9_.\\-]{1,111}",
|
|
325
|
+
"batch\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)*",
|
|
326
|
+
"script\\.[A-Za-z0-9][A-Za-z0-9_.\\-/]*"
|
|
320
327
|
];
|
|
321
328
|
var SOURCE_APP_SET = new Set(SOURCE_APPS);
|
|
322
329
|
var SOURCE_FEATURE_SET = new Set(SOURCE_FEATURES);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../generated/source-attribution.ts"],"sourcesContent":["// AUTO-GENERATED — do not edit manually.\n// Source: aidream.services.conversation_context.source_attribution\n// Run: `uv run python scripts/generate_types.py source-attribution`\n// or fetch via `pnpm sync-types` (pulls /schema/bundle/source-attribution-ts).\n//\n// Conversation provenance allow-lists. matrx-frontend stamps\n// source_app='matrx-frontend' and a product-level source_feature from\n// SOURCE_FEATURES. Chrome/intermediaries are not features.\n\nexport const SOURCE_APPS = [\n \"aidream\",\n \"aidream-api\",\n \"aidream-auto-ingest\",\n \"aidream-batch\",\n \"aidream-content-processing\",\n \"aidream-context-follow\",\n \"aidream-distillation\",\n \"aidream-endpoint-family-sweep\",\n \"aidream-file-rag-jobs\",\n \"aidream-hindsight\",\n \"aidream-health\",\n \"aidream-hr\",\n \"aidream-mandate-lane\",\n \"aidream-notify-listener\",\n \"aidream-outreach\",\n \"aidream-page-extraction\",\n \"aidream-producer-yield\",\n \"aidream-proof-runs\",\n \"aidream-scraper-scheduler\",\n \"aidream-seo\",\n \"aidream-suggestion-sweep\",\n \"aidream-staff-workspace-listener\",\n \"aidream-sweep-listener\",\n \"aidream-workflow-extract-sweep\",\n \"ai-routing\",\n \"chat\",\n \"code-plugin\",\n \"dashboard\",\n \"database\",\n \"matrx-admin\",\n \"matrx-ai\",\n \"matrx-batch\",\n \"matrx-desktop\",\n \"matrx-extend\",\n \"matrx-frontend\",\n \"matrx-local\",\n \"matrx-scheduler\",\n \"mandate-scan\",\n \"masterwork\",\n \"local-pc-proxy\",\n \"mcp-agent-service\",\n \"workflow\",\n \"workflow-studio\",\n] as const;\n\nexport type SourceApp = (typeof SOURCE_APPS)[number];\n\nexport const SOURCE_FEATURES = [\n \"agent-app\",\n \"agent-builder\",\n \"agent-comparison\",\n \"agent-generator\",\n \"agent-runner\",\n \"agents-other\",\n \"ai-results\",\n \"analysis-studio\",\n \"canvas\",\n \"claude-code\",\n \"codex\",\n \"cursor\",\n \"vscode\",\n \"conductor\",\n \"chat\",\n \"cms\",\n \"code-editor\",\n \"crm\",\n \"content-extractor\",\n \"dictionary\",\n \"documents\",\n \"education-analytics\",\n \"education-assessment\",\n \"education-fastfire\",\n \"education-flashcards\",\n \"education-ingest\",\n \"education-mindmap\",\n \"education-planner\",\n \"education-tutor\",\n \"files\",\n \"image-studio\",\n \"incident-assurance\",\n \"legal\",\n \"marketing\",\n \"masterwork\",\n \"mermaid-workbench\",\n \"messages\",\n \"notes\",\n \"pdf-extractor\",\n \"pdf-widgets\",\n \"personal-staff\",\n \"staff-inbox-driver\",\n \"podcasts\",\n \"print\",\n \"projects\",\n \"rag-search\",\n \"research\",\n \"scanner\",\n \"scraper\",\n \"scratchpad\",\n \"sms-assistant\",\n \"system\",\n \"tasks\",\n \"tool-call-visualization\",\n \"tool-testing\",\n \"transcription\",\n \"udt\",\n \"voice-agent\",\n \"working-document\",\n \"action_request_park\",\n \"action_request_resolve\",\n \"action_request_continuation\",\n \"agent_usage_sync\",\n \"coverage\",\n \"hr\",\n \"human_decisions\",\n \"local_proxy\",\n \"media_catalog\",\n \"notify_listener\",\n \"outcome_attribution\",\n \"outreach\",\n \"platform_checks\",\n \"provider_outage\",\n \"reroute\",\n \"seo\",\n \"suggestion_sweep\",\n \"sweep_listener\",\n \"workflow_extract_sweep\",\n \"row_history\",\n \"provenance\",\n \"reachability\",\n \"billing\",\n \"sharing\",\n \"client-unmapped\",\n \"web-capture\",\n \"admin\",\n \"agent\",\n \"agent-factory\",\n \"agent-service\",\n \"agent_blocks\",\n \"agent_call\",\n \"agent_flow_v1\",\n \"agent_run\",\n \"agent_structure_builder\",\n \"agent_tool\",\n \"auto_ingest\",\n \"auto_ingest_ner\",\n \"background_agent\",\n \"browser_handoff_delegate\",\n \"browser_handoff_resolve\",\n \"browser_session_health\",\n \"builtin_agent\",\n \"builtin_categorize\",\n \"clean_pdf_extracted_content\",\n \"coding_session_native\",\n \"coding_session_reply\",\n \"content_plan_acceptance\",\n \"content_plan_cms_fill\",\n \"content_plan_cms_fill_preview\",\n \"content_plan_deepen\",\n \"content_plan_generate\",\n \"content_processing\",\n \"content_processing_upload_hook\",\n \"coding_session_bridge.backfill\",\n \"context_summary\",\n \"crm.media_list_refresh\",\n \"conversation\",\n \"conversation_crash_recovery\",\n \"conversation_fork\",\n \"conversation_resume\",\n \"crawl_run\",\n \"deep_research_v1\",\n \"deferred_claim_recovery\",\n \"distillation_coherence\",\n \"doc_verify\",\n \"education-media-reconcile\",\n \"education_card_image_generator\",\n \"education_card_image_prompt_writer\",\n \"education_card_image_qc_judge\",\n \"education_card_image_rot\",\n \"education_card_image_web_source\",\n \"education_card_images\",\n \"education_study_pack\",\n \"education_study_pack_v2\",\n \"agent_foundry_v1\",\n \"product_capture_intake\",\n \"product_capture_research\",\n \"endpoint_family_sweep\",\n \"external_url_change\",\n \"fork_and_run\",\n \"hindsight\",\n \"hindsight/crystallization\",\n \"hindsight/wire_replay\",\n \"hindsight_replay\",\n \"hindsight_replay_worker\",\n \"hindsight_shadow_recompilation\",\n \"internal\",\n \"google_workspace.approval_replay\",\n \"kg_clustering_namer\",\n \"manual\",\n \"masterwork_build\",\n \"masterwork_recovery\",\n \"media_heal\",\n \"ner\",\n \"page_extraction\",\n \"page_extraction_retry\",\n \"pdf-cleaner\",\n \"prompt\",\n \"proof_run:content_plan_family_grounding\",\n \"proof_run:news_self_validating\",\n \"rag\",\n \"rag_chunk_contextualizer\",\n \"rag_hyde_generator\",\n \"rag_pdf_page_cleaner\",\n \"rag_query_expander\",\n \"realtime\",\n \"realtime_tool\",\n \"research_condenser_1\",\n \"research_condenser_2\",\n \"research_refresh_dispatch\",\n \"registry_ingestion.pass\",\n \"scheduled\",\n \"schema_coerce\",\n \"seo.engine_schedule_dispatcher\",\n \"seo.keyword_place_backfill\",\n \"seo.rank_schedule\",\n \"seo_analysis_sweep\",\n \"seo_keyword_research\",\n \"sms-outbound\",\n \"server-door\",\n \"server-run\",\n \"socket_compat\",\n \"summarize_content\",\n \"web_crawl_crash_resume\",\n \"web_crawl_schedule_dispatch\",\n \"web_research\",\n \"workflow_recovery_resolve\",\n \"web_url_announce\",\n \"workflow_recovery_push\",\n \"workflow_run_assists\",\n \"workflow_decision_fallback\",\n \"workflow_node_test\",\n \"workflow_plan_assist\",\n \"workflow_recovery_advisor\",\n \"workflow_run\",\n \"workflow_worker\",\n \"vision_interview\",\n \"vision_interview_tracker\",\n \"youtube_research_processing\",\n \"youtube_transcription\",\n \"action_request_credential\",\n \"action_request_one_time_code\",\n \"ai_judge\",\n \"cloud_browser.local_login_learning\",\n \"context_compare_answer\",\n \"conversation_context\",\n \"communications.sms\",\n \"content_processing.research_landing\",\n \"content_processing.transcript_landing\",\n \"context-parity\",\n \"context_follow_listener\",\n \"personal_staff_workspace_listener\",\n \"whole_value_follower\",\n \"crm.media_list_research\",\n \"judge\",\n \"mandate_candidate_review\",\n \"masterwork_audition_elicitation_vanilla\",\n \"masterwork_audition_outcome_vanilla\",\n \"masterwork_audition_unfolding_vanilla\",\n \"masterwork_audition_vanilla\",\n \"masterwork_bench_a2\",\n \"masterwork_bench_extract\",\n \"masterwork_bench_judge\",\n \"masterwork_bench_panel\",\n \"meet:after_meeting_workflow\",\n \"news_monitor\",\n \"platform_checks_drain\",\n \"source_intelligence\",\n] as const;\n\nexport type SourceFeature = (typeof SOURCE_FEATURES)[number];\n\nexport const SOURCE_FEATURE_PATTERNS = [\n \"rag_derive_[a-z0-9_]+\",\n \"mandate:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"slot:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"mandate_candidate:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"mandate_live:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\\\-]*\",\n \"pipe\\\\.step:[^\\\\s]{1,90}\",\n \"sch_tool:[A-Za-z0-9_.\\\\-]{1,111}\",\n] as const;\n\nconst SOURCE_APP_SET: ReadonlySet<string> = new Set(SOURCE_APPS);\nconst SOURCE_FEATURE_SET: ReadonlySet<string> = new Set(SOURCE_FEATURES);\nconst SOURCE_FEATURE_REGEXES: readonly RegExp[] = SOURCE_FEATURE_PATTERNS.map(\n (pattern) => new RegExp(`^(?:${pattern})$`),\n);\n\nexport function isSourceApp(value: string): value is SourceApp {\n return SOURCE_APP_SET.has(value);\n}\n\nexport function isSourceFeature(value: string): value is SourceFeature {\n return (\n SOURCE_FEATURE_SET.has(value) ||\n SOURCE_FEATURE_REGEXES.some((pattern) => pattern.test(value))\n );\n}\n\n// Outside coding tools: source_app is ALWAYS CODE_PLUGIN_SOURCE_APP and the\n// tool is the source_feature. `source_app === CODE_PLUGIN_SOURCE_APP` is the\n// one test for \"outside data, not ours\". Never stamp a tool slug as an app.\nexport const CODE_PLUGIN_SOURCE_APP = \"code-plugin\" as const;\nexport const CODE_PLUGIN_SOURCE_APP_LABEL = \"Code Plugin\" as const;\nexport const CODING_TOOL_SOURCE_FEATURES = [\"claude-code\", \"codex\", \"cursor\", \"vscode\"] as const;\n\n// origin_class — the WITNESSED trust axis of request attribution\n// (source: matrx_connect.context.provenance.ORIGIN_CLASSES). Read-only\n// vocabulary for filtering/faceting/display: clients NEVER stamp an\n// origin_class — it is derived server-side from platform-observed facts.\nexport const ORIGIN_CLASSES = [\n \"human\",\n \"client_auto\",\n \"api\",\n \"child_agent\",\n \"workflow\",\n \"scheduled\",\n \"system\",\n \"delegated_member\",\n] as const;\n\n// DB backfill value for pre-provenance history; never written live.\nexport const ORIGIN_CLASS_UNKNOWN = \"unknown\" as const;\n\nexport type OriginClass =\n | (typeof ORIGIN_CLASSES)[number]\n | typeof ORIGIN_CLASS_UNKNOWN;\n\nconst ORIGIN_CLASS_SET: ReadonlySet<string> = new Set([\n ...ORIGIN_CLASSES,\n ORIGIN_CLASS_UNKNOWN,\n]);\n\nexport function isOriginClass(value: string): value is OriginClass {\n return ORIGIN_CLASS_SET.has(value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,IAAM,cAAc;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,kBAAkB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,IAAM,iBAAsC,IAAI,IAAI,WAAW;AAC/D,IAAM,qBAA0C,IAAI,IAAI,eAAe;AACvE,IAAM,yBAA4C,wBAAwB;AAAA,EACxE,CAAC,YAAY,IAAI,OAAO,OAAO,OAAO,IAAI;AAC5C;AAEO,SAAS,YAAY,OAAmC;AAC7D,SAAO,eAAe,IAAI,KAAK;AACjC;AAEO,SAAS,gBAAgB,OAAuC;AACrE,SACE,mBAAmB,IAAI,KAAK,KAC5B,uBAAuB,KAAK,CAAC,YAAY,QAAQ,KAAK,KAAK,CAAC;AAEhE;AAKO,IAAM,yBAAyB;AAC/B,IAAM,+BAA+B;AACrC,IAAM,8BAA8B,CAAC,eAAe,SAAS,UAAU,QAAQ;AAM/E,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,IAAM,uBAAuB;AAMpC,IAAM,mBAAwC,oBAAI,IAAI;AAAA,EACpD,GAAG;AAAA,EACH;AACF,CAAC;AAEM,SAAS,cAAc,OAAqC;AACjE,SAAO,iBAAiB,IAAI,KAAK;AACnC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../generated/source-attribution.ts"],"sourcesContent":["// AUTO-GENERATED — do not edit manually.\n// Source: aidream.services.conversation_context.source_attribution\n// Run: `uv run python scripts/generate_types.py source-attribution`\n// or fetch via `pnpm sync-types` (pulls /schema/bundle/source-attribution-ts).\n//\n// Conversation provenance allow-lists. matrx-frontend stamps\n// source_app='matrx-frontend' and a product-level source_feature from\n// SOURCE_FEATURES. Chrome/intermediaries are not features.\n\nexport const SOURCE_APPS = [\n \"aidream\",\n \"aidream-api\",\n \"aidream-auto-ingest\",\n \"aidream-batch\",\n \"aidream-content-processing\",\n \"aidream-context-follow\",\n \"aidream-distillation\",\n \"aidream-endpoint-family-sweep\",\n \"aidream-file-rag-jobs\",\n \"aidream-hindsight\",\n \"aidream-health\",\n \"aidream-hr\",\n \"aidream-mandate-lane\",\n \"aidream-notify-listener\",\n \"aidream-outreach\",\n \"aidream-page-extraction\",\n \"aidream-producer-yield\",\n \"aidream-proof-runs\",\n \"aidream-scraper-scheduler\",\n \"aidream-seo\",\n \"aidream-suggestion-sweep\",\n \"aidream-staff-workspace-listener\",\n \"aidream-sweep-listener\",\n \"aidream-workflow-extract-sweep\",\n \"ai-routing\",\n \"chat\",\n \"code-plugin\",\n \"dashboard\",\n \"database\",\n \"matrx-admin\",\n \"matrx-ai\",\n \"matrx-batch\",\n \"matrx-desktop\",\n \"matrx-extend\",\n \"matrx-frontend\",\n \"matrx-local\",\n \"matrx-scheduler\",\n \"mandate-scan\",\n \"masterwork\",\n \"local-pc-proxy\",\n \"mcp-agent-service\",\n \"workflow\",\n \"workflow-studio\",\n] as const;\n\nexport type SourceApp = (typeof SOURCE_APPS)[number];\n\nexport const SOURCE_FEATURES = [\n \"agent-app\",\n \"agent-builder\",\n \"agent-comparison\",\n \"agent-generator\",\n \"agent-runner\",\n \"agents-other\",\n \"ai-results\",\n \"analysis-studio\",\n \"canvas\",\n \"claude-code\",\n \"codex\",\n \"cursor\",\n \"vscode\",\n \"conductor\",\n \"chat\",\n \"cms\",\n \"code-editor\",\n \"crm\",\n \"content-extractor\",\n \"dictionary\",\n \"documents\",\n \"education-analytics\",\n \"education-assessment\",\n \"education-fastfire\",\n \"education-flashcards\",\n \"education-ingest\",\n \"education-mindmap\",\n \"education-planner\",\n \"education-tutor\",\n \"files\",\n \"image-studio\",\n \"incident-assurance\",\n \"legal\",\n \"marketing\",\n \"masterwork\",\n \"mermaid-workbench\",\n \"messages\",\n \"notes\",\n \"pdf-extractor\",\n \"pdf-widgets\",\n \"personal-staff\",\n \"staff-inbox-driver\",\n \"podcasts\",\n \"print\",\n \"projects\",\n \"rag-search\",\n \"research\",\n \"scanner\",\n \"scraper\",\n \"scratchpad\",\n \"sms-assistant\",\n \"system\",\n \"tasks\",\n \"tool-call-visualization\",\n \"tool-testing\",\n \"transcription\",\n \"udt\",\n \"voice-agent\",\n \"working-document\",\n \"action_request_park\",\n \"action_request_resolve\",\n \"action_request_continuation\",\n \"agent_usage_sync\",\n \"coverage\",\n \"hr\",\n \"human_decisions\",\n \"local_proxy\",\n \"media_catalog\",\n \"notify_listener\",\n \"outcome_attribution\",\n \"outreach\",\n \"platform_checks\",\n \"provider_outage\",\n \"reroute\",\n \"seo\",\n \"suggestion_sweep\",\n \"sweep_listener\",\n \"workflow_extract_sweep\",\n \"row_history\",\n \"provenance\",\n \"reachability\",\n \"billing\",\n \"sharing\",\n \"client-unmapped\",\n \"web-capture\",\n \"admin\",\n \"agent\",\n \"agent-factory\",\n \"agent-service\",\n \"agent_blocks\",\n \"agent_call\",\n \"agent_flow_v1\",\n \"agent_run\",\n \"agent_structure_builder\",\n \"agent_tool\",\n \"auto_ingest\",\n \"auto_ingest_ner\",\n \"background_agent\",\n \"browser_handoff_delegate\",\n \"browser_handoff_resolve\",\n \"browser_session_health\",\n \"builtin_agent\",\n \"builtin_categorize\",\n \"clean_pdf_extracted_content\",\n \"coding_session_native\",\n \"coding_session_reply\",\n \"content_plan_acceptance\",\n \"content_plan_cms_fill\",\n \"content_plan_cms_fill_preview\",\n \"content_plan_deepen\",\n \"content_plan_generate\",\n \"content_processing\",\n \"content_processing_upload_hook\",\n \"coding_session_bridge.backfill\",\n \"context_summary\",\n \"crm.media_list_refresh\",\n \"conversation\",\n \"conversation_crash_recovery\",\n \"conversation_fork\",\n \"conversation_resume\",\n \"crawl_run\",\n \"deep_research_v1\",\n \"deferred_claim_recovery\",\n \"distillation_coherence\",\n \"doc_verify\",\n \"education-media-reconcile\",\n \"education_card_image_generator\",\n \"education_card_image_prompt_writer\",\n \"education_card_image_qc_judge\",\n \"education_card_image_rot\",\n \"education_card_image_web_source\",\n \"education_card_images\",\n \"education_study_pack\",\n \"education_study_pack_v2\",\n \"agent_foundry_v1\",\n \"product_capture_intake\",\n \"product_capture_research\",\n \"endpoint_family_sweep\",\n \"external_url_change\",\n \"fork_and_run\",\n \"hindsight\",\n \"hindsight/crystallization\",\n \"hindsight/wire_replay\",\n \"hindsight_replay\",\n \"hindsight_replay_worker\",\n \"hindsight_shadow_recompilation\",\n \"internal\",\n \"google_workspace.approval_replay\",\n \"kg_clustering_namer\",\n \"manual\",\n \"masterwork_build\",\n \"masterwork_recovery\",\n \"media_heal\",\n \"ner\",\n \"page_extraction\",\n \"page_extraction_retry\",\n \"pdf-cleaner\",\n \"prompt\",\n \"proof_run:content_plan_family_grounding\",\n \"proof_run:news_self_validating\",\n \"rag\",\n \"rag_chunk_contextualizer\",\n \"rag_hyde_generator\",\n \"rag_pdf_page_cleaner\",\n \"rag_query_expander\",\n \"realtime\",\n \"realtime_tool\",\n \"research_condenser_1\",\n \"research_condenser_2\",\n \"research_refresh_dispatch\",\n \"registry_ingestion.pass\",\n \"scheduled\",\n \"schema_coerce\",\n \"seo.engine_schedule_dispatcher\",\n \"seo.keyword_place_backfill\",\n \"seo.rank_schedule\",\n \"seo_analysis_sweep\",\n \"seo_keyword_research\",\n \"sms-outbound\",\n \"server-door\",\n \"server-run\",\n \"socket_compat\",\n \"summarize_content\",\n \"web_crawl_crash_resume\",\n \"web_crawl_schedule_dispatch\",\n \"web_research\",\n \"workflow_recovery_resolve\",\n \"web_url_announce\",\n \"workflow_recovery_push\",\n \"workflow_run_assists\",\n \"workflow_decision_fallback\",\n \"workflow_node_test\",\n \"workflow_plan_assist\",\n \"workflow_recovery_advisor\",\n \"workflow_run\",\n \"workflow_worker\",\n \"vision_interview\",\n \"vision_interview_tracker\",\n \"youtube_research_processing\",\n \"youtube_transcription\",\n \"action_request_credential\",\n \"action_request_one_time_code\",\n \"ai_judge\",\n \"cloud_browser.local_login_learning\",\n \"context_compare_answer\",\n \"conversation_context\",\n \"communications.sms\",\n \"content_processing.research_landing\",\n \"content_processing.transcript_landing\",\n \"context-parity\",\n \"context_follow_listener\",\n \"personal_staff_workspace_listener\",\n \"whole_value_follower\",\n \"crm.media_list_research\",\n \"judge\",\n \"mandate_candidate_review\",\n \"masterwork_audition_elicitation_vanilla\",\n \"masterwork_audition_outcome_vanilla\",\n \"masterwork_audition_unfolding_vanilla\",\n \"masterwork_audition_vanilla\",\n \"masterwork_bench_a2\",\n \"masterwork_bench_extract\",\n \"masterwork_bench_judge\",\n \"masterwork_bench_panel\",\n \"crm.party_kind\",\n \"crm.personalization\",\n \"mandates.batch_lane\",\n \"rag.page_clean\",\n \"seo.page_analysis\",\n \"meet:after_meeting_workflow\",\n \"news_monitor\",\n \"platform_checks_drain\",\n \"source_intelligence\",\n] as const;\n\nexport type SourceFeature = (typeof SOURCE_FEATURES)[number];\n\nexport const SOURCE_FEATURE_PATTERNS = [\n \"rag_derive_[a-z0-9_]+\",\n \"mandate:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"slot:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"mandate_candidate:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"mandate_live:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\\\-]*\",\n \"pipe\\\\.step:[^\\\\s]{1,90}\",\n \"sch_tool:[A-Za-z0-9_.\\\\-]{1,111}\",\n \"batch\\\\.[a-z0-9_]+(?:\\\\.[a-z0-9_]+)*\",\n \"script\\\\.[A-Za-z0-9][A-Za-z0-9_.\\\\-/]*\",\n] as const;\n\nconst SOURCE_APP_SET: ReadonlySet<string> = new Set(SOURCE_APPS);\nconst SOURCE_FEATURE_SET: ReadonlySet<string> = new Set(SOURCE_FEATURES);\nconst SOURCE_FEATURE_REGEXES: readonly RegExp[] = SOURCE_FEATURE_PATTERNS.map(\n (pattern) => new RegExp(`^(?:${pattern})$`),\n);\n\nexport function isSourceApp(value: string): value is SourceApp {\n return SOURCE_APP_SET.has(value);\n}\n\nexport function isSourceFeature(value: string): value is SourceFeature {\n return (\n SOURCE_FEATURE_SET.has(value) ||\n SOURCE_FEATURE_REGEXES.some((pattern) => pattern.test(value))\n );\n}\n\n// Outside coding tools: source_app is ALWAYS CODE_PLUGIN_SOURCE_APP and the\n// tool is the source_feature. `source_app === CODE_PLUGIN_SOURCE_APP` is the\n// one test for \"outside data, not ours\". Never stamp a tool slug as an app.\nexport const CODE_PLUGIN_SOURCE_APP = \"code-plugin\" as const;\nexport const CODE_PLUGIN_SOURCE_APP_LABEL = \"Code Plugin\" as const;\nexport const CODING_TOOL_SOURCE_FEATURES = [\"claude-code\", \"codex\", \"cursor\", \"vscode\"] as const;\n\n// origin_class — the WITNESSED trust axis of request attribution\n// (source: matrx_connect.context.provenance.ORIGIN_CLASSES). Read-only\n// vocabulary for filtering/faceting/display: clients NEVER stamp an\n// origin_class — it is derived server-side from platform-observed facts.\nexport const ORIGIN_CLASSES = [\n \"human\",\n \"client_auto\",\n \"api\",\n \"child_agent\",\n \"workflow\",\n \"scheduled\",\n \"system\",\n \"delegated_member\",\n] as const;\n\n// DB backfill value for pre-provenance history; never written live.\nexport const ORIGIN_CLASS_UNKNOWN = \"unknown\" as const;\n\nexport type OriginClass =\n | (typeof ORIGIN_CLASSES)[number]\n | typeof ORIGIN_CLASS_UNKNOWN;\n\nconst ORIGIN_CLASS_SET: ReadonlySet<string> = new Set([\n ...ORIGIN_CLASSES,\n ORIGIN_CLASS_UNKNOWN,\n]);\n\nexport function isOriginClass(value: string): value is OriginClass {\n return ORIGIN_CLASS_SET.has(value);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,IAAM,cAAc;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,kBAAkB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,IAAM,iBAAsC,IAAI,IAAI,WAAW;AAC/D,IAAM,qBAA0C,IAAI,IAAI,eAAe;AACvE,IAAM,yBAA4C,wBAAwB;AAAA,EACxE,CAAC,YAAY,IAAI,OAAO,OAAO,OAAO,IAAI;AAC5C;AAEO,SAAS,YAAY,OAAmC;AAC7D,SAAO,eAAe,IAAI,KAAK;AACjC;AAEO,SAAS,gBAAgB,OAAuC;AACrE,SACE,mBAAmB,IAAI,KAAK,KAC5B,uBAAuB,KAAK,CAAC,YAAY,QAAQ,KAAK,KAAK,CAAC;AAEhE;AAKO,IAAM,yBAAyB;AAC/B,IAAM,+BAA+B;AACrC,IAAM,8BAA8B,CAAC,eAAe,SAAS,UAAU,QAAQ;AAM/E,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,IAAM,uBAAuB;AAMpC,IAAM,mBAAwC,oBAAI,IAAI;AAAA,EACpD,GAAG;AAAA,EACH;AACF,CAAC;AAEM,SAAS,cAAc,OAAqC;AACjE,SAAO,iBAAiB,IAAI,KAAK;AACnC;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const SOURCE_APPS: readonly ["aidream", "aidream-api", "aidream-auto-ingest", "aidream-batch", "aidream-content-processing", "aidream-context-follow", "aidream-distillation", "aidream-endpoint-family-sweep", "aidream-file-rag-jobs", "aidream-hindsight", "aidream-health", "aidream-hr", "aidream-mandate-lane", "aidream-notify-listener", "aidream-outreach", "aidream-page-extraction", "aidream-producer-yield", "aidream-proof-runs", "aidream-scraper-scheduler", "aidream-seo", "aidream-suggestion-sweep", "aidream-staff-workspace-listener", "aidream-sweep-listener", "aidream-workflow-extract-sweep", "ai-routing", "chat", "code-plugin", "dashboard", "database", "matrx-admin", "matrx-ai", "matrx-batch", "matrx-desktop", "matrx-extend", "matrx-frontend", "matrx-local", "matrx-scheduler", "mandate-scan", "masterwork", "local-pc-proxy", "mcp-agent-service", "workflow", "workflow-studio"];
|
|
2
2
|
type SourceApp = (typeof SOURCE_APPS)[number];
|
|
3
|
-
declare const SOURCE_FEATURES: readonly ["agent-app", "agent-builder", "agent-comparison", "agent-generator", "agent-runner", "agents-other", "ai-results", "analysis-studio", "canvas", "claude-code", "codex", "cursor", "vscode", "conductor", "chat", "cms", "code-editor", "crm", "content-extractor", "dictionary", "documents", "education-analytics", "education-assessment", "education-fastfire", "education-flashcards", "education-ingest", "education-mindmap", "education-planner", "education-tutor", "files", "image-studio", "incident-assurance", "legal", "marketing", "masterwork", "mermaid-workbench", "messages", "notes", "pdf-extractor", "pdf-widgets", "personal-staff", "staff-inbox-driver", "podcasts", "print", "projects", "rag-search", "research", "scanner", "scraper", "scratchpad", "sms-assistant", "system", "tasks", "tool-call-visualization", "tool-testing", "transcription", "udt", "voice-agent", "working-document", "action_request_park", "action_request_resolve", "action_request_continuation", "agent_usage_sync", "coverage", "hr", "human_decisions", "local_proxy", "media_catalog", "notify_listener", "outcome_attribution", "outreach", "platform_checks", "provider_outage", "reroute", "seo", "suggestion_sweep", "sweep_listener", "workflow_extract_sweep", "row_history", "provenance", "reachability", "billing", "sharing", "client-unmapped", "web-capture", "admin", "agent", "agent-factory", "agent-service", "agent_blocks", "agent_call", "agent_flow_v1", "agent_run", "agent_structure_builder", "agent_tool", "auto_ingest", "auto_ingest_ner", "background_agent", "browser_handoff_delegate", "browser_handoff_resolve", "browser_session_health", "builtin_agent", "builtin_categorize", "clean_pdf_extracted_content", "coding_session_native", "coding_session_reply", "content_plan_acceptance", "content_plan_cms_fill", "content_plan_cms_fill_preview", "content_plan_deepen", "content_plan_generate", "content_processing", "content_processing_upload_hook", "coding_session_bridge.backfill", "context_summary", "crm.media_list_refresh", "conversation", "conversation_crash_recovery", "conversation_fork", "conversation_resume", "crawl_run", "deep_research_v1", "deferred_claim_recovery", "distillation_coherence", "doc_verify", "education-media-reconcile", "education_card_image_generator", "education_card_image_prompt_writer", "education_card_image_qc_judge", "education_card_image_rot", "education_card_image_web_source", "education_card_images", "education_study_pack", "education_study_pack_v2", "agent_foundry_v1", "product_capture_intake", "product_capture_research", "endpoint_family_sweep", "external_url_change", "fork_and_run", "hindsight", "hindsight/crystallization", "hindsight/wire_replay", "hindsight_replay", "hindsight_replay_worker", "hindsight_shadow_recompilation", "internal", "google_workspace.approval_replay", "kg_clustering_namer", "manual", "masterwork_build", "masterwork_recovery", "media_heal", "ner", "page_extraction", "page_extraction_retry", "pdf-cleaner", "prompt", "proof_run:content_plan_family_grounding", "proof_run:news_self_validating", "rag", "rag_chunk_contextualizer", "rag_hyde_generator", "rag_pdf_page_cleaner", "rag_query_expander", "realtime", "realtime_tool", "research_condenser_1", "research_condenser_2", "research_refresh_dispatch", "registry_ingestion.pass", "scheduled", "schema_coerce", "seo.engine_schedule_dispatcher", "seo.keyword_place_backfill", "seo.rank_schedule", "seo_analysis_sweep", "seo_keyword_research", "sms-outbound", "server-door", "server-run", "socket_compat", "summarize_content", "web_crawl_crash_resume", "web_crawl_schedule_dispatch", "web_research", "workflow_recovery_resolve", "web_url_announce", "workflow_recovery_push", "workflow_run_assists", "workflow_decision_fallback", "workflow_node_test", "workflow_plan_assist", "workflow_recovery_advisor", "workflow_run", "workflow_worker", "vision_interview", "vision_interview_tracker", "youtube_research_processing", "youtube_transcription", "action_request_credential", "action_request_one_time_code", "ai_judge", "cloud_browser.local_login_learning", "context_compare_answer", "conversation_context", "communications.sms", "content_processing.research_landing", "content_processing.transcript_landing", "context-parity", "context_follow_listener", "personal_staff_workspace_listener", "whole_value_follower", "crm.media_list_research", "judge", "mandate_candidate_review", "masterwork_audition_elicitation_vanilla", "masterwork_audition_outcome_vanilla", "masterwork_audition_unfolding_vanilla", "masterwork_audition_vanilla", "masterwork_bench_a2", "masterwork_bench_extract", "masterwork_bench_judge", "masterwork_bench_panel", "meet:after_meeting_workflow", "news_monitor", "platform_checks_drain", "source_intelligence"];
|
|
3
|
+
declare const SOURCE_FEATURES: readonly ["agent-app", "agent-builder", "agent-comparison", "agent-generator", "agent-runner", "agents-other", "ai-results", "analysis-studio", "canvas", "claude-code", "codex", "cursor", "vscode", "conductor", "chat", "cms", "code-editor", "crm", "content-extractor", "dictionary", "documents", "education-analytics", "education-assessment", "education-fastfire", "education-flashcards", "education-ingest", "education-mindmap", "education-planner", "education-tutor", "files", "image-studio", "incident-assurance", "legal", "marketing", "masterwork", "mermaid-workbench", "messages", "notes", "pdf-extractor", "pdf-widgets", "personal-staff", "staff-inbox-driver", "podcasts", "print", "projects", "rag-search", "research", "scanner", "scraper", "scratchpad", "sms-assistant", "system", "tasks", "tool-call-visualization", "tool-testing", "transcription", "udt", "voice-agent", "working-document", "action_request_park", "action_request_resolve", "action_request_continuation", "agent_usage_sync", "coverage", "hr", "human_decisions", "local_proxy", "media_catalog", "notify_listener", "outcome_attribution", "outreach", "platform_checks", "provider_outage", "reroute", "seo", "suggestion_sweep", "sweep_listener", "workflow_extract_sweep", "row_history", "provenance", "reachability", "billing", "sharing", "client-unmapped", "web-capture", "admin", "agent", "agent-factory", "agent-service", "agent_blocks", "agent_call", "agent_flow_v1", "agent_run", "agent_structure_builder", "agent_tool", "auto_ingest", "auto_ingest_ner", "background_agent", "browser_handoff_delegate", "browser_handoff_resolve", "browser_session_health", "builtin_agent", "builtin_categorize", "clean_pdf_extracted_content", "coding_session_native", "coding_session_reply", "content_plan_acceptance", "content_plan_cms_fill", "content_plan_cms_fill_preview", "content_plan_deepen", "content_plan_generate", "content_processing", "content_processing_upload_hook", "coding_session_bridge.backfill", "context_summary", "crm.media_list_refresh", "conversation", "conversation_crash_recovery", "conversation_fork", "conversation_resume", "crawl_run", "deep_research_v1", "deferred_claim_recovery", "distillation_coherence", "doc_verify", "education-media-reconcile", "education_card_image_generator", "education_card_image_prompt_writer", "education_card_image_qc_judge", "education_card_image_rot", "education_card_image_web_source", "education_card_images", "education_study_pack", "education_study_pack_v2", "agent_foundry_v1", "product_capture_intake", "product_capture_research", "endpoint_family_sweep", "external_url_change", "fork_and_run", "hindsight", "hindsight/crystallization", "hindsight/wire_replay", "hindsight_replay", "hindsight_replay_worker", "hindsight_shadow_recompilation", "internal", "google_workspace.approval_replay", "kg_clustering_namer", "manual", "masterwork_build", "masterwork_recovery", "media_heal", "ner", "page_extraction", "page_extraction_retry", "pdf-cleaner", "prompt", "proof_run:content_plan_family_grounding", "proof_run:news_self_validating", "rag", "rag_chunk_contextualizer", "rag_hyde_generator", "rag_pdf_page_cleaner", "rag_query_expander", "realtime", "realtime_tool", "research_condenser_1", "research_condenser_2", "research_refresh_dispatch", "registry_ingestion.pass", "scheduled", "schema_coerce", "seo.engine_schedule_dispatcher", "seo.keyword_place_backfill", "seo.rank_schedule", "seo_analysis_sweep", "seo_keyword_research", "sms-outbound", "server-door", "server-run", "socket_compat", "summarize_content", "web_crawl_crash_resume", "web_crawl_schedule_dispatch", "web_research", "workflow_recovery_resolve", "web_url_announce", "workflow_recovery_push", "workflow_run_assists", "workflow_decision_fallback", "workflow_node_test", "workflow_plan_assist", "workflow_recovery_advisor", "workflow_run", "workflow_worker", "vision_interview", "vision_interview_tracker", "youtube_research_processing", "youtube_transcription", "action_request_credential", "action_request_one_time_code", "ai_judge", "cloud_browser.local_login_learning", "context_compare_answer", "conversation_context", "communications.sms", "content_processing.research_landing", "content_processing.transcript_landing", "context-parity", "context_follow_listener", "personal_staff_workspace_listener", "whole_value_follower", "crm.media_list_research", "judge", "mandate_candidate_review", "masterwork_audition_elicitation_vanilla", "masterwork_audition_outcome_vanilla", "masterwork_audition_unfolding_vanilla", "masterwork_audition_vanilla", "masterwork_bench_a2", "masterwork_bench_extract", "masterwork_bench_judge", "masterwork_bench_panel", "crm.party_kind", "crm.personalization", "mandates.batch_lane", "rag.page_clean", "seo.page_analysis", "meet:after_meeting_workflow", "news_monitor", "platform_checks_drain", "source_intelligence"];
|
|
4
4
|
type SourceFeature = (typeof SOURCE_FEATURES)[number];
|
|
5
|
-
declare const SOURCE_FEATURE_PATTERNS: readonly ["rag_derive_[a-z0-9_]+", "mandate:[a-z0-9_]+\\.[a-z0-9_]+", "slot:[a-z0-9_]+\\.[a-z0-9_]+", "mandate_candidate:[a-z0-9_]+\\.[a-z0-9_]+", "mandate_live:[a-z0-9_]+\\.[a-z0-9_]+", "proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\-]*", "pipe\\.step:[^\\s]{1,90}", "sch_tool:[A-Za-z0-9_.\\-]{1,111}"];
|
|
5
|
+
declare const SOURCE_FEATURE_PATTERNS: readonly ["rag_derive_[a-z0-9_]+", "mandate:[a-z0-9_]+\\.[a-z0-9_]+", "slot:[a-z0-9_]+\\.[a-z0-9_]+", "mandate_candidate:[a-z0-9_]+\\.[a-z0-9_]+", "mandate_live:[a-z0-9_]+\\.[a-z0-9_]+", "proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\-]*", "pipe\\.step:[^\\s]{1,90}", "sch_tool:[A-Za-z0-9_.\\-]{1,111}", "batch\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)*", "script\\.[A-Za-z0-9][A-Za-z0-9_.\\-/]*"];
|
|
6
6
|
declare function isSourceApp(value: string): value is SourceApp;
|
|
7
7
|
declare function isSourceFeature(value: string): value is SourceFeature;
|
|
8
8
|
declare const CODE_PLUGIN_SOURCE_APP: "code-plugin";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const SOURCE_APPS: readonly ["aidream", "aidream-api", "aidream-auto-ingest", "aidream-batch", "aidream-content-processing", "aidream-context-follow", "aidream-distillation", "aidream-endpoint-family-sweep", "aidream-file-rag-jobs", "aidream-hindsight", "aidream-health", "aidream-hr", "aidream-mandate-lane", "aidream-notify-listener", "aidream-outreach", "aidream-page-extraction", "aidream-producer-yield", "aidream-proof-runs", "aidream-scraper-scheduler", "aidream-seo", "aidream-suggestion-sweep", "aidream-staff-workspace-listener", "aidream-sweep-listener", "aidream-workflow-extract-sweep", "ai-routing", "chat", "code-plugin", "dashboard", "database", "matrx-admin", "matrx-ai", "matrx-batch", "matrx-desktop", "matrx-extend", "matrx-frontend", "matrx-local", "matrx-scheduler", "mandate-scan", "masterwork", "local-pc-proxy", "mcp-agent-service", "workflow", "workflow-studio"];
|
|
2
2
|
type SourceApp = (typeof SOURCE_APPS)[number];
|
|
3
|
-
declare const SOURCE_FEATURES: readonly ["agent-app", "agent-builder", "agent-comparison", "agent-generator", "agent-runner", "agents-other", "ai-results", "analysis-studio", "canvas", "claude-code", "codex", "cursor", "vscode", "conductor", "chat", "cms", "code-editor", "crm", "content-extractor", "dictionary", "documents", "education-analytics", "education-assessment", "education-fastfire", "education-flashcards", "education-ingest", "education-mindmap", "education-planner", "education-tutor", "files", "image-studio", "incident-assurance", "legal", "marketing", "masterwork", "mermaid-workbench", "messages", "notes", "pdf-extractor", "pdf-widgets", "personal-staff", "staff-inbox-driver", "podcasts", "print", "projects", "rag-search", "research", "scanner", "scraper", "scratchpad", "sms-assistant", "system", "tasks", "tool-call-visualization", "tool-testing", "transcription", "udt", "voice-agent", "working-document", "action_request_park", "action_request_resolve", "action_request_continuation", "agent_usage_sync", "coverage", "hr", "human_decisions", "local_proxy", "media_catalog", "notify_listener", "outcome_attribution", "outreach", "platform_checks", "provider_outage", "reroute", "seo", "suggestion_sweep", "sweep_listener", "workflow_extract_sweep", "row_history", "provenance", "reachability", "billing", "sharing", "client-unmapped", "web-capture", "admin", "agent", "agent-factory", "agent-service", "agent_blocks", "agent_call", "agent_flow_v1", "agent_run", "agent_structure_builder", "agent_tool", "auto_ingest", "auto_ingest_ner", "background_agent", "browser_handoff_delegate", "browser_handoff_resolve", "browser_session_health", "builtin_agent", "builtin_categorize", "clean_pdf_extracted_content", "coding_session_native", "coding_session_reply", "content_plan_acceptance", "content_plan_cms_fill", "content_plan_cms_fill_preview", "content_plan_deepen", "content_plan_generate", "content_processing", "content_processing_upload_hook", "coding_session_bridge.backfill", "context_summary", "crm.media_list_refresh", "conversation", "conversation_crash_recovery", "conversation_fork", "conversation_resume", "crawl_run", "deep_research_v1", "deferred_claim_recovery", "distillation_coherence", "doc_verify", "education-media-reconcile", "education_card_image_generator", "education_card_image_prompt_writer", "education_card_image_qc_judge", "education_card_image_rot", "education_card_image_web_source", "education_card_images", "education_study_pack", "education_study_pack_v2", "agent_foundry_v1", "product_capture_intake", "product_capture_research", "endpoint_family_sweep", "external_url_change", "fork_and_run", "hindsight", "hindsight/crystallization", "hindsight/wire_replay", "hindsight_replay", "hindsight_replay_worker", "hindsight_shadow_recompilation", "internal", "google_workspace.approval_replay", "kg_clustering_namer", "manual", "masterwork_build", "masterwork_recovery", "media_heal", "ner", "page_extraction", "page_extraction_retry", "pdf-cleaner", "prompt", "proof_run:content_plan_family_grounding", "proof_run:news_self_validating", "rag", "rag_chunk_contextualizer", "rag_hyde_generator", "rag_pdf_page_cleaner", "rag_query_expander", "realtime", "realtime_tool", "research_condenser_1", "research_condenser_2", "research_refresh_dispatch", "registry_ingestion.pass", "scheduled", "schema_coerce", "seo.engine_schedule_dispatcher", "seo.keyword_place_backfill", "seo.rank_schedule", "seo_analysis_sweep", "seo_keyword_research", "sms-outbound", "server-door", "server-run", "socket_compat", "summarize_content", "web_crawl_crash_resume", "web_crawl_schedule_dispatch", "web_research", "workflow_recovery_resolve", "web_url_announce", "workflow_recovery_push", "workflow_run_assists", "workflow_decision_fallback", "workflow_node_test", "workflow_plan_assist", "workflow_recovery_advisor", "workflow_run", "workflow_worker", "vision_interview", "vision_interview_tracker", "youtube_research_processing", "youtube_transcription", "action_request_credential", "action_request_one_time_code", "ai_judge", "cloud_browser.local_login_learning", "context_compare_answer", "conversation_context", "communications.sms", "content_processing.research_landing", "content_processing.transcript_landing", "context-parity", "context_follow_listener", "personal_staff_workspace_listener", "whole_value_follower", "crm.media_list_research", "judge", "mandate_candidate_review", "masterwork_audition_elicitation_vanilla", "masterwork_audition_outcome_vanilla", "masterwork_audition_unfolding_vanilla", "masterwork_audition_vanilla", "masterwork_bench_a2", "masterwork_bench_extract", "masterwork_bench_judge", "masterwork_bench_panel", "meet:after_meeting_workflow", "news_monitor", "platform_checks_drain", "source_intelligence"];
|
|
3
|
+
declare const SOURCE_FEATURES: readonly ["agent-app", "agent-builder", "agent-comparison", "agent-generator", "agent-runner", "agents-other", "ai-results", "analysis-studio", "canvas", "claude-code", "codex", "cursor", "vscode", "conductor", "chat", "cms", "code-editor", "crm", "content-extractor", "dictionary", "documents", "education-analytics", "education-assessment", "education-fastfire", "education-flashcards", "education-ingest", "education-mindmap", "education-planner", "education-tutor", "files", "image-studio", "incident-assurance", "legal", "marketing", "masterwork", "mermaid-workbench", "messages", "notes", "pdf-extractor", "pdf-widgets", "personal-staff", "staff-inbox-driver", "podcasts", "print", "projects", "rag-search", "research", "scanner", "scraper", "scratchpad", "sms-assistant", "system", "tasks", "tool-call-visualization", "tool-testing", "transcription", "udt", "voice-agent", "working-document", "action_request_park", "action_request_resolve", "action_request_continuation", "agent_usage_sync", "coverage", "hr", "human_decisions", "local_proxy", "media_catalog", "notify_listener", "outcome_attribution", "outreach", "platform_checks", "provider_outage", "reroute", "seo", "suggestion_sweep", "sweep_listener", "workflow_extract_sweep", "row_history", "provenance", "reachability", "billing", "sharing", "client-unmapped", "web-capture", "admin", "agent", "agent-factory", "agent-service", "agent_blocks", "agent_call", "agent_flow_v1", "agent_run", "agent_structure_builder", "agent_tool", "auto_ingest", "auto_ingest_ner", "background_agent", "browser_handoff_delegate", "browser_handoff_resolve", "browser_session_health", "builtin_agent", "builtin_categorize", "clean_pdf_extracted_content", "coding_session_native", "coding_session_reply", "content_plan_acceptance", "content_plan_cms_fill", "content_plan_cms_fill_preview", "content_plan_deepen", "content_plan_generate", "content_processing", "content_processing_upload_hook", "coding_session_bridge.backfill", "context_summary", "crm.media_list_refresh", "conversation", "conversation_crash_recovery", "conversation_fork", "conversation_resume", "crawl_run", "deep_research_v1", "deferred_claim_recovery", "distillation_coherence", "doc_verify", "education-media-reconcile", "education_card_image_generator", "education_card_image_prompt_writer", "education_card_image_qc_judge", "education_card_image_rot", "education_card_image_web_source", "education_card_images", "education_study_pack", "education_study_pack_v2", "agent_foundry_v1", "product_capture_intake", "product_capture_research", "endpoint_family_sweep", "external_url_change", "fork_and_run", "hindsight", "hindsight/crystallization", "hindsight/wire_replay", "hindsight_replay", "hindsight_replay_worker", "hindsight_shadow_recompilation", "internal", "google_workspace.approval_replay", "kg_clustering_namer", "manual", "masterwork_build", "masterwork_recovery", "media_heal", "ner", "page_extraction", "page_extraction_retry", "pdf-cleaner", "prompt", "proof_run:content_plan_family_grounding", "proof_run:news_self_validating", "rag", "rag_chunk_contextualizer", "rag_hyde_generator", "rag_pdf_page_cleaner", "rag_query_expander", "realtime", "realtime_tool", "research_condenser_1", "research_condenser_2", "research_refresh_dispatch", "registry_ingestion.pass", "scheduled", "schema_coerce", "seo.engine_schedule_dispatcher", "seo.keyword_place_backfill", "seo.rank_schedule", "seo_analysis_sweep", "seo_keyword_research", "sms-outbound", "server-door", "server-run", "socket_compat", "summarize_content", "web_crawl_crash_resume", "web_crawl_schedule_dispatch", "web_research", "workflow_recovery_resolve", "web_url_announce", "workflow_recovery_push", "workflow_run_assists", "workflow_decision_fallback", "workflow_node_test", "workflow_plan_assist", "workflow_recovery_advisor", "workflow_run", "workflow_worker", "vision_interview", "vision_interview_tracker", "youtube_research_processing", "youtube_transcription", "action_request_credential", "action_request_one_time_code", "ai_judge", "cloud_browser.local_login_learning", "context_compare_answer", "conversation_context", "communications.sms", "content_processing.research_landing", "content_processing.transcript_landing", "context-parity", "context_follow_listener", "personal_staff_workspace_listener", "whole_value_follower", "crm.media_list_research", "judge", "mandate_candidate_review", "masterwork_audition_elicitation_vanilla", "masterwork_audition_outcome_vanilla", "masterwork_audition_unfolding_vanilla", "masterwork_audition_vanilla", "masterwork_bench_a2", "masterwork_bench_extract", "masterwork_bench_judge", "masterwork_bench_panel", "crm.party_kind", "crm.personalization", "mandates.batch_lane", "rag.page_clean", "seo.page_analysis", "meet:after_meeting_workflow", "news_monitor", "platform_checks_drain", "source_intelligence"];
|
|
4
4
|
type SourceFeature = (typeof SOURCE_FEATURES)[number];
|
|
5
|
-
declare const SOURCE_FEATURE_PATTERNS: readonly ["rag_derive_[a-z0-9_]+", "mandate:[a-z0-9_]+\\.[a-z0-9_]+", "slot:[a-z0-9_]+\\.[a-z0-9_]+", "mandate_candidate:[a-z0-9_]+\\.[a-z0-9_]+", "mandate_live:[a-z0-9_]+\\.[a-z0-9_]+", "proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\-]*", "pipe\\.step:[^\\s]{1,90}", "sch_tool:[A-Za-z0-9_.\\-]{1,111}"];
|
|
5
|
+
declare const SOURCE_FEATURE_PATTERNS: readonly ["rag_derive_[a-z0-9_]+", "mandate:[a-z0-9_]+\\.[a-z0-9_]+", "slot:[a-z0-9_]+\\.[a-z0-9_]+", "mandate_candidate:[a-z0-9_]+\\.[a-z0-9_]+", "mandate_live:[a-z0-9_]+\\.[a-z0-9_]+", "proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\-]*", "pipe\\.step:[^\\s]{1,90}", "sch_tool:[A-Za-z0-9_.\\-]{1,111}", "batch\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)*", "script\\.[A-Za-z0-9][A-Za-z0-9_.\\-/]*"];
|
|
6
6
|
declare function isSourceApp(value: string): value is SourceApp;
|
|
7
7
|
declare function isSourceFeature(value: string): value is SourceFeature;
|
|
8
8
|
declare const CODE_PLUGIN_SOURCE_APP: "code-plugin";
|
|
@@ -269,6 +269,11 @@ var SOURCE_FEATURES = [
|
|
|
269
269
|
"masterwork_bench_extract",
|
|
270
270
|
"masterwork_bench_judge",
|
|
271
271
|
"masterwork_bench_panel",
|
|
272
|
+
"crm.party_kind",
|
|
273
|
+
"crm.personalization",
|
|
274
|
+
"mandates.batch_lane",
|
|
275
|
+
"rag.page_clean",
|
|
276
|
+
"seo.page_analysis",
|
|
272
277
|
"meet:after_meeting_workflow",
|
|
273
278
|
"news_monitor",
|
|
274
279
|
"platform_checks_drain",
|
|
@@ -282,7 +287,9 @@ var SOURCE_FEATURE_PATTERNS = [
|
|
|
282
287
|
"mandate_live:[a-z0-9_]+\\.[a-z0-9_]+",
|
|
283
288
|
"proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\-]*",
|
|
284
289
|
"pipe\\.step:[^\\s]{1,90}",
|
|
285
|
-
"sch_tool:[A-Za-z0-9_.\\-]{1,111}"
|
|
290
|
+
"sch_tool:[A-Za-z0-9_.\\-]{1,111}",
|
|
291
|
+
"batch\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)*",
|
|
292
|
+
"script\\.[A-Za-z0-9][A-Za-z0-9_.\\-/]*"
|
|
286
293
|
];
|
|
287
294
|
var SOURCE_APP_SET = new Set(SOURCE_APPS);
|
|
288
295
|
var SOURCE_FEATURE_SET = new Set(SOURCE_FEATURES);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../generated/source-attribution.ts"],"sourcesContent":["// AUTO-GENERATED — do not edit manually.\n// Source: aidream.services.conversation_context.source_attribution\n// Run: `uv run python scripts/generate_types.py source-attribution`\n// or fetch via `pnpm sync-types` (pulls /schema/bundle/source-attribution-ts).\n//\n// Conversation provenance allow-lists. matrx-frontend stamps\n// source_app='matrx-frontend' and a product-level source_feature from\n// SOURCE_FEATURES. Chrome/intermediaries are not features.\n\nexport const SOURCE_APPS = [\n \"aidream\",\n \"aidream-api\",\n \"aidream-auto-ingest\",\n \"aidream-batch\",\n \"aidream-content-processing\",\n \"aidream-context-follow\",\n \"aidream-distillation\",\n \"aidream-endpoint-family-sweep\",\n \"aidream-file-rag-jobs\",\n \"aidream-hindsight\",\n \"aidream-health\",\n \"aidream-hr\",\n \"aidream-mandate-lane\",\n \"aidream-notify-listener\",\n \"aidream-outreach\",\n \"aidream-page-extraction\",\n \"aidream-producer-yield\",\n \"aidream-proof-runs\",\n \"aidream-scraper-scheduler\",\n \"aidream-seo\",\n \"aidream-suggestion-sweep\",\n \"aidream-staff-workspace-listener\",\n \"aidream-sweep-listener\",\n \"aidream-workflow-extract-sweep\",\n \"ai-routing\",\n \"chat\",\n \"code-plugin\",\n \"dashboard\",\n \"database\",\n \"matrx-admin\",\n \"matrx-ai\",\n \"matrx-batch\",\n \"matrx-desktop\",\n \"matrx-extend\",\n \"matrx-frontend\",\n \"matrx-local\",\n \"matrx-scheduler\",\n \"mandate-scan\",\n \"masterwork\",\n \"local-pc-proxy\",\n \"mcp-agent-service\",\n \"workflow\",\n \"workflow-studio\",\n] as const;\n\nexport type SourceApp = (typeof SOURCE_APPS)[number];\n\nexport const SOURCE_FEATURES = [\n \"agent-app\",\n \"agent-builder\",\n \"agent-comparison\",\n \"agent-generator\",\n \"agent-runner\",\n \"agents-other\",\n \"ai-results\",\n \"analysis-studio\",\n \"canvas\",\n \"claude-code\",\n \"codex\",\n \"cursor\",\n \"vscode\",\n \"conductor\",\n \"chat\",\n \"cms\",\n \"code-editor\",\n \"crm\",\n \"content-extractor\",\n \"dictionary\",\n \"documents\",\n \"education-analytics\",\n \"education-assessment\",\n \"education-fastfire\",\n \"education-flashcards\",\n \"education-ingest\",\n \"education-mindmap\",\n \"education-planner\",\n \"education-tutor\",\n \"files\",\n \"image-studio\",\n \"incident-assurance\",\n \"legal\",\n \"marketing\",\n \"masterwork\",\n \"mermaid-workbench\",\n \"messages\",\n \"notes\",\n \"pdf-extractor\",\n \"pdf-widgets\",\n \"personal-staff\",\n \"staff-inbox-driver\",\n \"podcasts\",\n \"print\",\n \"projects\",\n \"rag-search\",\n \"research\",\n \"scanner\",\n \"scraper\",\n \"scratchpad\",\n \"sms-assistant\",\n \"system\",\n \"tasks\",\n \"tool-call-visualization\",\n \"tool-testing\",\n \"transcription\",\n \"udt\",\n \"voice-agent\",\n \"working-document\",\n \"action_request_park\",\n \"action_request_resolve\",\n \"action_request_continuation\",\n \"agent_usage_sync\",\n \"coverage\",\n \"hr\",\n \"human_decisions\",\n \"local_proxy\",\n \"media_catalog\",\n \"notify_listener\",\n \"outcome_attribution\",\n \"outreach\",\n \"platform_checks\",\n \"provider_outage\",\n \"reroute\",\n \"seo\",\n \"suggestion_sweep\",\n \"sweep_listener\",\n \"workflow_extract_sweep\",\n \"row_history\",\n \"provenance\",\n \"reachability\",\n \"billing\",\n \"sharing\",\n \"client-unmapped\",\n \"web-capture\",\n \"admin\",\n \"agent\",\n \"agent-factory\",\n \"agent-service\",\n \"agent_blocks\",\n \"agent_call\",\n \"agent_flow_v1\",\n \"agent_run\",\n \"agent_structure_builder\",\n \"agent_tool\",\n \"auto_ingest\",\n \"auto_ingest_ner\",\n \"background_agent\",\n \"browser_handoff_delegate\",\n \"browser_handoff_resolve\",\n \"browser_session_health\",\n \"builtin_agent\",\n \"builtin_categorize\",\n \"clean_pdf_extracted_content\",\n \"coding_session_native\",\n \"coding_session_reply\",\n \"content_plan_acceptance\",\n \"content_plan_cms_fill\",\n \"content_plan_cms_fill_preview\",\n \"content_plan_deepen\",\n \"content_plan_generate\",\n \"content_processing\",\n \"content_processing_upload_hook\",\n \"coding_session_bridge.backfill\",\n \"context_summary\",\n \"crm.media_list_refresh\",\n \"conversation\",\n \"conversation_crash_recovery\",\n \"conversation_fork\",\n \"conversation_resume\",\n \"crawl_run\",\n \"deep_research_v1\",\n \"deferred_claim_recovery\",\n \"distillation_coherence\",\n \"doc_verify\",\n \"education-media-reconcile\",\n \"education_card_image_generator\",\n \"education_card_image_prompt_writer\",\n \"education_card_image_qc_judge\",\n \"education_card_image_rot\",\n \"education_card_image_web_source\",\n \"education_card_images\",\n \"education_study_pack\",\n \"education_study_pack_v2\",\n \"agent_foundry_v1\",\n \"product_capture_intake\",\n \"product_capture_research\",\n \"endpoint_family_sweep\",\n \"external_url_change\",\n \"fork_and_run\",\n \"hindsight\",\n \"hindsight/crystallization\",\n \"hindsight/wire_replay\",\n \"hindsight_replay\",\n \"hindsight_replay_worker\",\n \"hindsight_shadow_recompilation\",\n \"internal\",\n \"google_workspace.approval_replay\",\n \"kg_clustering_namer\",\n \"manual\",\n \"masterwork_build\",\n \"masterwork_recovery\",\n \"media_heal\",\n \"ner\",\n \"page_extraction\",\n \"page_extraction_retry\",\n \"pdf-cleaner\",\n \"prompt\",\n \"proof_run:content_plan_family_grounding\",\n \"proof_run:news_self_validating\",\n \"rag\",\n \"rag_chunk_contextualizer\",\n \"rag_hyde_generator\",\n \"rag_pdf_page_cleaner\",\n \"rag_query_expander\",\n \"realtime\",\n \"realtime_tool\",\n \"research_condenser_1\",\n \"research_condenser_2\",\n \"research_refresh_dispatch\",\n \"registry_ingestion.pass\",\n \"scheduled\",\n \"schema_coerce\",\n \"seo.engine_schedule_dispatcher\",\n \"seo.keyword_place_backfill\",\n \"seo.rank_schedule\",\n \"seo_analysis_sweep\",\n \"seo_keyword_research\",\n \"sms-outbound\",\n \"server-door\",\n \"server-run\",\n \"socket_compat\",\n \"summarize_content\",\n \"web_crawl_crash_resume\",\n \"web_crawl_schedule_dispatch\",\n \"web_research\",\n \"workflow_recovery_resolve\",\n \"web_url_announce\",\n \"workflow_recovery_push\",\n \"workflow_run_assists\",\n \"workflow_decision_fallback\",\n \"workflow_node_test\",\n \"workflow_plan_assist\",\n \"workflow_recovery_advisor\",\n \"workflow_run\",\n \"workflow_worker\",\n \"vision_interview\",\n \"vision_interview_tracker\",\n \"youtube_research_processing\",\n \"youtube_transcription\",\n \"action_request_credential\",\n \"action_request_one_time_code\",\n \"ai_judge\",\n \"cloud_browser.local_login_learning\",\n \"context_compare_answer\",\n \"conversation_context\",\n \"communications.sms\",\n \"content_processing.research_landing\",\n \"content_processing.transcript_landing\",\n \"context-parity\",\n \"context_follow_listener\",\n \"personal_staff_workspace_listener\",\n \"whole_value_follower\",\n \"crm.media_list_research\",\n \"judge\",\n \"mandate_candidate_review\",\n \"masterwork_audition_elicitation_vanilla\",\n \"masterwork_audition_outcome_vanilla\",\n \"masterwork_audition_unfolding_vanilla\",\n \"masterwork_audition_vanilla\",\n \"masterwork_bench_a2\",\n \"masterwork_bench_extract\",\n \"masterwork_bench_judge\",\n \"masterwork_bench_panel\",\n \"meet:after_meeting_workflow\",\n \"news_monitor\",\n \"platform_checks_drain\",\n \"source_intelligence\",\n] as const;\n\nexport type SourceFeature = (typeof SOURCE_FEATURES)[number];\n\nexport const SOURCE_FEATURE_PATTERNS = [\n \"rag_derive_[a-z0-9_]+\",\n \"mandate:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"slot:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"mandate_candidate:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"mandate_live:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\\\-]*\",\n \"pipe\\\\.step:[^\\\\s]{1,90}\",\n \"sch_tool:[A-Za-z0-9_.\\\\-]{1,111}\",\n] as const;\n\nconst SOURCE_APP_SET: ReadonlySet<string> = new Set(SOURCE_APPS);\nconst SOURCE_FEATURE_SET: ReadonlySet<string> = new Set(SOURCE_FEATURES);\nconst SOURCE_FEATURE_REGEXES: readonly RegExp[] = SOURCE_FEATURE_PATTERNS.map(\n (pattern) => new RegExp(`^(?:${pattern})$`),\n);\n\nexport function isSourceApp(value: string): value is SourceApp {\n return SOURCE_APP_SET.has(value);\n}\n\nexport function isSourceFeature(value: string): value is SourceFeature {\n return (\n SOURCE_FEATURE_SET.has(value) ||\n SOURCE_FEATURE_REGEXES.some((pattern) => pattern.test(value))\n );\n}\n\n// Outside coding tools: source_app is ALWAYS CODE_PLUGIN_SOURCE_APP and the\n// tool is the source_feature. `source_app === CODE_PLUGIN_SOURCE_APP` is the\n// one test for \"outside data, not ours\". Never stamp a tool slug as an app.\nexport const CODE_PLUGIN_SOURCE_APP = \"code-plugin\" as const;\nexport const CODE_PLUGIN_SOURCE_APP_LABEL = \"Code Plugin\" as const;\nexport const CODING_TOOL_SOURCE_FEATURES = [\"claude-code\", \"codex\", \"cursor\", \"vscode\"] as const;\n\n// origin_class — the WITNESSED trust axis of request attribution\n// (source: matrx_connect.context.provenance.ORIGIN_CLASSES). Read-only\n// vocabulary for filtering/faceting/display: clients NEVER stamp an\n// origin_class — it is derived server-side from platform-observed facts.\nexport const ORIGIN_CLASSES = [\n \"human\",\n \"client_auto\",\n \"api\",\n \"child_agent\",\n \"workflow\",\n \"scheduled\",\n \"system\",\n \"delegated_member\",\n] as const;\n\n// DB backfill value for pre-provenance history; never written live.\nexport const ORIGIN_CLASS_UNKNOWN = \"unknown\" as const;\n\nexport type OriginClass =\n | (typeof ORIGIN_CLASSES)[number]\n | typeof ORIGIN_CLASS_UNKNOWN;\n\nconst ORIGIN_CLASS_SET: ReadonlySet<string> = new Set([\n ...ORIGIN_CLASSES,\n ORIGIN_CLASS_UNKNOWN,\n]);\n\nexport function isOriginClass(value: string): value is OriginClass {\n return ORIGIN_CLASS_SET.has(value);\n}\n"],"mappings":";AASO,IAAM,cAAc;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,kBAAkB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,IAAM,iBAAsC,IAAI,IAAI,WAAW;AAC/D,IAAM,qBAA0C,IAAI,IAAI,eAAe;AACvE,IAAM,yBAA4C,wBAAwB;AAAA,EACxE,CAAC,YAAY,IAAI,OAAO,OAAO,OAAO,IAAI;AAC5C;AAEO,SAAS,YAAY,OAAmC;AAC7D,SAAO,eAAe,IAAI,KAAK;AACjC;AAEO,SAAS,gBAAgB,OAAuC;AACrE,SACE,mBAAmB,IAAI,KAAK,KAC5B,uBAAuB,KAAK,CAAC,YAAY,QAAQ,KAAK,KAAK,CAAC;AAEhE;AAKO,IAAM,yBAAyB;AAC/B,IAAM,+BAA+B;AACrC,IAAM,8BAA8B,CAAC,eAAe,SAAS,UAAU,QAAQ;AAM/E,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,IAAM,uBAAuB;AAMpC,IAAM,mBAAwC,oBAAI,IAAI;AAAA,EACpD,GAAG;AAAA,EACH;AACF,CAAC;AAEM,SAAS,cAAc,OAAqC;AACjE,SAAO,iBAAiB,IAAI,KAAK;AACnC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../generated/source-attribution.ts"],"sourcesContent":["// AUTO-GENERATED — do not edit manually.\n// Source: aidream.services.conversation_context.source_attribution\n// Run: `uv run python scripts/generate_types.py source-attribution`\n// or fetch via `pnpm sync-types` (pulls /schema/bundle/source-attribution-ts).\n//\n// Conversation provenance allow-lists. matrx-frontend stamps\n// source_app='matrx-frontend' and a product-level source_feature from\n// SOURCE_FEATURES. Chrome/intermediaries are not features.\n\nexport const SOURCE_APPS = [\n \"aidream\",\n \"aidream-api\",\n \"aidream-auto-ingest\",\n \"aidream-batch\",\n \"aidream-content-processing\",\n \"aidream-context-follow\",\n \"aidream-distillation\",\n \"aidream-endpoint-family-sweep\",\n \"aidream-file-rag-jobs\",\n \"aidream-hindsight\",\n \"aidream-health\",\n \"aidream-hr\",\n \"aidream-mandate-lane\",\n \"aidream-notify-listener\",\n \"aidream-outreach\",\n \"aidream-page-extraction\",\n \"aidream-producer-yield\",\n \"aidream-proof-runs\",\n \"aidream-scraper-scheduler\",\n \"aidream-seo\",\n \"aidream-suggestion-sweep\",\n \"aidream-staff-workspace-listener\",\n \"aidream-sweep-listener\",\n \"aidream-workflow-extract-sweep\",\n \"ai-routing\",\n \"chat\",\n \"code-plugin\",\n \"dashboard\",\n \"database\",\n \"matrx-admin\",\n \"matrx-ai\",\n \"matrx-batch\",\n \"matrx-desktop\",\n \"matrx-extend\",\n \"matrx-frontend\",\n \"matrx-local\",\n \"matrx-scheduler\",\n \"mandate-scan\",\n \"masterwork\",\n \"local-pc-proxy\",\n \"mcp-agent-service\",\n \"workflow\",\n \"workflow-studio\",\n] as const;\n\nexport type SourceApp = (typeof SOURCE_APPS)[number];\n\nexport const SOURCE_FEATURES = [\n \"agent-app\",\n \"agent-builder\",\n \"agent-comparison\",\n \"agent-generator\",\n \"agent-runner\",\n \"agents-other\",\n \"ai-results\",\n \"analysis-studio\",\n \"canvas\",\n \"claude-code\",\n \"codex\",\n \"cursor\",\n \"vscode\",\n \"conductor\",\n \"chat\",\n \"cms\",\n \"code-editor\",\n \"crm\",\n \"content-extractor\",\n \"dictionary\",\n \"documents\",\n \"education-analytics\",\n \"education-assessment\",\n \"education-fastfire\",\n \"education-flashcards\",\n \"education-ingest\",\n \"education-mindmap\",\n \"education-planner\",\n \"education-tutor\",\n \"files\",\n \"image-studio\",\n \"incident-assurance\",\n \"legal\",\n \"marketing\",\n \"masterwork\",\n \"mermaid-workbench\",\n \"messages\",\n \"notes\",\n \"pdf-extractor\",\n \"pdf-widgets\",\n \"personal-staff\",\n \"staff-inbox-driver\",\n \"podcasts\",\n \"print\",\n \"projects\",\n \"rag-search\",\n \"research\",\n \"scanner\",\n \"scraper\",\n \"scratchpad\",\n \"sms-assistant\",\n \"system\",\n \"tasks\",\n \"tool-call-visualization\",\n \"tool-testing\",\n \"transcription\",\n \"udt\",\n \"voice-agent\",\n \"working-document\",\n \"action_request_park\",\n \"action_request_resolve\",\n \"action_request_continuation\",\n \"agent_usage_sync\",\n \"coverage\",\n \"hr\",\n \"human_decisions\",\n \"local_proxy\",\n \"media_catalog\",\n \"notify_listener\",\n \"outcome_attribution\",\n \"outreach\",\n \"platform_checks\",\n \"provider_outage\",\n \"reroute\",\n \"seo\",\n \"suggestion_sweep\",\n \"sweep_listener\",\n \"workflow_extract_sweep\",\n \"row_history\",\n \"provenance\",\n \"reachability\",\n \"billing\",\n \"sharing\",\n \"client-unmapped\",\n \"web-capture\",\n \"admin\",\n \"agent\",\n \"agent-factory\",\n \"agent-service\",\n \"agent_blocks\",\n \"agent_call\",\n \"agent_flow_v1\",\n \"agent_run\",\n \"agent_structure_builder\",\n \"agent_tool\",\n \"auto_ingest\",\n \"auto_ingest_ner\",\n \"background_agent\",\n \"browser_handoff_delegate\",\n \"browser_handoff_resolve\",\n \"browser_session_health\",\n \"builtin_agent\",\n \"builtin_categorize\",\n \"clean_pdf_extracted_content\",\n \"coding_session_native\",\n \"coding_session_reply\",\n \"content_plan_acceptance\",\n \"content_plan_cms_fill\",\n \"content_plan_cms_fill_preview\",\n \"content_plan_deepen\",\n \"content_plan_generate\",\n \"content_processing\",\n \"content_processing_upload_hook\",\n \"coding_session_bridge.backfill\",\n \"context_summary\",\n \"crm.media_list_refresh\",\n \"conversation\",\n \"conversation_crash_recovery\",\n \"conversation_fork\",\n \"conversation_resume\",\n \"crawl_run\",\n \"deep_research_v1\",\n \"deferred_claim_recovery\",\n \"distillation_coherence\",\n \"doc_verify\",\n \"education-media-reconcile\",\n \"education_card_image_generator\",\n \"education_card_image_prompt_writer\",\n \"education_card_image_qc_judge\",\n \"education_card_image_rot\",\n \"education_card_image_web_source\",\n \"education_card_images\",\n \"education_study_pack\",\n \"education_study_pack_v2\",\n \"agent_foundry_v1\",\n \"product_capture_intake\",\n \"product_capture_research\",\n \"endpoint_family_sweep\",\n \"external_url_change\",\n \"fork_and_run\",\n \"hindsight\",\n \"hindsight/crystallization\",\n \"hindsight/wire_replay\",\n \"hindsight_replay\",\n \"hindsight_replay_worker\",\n \"hindsight_shadow_recompilation\",\n \"internal\",\n \"google_workspace.approval_replay\",\n \"kg_clustering_namer\",\n \"manual\",\n \"masterwork_build\",\n \"masterwork_recovery\",\n \"media_heal\",\n \"ner\",\n \"page_extraction\",\n \"page_extraction_retry\",\n \"pdf-cleaner\",\n \"prompt\",\n \"proof_run:content_plan_family_grounding\",\n \"proof_run:news_self_validating\",\n \"rag\",\n \"rag_chunk_contextualizer\",\n \"rag_hyde_generator\",\n \"rag_pdf_page_cleaner\",\n \"rag_query_expander\",\n \"realtime\",\n \"realtime_tool\",\n \"research_condenser_1\",\n \"research_condenser_2\",\n \"research_refresh_dispatch\",\n \"registry_ingestion.pass\",\n \"scheduled\",\n \"schema_coerce\",\n \"seo.engine_schedule_dispatcher\",\n \"seo.keyword_place_backfill\",\n \"seo.rank_schedule\",\n \"seo_analysis_sweep\",\n \"seo_keyword_research\",\n \"sms-outbound\",\n \"server-door\",\n \"server-run\",\n \"socket_compat\",\n \"summarize_content\",\n \"web_crawl_crash_resume\",\n \"web_crawl_schedule_dispatch\",\n \"web_research\",\n \"workflow_recovery_resolve\",\n \"web_url_announce\",\n \"workflow_recovery_push\",\n \"workflow_run_assists\",\n \"workflow_decision_fallback\",\n \"workflow_node_test\",\n \"workflow_plan_assist\",\n \"workflow_recovery_advisor\",\n \"workflow_run\",\n \"workflow_worker\",\n \"vision_interview\",\n \"vision_interview_tracker\",\n \"youtube_research_processing\",\n \"youtube_transcription\",\n \"action_request_credential\",\n \"action_request_one_time_code\",\n \"ai_judge\",\n \"cloud_browser.local_login_learning\",\n \"context_compare_answer\",\n \"conversation_context\",\n \"communications.sms\",\n \"content_processing.research_landing\",\n \"content_processing.transcript_landing\",\n \"context-parity\",\n \"context_follow_listener\",\n \"personal_staff_workspace_listener\",\n \"whole_value_follower\",\n \"crm.media_list_research\",\n \"judge\",\n \"mandate_candidate_review\",\n \"masterwork_audition_elicitation_vanilla\",\n \"masterwork_audition_outcome_vanilla\",\n \"masterwork_audition_unfolding_vanilla\",\n \"masterwork_audition_vanilla\",\n \"masterwork_bench_a2\",\n \"masterwork_bench_extract\",\n \"masterwork_bench_judge\",\n \"masterwork_bench_panel\",\n \"crm.party_kind\",\n \"crm.personalization\",\n \"mandates.batch_lane\",\n \"rag.page_clean\",\n \"seo.page_analysis\",\n \"meet:after_meeting_workflow\",\n \"news_monitor\",\n \"platform_checks_drain\",\n \"source_intelligence\",\n] as const;\n\nexport type SourceFeature = (typeof SOURCE_FEATURES)[number];\n\nexport const SOURCE_FEATURE_PATTERNS = [\n \"rag_derive_[a-z0-9_]+\",\n \"mandate:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"slot:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"mandate_candidate:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"mandate_live:[a-z0-9_]+\\\\.[a-z0-9_]+\",\n \"proof_run:scenario:[A-Za-z0-9][A-Za-z0-9_.\\\\-]*\",\n \"pipe\\\\.step:[^\\\\s]{1,90}\",\n \"sch_tool:[A-Za-z0-9_.\\\\-]{1,111}\",\n \"batch\\\\.[a-z0-9_]+(?:\\\\.[a-z0-9_]+)*\",\n \"script\\\\.[A-Za-z0-9][A-Za-z0-9_.\\\\-/]*\",\n] as const;\n\nconst SOURCE_APP_SET: ReadonlySet<string> = new Set(SOURCE_APPS);\nconst SOURCE_FEATURE_SET: ReadonlySet<string> = new Set(SOURCE_FEATURES);\nconst SOURCE_FEATURE_REGEXES: readonly RegExp[] = SOURCE_FEATURE_PATTERNS.map(\n (pattern) => new RegExp(`^(?:${pattern})$`),\n);\n\nexport function isSourceApp(value: string): value is SourceApp {\n return SOURCE_APP_SET.has(value);\n}\n\nexport function isSourceFeature(value: string): value is SourceFeature {\n return (\n SOURCE_FEATURE_SET.has(value) ||\n SOURCE_FEATURE_REGEXES.some((pattern) => pattern.test(value))\n );\n}\n\n// Outside coding tools: source_app is ALWAYS CODE_PLUGIN_SOURCE_APP and the\n// tool is the source_feature. `source_app === CODE_PLUGIN_SOURCE_APP` is the\n// one test for \"outside data, not ours\". Never stamp a tool slug as an app.\nexport const CODE_PLUGIN_SOURCE_APP = \"code-plugin\" as const;\nexport const CODE_PLUGIN_SOURCE_APP_LABEL = \"Code Plugin\" as const;\nexport const CODING_TOOL_SOURCE_FEATURES = [\"claude-code\", \"codex\", \"cursor\", \"vscode\"] as const;\n\n// origin_class — the WITNESSED trust axis of request attribution\n// (source: matrx_connect.context.provenance.ORIGIN_CLASSES). Read-only\n// vocabulary for filtering/faceting/display: clients NEVER stamp an\n// origin_class — it is derived server-side from platform-observed facts.\nexport const ORIGIN_CLASSES = [\n \"human\",\n \"client_auto\",\n \"api\",\n \"child_agent\",\n \"workflow\",\n \"scheduled\",\n \"system\",\n \"delegated_member\",\n] as const;\n\n// DB backfill value for pre-provenance history; never written live.\nexport const ORIGIN_CLASS_UNKNOWN = \"unknown\" as const;\n\nexport type OriginClass =\n | (typeof ORIGIN_CLASSES)[number]\n | typeof ORIGIN_CLASS_UNKNOWN;\n\nconst ORIGIN_CLASS_SET: ReadonlySet<string> = new Set([\n ...ORIGIN_CLASSES,\n ORIGIN_CLASS_UNKNOWN,\n]);\n\nexport function isOriginClass(value: string): value is OriginClass {\n return ORIGIN_CLASS_SET.has(value);\n}\n"],"mappings":";AASO,IAAM,cAAc;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,kBAAkB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIO,IAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,IAAM,iBAAsC,IAAI,IAAI,WAAW;AAC/D,IAAM,qBAA0C,IAAI,IAAI,eAAe;AACvE,IAAM,yBAA4C,wBAAwB;AAAA,EACxE,CAAC,YAAY,IAAI,OAAO,OAAO,OAAO,IAAI;AAC5C;AAEO,SAAS,YAAY,OAAmC;AAC7D,SAAO,eAAe,IAAI,KAAK;AACjC;AAEO,SAAS,gBAAgB,OAAuC;AACrE,SACE,mBAAmB,IAAI,KAAK,KAC5B,uBAAuB,KAAK,CAAC,YAAY,QAAQ,KAAK,KAAK,CAAC;AAEhE;AAKO,IAAM,yBAAyB;AAC/B,IAAM,+BAA+B;AACrC,IAAM,8BAA8B,CAAC,eAAe,SAAS,UAAU,QAAQ;AAM/E,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,IAAM,uBAAuB;AAMpC,IAAM,mBAAwC,oBAAI,IAAI;AAAA,EACpD,GAAG;AAAA,EACH;AACF,CAAC;AAEM,SAAS,cAAc,OAAqC;AACjE,SAAO,iBAAiB,IAAI,KAAK;AACnC;","names":[]}
|
|
@@ -2516,6 +2516,48 @@ var MESSAGE_PART_SCHEMA = {
|
|
|
2516
2516
|
"default": null,
|
|
2517
2517
|
"title": "Comment Id"
|
|
2518
2518
|
},
|
|
2519
|
+
"id": {
|
|
2520
|
+
"anyOf": [
|
|
2521
|
+
{
|
|
2522
|
+
"maxLength": 200,
|
|
2523
|
+
"minLength": 1,
|
|
2524
|
+
"type": "string"
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"type": "null"
|
|
2528
|
+
}
|
|
2529
|
+
],
|
|
2530
|
+
"default": null,
|
|
2531
|
+
"title": "Id"
|
|
2532
|
+
},
|
|
2533
|
+
"handle": {
|
|
2534
|
+
"anyOf": [
|
|
2535
|
+
{
|
|
2536
|
+
"pattern": "^c[1-9][0-9]{0,5}$",
|
|
2537
|
+
"type": "string"
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
"type": "null"
|
|
2541
|
+
}
|
|
2542
|
+
],
|
|
2543
|
+
"default": null,
|
|
2544
|
+
"title": "Handle"
|
|
2545
|
+
},
|
|
2546
|
+
"thread": {
|
|
2547
|
+
"anyOf": [
|
|
2548
|
+
{
|
|
2549
|
+
"items": {
|
|
2550
|
+
"$ref": "#/$defs/RemarkThreadEntry"
|
|
2551
|
+
},
|
|
2552
|
+
"type": "array"
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"type": "null"
|
|
2556
|
+
}
|
|
2557
|
+
],
|
|
2558
|
+
"default": null,
|
|
2559
|
+
"title": "Thread"
|
|
2560
|
+
},
|
|
2519
2561
|
"metadata": {
|
|
2520
2562
|
"additionalProperties": true,
|
|
2521
2563
|
"title": "Metadata",
|
|
@@ -2584,6 +2626,50 @@ var MESSAGE_PART_SCHEMA = {
|
|
|
2584
2626
|
"title": "RemarkTarget",
|
|
2585
2627
|
"type": "object"
|
|
2586
2628
|
},
|
|
2629
|
+
"RemarkThreadEntry": {
|
|
2630
|
+
"additionalProperties": false,
|
|
2631
|
+
"description": 'One message of an existing comment thread, snapshotted onto a remark\n("continue this thread in a new chat"). Oldest first.',
|
|
2632
|
+
"properties": {
|
|
2633
|
+
"author_name": {
|
|
2634
|
+
"maxLength": 200,
|
|
2635
|
+
"minLength": 1,
|
|
2636
|
+
"title": "Author Name",
|
|
2637
|
+
"type": "string"
|
|
2638
|
+
},
|
|
2639
|
+
"author_kind": {
|
|
2640
|
+
"enum": [
|
|
2641
|
+
"person",
|
|
2642
|
+
"agent"
|
|
2643
|
+
],
|
|
2644
|
+
"title": "Author Kind",
|
|
2645
|
+
"type": "string"
|
|
2646
|
+
},
|
|
2647
|
+
"body": {
|
|
2648
|
+
"minLength": 1,
|
|
2649
|
+
"title": "Body",
|
|
2650
|
+
"type": "string"
|
|
2651
|
+
},
|
|
2652
|
+
"created_at": {
|
|
2653
|
+
"anyOf": [
|
|
2654
|
+
{
|
|
2655
|
+
"type": "string"
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
"type": "null"
|
|
2659
|
+
}
|
|
2660
|
+
],
|
|
2661
|
+
"default": null,
|
|
2662
|
+
"title": "Created At"
|
|
2663
|
+
}
|
|
2664
|
+
},
|
|
2665
|
+
"required": [
|
|
2666
|
+
"author_name",
|
|
2667
|
+
"author_kind",
|
|
2668
|
+
"body"
|
|
2669
|
+
],
|
|
2670
|
+
"title": "RemarkThreadEntry",
|
|
2671
|
+
"type": "object"
|
|
2672
|
+
},
|
|
2587
2673
|
"RemarksInputPart": {
|
|
2588
2674
|
"additionalProperties": false,
|
|
2589
2675
|
"properties": {
|