oh-my-opencode 5.0.0-beta.5 → 5.0.0-beta.7
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 +12 -1
- package/dist/cli/index.js +341 -214
- package/dist/cli-node/index.js +341 -214
- package/dist/index.js +1217 -1112
- package/dist/skills/coding-agent-sessions/SKILL.md +3 -2
- package/dist/skills/coding-agent-sessions/references/all-platforms.md +1 -1
- package/dist/skills/coding-agent-sessions/references/senpi.md +4 -4
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
- package/dist/tui.js +97 -5
- package/package.json +15 -14
- package/packages/lsp-core/src/lsp/client-wrapper.test.ts +60 -7
- package/packages/lsp-core/src/lsp/client-wrapper.ts +69 -16
- package/packages/lsp-core/src/lsp/workspace-edit-adversarial.test.ts +20 -1
- package/packages/lsp-core/src/tools/diagnostics.ts +3 -3
- package/packages/lsp-core/src/tools/navigation.ts +4 -2
- package/packages/lsp-core/src/tools/rename.ts +4 -2
- package/packages/lsp-core/src/tools/symbols.ts +1 -1
- package/packages/lsp-daemon/dist/cli.js +83 -29
- package/packages/lsp-daemon/dist/client.js +76 -22
- package/packages/lsp-daemon/dist/index.js +81 -27
- package/packages/lsp-tools-mcp/dist/cli.js +76 -22
- package/packages/lsp-tools-mcp/dist/mcp.js +76 -22
- package/packages/lsp-tools-mcp/dist/tools.js +76 -22
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/codegraph/dist/cli.js +90 -4
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +90 -4
- package/packages/omo-codex/plugin/components/codegraph/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +3 -3
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +83 -29
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +24 -12
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +24 -12
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +6 -0
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ultrawork/SKILL.md +6 -0
- package/packages/omo-codex/plugin/components/ulw-loop/directive.md +6 -0
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +3 -2
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/define-goal.md +106 -0
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +1 -0
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +13 -13
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/SKILL.md +3 -2
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/all-platforms.md +1 -1
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/senpi.md +4 -4
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
- package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +6 -0
- package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +3 -2
- package/packages/omo-codex/plugin/skills/ulw-loop/references/define-goal.md +106 -0
- package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +1 -0
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +39 -16
- package/packages/shared-skills/skills/coding-agent-sessions/SKILL.md +3 -2
- package/packages/shared-skills/skills/coding-agent-sessions/references/all-platforms.md +1 -1
- package/packages/shared-skills/skills/coding-agent-sessions/references/senpi.md +4 -4
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
package/dist/index.js
CHANGED
|
@@ -5537,14 +5537,15 @@ var init_codegraph = __esm(() => {
|
|
|
5537
5537
|
|
|
5538
5538
|
// packages/omo-config-core/src/schema/memory.ts
|
|
5539
5539
|
import * as z7 from "zod";
|
|
5540
|
-
var OmoMemoryReflectionTriggerSchema, OmoMemoryReflectionSchema, OmoMemorySyncSchema, OmoMemorySearchSchema, OmoMemoryReflectionTriggerLayerSchema, OmoMemoryReflectionLayerSchema, OmoMemorySyncLayerSchema, OmoMemorySearchLayerSchema, OmoMemoryAgentOverridesSchema, OmoMemorySettingsSchema, OmoMemorySettingsLayerSchema;
|
|
5540
|
+
var OmoMemoryReflectionTriggerSchema, OmoMemoryReflectionSchema, OmoMemorySyncSchema, OmoMemorySearchSchema, OmoMemoryNudgeSchema, OmoMemoryFactsSchema, OmoMemoryDreamSchema, OmoMemoryPeopleSchema, OmoMemorySoulSchema, OmoMemoryReflectionTriggerLayerSchema, OmoMemoryReflectionLayerSchema, OmoMemorySyncLayerSchema, OmoMemorySearchLayerSchema, OmoMemoryNudgeLayerSchema, OmoMemoryFactsLayerSchema, OmoMemoryDreamLayerSchema, OmoMemoryPeopleLayerSchema, OmoMemorySoulLayerSchema, OmoMemoryAgentOverridesSchema, OmoMemorySettingsSchema, OmoMemorySettingsLayerSchema;
|
|
5541
5541
|
var init_memory = __esm(() => {
|
|
5542
5542
|
OmoMemoryReflectionTriggerSchema = z7.object({
|
|
5543
|
-
step_count: z7.number().int().nonnegative().default(
|
|
5543
|
+
step_count: z7.number().int().nonnegative().default(25),
|
|
5544
5544
|
on_compaction: z7.boolean().default(true)
|
|
5545
5545
|
}).strict();
|
|
5546
5546
|
OmoMemoryReflectionSchema = z7.object({
|
|
5547
|
-
|
|
5547
|
+
enabled: z7.boolean().default(true),
|
|
5548
|
+
trigger: OmoMemoryReflectionTriggerSchema.default({ step_count: 25, on_compaction: true }),
|
|
5548
5549
|
merge: z7.enum(["auto", "integration"]).default("auto"),
|
|
5549
5550
|
category: z7.string().min(1).default("quick"),
|
|
5550
5551
|
timeout_minutes: z7.number().int().positive().default(15),
|
|
@@ -5557,11 +5558,36 @@ var init_memory = __esm(() => {
|
|
|
5557
5558
|
OmoMemorySearchSchema = z7.object({
|
|
5558
5559
|
enabled: z7.boolean().default(true)
|
|
5559
5560
|
}).strict();
|
|
5561
|
+
OmoMemoryNudgeSchema = z7.object({
|
|
5562
|
+
enabled: z7.boolean().default(true),
|
|
5563
|
+
every_user_turns: z7.number().int().min(1).default(10)
|
|
5564
|
+
}).strict();
|
|
5565
|
+
OmoMemoryFactsSchema = z7.object({
|
|
5566
|
+
enabled: z7.boolean().default(true),
|
|
5567
|
+
debounce_settles: z7.number().int().min(1).default(4)
|
|
5568
|
+
}).strict();
|
|
5569
|
+
OmoMemoryDreamSchema = z7.object({
|
|
5570
|
+
enabled: z7.boolean().default(true),
|
|
5571
|
+
idle_minutes: z7.number().int().min(0).default(30),
|
|
5572
|
+
min_hours_between: z7.number().int().min(1).default(24),
|
|
5573
|
+
shutdown_launch: z7.boolean().default(true),
|
|
5574
|
+
auto_select_max: z7.number().int().min(1).max(10).default(5),
|
|
5575
|
+
auto_select_max_chars: z7.number().int().min(1e4).default(150000)
|
|
5576
|
+
}).strict();
|
|
5577
|
+
OmoMemoryPeopleSchema = z7.object({
|
|
5578
|
+
enabled: z7.boolean().default(true),
|
|
5579
|
+
max_entries: z7.number().int().min(1).max(100).default(40),
|
|
5580
|
+
max_entry_chars: z7.number().int().min(50).max(500).default(200)
|
|
5581
|
+
}).strict();
|
|
5582
|
+
OmoMemorySoulSchema = z7.object({
|
|
5583
|
+
edit_notice: z7.boolean().default(true)
|
|
5584
|
+
}).strict();
|
|
5560
5585
|
OmoMemoryReflectionTriggerLayerSchema = z7.object({
|
|
5561
5586
|
step_count: z7.number().int().nonnegative().optional(),
|
|
5562
5587
|
on_compaction: z7.boolean().optional()
|
|
5563
5588
|
}).strict();
|
|
5564
5589
|
OmoMemoryReflectionLayerSchema = z7.object({
|
|
5590
|
+
enabled: z7.boolean().optional(),
|
|
5565
5591
|
trigger: OmoMemoryReflectionTriggerLayerSchema.optional(),
|
|
5566
5592
|
merge: z7.enum(["auto", "integration"]).optional(),
|
|
5567
5593
|
category: z7.string().min(1).optional(),
|
|
@@ -5575,10 +5601,39 @@ var init_memory = __esm(() => {
|
|
|
5575
5601
|
OmoMemorySearchLayerSchema = z7.object({
|
|
5576
5602
|
enabled: z7.boolean().optional()
|
|
5577
5603
|
}).strict();
|
|
5604
|
+
OmoMemoryNudgeLayerSchema = z7.object({
|
|
5605
|
+
enabled: z7.boolean().optional(),
|
|
5606
|
+
every_user_turns: z7.number().int().min(1).optional()
|
|
5607
|
+
}).strict();
|
|
5608
|
+
OmoMemoryFactsLayerSchema = z7.object({
|
|
5609
|
+
enabled: z7.boolean().optional(),
|
|
5610
|
+
debounce_settles: z7.number().int().min(1).optional()
|
|
5611
|
+
}).strict();
|
|
5612
|
+
OmoMemoryDreamLayerSchema = z7.object({
|
|
5613
|
+
enabled: z7.boolean().optional(),
|
|
5614
|
+
idle_minutes: z7.number().int().min(0).optional(),
|
|
5615
|
+
min_hours_between: z7.number().int().min(1).optional(),
|
|
5616
|
+
shutdown_launch: z7.boolean().optional(),
|
|
5617
|
+
auto_select_max: z7.number().int().min(1).max(10).optional(),
|
|
5618
|
+
auto_select_max_chars: z7.number().int().min(1e4).optional()
|
|
5619
|
+
}).strict();
|
|
5620
|
+
OmoMemoryPeopleLayerSchema = z7.object({
|
|
5621
|
+
enabled: z7.boolean().optional(),
|
|
5622
|
+
max_entries: z7.number().int().min(1).max(100).optional(),
|
|
5623
|
+
max_entry_chars: z7.number().int().min(50).max(500).optional()
|
|
5624
|
+
}).strict();
|
|
5625
|
+
OmoMemorySoulLayerSchema = z7.object({
|
|
5626
|
+
edit_notice: z7.boolean().optional()
|
|
5627
|
+
}).strict();
|
|
5578
5628
|
OmoMemoryAgentOverridesSchema = z7.object({
|
|
5579
5629
|
enabled: z7.boolean().optional(),
|
|
5580
5630
|
agent: z7.string().min(1).optional(),
|
|
5581
5631
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
5632
|
+
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
5633
|
+
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
5634
|
+
dream: OmoMemoryDreamLayerSchema.optional(),
|
|
5635
|
+
people: OmoMemoryPeopleLayerSchema.optional(),
|
|
5636
|
+
soul: OmoMemorySoulLayerSchema.optional(),
|
|
5582
5637
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
5583
5638
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
5584
5639
|
compile_warn_tokens: z7.number().int().positive().optional()
|
|
@@ -5588,12 +5643,25 @@ var init_memory = __esm(() => {
|
|
|
5588
5643
|
agent: z7.string().min(1).default("auto"),
|
|
5589
5644
|
tool_exposure: z7.enum(["direct", "search"]).default("direct"),
|
|
5590
5645
|
reflection: OmoMemoryReflectionSchema.default({
|
|
5591
|
-
|
|
5646
|
+
enabled: true,
|
|
5647
|
+
trigger: { step_count: 25, on_compaction: true },
|
|
5592
5648
|
merge: "auto",
|
|
5593
5649
|
category: "quick",
|
|
5594
5650
|
timeout_minutes: 15,
|
|
5595
5651
|
sandbox: "auto"
|
|
5596
5652
|
}),
|
|
5653
|
+
nudge: OmoMemoryNudgeSchema.default({ enabled: true, every_user_turns: 10 }),
|
|
5654
|
+
facts: OmoMemoryFactsSchema.default({ enabled: true, debounce_settles: 4 }),
|
|
5655
|
+
dream: OmoMemoryDreamSchema.default({
|
|
5656
|
+
enabled: true,
|
|
5657
|
+
idle_minutes: 30,
|
|
5658
|
+
min_hours_between: 24,
|
|
5659
|
+
shutdown_launch: true,
|
|
5660
|
+
auto_select_max: 5,
|
|
5661
|
+
auto_select_max_chars: 150000
|
|
5662
|
+
}),
|
|
5663
|
+
people: OmoMemoryPeopleSchema.default({ enabled: true, max_entries: 40, max_entry_chars: 200 }),
|
|
5664
|
+
soul: OmoMemorySoulSchema.default({ edit_notice: true }),
|
|
5597
5665
|
sync: OmoMemorySyncSchema.default({ enabled: true }),
|
|
5598
5666
|
search: OmoMemorySearchSchema.default({ enabled: true }),
|
|
5599
5667
|
compile_warn_tokens: z7.number().int().positive().default(30000),
|
|
@@ -5604,6 +5672,11 @@ var init_memory = __esm(() => {
|
|
|
5604
5672
|
agent: z7.string().min(1).optional(),
|
|
5605
5673
|
tool_exposure: z7.enum(["direct", "search"]).optional(),
|
|
5606
5674
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
5675
|
+
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
5676
|
+
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
5677
|
+
dream: OmoMemoryDreamLayerSchema.optional(),
|
|
5678
|
+
people: OmoMemoryPeopleLayerSchema.optional(),
|
|
5679
|
+
soul: OmoMemorySoulLayerSchema.optional(),
|
|
5607
5680
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
5608
5681
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
5609
5682
|
compile_warn_tokens: z7.number().int().positive().optional(),
|
|
@@ -5759,8 +5832,21 @@ var init_team = __esm(() => {
|
|
|
5759
5832
|
OmoTeamsConfigLayerSchema = z10.record(z10.string(), OmoTeamSpecLayerSchema);
|
|
5760
5833
|
});
|
|
5761
5834
|
|
|
5762
|
-
// packages/omo-config-core/src/schema/
|
|
5835
|
+
// packages/omo-config-core/src/schema/telemetry.ts
|
|
5763
5836
|
import * as z11 from "zod";
|
|
5837
|
+
var OmoTelemetrySettingsShape, OmoTelemetrySettingsLayerSchema, OmoTelemetrySettingsSchema;
|
|
5838
|
+
var init_telemetry = __esm(() => {
|
|
5839
|
+
OmoTelemetrySettingsShape = {
|
|
5840
|
+
enabled: z11.boolean()
|
|
5841
|
+
};
|
|
5842
|
+
OmoTelemetrySettingsLayerSchema = z11.object(OmoTelemetrySettingsShape).partial().strict();
|
|
5843
|
+
OmoTelemetrySettingsSchema = OmoTelemetrySettingsLayerSchema.extend({
|
|
5844
|
+
enabled: z11.boolean().default(true)
|
|
5845
|
+
}).strict();
|
|
5846
|
+
});
|
|
5847
|
+
|
|
5848
|
+
// packages/omo-config-core/src/schema/config.ts
|
|
5849
|
+
import * as z12 from "zod";
|
|
5764
5850
|
var OmoOpenCodeHarnessConfigSchema, OmoTypedHarnessConfigSchema, OmoConfigProfileSchema, OmoConfigSchema, OmoConfigLayerSchema;
|
|
5765
5851
|
var init_config = __esm(() => {
|
|
5766
5852
|
init_agent();
|
|
@@ -5770,17 +5856,19 @@ var init_config = __esm(() => {
|
|
|
5770
5856
|
init_model_catalog();
|
|
5771
5857
|
init_task();
|
|
5772
5858
|
init_team();
|
|
5773
|
-
|
|
5774
|
-
|
|
5859
|
+
init_telemetry();
|
|
5860
|
+
OmoOpenCodeHarnessConfigSchema = z12.record(z12.string(), z12.unknown());
|
|
5861
|
+
OmoTypedHarnessConfigSchema = z12.object({
|
|
5775
5862
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5776
5863
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5777
5864
|
codegraph: OmoCodegraphSettingsLayerSchema.optional(),
|
|
5778
5865
|
task: OmoTaskSettingsLayerSchema.optional(),
|
|
5779
5866
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
5780
5867
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
5781
|
-
memory: OmoMemorySettingsLayerSchema.optional()
|
|
5868
|
+
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
5869
|
+
telemetry: OmoTelemetrySettingsLayerSchema.optional()
|
|
5782
5870
|
}).strict();
|
|
5783
|
-
OmoConfigProfileSchema =
|
|
5871
|
+
OmoConfigProfileSchema = z12.object({
|
|
5784
5872
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5785
5873
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5786
5874
|
codegraph: OmoCodegraphSettingsLayerSchema.optional(),
|
|
@@ -5788,12 +5876,13 @@ var init_config = __esm(() => {
|
|
|
5788
5876
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
5789
5877
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
5790
5878
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
5879
|
+
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
5791
5880
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
5792
5881
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
5793
5882
|
"[codex]": OmoTypedHarnessConfigSchema.optional()
|
|
5794
5883
|
}).strict();
|
|
5795
|
-
OmoConfigSchema =
|
|
5796
|
-
$schema:
|
|
5884
|
+
OmoConfigSchema = z12.object({
|
|
5885
|
+
$schema: z12.string().optional(),
|
|
5797
5886
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5798
5887
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5799
5888
|
codegraph: OmoCodegraphSettingsSchema.optional(),
|
|
@@ -5801,15 +5890,16 @@ var init_config = __esm(() => {
|
|
|
5801
5890
|
teams: OmoTeamsConfigSchema.optional(),
|
|
5802
5891
|
models: OmoModelCatalogSchema.optional(),
|
|
5803
5892
|
memory: OmoMemorySettingsSchema.optional(),
|
|
5893
|
+
telemetry: OmoTelemetrySettingsSchema.optional(),
|
|
5804
5894
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
5805
5895
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
5806
5896
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
5807
|
-
profiles:
|
|
5808
|
-
_migrations:
|
|
5809
|
-
legacy_migrations:
|
|
5897
|
+
profiles: z12.record(z12.string(), OmoConfigProfileSchema).default({}),
|
|
5898
|
+
_migrations: z12.array(z12.string()).optional(),
|
|
5899
|
+
legacy_migrations: z12.record(z12.string(), z12.unknown()).optional()
|
|
5810
5900
|
}).strict();
|
|
5811
|
-
OmoConfigLayerSchema =
|
|
5812
|
-
$schema:
|
|
5901
|
+
OmoConfigLayerSchema = z12.object({
|
|
5902
|
+
$schema: z12.string().optional(),
|
|
5813
5903
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5814
5904
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5815
5905
|
codegraph: OmoCodegraphSettingsLayerSchema.optional(),
|
|
@@ -5817,12 +5907,13 @@ var init_config = __esm(() => {
|
|
|
5817
5907
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
5818
5908
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
5819
5909
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
5910
|
+
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
5820
5911
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
5821
5912
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
5822
5913
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
5823
|
-
profiles:
|
|
5824
|
-
_migrations:
|
|
5825
|
-
legacy_migrations:
|
|
5914
|
+
profiles: z12.record(z12.string(), OmoConfigProfileSchema).optional(),
|
|
5915
|
+
_migrations: z12.array(z12.string()).optional(),
|
|
5916
|
+
legacy_migrations: z12.record(z12.string(), z12.unknown()).optional()
|
|
5826
5917
|
}).strict();
|
|
5827
5918
|
});
|
|
5828
5919
|
|
|
@@ -5839,6 +5930,7 @@ var init_schema = __esm(() => {
|
|
|
5839
5930
|
init_model_ref();
|
|
5840
5931
|
init_task();
|
|
5841
5932
|
init_team();
|
|
5933
|
+
init_telemetry();
|
|
5842
5934
|
});
|
|
5843
5935
|
|
|
5844
5936
|
// packages/omo-config-core/src/loader/merge.ts
|
|
@@ -16170,7 +16262,7 @@ var init_member_parser = __esm(() => {
|
|
|
16170
16262
|
});
|
|
16171
16263
|
|
|
16172
16264
|
// packages/team-core/src/types.ts
|
|
16173
|
-
import * as
|
|
16265
|
+
import * as z50 from "zod";
|
|
16174
16266
|
var MESSAGE_KINDS, TASK_STATUSES, RUNTIME_STATUSES, MemberBaseSchema, CategoryMemberSchema, SubagentMemberSchema, MemberSchema, TeamReferenceSchema, MISSING_TEAM_LEAD_MESSAGE = "leadAgentId required (or write a `lead: {...}` field, or mark one member with `isLead: true`)", TeamSpecSchema, MessageSchema, TaskSchema, RuntimeStateMemberModelSchema, RuntimeStateMemberSchema, RuntimeBoundsSchema, ShutdownRequestSchema, RuntimeStateTmuxLayoutSchema, RuntimeStateSchema, AGENT_ELIGIBILITY_REGISTRY, parseMemberBase;
|
|
16175
16267
|
var init_types5 = __esm(() => {
|
|
16176
16268
|
init_member_parser();
|
|
@@ -16191,40 +16283,40 @@ var init_types5 = __esm(() => {
|
|
|
16191
16283
|
"failed",
|
|
16192
16284
|
"orphaned"
|
|
16193
16285
|
];
|
|
16194
|
-
MemberBaseSchema =
|
|
16195
|
-
name:
|
|
16196
|
-
cwd:
|
|
16197
|
-
worktreePath:
|
|
16198
|
-
task_summary:
|
|
16199
|
-
subscriptions:
|
|
16200
|
-
backendType:
|
|
16201
|
-
color:
|
|
16202
|
-
isActive:
|
|
16286
|
+
MemberBaseSchema = z50.object({
|
|
16287
|
+
name: z50.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
16288
|
+
cwd: z50.string().optional(),
|
|
16289
|
+
worktreePath: z50.string().optional(),
|
|
16290
|
+
task_summary: z50.string().max(80).optional(),
|
|
16291
|
+
subscriptions: z50.array(z50.string()).optional(),
|
|
16292
|
+
backendType: z50.enum(["in-process", "tmux"]).default("in-process"),
|
|
16293
|
+
color: z50.string().optional(),
|
|
16294
|
+
isActive: z50.boolean().default(true)
|
|
16203
16295
|
}).strict();
|
|
16204
16296
|
CategoryMemberSchema = MemberBaseSchema.extend({
|
|
16205
|
-
kind:
|
|
16206
|
-
category:
|
|
16207
|
-
prompt:
|
|
16297
|
+
kind: z50.literal("category"),
|
|
16298
|
+
category: z50.string().min(1),
|
|
16299
|
+
prompt: z50.string().min(1)
|
|
16208
16300
|
});
|
|
16209
16301
|
SubagentMemberSchema = MemberBaseSchema.extend({
|
|
16210
|
-
kind:
|
|
16211
|
-
subagent_type:
|
|
16212
|
-
prompt:
|
|
16302
|
+
kind: z50.literal("subagent_type"),
|
|
16303
|
+
subagent_type: z50.string().min(1),
|
|
16304
|
+
prompt: z50.string().optional()
|
|
16213
16305
|
});
|
|
16214
|
-
MemberSchema =
|
|
16215
|
-
TeamReferenceSchema =
|
|
16216
|
-
path:
|
|
16217
|
-
description:
|
|
16306
|
+
MemberSchema = z50.discriminatedUnion("kind", [CategoryMemberSchema, SubagentMemberSchema]);
|
|
16307
|
+
TeamReferenceSchema = z50.object({
|
|
16308
|
+
path: z50.string(),
|
|
16309
|
+
description: z50.string().optional()
|
|
16218
16310
|
}).strict();
|
|
16219
|
-
TeamSpecSchema =
|
|
16220
|
-
version:
|
|
16221
|
-
name:
|
|
16222
|
-
description:
|
|
16223
|
-
createdAt:
|
|
16224
|
-
leadAgentId:
|
|
16225
|
-
teamAllowedPaths:
|
|
16226
|
-
sessionPermission:
|
|
16227
|
-
members:
|
|
16311
|
+
TeamSpecSchema = z50.object({
|
|
16312
|
+
version: z50.literal(1).default(1),
|
|
16313
|
+
name: z50.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
16314
|
+
description: z50.string().optional(),
|
|
16315
|
+
createdAt: z50.number().int().positive().default(() => Date.now()),
|
|
16316
|
+
leadAgentId: z50.string().optional(),
|
|
16317
|
+
teamAllowedPaths: z50.array(z50.string()).optional(),
|
|
16318
|
+
sessionPermission: z50.string().optional(),
|
|
16319
|
+
members: z50.array(MemberSchema).min(1).max(8)
|
|
16228
16320
|
}).superRefine((teamSpec, ctx) => {
|
|
16229
16321
|
if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
|
|
16230
16322
|
ctx.addIssue({
|
|
@@ -16246,95 +16338,95 @@ var init_types5 = __esm(() => {
|
|
|
16246
16338
|
leadAgentId: firstMember.name
|
|
16247
16339
|
};
|
|
16248
16340
|
});
|
|
16249
|
-
MessageSchema =
|
|
16250
|
-
version:
|
|
16251
|
-
messageId:
|
|
16252
|
-
from:
|
|
16253
|
-
to:
|
|
16254
|
-
kind:
|
|
16255
|
-
body:
|
|
16256
|
-
summary:
|
|
16257
|
-
references:
|
|
16258
|
-
timestamp:
|
|
16259
|
-
correlationId:
|
|
16260
|
-
color:
|
|
16341
|
+
MessageSchema = z50.object({
|
|
16342
|
+
version: z50.literal(1),
|
|
16343
|
+
messageId: z50.string().uuid(),
|
|
16344
|
+
from: z50.string(),
|
|
16345
|
+
to: z50.string(),
|
|
16346
|
+
kind: z50.enum(MESSAGE_KINDS),
|
|
16347
|
+
body: z50.string().max(32 * 1024),
|
|
16348
|
+
summary: z50.string().optional(),
|
|
16349
|
+
references: z50.array(TeamReferenceSchema).optional(),
|
|
16350
|
+
timestamp: z50.number().int().positive(),
|
|
16351
|
+
correlationId: z50.string().uuid().optional(),
|
|
16352
|
+
color: z50.string().optional()
|
|
16261
16353
|
});
|
|
16262
|
-
TaskSchema =
|
|
16263
|
-
version:
|
|
16264
|
-
id:
|
|
16265
|
-
subject:
|
|
16266
|
-
description:
|
|
16267
|
-
activeForm:
|
|
16268
|
-
status:
|
|
16269
|
-
owner:
|
|
16270
|
-
blocks:
|
|
16271
|
-
blockedBy:
|
|
16272
|
-
metadata:
|
|
16273
|
-
createdAt:
|
|
16274
|
-
updatedAt:
|
|
16275
|
-
claimedAt:
|
|
16354
|
+
TaskSchema = z50.object({
|
|
16355
|
+
version: z50.literal(1),
|
|
16356
|
+
id: z50.string(),
|
|
16357
|
+
subject: z50.string(),
|
|
16358
|
+
description: z50.string(),
|
|
16359
|
+
activeForm: z50.string().optional(),
|
|
16360
|
+
status: z50.enum(TASK_STATUSES),
|
|
16361
|
+
owner: z50.string().optional(),
|
|
16362
|
+
blocks: z50.array(z50.string()).default([]),
|
|
16363
|
+
blockedBy: z50.array(z50.string()).default([]),
|
|
16364
|
+
metadata: z50.record(z50.string(), z50.unknown()).optional(),
|
|
16365
|
+
createdAt: z50.number().int().positive(),
|
|
16366
|
+
updatedAt: z50.number().int().positive(),
|
|
16367
|
+
claimedAt: z50.number().int().positive().optional()
|
|
16276
16368
|
});
|
|
16277
|
-
RuntimeStateMemberModelSchema =
|
|
16278
|
-
providerID:
|
|
16279
|
-
modelID:
|
|
16280
|
-
variant:
|
|
16281
|
-
reasoningEffort:
|
|
16282
|
-
temperature:
|
|
16283
|
-
top_p:
|
|
16284
|
-
maxTokens:
|
|
16285
|
-
thinking:
|
|
16286
|
-
type:
|
|
16287
|
-
budgetTokens:
|
|
16369
|
+
RuntimeStateMemberModelSchema = z50.object({
|
|
16370
|
+
providerID: z50.string(),
|
|
16371
|
+
modelID: z50.string(),
|
|
16372
|
+
variant: z50.string().optional(),
|
|
16373
|
+
reasoningEffort: z50.string().optional(),
|
|
16374
|
+
temperature: z50.number().optional(),
|
|
16375
|
+
top_p: z50.number().optional(),
|
|
16376
|
+
maxTokens: z50.number().optional(),
|
|
16377
|
+
thinking: z50.object({
|
|
16378
|
+
type: z50.enum(["enabled", "disabled"]),
|
|
16379
|
+
budgetTokens: z50.number().int().positive().optional()
|
|
16288
16380
|
}).optional()
|
|
16289
16381
|
}).strict();
|
|
16290
|
-
RuntimeStateMemberSchema =
|
|
16291
|
-
name:
|
|
16292
|
-
sessionId:
|
|
16293
|
-
tmuxPaneId:
|
|
16294
|
-
tmuxGridPaneId:
|
|
16295
|
-
agentType:
|
|
16296
|
-
subagent_type:
|
|
16297
|
-
category:
|
|
16382
|
+
RuntimeStateMemberSchema = z50.object({
|
|
16383
|
+
name: z50.string(),
|
|
16384
|
+
sessionId: z50.string().optional(),
|
|
16385
|
+
tmuxPaneId: z50.string().optional(),
|
|
16386
|
+
tmuxGridPaneId: z50.string().optional(),
|
|
16387
|
+
agentType: z50.enum(["leader", "general-purpose"]),
|
|
16388
|
+
subagent_type: z50.string().optional(),
|
|
16389
|
+
category: z50.string().optional(),
|
|
16298
16390
|
model: RuntimeStateMemberModelSchema.optional(),
|
|
16299
|
-
status:
|
|
16300
|
-
color:
|
|
16301
|
-
worktreePath:
|
|
16302
|
-
lastInjectedTurnMarker:
|
|
16303
|
-
pendingInjectedMessageIds:
|
|
16391
|
+
status: z50.enum(["pending", "running", "idle", "errored", "completed", "shutdown_approved"]),
|
|
16392
|
+
color: z50.string().optional(),
|
|
16393
|
+
worktreePath: z50.string().optional(),
|
|
16394
|
+
lastInjectedTurnMarker: z50.string().optional(),
|
|
16395
|
+
pendingInjectedMessageIds: z50.array(z50.string()).default([])
|
|
16304
16396
|
}).strict();
|
|
16305
|
-
RuntimeBoundsSchema =
|
|
16306
|
-
maxMembers:
|
|
16307
|
-
maxParallelMembers:
|
|
16308
|
-
maxMessagesPerRun:
|
|
16309
|
-
maxWallClockMinutes:
|
|
16310
|
-
maxMemberTurns:
|
|
16397
|
+
RuntimeBoundsSchema = z50.object({
|
|
16398
|
+
maxMembers: z50.number().int().default(8),
|
|
16399
|
+
maxParallelMembers: z50.number().int().default(4),
|
|
16400
|
+
maxMessagesPerRun: z50.number().int().default(1e4),
|
|
16401
|
+
maxWallClockMinutes: z50.number().int().default(120),
|
|
16402
|
+
maxMemberTurns: z50.number().int().default(500)
|
|
16311
16403
|
}).strict();
|
|
16312
|
-
ShutdownRequestSchema =
|
|
16313
|
-
memberId:
|
|
16314
|
-
requesterName:
|
|
16315
|
-
requestedAt:
|
|
16316
|
-
approvedAt:
|
|
16317
|
-
rejectedReason:
|
|
16318
|
-
rejectedAt:
|
|
16404
|
+
ShutdownRequestSchema = z50.object({
|
|
16405
|
+
memberId: z50.string(),
|
|
16406
|
+
requesterName: z50.string(),
|
|
16407
|
+
requestedAt: z50.number().int().positive(),
|
|
16408
|
+
approvedAt: z50.number().int().positive().optional(),
|
|
16409
|
+
rejectedReason: z50.string().optional(),
|
|
16410
|
+
rejectedAt: z50.number().int().positive().optional()
|
|
16319
16411
|
}).strict();
|
|
16320
|
-
RuntimeStateTmuxLayoutSchema =
|
|
16321
|
-
ownedSession:
|
|
16322
|
-
targetSessionId:
|
|
16323
|
-
focusWindowId:
|
|
16324
|
-
gridWindowId:
|
|
16325
|
-
paneIds:
|
|
16412
|
+
RuntimeStateTmuxLayoutSchema = z50.object({
|
|
16413
|
+
ownedSession: z50.boolean(),
|
|
16414
|
+
targetSessionId: z50.string(),
|
|
16415
|
+
focusWindowId: z50.string().optional(),
|
|
16416
|
+
gridWindowId: z50.string().optional(),
|
|
16417
|
+
paneIds: z50.array(z50.string()).optional()
|
|
16326
16418
|
}).strict();
|
|
16327
|
-
RuntimeStateSchema =
|
|
16328
|
-
version:
|
|
16329
|
-
teamRunId:
|
|
16330
|
-
teamName:
|
|
16331
|
-
specSource:
|
|
16332
|
-
createdAt:
|
|
16333
|
-
status:
|
|
16334
|
-
leadSessionId:
|
|
16419
|
+
RuntimeStateSchema = z50.object({
|
|
16420
|
+
version: z50.literal(1),
|
|
16421
|
+
teamRunId: z50.string().uuid(),
|
|
16422
|
+
teamName: z50.string(),
|
|
16423
|
+
specSource: z50.enum(["project", "user"]),
|
|
16424
|
+
createdAt: z50.number().int().positive(),
|
|
16425
|
+
status: z50.enum(RUNTIME_STATUSES),
|
|
16426
|
+
leadSessionId: z50.string().optional(),
|
|
16335
16427
|
tmuxLayout: RuntimeStateTmuxLayoutSchema.optional(),
|
|
16336
|
-
members:
|
|
16337
|
-
shutdownRequests:
|
|
16428
|
+
members: z50.array(RuntimeStateMemberSchema),
|
|
16429
|
+
shutdownRequests: z50.array(ShutdownRequestSchema).default([]),
|
|
16338
16430
|
bounds: RuntimeBoundsSchema
|
|
16339
16431
|
});
|
|
16340
16432
|
AGENT_ELIGIBILITY_REGISTRY = {
|
|
@@ -27122,8 +27214,8 @@ function findUnknownKeyPaths(schema2, value) {
|
|
|
27122
27214
|
}
|
|
27123
27215
|
|
|
27124
27216
|
// packages/omo-opencode/src/config/schema/agent-names.ts
|
|
27125
|
-
import { z as
|
|
27126
|
-
var BuiltinAgentNameSchema =
|
|
27217
|
+
import { z as z13 } from "zod";
|
|
27218
|
+
var BuiltinAgentNameSchema = z13.enum([
|
|
27127
27219
|
"sisyphus",
|
|
27128
27220
|
"hephaestus",
|
|
27129
27221
|
"prometheus",
|
|
@@ -27136,7 +27228,7 @@ var BuiltinAgentNameSchema = z12.enum([
|
|
|
27136
27228
|
"atlas",
|
|
27137
27229
|
"sisyphus-junior"
|
|
27138
27230
|
]);
|
|
27139
|
-
var BuiltinSkillNameSchema =
|
|
27231
|
+
var BuiltinSkillNameSchema = z13.enum([
|
|
27140
27232
|
"playwright",
|
|
27141
27233
|
"agent-browser",
|
|
27142
27234
|
"dev-browser",
|
|
@@ -27151,7 +27243,7 @@ var BuiltinSkillNameSchema = z12.enum([
|
|
|
27151
27243
|
"visual-qa",
|
|
27152
27244
|
"team-mode"
|
|
27153
27245
|
]);
|
|
27154
|
-
var OverridableAgentNameSchema =
|
|
27246
|
+
var OverridableAgentNameSchema = z13.enum([
|
|
27155
27247
|
"build",
|
|
27156
27248
|
"plan",
|
|
27157
27249
|
"sisyphus",
|
|
@@ -27169,42 +27261,42 @@ var OverridableAgentNameSchema = z12.enum([
|
|
|
27169
27261
|
]);
|
|
27170
27262
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
27171
27263
|
init_src();
|
|
27172
|
-
import { z as
|
|
27264
|
+
import { z as z16 } from "zod";
|
|
27173
27265
|
|
|
27174
27266
|
// packages/omo-opencode/src/config/schema/fallback-models.ts
|
|
27175
27267
|
init_src();
|
|
27176
|
-
import { z as
|
|
27177
|
-
var FallbackModelObjectSchema =
|
|
27178
|
-
model:
|
|
27268
|
+
import { z as z14 } from "zod";
|
|
27269
|
+
var FallbackModelObjectSchema = z14.object({
|
|
27270
|
+
model: z14.string(),
|
|
27179
27271
|
reasoning: OmoReasoningSchema.optional(),
|
|
27180
|
-
variant:
|
|
27181
|
-
reasoningEffort:
|
|
27182
|
-
temperature:
|
|
27183
|
-
top_p:
|
|
27184
|
-
maxTokens:
|
|
27185
|
-
thinking:
|
|
27186
|
-
type:
|
|
27187
|
-
budgetTokens:
|
|
27272
|
+
variant: z14.string().optional(),
|
|
27273
|
+
reasoningEffort: z14.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
27274
|
+
temperature: z14.number().min(0).max(2).optional(),
|
|
27275
|
+
top_p: z14.number().min(0).max(1).optional(),
|
|
27276
|
+
maxTokens: z14.number().optional(),
|
|
27277
|
+
thinking: z14.object({
|
|
27278
|
+
type: z14.enum(["enabled", "disabled"]),
|
|
27279
|
+
budgetTokens: z14.number().optional()
|
|
27188
27280
|
}).optional()
|
|
27189
27281
|
});
|
|
27190
|
-
var FallbackModelStringArraySchema =
|
|
27191
|
-
var FallbackModelObjectArraySchema =
|
|
27192
|
-
var FallbackModelMixedArraySchema =
|
|
27193
|
-
var FallbackModelsSchema =
|
|
27194
|
-
|
|
27282
|
+
var FallbackModelStringArraySchema = z14.array(z14.string());
|
|
27283
|
+
var FallbackModelObjectArraySchema = z14.array(FallbackModelObjectSchema);
|
|
27284
|
+
var FallbackModelMixedArraySchema = z14.array(z14.union([z14.string(), FallbackModelObjectSchema]));
|
|
27285
|
+
var FallbackModelsSchema = z14.union([
|
|
27286
|
+
z14.string(),
|
|
27195
27287
|
FallbackModelStringArraySchema,
|
|
27196
27288
|
FallbackModelObjectArraySchema,
|
|
27197
27289
|
FallbackModelMixedArraySchema
|
|
27198
27290
|
]);
|
|
27199
27291
|
|
|
27200
27292
|
// packages/omo-opencode/src/config/schema/internal/permission.ts
|
|
27201
|
-
import { z as
|
|
27202
|
-
var PermissionValueSchema =
|
|
27203
|
-
var BashPermissionSchema =
|
|
27293
|
+
import { z as z15 } from "zod";
|
|
27294
|
+
var PermissionValueSchema = z15.enum(["ask", "allow", "deny"]);
|
|
27295
|
+
var BashPermissionSchema = z15.union([
|
|
27204
27296
|
PermissionValueSchema,
|
|
27205
|
-
|
|
27297
|
+
z15.record(z15.string(), PermissionValueSchema)
|
|
27206
27298
|
]);
|
|
27207
|
-
var AgentPermissionSchema =
|
|
27299
|
+
var AgentPermissionSchema = z15.object({
|
|
27208
27300
|
edit: PermissionValueSchema.optional(),
|
|
27209
27301
|
bash: BashPermissionSchema.optional(),
|
|
27210
27302
|
webfetch: PermissionValueSchema.optional(),
|
|
@@ -27214,50 +27306,50 @@ var AgentPermissionSchema = z14.object({
|
|
|
27214
27306
|
}).catchall(PermissionValueSchema.optional());
|
|
27215
27307
|
|
|
27216
27308
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
27217
|
-
var AgentOverrideConfigSchema =
|
|
27218
|
-
model:
|
|
27219
|
-
models:
|
|
27309
|
+
var AgentOverrideConfigSchema = z16.object({
|
|
27310
|
+
model: z16.string().optional(),
|
|
27311
|
+
models: z16.array(z16.union([z16.string(), FallbackModelObjectSchema])).optional(),
|
|
27220
27312
|
fallback_models: FallbackModelsSchema.optional(),
|
|
27221
27313
|
reasoning: OmoReasoningSchema.optional(),
|
|
27222
|
-
variant:
|
|
27223
|
-
category:
|
|
27224
|
-
skills:
|
|
27225
|
-
temperature:
|
|
27226
|
-
top_p:
|
|
27227
|
-
prompt:
|
|
27228
|
-
prompt_append:
|
|
27229
|
-
tools:
|
|
27230
|
-
disable:
|
|
27231
|
-
description:
|
|
27232
|
-
mode:
|
|
27233
|
-
color:
|
|
27234
|
-
displayName:
|
|
27314
|
+
variant: z16.string().optional(),
|
|
27315
|
+
category: z16.string().optional(),
|
|
27316
|
+
skills: z16.array(z16.string()).optional(),
|
|
27317
|
+
temperature: z16.number().min(0).max(2).optional(),
|
|
27318
|
+
top_p: z16.number().min(0).max(1).optional(),
|
|
27319
|
+
prompt: z16.string().optional(),
|
|
27320
|
+
prompt_append: z16.string().optional(),
|
|
27321
|
+
tools: z16.record(z16.string(), z16.boolean()).optional(),
|
|
27322
|
+
disable: z16.boolean().optional(),
|
|
27323
|
+
description: z16.string().optional(),
|
|
27324
|
+
mode: z16.enum(["subagent", "primary", "all"]).optional(),
|
|
27325
|
+
color: z16.string().regex(/^#[0-9A-Fa-f]{6}$/).optional(),
|
|
27326
|
+
displayName: z16.string().optional(),
|
|
27235
27327
|
permission: AgentPermissionSchema.optional(),
|
|
27236
|
-
maxTokens:
|
|
27237
|
-
thinking:
|
|
27238
|
-
type:
|
|
27239
|
-
budgetTokens:
|
|
27328
|
+
maxTokens: z16.number().optional(),
|
|
27329
|
+
thinking: z16.object({
|
|
27330
|
+
type: z16.enum(["enabled", "disabled"]),
|
|
27331
|
+
budgetTokens: z16.number().optional()
|
|
27240
27332
|
}).optional(),
|
|
27241
|
-
reasoningEffort:
|
|
27242
|
-
textVerbosity:
|
|
27243
|
-
providerOptions:
|
|
27244
|
-
ultrawork:
|
|
27245
|
-
model:
|
|
27333
|
+
reasoningEffort: z16.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
27334
|
+
textVerbosity: z16.enum(["low", "medium", "high"]).optional(),
|
|
27335
|
+
providerOptions: z16.record(z16.string(), z16.unknown()).optional(),
|
|
27336
|
+
ultrawork: z16.object({
|
|
27337
|
+
model: z16.string().optional(),
|
|
27246
27338
|
reasoning: OmoReasoningSchema.optional(),
|
|
27247
|
-
variant:
|
|
27339
|
+
variant: z16.string().optional()
|
|
27248
27340
|
}).optional(),
|
|
27249
|
-
compaction:
|
|
27250
|
-
model:
|
|
27341
|
+
compaction: z16.object({
|
|
27342
|
+
model: z16.string().optional(),
|
|
27251
27343
|
reasoning: OmoReasoningSchema.optional(),
|
|
27252
|
-
variant:
|
|
27344
|
+
variant: z16.string().optional()
|
|
27253
27345
|
}).optional()
|
|
27254
27346
|
});
|
|
27255
|
-
var AgentOverridesSchema =
|
|
27347
|
+
var AgentOverridesSchema = z16.object({
|
|
27256
27348
|
build: AgentOverrideConfigSchema.optional(),
|
|
27257
27349
|
plan: AgentOverrideConfigSchema.optional(),
|
|
27258
27350
|
sisyphus: AgentOverrideConfigSchema.optional(),
|
|
27259
27351
|
hephaestus: AgentOverrideConfigSchema.extend({
|
|
27260
|
-
allow_non_gpt_model:
|
|
27352
|
+
allow_non_gpt_model: z16.boolean().optional()
|
|
27261
27353
|
}).optional(),
|
|
27262
27354
|
"sisyphus-junior": AgentOverrideConfigSchema.optional(),
|
|
27263
27355
|
"OpenCode-Builder": AgentOverrideConfigSchema.optional(),
|
|
@@ -27271,72 +27363,72 @@ var AgentOverridesSchema = z15.object({
|
|
|
27271
27363
|
atlas: AgentOverrideConfigSchema.optional()
|
|
27272
27364
|
}).catchall(AgentOverrideConfigSchema.optional());
|
|
27273
27365
|
// packages/omo-opencode/src/config/schema/babysitting.ts
|
|
27274
|
-
import { z as
|
|
27275
|
-
var BabysittingConfigSchema =
|
|
27276
|
-
timeout_ms:
|
|
27366
|
+
import { z as z17 } from "zod";
|
|
27367
|
+
var BabysittingConfigSchema = z17.object({
|
|
27368
|
+
timeout_ms: z17.number().default(120000)
|
|
27277
27369
|
});
|
|
27278
27370
|
// packages/omo-opencode/src/config/schema/background-task.ts
|
|
27279
|
-
import { z as
|
|
27280
|
-
var CircuitBreakerConfigSchema =
|
|
27281
|
-
enabled:
|
|
27282
|
-
maxToolCalls:
|
|
27283
|
-
consecutiveThreshold:
|
|
27371
|
+
import { z as z18 } from "zod";
|
|
27372
|
+
var CircuitBreakerConfigSchema = z18.object({
|
|
27373
|
+
enabled: z18.boolean().optional(),
|
|
27374
|
+
maxToolCalls: z18.number().int().min(10).optional(),
|
|
27375
|
+
consecutiveThreshold: z18.number().int().min(5).optional()
|
|
27284
27376
|
});
|
|
27285
|
-
var BackgroundTaskConfigSchema =
|
|
27286
|
-
defaultConcurrency:
|
|
27287
|
-
providerConcurrency:
|
|
27288
|
-
modelConcurrency:
|
|
27289
|
-
maxDepth:
|
|
27290
|
-
staleTimeoutMs:
|
|
27291
|
-
messageStalenessTimeoutMs:
|
|
27292
|
-
taskTtlMs:
|
|
27293
|
-
sessionGoneTimeoutMs:
|
|
27294
|
-
taskCleanupDelayMs:
|
|
27295
|
-
syncPollTimeoutMs:
|
|
27296
|
-
maxToolCalls:
|
|
27377
|
+
var BackgroundTaskConfigSchema = z18.object({
|
|
27378
|
+
defaultConcurrency: z18.number().min(1).optional(),
|
|
27379
|
+
providerConcurrency: z18.record(z18.string(), z18.number().min(0)).optional(),
|
|
27380
|
+
modelConcurrency: z18.record(z18.string(), z18.number().min(0)).optional(),
|
|
27381
|
+
maxDepth: z18.number().int().min(1).optional(),
|
|
27382
|
+
staleTimeoutMs: z18.number().min(60000).optional(),
|
|
27383
|
+
messageStalenessTimeoutMs: z18.number().min(60000).optional(),
|
|
27384
|
+
taskTtlMs: z18.number().min(300000).optional(),
|
|
27385
|
+
sessionGoneTimeoutMs: z18.number().min(1e4).optional(),
|
|
27386
|
+
taskCleanupDelayMs: z18.number().min(60000).optional(),
|
|
27387
|
+
syncPollTimeoutMs: z18.number().min(60000).optional(),
|
|
27388
|
+
maxToolCalls: z18.number().int().min(10).optional(),
|
|
27297
27389
|
circuitBreaker: CircuitBreakerConfigSchema.optional()
|
|
27298
27390
|
});
|
|
27299
27391
|
// packages/omo-opencode/src/config/schema/browser-automation.ts
|
|
27300
|
-
import { z as
|
|
27301
|
-
var BrowserAutomationProviderSchema =
|
|
27392
|
+
import { z as z19 } from "zod";
|
|
27393
|
+
var BrowserAutomationProviderSchema = z19.enum([
|
|
27302
27394
|
"playwright",
|
|
27303
27395
|
"agent-browser",
|
|
27304
27396
|
"dev-browser",
|
|
27305
27397
|
"playwright-cli"
|
|
27306
27398
|
]);
|
|
27307
|
-
var BrowserAutomationConfigSchema =
|
|
27399
|
+
var BrowserAutomationConfigSchema = z19.object({
|
|
27308
27400
|
provider: BrowserAutomationProviderSchema.default("playwright"),
|
|
27309
|
-
playwright_mcp_args:
|
|
27401
|
+
playwright_mcp_args: z19.array(z19.string()).optional()
|
|
27310
27402
|
});
|
|
27311
27403
|
// packages/omo-opencode/src/config/schema/categories.ts
|
|
27312
27404
|
init_src();
|
|
27313
|
-
import { z as
|
|
27314
|
-
var CategoryConfigSchema =
|
|
27315
|
-
description:
|
|
27316
|
-
model:
|
|
27317
|
-
models:
|
|
27405
|
+
import { z as z20 } from "zod";
|
|
27406
|
+
var CategoryConfigSchema = z20.object({
|
|
27407
|
+
description: z20.string().optional(),
|
|
27408
|
+
model: z20.string().optional(),
|
|
27409
|
+
models: z20.array(z20.union([z20.string(), FallbackModelObjectSchema])).optional(),
|
|
27318
27410
|
fallback_models: FallbackModelsSchema.optional(),
|
|
27319
27411
|
reasoning: OmoReasoningSchema.optional(),
|
|
27320
|
-
variant:
|
|
27321
|
-
temperature:
|
|
27322
|
-
top_p:
|
|
27323
|
-
max_tokens:
|
|
27324
|
-
provider_options:
|
|
27325
|
-
maxTokens:
|
|
27326
|
-
thinking:
|
|
27327
|
-
type:
|
|
27328
|
-
budgetTokens:
|
|
27412
|
+
variant: z20.string().optional(),
|
|
27413
|
+
temperature: z20.number().min(0).max(2).optional(),
|
|
27414
|
+
top_p: z20.number().min(0).max(1).optional(),
|
|
27415
|
+
max_tokens: z20.number().int().positive().optional(),
|
|
27416
|
+
provider_options: z20.record(z20.string(), z20.unknown()).optional(),
|
|
27417
|
+
maxTokens: z20.number().optional(),
|
|
27418
|
+
thinking: z20.object({
|
|
27419
|
+
type: z20.enum(["enabled", "disabled"]),
|
|
27420
|
+
budgetTokens: z20.number().optional()
|
|
27329
27421
|
}).optional(),
|
|
27330
|
-
reasoningEffort:
|
|
27331
|
-
textVerbosity:
|
|
27332
|
-
tools:
|
|
27333
|
-
prompt_append:
|
|
27334
|
-
max_prompt_tokens:
|
|
27335
|
-
is_unstable_agent:
|
|
27336
|
-
disable:
|
|
27337
|
-
warn_unavailable:
|
|
27422
|
+
reasoningEffort: z20.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
27423
|
+
textVerbosity: z20.enum(["low", "medium", "high"]).optional(),
|
|
27424
|
+
tools: z20.record(z20.string(), z20.boolean()).optional(),
|
|
27425
|
+
prompt_append: z20.string().optional(),
|
|
27426
|
+
max_prompt_tokens: z20.number().int().positive().optional(),
|
|
27427
|
+
is_unstable_agent: z20.boolean().optional(),
|
|
27428
|
+
disable: z20.boolean().optional(),
|
|
27429
|
+
warn_unavailable: z20.boolean().optional()
|
|
27338
27430
|
});
|
|
27339
|
-
var BuiltinCategoryNameSchema =
|
|
27431
|
+
var BuiltinCategoryNameSchema = z20.enum([
|
|
27340
27432
|
"visual-engineering",
|
|
27341
27433
|
"ultrabrain",
|
|
27342
27434
|
"deep",
|
|
@@ -27346,41 +27438,41 @@ var BuiltinCategoryNameSchema = z19.enum([
|
|
|
27346
27438
|
"unspecified-high",
|
|
27347
27439
|
"writing"
|
|
27348
27440
|
]);
|
|
27349
|
-
var CategoriesConfigSchema =
|
|
27441
|
+
var CategoriesConfigSchema = z20.record(z20.string(), CategoryConfigSchema);
|
|
27350
27442
|
// packages/omo-opencode/src/config/schema/claude-code.ts
|
|
27351
|
-
import { z as
|
|
27352
|
-
var ClaudeCodeConfigSchema =
|
|
27353
|
-
mcp:
|
|
27354
|
-
commands:
|
|
27355
|
-
skills:
|
|
27356
|
-
agents:
|
|
27357
|
-
hooks:
|
|
27358
|
-
plugins:
|
|
27359
|
-
plugins_override:
|
|
27360
|
-
anthropic_provider:
|
|
27443
|
+
import { z as z21 } from "zod";
|
|
27444
|
+
var ClaudeCodeConfigSchema = z21.object({
|
|
27445
|
+
mcp: z21.boolean().optional(),
|
|
27446
|
+
commands: z21.boolean().optional(),
|
|
27447
|
+
skills: z21.boolean().optional(),
|
|
27448
|
+
agents: z21.boolean().optional(),
|
|
27449
|
+
hooks: z21.boolean().optional(),
|
|
27450
|
+
plugins: z21.boolean().optional(),
|
|
27451
|
+
plugins_override: z21.record(z21.string(), z21.boolean()).optional(),
|
|
27452
|
+
anthropic_provider: z21.string().trim().min(1).refine((v) => !v.includes("/"), {
|
|
27361
27453
|
message: "anthropic_provider must be a provider name without '/'"
|
|
27362
27454
|
}).optional()
|
|
27363
27455
|
});
|
|
27364
27456
|
// packages/omo-opencode/src/config/schema/codegraph.ts
|
|
27365
|
-
import { z as
|
|
27366
|
-
var CodegraphConfigSchema =
|
|
27367
|
-
auto_init:
|
|
27368
|
-
auto_provision:
|
|
27369
|
-
daemon:
|
|
27370
|
-
enabled:
|
|
27371
|
-
excluded_roots:
|
|
27372
|
-
install_dir:
|
|
27373
|
-
telemetry:
|
|
27374
|
-
watch_debounce_ms:
|
|
27457
|
+
import { z as z22 } from "zod";
|
|
27458
|
+
var CodegraphConfigSchema = z22.object({
|
|
27459
|
+
auto_init: z22.boolean().default(true),
|
|
27460
|
+
auto_provision: z22.boolean().default(true),
|
|
27461
|
+
daemon: z22.boolean().default(true),
|
|
27462
|
+
enabled: z22.boolean().default(true),
|
|
27463
|
+
excluded_roots: z22.array(z22.string()).optional(),
|
|
27464
|
+
install_dir: z22.string().optional(),
|
|
27465
|
+
telemetry: z22.boolean().optional(),
|
|
27466
|
+
watch_debounce_ms: z22.number().nonnegative().optional()
|
|
27375
27467
|
});
|
|
27376
27468
|
// packages/omo-opencode/src/config/schema/comment-checker.ts
|
|
27377
|
-
import { z as
|
|
27378
|
-
var CommentCheckerConfigSchema =
|
|
27379
|
-
custom_prompt:
|
|
27469
|
+
import { z as z23 } from "zod";
|
|
27470
|
+
var CommentCheckerConfigSchema = z23.object({
|
|
27471
|
+
custom_prompt: z23.string().optional()
|
|
27380
27472
|
});
|
|
27381
27473
|
// packages/omo-opencode/src/config/schema/commands.ts
|
|
27382
|
-
import { z as
|
|
27383
|
-
var BuiltinCommandNameSchema =
|
|
27474
|
+
import { z as z24 } from "zod";
|
|
27475
|
+
var BuiltinCommandNameSchema = z24.enum([
|
|
27384
27476
|
"goal",
|
|
27385
27477
|
"refactor",
|
|
27386
27478
|
"start-work",
|
|
@@ -27389,21 +27481,21 @@ var BuiltinCommandNameSchema = z23.enum([
|
|
|
27389
27481
|
"hyperplan"
|
|
27390
27482
|
]);
|
|
27391
27483
|
// packages/omo-opencode/src/config/schema/default-mode.ts
|
|
27392
|
-
import { z as
|
|
27393
|
-
var DefaultModeConfigSchema =
|
|
27394
|
-
ultrawork:
|
|
27395
|
-
goal:
|
|
27484
|
+
import { z as z25 } from "zod";
|
|
27485
|
+
var DefaultModeConfigSchema = z25.object({
|
|
27486
|
+
ultrawork: z25.boolean().default(false),
|
|
27487
|
+
goal: z25.boolean().default(false)
|
|
27396
27488
|
});
|
|
27397
27489
|
// packages/omo-opencode/src/config/schema/dynamic-context-pruning.ts
|
|
27398
|
-
import { z as
|
|
27399
|
-
var DynamicContextPruningConfigSchema =
|
|
27400
|
-
enabled:
|
|
27401
|
-
notification:
|
|
27402
|
-
turn_protection:
|
|
27403
|
-
enabled:
|
|
27404
|
-
turns:
|
|
27490
|
+
import { z as z26 } from "zod";
|
|
27491
|
+
var DynamicContextPruningConfigSchema = z26.object({
|
|
27492
|
+
enabled: z26.boolean().default(false),
|
|
27493
|
+
notification: z26.enum(["off", "minimal", "detailed"]).default("detailed"),
|
|
27494
|
+
turn_protection: z26.object({
|
|
27495
|
+
enabled: z26.boolean().default(true),
|
|
27496
|
+
turns: z26.number().min(1).max(10).default(3)
|
|
27405
27497
|
}).optional(),
|
|
27406
|
-
protected_tools:
|
|
27498
|
+
protected_tools: z26.array(z26.string()).default([
|
|
27407
27499
|
"task",
|
|
27408
27500
|
"todowrite",
|
|
27409
27501
|
"todoread",
|
|
@@ -27412,45 +27504,45 @@ var DynamicContextPruningConfigSchema = z25.object({
|
|
|
27412
27504
|
"session_write",
|
|
27413
27505
|
"session_search"
|
|
27414
27506
|
]),
|
|
27415
|
-
strategies:
|
|
27416
|
-
deduplication:
|
|
27417
|
-
enabled:
|
|
27507
|
+
strategies: z26.object({
|
|
27508
|
+
deduplication: z26.object({
|
|
27509
|
+
enabled: z26.boolean().default(true)
|
|
27418
27510
|
}).optional(),
|
|
27419
|
-
supersede_writes:
|
|
27420
|
-
enabled:
|
|
27421
|
-
aggressive:
|
|
27511
|
+
supersede_writes: z26.object({
|
|
27512
|
+
enabled: z26.boolean().default(true),
|
|
27513
|
+
aggressive: z26.boolean().default(false)
|
|
27422
27514
|
}).optional(),
|
|
27423
|
-
purge_errors:
|
|
27424
|
-
enabled:
|
|
27425
|
-
turns:
|
|
27515
|
+
purge_errors: z26.object({
|
|
27516
|
+
enabled: z26.boolean().default(true),
|
|
27517
|
+
turns: z26.number().min(1).max(20).default(5)
|
|
27426
27518
|
}).optional()
|
|
27427
27519
|
}).optional()
|
|
27428
27520
|
});
|
|
27429
27521
|
// packages/omo-opencode/src/config/schema/experimental.ts
|
|
27430
|
-
import { z as
|
|
27431
|
-
var ExperimentalConfigSchema =
|
|
27432
|
-
aggressive_truncation:
|
|
27433
|
-
preemptive_compaction:
|
|
27434
|
-
truncate_all_tool_outputs:
|
|
27522
|
+
import { z as z27 } from "zod";
|
|
27523
|
+
var ExperimentalConfigSchema = z27.object({
|
|
27524
|
+
aggressive_truncation: z27.boolean().optional(),
|
|
27525
|
+
preemptive_compaction: z27.boolean().optional(),
|
|
27526
|
+
truncate_all_tool_outputs: z27.boolean().optional(),
|
|
27435
27527
|
dynamic_context_pruning: DynamicContextPruningConfigSchema.optional(),
|
|
27436
|
-
task_system:
|
|
27437
|
-
plugin_load_timeout_ms:
|
|
27438
|
-
safe_hook_creation:
|
|
27439
|
-
disable_omo_env:
|
|
27440
|
-
hashline_edit:
|
|
27441
|
-
model_fallback_title:
|
|
27442
|
-
max_tools:
|
|
27443
|
-
disable_live_parent_wake_routing:
|
|
27528
|
+
task_system: z27.boolean().optional(),
|
|
27529
|
+
plugin_load_timeout_ms: z27.number().min(1000).optional(),
|
|
27530
|
+
safe_hook_creation: z27.boolean().optional(),
|
|
27531
|
+
disable_omo_env: z27.boolean().optional(),
|
|
27532
|
+
hashline_edit: z27.boolean().optional(),
|
|
27533
|
+
model_fallback_title: z27.boolean().optional(),
|
|
27534
|
+
max_tools: z27.number().int().min(1).optional(),
|
|
27535
|
+
disable_live_parent_wake_routing: z27.boolean().optional()
|
|
27444
27536
|
});
|
|
27445
27537
|
// packages/omo-opencode/src/config/schema/goal.ts
|
|
27446
|
-
import { z as
|
|
27447
|
-
var GoalConfigSchema =
|
|
27448
|
-
enabled:
|
|
27449
|
-
auto_start:
|
|
27450
|
-
default_max_iterations:
|
|
27538
|
+
import { z as z28 } from "zod";
|
|
27539
|
+
var GoalConfigSchema = z28.object({
|
|
27540
|
+
enabled: z28.boolean().default(false),
|
|
27541
|
+
auto_start: z28.boolean().default(false),
|
|
27542
|
+
default_max_iterations: z28.number().min(1).max(1000).default(100)
|
|
27451
27543
|
});
|
|
27452
27544
|
// packages/skills-loader-core/src/config/git-env-prefix.ts
|
|
27453
|
-
import { z as
|
|
27545
|
+
import { z as z29 } from "zod";
|
|
27454
27546
|
var GIT_ENV_ASSIGNMENT_PATTERN = /^(?:[A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)(?: [A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)*$/;
|
|
27455
27547
|
var GIT_ENV_PREFIX_VALIDATION_MESSAGE = 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"';
|
|
27456
27548
|
function isValidGitEnvPrefix(value) {
|
|
@@ -27465,17 +27557,17 @@ function assertValidGitEnvPrefix(value) {
|
|
|
27465
27557
|
}
|
|
27466
27558
|
return value;
|
|
27467
27559
|
}
|
|
27468
|
-
var GitEnvPrefixSchema =
|
|
27560
|
+
var GitEnvPrefixSchema = z29.string().refine(isValidGitEnvPrefix, { message: GIT_ENV_PREFIX_VALIDATION_MESSAGE }).default("GIT_MASTER=1");
|
|
27469
27561
|
// packages/omo-opencode/src/config/schema/git-master.ts
|
|
27470
|
-
import { z as
|
|
27471
|
-
var GitMasterConfigSchema =
|
|
27472
|
-
commit_footer:
|
|
27473
|
-
include_co_authored_by:
|
|
27562
|
+
import { z as z30 } from "zod";
|
|
27563
|
+
var GitMasterConfigSchema = z30.object({
|
|
27564
|
+
commit_footer: z30.union([z30.boolean(), z30.string()]).default(true),
|
|
27565
|
+
include_co_authored_by: z30.boolean().default(true),
|
|
27474
27566
|
git_env_prefix: GitEnvPrefixSchema
|
|
27475
27567
|
});
|
|
27476
27568
|
// packages/omo-opencode/src/config/schema/hooks.ts
|
|
27477
|
-
import { z as
|
|
27478
|
-
var HookNameSchema =
|
|
27569
|
+
import { z as z31 } from "zod";
|
|
27570
|
+
var HookNameSchema = z31.enum([
|
|
27479
27571
|
"todo-continuation-enforcer",
|
|
27480
27572
|
"session-notification",
|
|
27481
27573
|
"comment-checker",
|
|
@@ -27534,240 +27626,240 @@ var HookNameSchema = z30.enum([
|
|
|
27534
27626
|
"legacy-plugin-toast"
|
|
27535
27627
|
]);
|
|
27536
27628
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
27537
|
-
import { z as
|
|
27538
|
-
var I18nConfigSchema =
|
|
27539
|
-
locale:
|
|
27629
|
+
import { z as z32 } from "zod";
|
|
27630
|
+
var I18nConfigSchema = z32.object({
|
|
27631
|
+
locale: z32.string().optional()
|
|
27540
27632
|
});
|
|
27541
27633
|
// packages/omo-opencode/src/config/schema/keyword-detector.ts
|
|
27542
|
-
import { z as
|
|
27543
|
-
var KeywordTypeSchema =
|
|
27544
|
-
var KeywordDetectorConfigSchema =
|
|
27545
|
-
enabled_expansions:
|
|
27546
|
-
disabled_keywords:
|
|
27634
|
+
import { z as z33 } from "zod";
|
|
27635
|
+
var KeywordTypeSchema = z33.enum(["ultrawork", "team", "hyperplan", "hyperplan-ultrawork"]);
|
|
27636
|
+
var KeywordDetectorConfigSchema = z33.object({
|
|
27637
|
+
enabled_expansions: z33.array(KeywordTypeSchema).optional(),
|
|
27638
|
+
disabled_keywords: z33.array(KeywordTypeSchema).optional()
|
|
27547
27639
|
});
|
|
27548
27640
|
// packages/omo-opencode/src/config/schema/model-capabilities.ts
|
|
27549
|
-
import { z as
|
|
27550
|
-
var ModelCapabilitiesConfigSchema =
|
|
27551
|
-
enabled:
|
|
27552
|
-
auto_refresh_on_start:
|
|
27553
|
-
refresh_timeout_ms:
|
|
27554
|
-
source_url:
|
|
27641
|
+
import { z as z34 } from "zod";
|
|
27642
|
+
var ModelCapabilitiesConfigSchema = z34.object({
|
|
27643
|
+
enabled: z34.boolean().optional(),
|
|
27644
|
+
auto_refresh_on_start: z34.boolean().optional(),
|
|
27645
|
+
refresh_timeout_ms: z34.number().int().positive().optional(),
|
|
27646
|
+
source_url: z34.string().url().optional()
|
|
27555
27647
|
});
|
|
27556
27648
|
// packages/omo-opencode/src/config/schema/notification.ts
|
|
27557
|
-
import { z as
|
|
27558
|
-
var NotificationConfigSchema =
|
|
27559
|
-
force_enable:
|
|
27649
|
+
import { z as z35 } from "zod";
|
|
27650
|
+
var NotificationConfigSchema = z35.object({
|
|
27651
|
+
force_enable: z35.boolean().optional()
|
|
27560
27652
|
});
|
|
27561
27653
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
27562
|
-
import { z as
|
|
27654
|
+
import { z as z49 } from "zod";
|
|
27563
27655
|
|
|
27564
27656
|
// packages/omo-opencode/src/mcp/types.ts
|
|
27565
|
-
import { z as
|
|
27566
|
-
var McpNameSchema =
|
|
27567
|
-
var AnyMcpNameSchema =
|
|
27657
|
+
import { z as z36 } from "zod";
|
|
27658
|
+
var McpNameSchema = z36.enum(["websearch", "context7", "grep_app", "lsp", "codegraph"]);
|
|
27659
|
+
var AnyMcpNameSchema = z36.string().min(1);
|
|
27568
27660
|
|
|
27569
27661
|
// packages/omo-opencode/src/config/schema/agent-definitions.ts
|
|
27570
|
-
import { z as
|
|
27571
|
-
var AgentDefinitionPathSchema =
|
|
27572
|
-
var AgentDefinitionsConfigSchema =
|
|
27662
|
+
import { z as z37 } from "zod";
|
|
27663
|
+
var AgentDefinitionPathSchema = z37.string().min(1);
|
|
27664
|
+
var AgentDefinitionsConfigSchema = z37.array(AgentDefinitionPathSchema).optional();
|
|
27573
27665
|
|
|
27574
27666
|
// packages/omo-opencode/src/config/schema/openclaw.ts
|
|
27575
|
-
import { z as
|
|
27576
|
-
var OpenClawGatewaySchema =
|
|
27577
|
-
type:
|
|
27578
|
-
url:
|
|
27579
|
-
method:
|
|
27580
|
-
headers:
|
|
27581
|
-
command:
|
|
27582
|
-
timeout:
|
|
27667
|
+
import { z as z38 } from "zod";
|
|
27668
|
+
var OpenClawGatewaySchema = z38.object({
|
|
27669
|
+
type: z38.enum(["http", "command"]).default("http"),
|
|
27670
|
+
url: z38.string().optional(),
|
|
27671
|
+
method: z38.string().default("POST"),
|
|
27672
|
+
headers: z38.record(z38.string(), z38.string()).optional(),
|
|
27673
|
+
command: z38.string().optional(),
|
|
27674
|
+
timeout: z38.number().optional()
|
|
27583
27675
|
});
|
|
27584
|
-
var OpenClawHookSchema =
|
|
27585
|
-
enabled:
|
|
27586
|
-
gateway:
|
|
27587
|
-
instruction:
|
|
27676
|
+
var OpenClawHookSchema = z38.object({
|
|
27677
|
+
enabled: z38.boolean().default(true),
|
|
27678
|
+
gateway: z38.string(),
|
|
27679
|
+
instruction: z38.string()
|
|
27588
27680
|
});
|
|
27589
|
-
var OpenClawReplyListenerConfigSchema =
|
|
27590
|
-
discordBotToken:
|
|
27591
|
-
discordChannelId:
|
|
27592
|
-
discordMention:
|
|
27593
|
-
authorizedDiscordUserIds:
|
|
27594
|
-
telegramBotToken:
|
|
27595
|
-
telegramChatId:
|
|
27596
|
-
pollIntervalMs:
|
|
27597
|
-
rateLimitPerMinute:
|
|
27598
|
-
maxMessageLength:
|
|
27599
|
-
includePrefix:
|
|
27681
|
+
var OpenClawReplyListenerConfigSchema = z38.object({
|
|
27682
|
+
discordBotToken: z38.string().optional(),
|
|
27683
|
+
discordChannelId: z38.string().optional(),
|
|
27684
|
+
discordMention: z38.string().optional(),
|
|
27685
|
+
authorizedDiscordUserIds: z38.array(z38.string()).default([]),
|
|
27686
|
+
telegramBotToken: z38.string().optional(),
|
|
27687
|
+
telegramChatId: z38.string().optional(),
|
|
27688
|
+
pollIntervalMs: z38.number().default(3000),
|
|
27689
|
+
rateLimitPerMinute: z38.number().default(10),
|
|
27690
|
+
maxMessageLength: z38.number().default(500),
|
|
27691
|
+
includePrefix: z38.boolean().default(true)
|
|
27600
27692
|
});
|
|
27601
|
-
var OpenClawConfigSchema =
|
|
27602
|
-
enabled:
|
|
27603
|
-
gateways:
|
|
27604
|
-
hooks:
|
|
27693
|
+
var OpenClawConfigSchema = z38.object({
|
|
27694
|
+
enabled: z38.boolean().default(false),
|
|
27695
|
+
gateways: z38.record(z38.string(), OpenClawGatewaySchema).default({}),
|
|
27696
|
+
hooks: z38.record(z38.string(), OpenClawHookSchema).default({}),
|
|
27605
27697
|
replyListener: OpenClawReplyListenerConfigSchema.optional()
|
|
27606
27698
|
});
|
|
27607
27699
|
|
|
27608
27700
|
// packages/omo-opencode/src/config/schema/monitor.ts
|
|
27609
|
-
import { z as
|
|
27610
|
-
var MonitorConfigSchema =
|
|
27611
|
-
enabled:
|
|
27612
|
-
live_mode_enabled:
|
|
27613
|
-
allowed_commands:
|
|
27614
|
-
max_monitors_per_session:
|
|
27615
|
-
max_runtime_ms:
|
|
27616
|
-
batch_max_lines:
|
|
27617
|
-
batch_max_bytes:
|
|
27618
|
-
flush_interval_ms:
|
|
27619
|
-
ring_max_lines:
|
|
27620
|
-
line_max_bytes:
|
|
27621
|
-
pattern_max_length:
|
|
27701
|
+
import { z as z39 } from "zod";
|
|
27702
|
+
var MonitorConfigSchema = z39.object({
|
|
27703
|
+
enabled: z39.boolean().default(false),
|
|
27704
|
+
live_mode_enabled: z39.boolean().default(false),
|
|
27705
|
+
allowed_commands: z39.array(z39.string()).optional(),
|
|
27706
|
+
max_monitors_per_session: z39.number().int().min(1).max(16).default(3),
|
|
27707
|
+
max_runtime_ms: z39.number().int().min(1000).default(1800000),
|
|
27708
|
+
batch_max_lines: z39.number().int().min(1).default(50),
|
|
27709
|
+
batch_max_bytes: z39.number().int().min(1024).default(16384),
|
|
27710
|
+
flush_interval_ms: z39.number().int().min(250).default(1000),
|
|
27711
|
+
ring_max_lines: z39.number().int().min(1).default(1000),
|
|
27712
|
+
line_max_bytes: z39.number().int().min(256).default(8192),
|
|
27713
|
+
pattern_max_length: z39.number().int().min(1).default(512)
|
|
27622
27714
|
});
|
|
27623
27715
|
|
|
27624
27716
|
// packages/omo-opencode/src/config/schema/runtime-fallback.ts
|
|
27625
|
-
import { z as
|
|
27626
|
-
var RuntimeFallbackConfigSchema =
|
|
27627
|
-
enabled:
|
|
27628
|
-
retry_on_errors:
|
|
27629
|
-
max_fallback_attempts:
|
|
27630
|
-
cooldown_seconds:
|
|
27631
|
-
timeout_seconds:
|
|
27632
|
-
notify_on_fallback:
|
|
27633
|
-
restore_primary_after_cooldown:
|
|
27717
|
+
import { z as z40 } from "zod";
|
|
27718
|
+
var RuntimeFallbackConfigSchema = z40.object({
|
|
27719
|
+
enabled: z40.boolean().optional(),
|
|
27720
|
+
retry_on_errors: z40.array(z40.number()).optional(),
|
|
27721
|
+
max_fallback_attempts: z40.number().min(1).max(20).optional(),
|
|
27722
|
+
cooldown_seconds: z40.number().min(0).optional(),
|
|
27723
|
+
timeout_seconds: z40.number().min(0).optional(),
|
|
27724
|
+
notify_on_fallback: z40.boolean().optional(),
|
|
27725
|
+
restore_primary_after_cooldown: z40.boolean().optional()
|
|
27634
27726
|
});
|
|
27635
27727
|
|
|
27636
27728
|
// packages/team-core/src/config.ts
|
|
27637
|
-
import * as
|
|
27638
|
-
var TeamModeConfigSchema =
|
|
27639
|
-
enabled:
|
|
27640
|
-
tmux_visualization:
|
|
27641
|
-
max_parallel_members:
|
|
27642
|
-
max_members:
|
|
27643
|
-
max_messages_per_run:
|
|
27644
|
-
max_wall_clock_minutes:
|
|
27645
|
-
max_member_turns:
|
|
27646
|
-
base_dir:
|
|
27647
|
-
message_payload_max_bytes:
|
|
27648
|
-
recipient_unread_max_bytes:
|
|
27649
|
-
mailbox_poll_interval_ms:
|
|
27729
|
+
import * as z41 from "zod";
|
|
27730
|
+
var TeamModeConfigSchema = z41.object({
|
|
27731
|
+
enabled: z41.boolean().default(false),
|
|
27732
|
+
tmux_visualization: z41.boolean().default(false),
|
|
27733
|
+
max_parallel_members: z41.number().int().min(1).max(8).default(4),
|
|
27734
|
+
max_members: z41.number().int().min(1).max(8).default(8),
|
|
27735
|
+
max_messages_per_run: z41.number().int().min(1).default(1e4),
|
|
27736
|
+
max_wall_clock_minutes: z41.number().int().min(1).default(120),
|
|
27737
|
+
max_member_turns: z41.number().int().min(1).default(500),
|
|
27738
|
+
base_dir: z41.string().optional(),
|
|
27739
|
+
message_payload_max_bytes: z41.number().int().min(1024).default(32768),
|
|
27740
|
+
recipient_unread_max_bytes: z41.number().int().min(1024).default(262144),
|
|
27741
|
+
mailbox_poll_interval_ms: z41.number().int().min(500).default(3000)
|
|
27650
27742
|
});
|
|
27651
27743
|
// packages/omo-opencode/src/config/schema/skills.ts
|
|
27652
|
-
import { z as
|
|
27653
|
-
var SkillSourceSchema =
|
|
27654
|
-
|
|
27655
|
-
|
|
27656
|
-
path:
|
|
27657
|
-
recursive:
|
|
27658
|
-
glob:
|
|
27744
|
+
import { z as z42 } from "zod";
|
|
27745
|
+
var SkillSourceSchema = z42.union([
|
|
27746
|
+
z42.string(),
|
|
27747
|
+
z42.object({
|
|
27748
|
+
path: z42.string(),
|
|
27749
|
+
recursive: z42.boolean().optional(),
|
|
27750
|
+
glob: z42.string().optional()
|
|
27659
27751
|
})
|
|
27660
27752
|
]);
|
|
27661
|
-
var SkillDefinitionSchema =
|
|
27662
|
-
description:
|
|
27663
|
-
template:
|
|
27664
|
-
from:
|
|
27665
|
-
model:
|
|
27666
|
-
agent:
|
|
27667
|
-
subtask:
|
|
27668
|
-
"argument-hint":
|
|
27669
|
-
license:
|
|
27670
|
-
compatibility:
|
|
27671
|
-
metadata:
|
|
27672
|
-
"allowed-tools":
|
|
27673
|
-
disable:
|
|
27753
|
+
var SkillDefinitionSchema = z42.object({
|
|
27754
|
+
description: z42.string().optional(),
|
|
27755
|
+
template: z42.string().optional(),
|
|
27756
|
+
from: z42.string().optional(),
|
|
27757
|
+
model: z42.string().optional(),
|
|
27758
|
+
agent: z42.string().optional(),
|
|
27759
|
+
subtask: z42.boolean().optional(),
|
|
27760
|
+
"argument-hint": z42.string().optional(),
|
|
27761
|
+
license: z42.string().optional(),
|
|
27762
|
+
compatibility: z42.string().optional(),
|
|
27763
|
+
metadata: z42.record(z42.string(), z42.unknown()).optional(),
|
|
27764
|
+
"allowed-tools": z42.array(z42.string()).optional(),
|
|
27765
|
+
disable: z42.boolean().optional()
|
|
27674
27766
|
});
|
|
27675
|
-
var SkillEntrySchema =
|
|
27676
|
-
var SkillsConfigSchema =
|
|
27677
|
-
|
|
27678
|
-
|
|
27679
|
-
sources:
|
|
27680
|
-
enable:
|
|
27681
|
-
disable:
|
|
27767
|
+
var SkillEntrySchema = z42.union([z42.boolean(), SkillDefinitionSchema]);
|
|
27768
|
+
var SkillsConfigSchema = z42.union([
|
|
27769
|
+
z42.array(z42.string()),
|
|
27770
|
+
z42.object({
|
|
27771
|
+
sources: z42.array(SkillSourceSchema).optional(),
|
|
27772
|
+
enable: z42.array(z42.string()).optional(),
|
|
27773
|
+
disable: z42.array(z42.string()).optional()
|
|
27682
27774
|
}).catchall(SkillEntrySchema)
|
|
27683
27775
|
]);
|
|
27684
27776
|
|
|
27685
27777
|
// packages/omo-opencode/src/config/schema/sisyphus.ts
|
|
27686
|
-
import { z as
|
|
27687
|
-
var SisyphusTasksConfigSchema =
|
|
27688
|
-
storage_path:
|
|
27689
|
-
task_list_id:
|
|
27690
|
-
claude_code_compat:
|
|
27778
|
+
import { z as z43 } from "zod";
|
|
27779
|
+
var SisyphusTasksConfigSchema = z43.object({
|
|
27780
|
+
storage_path: z43.string().optional(),
|
|
27781
|
+
task_list_id: z43.string().optional(),
|
|
27782
|
+
claude_code_compat: z43.boolean().default(false)
|
|
27691
27783
|
});
|
|
27692
|
-
var SisyphusConfigSchema =
|
|
27784
|
+
var SisyphusConfigSchema = z43.object({
|
|
27693
27785
|
tasks: SisyphusTasksConfigSchema.optional()
|
|
27694
27786
|
});
|
|
27695
27787
|
|
|
27696
27788
|
// packages/omo-opencode/src/config/schema/sisyphus-agent.ts
|
|
27697
|
-
import { z as
|
|
27698
|
-
var SisyphusAgentConfigSchema =
|
|
27699
|
-
disabled:
|
|
27700
|
-
default_builder_enabled:
|
|
27701
|
-
planner_enabled:
|
|
27702
|
-
replace_plan:
|
|
27703
|
-
tdd:
|
|
27789
|
+
import { z as z44 } from "zod";
|
|
27790
|
+
var SisyphusAgentConfigSchema = z44.object({
|
|
27791
|
+
disabled: z44.boolean().optional(),
|
|
27792
|
+
default_builder_enabled: z44.boolean().optional(),
|
|
27793
|
+
planner_enabled: z44.boolean().optional(),
|
|
27794
|
+
replace_plan: z44.boolean().optional(),
|
|
27795
|
+
tdd: z44.boolean().default(true).optional()
|
|
27704
27796
|
});
|
|
27705
27797
|
|
|
27706
27798
|
// packages/omo-opencode/src/config/schema/tmux.ts
|
|
27707
27799
|
init_src3();
|
|
27708
|
-
import { z as
|
|
27709
|
-
var TmuxLayoutSchema =
|
|
27710
|
-
var TmuxIsolationSchema =
|
|
27711
|
-
var TmuxConfigSchema =
|
|
27712
|
-
enabled:
|
|
27800
|
+
import { z as z45 } from "zod";
|
|
27801
|
+
var TmuxLayoutSchema = z45.enum(TMUX_LAYOUT_VALUES);
|
|
27802
|
+
var TmuxIsolationSchema = z45.enum(TMUX_ISOLATION_VALUES);
|
|
27803
|
+
var TmuxConfigSchema = z45.object({
|
|
27804
|
+
enabled: z45.boolean().default(false),
|
|
27713
27805
|
layout: TmuxLayoutSchema.default("main-vertical"),
|
|
27714
|
-
main_pane_size:
|
|
27715
|
-
main_pane_min_width:
|
|
27716
|
-
agent_pane_min_width:
|
|
27806
|
+
main_pane_size: z45.number().min(20).max(80).default(60),
|
|
27807
|
+
main_pane_min_width: z45.number().min(40).default(120),
|
|
27808
|
+
agent_pane_min_width: z45.number().min(20).default(40),
|
|
27717
27809
|
isolation: TmuxIsolationSchema.default("inline")
|
|
27718
27810
|
});
|
|
27719
27811
|
|
|
27720
27812
|
// packages/omo-opencode/src/config/schema/tui.ts
|
|
27721
|
-
import { z as
|
|
27722
|
-
var TuiSidebarConfigSchema =
|
|
27723
|
-
enabled:
|
|
27813
|
+
import { z as z46 } from "zod";
|
|
27814
|
+
var TuiSidebarConfigSchema = z46.object({
|
|
27815
|
+
enabled: z46.boolean().default(true)
|
|
27724
27816
|
});
|
|
27725
|
-
var TuiConfigSchema =
|
|
27817
|
+
var TuiConfigSchema = z46.object({
|
|
27726
27818
|
sidebar: TuiSidebarConfigSchema.default({ enabled: true })
|
|
27727
27819
|
});
|
|
27728
27820
|
|
|
27729
27821
|
// packages/omo-opencode/src/config/schema/start-work.ts
|
|
27730
|
-
import { z as
|
|
27731
|
-
var StartWorkConfigSchema =
|
|
27732
|
-
auto_commit:
|
|
27822
|
+
import { z as z47 } from "zod";
|
|
27823
|
+
var StartWorkConfigSchema = z47.object({
|
|
27824
|
+
auto_commit: z47.boolean().default(true)
|
|
27733
27825
|
});
|
|
27734
27826
|
|
|
27735
27827
|
// packages/omo-opencode/src/config/schema/websearch.ts
|
|
27736
|
-
import { z as
|
|
27737
|
-
var WebsearchProviderSchema =
|
|
27738
|
-
var WebsearchConfigSchema =
|
|
27828
|
+
import { z as z48 } from "zod";
|
|
27829
|
+
var WebsearchProviderSchema = z48.enum(["exa", "tavily"]);
|
|
27830
|
+
var WebsearchConfigSchema = z48.object({
|
|
27739
27831
|
provider: WebsearchProviderSchema.optional()
|
|
27740
27832
|
});
|
|
27741
27833
|
|
|
27742
27834
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
27743
|
-
var OhMyOpenCodeConfigSchema =
|
|
27744
|
-
$schema:
|
|
27745
|
-
new_task_system_enabled:
|
|
27746
|
-
default_run_agent:
|
|
27747
|
-
agent_order:
|
|
27835
|
+
var OhMyOpenCodeConfigSchema = z49.object({
|
|
27836
|
+
$schema: z49.string().optional(),
|
|
27837
|
+
new_task_system_enabled: z49.boolean().optional(),
|
|
27838
|
+
default_run_agent: z49.string().optional(),
|
|
27839
|
+
agent_order: z49.array(z49.string().max(128)).max(64).optional(),
|
|
27748
27840
|
agent_definitions: AgentDefinitionsConfigSchema,
|
|
27749
|
-
disabled_mcps:
|
|
27750
|
-
disabled_agents:
|
|
27751
|
-
disabled_skills:
|
|
27752
|
-
disabled_hooks:
|
|
27753
|
-
disabled_commands:
|
|
27754
|
-
disabled_tools:
|
|
27755
|
-
disabled_providers:
|
|
27756
|
-
mcp_env_allowlist:
|
|
27757
|
-
hashline_edit:
|
|
27758
|
-
telemetry:
|
|
27759
|
-
model_fallback:
|
|
27841
|
+
disabled_mcps: z49.array(AnyMcpNameSchema).optional(),
|
|
27842
|
+
disabled_agents: z49.array(z49.string()).optional(),
|
|
27843
|
+
disabled_skills: z49.array(z49.string()).optional(),
|
|
27844
|
+
disabled_hooks: z49.array(z49.string()).optional(),
|
|
27845
|
+
disabled_commands: z49.array(BuiltinCommandNameSchema).optional(),
|
|
27846
|
+
disabled_tools: z49.array(z49.string()).optional(),
|
|
27847
|
+
disabled_providers: z49.array(z49.string()).optional(),
|
|
27848
|
+
mcp_env_allowlist: z49.array(z49.string()).optional(),
|
|
27849
|
+
hashline_edit: z49.boolean().optional(),
|
|
27850
|
+
telemetry: z49.boolean().optional().describe("Enable or disable anonymous telemetry. Default: enabled when omitted. Set to false to disable. Independent of codegraph.telemetry."),
|
|
27851
|
+
model_fallback: z49.boolean().optional(),
|
|
27760
27852
|
agents: AgentOverridesSchema.optional(),
|
|
27761
27853
|
categories: CategoriesConfigSchema.optional(),
|
|
27762
27854
|
claude_code: ClaudeCodeConfigSchema.optional(),
|
|
27763
27855
|
sisyphus_agent: SisyphusAgentConfigSchema.optional(),
|
|
27764
27856
|
comment_checker: CommentCheckerConfigSchema.optional(),
|
|
27765
27857
|
experimental: ExperimentalConfigSchema.optional(),
|
|
27766
|
-
auto_update:
|
|
27858
|
+
auto_update: z49.boolean().optional(),
|
|
27767
27859
|
skills: SkillsConfigSchema.optional(),
|
|
27768
27860
|
goal: GoalConfigSchema.optional(),
|
|
27769
|
-
ralph_loop:
|
|
27770
|
-
runtime_fallback:
|
|
27861
|
+
ralph_loop: z49.record(z49.string(), z49.unknown()).optional(),
|
|
27862
|
+
runtime_fallback: z49.union([z49.boolean(), RuntimeFallbackConfigSchema]).optional(),
|
|
27771
27863
|
background_task: BackgroundTaskConfigSchema.optional(),
|
|
27772
27864
|
notification: NotificationConfigSchema.optional(),
|
|
27773
27865
|
model_capabilities: ModelCapabilitiesConfigSchema.optional(),
|
|
@@ -27790,7 +27882,7 @@ var OhMyOpenCodeConfigSchema = z48.object({
|
|
|
27790
27882
|
sisyphus: SisyphusConfigSchema.optional(),
|
|
27791
27883
|
start_work: StartWorkConfigSchema.optional(),
|
|
27792
27884
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
27793
|
-
_migrations:
|
|
27885
|
+
_migrations: z49.array(z49.string()).optional()
|
|
27794
27886
|
});
|
|
27795
27887
|
// packages/omo-opencode/src/config/validate.ts
|
|
27796
27888
|
function shortPath(configPath) {
|
|
@@ -85415,7 +85507,7 @@ var getUrl = ({ baseUrl, path: path7, query, querySerializer, url: _url }) => {
|
|
|
85415
85507
|
};
|
|
85416
85508
|
|
|
85417
85509
|
// node_modules/.bun/@opencode-ai+sdk@1.15.13/node_modules/@opencode-ai/sdk/dist/gen/client/utils.gen.js
|
|
85418
|
-
var createQuerySerializer = ({ allowReserved, array: array7, object:
|
|
85510
|
+
var createQuerySerializer = ({ allowReserved, array: array7, object: object13 } = {}) => {
|
|
85419
85511
|
const querySerializer = (queryParams) => {
|
|
85420
85512
|
const search = [];
|
|
85421
85513
|
if (queryParams && typeof queryParams === "object") {
|
|
@@ -85442,7 +85534,7 @@ var createQuerySerializer = ({ allowReserved, array: array7, object: object12 }
|
|
|
85442
85534
|
name,
|
|
85443
85535
|
style: "deepObject",
|
|
85444
85536
|
value,
|
|
85445
|
-
...
|
|
85537
|
+
...object13
|
|
85446
85538
|
});
|
|
85447
85539
|
if (serializedObject)
|
|
85448
85540
|
search.push(serializedObject);
|
|
@@ -98552,7 +98644,7 @@ function getCachedVersion(options = {}) {
|
|
|
98552
98644
|
// package.json
|
|
98553
98645
|
var package_default = {
|
|
98554
98646
|
name: "oh-my-opencode",
|
|
98555
|
-
version: "5.0.0-beta.
|
|
98647
|
+
version: "5.0.0-beta.7",
|
|
98556
98648
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
98557
98649
|
main: "./dist/index.js",
|
|
98558
98650
|
types: "dist/index.d.ts",
|
|
@@ -98732,7 +98824,7 @@ var package_default = {
|
|
|
98732
98824
|
zod: "^4.4.3"
|
|
98733
98825
|
},
|
|
98734
98826
|
devDependencies: {
|
|
98735
|
-
"@code-yeongyu/senpi": "2026.8.
|
|
98827
|
+
"@code-yeongyu/senpi": "2026.8.12-4",
|
|
98736
98828
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
98737
98829
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
98738
98830
|
"@oh-my-opencode/boulder-state": "workspace:*",
|
|
@@ -98748,6 +98840,7 @@ var package_default = {
|
|
|
98748
98840
|
"@oh-my-opencode/model-core": "workspace:*",
|
|
98749
98841
|
"@oh-my-opencode/omo-codex": "workspace:*",
|
|
98750
98842
|
"@oh-my-opencode/omo-config-core": "workspace:*",
|
|
98843
|
+
"@oh-my-opencode/omo-opencode": "workspace:*",
|
|
98751
98844
|
"@oh-my-opencode/omo-senpi": "workspace:*",
|
|
98752
98845
|
"@oh-my-opencode/openclaw-core": "workspace:*",
|
|
98753
98846
|
"@oh-my-opencode/pi-goal": "workspace:*",
|
|
@@ -98772,18 +98865,18 @@ var package_default = {
|
|
|
98772
98865
|
typescript: "^7.0.2"
|
|
98773
98866
|
},
|
|
98774
98867
|
optionalDependencies: {
|
|
98775
|
-
"oh-my-opencode-darwin-arm64": "5.0.0-beta.
|
|
98776
|
-
"oh-my-opencode-darwin-x64": "5.0.0-beta.
|
|
98777
|
-
"oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.
|
|
98778
|
-
"oh-my-opencode-linux-arm64": "5.0.0-beta.
|
|
98779
|
-
"oh-my-opencode-linux-arm64-musl": "5.0.0-beta.
|
|
98780
|
-
"oh-my-opencode-linux-x64": "5.0.0-beta.
|
|
98781
|
-
"oh-my-opencode-linux-x64-baseline": "5.0.0-beta.
|
|
98782
|
-
"oh-my-opencode-linux-x64-musl": "5.0.0-beta.
|
|
98783
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.
|
|
98784
|
-
"oh-my-opencode-windows-arm64": "5.0.0-beta.
|
|
98785
|
-
"oh-my-opencode-windows-x64": "5.0.0-beta.
|
|
98786
|
-
"oh-my-opencode-windows-x64-baseline": "5.0.0-beta.
|
|
98868
|
+
"oh-my-opencode-darwin-arm64": "5.0.0-beta.7",
|
|
98869
|
+
"oh-my-opencode-darwin-x64": "5.0.0-beta.7",
|
|
98870
|
+
"oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.7",
|
|
98871
|
+
"oh-my-opencode-linux-arm64": "5.0.0-beta.7",
|
|
98872
|
+
"oh-my-opencode-linux-arm64-musl": "5.0.0-beta.7",
|
|
98873
|
+
"oh-my-opencode-linux-x64": "5.0.0-beta.7",
|
|
98874
|
+
"oh-my-opencode-linux-x64-baseline": "5.0.0-beta.7",
|
|
98875
|
+
"oh-my-opencode-linux-x64-musl": "5.0.0-beta.7",
|
|
98876
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.7",
|
|
98877
|
+
"oh-my-opencode-windows-arm64": "5.0.0-beta.7",
|
|
98878
|
+
"oh-my-opencode-windows-x64": "5.0.0-beta.7",
|
|
98879
|
+
"oh-my-opencode-windows-x64-baseline": "5.0.0-beta.7"
|
|
98787
98880
|
},
|
|
98788
98881
|
overrides: {
|
|
98789
98882
|
"@earendil-works/pi-agent-core": "0.80.3",
|
|
@@ -104852,7 +104945,7 @@ task(category="quick", load_skills=["git-master"], run_in_background=true)
|
|
|
104852
104945
|
|
|
104853
104946
|
### Goal Registration (BINDING)
|
|
104854
104947
|
|
|
104855
|
-
When the \`create_goal\` tool exists, you MUST register the run's goal with it BEFORE any implementation: the
|
|
104948
|
+
When the \`create_goal\` tool exists, you MUST register the run's goal with it BEFORE any implementation. Check \`get_goal\` first: continue a matching active goal instead of duplicating it; surface a conflicting one. Pass exactly \`objective\`, written outcome-first: the concrete thing that will be TRUE when done (an outcome, never an activity like "investigate X"), the named deliverable surfaces, the scenario contract below as success criteria (each a binary observable that CAN fail), explicit scope bounds, and one line "I'll stop right away when <the exact observable state that ends this run>". Never invent a budget or deadline the user did not state. Without the tool, record the same contract at the top of your TODO/notepad and treat it as binding.
|
|
104856
104949
|
|
|
104857
104950
|
### Pre-Implementation: Scenario Contract (BINDING)
|
|
104858
104951
|
|
|
@@ -105209,7 +105302,7 @@ task(subagent_type="plan", load_skills=[], run_in_background=false, prompt="<gat
|
|
|
105209
105302
|
|
|
105210
105303
|
### GOAL REGISTRATION (BINDING)
|
|
105211
105304
|
|
|
105212
|
-
When the \`create_goal\` tool exists, you MUST register the run's goal with it BEFORE any implementation: the
|
|
105305
|
+
When the \`create_goal\` tool exists, you MUST register the run's goal with it BEFORE any implementation. Check \`get_goal\` first: continue a matching active goal instead of duplicating it; surface a conflicting one. Pass exactly \`objective\`, written outcome-first: the concrete thing that will be TRUE when done (an outcome, never an activity like "investigate X"), the named deliverable surfaces, the scenario contract below as success criteria (each a binary observable that CAN fail), explicit scope bounds, and one line "I'll stop right away when <the exact observable state that ends this run>". Never invent a budget or deadline the user did not state. Without the tool, record the same contract at the top of your TODO/notepad and treat it as binding.
|
|
105213
105306
|
|
|
105214
105307
|
### SCENARIO CONTRACT (binding, defined BEFORE coding)
|
|
105215
105308
|
|
|
@@ -105478,7 +105571,7 @@ If a verification command is unavailable or not applicable, state the exact reas
|
|
|
105478
105571
|
|
|
105479
105572
|
## GOAL REGISTRATION
|
|
105480
105573
|
|
|
105481
|
-
When a \`create_goal\` tool exists, register the run's goal with
|
|
105574
|
+
When a \`create_goal\` tool exists, check \`get_goal\` first (continue a matching active goal; never duplicate), then register the run's goal before implementation with exactly \`objective\`, written outcome-first: the concrete outcome that will be true (never an activity), the named deliverable surfaces, the scenario contract as success criteria that can fail, scope bounds, and one WHEN TO STOP line naming the observable end state. Never invent a budget or deadline the user did not state. Without the tool, record the same contract in your working notes and treat it as binding.
|
|
105482
105575
|
|
|
105483
105576
|
## TODO DISCIPLINE
|
|
105484
105577
|
|
|
@@ -105679,7 +105772,7 @@ At start, run \`NOTE=$(mktemp -t ulw-$(date +%Y%m%d-%H%M%S).XXXXXX.md)\` and ech
|
|
|
105679
105772
|
|
|
105680
105773
|
## GOAL REGISTRATION
|
|
105681
105774
|
|
|
105682
|
-
When a \`create_goal\` tool exists, register the run's goal with
|
|
105775
|
+
When a \`create_goal\` tool exists, check \`get_goal\` first (continue a matching active goal; never duplicate), then register the run's goal before implementation with exactly \`objective\`, outcome-first: the concrete outcome that will be true (never an activity), named deliverable surfaces, the scenario contract as criteria that can fail, scope bounds, and the WHEN TO STOP line. No invented budgets or deadlines. No tool \u2192 record the same contract in the notepad and treat it as binding.
|
|
105683
105776
|
|
|
105684
105777
|
## TODO DISCIPLINE
|
|
105685
105778
|
|
|
@@ -107439,35 +107532,35 @@ import { mkdirSync as mkdirSync19, readFileSync as readFileSync49, renameSync as
|
|
|
107439
107532
|
import { join as join95 } from "path";
|
|
107440
107533
|
|
|
107441
107534
|
// packages/omo-opencode/src/hooks/goal/types.ts
|
|
107442
|
-
import { z as
|
|
107535
|
+
import { z as z51 } from "zod";
|
|
107443
107536
|
var GOAL_STATUS_VALUES = ["active", "paused", "complete"];
|
|
107444
|
-
var GoalStatusSchema =
|
|
107445
|
-
var GoalSchema =
|
|
107446
|
-
id:
|
|
107447
|
-
sessionID:
|
|
107448
|
-
objective:
|
|
107537
|
+
var GoalStatusSchema = z51.enum(GOAL_STATUS_VALUES);
|
|
107538
|
+
var GoalSchema = z51.object({
|
|
107539
|
+
id: z51.string(),
|
|
107540
|
+
sessionID: z51.string(),
|
|
107541
|
+
objective: z51.string(),
|
|
107449
107542
|
status: GoalStatusSchema,
|
|
107450
|
-
tokensUsed:
|
|
107451
|
-
timeUsedSeconds:
|
|
107452
|
-
createdAt:
|
|
107453
|
-
updatedAt:
|
|
107454
|
-
lastStartedAt:
|
|
107455
|
-
completedAt:
|
|
107543
|
+
tokensUsed: z51.number().int().nonnegative(),
|
|
107544
|
+
timeUsedSeconds: z51.number().int().nonnegative(),
|
|
107545
|
+
createdAt: z51.number().int().nonnegative(),
|
|
107546
|
+
updatedAt: z51.number().int().nonnegative(),
|
|
107547
|
+
lastStartedAt: z51.number().int().nonnegative().optional(),
|
|
107548
|
+
completedAt: z51.number().int().nonnegative().optional()
|
|
107456
107549
|
});
|
|
107457
|
-
var GoalFileSchema =
|
|
107458
|
-
version:
|
|
107550
|
+
var GoalFileSchema = z51.object({
|
|
107551
|
+
version: z51.literal(1),
|
|
107459
107552
|
goal: GoalSchema.nullable()
|
|
107460
107553
|
});
|
|
107461
|
-
var GoalToolSnapshotSchema =
|
|
107462
|
-
sessionID:
|
|
107463
|
-
objective:
|
|
107554
|
+
var GoalToolSnapshotSchema = z51.object({
|
|
107555
|
+
sessionID: z51.string(),
|
|
107556
|
+
objective: z51.string(),
|
|
107464
107557
|
status: GoalStatusSchema,
|
|
107465
|
-
tokensUsed:
|
|
107466
|
-
timeUsedSeconds:
|
|
107467
|
-
createdAt:
|
|
107468
|
-
updatedAt:
|
|
107558
|
+
tokensUsed: z51.number().int().nonnegative(),
|
|
107559
|
+
timeUsedSeconds: z51.number().int().nonnegative(),
|
|
107560
|
+
createdAt: z51.number().int().nonnegative(),
|
|
107561
|
+
updatedAt: z51.number().int().nonnegative()
|
|
107469
107562
|
});
|
|
107470
|
-
var GoalToolResponseSchema =
|
|
107563
|
+
var GoalToolResponseSchema = z51.object({
|
|
107471
107564
|
goal: GoalToolSnapshotSchema.nullable()
|
|
107472
107565
|
});
|
|
107473
107566
|
|
|
@@ -124674,11 +124767,11 @@ function createMonitorStatusInjectorHook(monitorManager, config3) {
|
|
|
124674
124767
|
import { resolve as resolve34 } from "path";
|
|
124675
124768
|
|
|
124676
124769
|
// node_modules/.bun/@opencode-ai+plugin@1.15.13+e69f701e64847596/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
124677
|
-
import { z as
|
|
124770
|
+
import { z as z52 } from "zod";
|
|
124678
124771
|
function tool(input) {
|
|
124679
124772
|
return input;
|
|
124680
124773
|
}
|
|
124681
|
-
tool.schema =
|
|
124774
|
+
tool.schema = z52;
|
|
124682
124775
|
|
|
124683
124776
|
// packages/omo-opencode/src/shared/ripgrep-cli.ts
|
|
124684
124777
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
@@ -133632,55 +133725,55 @@ function isExplicitSyncRun(runInBackground) {
|
|
|
133632
133725
|
import { join as join127 } from "path";
|
|
133633
133726
|
|
|
133634
133727
|
// packages/omo-opencode/src/tools/task/types.ts
|
|
133635
|
-
import { z as
|
|
133636
|
-
var TaskStatusSchema =
|
|
133637
|
-
var TaskObjectSchema =
|
|
133638
|
-
id:
|
|
133639
|
-
subject:
|
|
133640
|
-
description:
|
|
133728
|
+
import { z as z53 } from "zod";
|
|
133729
|
+
var TaskStatusSchema = z53.enum(["pending", "in_progress", "completed", "deleted"]);
|
|
133730
|
+
var TaskObjectSchema = z53.object({
|
|
133731
|
+
id: z53.string(),
|
|
133732
|
+
subject: z53.string(),
|
|
133733
|
+
description: z53.string(),
|
|
133641
133734
|
status: TaskStatusSchema,
|
|
133642
|
-
activeForm:
|
|
133643
|
-
blocks:
|
|
133644
|
-
blockedBy:
|
|
133645
|
-
owner:
|
|
133646
|
-
metadata:
|
|
133647
|
-
repoURL:
|
|
133648
|
-
parentID:
|
|
133649
|
-
threadID:
|
|
133735
|
+
activeForm: z53.string().optional(),
|
|
133736
|
+
blocks: z53.array(z53.string()).default([]),
|
|
133737
|
+
blockedBy: z53.array(z53.string()).default([]),
|
|
133738
|
+
owner: z53.string().optional(),
|
|
133739
|
+
metadata: z53.record(z53.string(), z53.unknown()).optional(),
|
|
133740
|
+
repoURL: z53.string().optional(),
|
|
133741
|
+
parentID: z53.string().optional(),
|
|
133742
|
+
threadID: z53.string()
|
|
133650
133743
|
}).strict();
|
|
133651
|
-
var TaskCreateInputSchema =
|
|
133652
|
-
subject:
|
|
133653
|
-
description:
|
|
133654
|
-
activeForm:
|
|
133655
|
-
blocks:
|
|
133656
|
-
blockedBy:
|
|
133657
|
-
owner:
|
|
133658
|
-
metadata:
|
|
133659
|
-
repoURL:
|
|
133660
|
-
parentID:
|
|
133744
|
+
var TaskCreateInputSchema = z53.object({
|
|
133745
|
+
subject: z53.string(),
|
|
133746
|
+
description: z53.string().optional(),
|
|
133747
|
+
activeForm: z53.string().optional(),
|
|
133748
|
+
blocks: z53.array(z53.string()).optional(),
|
|
133749
|
+
blockedBy: z53.array(z53.string()).optional(),
|
|
133750
|
+
owner: z53.string().optional(),
|
|
133751
|
+
metadata: z53.record(z53.string(), z53.unknown()).optional(),
|
|
133752
|
+
repoURL: z53.string().optional(),
|
|
133753
|
+
parentID: z53.string().optional()
|
|
133661
133754
|
});
|
|
133662
|
-
var TaskListInputSchema =
|
|
133755
|
+
var TaskListInputSchema = z53.object({
|
|
133663
133756
|
status: TaskStatusSchema.optional(),
|
|
133664
|
-
parentID:
|
|
133757
|
+
parentID: z53.string().optional()
|
|
133665
133758
|
});
|
|
133666
|
-
var TaskGetInputSchema =
|
|
133667
|
-
id:
|
|
133759
|
+
var TaskGetInputSchema = z53.object({
|
|
133760
|
+
id: z53.string()
|
|
133668
133761
|
});
|
|
133669
|
-
var TaskUpdateInputSchema =
|
|
133670
|
-
id:
|
|
133671
|
-
subject:
|
|
133672
|
-
description:
|
|
133762
|
+
var TaskUpdateInputSchema = z53.object({
|
|
133763
|
+
id: z53.string(),
|
|
133764
|
+
subject: z53.string().optional(),
|
|
133765
|
+
description: z53.string().optional(),
|
|
133673
133766
|
status: TaskStatusSchema.optional(),
|
|
133674
|
-
activeForm:
|
|
133675
|
-
addBlocks:
|
|
133676
|
-
addBlockedBy:
|
|
133677
|
-
owner:
|
|
133678
|
-
metadata:
|
|
133679
|
-
repoURL:
|
|
133680
|
-
parentID:
|
|
133767
|
+
activeForm: z53.string().optional(),
|
|
133768
|
+
addBlocks: z53.array(z53.string()).optional(),
|
|
133769
|
+
addBlockedBy: z53.array(z53.string()).optional(),
|
|
133770
|
+
owner: z53.string().optional(),
|
|
133771
|
+
metadata: z53.record(z53.string(), z53.unknown()).optional(),
|
|
133772
|
+
repoURL: z53.string().optional(),
|
|
133773
|
+
parentID: z53.string().optional()
|
|
133681
133774
|
});
|
|
133682
|
-
var TaskDeleteInputSchema =
|
|
133683
|
-
id:
|
|
133775
|
+
var TaskDeleteInputSchema = z53.object({
|
|
133776
|
+
id: z53.string()
|
|
133684
133777
|
});
|
|
133685
133778
|
|
|
133686
133779
|
// packages/omo-opencode/src/features/claude-tasks/storage.ts
|
|
@@ -134526,7 +134619,7 @@ function createHashlineEditTool(ctx) {
|
|
|
134526
134619
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
134527
134620
|
import { randomUUID as randomUUID10 } from "crypto";
|
|
134528
134621
|
init_logger2();
|
|
134529
|
-
import { z as
|
|
134622
|
+
import { z as z54 } from "zod";
|
|
134530
134623
|
|
|
134531
134624
|
// packages/team-core/src/team-mailbox/send.ts
|
|
134532
134625
|
init_paths3();
|
|
@@ -135053,18 +135146,18 @@ async function resolveTeamRuntimeDetails(teamRunId, sessionID, config3, deps) {
|
|
|
135053
135146
|
|
|
135054
135147
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
135055
135148
|
var MESSAGE_TOOL_KINDS = ["message", "announcement"];
|
|
135056
|
-
var TeamReferenceArgsSchema =
|
|
135057
|
-
path:
|
|
135058
|
-
description:
|
|
135149
|
+
var TeamReferenceArgsSchema = z54.object({
|
|
135150
|
+
path: z54.string().min(1),
|
|
135151
|
+
description: z54.string().optional()
|
|
135059
135152
|
});
|
|
135060
|
-
var TeamSendMessageArgsSchema =
|
|
135061
|
-
teamRunId:
|
|
135062
|
-
to:
|
|
135063
|
-
body:
|
|
135064
|
-
kind:
|
|
135065
|
-
correlationId:
|
|
135066
|
-
summary:
|
|
135067
|
-
references:
|
|
135153
|
+
var TeamSendMessageArgsSchema = z54.object({
|
|
135154
|
+
teamRunId: z54.string().min(1),
|
|
135155
|
+
to: z54.string().min(1),
|
|
135156
|
+
body: z54.string(),
|
|
135157
|
+
kind: z54.enum(MESSAGE_TOOL_KINDS).optional(),
|
|
135158
|
+
correlationId: z54.preprocess((value) => value === "" ? undefined : value, z54.uuid().optional()),
|
|
135159
|
+
summary: z54.string().optional(),
|
|
135160
|
+
references: z54.array(TeamReferenceArgsSchema).optional()
|
|
135068
135161
|
});
|
|
135069
135162
|
function createTeamSendMessageTool(config3, client3, deps = defaultTeamSendMessageToolDeps) {
|
|
135070
135163
|
return tool({
|
|
@@ -143379,63 +143472,63 @@ function getLiteralValue(schema2) {
|
|
|
143379
143472
|
}
|
|
143380
143473
|
|
|
143381
143474
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
143382
|
-
import * as
|
|
143475
|
+
import * as z55 from "zod/v4";
|
|
143383
143476
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
143384
143477
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
143385
143478
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
143386
143479
|
var JSONRPC_VERSION = "2.0";
|
|
143387
|
-
var AssertObjectSchema =
|
|
143388
|
-
var ProgressTokenSchema =
|
|
143389
|
-
var CursorSchema =
|
|
143390
|
-
var TaskCreationParamsSchema =
|
|
143391
|
-
ttl:
|
|
143392
|
-
pollInterval:
|
|
143480
|
+
var AssertObjectSchema = z55.custom((v) => v !== null && (typeof v === "object" || typeof v === "function"));
|
|
143481
|
+
var ProgressTokenSchema = z55.union([z55.string(), z55.number().int()]);
|
|
143482
|
+
var CursorSchema = z55.string();
|
|
143483
|
+
var TaskCreationParamsSchema = z55.looseObject({
|
|
143484
|
+
ttl: z55.number().optional(),
|
|
143485
|
+
pollInterval: z55.number().optional()
|
|
143393
143486
|
});
|
|
143394
|
-
var TaskMetadataSchema =
|
|
143395
|
-
ttl:
|
|
143487
|
+
var TaskMetadataSchema = z55.object({
|
|
143488
|
+
ttl: z55.number().optional()
|
|
143396
143489
|
});
|
|
143397
|
-
var RelatedTaskMetadataSchema =
|
|
143398
|
-
taskId:
|
|
143490
|
+
var RelatedTaskMetadataSchema = z55.object({
|
|
143491
|
+
taskId: z55.string()
|
|
143399
143492
|
});
|
|
143400
|
-
var RequestMetaSchema =
|
|
143493
|
+
var RequestMetaSchema = z55.looseObject({
|
|
143401
143494
|
progressToken: ProgressTokenSchema.optional(),
|
|
143402
143495
|
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
|
143403
143496
|
});
|
|
143404
|
-
var BaseRequestParamsSchema =
|
|
143497
|
+
var BaseRequestParamsSchema = z55.object({
|
|
143405
143498
|
_meta: RequestMetaSchema.optional()
|
|
143406
143499
|
});
|
|
143407
143500
|
var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143408
143501
|
task: TaskMetadataSchema.optional()
|
|
143409
143502
|
});
|
|
143410
143503
|
var isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success;
|
|
143411
|
-
var RequestSchema =
|
|
143412
|
-
method:
|
|
143504
|
+
var RequestSchema = z55.object({
|
|
143505
|
+
method: z55.string(),
|
|
143413
143506
|
params: BaseRequestParamsSchema.loose().optional()
|
|
143414
143507
|
});
|
|
143415
|
-
var NotificationsParamsSchema =
|
|
143508
|
+
var NotificationsParamsSchema = z55.object({
|
|
143416
143509
|
_meta: RequestMetaSchema.optional()
|
|
143417
143510
|
});
|
|
143418
|
-
var NotificationSchema =
|
|
143419
|
-
method:
|
|
143511
|
+
var NotificationSchema = z55.object({
|
|
143512
|
+
method: z55.string(),
|
|
143420
143513
|
params: NotificationsParamsSchema.loose().optional()
|
|
143421
143514
|
});
|
|
143422
|
-
var ResultSchema =
|
|
143515
|
+
var ResultSchema = z55.looseObject({
|
|
143423
143516
|
_meta: RequestMetaSchema.optional()
|
|
143424
143517
|
});
|
|
143425
|
-
var RequestIdSchema =
|
|
143426
|
-
var JSONRPCRequestSchema =
|
|
143427
|
-
jsonrpc:
|
|
143518
|
+
var RequestIdSchema = z55.union([z55.string(), z55.number().int()]);
|
|
143519
|
+
var JSONRPCRequestSchema = z55.object({
|
|
143520
|
+
jsonrpc: z55.literal(JSONRPC_VERSION),
|
|
143428
143521
|
id: RequestIdSchema,
|
|
143429
143522
|
...RequestSchema.shape
|
|
143430
143523
|
}).strict();
|
|
143431
143524
|
var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
|
143432
|
-
var JSONRPCNotificationSchema =
|
|
143433
|
-
jsonrpc:
|
|
143525
|
+
var JSONRPCNotificationSchema = z55.object({
|
|
143526
|
+
jsonrpc: z55.literal(JSONRPC_VERSION),
|
|
143434
143527
|
...NotificationSchema.shape
|
|
143435
143528
|
}).strict();
|
|
143436
143529
|
var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
|
143437
|
-
var JSONRPCResultResponseSchema =
|
|
143438
|
-
jsonrpc:
|
|
143530
|
+
var JSONRPCResultResponseSchema = z55.object({
|
|
143531
|
+
jsonrpc: z55.literal(JSONRPC_VERSION),
|
|
143439
143532
|
id: RequestIdSchema,
|
|
143440
143533
|
result: ResultSchema
|
|
143441
143534
|
}).strict();
|
|
@@ -143451,153 +143544,153 @@ var ErrorCode;
|
|
|
143451
143544
|
ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
|
|
143452
143545
|
ErrorCode2[ErrorCode2["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
|
|
143453
143546
|
})(ErrorCode || (ErrorCode = {}));
|
|
143454
|
-
var JSONRPCErrorResponseSchema =
|
|
143455
|
-
jsonrpc:
|
|
143547
|
+
var JSONRPCErrorResponseSchema = z55.object({
|
|
143548
|
+
jsonrpc: z55.literal(JSONRPC_VERSION),
|
|
143456
143549
|
id: RequestIdSchema.optional(),
|
|
143457
|
-
error:
|
|
143458
|
-
code:
|
|
143459
|
-
message:
|
|
143460
|
-
data:
|
|
143550
|
+
error: z55.object({
|
|
143551
|
+
code: z55.number().int(),
|
|
143552
|
+
message: z55.string(),
|
|
143553
|
+
data: z55.unknown().optional()
|
|
143461
143554
|
})
|
|
143462
143555
|
}).strict();
|
|
143463
143556
|
var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
|
|
143464
|
-
var JSONRPCMessageSchema =
|
|
143557
|
+
var JSONRPCMessageSchema = z55.union([
|
|
143465
143558
|
JSONRPCRequestSchema,
|
|
143466
143559
|
JSONRPCNotificationSchema,
|
|
143467
143560
|
JSONRPCResultResponseSchema,
|
|
143468
143561
|
JSONRPCErrorResponseSchema
|
|
143469
143562
|
]);
|
|
143470
|
-
var JSONRPCResponseSchema =
|
|
143563
|
+
var JSONRPCResponseSchema = z55.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
|
143471
143564
|
var EmptyResultSchema = ResultSchema.strict();
|
|
143472
143565
|
var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
143473
143566
|
requestId: RequestIdSchema.optional(),
|
|
143474
|
-
reason:
|
|
143567
|
+
reason: z55.string().optional()
|
|
143475
143568
|
});
|
|
143476
143569
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
143477
|
-
method:
|
|
143570
|
+
method: z55.literal("notifications/cancelled"),
|
|
143478
143571
|
params: CancelledNotificationParamsSchema
|
|
143479
143572
|
});
|
|
143480
|
-
var IconSchema =
|
|
143481
|
-
src:
|
|
143482
|
-
mimeType:
|
|
143483
|
-
sizes:
|
|
143484
|
-
theme:
|
|
143573
|
+
var IconSchema = z55.object({
|
|
143574
|
+
src: z55.string(),
|
|
143575
|
+
mimeType: z55.string().optional(),
|
|
143576
|
+
sizes: z55.array(z55.string()).optional(),
|
|
143577
|
+
theme: z55.enum(["light", "dark"]).optional()
|
|
143485
143578
|
});
|
|
143486
|
-
var IconsSchema =
|
|
143487
|
-
icons:
|
|
143579
|
+
var IconsSchema = z55.object({
|
|
143580
|
+
icons: z55.array(IconSchema).optional()
|
|
143488
143581
|
});
|
|
143489
|
-
var BaseMetadataSchema =
|
|
143490
|
-
name:
|
|
143491
|
-
title:
|
|
143582
|
+
var BaseMetadataSchema = z55.object({
|
|
143583
|
+
name: z55.string(),
|
|
143584
|
+
title: z55.string().optional()
|
|
143492
143585
|
});
|
|
143493
143586
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
143494
143587
|
...BaseMetadataSchema.shape,
|
|
143495
143588
|
...IconsSchema.shape,
|
|
143496
|
-
version:
|
|
143497
|
-
websiteUrl:
|
|
143498
|
-
description:
|
|
143589
|
+
version: z55.string(),
|
|
143590
|
+
websiteUrl: z55.string().optional(),
|
|
143591
|
+
description: z55.string().optional()
|
|
143499
143592
|
});
|
|
143500
|
-
var FormElicitationCapabilitySchema =
|
|
143501
|
-
applyDefaults:
|
|
143502
|
-
}),
|
|
143503
|
-
var ElicitationCapabilitySchema =
|
|
143593
|
+
var FormElicitationCapabilitySchema = z55.intersection(z55.object({
|
|
143594
|
+
applyDefaults: z55.boolean().optional()
|
|
143595
|
+
}), z55.record(z55.string(), z55.unknown()));
|
|
143596
|
+
var ElicitationCapabilitySchema = z55.preprocess((value) => {
|
|
143504
143597
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
143505
143598
|
if (Object.keys(value).length === 0) {
|
|
143506
143599
|
return { form: {} };
|
|
143507
143600
|
}
|
|
143508
143601
|
}
|
|
143509
143602
|
return value;
|
|
143510
|
-
},
|
|
143603
|
+
}, z55.intersection(z55.object({
|
|
143511
143604
|
form: FormElicitationCapabilitySchema.optional(),
|
|
143512
143605
|
url: AssertObjectSchema.optional()
|
|
143513
|
-
}),
|
|
143514
|
-
var ClientTasksCapabilitySchema =
|
|
143606
|
+
}), z55.record(z55.string(), z55.unknown()).optional()));
|
|
143607
|
+
var ClientTasksCapabilitySchema = z55.looseObject({
|
|
143515
143608
|
list: AssertObjectSchema.optional(),
|
|
143516
143609
|
cancel: AssertObjectSchema.optional(),
|
|
143517
|
-
requests:
|
|
143518
|
-
sampling:
|
|
143610
|
+
requests: z55.looseObject({
|
|
143611
|
+
sampling: z55.looseObject({
|
|
143519
143612
|
createMessage: AssertObjectSchema.optional()
|
|
143520
143613
|
}).optional(),
|
|
143521
|
-
elicitation:
|
|
143614
|
+
elicitation: z55.looseObject({
|
|
143522
143615
|
create: AssertObjectSchema.optional()
|
|
143523
143616
|
}).optional()
|
|
143524
143617
|
}).optional()
|
|
143525
143618
|
});
|
|
143526
|
-
var ServerTasksCapabilitySchema =
|
|
143619
|
+
var ServerTasksCapabilitySchema = z55.looseObject({
|
|
143527
143620
|
list: AssertObjectSchema.optional(),
|
|
143528
143621
|
cancel: AssertObjectSchema.optional(),
|
|
143529
|
-
requests:
|
|
143530
|
-
tools:
|
|
143622
|
+
requests: z55.looseObject({
|
|
143623
|
+
tools: z55.looseObject({
|
|
143531
143624
|
call: AssertObjectSchema.optional()
|
|
143532
143625
|
}).optional()
|
|
143533
143626
|
}).optional()
|
|
143534
143627
|
});
|
|
143535
|
-
var ClientCapabilitiesSchema =
|
|
143536
|
-
experimental:
|
|
143537
|
-
sampling:
|
|
143628
|
+
var ClientCapabilitiesSchema = z55.object({
|
|
143629
|
+
experimental: z55.record(z55.string(), AssertObjectSchema).optional(),
|
|
143630
|
+
sampling: z55.object({
|
|
143538
143631
|
context: AssertObjectSchema.optional(),
|
|
143539
143632
|
tools: AssertObjectSchema.optional()
|
|
143540
143633
|
}).optional(),
|
|
143541
143634
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
143542
|
-
roots:
|
|
143543
|
-
listChanged:
|
|
143635
|
+
roots: z55.object({
|
|
143636
|
+
listChanged: z55.boolean().optional()
|
|
143544
143637
|
}).optional(),
|
|
143545
143638
|
tasks: ClientTasksCapabilitySchema.optional(),
|
|
143546
|
-
extensions:
|
|
143639
|
+
extensions: z55.record(z55.string(), AssertObjectSchema).optional()
|
|
143547
143640
|
});
|
|
143548
143641
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143549
|
-
protocolVersion:
|
|
143642
|
+
protocolVersion: z55.string(),
|
|
143550
143643
|
capabilities: ClientCapabilitiesSchema,
|
|
143551
143644
|
clientInfo: ImplementationSchema
|
|
143552
143645
|
});
|
|
143553
143646
|
var InitializeRequestSchema = RequestSchema.extend({
|
|
143554
|
-
method:
|
|
143647
|
+
method: z55.literal("initialize"),
|
|
143555
143648
|
params: InitializeRequestParamsSchema
|
|
143556
143649
|
});
|
|
143557
|
-
var ServerCapabilitiesSchema =
|
|
143558
|
-
experimental:
|
|
143650
|
+
var ServerCapabilitiesSchema = z55.object({
|
|
143651
|
+
experimental: z55.record(z55.string(), AssertObjectSchema).optional(),
|
|
143559
143652
|
logging: AssertObjectSchema.optional(),
|
|
143560
143653
|
completions: AssertObjectSchema.optional(),
|
|
143561
|
-
prompts:
|
|
143562
|
-
listChanged:
|
|
143654
|
+
prompts: z55.object({
|
|
143655
|
+
listChanged: z55.boolean().optional()
|
|
143563
143656
|
}).optional(),
|
|
143564
|
-
resources:
|
|
143565
|
-
subscribe:
|
|
143566
|
-
listChanged:
|
|
143657
|
+
resources: z55.object({
|
|
143658
|
+
subscribe: z55.boolean().optional(),
|
|
143659
|
+
listChanged: z55.boolean().optional()
|
|
143567
143660
|
}).optional(),
|
|
143568
|
-
tools:
|
|
143569
|
-
listChanged:
|
|
143661
|
+
tools: z55.object({
|
|
143662
|
+
listChanged: z55.boolean().optional()
|
|
143570
143663
|
}).optional(),
|
|
143571
143664
|
tasks: ServerTasksCapabilitySchema.optional(),
|
|
143572
|
-
extensions:
|
|
143665
|
+
extensions: z55.record(z55.string(), AssertObjectSchema).optional()
|
|
143573
143666
|
});
|
|
143574
143667
|
var InitializeResultSchema = ResultSchema.extend({
|
|
143575
|
-
protocolVersion:
|
|
143668
|
+
protocolVersion: z55.string(),
|
|
143576
143669
|
capabilities: ServerCapabilitiesSchema,
|
|
143577
143670
|
serverInfo: ImplementationSchema,
|
|
143578
|
-
instructions:
|
|
143671
|
+
instructions: z55.string().optional()
|
|
143579
143672
|
});
|
|
143580
143673
|
var InitializedNotificationSchema = NotificationSchema.extend({
|
|
143581
|
-
method:
|
|
143674
|
+
method: z55.literal("notifications/initialized"),
|
|
143582
143675
|
params: NotificationsParamsSchema.optional()
|
|
143583
143676
|
});
|
|
143584
143677
|
var isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success;
|
|
143585
143678
|
var PingRequestSchema = RequestSchema.extend({
|
|
143586
|
-
method:
|
|
143679
|
+
method: z55.literal("ping"),
|
|
143587
143680
|
params: BaseRequestParamsSchema.optional()
|
|
143588
143681
|
});
|
|
143589
|
-
var ProgressSchema =
|
|
143590
|
-
progress:
|
|
143591
|
-
total:
|
|
143592
|
-
message:
|
|
143682
|
+
var ProgressSchema = z55.object({
|
|
143683
|
+
progress: z55.number(),
|
|
143684
|
+
total: z55.optional(z55.number()),
|
|
143685
|
+
message: z55.optional(z55.string())
|
|
143593
143686
|
});
|
|
143594
|
-
var ProgressNotificationParamsSchema =
|
|
143687
|
+
var ProgressNotificationParamsSchema = z55.object({
|
|
143595
143688
|
...NotificationsParamsSchema.shape,
|
|
143596
143689
|
...ProgressSchema.shape,
|
|
143597
143690
|
progressToken: ProgressTokenSchema
|
|
143598
143691
|
});
|
|
143599
143692
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
143600
|
-
method:
|
|
143693
|
+
method: z55.literal("notifications/progress"),
|
|
143601
143694
|
params: ProgressNotificationParamsSchema
|
|
143602
143695
|
});
|
|
143603
143696
|
var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
@@ -143609,60 +143702,60 @@ var PaginatedRequestSchema = RequestSchema.extend({
|
|
|
143609
143702
|
var PaginatedResultSchema = ResultSchema.extend({
|
|
143610
143703
|
nextCursor: CursorSchema.optional()
|
|
143611
143704
|
});
|
|
143612
|
-
var TaskStatusSchema2 =
|
|
143613
|
-
var TaskSchema2 =
|
|
143614
|
-
taskId:
|
|
143705
|
+
var TaskStatusSchema2 = z55.enum(["working", "input_required", "completed", "failed", "cancelled"]);
|
|
143706
|
+
var TaskSchema2 = z55.object({
|
|
143707
|
+
taskId: z55.string(),
|
|
143615
143708
|
status: TaskStatusSchema2,
|
|
143616
|
-
ttl:
|
|
143617
|
-
createdAt:
|
|
143618
|
-
lastUpdatedAt:
|
|
143619
|
-
pollInterval:
|
|
143620
|
-
statusMessage:
|
|
143709
|
+
ttl: z55.union([z55.number(), z55.null()]),
|
|
143710
|
+
createdAt: z55.string(),
|
|
143711
|
+
lastUpdatedAt: z55.string(),
|
|
143712
|
+
pollInterval: z55.optional(z55.number()),
|
|
143713
|
+
statusMessage: z55.optional(z55.string())
|
|
143621
143714
|
});
|
|
143622
143715
|
var CreateTaskResultSchema = ResultSchema.extend({
|
|
143623
143716
|
task: TaskSchema2
|
|
143624
143717
|
});
|
|
143625
143718
|
var TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema2);
|
|
143626
143719
|
var TaskStatusNotificationSchema = NotificationSchema.extend({
|
|
143627
|
-
method:
|
|
143720
|
+
method: z55.literal("notifications/tasks/status"),
|
|
143628
143721
|
params: TaskStatusNotificationParamsSchema
|
|
143629
143722
|
});
|
|
143630
143723
|
var GetTaskRequestSchema = RequestSchema.extend({
|
|
143631
|
-
method:
|
|
143724
|
+
method: z55.literal("tasks/get"),
|
|
143632
143725
|
params: BaseRequestParamsSchema.extend({
|
|
143633
|
-
taskId:
|
|
143726
|
+
taskId: z55.string()
|
|
143634
143727
|
})
|
|
143635
143728
|
});
|
|
143636
143729
|
var GetTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
143637
143730
|
var GetTaskPayloadRequestSchema = RequestSchema.extend({
|
|
143638
|
-
method:
|
|
143731
|
+
method: z55.literal("tasks/result"),
|
|
143639
143732
|
params: BaseRequestParamsSchema.extend({
|
|
143640
|
-
taskId:
|
|
143733
|
+
taskId: z55.string()
|
|
143641
143734
|
})
|
|
143642
143735
|
});
|
|
143643
143736
|
var GetTaskPayloadResultSchema = ResultSchema.loose();
|
|
143644
143737
|
var ListTasksRequestSchema = PaginatedRequestSchema.extend({
|
|
143645
|
-
method:
|
|
143738
|
+
method: z55.literal("tasks/list")
|
|
143646
143739
|
});
|
|
143647
143740
|
var ListTasksResultSchema = PaginatedResultSchema.extend({
|
|
143648
|
-
tasks:
|
|
143741
|
+
tasks: z55.array(TaskSchema2)
|
|
143649
143742
|
});
|
|
143650
143743
|
var CancelTaskRequestSchema = RequestSchema.extend({
|
|
143651
|
-
method:
|
|
143744
|
+
method: z55.literal("tasks/cancel"),
|
|
143652
143745
|
params: BaseRequestParamsSchema.extend({
|
|
143653
|
-
taskId:
|
|
143746
|
+
taskId: z55.string()
|
|
143654
143747
|
})
|
|
143655
143748
|
});
|
|
143656
143749
|
var CancelTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
143657
|
-
var ResourceContentsSchema =
|
|
143658
|
-
uri:
|
|
143659
|
-
mimeType:
|
|
143660
|
-
_meta:
|
|
143750
|
+
var ResourceContentsSchema = z55.object({
|
|
143751
|
+
uri: z55.string(),
|
|
143752
|
+
mimeType: z55.optional(z55.string()),
|
|
143753
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143661
143754
|
});
|
|
143662
143755
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
143663
|
-
text:
|
|
143756
|
+
text: z55.string()
|
|
143664
143757
|
});
|
|
143665
|
-
var Base64Schema =
|
|
143758
|
+
var Base64Schema = z55.string().refine((val) => {
|
|
143666
143759
|
try {
|
|
143667
143760
|
atob(val);
|
|
143668
143761
|
return true;
|
|
@@ -143673,447 +143766,447 @@ var Base64Schema = z54.string().refine((val) => {
|
|
|
143673
143766
|
var BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
143674
143767
|
blob: Base64Schema
|
|
143675
143768
|
});
|
|
143676
|
-
var RoleSchema =
|
|
143677
|
-
var AnnotationsSchema =
|
|
143678
|
-
audience:
|
|
143679
|
-
priority:
|
|
143680
|
-
lastModified:
|
|
143769
|
+
var RoleSchema = z55.enum(["user", "assistant"]);
|
|
143770
|
+
var AnnotationsSchema = z55.object({
|
|
143771
|
+
audience: z55.array(RoleSchema).optional(),
|
|
143772
|
+
priority: z55.number().min(0).max(1).optional(),
|
|
143773
|
+
lastModified: z55.iso.datetime({ offset: true }).optional()
|
|
143681
143774
|
});
|
|
143682
|
-
var ResourceSchema =
|
|
143775
|
+
var ResourceSchema = z55.object({
|
|
143683
143776
|
...BaseMetadataSchema.shape,
|
|
143684
143777
|
...IconsSchema.shape,
|
|
143685
|
-
uri:
|
|
143686
|
-
description:
|
|
143687
|
-
mimeType:
|
|
143688
|
-
size:
|
|
143778
|
+
uri: z55.string(),
|
|
143779
|
+
description: z55.optional(z55.string()),
|
|
143780
|
+
mimeType: z55.optional(z55.string()),
|
|
143781
|
+
size: z55.optional(z55.number()),
|
|
143689
143782
|
annotations: AnnotationsSchema.optional(),
|
|
143690
|
-
_meta:
|
|
143783
|
+
_meta: z55.optional(z55.looseObject({}))
|
|
143691
143784
|
});
|
|
143692
|
-
var ResourceTemplateSchema =
|
|
143785
|
+
var ResourceTemplateSchema = z55.object({
|
|
143693
143786
|
...BaseMetadataSchema.shape,
|
|
143694
143787
|
...IconsSchema.shape,
|
|
143695
|
-
uriTemplate:
|
|
143696
|
-
description:
|
|
143697
|
-
mimeType:
|
|
143788
|
+
uriTemplate: z55.string(),
|
|
143789
|
+
description: z55.optional(z55.string()),
|
|
143790
|
+
mimeType: z55.optional(z55.string()),
|
|
143698
143791
|
annotations: AnnotationsSchema.optional(),
|
|
143699
|
-
_meta:
|
|
143792
|
+
_meta: z55.optional(z55.looseObject({}))
|
|
143700
143793
|
});
|
|
143701
143794
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
143702
|
-
method:
|
|
143795
|
+
method: z55.literal("resources/list")
|
|
143703
143796
|
});
|
|
143704
143797
|
var ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
143705
|
-
resources:
|
|
143798
|
+
resources: z55.array(ResourceSchema)
|
|
143706
143799
|
});
|
|
143707
143800
|
var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
143708
|
-
method:
|
|
143801
|
+
method: z55.literal("resources/templates/list")
|
|
143709
143802
|
});
|
|
143710
143803
|
var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
143711
|
-
resourceTemplates:
|
|
143804
|
+
resourceTemplates: z55.array(ResourceTemplateSchema)
|
|
143712
143805
|
});
|
|
143713
143806
|
var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143714
|
-
uri:
|
|
143807
|
+
uri: z55.string()
|
|
143715
143808
|
});
|
|
143716
143809
|
var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
|
143717
143810
|
var ReadResourceRequestSchema = RequestSchema.extend({
|
|
143718
|
-
method:
|
|
143811
|
+
method: z55.literal("resources/read"),
|
|
143719
143812
|
params: ReadResourceRequestParamsSchema
|
|
143720
143813
|
});
|
|
143721
143814
|
var ReadResourceResultSchema = ResultSchema.extend({
|
|
143722
|
-
contents:
|
|
143815
|
+
contents: z55.array(z55.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
143723
143816
|
});
|
|
143724
143817
|
var ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
143725
|
-
method:
|
|
143818
|
+
method: z55.literal("notifications/resources/list_changed"),
|
|
143726
143819
|
params: NotificationsParamsSchema.optional()
|
|
143727
143820
|
});
|
|
143728
143821
|
var SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
143729
143822
|
var SubscribeRequestSchema = RequestSchema.extend({
|
|
143730
|
-
method:
|
|
143823
|
+
method: z55.literal("resources/subscribe"),
|
|
143731
143824
|
params: SubscribeRequestParamsSchema
|
|
143732
143825
|
});
|
|
143733
143826
|
var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
143734
143827
|
var UnsubscribeRequestSchema = RequestSchema.extend({
|
|
143735
|
-
method:
|
|
143828
|
+
method: z55.literal("resources/unsubscribe"),
|
|
143736
143829
|
params: UnsubscribeRequestParamsSchema
|
|
143737
143830
|
});
|
|
143738
143831
|
var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
143739
|
-
uri:
|
|
143832
|
+
uri: z55.string()
|
|
143740
143833
|
});
|
|
143741
143834
|
var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
143742
|
-
method:
|
|
143835
|
+
method: z55.literal("notifications/resources/updated"),
|
|
143743
143836
|
params: ResourceUpdatedNotificationParamsSchema
|
|
143744
143837
|
});
|
|
143745
|
-
var PromptArgumentSchema =
|
|
143746
|
-
name:
|
|
143747
|
-
description:
|
|
143748
|
-
required:
|
|
143838
|
+
var PromptArgumentSchema = z55.object({
|
|
143839
|
+
name: z55.string(),
|
|
143840
|
+
description: z55.optional(z55.string()),
|
|
143841
|
+
required: z55.optional(z55.boolean())
|
|
143749
143842
|
});
|
|
143750
|
-
var PromptSchema =
|
|
143843
|
+
var PromptSchema = z55.object({
|
|
143751
143844
|
...BaseMetadataSchema.shape,
|
|
143752
143845
|
...IconsSchema.shape,
|
|
143753
|
-
description:
|
|
143754
|
-
arguments:
|
|
143755
|
-
_meta:
|
|
143846
|
+
description: z55.optional(z55.string()),
|
|
143847
|
+
arguments: z55.optional(z55.array(PromptArgumentSchema)),
|
|
143848
|
+
_meta: z55.optional(z55.looseObject({}))
|
|
143756
143849
|
});
|
|
143757
143850
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
143758
|
-
method:
|
|
143851
|
+
method: z55.literal("prompts/list")
|
|
143759
143852
|
});
|
|
143760
143853
|
var ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
143761
|
-
prompts:
|
|
143854
|
+
prompts: z55.array(PromptSchema)
|
|
143762
143855
|
});
|
|
143763
143856
|
var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143764
|
-
name:
|
|
143765
|
-
arguments:
|
|
143857
|
+
name: z55.string(),
|
|
143858
|
+
arguments: z55.record(z55.string(), z55.string()).optional()
|
|
143766
143859
|
});
|
|
143767
143860
|
var GetPromptRequestSchema = RequestSchema.extend({
|
|
143768
|
-
method:
|
|
143861
|
+
method: z55.literal("prompts/get"),
|
|
143769
143862
|
params: GetPromptRequestParamsSchema
|
|
143770
143863
|
});
|
|
143771
|
-
var TextContentSchema =
|
|
143772
|
-
type:
|
|
143773
|
-
text:
|
|
143864
|
+
var TextContentSchema = z55.object({
|
|
143865
|
+
type: z55.literal("text"),
|
|
143866
|
+
text: z55.string(),
|
|
143774
143867
|
annotations: AnnotationsSchema.optional(),
|
|
143775
|
-
_meta:
|
|
143868
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143776
143869
|
});
|
|
143777
|
-
var ImageContentSchema =
|
|
143778
|
-
type:
|
|
143870
|
+
var ImageContentSchema = z55.object({
|
|
143871
|
+
type: z55.literal("image"),
|
|
143779
143872
|
data: Base64Schema,
|
|
143780
|
-
mimeType:
|
|
143873
|
+
mimeType: z55.string(),
|
|
143781
143874
|
annotations: AnnotationsSchema.optional(),
|
|
143782
|
-
_meta:
|
|
143875
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143783
143876
|
});
|
|
143784
|
-
var AudioContentSchema =
|
|
143785
|
-
type:
|
|
143877
|
+
var AudioContentSchema = z55.object({
|
|
143878
|
+
type: z55.literal("audio"),
|
|
143786
143879
|
data: Base64Schema,
|
|
143787
|
-
mimeType:
|
|
143880
|
+
mimeType: z55.string(),
|
|
143788
143881
|
annotations: AnnotationsSchema.optional(),
|
|
143789
|
-
_meta:
|
|
143882
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143790
143883
|
});
|
|
143791
|
-
var ToolUseContentSchema =
|
|
143792
|
-
type:
|
|
143793
|
-
name:
|
|
143794
|
-
id:
|
|
143795
|
-
input:
|
|
143796
|
-
_meta:
|
|
143884
|
+
var ToolUseContentSchema = z55.object({
|
|
143885
|
+
type: z55.literal("tool_use"),
|
|
143886
|
+
name: z55.string(),
|
|
143887
|
+
id: z55.string(),
|
|
143888
|
+
input: z55.record(z55.string(), z55.unknown()),
|
|
143889
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143797
143890
|
});
|
|
143798
|
-
var EmbeddedResourceSchema =
|
|
143799
|
-
type:
|
|
143800
|
-
resource:
|
|
143891
|
+
var EmbeddedResourceSchema = z55.object({
|
|
143892
|
+
type: z55.literal("resource"),
|
|
143893
|
+
resource: z55.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
143801
143894
|
annotations: AnnotationsSchema.optional(),
|
|
143802
|
-
_meta:
|
|
143895
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143803
143896
|
});
|
|
143804
143897
|
var ResourceLinkSchema = ResourceSchema.extend({
|
|
143805
|
-
type:
|
|
143898
|
+
type: z55.literal("resource_link")
|
|
143806
143899
|
});
|
|
143807
|
-
var ContentBlockSchema =
|
|
143900
|
+
var ContentBlockSchema = z55.union([
|
|
143808
143901
|
TextContentSchema,
|
|
143809
143902
|
ImageContentSchema,
|
|
143810
143903
|
AudioContentSchema,
|
|
143811
143904
|
ResourceLinkSchema,
|
|
143812
143905
|
EmbeddedResourceSchema
|
|
143813
143906
|
]);
|
|
143814
|
-
var PromptMessageSchema =
|
|
143907
|
+
var PromptMessageSchema = z55.object({
|
|
143815
143908
|
role: RoleSchema,
|
|
143816
143909
|
content: ContentBlockSchema
|
|
143817
143910
|
});
|
|
143818
143911
|
var GetPromptResultSchema = ResultSchema.extend({
|
|
143819
|
-
description:
|
|
143820
|
-
messages:
|
|
143912
|
+
description: z55.string().optional(),
|
|
143913
|
+
messages: z55.array(PromptMessageSchema)
|
|
143821
143914
|
});
|
|
143822
143915
|
var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
143823
|
-
method:
|
|
143916
|
+
method: z55.literal("notifications/prompts/list_changed"),
|
|
143824
143917
|
params: NotificationsParamsSchema.optional()
|
|
143825
143918
|
});
|
|
143826
|
-
var ToolAnnotationsSchema =
|
|
143827
|
-
title:
|
|
143828
|
-
readOnlyHint:
|
|
143829
|
-
destructiveHint:
|
|
143830
|
-
idempotentHint:
|
|
143831
|
-
openWorldHint:
|
|
143919
|
+
var ToolAnnotationsSchema = z55.object({
|
|
143920
|
+
title: z55.string().optional(),
|
|
143921
|
+
readOnlyHint: z55.boolean().optional(),
|
|
143922
|
+
destructiveHint: z55.boolean().optional(),
|
|
143923
|
+
idempotentHint: z55.boolean().optional(),
|
|
143924
|
+
openWorldHint: z55.boolean().optional()
|
|
143832
143925
|
});
|
|
143833
|
-
var ToolExecutionSchema =
|
|
143834
|
-
taskSupport:
|
|
143926
|
+
var ToolExecutionSchema = z55.object({
|
|
143927
|
+
taskSupport: z55.enum(["required", "optional", "forbidden"]).optional()
|
|
143835
143928
|
});
|
|
143836
|
-
var ToolSchema =
|
|
143929
|
+
var ToolSchema = z55.object({
|
|
143837
143930
|
...BaseMetadataSchema.shape,
|
|
143838
143931
|
...IconsSchema.shape,
|
|
143839
|
-
description:
|
|
143840
|
-
inputSchema:
|
|
143841
|
-
type:
|
|
143842
|
-
properties:
|
|
143843
|
-
required:
|
|
143844
|
-
}).catchall(
|
|
143845
|
-
outputSchema:
|
|
143846
|
-
type:
|
|
143847
|
-
properties:
|
|
143848
|
-
required:
|
|
143849
|
-
}).catchall(
|
|
143932
|
+
description: z55.string().optional(),
|
|
143933
|
+
inputSchema: z55.object({
|
|
143934
|
+
type: z55.literal("object"),
|
|
143935
|
+
properties: z55.record(z55.string(), AssertObjectSchema).optional(),
|
|
143936
|
+
required: z55.array(z55.string()).optional()
|
|
143937
|
+
}).catchall(z55.unknown()),
|
|
143938
|
+
outputSchema: z55.object({
|
|
143939
|
+
type: z55.literal("object"),
|
|
143940
|
+
properties: z55.record(z55.string(), AssertObjectSchema).optional(),
|
|
143941
|
+
required: z55.array(z55.string()).optional()
|
|
143942
|
+
}).catchall(z55.unknown()).optional(),
|
|
143850
143943
|
annotations: ToolAnnotationsSchema.optional(),
|
|
143851
143944
|
execution: ToolExecutionSchema.optional(),
|
|
143852
|
-
_meta:
|
|
143945
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143853
143946
|
});
|
|
143854
143947
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
143855
|
-
method:
|
|
143948
|
+
method: z55.literal("tools/list")
|
|
143856
143949
|
});
|
|
143857
143950
|
var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
143858
|
-
tools:
|
|
143951
|
+
tools: z55.array(ToolSchema)
|
|
143859
143952
|
});
|
|
143860
143953
|
var CallToolResultSchema = ResultSchema.extend({
|
|
143861
|
-
content:
|
|
143862
|
-
structuredContent:
|
|
143863
|
-
isError:
|
|
143954
|
+
content: z55.array(ContentBlockSchema).default([]),
|
|
143955
|
+
structuredContent: z55.record(z55.string(), z55.unknown()).optional(),
|
|
143956
|
+
isError: z55.boolean().optional()
|
|
143864
143957
|
});
|
|
143865
143958
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
143866
|
-
toolResult:
|
|
143959
|
+
toolResult: z55.unknown()
|
|
143867
143960
|
}));
|
|
143868
143961
|
var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
143869
|
-
name:
|
|
143870
|
-
arguments:
|
|
143962
|
+
name: z55.string(),
|
|
143963
|
+
arguments: z55.record(z55.string(), z55.unknown()).optional()
|
|
143871
143964
|
});
|
|
143872
143965
|
var CallToolRequestSchema = RequestSchema.extend({
|
|
143873
|
-
method:
|
|
143966
|
+
method: z55.literal("tools/call"),
|
|
143874
143967
|
params: CallToolRequestParamsSchema
|
|
143875
143968
|
});
|
|
143876
143969
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
143877
|
-
method:
|
|
143970
|
+
method: z55.literal("notifications/tools/list_changed"),
|
|
143878
143971
|
params: NotificationsParamsSchema.optional()
|
|
143879
143972
|
});
|
|
143880
|
-
var ListChangedOptionsBaseSchema =
|
|
143881
|
-
autoRefresh:
|
|
143882
|
-
debounceMs:
|
|
143973
|
+
var ListChangedOptionsBaseSchema = z55.object({
|
|
143974
|
+
autoRefresh: z55.boolean().default(true),
|
|
143975
|
+
debounceMs: z55.number().int().nonnegative().default(300)
|
|
143883
143976
|
});
|
|
143884
|
-
var LoggingLevelSchema =
|
|
143977
|
+
var LoggingLevelSchema = z55.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
143885
143978
|
var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143886
143979
|
level: LoggingLevelSchema
|
|
143887
143980
|
});
|
|
143888
143981
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
143889
|
-
method:
|
|
143982
|
+
method: z55.literal("logging/setLevel"),
|
|
143890
143983
|
params: SetLevelRequestParamsSchema
|
|
143891
143984
|
});
|
|
143892
143985
|
var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
143893
143986
|
level: LoggingLevelSchema,
|
|
143894
|
-
logger:
|
|
143895
|
-
data:
|
|
143987
|
+
logger: z55.string().optional(),
|
|
143988
|
+
data: z55.unknown()
|
|
143896
143989
|
});
|
|
143897
143990
|
var LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
143898
|
-
method:
|
|
143991
|
+
method: z55.literal("notifications/message"),
|
|
143899
143992
|
params: LoggingMessageNotificationParamsSchema
|
|
143900
143993
|
});
|
|
143901
|
-
var ModelHintSchema =
|
|
143902
|
-
name:
|
|
143994
|
+
var ModelHintSchema = z55.object({
|
|
143995
|
+
name: z55.string().optional()
|
|
143903
143996
|
});
|
|
143904
|
-
var ModelPreferencesSchema =
|
|
143905
|
-
hints:
|
|
143906
|
-
costPriority:
|
|
143907
|
-
speedPriority:
|
|
143908
|
-
intelligencePriority:
|
|
143997
|
+
var ModelPreferencesSchema = z55.object({
|
|
143998
|
+
hints: z55.array(ModelHintSchema).optional(),
|
|
143999
|
+
costPriority: z55.number().min(0).max(1).optional(),
|
|
144000
|
+
speedPriority: z55.number().min(0).max(1).optional(),
|
|
144001
|
+
intelligencePriority: z55.number().min(0).max(1).optional()
|
|
143909
144002
|
});
|
|
143910
|
-
var ToolChoiceSchema =
|
|
143911
|
-
mode:
|
|
144003
|
+
var ToolChoiceSchema = z55.object({
|
|
144004
|
+
mode: z55.enum(["auto", "required", "none"]).optional()
|
|
143912
144005
|
});
|
|
143913
|
-
var ToolResultContentSchema =
|
|
143914
|
-
type:
|
|
143915
|
-
toolUseId:
|
|
143916
|
-
content:
|
|
143917
|
-
structuredContent:
|
|
143918
|
-
isError:
|
|
143919
|
-
_meta:
|
|
144006
|
+
var ToolResultContentSchema = z55.object({
|
|
144007
|
+
type: z55.literal("tool_result"),
|
|
144008
|
+
toolUseId: z55.string().describe("The unique identifier for the corresponding tool call."),
|
|
144009
|
+
content: z55.array(ContentBlockSchema).default([]),
|
|
144010
|
+
structuredContent: z55.object({}).loose().optional(),
|
|
144011
|
+
isError: z55.boolean().optional(),
|
|
144012
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143920
144013
|
});
|
|
143921
|
-
var SamplingContentSchema =
|
|
143922
|
-
var SamplingMessageContentBlockSchema =
|
|
144014
|
+
var SamplingContentSchema = z55.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]);
|
|
144015
|
+
var SamplingMessageContentBlockSchema = z55.discriminatedUnion("type", [
|
|
143923
144016
|
TextContentSchema,
|
|
143924
144017
|
ImageContentSchema,
|
|
143925
144018
|
AudioContentSchema,
|
|
143926
144019
|
ToolUseContentSchema,
|
|
143927
144020
|
ToolResultContentSchema
|
|
143928
144021
|
]);
|
|
143929
|
-
var SamplingMessageSchema =
|
|
144022
|
+
var SamplingMessageSchema = z55.object({
|
|
143930
144023
|
role: RoleSchema,
|
|
143931
|
-
content:
|
|
143932
|
-
_meta:
|
|
144024
|
+
content: z55.union([SamplingMessageContentBlockSchema, z55.array(SamplingMessageContentBlockSchema)]),
|
|
144025
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143933
144026
|
});
|
|
143934
144027
|
var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
143935
|
-
messages:
|
|
144028
|
+
messages: z55.array(SamplingMessageSchema),
|
|
143936
144029
|
modelPreferences: ModelPreferencesSchema.optional(),
|
|
143937
|
-
systemPrompt:
|
|
143938
|
-
includeContext:
|
|
143939
|
-
temperature:
|
|
143940
|
-
maxTokens:
|
|
143941
|
-
stopSequences:
|
|
144030
|
+
systemPrompt: z55.string().optional(),
|
|
144031
|
+
includeContext: z55.enum(["none", "thisServer", "allServers"]).optional(),
|
|
144032
|
+
temperature: z55.number().optional(),
|
|
144033
|
+
maxTokens: z55.number().int(),
|
|
144034
|
+
stopSequences: z55.array(z55.string()).optional(),
|
|
143942
144035
|
metadata: AssertObjectSchema.optional(),
|
|
143943
|
-
tools:
|
|
144036
|
+
tools: z55.array(ToolSchema).optional(),
|
|
143944
144037
|
toolChoice: ToolChoiceSchema.optional()
|
|
143945
144038
|
});
|
|
143946
144039
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
143947
|
-
method:
|
|
144040
|
+
method: z55.literal("sampling/createMessage"),
|
|
143948
144041
|
params: CreateMessageRequestParamsSchema
|
|
143949
144042
|
});
|
|
143950
144043
|
var CreateMessageResultSchema = ResultSchema.extend({
|
|
143951
|
-
model:
|
|
143952
|
-
stopReason:
|
|
144044
|
+
model: z55.string(),
|
|
144045
|
+
stopReason: z55.optional(z55.enum(["endTurn", "stopSequence", "maxTokens"]).or(z55.string())),
|
|
143953
144046
|
role: RoleSchema,
|
|
143954
144047
|
content: SamplingContentSchema
|
|
143955
144048
|
});
|
|
143956
144049
|
var CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
143957
|
-
model:
|
|
143958
|
-
stopReason:
|
|
144050
|
+
model: z55.string(),
|
|
144051
|
+
stopReason: z55.optional(z55.enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(z55.string())),
|
|
143959
144052
|
role: RoleSchema,
|
|
143960
|
-
content:
|
|
144053
|
+
content: z55.union([SamplingMessageContentBlockSchema, z55.array(SamplingMessageContentBlockSchema)])
|
|
143961
144054
|
});
|
|
143962
|
-
var BooleanSchemaSchema =
|
|
143963
|
-
type:
|
|
143964
|
-
title:
|
|
143965
|
-
description:
|
|
143966
|
-
default:
|
|
144055
|
+
var BooleanSchemaSchema = z55.object({
|
|
144056
|
+
type: z55.literal("boolean"),
|
|
144057
|
+
title: z55.string().optional(),
|
|
144058
|
+
description: z55.string().optional(),
|
|
144059
|
+
default: z55.boolean().optional()
|
|
143967
144060
|
});
|
|
143968
|
-
var StringSchemaSchema =
|
|
143969
|
-
type:
|
|
143970
|
-
title:
|
|
143971
|
-
description:
|
|
143972
|
-
minLength:
|
|
143973
|
-
maxLength:
|
|
143974
|
-
format:
|
|
143975
|
-
default:
|
|
144061
|
+
var StringSchemaSchema = z55.object({
|
|
144062
|
+
type: z55.literal("string"),
|
|
144063
|
+
title: z55.string().optional(),
|
|
144064
|
+
description: z55.string().optional(),
|
|
144065
|
+
minLength: z55.number().optional(),
|
|
144066
|
+
maxLength: z55.number().optional(),
|
|
144067
|
+
format: z55.enum(["email", "uri", "date", "date-time"]).optional(),
|
|
144068
|
+
default: z55.string().optional()
|
|
143976
144069
|
});
|
|
143977
|
-
var NumberSchemaSchema =
|
|
143978
|
-
type:
|
|
143979
|
-
title:
|
|
143980
|
-
description:
|
|
143981
|
-
minimum:
|
|
143982
|
-
maximum:
|
|
143983
|
-
default:
|
|
144070
|
+
var NumberSchemaSchema = z55.object({
|
|
144071
|
+
type: z55.enum(["number", "integer"]),
|
|
144072
|
+
title: z55.string().optional(),
|
|
144073
|
+
description: z55.string().optional(),
|
|
144074
|
+
minimum: z55.number().optional(),
|
|
144075
|
+
maximum: z55.number().optional(),
|
|
144076
|
+
default: z55.number().optional()
|
|
143984
144077
|
});
|
|
143985
|
-
var UntitledSingleSelectEnumSchemaSchema =
|
|
143986
|
-
type:
|
|
143987
|
-
title:
|
|
143988
|
-
description:
|
|
143989
|
-
enum:
|
|
143990
|
-
default:
|
|
144078
|
+
var UntitledSingleSelectEnumSchemaSchema = z55.object({
|
|
144079
|
+
type: z55.literal("string"),
|
|
144080
|
+
title: z55.string().optional(),
|
|
144081
|
+
description: z55.string().optional(),
|
|
144082
|
+
enum: z55.array(z55.string()),
|
|
144083
|
+
default: z55.string().optional()
|
|
143991
144084
|
});
|
|
143992
|
-
var TitledSingleSelectEnumSchemaSchema =
|
|
143993
|
-
type:
|
|
143994
|
-
title:
|
|
143995
|
-
description:
|
|
143996
|
-
oneOf:
|
|
143997
|
-
const:
|
|
143998
|
-
title:
|
|
144085
|
+
var TitledSingleSelectEnumSchemaSchema = z55.object({
|
|
144086
|
+
type: z55.literal("string"),
|
|
144087
|
+
title: z55.string().optional(),
|
|
144088
|
+
description: z55.string().optional(),
|
|
144089
|
+
oneOf: z55.array(z55.object({
|
|
144090
|
+
const: z55.string(),
|
|
144091
|
+
title: z55.string()
|
|
143999
144092
|
})),
|
|
144000
|
-
default:
|
|
144093
|
+
default: z55.string().optional()
|
|
144001
144094
|
});
|
|
144002
|
-
var LegacyTitledEnumSchemaSchema =
|
|
144003
|
-
type:
|
|
144004
|
-
title:
|
|
144005
|
-
description:
|
|
144006
|
-
enum:
|
|
144007
|
-
enumNames:
|
|
144008
|
-
default:
|
|
144095
|
+
var LegacyTitledEnumSchemaSchema = z55.object({
|
|
144096
|
+
type: z55.literal("string"),
|
|
144097
|
+
title: z55.string().optional(),
|
|
144098
|
+
description: z55.string().optional(),
|
|
144099
|
+
enum: z55.array(z55.string()),
|
|
144100
|
+
enumNames: z55.array(z55.string()).optional(),
|
|
144101
|
+
default: z55.string().optional()
|
|
144009
144102
|
});
|
|
144010
|
-
var SingleSelectEnumSchemaSchema =
|
|
144011
|
-
var UntitledMultiSelectEnumSchemaSchema =
|
|
144012
|
-
type:
|
|
144013
|
-
title:
|
|
144014
|
-
description:
|
|
144015
|
-
minItems:
|
|
144016
|
-
maxItems:
|
|
144017
|
-
items:
|
|
144018
|
-
type:
|
|
144019
|
-
enum:
|
|
144103
|
+
var SingleSelectEnumSchemaSchema = z55.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
|
|
144104
|
+
var UntitledMultiSelectEnumSchemaSchema = z55.object({
|
|
144105
|
+
type: z55.literal("array"),
|
|
144106
|
+
title: z55.string().optional(),
|
|
144107
|
+
description: z55.string().optional(),
|
|
144108
|
+
minItems: z55.number().optional(),
|
|
144109
|
+
maxItems: z55.number().optional(),
|
|
144110
|
+
items: z55.object({
|
|
144111
|
+
type: z55.literal("string"),
|
|
144112
|
+
enum: z55.array(z55.string())
|
|
144020
144113
|
}),
|
|
144021
|
-
default:
|
|
144114
|
+
default: z55.array(z55.string()).optional()
|
|
144022
144115
|
});
|
|
144023
|
-
var TitledMultiSelectEnumSchemaSchema =
|
|
144024
|
-
type:
|
|
144025
|
-
title:
|
|
144026
|
-
description:
|
|
144027
|
-
minItems:
|
|
144028
|
-
maxItems:
|
|
144029
|
-
items:
|
|
144030
|
-
anyOf:
|
|
144031
|
-
const:
|
|
144032
|
-
title:
|
|
144116
|
+
var TitledMultiSelectEnumSchemaSchema = z55.object({
|
|
144117
|
+
type: z55.literal("array"),
|
|
144118
|
+
title: z55.string().optional(),
|
|
144119
|
+
description: z55.string().optional(),
|
|
144120
|
+
minItems: z55.number().optional(),
|
|
144121
|
+
maxItems: z55.number().optional(),
|
|
144122
|
+
items: z55.object({
|
|
144123
|
+
anyOf: z55.array(z55.object({
|
|
144124
|
+
const: z55.string(),
|
|
144125
|
+
title: z55.string()
|
|
144033
144126
|
}))
|
|
144034
144127
|
}),
|
|
144035
|
-
default:
|
|
144128
|
+
default: z55.array(z55.string()).optional()
|
|
144036
144129
|
});
|
|
144037
|
-
var MultiSelectEnumSchemaSchema =
|
|
144038
|
-
var EnumSchemaSchema =
|
|
144039
|
-
var PrimitiveSchemaDefinitionSchema =
|
|
144130
|
+
var MultiSelectEnumSchemaSchema = z55.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
|
|
144131
|
+
var EnumSchemaSchema = z55.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
|
|
144132
|
+
var PrimitiveSchemaDefinitionSchema = z55.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
|
|
144040
144133
|
var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
144041
|
-
mode:
|
|
144042
|
-
message:
|
|
144043
|
-
requestedSchema:
|
|
144044
|
-
type:
|
|
144045
|
-
properties:
|
|
144046
|
-
required:
|
|
144134
|
+
mode: z55.literal("form").optional(),
|
|
144135
|
+
message: z55.string(),
|
|
144136
|
+
requestedSchema: z55.object({
|
|
144137
|
+
type: z55.literal("object"),
|
|
144138
|
+
properties: z55.record(z55.string(), PrimitiveSchemaDefinitionSchema),
|
|
144139
|
+
required: z55.array(z55.string()).optional()
|
|
144047
144140
|
})
|
|
144048
144141
|
});
|
|
144049
144142
|
var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
144050
|
-
mode:
|
|
144051
|
-
message:
|
|
144052
|
-
elicitationId:
|
|
144053
|
-
url:
|
|
144143
|
+
mode: z55.literal("url"),
|
|
144144
|
+
message: z55.string(),
|
|
144145
|
+
elicitationId: z55.string(),
|
|
144146
|
+
url: z55.string().url()
|
|
144054
144147
|
});
|
|
144055
|
-
var ElicitRequestParamsSchema =
|
|
144148
|
+
var ElicitRequestParamsSchema = z55.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
|
|
144056
144149
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
144057
|
-
method:
|
|
144150
|
+
method: z55.literal("elicitation/create"),
|
|
144058
144151
|
params: ElicitRequestParamsSchema
|
|
144059
144152
|
});
|
|
144060
144153
|
var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
144061
|
-
elicitationId:
|
|
144154
|
+
elicitationId: z55.string()
|
|
144062
144155
|
});
|
|
144063
144156
|
var ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
|
144064
|
-
method:
|
|
144157
|
+
method: z55.literal("notifications/elicitation/complete"),
|
|
144065
144158
|
params: ElicitationCompleteNotificationParamsSchema
|
|
144066
144159
|
});
|
|
144067
144160
|
var ElicitResultSchema = ResultSchema.extend({
|
|
144068
|
-
action:
|
|
144069
|
-
content:
|
|
144161
|
+
action: z55.enum(["accept", "decline", "cancel"]),
|
|
144162
|
+
content: z55.preprocess((val) => val === null ? undefined : val, z55.record(z55.string(), z55.union([z55.string(), z55.number(), z55.boolean(), z55.array(z55.string())])).optional())
|
|
144070
144163
|
});
|
|
144071
|
-
var ResourceTemplateReferenceSchema =
|
|
144072
|
-
type:
|
|
144073
|
-
uri:
|
|
144164
|
+
var ResourceTemplateReferenceSchema = z55.object({
|
|
144165
|
+
type: z55.literal("ref/resource"),
|
|
144166
|
+
uri: z55.string()
|
|
144074
144167
|
});
|
|
144075
|
-
var PromptReferenceSchema =
|
|
144076
|
-
type:
|
|
144077
|
-
name:
|
|
144168
|
+
var PromptReferenceSchema = z55.object({
|
|
144169
|
+
type: z55.literal("ref/prompt"),
|
|
144170
|
+
name: z55.string()
|
|
144078
144171
|
});
|
|
144079
144172
|
var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144080
|
-
ref:
|
|
144081
|
-
argument:
|
|
144082
|
-
name:
|
|
144083
|
-
value:
|
|
144173
|
+
ref: z55.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
144174
|
+
argument: z55.object({
|
|
144175
|
+
name: z55.string(),
|
|
144176
|
+
value: z55.string()
|
|
144084
144177
|
}),
|
|
144085
|
-
context:
|
|
144086
|
-
arguments:
|
|
144178
|
+
context: z55.object({
|
|
144179
|
+
arguments: z55.record(z55.string(), z55.string()).optional()
|
|
144087
144180
|
}).optional()
|
|
144088
144181
|
});
|
|
144089
144182
|
var CompleteRequestSchema = RequestSchema.extend({
|
|
144090
|
-
method:
|
|
144183
|
+
method: z55.literal("completion/complete"),
|
|
144091
144184
|
params: CompleteRequestParamsSchema
|
|
144092
144185
|
});
|
|
144093
144186
|
var CompleteResultSchema = ResultSchema.extend({
|
|
144094
|
-
completion:
|
|
144095
|
-
values:
|
|
144096
|
-
total:
|
|
144097
|
-
hasMore:
|
|
144187
|
+
completion: z55.looseObject({
|
|
144188
|
+
values: z55.array(z55.string()).max(100),
|
|
144189
|
+
total: z55.optional(z55.number().int()),
|
|
144190
|
+
hasMore: z55.optional(z55.boolean())
|
|
144098
144191
|
})
|
|
144099
144192
|
});
|
|
144100
|
-
var RootSchema =
|
|
144101
|
-
uri:
|
|
144102
|
-
name:
|
|
144103
|
-
_meta:
|
|
144193
|
+
var RootSchema = z55.object({
|
|
144194
|
+
uri: z55.string().startsWith("file://"),
|
|
144195
|
+
name: z55.string().optional(),
|
|
144196
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
144104
144197
|
});
|
|
144105
144198
|
var ListRootsRequestSchema = RequestSchema.extend({
|
|
144106
|
-
method:
|
|
144199
|
+
method: z55.literal("roots/list"),
|
|
144107
144200
|
params: BaseRequestParamsSchema.optional()
|
|
144108
144201
|
});
|
|
144109
144202
|
var ListRootsResultSchema = ResultSchema.extend({
|
|
144110
|
-
roots:
|
|
144203
|
+
roots: z55.array(RootSchema)
|
|
144111
144204
|
});
|
|
144112
144205
|
var RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
144113
|
-
method:
|
|
144206
|
+
method: z55.literal("notifications/roots/list_changed"),
|
|
144114
144207
|
params: NotificationsParamsSchema.optional()
|
|
144115
144208
|
});
|
|
144116
|
-
var ClientRequestSchema =
|
|
144209
|
+
var ClientRequestSchema = z55.union([
|
|
144117
144210
|
PingRequestSchema,
|
|
144118
144211
|
InitializeRequestSchema,
|
|
144119
144212
|
CompleteRequestSchema,
|
|
@@ -144132,14 +144225,14 @@ var ClientRequestSchema = z54.union([
|
|
|
144132
144225
|
ListTasksRequestSchema,
|
|
144133
144226
|
CancelTaskRequestSchema
|
|
144134
144227
|
]);
|
|
144135
|
-
var ClientNotificationSchema =
|
|
144228
|
+
var ClientNotificationSchema = z55.union([
|
|
144136
144229
|
CancelledNotificationSchema,
|
|
144137
144230
|
ProgressNotificationSchema,
|
|
144138
144231
|
InitializedNotificationSchema,
|
|
144139
144232
|
RootsListChangedNotificationSchema,
|
|
144140
144233
|
TaskStatusNotificationSchema
|
|
144141
144234
|
]);
|
|
144142
|
-
var ClientResultSchema =
|
|
144235
|
+
var ClientResultSchema = z55.union([
|
|
144143
144236
|
EmptyResultSchema,
|
|
144144
144237
|
CreateMessageResultSchema,
|
|
144145
144238
|
CreateMessageResultWithToolsSchema,
|
|
@@ -144149,7 +144242,7 @@ var ClientResultSchema = z54.union([
|
|
|
144149
144242
|
ListTasksResultSchema,
|
|
144150
144243
|
CreateTaskResultSchema
|
|
144151
144244
|
]);
|
|
144152
|
-
var ServerRequestSchema =
|
|
144245
|
+
var ServerRequestSchema = z55.union([
|
|
144153
144246
|
PingRequestSchema,
|
|
144154
144247
|
CreateMessageRequestSchema,
|
|
144155
144248
|
ElicitRequestSchema,
|
|
@@ -144159,7 +144252,7 @@ var ServerRequestSchema = z54.union([
|
|
|
144159
144252
|
ListTasksRequestSchema,
|
|
144160
144253
|
CancelTaskRequestSchema
|
|
144161
144254
|
]);
|
|
144162
|
-
var ServerNotificationSchema =
|
|
144255
|
+
var ServerNotificationSchema = z55.union([
|
|
144163
144256
|
CancelledNotificationSchema,
|
|
144164
144257
|
ProgressNotificationSchema,
|
|
144165
144258
|
LoggingMessageNotificationSchema,
|
|
@@ -144170,7 +144263,7 @@ var ServerNotificationSchema = z54.union([
|
|
|
144170
144263
|
TaskStatusNotificationSchema,
|
|
144171
144264
|
ElicitationCompleteNotificationSchema
|
|
144172
144265
|
]);
|
|
144173
|
-
var ServerResultSchema =
|
|
144266
|
+
var ServerResultSchema = z55.union([
|
|
144174
144267
|
EmptyResultSchema,
|
|
144175
144268
|
InitializeResultSchema,
|
|
144176
144269
|
CompleteResultSchema,
|
|
@@ -145782,149 +145875,149 @@ async function pkceChallenge(length) {
|
|
|
145782
145875
|
}
|
|
145783
145876
|
|
|
145784
145877
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
145785
|
-
import * as
|
|
145786
|
-
var SafeUrlSchema =
|
|
145878
|
+
import * as z56 from "zod/v4";
|
|
145879
|
+
var SafeUrlSchema = z56.url().superRefine((val, ctx) => {
|
|
145787
145880
|
if (!URL.canParse(val)) {
|
|
145788
145881
|
ctx.addIssue({
|
|
145789
|
-
code:
|
|
145882
|
+
code: z56.ZodIssueCode.custom,
|
|
145790
145883
|
message: "URL must be parseable",
|
|
145791
145884
|
fatal: true
|
|
145792
145885
|
});
|
|
145793
|
-
return
|
|
145886
|
+
return z56.NEVER;
|
|
145794
145887
|
}
|
|
145795
145888
|
}).refine((url2) => {
|
|
145796
145889
|
const u = new URL(url2);
|
|
145797
145890
|
return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
|
|
145798
145891
|
}, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
|
|
145799
|
-
var OAuthProtectedResourceMetadataSchema =
|
|
145800
|
-
resource:
|
|
145801
|
-
authorization_servers:
|
|
145802
|
-
jwks_uri:
|
|
145803
|
-
scopes_supported:
|
|
145804
|
-
bearer_methods_supported:
|
|
145805
|
-
resource_signing_alg_values_supported:
|
|
145806
|
-
resource_name:
|
|
145807
|
-
resource_documentation:
|
|
145808
|
-
resource_policy_uri:
|
|
145809
|
-
resource_tos_uri:
|
|
145810
|
-
tls_client_certificate_bound_access_tokens:
|
|
145811
|
-
authorization_details_types_supported:
|
|
145812
|
-
dpop_signing_alg_values_supported:
|
|
145813
|
-
dpop_bound_access_tokens_required:
|
|
145892
|
+
var OAuthProtectedResourceMetadataSchema = z56.looseObject({
|
|
145893
|
+
resource: z56.string().url(),
|
|
145894
|
+
authorization_servers: z56.array(SafeUrlSchema).optional(),
|
|
145895
|
+
jwks_uri: z56.string().url().optional(),
|
|
145896
|
+
scopes_supported: z56.array(z56.string()).optional(),
|
|
145897
|
+
bearer_methods_supported: z56.array(z56.string()).optional(),
|
|
145898
|
+
resource_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145899
|
+
resource_name: z56.string().optional(),
|
|
145900
|
+
resource_documentation: z56.string().optional(),
|
|
145901
|
+
resource_policy_uri: z56.string().url().optional(),
|
|
145902
|
+
resource_tos_uri: z56.string().url().optional(),
|
|
145903
|
+
tls_client_certificate_bound_access_tokens: z56.boolean().optional(),
|
|
145904
|
+
authorization_details_types_supported: z56.array(z56.string()).optional(),
|
|
145905
|
+
dpop_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145906
|
+
dpop_bound_access_tokens_required: z56.boolean().optional()
|
|
145814
145907
|
});
|
|
145815
|
-
var OAuthMetadataSchema =
|
|
145816
|
-
issuer:
|
|
145908
|
+
var OAuthMetadataSchema = z56.looseObject({
|
|
145909
|
+
issuer: z56.string(),
|
|
145817
145910
|
authorization_endpoint: SafeUrlSchema,
|
|
145818
145911
|
token_endpoint: SafeUrlSchema,
|
|
145819
145912
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
145820
|
-
scopes_supported:
|
|
145821
|
-
response_types_supported:
|
|
145822
|
-
response_modes_supported:
|
|
145823
|
-
grant_types_supported:
|
|
145824
|
-
token_endpoint_auth_methods_supported:
|
|
145825
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
145913
|
+
scopes_supported: z56.array(z56.string()).optional(),
|
|
145914
|
+
response_types_supported: z56.array(z56.string()),
|
|
145915
|
+
response_modes_supported: z56.array(z56.string()).optional(),
|
|
145916
|
+
grant_types_supported: z56.array(z56.string()).optional(),
|
|
145917
|
+
token_endpoint_auth_methods_supported: z56.array(z56.string()).optional(),
|
|
145918
|
+
token_endpoint_auth_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145826
145919
|
service_documentation: SafeUrlSchema.optional(),
|
|
145827
145920
|
revocation_endpoint: SafeUrlSchema.optional(),
|
|
145828
|
-
revocation_endpoint_auth_methods_supported:
|
|
145829
|
-
revocation_endpoint_auth_signing_alg_values_supported:
|
|
145830
|
-
introspection_endpoint:
|
|
145831
|
-
introspection_endpoint_auth_methods_supported:
|
|
145832
|
-
introspection_endpoint_auth_signing_alg_values_supported:
|
|
145833
|
-
code_challenge_methods_supported:
|
|
145834
|
-
client_id_metadata_document_supported:
|
|
145921
|
+
revocation_endpoint_auth_methods_supported: z56.array(z56.string()).optional(),
|
|
145922
|
+
revocation_endpoint_auth_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145923
|
+
introspection_endpoint: z56.string().optional(),
|
|
145924
|
+
introspection_endpoint_auth_methods_supported: z56.array(z56.string()).optional(),
|
|
145925
|
+
introspection_endpoint_auth_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145926
|
+
code_challenge_methods_supported: z56.array(z56.string()).optional(),
|
|
145927
|
+
client_id_metadata_document_supported: z56.boolean().optional()
|
|
145835
145928
|
});
|
|
145836
|
-
var OpenIdProviderMetadataSchema =
|
|
145837
|
-
issuer:
|
|
145929
|
+
var OpenIdProviderMetadataSchema = z56.looseObject({
|
|
145930
|
+
issuer: z56.string(),
|
|
145838
145931
|
authorization_endpoint: SafeUrlSchema,
|
|
145839
145932
|
token_endpoint: SafeUrlSchema,
|
|
145840
145933
|
userinfo_endpoint: SafeUrlSchema.optional(),
|
|
145841
145934
|
jwks_uri: SafeUrlSchema,
|
|
145842
145935
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
145843
|
-
scopes_supported:
|
|
145844
|
-
response_types_supported:
|
|
145845
|
-
response_modes_supported:
|
|
145846
|
-
grant_types_supported:
|
|
145847
|
-
acr_values_supported:
|
|
145848
|
-
subject_types_supported:
|
|
145849
|
-
id_token_signing_alg_values_supported:
|
|
145850
|
-
id_token_encryption_alg_values_supported:
|
|
145851
|
-
id_token_encryption_enc_values_supported:
|
|
145852
|
-
userinfo_signing_alg_values_supported:
|
|
145853
|
-
userinfo_encryption_alg_values_supported:
|
|
145854
|
-
userinfo_encryption_enc_values_supported:
|
|
145855
|
-
request_object_signing_alg_values_supported:
|
|
145856
|
-
request_object_encryption_alg_values_supported:
|
|
145857
|
-
request_object_encryption_enc_values_supported:
|
|
145858
|
-
token_endpoint_auth_methods_supported:
|
|
145859
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
145860
|
-
display_values_supported:
|
|
145861
|
-
claim_types_supported:
|
|
145862
|
-
claims_supported:
|
|
145863
|
-
service_documentation:
|
|
145864
|
-
claims_locales_supported:
|
|
145865
|
-
ui_locales_supported:
|
|
145866
|
-
claims_parameter_supported:
|
|
145867
|
-
request_parameter_supported:
|
|
145868
|
-
request_uri_parameter_supported:
|
|
145869
|
-
require_request_uri_registration:
|
|
145936
|
+
scopes_supported: z56.array(z56.string()).optional(),
|
|
145937
|
+
response_types_supported: z56.array(z56.string()),
|
|
145938
|
+
response_modes_supported: z56.array(z56.string()).optional(),
|
|
145939
|
+
grant_types_supported: z56.array(z56.string()).optional(),
|
|
145940
|
+
acr_values_supported: z56.array(z56.string()).optional(),
|
|
145941
|
+
subject_types_supported: z56.array(z56.string()),
|
|
145942
|
+
id_token_signing_alg_values_supported: z56.array(z56.string()),
|
|
145943
|
+
id_token_encryption_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145944
|
+
id_token_encryption_enc_values_supported: z56.array(z56.string()).optional(),
|
|
145945
|
+
userinfo_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145946
|
+
userinfo_encryption_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145947
|
+
userinfo_encryption_enc_values_supported: z56.array(z56.string()).optional(),
|
|
145948
|
+
request_object_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145949
|
+
request_object_encryption_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145950
|
+
request_object_encryption_enc_values_supported: z56.array(z56.string()).optional(),
|
|
145951
|
+
token_endpoint_auth_methods_supported: z56.array(z56.string()).optional(),
|
|
145952
|
+
token_endpoint_auth_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145953
|
+
display_values_supported: z56.array(z56.string()).optional(),
|
|
145954
|
+
claim_types_supported: z56.array(z56.string()).optional(),
|
|
145955
|
+
claims_supported: z56.array(z56.string()).optional(),
|
|
145956
|
+
service_documentation: z56.string().optional(),
|
|
145957
|
+
claims_locales_supported: z56.array(z56.string()).optional(),
|
|
145958
|
+
ui_locales_supported: z56.array(z56.string()).optional(),
|
|
145959
|
+
claims_parameter_supported: z56.boolean().optional(),
|
|
145960
|
+
request_parameter_supported: z56.boolean().optional(),
|
|
145961
|
+
request_uri_parameter_supported: z56.boolean().optional(),
|
|
145962
|
+
require_request_uri_registration: z56.boolean().optional(),
|
|
145870
145963
|
op_policy_uri: SafeUrlSchema.optional(),
|
|
145871
145964
|
op_tos_uri: SafeUrlSchema.optional(),
|
|
145872
|
-
client_id_metadata_document_supported:
|
|
145965
|
+
client_id_metadata_document_supported: z56.boolean().optional()
|
|
145873
145966
|
});
|
|
145874
|
-
var OpenIdProviderDiscoveryMetadataSchema =
|
|
145967
|
+
var OpenIdProviderDiscoveryMetadataSchema = z56.object({
|
|
145875
145968
|
...OpenIdProviderMetadataSchema.shape,
|
|
145876
145969
|
...OAuthMetadataSchema.pick({
|
|
145877
145970
|
code_challenge_methods_supported: true
|
|
145878
145971
|
}).shape
|
|
145879
145972
|
});
|
|
145880
|
-
var OAuthTokensSchema =
|
|
145881
|
-
access_token:
|
|
145882
|
-
id_token:
|
|
145883
|
-
token_type:
|
|
145884
|
-
expires_in:
|
|
145885
|
-
scope:
|
|
145886
|
-
refresh_token:
|
|
145973
|
+
var OAuthTokensSchema = z56.object({
|
|
145974
|
+
access_token: z56.string(),
|
|
145975
|
+
id_token: z56.string().optional(),
|
|
145976
|
+
token_type: z56.string(),
|
|
145977
|
+
expires_in: z56.coerce.number().optional(),
|
|
145978
|
+
scope: z56.string().optional(),
|
|
145979
|
+
refresh_token: z56.string().optional()
|
|
145887
145980
|
}).strip();
|
|
145888
|
-
var OAuthErrorResponseSchema =
|
|
145889
|
-
error:
|
|
145890
|
-
error_description:
|
|
145891
|
-
error_uri:
|
|
145981
|
+
var OAuthErrorResponseSchema = z56.object({
|
|
145982
|
+
error: z56.string(),
|
|
145983
|
+
error_description: z56.string().optional(),
|
|
145984
|
+
error_uri: z56.string().optional()
|
|
145892
145985
|
});
|
|
145893
|
-
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(
|
|
145986
|
+
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z56.literal("").transform(() => {
|
|
145894
145987
|
return;
|
|
145895
145988
|
}));
|
|
145896
|
-
var OAuthClientMetadataSchema =
|
|
145897
|
-
redirect_uris:
|
|
145898
|
-
token_endpoint_auth_method:
|
|
145899
|
-
grant_types:
|
|
145900
|
-
response_types:
|
|
145901
|
-
client_name:
|
|
145989
|
+
var OAuthClientMetadataSchema = z56.object({
|
|
145990
|
+
redirect_uris: z56.array(SafeUrlSchema),
|
|
145991
|
+
token_endpoint_auth_method: z56.string().optional(),
|
|
145992
|
+
grant_types: z56.array(z56.string()).optional(),
|
|
145993
|
+
response_types: z56.array(z56.string()).optional(),
|
|
145994
|
+
client_name: z56.string().optional(),
|
|
145902
145995
|
client_uri: SafeUrlSchema.optional(),
|
|
145903
145996
|
logo_uri: OptionalSafeUrlSchema,
|
|
145904
|
-
scope:
|
|
145905
|
-
contacts:
|
|
145997
|
+
scope: z56.string().optional(),
|
|
145998
|
+
contacts: z56.array(z56.string()).optional(),
|
|
145906
145999
|
tos_uri: OptionalSafeUrlSchema,
|
|
145907
|
-
policy_uri:
|
|
146000
|
+
policy_uri: z56.string().optional(),
|
|
145908
146001
|
jwks_uri: SafeUrlSchema.optional(),
|
|
145909
|
-
jwks:
|
|
145910
|
-
software_id:
|
|
145911
|
-
software_version:
|
|
145912
|
-
software_statement:
|
|
146002
|
+
jwks: z56.any().optional(),
|
|
146003
|
+
software_id: z56.string().optional(),
|
|
146004
|
+
software_version: z56.string().optional(),
|
|
146005
|
+
software_statement: z56.string().optional()
|
|
145913
146006
|
}).strip();
|
|
145914
|
-
var OAuthClientInformationSchema =
|
|
145915
|
-
client_id:
|
|
145916
|
-
client_secret:
|
|
145917
|
-
client_id_issued_at:
|
|
145918
|
-
client_secret_expires_at:
|
|
146007
|
+
var OAuthClientInformationSchema = z56.object({
|
|
146008
|
+
client_id: z56.string(),
|
|
146009
|
+
client_secret: z56.string().optional(),
|
|
146010
|
+
client_id_issued_at: z56.number().optional(),
|
|
146011
|
+
client_secret_expires_at: z56.number().optional()
|
|
145919
146012
|
}).strip();
|
|
145920
146013
|
var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
145921
|
-
var OAuthClientRegistrationErrorSchema =
|
|
145922
|
-
error:
|
|
145923
|
-
error_description:
|
|
146014
|
+
var OAuthClientRegistrationErrorSchema = z56.object({
|
|
146015
|
+
error: z56.string(),
|
|
146016
|
+
error_description: z56.string().optional()
|
|
145924
146017
|
}).strip();
|
|
145925
|
-
var OAuthTokenRevocationRequestSchema =
|
|
145926
|
-
token:
|
|
145927
|
-
token_type_hint:
|
|
146018
|
+
var OAuthTokenRevocationRequestSchema = z56.object({
|
|
146019
|
+
token: z56.string(),
|
|
146020
|
+
token_type_hint: z56.string().optional()
|
|
145928
146021
|
}).strip();
|
|
145929
146022
|
|
|
145930
146023
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
|
|
@@ -148136,7 +148229,7 @@ function mirrorFilePath(projectDir) {
|
|
|
148136
148229
|
}
|
|
148137
148230
|
|
|
148138
148231
|
// packages/omo-opencode/src/features/tui-sidebar/snapshot-schema.ts
|
|
148139
|
-
import { z as
|
|
148232
|
+
import { z as z57 } from "zod";
|
|
148140
148233
|
var AGENT_STATUS_VALUES = [
|
|
148141
148234
|
"busy",
|
|
148142
148235
|
"idle",
|
|
@@ -148152,32 +148245,32 @@ var BACKGROUND_TASK_STATUS_VALUES = [
|
|
|
148152
148245
|
"cancelled",
|
|
148153
148246
|
"interrupt"
|
|
148154
148247
|
];
|
|
148155
|
-
var AgentRowSchema =
|
|
148156
|
-
name:
|
|
148157
|
-
status:
|
|
148248
|
+
var AgentRowSchema = z57.object({
|
|
148249
|
+
name: z57.string(),
|
|
148250
|
+
status: z57.enum(AGENT_STATUS_VALUES)
|
|
148158
148251
|
});
|
|
148159
|
-
var JobRowSchema =
|
|
148160
|
-
title:
|
|
148161
|
-
status:
|
|
148162
|
-
toolCalls:
|
|
148163
|
-
lastTool:
|
|
148252
|
+
var JobRowSchema = z57.object({
|
|
148253
|
+
title: z57.string(),
|
|
148254
|
+
status: z57.enum(BACKGROUND_TASK_STATUS_VALUES),
|
|
148255
|
+
toolCalls: z57.number().int().nonnegative().nullable(),
|
|
148256
|
+
lastTool: z57.string().nullable()
|
|
148164
148257
|
});
|
|
148165
|
-
var LoopLiveSchema =
|
|
148166
|
-
kind:
|
|
148167
|
-
goalsDone:
|
|
148168
|
-
goalsTotal:
|
|
148169
|
-
pass:
|
|
148170
|
-
fail:
|
|
148171
|
-
pending:
|
|
148172
|
-
blocked:
|
|
148173
|
-
activeGoal:
|
|
148258
|
+
var LoopLiveSchema = z57.object({
|
|
148259
|
+
kind: z57.literal("live"),
|
|
148260
|
+
goalsDone: z57.number().int().nonnegative(),
|
|
148261
|
+
goalsTotal: z57.number().int().nonnegative(),
|
|
148262
|
+
pass: z57.number().int().nonnegative(),
|
|
148263
|
+
fail: z57.number().int().nonnegative(),
|
|
148264
|
+
pending: z57.number().int().nonnegative(),
|
|
148265
|
+
blocked: z57.number().int().nonnegative(),
|
|
148266
|
+
activeGoal: z57.string().nullable()
|
|
148174
148267
|
});
|
|
148175
|
-
var TuiRuntimeSnapshotSchema =
|
|
148176
|
-
version:
|
|
148177
|
-
projectDir:
|
|
148178
|
-
updatedAt:
|
|
148179
|
-
activeAgents:
|
|
148180
|
-
jobBoard:
|
|
148268
|
+
var TuiRuntimeSnapshotSchema = z57.object({
|
|
148269
|
+
version: z57.literal(MIRROR_SCHEMA_VERSION),
|
|
148270
|
+
projectDir: z57.string(),
|
|
148271
|
+
updatedAt: z57.number(),
|
|
148272
|
+
activeAgents: z57.array(AgentRowSchema),
|
|
148273
|
+
jobBoard: z57.array(JobRowSchema),
|
|
148181
148274
|
loop: LoopLiveSchema.nullable()
|
|
148182
148275
|
});
|
|
148183
148276
|
|
|
@@ -148192,25 +148285,25 @@ function writeMirror(projectDir, snapshot) {
|
|
|
148192
148285
|
// packages/omo-opencode/src/features/tui-sidebar/loop-reader.ts
|
|
148193
148286
|
import { readdirSync as readdirSync32, readFileSync as readFileSync71, statSync as statSync14 } from "fs";
|
|
148194
148287
|
import { join as join137 } from "path";
|
|
148195
|
-
import { z as
|
|
148196
|
-
var CriterionSchema =
|
|
148197
|
-
status:
|
|
148288
|
+
import { z as z58 } from "zod";
|
|
148289
|
+
var CriterionSchema = z58.object({
|
|
148290
|
+
status: z58.string()
|
|
148198
148291
|
});
|
|
148199
|
-
var GoalBaseSchema =
|
|
148200
|
-
id:
|
|
148201
|
-
title:
|
|
148202
|
-
status:
|
|
148292
|
+
var GoalBaseSchema = z58.object({
|
|
148293
|
+
id: z58.string(),
|
|
148294
|
+
title: z58.string(),
|
|
148295
|
+
status: z58.string()
|
|
148203
148296
|
});
|
|
148204
|
-
var CurrentLoopSchema =
|
|
148205
|
-
version:
|
|
148206
|
-
activeGoalId:
|
|
148207
|
-
goals:
|
|
148208
|
-
successCriteria:
|
|
148297
|
+
var CurrentLoopSchema = z58.object({
|
|
148298
|
+
version: z58.literal(1),
|
|
148299
|
+
activeGoalId: z58.string().optional(),
|
|
148300
|
+
goals: z58.array(GoalBaseSchema.extend({
|
|
148301
|
+
successCriteria: z58.array(CriterionSchema)
|
|
148209
148302
|
}))
|
|
148210
148303
|
});
|
|
148211
|
-
var LegacyLoopSchema =
|
|
148212
|
-
goals:
|
|
148213
|
-
criteria:
|
|
148304
|
+
var LegacyLoopSchema = z58.object({
|
|
148305
|
+
goals: z58.array(GoalBaseSchema.extend({
|
|
148306
|
+
criteria: z58.array(CriterionSchema)
|
|
148214
148307
|
}))
|
|
148215
148308
|
});
|
|
148216
148309
|
function readActiveLoop(projectDir) {
|
|
@@ -163226,7 +163319,7 @@ function createCodegraphMcpConfig(options = {}) {
|
|
|
163226
163319
|
import { existsSync as existsSync115, readFileSync as readFileSync78 } from "fs";
|
|
163227
163320
|
import { delimiter as delimiter2, dirname as dirname50, resolve as resolve44 } from "path";
|
|
163228
163321
|
import { fileURLToPath as fileURLToPath8 } from "url";
|
|
163229
|
-
import { z as
|
|
163322
|
+
import { z as z59 } from "zod";
|
|
163230
163323
|
|
|
163231
163324
|
// packages/omo-opencode/src/mcp/cli-suffix.ts
|
|
163232
163325
|
function normalizeCliPath(path21) {
|
|
@@ -163292,8 +163385,8 @@ var PROJECT_LSP_CONFIGS = [".opencode/lsp.json", ".omo/lsp.json", ".omo/lsp-clie
|
|
|
163292
163385
|
var DAEMON_PACKAGE_NAME = "@code-yeongyu/lsp-daemon";
|
|
163293
163386
|
var OMO_LSP_DAEMON_CLI = "OMO_LSP_DAEMON_CLI";
|
|
163294
163387
|
var OMO_LSP_DAEMON_VERSION = "OMO_LSP_DAEMON_VERSION";
|
|
163295
|
-
var DaemonPackageSchema =
|
|
163296
|
-
version:
|
|
163388
|
+
var DaemonPackageSchema = z59.object({
|
|
163389
|
+
version: z59.string().min(1)
|
|
163297
163390
|
});
|
|
163298
163391
|
var LSP_BOOTSTRAP_SCRIPT = [
|
|
163299
163392
|
"const { existsSync } = require('node:fs')",
|
|
@@ -167558,14 +167651,14 @@ class OpencodeClient2 extends HeyApiClient {
|
|
|
167558
167651
|
// node_modules/.bun/@opencode-ai+sdk@1.15.13/node_modules/@opencode-ai/sdk/dist/v2/server.js
|
|
167559
167652
|
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1);
|
|
167560
167653
|
// packages/omo-opencode/src/plugin/native-skills.ts
|
|
167561
|
-
import { z as
|
|
167562
|
-
var NativeSkillEntrySchema =
|
|
167563
|
-
name:
|
|
167564
|
-
description:
|
|
167565
|
-
location:
|
|
167566
|
-
content:
|
|
167654
|
+
import { z as z60 } from "zod";
|
|
167655
|
+
var NativeSkillEntrySchema = z60.object({
|
|
167656
|
+
name: z60.string(),
|
|
167657
|
+
description: z60.string().default(""),
|
|
167658
|
+
location: z60.string(),
|
|
167659
|
+
content: z60.string()
|
|
167567
167660
|
});
|
|
167568
|
-
var NativeSkillEntriesSchema =
|
|
167661
|
+
var NativeSkillEntriesSchema = z60.array(NativeSkillEntrySchema);
|
|
167569
167662
|
function getObjectProperty(value, property) {
|
|
167570
167663
|
if (typeof value !== "object" || value === null)
|
|
167571
167664
|
return;
|
|
@@ -168710,7 +168803,7 @@ async function resolveParticipant2(teamRunId, sessionID, config3, deps) {
|
|
|
168710
168803
|
}
|
|
168711
168804
|
|
|
168712
168805
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-inline-spec.ts
|
|
168713
|
-
import { z as
|
|
168806
|
+
import { z as z61 } from "zod";
|
|
168714
168807
|
init_types5();
|
|
168715
168808
|
var TEAM_CREATE_USAGE = 'team_create requires exactly one of teamName or inline_spec. Use team_create({ teamName: "existing-team" }) or team_create({ inline_spec: { name: "team-name", members: [{ name: "worker", category: "quick", prompt: "Do the assigned work." }] } }).';
|
|
168716
168809
|
function omitEmptyStringArgs(rawArgs) {
|
|
@@ -168719,10 +168812,10 @@ function omitEmptyStringArgs(rawArgs) {
|
|
|
168719
168812
|
}
|
|
168720
168813
|
return Object.fromEntries(Object.entries(rawArgs).filter(([, value]) => value !== ""));
|
|
168721
168814
|
}
|
|
168722
|
-
var TeamCreateArgsSchema =
|
|
168723
|
-
teamName:
|
|
168724
|
-
inline_spec:
|
|
168725
|
-
leadSessionId:
|
|
168815
|
+
var TeamCreateArgsSchema = z61.preprocess(omitEmptyStringArgs, z61.object({
|
|
168816
|
+
teamName: z61.string().min(1).nullish(),
|
|
168817
|
+
inline_spec: z61.unknown().nullish(),
|
|
168818
|
+
leadSessionId: z61.string().nullish()
|
|
168726
168819
|
}).superRefine((value, ctx) => {
|
|
168727
168820
|
const optionCount = Number(value.teamName != null) + Number(value.inline_spec != null);
|
|
168728
168821
|
if (optionCount !== 1) {
|
|
@@ -168843,7 +168936,7 @@ function createTeamCreateTool(config3, client5, bgMgr, tmuxMgr, executorConfig,
|
|
|
168843
168936
|
});
|
|
168844
168937
|
}
|
|
168845
168938
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
168846
|
-
import { z as
|
|
168939
|
+
import { z as z62 } from "zod";
|
|
168847
168940
|
// packages/omo-opencode/src/features/team-mode/team-runtime/shutdown.ts
|
|
168848
168941
|
init_store3();
|
|
168849
168942
|
init_shutdown_helpers();
|
|
@@ -168932,13 +169025,13 @@ async function rejectShutdown(teamRunId, memberName, rejectorName, reason, confi
|
|
|
168932
169025
|
|
|
168933
169026
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
168934
169027
|
init_store2();
|
|
168935
|
-
var TeamDeleteArgsSchema =
|
|
168936
|
-
var TeamShutdownRequestArgsSchema =
|
|
168937
|
-
var TeamApproveShutdownArgsSchema =
|
|
168938
|
-
var TeamRejectShutdownArgsSchema =
|
|
168939
|
-
teamRunId:
|
|
168940
|
-
memberName:
|
|
168941
|
-
reason:
|
|
169028
|
+
var TeamDeleteArgsSchema = z62.object({ teamRunId: z62.string().min(1), force: z62.boolean().optional() });
|
|
169029
|
+
var TeamShutdownRequestArgsSchema = z62.object({ teamRunId: z62.string().min(1), targetMemberName: z62.string().min(1) });
|
|
169030
|
+
var TeamApproveShutdownArgsSchema = z62.object({ teamRunId: z62.string().min(1), memberName: z62.string().min(1) });
|
|
169031
|
+
var TeamRejectShutdownArgsSchema = z62.object({
|
|
169032
|
+
teamRunId: z62.string().min(1),
|
|
169033
|
+
memberName: z62.string().min(1),
|
|
169034
|
+
reason: z62.string().min(1)
|
|
168942
169035
|
});
|
|
168943
169036
|
var defaultTeamShutdownToolDeps = {
|
|
168944
169037
|
listActiveTeams,
|
|
@@ -172774,6 +172867,7 @@ function writePostHogActivityState(stateDir, nextState, diagnostics) {
|
|
|
172774
172867
|
// packages/telemetry-core/src/constants.ts
|
|
172775
172868
|
var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com";
|
|
172776
172869
|
var DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74";
|
|
172870
|
+
var UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";
|
|
172777
172871
|
|
|
172778
172872
|
// packages/telemetry-core/src/env.ts
|
|
172779
172873
|
var TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
|
|
@@ -172795,6 +172889,9 @@ function shouldDisableTelemetry(input) {
|
|
|
172795
172889
|
const env2 = input.env ?? process.env;
|
|
172796
172890
|
const globalPrefix = input.globalEnvPrefix ?? "OMO";
|
|
172797
172891
|
const prefixes = Array.from(new Set([globalPrefix, input.productEnvPrefix]));
|
|
172892
|
+
if (isDisableFlag(env2["DO_NOT_TRACK"])) {
|
|
172893
|
+
return true;
|
|
172894
|
+
}
|
|
172798
172895
|
for (const prefix of prefixes) {
|
|
172799
172896
|
if (isDisableFlag(env2[`${prefix}_DISABLE_POSTHOG`])) {
|
|
172800
172897
|
return true;
|
|
@@ -172808,18 +172905,15 @@ function shouldDisableTelemetry(input) {
|
|
|
172808
172905
|
function getTelemetryApiKey(env2 = process.env, defaultApiKey = DEFAULT_POSTHOG_API_KEY) {
|
|
172809
172906
|
return env2["POSTHOG_API_KEY"]?.trim() ?? defaultApiKey;
|
|
172810
172907
|
}
|
|
172811
|
-
function
|
|
172812
|
-
|
|
172908
|
+
function isConfiguredTelemetryApiKey(apiKey) {
|
|
172909
|
+
const normalized = apiKey.trim();
|
|
172910
|
+
return normalized.length > 0 && normalized !== UNCONFIGURED_POSTHOG_API_KEY;
|
|
172813
172911
|
}
|
|
172814
|
-
|
|
172815
|
-
|
|
172816
|
-
import { createHash as createHash9 } from "crypto";
|
|
172817
|
-
import os6 from "os";
|
|
172818
|
-
function getDefaultTelemetryOsProvider() {
|
|
172819
|
-
return os6;
|
|
172912
|
+
function hasTelemetryApiKey(env2, defaultApiKey) {
|
|
172913
|
+
return isConfiguredTelemetryApiKey(getTelemetryApiKey(env2, defaultApiKey));
|
|
172820
172914
|
}
|
|
172821
|
-
function
|
|
172822
|
-
return
|
|
172915
|
+
function getTelemetryHost(env2 = process.env, defaultHost = DEFAULT_POSTHOG_HOST) {
|
|
172916
|
+
return env2["POSTHOG_HOST"]?.trim() || defaultHost;
|
|
172823
172917
|
}
|
|
172824
172918
|
|
|
172825
172919
|
// node_modules/.bun/posthog-node@5.35.12/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
@@ -174145,7 +174239,7 @@ var FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/
|
|
|
174145
174239
|
var nodeStackLineParser = (line, platform2) => {
|
|
174146
174240
|
const lineMatch = line.match(FULL_MATCH);
|
|
174147
174241
|
if (lineMatch) {
|
|
174148
|
-
let
|
|
174242
|
+
let object19;
|
|
174149
174243
|
let method;
|
|
174150
174244
|
let functionName;
|
|
174151
174245
|
let typeName;
|
|
@@ -174156,18 +174250,18 @@ var nodeStackLineParser = (line, platform2) => {
|
|
|
174156
174250
|
if (functionName[methodStart - 1] === ".")
|
|
174157
174251
|
methodStart--;
|
|
174158
174252
|
if (methodStart > 0) {
|
|
174159
|
-
|
|
174253
|
+
object19 = functionName.slice(0, methodStart);
|
|
174160
174254
|
method = functionName.slice(methodStart + 1);
|
|
174161
|
-
const objectEnd =
|
|
174255
|
+
const objectEnd = object19.indexOf(".Module");
|
|
174162
174256
|
if (objectEnd > 0) {
|
|
174163
174257
|
functionName = functionName.slice(objectEnd + 1);
|
|
174164
|
-
|
|
174258
|
+
object19 = object19.slice(0, objectEnd);
|
|
174165
174259
|
}
|
|
174166
174260
|
}
|
|
174167
174261
|
typeName = undefined;
|
|
174168
174262
|
}
|
|
174169
174263
|
if (method) {
|
|
174170
|
-
typeName =
|
|
174264
|
+
typeName = object19;
|
|
174171
174265
|
methodName = method;
|
|
174172
174266
|
}
|
|
174173
174267
|
if (method === "<anonymous>") {
|
|
@@ -177989,6 +178083,16 @@ class PostHog extends PostHogBackendClient {
|
|
|
177989
178083
|
}
|
|
177990
178084
|
}
|
|
177991
178085
|
|
|
178086
|
+
// packages/telemetry-core/src/machine-id.ts
|
|
178087
|
+
import { createHash as createHash9 } from "crypto";
|
|
178088
|
+
import os6 from "os";
|
|
178089
|
+
function getDefaultTelemetryOsProvider() {
|
|
178090
|
+
return os6;
|
|
178091
|
+
}
|
|
178092
|
+
function getTelemetryDistinctId(machineIdPrefix, osProvider = getDefaultTelemetryOsProvider()) {
|
|
178093
|
+
return createHash9("sha256").update(`${machineIdPrefix}${osProvider.hostname()}`).digest("hex");
|
|
178094
|
+
}
|
|
178095
|
+
|
|
177992
178096
|
// packages/telemetry-core/src/posthog-client.ts
|
|
177993
178097
|
var NO_OP_CLIENT = {
|
|
177994
178098
|
enabled: false,
|
|
@@ -178023,7 +178127,7 @@ function createDefaultPostHogTransport(apiKey, options) {
|
|
|
178023
178127
|
}
|
|
178024
178128
|
function isTelemetryClientEnabled(input) {
|
|
178025
178129
|
const env2 = input.env ?? process.env;
|
|
178026
|
-
return !shouldDisableTelemetry({ env: env2, productEnvPrefix: input.product.productEnvPrefix }) &&
|
|
178130
|
+
return !shouldDisableTelemetry({ env: env2, productEnvPrefix: input.product.productEnvPrefix }) && hasTelemetryApiKey(env2, input.product.defaultApiKey);
|
|
178027
178131
|
}
|
|
178028
178132
|
function createTelemetryClient(input) {
|
|
178029
178133
|
if (!isTelemetryClientEnabled(input)) {
|
|
@@ -178089,7 +178193,8 @@ function createTransport(input) {
|
|
|
178089
178193
|
flushAt: 1,
|
|
178090
178194
|
flushInterval: 0,
|
|
178091
178195
|
host: getTelemetryHost(env2, input.product.defaultHost),
|
|
178092
|
-
disableGeoip: false
|
|
178196
|
+
disableGeoip: input.product.disableGeoip ?? false,
|
|
178197
|
+
...input.product.transportOptions
|
|
178093
178198
|
});
|
|
178094
178199
|
} catch (error) {
|
|
178095
178200
|
input.diagnostics?.({
|