@herjarsa/oh-my-openagent-v2 0.1.1 → 0.1.2
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/dist/agents/builtin-agents/model-resolution.d.ts +10 -0
- package/dist/cli/index.js +54 -14
- package/dist/cli-node/index.js +54 -14
- package/dist/index.js +1481 -1413
- package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
- package/dist/tui.js +44 -4
- package/package.json +14 -4
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +24 -0
- 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/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 +2 -2
- 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/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- 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/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- 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-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/post-tool-use-recording-spawn-admission.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-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-ulw-execute-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-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.json +1 -1
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +35 -11
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
package/dist/index.js
CHANGED
|
@@ -76751,6 +76751,11 @@ var require_picomatch2 = __commonJS(function(exports, module) {
|
|
|
76751
76751
|
module.exports = picomatch;
|
|
76752
76752
|
});
|
|
76753
76753
|
|
|
76754
|
+
// packages/omo-opencode/src/shared/provider-model-id-transform.ts
|
|
76755
|
+
var init_provider_model_id_transform2 = __esm(() => {
|
|
76756
|
+
init_src2();
|
|
76757
|
+
});
|
|
76758
|
+
|
|
76754
76759
|
// packages/prompts-core/prompts/atlas/default.md
|
|
76755
76760
|
var default_default = `<identity>
|
|
76756
76761
|
You are Atlas - the Master Orchestrator from OhMyOpenCode.
|
|
@@ -81673,7 +81678,7 @@ var init_member_parser = __esm(() => {
|
|
|
81673
81678
|
});
|
|
81674
81679
|
|
|
81675
81680
|
// packages/team-core/src/types.ts
|
|
81676
|
-
import * as
|
|
81681
|
+
import * as z52 from "zod";
|
|
81677
81682
|
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;
|
|
81678
81683
|
var init_types3 = __esm(() => {
|
|
81679
81684
|
init_member_parser();
|
|
@@ -81694,40 +81699,40 @@ var init_types3 = __esm(() => {
|
|
|
81694
81699
|
"failed",
|
|
81695
81700
|
"orphaned"
|
|
81696
81701
|
];
|
|
81697
|
-
MemberBaseSchema =
|
|
81698
|
-
name:
|
|
81699
|
-
cwd:
|
|
81700
|
-
worktreePath:
|
|
81701
|
-
task_summary:
|
|
81702
|
-
subscriptions:
|
|
81703
|
-
backendType:
|
|
81704
|
-
color:
|
|
81705
|
-
isActive:
|
|
81702
|
+
MemberBaseSchema = z52.object({
|
|
81703
|
+
name: z52.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
81704
|
+
cwd: z52.string().optional(),
|
|
81705
|
+
worktreePath: z52.string().optional(),
|
|
81706
|
+
task_summary: z52.string().max(80).optional(),
|
|
81707
|
+
subscriptions: z52.array(z52.string()).optional(),
|
|
81708
|
+
backendType: z52.enum(["in-process", "tmux"]).default("in-process"),
|
|
81709
|
+
color: z52.string().optional(),
|
|
81710
|
+
isActive: z52.boolean().default(true)
|
|
81706
81711
|
}).strict();
|
|
81707
81712
|
CategoryMemberSchema = MemberBaseSchema.extend({
|
|
81708
|
-
kind:
|
|
81709
|
-
category:
|
|
81710
|
-
prompt:
|
|
81713
|
+
kind: z52.literal("category"),
|
|
81714
|
+
category: z52.string().min(1),
|
|
81715
|
+
prompt: z52.string().min(1)
|
|
81711
81716
|
});
|
|
81712
81717
|
SubagentMemberSchema = MemberBaseSchema.extend({
|
|
81713
|
-
kind:
|
|
81714
|
-
subagent_type:
|
|
81715
|
-
prompt:
|
|
81718
|
+
kind: z52.literal("subagent_type"),
|
|
81719
|
+
subagent_type: z52.string().min(1),
|
|
81720
|
+
prompt: z52.string().optional()
|
|
81716
81721
|
});
|
|
81717
|
-
MemberSchema =
|
|
81718
|
-
TeamReferenceSchema =
|
|
81719
|
-
path:
|
|
81720
|
-
description:
|
|
81722
|
+
MemberSchema = z52.discriminatedUnion("kind", [CategoryMemberSchema, SubagentMemberSchema]);
|
|
81723
|
+
TeamReferenceSchema = z52.object({
|
|
81724
|
+
path: z52.string(),
|
|
81725
|
+
description: z52.string().optional()
|
|
81721
81726
|
}).strict();
|
|
81722
|
-
TeamSpecSchema =
|
|
81723
|
-
version:
|
|
81724
|
-
name:
|
|
81725
|
-
description:
|
|
81726
|
-
createdAt:
|
|
81727
|
-
leadAgentId:
|
|
81728
|
-
teamAllowedPaths:
|
|
81729
|
-
sessionPermission:
|
|
81730
|
-
members:
|
|
81727
|
+
TeamSpecSchema = z52.object({
|
|
81728
|
+
version: z52.literal(1).default(1),
|
|
81729
|
+
name: z52.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
81730
|
+
description: z52.string().optional(),
|
|
81731
|
+
createdAt: z52.number().int().positive().default(() => Date.now()),
|
|
81732
|
+
leadAgentId: z52.string().optional(),
|
|
81733
|
+
teamAllowedPaths: z52.array(z52.string()).optional(),
|
|
81734
|
+
sessionPermission: z52.string().optional(),
|
|
81735
|
+
members: z52.array(MemberSchema).min(1).max(8)
|
|
81731
81736
|
}).superRefine((teamSpec, ctx) => {
|
|
81732
81737
|
if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
|
|
81733
81738
|
ctx.addIssue({
|
|
@@ -81749,95 +81754,95 @@ var init_types3 = __esm(() => {
|
|
|
81749
81754
|
leadAgentId: firstMember.name
|
|
81750
81755
|
};
|
|
81751
81756
|
});
|
|
81752
|
-
MessageSchema =
|
|
81753
|
-
version:
|
|
81754
|
-
messageId:
|
|
81755
|
-
from:
|
|
81756
|
-
to:
|
|
81757
|
-
kind:
|
|
81758
|
-
body:
|
|
81759
|
-
summary:
|
|
81760
|
-
references:
|
|
81761
|
-
timestamp:
|
|
81762
|
-
correlationId:
|
|
81763
|
-
color:
|
|
81757
|
+
MessageSchema = z52.object({
|
|
81758
|
+
version: z52.literal(1),
|
|
81759
|
+
messageId: z52.string().uuid(),
|
|
81760
|
+
from: z52.string(),
|
|
81761
|
+
to: z52.string(),
|
|
81762
|
+
kind: z52.enum(MESSAGE_KINDS),
|
|
81763
|
+
body: z52.string().max(32 * 1024),
|
|
81764
|
+
summary: z52.string().optional(),
|
|
81765
|
+
references: z52.array(TeamReferenceSchema).optional(),
|
|
81766
|
+
timestamp: z52.number().int().positive(),
|
|
81767
|
+
correlationId: z52.string().uuid().optional(),
|
|
81768
|
+
color: z52.string().optional()
|
|
81764
81769
|
});
|
|
81765
|
-
TaskSchema =
|
|
81766
|
-
version:
|
|
81767
|
-
id:
|
|
81768
|
-
subject:
|
|
81769
|
-
description:
|
|
81770
|
-
activeForm:
|
|
81771
|
-
status:
|
|
81772
|
-
owner:
|
|
81773
|
-
blocks:
|
|
81774
|
-
blockedBy:
|
|
81775
|
-
metadata:
|
|
81776
|
-
createdAt:
|
|
81777
|
-
updatedAt:
|
|
81778
|
-
claimedAt:
|
|
81770
|
+
TaskSchema = z52.object({
|
|
81771
|
+
version: z52.literal(1),
|
|
81772
|
+
id: z52.string(),
|
|
81773
|
+
subject: z52.string(),
|
|
81774
|
+
description: z52.string(),
|
|
81775
|
+
activeForm: z52.string().optional(),
|
|
81776
|
+
status: z52.enum(TASK_STATUSES),
|
|
81777
|
+
owner: z52.string().optional(),
|
|
81778
|
+
blocks: z52.array(z52.string()).default([]),
|
|
81779
|
+
blockedBy: z52.array(z52.string()).default([]),
|
|
81780
|
+
metadata: z52.record(z52.string(), z52.unknown()).optional(),
|
|
81781
|
+
createdAt: z52.number().int().positive(),
|
|
81782
|
+
updatedAt: z52.number().int().positive(),
|
|
81783
|
+
claimedAt: z52.number().int().positive().optional()
|
|
81779
81784
|
});
|
|
81780
|
-
RuntimeStateMemberModelSchema =
|
|
81781
|
-
providerID:
|
|
81782
|
-
modelID:
|
|
81783
|
-
variant:
|
|
81784
|
-
reasoningEffort:
|
|
81785
|
-
temperature:
|
|
81786
|
-
top_p:
|
|
81787
|
-
maxTokens:
|
|
81788
|
-
thinking:
|
|
81789
|
-
type:
|
|
81790
|
-
budgetTokens:
|
|
81785
|
+
RuntimeStateMemberModelSchema = z52.object({
|
|
81786
|
+
providerID: z52.string(),
|
|
81787
|
+
modelID: z52.string(),
|
|
81788
|
+
variant: z52.string().optional(),
|
|
81789
|
+
reasoningEffort: z52.string().optional(),
|
|
81790
|
+
temperature: z52.number().optional(),
|
|
81791
|
+
top_p: z52.number().optional(),
|
|
81792
|
+
maxTokens: z52.number().optional(),
|
|
81793
|
+
thinking: z52.object({
|
|
81794
|
+
type: z52.enum(["enabled", "disabled"]),
|
|
81795
|
+
budgetTokens: z52.number().int().positive().optional()
|
|
81791
81796
|
}).optional()
|
|
81792
81797
|
}).strict();
|
|
81793
|
-
RuntimeStateMemberSchema =
|
|
81794
|
-
name:
|
|
81795
|
-
sessionId:
|
|
81796
|
-
tmuxPaneId:
|
|
81797
|
-
tmuxGridPaneId:
|
|
81798
|
-
agentType:
|
|
81799
|
-
subagent_type:
|
|
81800
|
-
category:
|
|
81798
|
+
RuntimeStateMemberSchema = z52.object({
|
|
81799
|
+
name: z52.string(),
|
|
81800
|
+
sessionId: z52.string().optional(),
|
|
81801
|
+
tmuxPaneId: z52.string().optional(),
|
|
81802
|
+
tmuxGridPaneId: z52.string().optional(),
|
|
81803
|
+
agentType: z52.enum(["leader", "general-purpose"]),
|
|
81804
|
+
subagent_type: z52.string().optional(),
|
|
81805
|
+
category: z52.string().optional(),
|
|
81801
81806
|
model: RuntimeStateMemberModelSchema.optional(),
|
|
81802
|
-
status:
|
|
81803
|
-
color:
|
|
81804
|
-
worktreePath:
|
|
81805
|
-
lastInjectedTurnMarker:
|
|
81806
|
-
pendingInjectedMessageIds:
|
|
81807
|
+
status: z52.enum(["pending", "running", "idle", "errored", "completed", "shutdown_approved"]),
|
|
81808
|
+
color: z52.string().optional(),
|
|
81809
|
+
worktreePath: z52.string().optional(),
|
|
81810
|
+
lastInjectedTurnMarker: z52.string().optional(),
|
|
81811
|
+
pendingInjectedMessageIds: z52.array(z52.string()).default([])
|
|
81807
81812
|
}).strict();
|
|
81808
|
-
RuntimeBoundsSchema =
|
|
81809
|
-
maxMembers:
|
|
81810
|
-
maxParallelMembers:
|
|
81811
|
-
maxMessagesPerRun:
|
|
81812
|
-
maxWallClockMinutes:
|
|
81813
|
-
maxMemberTurns:
|
|
81813
|
+
RuntimeBoundsSchema = z52.object({
|
|
81814
|
+
maxMembers: z52.number().int().default(8),
|
|
81815
|
+
maxParallelMembers: z52.number().int().default(4),
|
|
81816
|
+
maxMessagesPerRun: z52.number().int().default(1e4),
|
|
81817
|
+
maxWallClockMinutes: z52.number().int().default(120),
|
|
81818
|
+
maxMemberTurns: z52.number().int().default(500)
|
|
81814
81819
|
}).strict();
|
|
81815
|
-
ShutdownRequestSchema =
|
|
81816
|
-
memberId:
|
|
81817
|
-
requesterName:
|
|
81818
|
-
requestedAt:
|
|
81819
|
-
approvedAt:
|
|
81820
|
-
rejectedReason:
|
|
81821
|
-
rejectedAt:
|
|
81820
|
+
ShutdownRequestSchema = z52.object({
|
|
81821
|
+
memberId: z52.string(),
|
|
81822
|
+
requesterName: z52.string(),
|
|
81823
|
+
requestedAt: z52.number().int().positive(),
|
|
81824
|
+
approvedAt: z52.number().int().positive().optional(),
|
|
81825
|
+
rejectedReason: z52.string().optional(),
|
|
81826
|
+
rejectedAt: z52.number().int().positive().optional()
|
|
81822
81827
|
}).strict();
|
|
81823
|
-
RuntimeStateTmuxLayoutSchema =
|
|
81824
|
-
ownedSession:
|
|
81825
|
-
targetSessionId:
|
|
81826
|
-
focusWindowId:
|
|
81827
|
-
gridWindowId:
|
|
81828
|
-
paneIds:
|
|
81828
|
+
RuntimeStateTmuxLayoutSchema = z52.object({
|
|
81829
|
+
ownedSession: z52.boolean(),
|
|
81830
|
+
targetSessionId: z52.string(),
|
|
81831
|
+
focusWindowId: z52.string().optional(),
|
|
81832
|
+
gridWindowId: z52.string().optional(),
|
|
81833
|
+
paneIds: z52.array(z52.string()).optional()
|
|
81829
81834
|
}).strict();
|
|
81830
|
-
RuntimeStateSchema =
|
|
81831
|
-
version:
|
|
81832
|
-
teamRunId:
|
|
81833
|
-
teamName:
|
|
81834
|
-
specSource:
|
|
81835
|
-
createdAt:
|
|
81836
|
-
status:
|
|
81837
|
-
leadSessionId:
|
|
81835
|
+
RuntimeStateSchema = z52.object({
|
|
81836
|
+
version: z52.literal(1),
|
|
81837
|
+
teamRunId: z52.string().uuid(),
|
|
81838
|
+
teamName: z52.string(),
|
|
81839
|
+
specSource: z52.enum(["project", "user"]),
|
|
81840
|
+
createdAt: z52.number().int().positive(),
|
|
81841
|
+
status: z52.enum(RUNTIME_STATUSES),
|
|
81842
|
+
leadSessionId: z52.string().optional(),
|
|
81838
81843
|
tmuxLayout: RuntimeStateTmuxLayoutSchema.optional(),
|
|
81839
|
-
members:
|
|
81840
|
-
shutdownRequests:
|
|
81844
|
+
members: z52.array(RuntimeStateMemberSchema),
|
|
81845
|
+
shutdownRequests: z52.array(ShutdownRequestSchema).default([]),
|
|
81841
81846
|
bounds: RuntimeBoundsSchema
|
|
81842
81847
|
});
|
|
81843
81848
|
AGENT_ELIGIBILITY_REGISTRY = {
|
|
@@ -82444,6 +82449,51 @@ var init_store2 = __esm(() => {
|
|
|
82444
82449
|
init_store();
|
|
82445
82450
|
});
|
|
82446
82451
|
|
|
82452
|
+
// packages/omo-opencode/src/agents/builtin-agents/model-resolution.ts
|
|
82453
|
+
function applyModelResolution(input) {
|
|
82454
|
+
const { uiSelectedModel, userModel, requirement, availableModels, systemDefaultModel } = input;
|
|
82455
|
+
return resolveModelPipeline2({
|
|
82456
|
+
intent: { uiSelectedModel, userModel },
|
|
82457
|
+
constraints: { availableModels },
|
|
82458
|
+
policy: { fallbackChain: requirement?.fallbackChain, systemDefaultModel }
|
|
82459
|
+
});
|
|
82460
|
+
}
|
|
82461
|
+
function getFirstFallbackModel(requirement) {
|
|
82462
|
+
const entry = requirement?.fallbackChain?.[0];
|
|
82463
|
+
if (!entry || entry.providers.length === 0)
|
|
82464
|
+
return;
|
|
82465
|
+
const provider = entry.providers[0];
|
|
82466
|
+
const transformedModel = transformModelForProvider(provider, entry.model);
|
|
82467
|
+
return {
|
|
82468
|
+
model: `${provider}/${transformedModel}`,
|
|
82469
|
+
provenance: "provider-fallback",
|
|
82470
|
+
variant: entry.variant
|
|
82471
|
+
};
|
|
82472
|
+
}
|
|
82473
|
+
function primaryOverrideModel(override) {
|
|
82474
|
+
if (!override)
|
|
82475
|
+
return;
|
|
82476
|
+
if (typeof override.model === "string" && override.model.length > 0)
|
|
82477
|
+
return override.model;
|
|
82478
|
+
const models = override.models;
|
|
82479
|
+
if (Array.isArray(models)) {
|
|
82480
|
+
for (const entry of models) {
|
|
82481
|
+
if (typeof entry === "string" && entry.length > 0)
|
|
82482
|
+
return entry;
|
|
82483
|
+
if (entry !== null && typeof entry === "object" && typeof entry.model === "string") {
|
|
82484
|
+
const m = entry.model;
|
|
82485
|
+
if (m.length > 0)
|
|
82486
|
+
return m;
|
|
82487
|
+
}
|
|
82488
|
+
}
|
|
82489
|
+
}
|
|
82490
|
+
return;
|
|
82491
|
+
}
|
|
82492
|
+
var init_model_resolution = __esm(() => {
|
|
82493
|
+
init_shared();
|
|
82494
|
+
init_provider_model_id_transform2();
|
|
82495
|
+
});
|
|
82496
|
+
|
|
82447
82497
|
// node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
82448
82498
|
var require_code = __commonJS(function(exports) {
|
|
82449
82499
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -91718,7 +91768,7 @@ function createSisyphusJuniorAgentWithOverrides(override, systemDefaultModel, us
|
|
|
91718
91768
|
if (override?.disable) {
|
|
91719
91769
|
override = undefined;
|
|
91720
91770
|
}
|
|
91721
|
-
const overrideModel = override
|
|
91771
|
+
const overrideModel = primaryOverrideModel(override);
|
|
91722
91772
|
const model = overrideModel ?? systemDefaultModel ?? SISYPHUS_JUNIOR_DEFAULTS.model;
|
|
91723
91773
|
const temperature = override?.temperature ?? SISYPHUS_JUNIOR_DEFAULTS.temperature;
|
|
91724
91774
|
const promptAppend = override?.prompt_append;
|
|
@@ -91767,6 +91817,7 @@ function createSisyphusJuniorAgentWithOverrides(override, systemDefaultModel, us
|
|
|
91767
91817
|
var MODE10 = "subagent", BLOCKED_TOOLS3, SISYPHUS_JUNIOR_DEFAULTS;
|
|
91768
91818
|
var init_agent = __esm(() => {
|
|
91769
91819
|
init_types2();
|
|
91820
|
+
init_model_resolution();
|
|
91770
91821
|
init_default4();
|
|
91771
91822
|
init_kimi_k2_6();
|
|
91772
91823
|
init_kimi_k2_72();
|
|
@@ -91850,12 +91901,12 @@ async function buildPrometheusAgentConfig(params) {
|
|
|
91850
91901
|
const availableModels = await fetchAvailableModels(undefined, {
|
|
91851
91902
|
connectedProviders: connectedProviders ?? undefined
|
|
91852
91903
|
});
|
|
91853
|
-
const configuredPrometheusModel = params.pluginPrometheusOverride
|
|
91904
|
+
const configuredPrometheusModel = primaryOverrideModel(params.pluginPrometheusOverride) ?? categoryConfig?.model;
|
|
91854
91905
|
const shouldUseCurrentModel = isModelInFallbackChain(params.currentModel, requirement?.fallbackChain);
|
|
91855
91906
|
const modelResolution = resolveModelPipeline2({
|
|
91856
91907
|
intent: {
|
|
91857
91908
|
uiSelectedModel: configuredPrometheusModel ? undefined : shouldUseCurrentModel ? params.currentModel : undefined,
|
|
91858
|
-
userModel: params.pluginPrometheusOverride
|
|
91909
|
+
userModel: primaryOverrideModel(params.pluginPrometheusOverride),
|
|
91859
91910
|
categoryDefaultModel: categoryConfig?.model
|
|
91860
91911
|
},
|
|
91861
91912
|
constraints: { availableModels },
|
|
@@ -91910,6 +91961,7 @@ async function buildPrometheusAgentConfig(params) {
|
|
|
91910
91961
|
return merged;
|
|
91911
91962
|
}
|
|
91912
91963
|
var init_prometheus_agent_config_builder = __esm(() => {
|
|
91964
|
+
init_model_resolution();
|
|
91913
91965
|
init_prometheus();
|
|
91914
91966
|
init_resolve_file_uri();
|
|
91915
91967
|
init_model_requirements2();
|
|
@@ -92244,155 +92296,176 @@ var OmoCategoryConfigSchema = z4.preprocess((value) => isRecord7(value) ? normal
|
|
|
92244
92296
|
var OmoCategoriesConfigSchema = z4.record(z4.string(), OmoCategoryConfigSchema);
|
|
92245
92297
|
|
|
92246
92298
|
// packages/omo-config-core/src/schema/config.ts
|
|
92247
|
-
import * as
|
|
92299
|
+
import * as z15 from "zod";
|
|
92248
92300
|
|
|
92249
|
-
// packages/omo-config-core/src/schema/
|
|
92301
|
+
// packages/omo-config-core/src/schema/computer.ts
|
|
92250
92302
|
import * as z5 from "zod";
|
|
92303
|
+
var positiveInteger = z5.number().int().positive();
|
|
92304
|
+
var nonNegativeInteger = z5.number().int().nonnegative();
|
|
92305
|
+
var OmoComputerSettingsLayerSchema = z5.object({
|
|
92306
|
+
enabled: z5.boolean().describe("Experimental: register the computer tool in OmO Native sessions (default: on where the host is supported; false leaves it unregistered)"),
|
|
92307
|
+
display: z5.string().min(1),
|
|
92308
|
+
showCursor: z5.boolean().describe("Show the display-only macOS cursor overlay (default: true; false hides it)"),
|
|
92309
|
+
max_width: positiveInteger,
|
|
92310
|
+
max_height: positiveInteger,
|
|
92311
|
+
screenshot_max_bytes: positiveInteger,
|
|
92312
|
+
stop_hotkey: z5.string().min(1),
|
|
92313
|
+
allow_host_relay_only_stop: z5.boolean(),
|
|
92314
|
+
macos_canary: z5.enum(["session", "off"]),
|
|
92315
|
+
audit_log: z5.object({ enabled: z5.boolean() }).partial().strict(),
|
|
92316
|
+
screenshot_gc: z5.object({ enabled: z5.boolean(), stale_ms: nonNegativeInteger, scan_interval_ms: nonNegativeInteger }).partial().strict(),
|
|
92317
|
+
engine_path: z5.string().min(1),
|
|
92318
|
+
cua_adapter: z5.boolean()
|
|
92319
|
+
}).partial().strict().describe("Experimental computer use in OmO Native: screenshots, windows, accessibility trees and native mouse and keyboard input. Every key is optional; defaults depend on the host.");
|
|
92320
|
+
var OmoComputerSettingsSchema = OmoComputerSettingsLayerSchema;
|
|
92321
|
+
|
|
92322
|
+
// packages/omo-config-core/src/schema/git-master.ts
|
|
92323
|
+
import * as z6 from "zod";
|
|
92251
92324
|
var OmoGitMasterSettingsShape = {
|
|
92252
|
-
commit_footer:
|
|
92253
|
-
include_co_authored_by:
|
|
92325
|
+
commit_footer: z6.union([z6.boolean(), z6.string()]),
|
|
92326
|
+
include_co_authored_by: z6.boolean()
|
|
92254
92327
|
};
|
|
92255
|
-
var OmoGitMasterSettingsLayerSchema =
|
|
92328
|
+
var OmoGitMasterSettingsLayerSchema = z6.object(OmoGitMasterSettingsShape).partial().strict();
|
|
92256
92329
|
var OmoGitMasterSettingsSchema = OmoGitMasterSettingsLayerSchema.extend({
|
|
92257
|
-
commit_footer:
|
|
92258
|
-
include_co_authored_by:
|
|
92330
|
+
commit_footer: z6.union([z6.boolean(), z6.string()]).default(false),
|
|
92331
|
+
include_co_authored_by: z6.boolean().default(false)
|
|
92259
92332
|
}).strict();
|
|
92260
92333
|
|
|
92261
92334
|
// packages/omo-config-core/src/schema/harness.ts
|
|
92262
|
-
import * as
|
|
92335
|
+
import * as z7 from "zod";
|
|
92263
92336
|
var HARNESS_IDS = ["codex", "opencode", "omo"];
|
|
92264
92337
|
var OMO_CONFIG_HARNESS_IDS = ["opencode", "native", "codex"];
|
|
92265
|
-
var OmoHarnessIdSchema =
|
|
92338
|
+
var OmoHarnessIdSchema = z7.enum(OMO_CONFIG_HARNESS_IDS);
|
|
92266
92339
|
var OMO_CONFIG_LEGACY_HARNESS_ALIASES = { senpi: "native" };
|
|
92267
92340
|
var OMO_CONFIG_LEGACY_HARNESS_IDS = Object.keys(OMO_CONFIG_LEGACY_HARNESS_ALIASES);
|
|
92268
92341
|
|
|
92269
92342
|
// packages/omo-config-core/src/schema/memory.ts
|
|
92270
|
-
import * as
|
|
92271
|
-
var OmoMemoryReflectionTriggerSchema =
|
|
92272
|
-
step_count:
|
|
92273
|
-
on_compaction:
|
|
92343
|
+
import * as z8 from "zod";
|
|
92344
|
+
var OmoMemoryReflectionTriggerSchema = z8.object({
|
|
92345
|
+
step_count: z8.number().int().nonnegative().default(25),
|
|
92346
|
+
on_compaction: z8.boolean().default(true)
|
|
92274
92347
|
}).strict();
|
|
92275
|
-
var OmoMemoryReflectionSchema =
|
|
92276
|
-
enabled:
|
|
92348
|
+
var OmoMemoryReflectionSchema = z8.object({
|
|
92349
|
+
enabled: z8.boolean().default(true),
|
|
92277
92350
|
trigger: OmoMemoryReflectionTriggerSchema.default({ step_count: 25, on_compaction: true }),
|
|
92278
|
-
merge:
|
|
92279
|
-
category:
|
|
92280
|
-
timeout_minutes:
|
|
92281
|
-
sandbox:
|
|
92351
|
+
merge: z8.enum(["auto", "integration"]).default("auto"),
|
|
92352
|
+
category: z8.string().min(1).default("quick"),
|
|
92353
|
+
timeout_minutes: z8.number().int().positive().default(15),
|
|
92354
|
+
sandbox: z8.enum(["auto", "required", "off"]).default("auto")
|
|
92282
92355
|
}).strict();
|
|
92283
|
-
var OmoMemorySyncSchema =
|
|
92284
|
-
remote:
|
|
92285
|
-
enabled:
|
|
92356
|
+
var OmoMemorySyncSchema = z8.object({
|
|
92357
|
+
remote: z8.string().min(1).optional(),
|
|
92358
|
+
enabled: z8.boolean().default(true)
|
|
92286
92359
|
}).strict();
|
|
92287
|
-
var OmoMemorySearchSchema =
|
|
92288
|
-
enabled:
|
|
92360
|
+
var OmoMemorySearchSchema = z8.object({
|
|
92361
|
+
enabled: z8.boolean().default(true)
|
|
92289
92362
|
}).strict();
|
|
92290
|
-
var OmoMemoryRecallEventCapsSchema =
|
|
92291
|
-
tool_args:
|
|
92292
|
-
result_head:
|
|
92293
|
-
assistant:
|
|
92294
|
-
prompt:
|
|
92363
|
+
var OmoMemoryRecallEventCapsSchema = z8.object({
|
|
92364
|
+
tool_args: z8.number().int().nonnegative().default(400),
|
|
92365
|
+
result_head: z8.number().int().nonnegative().default(600),
|
|
92366
|
+
assistant: z8.number().int().nonnegative().default(1500),
|
|
92367
|
+
prompt: z8.number().int().nonnegative().default(4000)
|
|
92295
92368
|
}).strict();
|
|
92296
|
-
var OmoMemoryRecallSchema =
|
|
92297
|
-
enabled:
|
|
92298
|
-
max_items:
|
|
92299
|
-
category:
|
|
92369
|
+
var OmoMemoryRecallSchema = z8.object({
|
|
92370
|
+
enabled: z8.boolean().default(true),
|
|
92371
|
+
max_items: z8.number().int().min(1).max(5).default(2),
|
|
92372
|
+
category: z8.string().min(1).default("quick"),
|
|
92300
92373
|
event_caps: OmoMemoryRecallEventCapsSchema.default({ tool_args: 400, result_head: 600, assistant: 1500, prompt: 4000 }),
|
|
92301
|
-
sidecar_max_tokens:
|
|
92302
|
-
max_concurrent_wakes:
|
|
92303
|
-
tool_budget:
|
|
92374
|
+
sidecar_max_tokens: z8.number().int().positive().default(48000),
|
|
92375
|
+
max_concurrent_wakes: z8.number().int().positive().default(2),
|
|
92376
|
+
tool_budget: z8.number().int().positive().default(8)
|
|
92304
92377
|
}).strict();
|
|
92305
|
-
var OmoMemoryNudgeSchema =
|
|
92306
|
-
enabled:
|
|
92307
|
-
every_user_turns:
|
|
92378
|
+
var OmoMemoryNudgeSchema = z8.object({
|
|
92379
|
+
enabled: z8.boolean().default(true),
|
|
92380
|
+
every_user_turns: z8.number().int().min(1).default(10)
|
|
92308
92381
|
}).strict();
|
|
92309
|
-
var OmoMemoryFactsSchema =
|
|
92310
|
-
enabled:
|
|
92311
|
-
debounce_settles:
|
|
92382
|
+
var OmoMemoryFactsSchema = z8.object({
|
|
92383
|
+
enabled: z8.boolean().default(true),
|
|
92384
|
+
debounce_settles: z8.number().int().min(1).default(4)
|
|
92312
92385
|
}).strict();
|
|
92313
|
-
var OmoMemoryDreamSchema =
|
|
92314
|
-
enabled:
|
|
92315
|
-
idle_minutes:
|
|
92316
|
-
min_hours_between:
|
|
92317
|
-
shutdown_launch:
|
|
92318
|
-
auto_select_max:
|
|
92319
|
-
auto_select_max_chars:
|
|
92386
|
+
var OmoMemoryDreamSchema = z8.object({
|
|
92387
|
+
enabled: z8.boolean().default(true),
|
|
92388
|
+
idle_minutes: z8.number().int().min(0).default(30),
|
|
92389
|
+
min_hours_between: z8.number().int().min(1).default(24),
|
|
92390
|
+
shutdown_launch: z8.boolean().default(true),
|
|
92391
|
+
auto_select_max: z8.number().int().min(1).max(10).default(5),
|
|
92392
|
+
auto_select_max_chars: z8.number().int().min(1e4).default(150000)
|
|
92320
92393
|
}).strict();
|
|
92321
|
-
var OmoMemoryPeopleSchema =
|
|
92322
|
-
enabled:
|
|
92323
|
-
max_entries:
|
|
92324
|
-
max_entry_chars:
|
|
92394
|
+
var OmoMemoryPeopleSchema = z8.object({
|
|
92395
|
+
enabled: z8.boolean().default(true),
|
|
92396
|
+
max_entries: z8.number().int().min(1).max(100).default(40),
|
|
92397
|
+
max_entry_chars: z8.number().int().min(50).max(500).default(200)
|
|
92325
92398
|
}).strict();
|
|
92326
|
-
var OmoMemorySoulSchema =
|
|
92327
|
-
edit_notice:
|
|
92399
|
+
var OmoMemorySoulSchema = z8.object({
|
|
92400
|
+
edit_notice: z8.boolean().default(true)
|
|
92328
92401
|
}).strict();
|
|
92329
|
-
var OmoMemoryWriteNoticeSchema =
|
|
92330
|
-
enabled:
|
|
92402
|
+
var OmoMemoryWriteNoticeSchema = z8.object({
|
|
92403
|
+
enabled: z8.boolean().default(true)
|
|
92331
92404
|
}).strict();
|
|
92332
|
-
var OmoMemoryReflectionTriggerLayerSchema =
|
|
92333
|
-
step_count:
|
|
92334
|
-
on_compaction:
|
|
92405
|
+
var OmoMemoryReflectionTriggerLayerSchema = z8.object({
|
|
92406
|
+
step_count: z8.number().int().nonnegative().optional(),
|
|
92407
|
+
on_compaction: z8.boolean().optional()
|
|
92335
92408
|
}).strict();
|
|
92336
|
-
var OmoMemoryReflectionLayerSchema =
|
|
92337
|
-
enabled:
|
|
92409
|
+
var OmoMemoryReflectionLayerSchema = z8.object({
|
|
92410
|
+
enabled: z8.boolean().optional(),
|
|
92338
92411
|
trigger: OmoMemoryReflectionTriggerLayerSchema.optional(),
|
|
92339
|
-
merge:
|
|
92340
|
-
category:
|
|
92341
|
-
timeout_minutes:
|
|
92342
|
-
sandbox:
|
|
92412
|
+
merge: z8.enum(["auto", "integration"]).optional(),
|
|
92413
|
+
category: z8.string().min(1).optional(),
|
|
92414
|
+
timeout_minutes: z8.number().int().positive().optional(),
|
|
92415
|
+
sandbox: z8.enum(["auto", "required", "off"]).optional()
|
|
92343
92416
|
}).strict();
|
|
92344
|
-
var OmoMemorySyncLayerSchema =
|
|
92345
|
-
remote:
|
|
92346
|
-
enabled:
|
|
92417
|
+
var OmoMemorySyncLayerSchema = z8.object({
|
|
92418
|
+
remote: z8.string().min(1).optional(),
|
|
92419
|
+
enabled: z8.boolean().optional()
|
|
92347
92420
|
}).strict();
|
|
92348
|
-
var OmoMemorySearchLayerSchema =
|
|
92349
|
-
enabled:
|
|
92421
|
+
var OmoMemorySearchLayerSchema = z8.object({
|
|
92422
|
+
enabled: z8.boolean().optional()
|
|
92350
92423
|
}).strict();
|
|
92351
|
-
var OmoMemoryRecallEventCapsLayerSchema =
|
|
92352
|
-
tool_args:
|
|
92353
|
-
result_head:
|
|
92354
|
-
assistant:
|
|
92355
|
-
prompt:
|
|
92424
|
+
var OmoMemoryRecallEventCapsLayerSchema = z8.object({
|
|
92425
|
+
tool_args: z8.number().int().nonnegative().optional(),
|
|
92426
|
+
result_head: z8.number().int().nonnegative().optional(),
|
|
92427
|
+
assistant: z8.number().int().nonnegative().optional(),
|
|
92428
|
+
prompt: z8.number().int().nonnegative().optional()
|
|
92356
92429
|
}).strict();
|
|
92357
|
-
var OmoMemoryRecallLayerSchema =
|
|
92358
|
-
enabled:
|
|
92359
|
-
max_items:
|
|
92360
|
-
category:
|
|
92430
|
+
var OmoMemoryRecallLayerSchema = z8.object({
|
|
92431
|
+
enabled: z8.boolean().optional(),
|
|
92432
|
+
max_items: z8.number().int().min(1).max(5).optional(),
|
|
92433
|
+
category: z8.string().min(1).optional(),
|
|
92361
92434
|
event_caps: OmoMemoryRecallEventCapsLayerSchema.optional(),
|
|
92362
|
-
sidecar_max_tokens:
|
|
92363
|
-
max_concurrent_wakes:
|
|
92364
|
-
tool_budget:
|
|
92435
|
+
sidecar_max_tokens: z8.number().int().positive().optional(),
|
|
92436
|
+
max_concurrent_wakes: z8.number().int().positive().optional(),
|
|
92437
|
+
tool_budget: z8.number().int().positive().optional()
|
|
92365
92438
|
}).strict();
|
|
92366
|
-
var OmoMemoryNudgeLayerSchema =
|
|
92367
|
-
enabled:
|
|
92368
|
-
every_user_turns:
|
|
92439
|
+
var OmoMemoryNudgeLayerSchema = z8.object({
|
|
92440
|
+
enabled: z8.boolean().optional(),
|
|
92441
|
+
every_user_turns: z8.number().int().min(1).optional()
|
|
92369
92442
|
}).strict();
|
|
92370
|
-
var OmoMemoryFactsLayerSchema =
|
|
92371
|
-
enabled:
|
|
92372
|
-
debounce_settles:
|
|
92443
|
+
var OmoMemoryFactsLayerSchema = z8.object({
|
|
92444
|
+
enabled: z8.boolean().optional(),
|
|
92445
|
+
debounce_settles: z8.number().int().min(1).optional()
|
|
92373
92446
|
}).strict();
|
|
92374
|
-
var OmoMemoryDreamLayerSchema =
|
|
92375
|
-
enabled:
|
|
92376
|
-
idle_minutes:
|
|
92377
|
-
min_hours_between:
|
|
92378
|
-
shutdown_launch:
|
|
92379
|
-
auto_select_max:
|
|
92380
|
-
auto_select_max_chars:
|
|
92447
|
+
var OmoMemoryDreamLayerSchema = z8.object({
|
|
92448
|
+
enabled: z8.boolean().optional(),
|
|
92449
|
+
idle_minutes: z8.number().int().min(0).optional(),
|
|
92450
|
+
min_hours_between: z8.number().int().min(1).optional(),
|
|
92451
|
+
shutdown_launch: z8.boolean().optional(),
|
|
92452
|
+
auto_select_max: z8.number().int().min(1).max(10).optional(),
|
|
92453
|
+
auto_select_max_chars: z8.number().int().min(1e4).optional()
|
|
92381
92454
|
}).strict();
|
|
92382
|
-
var OmoMemoryPeopleLayerSchema =
|
|
92383
|
-
enabled:
|
|
92384
|
-
max_entries:
|
|
92385
|
-
max_entry_chars:
|
|
92455
|
+
var OmoMemoryPeopleLayerSchema = z8.object({
|
|
92456
|
+
enabled: z8.boolean().optional(),
|
|
92457
|
+
max_entries: z8.number().int().min(1).max(100).optional(),
|
|
92458
|
+
max_entry_chars: z8.number().int().min(50).max(500).optional()
|
|
92386
92459
|
}).strict();
|
|
92387
|
-
var OmoMemorySoulLayerSchema =
|
|
92388
|
-
edit_notice:
|
|
92460
|
+
var OmoMemorySoulLayerSchema = z8.object({
|
|
92461
|
+
edit_notice: z8.boolean().optional()
|
|
92389
92462
|
}).strict();
|
|
92390
|
-
var OmoMemoryWriteNoticeLayerSchema =
|
|
92391
|
-
enabled:
|
|
92463
|
+
var OmoMemoryWriteNoticeLayerSchema = z8.object({
|
|
92464
|
+
enabled: z8.boolean().optional()
|
|
92392
92465
|
}).strict();
|
|
92393
|
-
var OmoMemoryAgentOverridesSchema =
|
|
92394
|
-
enabled:
|
|
92395
|
-
agent:
|
|
92466
|
+
var OmoMemoryAgentOverridesSchema = z8.object({
|
|
92467
|
+
enabled: z8.boolean().optional(),
|
|
92468
|
+
agent: z8.string().min(1).optional(),
|
|
92396
92469
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
92397
92470
|
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
92398
92471
|
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
@@ -92403,11 +92476,11 @@ var OmoMemoryAgentOverridesSchema = z7.object({
|
|
|
92403
92476
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
92404
92477
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
92405
92478
|
recall: OmoMemoryRecallLayerSchema.optional(),
|
|
92406
|
-
compile_warn_tokens:
|
|
92479
|
+
compile_warn_tokens: z8.number().int().positive().optional()
|
|
92407
92480
|
}).strict();
|
|
92408
|
-
var OmoMemorySettingsSchema =
|
|
92409
|
-
enabled:
|
|
92410
|
-
agent:
|
|
92481
|
+
var OmoMemorySettingsSchema = z8.object({
|
|
92482
|
+
enabled: z8.boolean().default(true),
|
|
92483
|
+
agent: z8.string().min(1).default("auto"),
|
|
92411
92484
|
reflection: OmoMemoryReflectionSchema.default({
|
|
92412
92485
|
enabled: true,
|
|
92413
92486
|
trigger: { step_count: 25, on_compaction: true },
|
|
@@ -92440,12 +92513,12 @@ var OmoMemorySettingsSchema = z7.object({
|
|
|
92440
92513
|
max_concurrent_wakes: 2,
|
|
92441
92514
|
tool_budget: 8
|
|
92442
92515
|
}),
|
|
92443
|
-
compile_warn_tokens:
|
|
92444
|
-
agents:
|
|
92516
|
+
compile_warn_tokens: z8.number().int().positive().default(30000),
|
|
92517
|
+
agents: z8.record(z8.string(), OmoMemoryAgentOverridesSchema).default({})
|
|
92445
92518
|
}).strict();
|
|
92446
|
-
var OmoMemorySettingsLayerSchema =
|
|
92447
|
-
enabled:
|
|
92448
|
-
agent:
|
|
92519
|
+
var OmoMemorySettingsLayerSchema = z8.object({
|
|
92520
|
+
enabled: z8.boolean().optional(),
|
|
92521
|
+
agent: z8.string().min(1).optional(),
|
|
92449
92522
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
92450
92523
|
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
92451
92524
|
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
@@ -92456,63 +92529,63 @@ var OmoMemorySettingsLayerSchema = z7.object({
|
|
|
92456
92529
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
92457
92530
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
92458
92531
|
recall: OmoMemoryRecallLayerSchema.optional(),
|
|
92459
|
-
compile_warn_tokens:
|
|
92460
|
-
agents:
|
|
92532
|
+
compile_warn_tokens: z8.number().int().positive().optional(),
|
|
92533
|
+
agents: z8.record(z8.string(), OmoMemoryAgentOverridesSchema).optional()
|
|
92461
92534
|
}).strict();
|
|
92462
92535
|
|
|
92463
92536
|
// packages/omo-config-core/src/schema/model-catalog.ts
|
|
92464
|
-
import * as
|
|
92537
|
+
import * as z9 from "zod";
|
|
92465
92538
|
function isRecord8(value) {
|
|
92466
92539
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
92467
92540
|
}
|
|
92468
|
-
var OmoModelCatalogEntryInputSchema =
|
|
92469
|
-
model:
|
|
92541
|
+
var OmoModelCatalogEntryInputSchema = z9.object({
|
|
92542
|
+
model: z9.string(),
|
|
92470
92543
|
reasoning: OmoReasoningSchema.optional(),
|
|
92471
|
-
variant:
|
|
92544
|
+
variant: z9.string().optional(),
|
|
92472
92545
|
reasoningEffort: OmoReasoningEffortSchema.optional()
|
|
92473
92546
|
}).strict();
|
|
92474
|
-
var OmoModelCatalogEntrySchema =
|
|
92475
|
-
var OmoModelCatalogSchema =
|
|
92547
|
+
var OmoModelCatalogEntrySchema = z9.preprocess((value) => isRecord8(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryInputSchema);
|
|
92548
|
+
var OmoModelCatalogSchema = z9.record(z9.string(), OmoModelCatalogEntrySchema);
|
|
92476
92549
|
var OmoModelCatalogEntryLayerInputSchema = OmoModelCatalogEntryInputSchema.partial();
|
|
92477
|
-
var OmoModelCatalogEntryLayerSchema =
|
|
92478
|
-
var OmoModelCatalogLayerSchema =
|
|
92550
|
+
var OmoModelCatalogEntryLayerSchema = z9.preprocess((value) => isRecord8(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryLayerInputSchema);
|
|
92551
|
+
var OmoModelCatalogLayerSchema = z9.record(z9.string(), OmoModelCatalogEntryLayerSchema);
|
|
92479
92552
|
|
|
92480
92553
|
// packages/omo-config-core/src/schema/model-profile.ts
|
|
92481
|
-
import * as
|
|
92554
|
+
import * as z10 from "zod";
|
|
92482
92555
|
function isRecord9(value) {
|
|
92483
92556
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
92484
92557
|
}
|
|
92485
|
-
var OmoModelProfileInputSchema =
|
|
92486
|
-
display_name:
|
|
92487
|
-
family:
|
|
92488
|
-
tier:
|
|
92489
|
-
models:
|
|
92558
|
+
var OmoModelProfileInputSchema = z10.object({
|
|
92559
|
+
display_name: z10.string().optional(),
|
|
92560
|
+
family: z10.enum(["daily", "geeky"]).optional(),
|
|
92561
|
+
tier: z10.enum(["normal", "heavy"]).optional(),
|
|
92562
|
+
models: z10.array(z10.union([z10.string(), OmoFallbackModelObjectSchema])).optional()
|
|
92490
92563
|
}).strict();
|
|
92491
|
-
var OmoModelProfileSchema =
|
|
92492
|
-
var OmoModelProfilesSchema =
|
|
92564
|
+
var OmoModelProfileSchema = z10.preprocess((value) => isRecord9(value) ? normalizeLegacyModelFields(value) : value, OmoModelProfileInputSchema);
|
|
92565
|
+
var OmoModelProfilesSchema = z10.record(z10.string(), OmoModelProfileSchema);
|
|
92493
92566
|
var OmoModelProfileLayerInputSchema = OmoModelProfileInputSchema.partial();
|
|
92494
|
-
var OmoModelProfileLayerSchema =
|
|
92495
|
-
var OmoModelProfilesLayerSchema =
|
|
92567
|
+
var OmoModelProfileLayerSchema = z10.preprocess((value) => isRecord9(value) ? normalizeLegacyModelFields(value) : value, OmoModelProfileLayerInputSchema);
|
|
92568
|
+
var OmoModelProfilesLayerSchema = z10.record(z10.string(), OmoModelProfileLayerSchema);
|
|
92496
92569
|
|
|
92497
92570
|
// packages/omo-config-core/src/schema/task.ts
|
|
92498
92571
|
import { availableParallelism } from "os";
|
|
92499
|
-
import * as
|
|
92572
|
+
import * as z11 from "zod";
|
|
92500
92573
|
var DEFAULT_RESIDENCY_MAX_CHILDREN = 16;
|
|
92501
|
-
var ResidencyMaxChildrenInputSchema =
|
|
92502
|
-
var OmoTaskWaitSchema =
|
|
92503
|
-
min_ms:
|
|
92504
|
-
default_ms:
|
|
92505
|
-
max_ms:
|
|
92574
|
+
var ResidencyMaxChildrenInputSchema = z11.union([z11.number().int().nonnegative(), z11.literal("unlimited")]);
|
|
92575
|
+
var OmoTaskWaitSchema = z11.object({
|
|
92576
|
+
min_ms: z11.number().int().positive().default(5000),
|
|
92577
|
+
default_ms: z11.number().int().positive().default(60000),
|
|
92578
|
+
max_ms: z11.number().int().positive().default(600000)
|
|
92506
92579
|
}).strict();
|
|
92507
|
-
var OmoTaskTeamSettingsSchema =
|
|
92508
|
-
max_members:
|
|
92509
|
-
max_parallel_members:
|
|
92510
|
-
max_wall_clock_minutes:
|
|
92580
|
+
var OmoTaskTeamSettingsSchema = z11.object({
|
|
92581
|
+
max_members: z11.number().int().min(1).max(8).default(8),
|
|
92582
|
+
max_parallel_members: z11.number().int().min(1).max(8).default(4),
|
|
92583
|
+
max_wall_clock_minutes: z11.number().int().positive().default(120)
|
|
92511
92584
|
}).strict();
|
|
92512
|
-
var OmoTaskWarningsSchema =
|
|
92513
|
-
unavailable_categories:
|
|
92585
|
+
var OmoTaskWarningsSchema = z11.object({
|
|
92586
|
+
unavailable_categories: z11.boolean().default(true)
|
|
92514
92587
|
}).strict();
|
|
92515
|
-
var IsolationBackendKindSchema =
|
|
92588
|
+
var IsolationBackendKindSchema = z11.enum([
|
|
92516
92589
|
"auto",
|
|
92517
92590
|
"apfs",
|
|
92518
92591
|
"btrfs",
|
|
@@ -92522,48 +92595,48 @@ var IsolationBackendKindSchema = z10.enum([
|
|
|
92522
92595
|
"block-clone",
|
|
92523
92596
|
"rcopy"
|
|
92524
92597
|
]);
|
|
92525
|
-
var OmoTaskIsolationSchema =
|
|
92526
|
-
enabled:
|
|
92598
|
+
var OmoTaskIsolationSchema = z11.object({
|
|
92599
|
+
enabled: z11.boolean().default(false),
|
|
92527
92600
|
backend: IsolationBackendKindSchema.default("auto"),
|
|
92528
|
-
apply:
|
|
92529
|
-
merge:
|
|
92530
|
-
commits:
|
|
92601
|
+
apply: z11.boolean().default(true),
|
|
92602
|
+
merge: z11.enum(["patch", "branch"]).default("patch"),
|
|
92603
|
+
commits: z11.enum(["generic", "ai"]).default("generic")
|
|
92531
92604
|
}).strict();
|
|
92532
92605
|
var isolationDefaults = OmoTaskIsolationSchema.parse({});
|
|
92533
|
-
var OmoTaskIsolationLayerSchema =
|
|
92534
|
-
enabled:
|
|
92606
|
+
var OmoTaskIsolationLayerSchema = z11.object({
|
|
92607
|
+
enabled: z11.boolean().optional(),
|
|
92535
92608
|
backend: IsolationBackendKindSchema.optional(),
|
|
92536
|
-
apply:
|
|
92537
|
-
merge:
|
|
92538
|
-
commits:
|
|
92609
|
+
apply: z11.boolean().optional(),
|
|
92610
|
+
merge: z11.enum(["patch", "branch"]).optional(),
|
|
92611
|
+
commits: z11.enum(["generic", "ai"]).optional()
|
|
92539
92612
|
}).strict();
|
|
92540
|
-
var OmoTaskDagSettingsSchema =
|
|
92541
|
-
max_nodes_per_run:
|
|
92542
|
-
max_runs_per_session:
|
|
92543
|
-
subscriber_ring:
|
|
92544
|
-
heartbeat_ms:
|
|
92545
|
-
history_default_limit:
|
|
92546
|
-
history_max_limit:
|
|
92547
|
-
retention_days:
|
|
92548
|
-
max_prompt_bytes:
|
|
92613
|
+
var OmoTaskDagSettingsSchema = z11.object({
|
|
92614
|
+
max_nodes_per_run: z11.number().int().positive().default(64),
|
|
92615
|
+
max_runs_per_session: z11.number().int().positive().default(16),
|
|
92616
|
+
subscriber_ring: z11.number().int().positive().default(1000),
|
|
92617
|
+
heartbeat_ms: z11.number().int().positive().default(15000),
|
|
92618
|
+
history_default_limit: z11.number().int().positive().default(256),
|
|
92619
|
+
history_max_limit: z11.number().int().positive().default(1000),
|
|
92620
|
+
retention_days: z11.number().int().positive().default(7),
|
|
92621
|
+
max_prompt_bytes: z11.number().int().positive().default(262144)
|
|
92549
92622
|
}).strict();
|
|
92550
|
-
var OmoTaskSettingsSchema =
|
|
92623
|
+
var OmoTaskSettingsSchema = z11.object({
|
|
92551
92624
|
isolation: OmoTaskIsolationSchema.default(isolationDefaults),
|
|
92552
|
-
default_execution_mode:
|
|
92553
|
-
process_runner:
|
|
92554
|
-
host_engine_policy:
|
|
92555
|
-
host_idle_exit_ms:
|
|
92556
|
-
default_concurrency:
|
|
92557
|
-
global_concurrency:
|
|
92558
|
-
provider_concurrency:
|
|
92559
|
-
model_concurrency:
|
|
92560
|
-
max_depth:
|
|
92625
|
+
default_execution_mode: z11.enum(["auto", "in-process", "process"]).default("auto"),
|
|
92626
|
+
process_runner: z11.enum(["host", "child-process"]).default("host"),
|
|
92627
|
+
host_engine_policy: z11.enum(["upgrade", "fallback"]).default("upgrade"),
|
|
92628
|
+
host_idle_exit_ms: z11.number().int().positive().optional(),
|
|
92629
|
+
default_concurrency: z11.number().int().nonnegative().default(5),
|
|
92630
|
+
global_concurrency: z11.number().int().nonnegative().default(8),
|
|
92631
|
+
provider_concurrency: z11.record(z11.string(), z11.number().int().nonnegative()).optional(),
|
|
92632
|
+
model_concurrency: z11.record(z11.string(), z11.number().int().nonnegative()).optional(),
|
|
92633
|
+
max_depth: z11.number().int().nonnegative().default(1),
|
|
92561
92634
|
residency_max_children: ResidencyMaxChildrenInputSchema.default(8),
|
|
92562
|
-
resident_idle_timeout_ms:
|
|
92563
|
-
ttl_ms:
|
|
92564
|
-
state_dir:
|
|
92565
|
-
reattach_on_reconcile:
|
|
92566
|
-
resume_children:
|
|
92635
|
+
resident_idle_timeout_ms: z11.number().int().positive().max(Number.MAX_SAFE_INTEGER).default(900000),
|
|
92636
|
+
ttl_ms: z11.number().int().positive().default(86400000),
|
|
92637
|
+
state_dir: z11.string().optional(),
|
|
92638
|
+
reattach_on_reconcile: z11.boolean().optional(),
|
|
92639
|
+
resume_children: z11.boolean().default(true),
|
|
92567
92640
|
warnings: OmoTaskWarningsSchema.default({ unavailable_categories: true }),
|
|
92568
92641
|
wait: OmoTaskWaitSchema.default({ min_ms: 5000, default_ms: 60000, max_ms: 600000 }),
|
|
92569
92642
|
team: OmoTaskTeamSettingsSchema.default({
|
|
@@ -92573,53 +92646,53 @@ var OmoTaskSettingsSchema = z10.object({
|
|
|
92573
92646
|
}),
|
|
92574
92647
|
dag: OmoTaskDagSettingsSchema.optional()
|
|
92575
92648
|
}).strict();
|
|
92576
|
-
var OmoTaskDagSettingsLayerSchema =
|
|
92577
|
-
max_nodes_per_run:
|
|
92578
|
-
max_runs_per_session:
|
|
92579
|
-
subscriber_ring:
|
|
92580
|
-
heartbeat_ms:
|
|
92581
|
-
history_default_limit:
|
|
92582
|
-
history_max_limit:
|
|
92583
|
-
retention_days:
|
|
92584
|
-
max_prompt_bytes:
|
|
92649
|
+
var OmoTaskDagSettingsLayerSchema = z11.object({
|
|
92650
|
+
max_nodes_per_run: z11.number().int().positive().optional(),
|
|
92651
|
+
max_runs_per_session: z11.number().int().positive().optional(),
|
|
92652
|
+
subscriber_ring: z11.number().int().positive().optional(),
|
|
92653
|
+
heartbeat_ms: z11.number().int().positive().optional(),
|
|
92654
|
+
history_default_limit: z11.number().int().positive().optional(),
|
|
92655
|
+
history_max_limit: z11.number().int().positive().optional(),
|
|
92656
|
+
retention_days: z11.number().int().positive().optional(),
|
|
92657
|
+
max_prompt_bytes: z11.number().int().positive().optional()
|
|
92585
92658
|
}).strict();
|
|
92586
|
-
var OmoTaskWaitLayerSchema =
|
|
92587
|
-
min_ms:
|
|
92588
|
-
default_ms:
|
|
92589
|
-
max_ms:
|
|
92659
|
+
var OmoTaskWaitLayerSchema = z11.object({
|
|
92660
|
+
min_ms: z11.number().int().positive().optional(),
|
|
92661
|
+
default_ms: z11.number().int().positive().optional(),
|
|
92662
|
+
max_ms: z11.number().int().positive().optional()
|
|
92590
92663
|
}).strict();
|
|
92591
|
-
var OmoTaskTeamSettingsLayerSchema =
|
|
92592
|
-
max_members:
|
|
92593
|
-
max_parallel_members:
|
|
92594
|
-
max_wall_clock_minutes:
|
|
92664
|
+
var OmoTaskTeamSettingsLayerSchema = z11.object({
|
|
92665
|
+
max_members: z11.number().int().min(1).max(8).optional(),
|
|
92666
|
+
max_parallel_members: z11.number().int().min(1).max(8).optional(),
|
|
92667
|
+
max_wall_clock_minutes: z11.number().int().positive().optional()
|
|
92595
92668
|
}).strict();
|
|
92596
|
-
var OmoTaskWarningsLayerSchema =
|
|
92597
|
-
unavailable_categories:
|
|
92669
|
+
var OmoTaskWarningsLayerSchema = z11.object({
|
|
92670
|
+
unavailable_categories: z11.boolean().optional()
|
|
92598
92671
|
}).strict();
|
|
92599
|
-
var OmoTaskSettingsLayerSchema =
|
|
92672
|
+
var OmoTaskSettingsLayerSchema = z11.object({
|
|
92600
92673
|
isolation: OmoTaskIsolationLayerSchema.optional(),
|
|
92601
|
-
default_execution_mode:
|
|
92602
|
-
process_runner:
|
|
92603
|
-
host_engine_policy:
|
|
92604
|
-
host_idle_exit_ms:
|
|
92605
|
-
default_concurrency:
|
|
92606
|
-
global_concurrency:
|
|
92607
|
-
provider_concurrency:
|
|
92608
|
-
model_concurrency:
|
|
92609
|
-
max_depth:
|
|
92674
|
+
default_execution_mode: z11.enum(["auto", "in-process", "process"]).optional(),
|
|
92675
|
+
process_runner: z11.enum(["host", "child-process"]).optional(),
|
|
92676
|
+
host_engine_policy: z11.enum(["upgrade", "fallback"]).optional(),
|
|
92677
|
+
host_idle_exit_ms: z11.number().int().positive().optional(),
|
|
92678
|
+
default_concurrency: z11.number().int().nonnegative().optional(),
|
|
92679
|
+
global_concurrency: z11.number().int().nonnegative().optional(),
|
|
92680
|
+
provider_concurrency: z11.record(z11.string(), z11.number().int().nonnegative()).optional(),
|
|
92681
|
+
model_concurrency: z11.record(z11.string(), z11.number().int().nonnegative()).optional(),
|
|
92682
|
+
max_depth: z11.number().int().nonnegative().optional(),
|
|
92610
92683
|
residency_max_children: ResidencyMaxChildrenInputSchema.optional(),
|
|
92611
|
-
resident_idle_timeout_ms:
|
|
92612
|
-
ttl_ms:
|
|
92613
|
-
state_dir:
|
|
92614
|
-
reattach_on_reconcile:
|
|
92615
|
-
resume_children:
|
|
92684
|
+
resident_idle_timeout_ms: z11.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),
|
|
92685
|
+
ttl_ms: z11.number().int().positive().optional(),
|
|
92686
|
+
state_dir: z11.string().optional(),
|
|
92687
|
+
reattach_on_reconcile: z11.boolean().optional(),
|
|
92688
|
+
resume_children: z11.boolean().optional(),
|
|
92616
92689
|
warnings: OmoTaskWarningsLayerSchema.optional(),
|
|
92617
92690
|
wait: OmoTaskWaitLayerSchema.optional(),
|
|
92618
92691
|
team: OmoTaskTeamSettingsLayerSchema.optional(),
|
|
92619
92692
|
dag: OmoTaskDagSettingsLayerSchema.optional()
|
|
92620
92693
|
}).strict();
|
|
92621
92694
|
function resolveOmoTaskSettings(input, resolveParallelism = availableParallelism) {
|
|
92622
|
-
const record =
|
|
92695
|
+
const record = z11.record(z11.string(), z11.unknown()).parse(input);
|
|
92623
92696
|
return OmoTaskSettingsSchema.parse({
|
|
92624
92697
|
...record,
|
|
92625
92698
|
residency_max_children: record["residency_max_children"] ?? Math.min(DEFAULT_RESIDENCY_MAX_CHILDREN, Math.max(8, resolveParallelism() * 2)),
|
|
@@ -92628,39 +92701,39 @@ function resolveOmoTaskSettings(input, resolveParallelism = availableParallelism
|
|
|
92628
92701
|
}
|
|
92629
92702
|
|
|
92630
92703
|
// packages/omo-config-core/src/schema/team.ts
|
|
92631
|
-
import * as
|
|
92632
|
-
var OmoTeamMemberBaseSchema =
|
|
92633
|
-
name:
|
|
92634
|
-
cwd:
|
|
92635
|
-
worktreePath:
|
|
92636
|
-
subscriptions:
|
|
92637
|
-
backendType:
|
|
92638
|
-
color:
|
|
92639
|
-
isActive:
|
|
92704
|
+
import * as z12 from "zod";
|
|
92705
|
+
var OmoTeamMemberBaseSchema = z12.object({
|
|
92706
|
+
name: z12.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
92707
|
+
cwd: z12.string().optional(),
|
|
92708
|
+
worktreePath: z12.string().optional(),
|
|
92709
|
+
subscriptions: z12.array(z12.string()).optional(),
|
|
92710
|
+
backendType: z12.enum(["in-process", "tmux"]).default("in-process"),
|
|
92711
|
+
color: z12.string().optional(),
|
|
92712
|
+
isActive: z12.boolean().default(true)
|
|
92640
92713
|
}).strict();
|
|
92641
92714
|
var OmoTeamCategoryMemberSchema = OmoTeamMemberBaseSchema.extend({
|
|
92642
|
-
kind:
|
|
92643
|
-
category:
|
|
92644
|
-
prompt:
|
|
92715
|
+
kind: z12.literal("category"),
|
|
92716
|
+
category: z12.string().min(1),
|
|
92717
|
+
prompt: z12.string().min(1)
|
|
92645
92718
|
});
|
|
92646
92719
|
var OmoTeamSubagentMemberSchema = OmoTeamMemberBaseSchema.extend({
|
|
92647
|
-
kind:
|
|
92648
|
-
subagent_type:
|
|
92649
|
-
prompt:
|
|
92720
|
+
kind: z12.literal("subagent_type"),
|
|
92721
|
+
subagent_type: z12.string().min(1),
|
|
92722
|
+
prompt: z12.string().optional()
|
|
92650
92723
|
});
|
|
92651
|
-
var OmoTeamMemberSchema =
|
|
92724
|
+
var OmoTeamMemberSchema = z12.discriminatedUnion("kind", [
|
|
92652
92725
|
OmoTeamCategoryMemberSchema,
|
|
92653
92726
|
OmoTeamSubagentMemberSchema
|
|
92654
92727
|
]);
|
|
92655
|
-
var OmoTeamSpecBaseSchema =
|
|
92656
|
-
version:
|
|
92657
|
-
name:
|
|
92658
|
-
description:
|
|
92659
|
-
createdAt:
|
|
92660
|
-
leadAgentId:
|
|
92661
|
-
teamAllowedPaths:
|
|
92662
|
-
sessionPermission:
|
|
92663
|
-
members:
|
|
92728
|
+
var OmoTeamSpecBaseSchema = z12.object({
|
|
92729
|
+
version: z12.literal(1).default(1),
|
|
92730
|
+
name: z12.string().min(1).regex(/^[a-z0-9-]+$/).optional(),
|
|
92731
|
+
description: z12.string().optional(),
|
|
92732
|
+
createdAt: z12.number().int().positive().optional(),
|
|
92733
|
+
leadAgentId: z12.string().optional(),
|
|
92734
|
+
teamAllowedPaths: z12.array(z12.string()).optional(),
|
|
92735
|
+
sessionPermission: z12.string().optional(),
|
|
92736
|
+
members: z12.array(OmoTeamMemberSchema).min(1).max(8)
|
|
92664
92737
|
}).strict();
|
|
92665
92738
|
var OmoTeamSpecSchema = OmoTeamSpecBaseSchema.superRefine((teamSpec, ctx) => {
|
|
92666
92739
|
if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
|
|
@@ -92672,39 +92745,39 @@ var OmoTeamSpecSchema = OmoTeamSpecBaseSchema.superRefine((teamSpec, ctx) => {
|
|
|
92672
92745
|
}
|
|
92673
92746
|
});
|
|
92674
92747
|
var OmoTeamSpecLayerSchema = OmoTeamSpecBaseSchema.partial();
|
|
92675
|
-
var OmoTeamsConfigSchema =
|
|
92676
|
-
var OmoTeamsConfigLayerSchema =
|
|
92748
|
+
var OmoTeamsConfigSchema = z12.record(z12.string(), OmoTeamSpecSchema);
|
|
92749
|
+
var OmoTeamsConfigLayerSchema = z12.record(z12.string(), OmoTeamSpecLayerSchema);
|
|
92677
92750
|
|
|
92678
92751
|
// packages/omo-config-core/src/schema/telemetry.ts
|
|
92679
|
-
import * as
|
|
92752
|
+
import * as z13 from "zod";
|
|
92680
92753
|
var OmoTelemetrySettingsShape = {
|
|
92681
|
-
enabled:
|
|
92754
|
+
enabled: z13.boolean()
|
|
92682
92755
|
};
|
|
92683
|
-
var OmoTelemetrySettingsLayerSchema =
|
|
92756
|
+
var OmoTelemetrySettingsLayerSchema = z13.object(OmoTelemetrySettingsShape).partial().strict();
|
|
92684
92757
|
var OmoTelemetrySettingsSchema = OmoTelemetrySettingsLayerSchema.extend({
|
|
92685
|
-
enabled:
|
|
92758
|
+
enabled: z13.boolean().default(true)
|
|
92686
92759
|
}).strict();
|
|
92687
92760
|
|
|
92688
92761
|
// packages/omo-config-core/src/schema/format-on-mutation.ts
|
|
92689
|
-
import * as
|
|
92690
|
-
var mode =
|
|
92691
|
-
var languages =
|
|
92692
|
-
var OmoFormatOnMutationLayerSchema =
|
|
92762
|
+
import * as z14 from "zod";
|
|
92763
|
+
var mode = z14.enum(["off", "best-effort", "required"]);
|
|
92764
|
+
var languages = z14.record(z14.string(), z14.boolean()).optional();
|
|
92765
|
+
var OmoFormatOnMutationLayerSchema = z14.object({
|
|
92693
92766
|
mode: mode.optional(),
|
|
92694
92767
|
languages,
|
|
92695
|
-
maxFileBytes:
|
|
92696
|
-
timeoutMs:
|
|
92768
|
+
maxFileBytes: z14.number().int().positive().optional(),
|
|
92769
|
+
timeoutMs: z14.number().int().positive().optional()
|
|
92697
92770
|
}).strict();
|
|
92698
92771
|
var OmoFormatOnMutationSchema = OmoFormatOnMutationLayerSchema.extend({
|
|
92699
92772
|
mode: mode.default("best-effort"),
|
|
92700
|
-
maxFileBytes:
|
|
92701
|
-
timeoutMs:
|
|
92773
|
+
maxFileBytes: z14.number().int().positive().default(1048576),
|
|
92774
|
+
timeoutMs: z14.number().int().positive().default(3000)
|
|
92702
92775
|
}).strict();
|
|
92703
92776
|
|
|
92704
92777
|
// packages/omo-config-core/src/schema/config.ts
|
|
92705
|
-
var OmoOpenCodeHarnessConfigSchema =
|
|
92706
|
-
var OmoDisabledSkillsSchema =
|
|
92707
|
-
var OmoTypedHarnessConfigSchema =
|
|
92778
|
+
var OmoOpenCodeHarnessConfigSchema = z15.record(z15.string(), z15.unknown());
|
|
92779
|
+
var OmoDisabledSkillsSchema = z15.array(z15.string());
|
|
92780
|
+
var OmoTypedHarnessConfigSchema = z15.object({
|
|
92708
92781
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
92709
92782
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
92710
92783
|
agents: OmoAgentsConfigSchema.optional(),
|
|
@@ -92713,12 +92786,13 @@ var OmoTypedHarnessConfigSchema = z14.object({
|
|
|
92713
92786
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
92714
92787
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
92715
92788
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
92716
|
-
model_profile:
|
|
92789
|
+
model_profile: z15.string().optional(),
|
|
92717
92790
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
92718
92791
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
92792
|
+
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
92719
92793
|
disabled_skills: OmoDisabledSkillsSchema.optional()
|
|
92720
92794
|
}).strict();
|
|
92721
|
-
var OmoConfigProfileSchema =
|
|
92795
|
+
var OmoConfigProfileSchema = z15.object({
|
|
92722
92796
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
92723
92797
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
92724
92798
|
agents: OmoAgentsConfigSchema.optional(),
|
|
@@ -92727,18 +92801,19 @@ var OmoConfigProfileSchema = z14.object({
|
|
|
92727
92801
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
92728
92802
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
92729
92803
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
92730
|
-
model_profile:
|
|
92804
|
+
model_profile: z15.string().optional(),
|
|
92731
92805
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
92732
92806
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
92807
|
+
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
92733
92808
|
disabled_skills: OmoDisabledSkillsSchema.optional(),
|
|
92734
92809
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
92735
92810
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
92736
92811
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
92737
92812
|
"[codex]": OmoTypedHarnessConfigSchema.optional()
|
|
92738
92813
|
}).strict();
|
|
92739
|
-
var OmoConfigSchema =
|
|
92814
|
+
var OmoConfigSchema = z15.object({
|
|
92740
92815
|
formatOnMutation: OmoFormatOnMutationSchema.optional(),
|
|
92741
|
-
$schema:
|
|
92816
|
+
$schema: z15.string().optional(),
|
|
92742
92817
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
92743
92818
|
agents: OmoAgentsConfigSchema.optional(),
|
|
92744
92819
|
git_master: OmoGitMasterSettingsSchema.optional(),
|
|
@@ -92746,21 +92821,22 @@ var OmoConfigSchema = z14.object({
|
|
|
92746
92821
|
teams: OmoTeamsConfigSchema.optional(),
|
|
92747
92822
|
models: OmoModelCatalogSchema.optional(),
|
|
92748
92823
|
model_profiles: OmoModelProfilesSchema.optional(),
|
|
92749
|
-
model_profile:
|
|
92824
|
+
model_profile: z15.string().optional(),
|
|
92750
92825
|
memory: OmoMemorySettingsSchema.optional(),
|
|
92751
92826
|
telemetry: OmoTelemetrySettingsSchema.optional(),
|
|
92827
|
+
computer: OmoComputerSettingsSchema.optional(),
|
|
92752
92828
|
disabled_skills: OmoDisabledSkillsSchema.optional(),
|
|
92753
92829
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
92754
92830
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
92755
92831
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
92756
92832
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
92757
|
-
profiles:
|
|
92758
|
-
_migrations:
|
|
92759
|
-
legacy_migrations:
|
|
92833
|
+
profiles: z15.record(z15.string(), OmoConfigProfileSchema).default({}),
|
|
92834
|
+
_migrations: z15.array(z15.string()).optional(),
|
|
92835
|
+
legacy_migrations: z15.record(z15.string(), z15.unknown()).optional()
|
|
92760
92836
|
}).strict();
|
|
92761
|
-
var OmoConfigLayerSchema =
|
|
92837
|
+
var OmoConfigLayerSchema = z15.object({
|
|
92762
92838
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
92763
|
-
$schema:
|
|
92839
|
+
$schema: z15.string().optional(),
|
|
92764
92840
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
92765
92841
|
agents: OmoAgentsConfigSchema.optional(),
|
|
92766
92842
|
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
@@ -92768,17 +92844,18 @@ var OmoConfigLayerSchema = z14.object({
|
|
|
92768
92844
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
92769
92845
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
92770
92846
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
92771
|
-
model_profile:
|
|
92847
|
+
model_profile: z15.string().optional(),
|
|
92772
92848
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
92773
92849
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
92850
|
+
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
92774
92851
|
disabled_skills: OmoDisabledSkillsSchema.optional(),
|
|
92775
92852
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
92776
92853
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
92777
92854
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
92778
92855
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
92779
|
-
profiles:
|
|
92780
|
-
_migrations:
|
|
92781
|
-
legacy_migrations:
|
|
92856
|
+
profiles: z15.record(z15.string(), OmoConfigProfileSchema).optional(),
|
|
92857
|
+
_migrations: z15.array(z15.string()).optional(),
|
|
92858
|
+
legacy_migrations: z15.record(z15.string(), z15.unknown()).optional()
|
|
92782
92859
|
}).strict();
|
|
92783
92860
|
|
|
92784
92861
|
// packages/omo-config-core/src/schema/legacy-category-names.ts
|
|
@@ -94668,8 +94745,8 @@ function findUnknownKeyPaths(schema, value) {
|
|
|
94668
94745
|
}
|
|
94669
94746
|
|
|
94670
94747
|
// packages/omo-opencode/src/config/schema/agent-names.ts
|
|
94671
|
-
import { z as
|
|
94672
|
-
var BuiltinAgentNameSchema =
|
|
94748
|
+
import { z as z16 } from "zod";
|
|
94749
|
+
var BuiltinAgentNameSchema = z16.enum([
|
|
94673
94750
|
"sisyphus",
|
|
94674
94751
|
"hephaestus",
|
|
94675
94752
|
"prometheus",
|
|
@@ -94682,7 +94759,7 @@ var BuiltinAgentNameSchema = z15.enum([
|
|
|
94682
94759
|
"atlas",
|
|
94683
94760
|
"sisyphus-junior"
|
|
94684
94761
|
]);
|
|
94685
|
-
var BuiltinSkillNameSchema =
|
|
94762
|
+
var BuiltinSkillNameSchema = z16.enum([
|
|
94686
94763
|
"playwright",
|
|
94687
94764
|
"dev-browser",
|
|
94688
94765
|
"frontend",
|
|
@@ -94696,7 +94773,7 @@ var BuiltinSkillNameSchema = z15.enum([
|
|
|
94696
94773
|
"visual-qa",
|
|
94697
94774
|
"team-mode"
|
|
94698
94775
|
]);
|
|
94699
|
-
var OverridableAgentNameSchema =
|
|
94776
|
+
var OverridableAgentNameSchema = z16.enum([
|
|
94700
94777
|
"build",
|
|
94701
94778
|
"plan",
|
|
94702
94779
|
"sisyphus",
|
|
@@ -94713,41 +94790,41 @@ var OverridableAgentNameSchema = z15.enum([
|
|
|
94713
94790
|
"atlas"
|
|
94714
94791
|
]);
|
|
94715
94792
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
94716
|
-
import { z as
|
|
94793
|
+
import { z as z19 } from "zod";
|
|
94717
94794
|
|
|
94718
94795
|
// packages/omo-opencode/src/config/schema/fallback-models.ts
|
|
94719
|
-
import { z as
|
|
94720
|
-
var FallbackModelObjectSchema =
|
|
94721
|
-
model:
|
|
94796
|
+
import { z as z17 } from "zod";
|
|
94797
|
+
var FallbackModelObjectSchema = z17.object({
|
|
94798
|
+
model: z17.string(),
|
|
94722
94799
|
reasoning: OmoReasoningSchema.optional(),
|
|
94723
|
-
variant:
|
|
94724
|
-
reasoningEffort:
|
|
94725
|
-
temperature:
|
|
94726
|
-
top_p:
|
|
94727
|
-
maxTokens:
|
|
94728
|
-
thinking:
|
|
94729
|
-
type:
|
|
94730
|
-
budgetTokens:
|
|
94800
|
+
variant: z17.string().optional(),
|
|
94801
|
+
reasoningEffort: z17.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
94802
|
+
temperature: z17.number().min(0).max(2).optional(),
|
|
94803
|
+
top_p: z17.number().min(0).max(1).optional(),
|
|
94804
|
+
maxTokens: z17.number().optional(),
|
|
94805
|
+
thinking: z17.object({
|
|
94806
|
+
type: z17.enum(["enabled", "disabled"]),
|
|
94807
|
+
budgetTokens: z17.number().optional()
|
|
94731
94808
|
}).optional()
|
|
94732
94809
|
});
|
|
94733
|
-
var FallbackModelStringArraySchema =
|
|
94734
|
-
var FallbackModelObjectArraySchema =
|
|
94735
|
-
var FallbackModelMixedArraySchema =
|
|
94736
|
-
var FallbackModelsSchema =
|
|
94737
|
-
|
|
94810
|
+
var FallbackModelStringArraySchema = z17.array(z17.string());
|
|
94811
|
+
var FallbackModelObjectArraySchema = z17.array(FallbackModelObjectSchema);
|
|
94812
|
+
var FallbackModelMixedArraySchema = z17.array(z17.union([z17.string(), FallbackModelObjectSchema]));
|
|
94813
|
+
var FallbackModelsSchema = z17.union([
|
|
94814
|
+
z17.string(),
|
|
94738
94815
|
FallbackModelStringArraySchema,
|
|
94739
94816
|
FallbackModelObjectArraySchema,
|
|
94740
94817
|
FallbackModelMixedArraySchema
|
|
94741
94818
|
]);
|
|
94742
94819
|
|
|
94743
94820
|
// packages/omo-opencode/src/config/schema/internal/permission.ts
|
|
94744
|
-
import { z as
|
|
94745
|
-
var PermissionValueSchema =
|
|
94746
|
-
var BashPermissionSchema =
|
|
94821
|
+
import { z as z18 } from "zod";
|
|
94822
|
+
var PermissionValueSchema = z18.enum(["ask", "allow", "deny"]);
|
|
94823
|
+
var BashPermissionSchema = z18.union([
|
|
94747
94824
|
PermissionValueSchema,
|
|
94748
|
-
|
|
94825
|
+
z18.record(z18.string(), PermissionValueSchema)
|
|
94749
94826
|
]);
|
|
94750
|
-
var AgentPermissionSchema =
|
|
94827
|
+
var AgentPermissionSchema = z18.object({
|
|
94751
94828
|
edit: PermissionValueSchema.optional(),
|
|
94752
94829
|
bash: BashPermissionSchema.optional(),
|
|
94753
94830
|
webfetch: PermissionValueSchema.optional(),
|
|
@@ -94757,50 +94834,50 @@ var AgentPermissionSchema = z17.object({
|
|
|
94757
94834
|
}).catchall(PermissionValueSchema.optional());
|
|
94758
94835
|
|
|
94759
94836
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
94760
|
-
var AgentOverrideConfigSchema =
|
|
94761
|
-
model:
|
|
94762
|
-
models:
|
|
94837
|
+
var AgentOverrideConfigSchema = z19.object({
|
|
94838
|
+
model: z19.string().optional(),
|
|
94839
|
+
models: z19.array(z19.union([z19.string(), FallbackModelObjectSchema])).optional(),
|
|
94763
94840
|
fallback_models: FallbackModelsSchema.optional(),
|
|
94764
94841
|
reasoning: OmoReasoningSchema.optional(),
|
|
94765
|
-
variant:
|
|
94766
|
-
category:
|
|
94767
|
-
skills:
|
|
94768
|
-
temperature:
|
|
94769
|
-
top_p:
|
|
94770
|
-
prompt:
|
|
94771
|
-
prompt_append:
|
|
94772
|
-
tools:
|
|
94773
|
-
disable:
|
|
94774
|
-
description:
|
|
94775
|
-
mode:
|
|
94776
|
-
color:
|
|
94777
|
-
displayName:
|
|
94842
|
+
variant: z19.string().optional(),
|
|
94843
|
+
category: z19.string().optional(),
|
|
94844
|
+
skills: z19.array(z19.string()).optional(),
|
|
94845
|
+
temperature: z19.number().min(0).max(2).optional(),
|
|
94846
|
+
top_p: z19.number().min(0).max(1).optional(),
|
|
94847
|
+
prompt: z19.string().optional(),
|
|
94848
|
+
prompt_append: z19.string().optional(),
|
|
94849
|
+
tools: z19.record(z19.string(), z19.boolean()).optional(),
|
|
94850
|
+
disable: z19.boolean().optional(),
|
|
94851
|
+
description: z19.string().optional(),
|
|
94852
|
+
mode: z19.enum(["subagent", "primary", "all"]).optional(),
|
|
94853
|
+
color: z19.string().regex(/^#[0-9A-Fa-f]{6}$/).optional(),
|
|
94854
|
+
displayName: z19.string().optional(),
|
|
94778
94855
|
permission: AgentPermissionSchema.optional(),
|
|
94779
|
-
maxTokens:
|
|
94780
|
-
thinking:
|
|
94781
|
-
type:
|
|
94782
|
-
budgetTokens:
|
|
94856
|
+
maxTokens: z19.number().optional(),
|
|
94857
|
+
thinking: z19.object({
|
|
94858
|
+
type: z19.enum(["enabled", "disabled"]),
|
|
94859
|
+
budgetTokens: z19.number().optional()
|
|
94783
94860
|
}).optional(),
|
|
94784
|
-
reasoningEffort:
|
|
94785
|
-
textVerbosity:
|
|
94786
|
-
providerOptions:
|
|
94787
|
-
ultrawork:
|
|
94788
|
-
model:
|
|
94861
|
+
reasoningEffort: z19.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
94862
|
+
textVerbosity: z19.enum(["low", "medium", "high"]).optional(),
|
|
94863
|
+
providerOptions: z19.record(z19.string(), z19.unknown()).optional(),
|
|
94864
|
+
ultrawork: z19.object({
|
|
94865
|
+
model: z19.string().optional(),
|
|
94789
94866
|
reasoning: OmoReasoningSchema.optional(),
|
|
94790
|
-
variant:
|
|
94867
|
+
variant: z19.string().optional()
|
|
94791
94868
|
}).optional(),
|
|
94792
|
-
compaction:
|
|
94793
|
-
model:
|
|
94869
|
+
compaction: z19.object({
|
|
94870
|
+
model: z19.string().optional(),
|
|
94794
94871
|
reasoning: OmoReasoningSchema.optional(),
|
|
94795
|
-
variant:
|
|
94872
|
+
variant: z19.string().optional()
|
|
94796
94873
|
}).optional()
|
|
94797
94874
|
});
|
|
94798
|
-
var AgentOverridesSchema =
|
|
94875
|
+
var AgentOverridesSchema = z19.object({
|
|
94799
94876
|
build: AgentOverrideConfigSchema.optional(),
|
|
94800
94877
|
plan: AgentOverrideConfigSchema.optional(),
|
|
94801
94878
|
sisyphus: AgentOverrideConfigSchema.optional(),
|
|
94802
94879
|
hephaestus: AgentOverrideConfigSchema.extend({
|
|
94803
|
-
allow_non_gpt_model:
|
|
94880
|
+
allow_non_gpt_model: z19.boolean().optional()
|
|
94804
94881
|
}).optional(),
|
|
94805
94882
|
"sisyphus-junior": AgentOverrideConfigSchema.optional(),
|
|
94806
94883
|
"OpenCode-Builder": AgentOverrideConfigSchema.optional(),
|
|
@@ -94814,73 +94891,73 @@ var AgentOverridesSchema = z18.object({
|
|
|
94814
94891
|
atlas: AgentOverrideConfigSchema.optional()
|
|
94815
94892
|
}).catchall(AgentOverrideConfigSchema.optional());
|
|
94816
94893
|
// packages/omo-opencode/src/config/schema/babysitting.ts
|
|
94817
|
-
import { z as
|
|
94818
|
-
var BabysittingConfigSchema =
|
|
94819
|
-
timeout_ms:
|
|
94894
|
+
import { z as z20 } from "zod";
|
|
94895
|
+
var BabysittingConfigSchema = z20.object({
|
|
94896
|
+
timeout_ms: z20.number().default(120000)
|
|
94820
94897
|
});
|
|
94821
94898
|
// packages/omo-opencode/src/config/schema/background-task.ts
|
|
94822
|
-
import { z as
|
|
94823
|
-
var CircuitBreakerConfigSchema =
|
|
94824
|
-
enabled:
|
|
94825
|
-
maxToolCalls:
|
|
94826
|
-
consecutiveThreshold:
|
|
94827
|
-
});
|
|
94828
|
-
var BackgroundTaskConfigSchema =
|
|
94829
|
-
defaultConcurrency:
|
|
94830
|
-
providerConcurrency:
|
|
94831
|
-
modelConcurrency:
|
|
94832
|
-
maxDepth:
|
|
94833
|
-
maxLiveDescendantsPerRoot:
|
|
94834
|
-
staleTimeoutMs:
|
|
94835
|
-
messageStalenessTimeoutMs:
|
|
94836
|
-
taskTtlMs:
|
|
94837
|
-
sessionGoneTimeoutMs:
|
|
94838
|
-
taskCleanupDelayMs:
|
|
94839
|
-
syncPollTimeoutMs:
|
|
94840
|
-
maxToolCalls:
|
|
94899
|
+
import { z as z21 } from "zod";
|
|
94900
|
+
var CircuitBreakerConfigSchema = z21.object({
|
|
94901
|
+
enabled: z21.boolean().optional(),
|
|
94902
|
+
maxToolCalls: z21.number().int().min(10).optional(),
|
|
94903
|
+
consecutiveThreshold: z21.number().int().min(5).optional()
|
|
94904
|
+
});
|
|
94905
|
+
var BackgroundTaskConfigSchema = z21.object({
|
|
94906
|
+
defaultConcurrency: z21.number().min(0).optional(),
|
|
94907
|
+
providerConcurrency: z21.record(z21.string(), z21.number().min(0)).optional(),
|
|
94908
|
+
modelConcurrency: z21.record(z21.string(), z21.number().min(0)).optional(),
|
|
94909
|
+
maxDepth: z21.number().int().min(1).optional(),
|
|
94910
|
+
maxLiveDescendantsPerRoot: z21.number().int().min(0).optional(),
|
|
94911
|
+
staleTimeoutMs: z21.number().min(60000).optional(),
|
|
94912
|
+
messageStalenessTimeoutMs: z21.number().min(60000).optional(),
|
|
94913
|
+
taskTtlMs: z21.number().min(300000).optional(),
|
|
94914
|
+
sessionGoneTimeoutMs: z21.number().min(1e4).optional(),
|
|
94915
|
+
taskCleanupDelayMs: z21.number().min(60000).optional(),
|
|
94916
|
+
syncPollTimeoutMs: z21.number().min(60000).optional(),
|
|
94917
|
+
maxToolCalls: z21.number().int().min(10).optional(),
|
|
94841
94918
|
circuitBreaker: CircuitBreakerConfigSchema.optional()
|
|
94842
94919
|
});
|
|
94843
94920
|
// packages/omo-opencode/src/config/schema/browser-automation.ts
|
|
94844
|
-
import { z as
|
|
94845
|
-
var BrowserAutomationProviderSchema =
|
|
94921
|
+
import { z as z22 } from "zod";
|
|
94922
|
+
var BrowserAutomationProviderSchema = z22.enum([
|
|
94846
94923
|
"playwright",
|
|
94847
94924
|
"dev-browser",
|
|
94848
94925
|
"playwright-cli"
|
|
94849
94926
|
], {
|
|
94850
94927
|
error: (issue) => `Browser provider ${JSON.stringify(issue.input)} is no longer supported; use the built-in browser path: Bun.WebView / playwright-core scripts`
|
|
94851
94928
|
});
|
|
94852
|
-
var BrowserAutomationConfigSchema =
|
|
94929
|
+
var BrowserAutomationConfigSchema = z22.object({
|
|
94853
94930
|
provider: BrowserAutomationProviderSchema.default("playwright"),
|
|
94854
|
-
playwright_mcp_args:
|
|
94931
|
+
playwright_mcp_args: z22.array(z22.string()).optional()
|
|
94855
94932
|
});
|
|
94856
94933
|
// packages/omo-opencode/src/config/schema/categories.ts
|
|
94857
|
-
import { z as
|
|
94858
|
-
var CategoryConfigSchema =
|
|
94859
|
-
description:
|
|
94860
|
-
model:
|
|
94861
|
-
models:
|
|
94934
|
+
import { z as z23 } from "zod";
|
|
94935
|
+
var CategoryConfigSchema = z23.object({
|
|
94936
|
+
description: z23.string().optional(),
|
|
94937
|
+
model: z23.string().optional(),
|
|
94938
|
+
models: z23.array(z23.union([z23.string(), FallbackModelObjectSchema])).optional(),
|
|
94862
94939
|
fallback_models: FallbackModelsSchema.optional(),
|
|
94863
94940
|
reasoning: OmoReasoningSchema.optional(),
|
|
94864
|
-
variant:
|
|
94865
|
-
temperature:
|
|
94866
|
-
top_p:
|
|
94867
|
-
max_tokens:
|
|
94868
|
-
provider_options:
|
|
94869
|
-
maxTokens:
|
|
94870
|
-
thinking:
|
|
94871
|
-
type:
|
|
94872
|
-
budgetTokens:
|
|
94941
|
+
variant: z23.string().optional(),
|
|
94942
|
+
temperature: z23.number().min(0).max(2).optional(),
|
|
94943
|
+
top_p: z23.number().min(0).max(1).optional(),
|
|
94944
|
+
max_tokens: z23.number().int().positive().optional(),
|
|
94945
|
+
provider_options: z23.record(z23.string(), z23.unknown()).optional(),
|
|
94946
|
+
maxTokens: z23.number().optional(),
|
|
94947
|
+
thinking: z23.object({
|
|
94948
|
+
type: z23.enum(["enabled", "disabled"]),
|
|
94949
|
+
budgetTokens: z23.number().optional()
|
|
94873
94950
|
}).optional(),
|
|
94874
|
-
reasoningEffort:
|
|
94875
|
-
textVerbosity:
|
|
94876
|
-
tools:
|
|
94877
|
-
prompt_append:
|
|
94878
|
-
max_prompt_tokens:
|
|
94879
|
-
is_unstable_agent:
|
|
94880
|
-
disable:
|
|
94881
|
-
warn_unavailable:
|
|
94882
|
-
});
|
|
94883
|
-
var BuiltinCategoryNameSchema =
|
|
94951
|
+
reasoningEffort: z23.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
94952
|
+
textVerbosity: z23.enum(["low", "medium", "high"]).optional(),
|
|
94953
|
+
tools: z23.record(z23.string(), z23.boolean()).optional(),
|
|
94954
|
+
prompt_append: z23.string().optional(),
|
|
94955
|
+
max_prompt_tokens: z23.number().int().positive().optional(),
|
|
94956
|
+
is_unstable_agent: z23.boolean().optional(),
|
|
94957
|
+
disable: z23.boolean().optional(),
|
|
94958
|
+
warn_unavailable: z23.boolean().optional()
|
|
94959
|
+
});
|
|
94960
|
+
var BuiltinCategoryNameSchema = z23.enum([
|
|
94884
94961
|
"visual-engineering",
|
|
94885
94962
|
"ultrabrain",
|
|
94886
94963
|
"deep",
|
|
@@ -94890,29 +94967,29 @@ var BuiltinCategoryNameSchema = z22.enum([
|
|
|
94890
94967
|
"unspecified-high",
|
|
94891
94968
|
"writing"
|
|
94892
94969
|
]);
|
|
94893
|
-
var CategoriesConfigSchema =
|
|
94970
|
+
var CategoriesConfigSchema = z23.record(z23.string(), CategoryConfigSchema);
|
|
94894
94971
|
// packages/omo-opencode/src/config/schema/claude-code.ts
|
|
94895
|
-
import { z as
|
|
94896
|
-
var ClaudeCodeConfigSchema =
|
|
94897
|
-
mcp:
|
|
94898
|
-
commands:
|
|
94899
|
-
skills:
|
|
94900
|
-
agents:
|
|
94901
|
-
hooks:
|
|
94902
|
-
plugins:
|
|
94903
|
-
plugins_override:
|
|
94904
|
-
anthropic_provider:
|
|
94972
|
+
import { z as z24 } from "zod";
|
|
94973
|
+
var ClaudeCodeConfigSchema = z24.object({
|
|
94974
|
+
mcp: z24.boolean().optional(),
|
|
94975
|
+
commands: z24.boolean().optional(),
|
|
94976
|
+
skills: z24.boolean().optional(),
|
|
94977
|
+
agents: z24.boolean().optional(),
|
|
94978
|
+
hooks: z24.boolean().optional(),
|
|
94979
|
+
plugins: z24.boolean().optional(),
|
|
94980
|
+
plugins_override: z24.record(z24.string(), z24.boolean()).optional(),
|
|
94981
|
+
anthropic_provider: z24.string().trim().min(1).refine((v) => !v.includes("/"), {
|
|
94905
94982
|
message: "anthropic_provider must be a provider name without '/'"
|
|
94906
94983
|
}).optional()
|
|
94907
94984
|
});
|
|
94908
94985
|
// packages/omo-opencode/src/config/schema/comment-checker.ts
|
|
94909
|
-
import { z as
|
|
94910
|
-
var CommentCheckerConfigSchema =
|
|
94911
|
-
custom_prompt:
|
|
94986
|
+
import { z as z25 } from "zod";
|
|
94987
|
+
var CommentCheckerConfigSchema = z25.object({
|
|
94988
|
+
custom_prompt: z25.string().optional()
|
|
94912
94989
|
});
|
|
94913
94990
|
// packages/omo-opencode/src/config/schema/commands.ts
|
|
94914
|
-
import { z as
|
|
94915
|
-
var BuiltinCommandNameSchema =
|
|
94991
|
+
import { z as z26 } from "zod";
|
|
94992
|
+
var BuiltinCommandNameSchema = z26.enum([
|
|
94916
94993
|
"goal",
|
|
94917
94994
|
"refactor",
|
|
94918
94995
|
"ulw-execute",
|
|
@@ -94921,21 +94998,21 @@ var BuiltinCommandNameSchema = z25.enum([
|
|
|
94921
94998
|
"hyperplan"
|
|
94922
94999
|
]);
|
|
94923
95000
|
// packages/omo-opencode/src/config/schema/default-mode.ts
|
|
94924
|
-
import { z as
|
|
94925
|
-
var DefaultModeConfigSchema =
|
|
94926
|
-
ultrawork:
|
|
94927
|
-
goal:
|
|
95001
|
+
import { z as z27 } from "zod";
|
|
95002
|
+
var DefaultModeConfigSchema = z27.object({
|
|
95003
|
+
ultrawork: z27.boolean().default(false),
|
|
95004
|
+
goal: z27.boolean().default(false)
|
|
94928
95005
|
});
|
|
94929
95006
|
// packages/omo-opencode/src/config/schema/dynamic-context-pruning.ts
|
|
94930
|
-
import { z as
|
|
94931
|
-
var DynamicContextPruningConfigSchema =
|
|
94932
|
-
enabled:
|
|
94933
|
-
notification:
|
|
94934
|
-
turn_protection:
|
|
94935
|
-
enabled:
|
|
94936
|
-
turns:
|
|
95007
|
+
import { z as z28 } from "zod";
|
|
95008
|
+
var DynamicContextPruningConfigSchema = z28.object({
|
|
95009
|
+
enabled: z28.boolean().default(false),
|
|
95010
|
+
notification: z28.enum(["off", "minimal", "detailed"]).default("detailed"),
|
|
95011
|
+
turn_protection: z28.object({
|
|
95012
|
+
enabled: z28.boolean().default(true),
|
|
95013
|
+
turns: z28.number().min(1).max(10).default(3)
|
|
94937
95014
|
}).optional(),
|
|
94938
|
-
protected_tools:
|
|
95015
|
+
protected_tools: z28.array(z28.string()).default([
|
|
94939
95016
|
"task",
|
|
94940
95017
|
"todowrite",
|
|
94941
95018
|
"todoread",
|
|
@@ -94944,45 +95021,45 @@ var DynamicContextPruningConfigSchema = z27.object({
|
|
|
94944
95021
|
"session_write",
|
|
94945
95022
|
"session_search"
|
|
94946
95023
|
]),
|
|
94947
|
-
strategies:
|
|
94948
|
-
deduplication:
|
|
94949
|
-
enabled:
|
|
95024
|
+
strategies: z28.object({
|
|
95025
|
+
deduplication: z28.object({
|
|
95026
|
+
enabled: z28.boolean().default(true)
|
|
94950
95027
|
}).optional(),
|
|
94951
|
-
supersede_writes:
|
|
94952
|
-
enabled:
|
|
94953
|
-
aggressive:
|
|
95028
|
+
supersede_writes: z28.object({
|
|
95029
|
+
enabled: z28.boolean().default(true),
|
|
95030
|
+
aggressive: z28.boolean().default(false)
|
|
94954
95031
|
}).optional(),
|
|
94955
|
-
purge_errors:
|
|
94956
|
-
enabled:
|
|
94957
|
-
turns:
|
|
95032
|
+
purge_errors: z28.object({
|
|
95033
|
+
enabled: z28.boolean().default(true),
|
|
95034
|
+
turns: z28.number().min(1).max(20).default(5)
|
|
94958
95035
|
}).optional()
|
|
94959
95036
|
}).optional()
|
|
94960
95037
|
});
|
|
94961
95038
|
// packages/omo-opencode/src/config/schema/experimental.ts
|
|
94962
|
-
import { z as
|
|
94963
|
-
var ExperimentalConfigSchema =
|
|
94964
|
-
aggressive_truncation:
|
|
94965
|
-
preemptive_compaction:
|
|
94966
|
-
truncate_all_tool_outputs:
|
|
95039
|
+
import { z as z29 } from "zod";
|
|
95040
|
+
var ExperimentalConfigSchema = z29.object({
|
|
95041
|
+
aggressive_truncation: z29.boolean().optional(),
|
|
95042
|
+
preemptive_compaction: z29.boolean().optional(),
|
|
95043
|
+
truncate_all_tool_outputs: z29.boolean().optional(),
|
|
94967
95044
|
dynamic_context_pruning: DynamicContextPruningConfigSchema.optional(),
|
|
94968
|
-
task_system:
|
|
94969
|
-
plugin_load_timeout_ms:
|
|
94970
|
-
safe_hook_creation:
|
|
94971
|
-
disable_omo_env:
|
|
94972
|
-
hashline_edit:
|
|
94973
|
-
model_fallback_title:
|
|
94974
|
-
max_tools:
|
|
94975
|
-
disable_live_parent_wake_routing:
|
|
95045
|
+
task_system: z29.boolean().optional(),
|
|
95046
|
+
plugin_load_timeout_ms: z29.number().min(1000).optional(),
|
|
95047
|
+
safe_hook_creation: z29.boolean().optional(),
|
|
95048
|
+
disable_omo_env: z29.boolean().optional(),
|
|
95049
|
+
hashline_edit: z29.boolean().optional(),
|
|
95050
|
+
model_fallback_title: z29.boolean().optional(),
|
|
95051
|
+
max_tools: z29.number().int().min(1).optional(),
|
|
95052
|
+
disable_live_parent_wake_routing: z29.boolean().optional()
|
|
94976
95053
|
});
|
|
94977
95054
|
// packages/omo-opencode/src/config/schema/goal.ts
|
|
94978
|
-
import { z as
|
|
94979
|
-
var GoalConfigSchema =
|
|
94980
|
-
enabled:
|
|
94981
|
-
auto_start:
|
|
94982
|
-
default_max_iterations:
|
|
95055
|
+
import { z as z30 } from "zod";
|
|
95056
|
+
var GoalConfigSchema = z30.object({
|
|
95057
|
+
enabled: z30.boolean().default(false),
|
|
95058
|
+
auto_start: z30.boolean().default(false),
|
|
95059
|
+
default_max_iterations: z30.number().min(1).max(1000).default(100)
|
|
94983
95060
|
});
|
|
94984
95061
|
// packages/skills-loader-core/src/config/git-env-prefix.ts
|
|
94985
|
-
import { z as
|
|
95062
|
+
import { z as z31 } from "zod";
|
|
94986
95063
|
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_-]*)*$/;
|
|
94987
95064
|
var GIT_ENV_PREFIX_VALIDATION_MESSAGE = 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"';
|
|
94988
95065
|
function isValidGitEnvPrefix(value) {
|
|
@@ -94997,17 +95074,17 @@ function assertValidGitEnvPrefix(value) {
|
|
|
94997
95074
|
}
|
|
94998
95075
|
return value;
|
|
94999
95076
|
}
|
|
95000
|
-
var GitEnvPrefixSchema =
|
|
95077
|
+
var GitEnvPrefixSchema = z31.string().refine(isValidGitEnvPrefix, { message: GIT_ENV_PREFIX_VALIDATION_MESSAGE }).default("GIT_MASTER=1");
|
|
95001
95078
|
// packages/omo-opencode/src/config/schema/git-master.ts
|
|
95002
|
-
import { z as
|
|
95003
|
-
var GitMasterConfigSchema =
|
|
95004
|
-
commit_footer:
|
|
95005
|
-
include_co_authored_by:
|
|
95079
|
+
import { z as z32 } from "zod";
|
|
95080
|
+
var GitMasterConfigSchema = z32.object({
|
|
95081
|
+
commit_footer: z32.union([z32.boolean(), z32.string()]).default(false),
|
|
95082
|
+
include_co_authored_by: z32.boolean().default(false),
|
|
95006
95083
|
git_env_prefix: GitEnvPrefixSchema
|
|
95007
95084
|
});
|
|
95008
95085
|
// packages/omo-opencode/src/config/schema/hooks.ts
|
|
95009
|
-
import { z as
|
|
95010
|
-
var HookNameSchema =
|
|
95086
|
+
import { z as z33 } from "zod";
|
|
95087
|
+
var HookNameSchema = z33.enum([
|
|
95011
95088
|
"todo-continuation-enforcer",
|
|
95012
95089
|
"session-notification",
|
|
95013
95090
|
"comment-checker",
|
|
@@ -95066,240 +95143,240 @@ var HookNameSchema = z32.enum([
|
|
|
95066
95143
|
"native-edition-nudge"
|
|
95067
95144
|
]);
|
|
95068
95145
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
95069
|
-
import { z as
|
|
95070
|
-
var I18nConfigSchema =
|
|
95071
|
-
locale:
|
|
95146
|
+
import { z as z34 } from "zod";
|
|
95147
|
+
var I18nConfigSchema = z34.object({
|
|
95148
|
+
locale: z34.string().optional()
|
|
95072
95149
|
});
|
|
95073
95150
|
// packages/omo-opencode/src/config/schema/keyword-detector.ts
|
|
95074
|
-
import { z as
|
|
95075
|
-
var KeywordTypeSchema =
|
|
95076
|
-
var KeywordDetectorConfigSchema =
|
|
95077
|
-
enabled_expansions:
|
|
95078
|
-
disabled_keywords:
|
|
95151
|
+
import { z as z35 } from "zod";
|
|
95152
|
+
var KeywordTypeSchema = z35.enum(["ultrawork", "team", "hyperplan", "hyperplan-ultrawork"]);
|
|
95153
|
+
var KeywordDetectorConfigSchema = z35.object({
|
|
95154
|
+
enabled_expansions: z35.array(KeywordTypeSchema).optional(),
|
|
95155
|
+
disabled_keywords: z35.array(KeywordTypeSchema).optional()
|
|
95079
95156
|
});
|
|
95080
95157
|
// packages/omo-opencode/src/config/schema/model-capabilities.ts
|
|
95081
|
-
import { z as
|
|
95082
|
-
var ModelCapabilitiesConfigSchema =
|
|
95083
|
-
enabled:
|
|
95084
|
-
auto_refresh_on_start:
|
|
95085
|
-
refresh_timeout_ms:
|
|
95086
|
-
source_url:
|
|
95158
|
+
import { z as z36 } from "zod";
|
|
95159
|
+
var ModelCapabilitiesConfigSchema = z36.object({
|
|
95160
|
+
enabled: z36.boolean().optional(),
|
|
95161
|
+
auto_refresh_on_start: z36.boolean().optional(),
|
|
95162
|
+
refresh_timeout_ms: z36.number().int().positive().optional(),
|
|
95163
|
+
source_url: z36.string().url().optional()
|
|
95087
95164
|
});
|
|
95088
95165
|
// packages/omo-opencode/src/config/schema/notification.ts
|
|
95089
|
-
import { z as
|
|
95090
|
-
var NotificationConfigSchema =
|
|
95091
|
-
force_enable:
|
|
95166
|
+
import { z as z37 } from "zod";
|
|
95167
|
+
var NotificationConfigSchema = z37.object({
|
|
95168
|
+
force_enable: z37.boolean().optional()
|
|
95092
95169
|
});
|
|
95093
95170
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
95094
|
-
import { z as
|
|
95171
|
+
import { z as z51 } from "zod";
|
|
95095
95172
|
|
|
95096
95173
|
// packages/omo-opencode/src/mcp/types.ts
|
|
95097
|
-
import { z as
|
|
95098
|
-
var McpNameSchema =
|
|
95099
|
-
var AnyMcpNameSchema =
|
|
95174
|
+
import { z as z38 } from "zod";
|
|
95175
|
+
var McpNameSchema = z38.enum(["websearch", "context7", "grep_app", "lsp"]);
|
|
95176
|
+
var AnyMcpNameSchema = z38.string().min(1);
|
|
95100
95177
|
|
|
95101
95178
|
// packages/omo-opencode/src/config/schema/agent-definitions.ts
|
|
95102
|
-
import { z as
|
|
95103
|
-
var AgentDefinitionPathSchema =
|
|
95104
|
-
var AgentDefinitionsConfigSchema =
|
|
95179
|
+
import { z as z39 } from "zod";
|
|
95180
|
+
var AgentDefinitionPathSchema = z39.string().min(1);
|
|
95181
|
+
var AgentDefinitionsConfigSchema = z39.array(AgentDefinitionPathSchema).optional();
|
|
95105
95182
|
|
|
95106
95183
|
// packages/omo-opencode/src/config/schema/openclaw.ts
|
|
95107
|
-
import { z as
|
|
95108
|
-
var OpenClawGatewaySchema =
|
|
95109
|
-
type:
|
|
95110
|
-
url:
|
|
95111
|
-
method:
|
|
95112
|
-
headers:
|
|
95113
|
-
command:
|
|
95114
|
-
timeout:
|
|
95115
|
-
});
|
|
95116
|
-
var OpenClawHookSchema =
|
|
95117
|
-
enabled:
|
|
95118
|
-
gateway:
|
|
95119
|
-
instruction:
|
|
95120
|
-
});
|
|
95121
|
-
var OpenClawReplyListenerConfigSchema =
|
|
95122
|
-
discordBotToken:
|
|
95123
|
-
discordChannelId:
|
|
95124
|
-
discordMention:
|
|
95125
|
-
authorizedDiscordUserIds:
|
|
95126
|
-
telegramBotToken:
|
|
95127
|
-
telegramChatId:
|
|
95128
|
-
pollIntervalMs:
|
|
95129
|
-
rateLimitPerMinute:
|
|
95130
|
-
maxMessageLength:
|
|
95131
|
-
includePrefix:
|
|
95132
|
-
});
|
|
95133
|
-
var OpenClawConfigSchema =
|
|
95134
|
-
enabled:
|
|
95135
|
-
gateways:
|
|
95136
|
-
hooks:
|
|
95184
|
+
import { z as z40 } from "zod";
|
|
95185
|
+
var OpenClawGatewaySchema = z40.object({
|
|
95186
|
+
type: z40.enum(["http", "command"]).default("http"),
|
|
95187
|
+
url: z40.string().optional(),
|
|
95188
|
+
method: z40.string().default("POST"),
|
|
95189
|
+
headers: z40.record(z40.string(), z40.string()).optional(),
|
|
95190
|
+
command: z40.string().optional(),
|
|
95191
|
+
timeout: z40.number().optional()
|
|
95192
|
+
});
|
|
95193
|
+
var OpenClawHookSchema = z40.object({
|
|
95194
|
+
enabled: z40.boolean().default(true),
|
|
95195
|
+
gateway: z40.string(),
|
|
95196
|
+
instruction: z40.string()
|
|
95197
|
+
});
|
|
95198
|
+
var OpenClawReplyListenerConfigSchema = z40.object({
|
|
95199
|
+
discordBotToken: z40.string().optional(),
|
|
95200
|
+
discordChannelId: z40.string().optional(),
|
|
95201
|
+
discordMention: z40.string().optional(),
|
|
95202
|
+
authorizedDiscordUserIds: z40.array(z40.string()).default([]),
|
|
95203
|
+
telegramBotToken: z40.string().optional(),
|
|
95204
|
+
telegramChatId: z40.string().optional(),
|
|
95205
|
+
pollIntervalMs: z40.number().default(3000),
|
|
95206
|
+
rateLimitPerMinute: z40.number().default(10),
|
|
95207
|
+
maxMessageLength: z40.number().default(500),
|
|
95208
|
+
includePrefix: z40.boolean().default(true)
|
|
95209
|
+
});
|
|
95210
|
+
var OpenClawConfigSchema = z40.object({
|
|
95211
|
+
enabled: z40.boolean().default(false),
|
|
95212
|
+
gateways: z40.record(z40.string(), OpenClawGatewaySchema).default({}),
|
|
95213
|
+
hooks: z40.record(z40.string(), OpenClawHookSchema).default({}),
|
|
95137
95214
|
replyListener: OpenClawReplyListenerConfigSchema.optional()
|
|
95138
95215
|
});
|
|
95139
95216
|
|
|
95140
95217
|
// packages/omo-opencode/src/config/schema/monitor.ts
|
|
95141
|
-
import { z as
|
|
95142
|
-
var MonitorConfigSchema =
|
|
95143
|
-
enabled:
|
|
95144
|
-
live_mode_enabled:
|
|
95145
|
-
allowed_commands:
|
|
95146
|
-
max_monitors_per_session:
|
|
95147
|
-
max_runtime_ms:
|
|
95148
|
-
batch_max_lines:
|
|
95149
|
-
batch_max_bytes:
|
|
95150
|
-
flush_interval_ms:
|
|
95151
|
-
ring_max_lines:
|
|
95152
|
-
line_max_bytes:
|
|
95153
|
-
pattern_max_length:
|
|
95218
|
+
import { z as z41 } from "zod";
|
|
95219
|
+
var MonitorConfigSchema = z41.object({
|
|
95220
|
+
enabled: z41.boolean().default(false),
|
|
95221
|
+
live_mode_enabled: z41.boolean().default(false),
|
|
95222
|
+
allowed_commands: z41.array(z41.string()).optional(),
|
|
95223
|
+
max_monitors_per_session: z41.number().int().min(1).max(16).default(3),
|
|
95224
|
+
max_runtime_ms: z41.number().int().min(1000).default(1800000),
|
|
95225
|
+
batch_max_lines: z41.number().int().min(1).default(50),
|
|
95226
|
+
batch_max_bytes: z41.number().int().min(1024).default(16384),
|
|
95227
|
+
flush_interval_ms: z41.number().int().min(250).default(1000),
|
|
95228
|
+
ring_max_lines: z41.number().int().min(1).default(1000),
|
|
95229
|
+
line_max_bytes: z41.number().int().min(256).default(8192),
|
|
95230
|
+
pattern_max_length: z41.number().int().min(1).default(512)
|
|
95154
95231
|
});
|
|
95155
95232
|
|
|
95156
95233
|
// packages/omo-opencode/src/config/schema/runtime-fallback.ts
|
|
95157
|
-
import { z as
|
|
95158
|
-
var RuntimeFallbackConfigSchema =
|
|
95159
|
-
enabled:
|
|
95160
|
-
retry_on_errors:
|
|
95161
|
-
max_fallback_attempts:
|
|
95162
|
-
cooldown_seconds:
|
|
95163
|
-
timeout_seconds:
|
|
95164
|
-
notify_on_fallback:
|
|
95165
|
-
restore_primary_after_cooldown:
|
|
95234
|
+
import { z as z42 } from "zod";
|
|
95235
|
+
var RuntimeFallbackConfigSchema = z42.object({
|
|
95236
|
+
enabled: z42.boolean().optional(),
|
|
95237
|
+
retry_on_errors: z42.array(z42.number()).optional(),
|
|
95238
|
+
max_fallback_attempts: z42.number().min(1).max(20).optional(),
|
|
95239
|
+
cooldown_seconds: z42.number().min(0).optional(),
|
|
95240
|
+
timeout_seconds: z42.number().min(0).optional(),
|
|
95241
|
+
notify_on_fallback: z42.boolean().optional(),
|
|
95242
|
+
restore_primary_after_cooldown: z42.boolean().optional()
|
|
95166
95243
|
});
|
|
95167
95244
|
|
|
95168
95245
|
// packages/team-core/src/config.ts
|
|
95169
|
-
import * as
|
|
95170
|
-
var TeamModeConfigSchema =
|
|
95171
|
-
enabled:
|
|
95172
|
-
tmux_visualization:
|
|
95173
|
-
max_parallel_members:
|
|
95174
|
-
max_members:
|
|
95175
|
-
max_messages_per_run:
|
|
95176
|
-
max_wall_clock_minutes:
|
|
95177
|
-
max_member_turns:
|
|
95178
|
-
base_dir:
|
|
95179
|
-
message_payload_max_bytes:
|
|
95180
|
-
recipient_unread_max_bytes:
|
|
95181
|
-
mailbox_poll_interval_ms:
|
|
95246
|
+
import * as z43 from "zod";
|
|
95247
|
+
var TeamModeConfigSchema = z43.object({
|
|
95248
|
+
enabled: z43.boolean().default(false),
|
|
95249
|
+
tmux_visualization: z43.boolean().default(false),
|
|
95250
|
+
max_parallel_members: z43.number().int().min(1).max(8).default(4),
|
|
95251
|
+
max_members: z43.number().int().min(1).max(8).default(8),
|
|
95252
|
+
max_messages_per_run: z43.number().int().min(1).default(1e4),
|
|
95253
|
+
max_wall_clock_minutes: z43.number().int().min(1).default(120),
|
|
95254
|
+
max_member_turns: z43.number().int().min(1).default(500),
|
|
95255
|
+
base_dir: z43.string().optional(),
|
|
95256
|
+
message_payload_max_bytes: z43.number().int().min(1024).default(32768),
|
|
95257
|
+
recipient_unread_max_bytes: z43.number().int().min(1024).default(262144),
|
|
95258
|
+
mailbox_poll_interval_ms: z43.number().int().min(500).default(3000)
|
|
95182
95259
|
});
|
|
95183
95260
|
// packages/omo-opencode/src/config/schema/skills.ts
|
|
95184
|
-
import { z as
|
|
95185
|
-
var SkillSourceSchema =
|
|
95186
|
-
|
|
95187
|
-
|
|
95188
|
-
path:
|
|
95189
|
-
recursive:
|
|
95190
|
-
glob:
|
|
95261
|
+
import { z as z44 } from "zod";
|
|
95262
|
+
var SkillSourceSchema = z44.union([
|
|
95263
|
+
z44.string(),
|
|
95264
|
+
z44.object({
|
|
95265
|
+
path: z44.string(),
|
|
95266
|
+
recursive: z44.boolean().optional(),
|
|
95267
|
+
glob: z44.string().optional()
|
|
95191
95268
|
})
|
|
95192
95269
|
]);
|
|
95193
|
-
var SkillDefinitionSchema =
|
|
95194
|
-
description:
|
|
95195
|
-
template:
|
|
95196
|
-
from:
|
|
95197
|
-
model:
|
|
95198
|
-
agent:
|
|
95199
|
-
subtask:
|
|
95200
|
-
"argument-hint":
|
|
95201
|
-
license:
|
|
95202
|
-
compatibility:
|
|
95203
|
-
metadata:
|
|
95204
|
-
"allowed-tools":
|
|
95205
|
-
disable:
|
|
95206
|
-
});
|
|
95207
|
-
var SkillEntrySchema =
|
|
95208
|
-
var SkillsConfigSchema =
|
|
95209
|
-
|
|
95210
|
-
|
|
95211
|
-
sources:
|
|
95212
|
-
enable:
|
|
95213
|
-
disable:
|
|
95270
|
+
var SkillDefinitionSchema = z44.object({
|
|
95271
|
+
description: z44.string().optional(),
|
|
95272
|
+
template: z44.string().optional(),
|
|
95273
|
+
from: z44.string().optional(),
|
|
95274
|
+
model: z44.string().optional(),
|
|
95275
|
+
agent: z44.string().optional(),
|
|
95276
|
+
subtask: z44.boolean().optional(),
|
|
95277
|
+
"argument-hint": z44.string().optional(),
|
|
95278
|
+
license: z44.string().optional(),
|
|
95279
|
+
compatibility: z44.string().optional(),
|
|
95280
|
+
metadata: z44.record(z44.string(), z44.unknown()).optional(),
|
|
95281
|
+
"allowed-tools": z44.array(z44.string()).optional(),
|
|
95282
|
+
disable: z44.boolean().optional()
|
|
95283
|
+
});
|
|
95284
|
+
var SkillEntrySchema = z44.union([z44.boolean(), SkillDefinitionSchema]);
|
|
95285
|
+
var SkillsConfigSchema = z44.union([
|
|
95286
|
+
z44.array(z44.string()),
|
|
95287
|
+
z44.object({
|
|
95288
|
+
sources: z44.array(SkillSourceSchema).optional(),
|
|
95289
|
+
enable: z44.array(z44.string()).optional(),
|
|
95290
|
+
disable: z44.array(z44.string()).optional()
|
|
95214
95291
|
}).catchall(SkillEntrySchema)
|
|
95215
95292
|
]);
|
|
95216
95293
|
|
|
95217
95294
|
// packages/omo-opencode/src/config/schema/sisyphus.ts
|
|
95218
|
-
import { z as
|
|
95219
|
-
var SisyphusTasksConfigSchema =
|
|
95220
|
-
storage_path:
|
|
95221
|
-
task_list_id:
|
|
95222
|
-
claude_code_compat:
|
|
95295
|
+
import { z as z45 } from "zod";
|
|
95296
|
+
var SisyphusTasksConfigSchema = z45.object({
|
|
95297
|
+
storage_path: z45.string().optional(),
|
|
95298
|
+
task_list_id: z45.string().optional(),
|
|
95299
|
+
claude_code_compat: z45.boolean().default(false)
|
|
95223
95300
|
});
|
|
95224
|
-
var SisyphusConfigSchema =
|
|
95301
|
+
var SisyphusConfigSchema = z45.object({
|
|
95225
95302
|
tasks: SisyphusTasksConfigSchema.optional()
|
|
95226
95303
|
});
|
|
95227
95304
|
|
|
95228
95305
|
// packages/omo-opencode/src/config/schema/sisyphus-agent.ts
|
|
95229
|
-
import { z as
|
|
95230
|
-
var SisyphusAgentConfigSchema =
|
|
95231
|
-
disabled:
|
|
95232
|
-
default_builder_enabled:
|
|
95233
|
-
planner_enabled:
|
|
95234
|
-
replace_plan:
|
|
95235
|
-
tdd:
|
|
95306
|
+
import { z as z46 } from "zod";
|
|
95307
|
+
var SisyphusAgentConfigSchema = z46.object({
|
|
95308
|
+
disabled: z46.boolean().optional(),
|
|
95309
|
+
default_builder_enabled: z46.boolean().optional(),
|
|
95310
|
+
planner_enabled: z46.boolean().optional(),
|
|
95311
|
+
replace_plan: z46.boolean().optional(),
|
|
95312
|
+
tdd: z46.boolean().default(true).optional()
|
|
95236
95313
|
});
|
|
95237
95314
|
|
|
95238
95315
|
// packages/omo-opencode/src/config/schema/tmux.ts
|
|
95239
95316
|
init_src3();
|
|
95240
|
-
import { z as
|
|
95241
|
-
var TmuxLayoutSchema =
|
|
95242
|
-
var TmuxIsolationSchema =
|
|
95243
|
-
var TmuxConfigSchema =
|
|
95244
|
-
enabled:
|
|
95317
|
+
import { z as z47 } from "zod";
|
|
95318
|
+
var TmuxLayoutSchema = z47.enum(TMUX_LAYOUT_VALUES);
|
|
95319
|
+
var TmuxIsolationSchema = z47.enum(TMUX_ISOLATION_VALUES);
|
|
95320
|
+
var TmuxConfigSchema = z47.object({
|
|
95321
|
+
enabled: z47.boolean().default(false),
|
|
95245
95322
|
layout: TmuxLayoutSchema.default("main-vertical"),
|
|
95246
|
-
main_pane_size:
|
|
95247
|
-
main_pane_min_width:
|
|
95248
|
-
agent_pane_min_width:
|
|
95323
|
+
main_pane_size: z47.number().min(20).max(80).default(60),
|
|
95324
|
+
main_pane_min_width: z47.number().min(40).default(120),
|
|
95325
|
+
agent_pane_min_width: z47.number().min(20).default(40),
|
|
95249
95326
|
isolation: TmuxIsolationSchema.default("inline")
|
|
95250
95327
|
});
|
|
95251
95328
|
|
|
95252
95329
|
// packages/omo-opencode/src/config/schema/tui.ts
|
|
95253
|
-
import { z as
|
|
95254
|
-
var TuiSidebarConfigSchema =
|
|
95255
|
-
enabled:
|
|
95330
|
+
import { z as z48 } from "zod";
|
|
95331
|
+
var TuiSidebarConfigSchema = z48.object({
|
|
95332
|
+
enabled: z48.boolean().default(true)
|
|
95256
95333
|
});
|
|
95257
|
-
var TuiConfigSchema =
|
|
95334
|
+
var TuiConfigSchema = z48.object({
|
|
95258
95335
|
sidebar: TuiSidebarConfigSchema.default({ enabled: true })
|
|
95259
95336
|
});
|
|
95260
95337
|
|
|
95261
95338
|
// packages/omo-opencode/src/config/schema/ulw-execute.ts
|
|
95262
|
-
import { z as
|
|
95263
|
-
var UlwExecuteConfigSchema =
|
|
95264
|
-
auto_commit:
|
|
95339
|
+
import { z as z49 } from "zod";
|
|
95340
|
+
var UlwExecuteConfigSchema = z49.object({
|
|
95341
|
+
auto_commit: z49.boolean().default(true)
|
|
95265
95342
|
});
|
|
95266
95343
|
|
|
95267
95344
|
// packages/omo-opencode/src/config/schema/websearch.ts
|
|
95268
|
-
import { z as
|
|
95269
|
-
var WebsearchProviderSchema =
|
|
95270
|
-
var WebsearchConfigSchema =
|
|
95345
|
+
import { z as z50 } from "zod";
|
|
95346
|
+
var WebsearchProviderSchema = z50.enum(["exa", "tavily"]);
|
|
95347
|
+
var WebsearchConfigSchema = z50.object({
|
|
95271
95348
|
provider: WebsearchProviderSchema.optional()
|
|
95272
95349
|
});
|
|
95273
95350
|
|
|
95274
95351
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
95275
|
-
var OhMyOpenCodeConfigSchema =
|
|
95276
|
-
$schema:
|
|
95277
|
-
new_task_system_enabled:
|
|
95278
|
-
default_run_agent:
|
|
95279
|
-
agent_order:
|
|
95352
|
+
var OhMyOpenCodeConfigSchema = z51.object({
|
|
95353
|
+
$schema: z51.string().optional(),
|
|
95354
|
+
new_task_system_enabled: z51.boolean().optional(),
|
|
95355
|
+
default_run_agent: z51.string().optional(),
|
|
95356
|
+
agent_order: z51.array(z51.string().max(128)).max(64).optional(),
|
|
95280
95357
|
agent_definitions: AgentDefinitionsConfigSchema,
|
|
95281
|
-
disabled_mcps:
|
|
95282
|
-
disabled_agents:
|
|
95283
|
-
disabled_skills:
|
|
95284
|
-
disabled_hooks:
|
|
95285
|
-
disabled_commands:
|
|
95286
|
-
disabled_tools:
|
|
95287
|
-
disabled_providers:
|
|
95288
|
-
mcp_env_allowlist:
|
|
95289
|
-
hashline_edit:
|
|
95290
|
-
telemetry:
|
|
95291
|
-
model_fallback:
|
|
95358
|
+
disabled_mcps: z51.array(AnyMcpNameSchema).optional(),
|
|
95359
|
+
disabled_agents: z51.array(z51.string()).optional(),
|
|
95360
|
+
disabled_skills: z51.array(z51.string()).optional(),
|
|
95361
|
+
disabled_hooks: z51.array(z51.string()).optional(),
|
|
95362
|
+
disabled_commands: z51.array(BuiltinCommandNameSchema).optional(),
|
|
95363
|
+
disabled_tools: z51.array(z51.string()).optional(),
|
|
95364
|
+
disabled_providers: z51.array(z51.string()).optional(),
|
|
95365
|
+
mcp_env_allowlist: z51.array(z51.string()).optional(),
|
|
95366
|
+
hashline_edit: z51.boolean().optional(),
|
|
95367
|
+
telemetry: z51.boolean().optional().describe("Enable or disable anonymous telemetry. Default: enabled when omitted. Set to false to disable."),
|
|
95368
|
+
model_fallback: z51.boolean().optional(),
|
|
95292
95369
|
agents: AgentOverridesSchema.optional(),
|
|
95293
95370
|
categories: CategoriesConfigSchema.optional(),
|
|
95294
95371
|
claude_code: ClaudeCodeConfigSchema.optional(),
|
|
95295
95372
|
sisyphus_agent: SisyphusAgentConfigSchema.optional(),
|
|
95296
95373
|
comment_checker: CommentCheckerConfigSchema.optional(),
|
|
95297
95374
|
experimental: ExperimentalConfigSchema.optional(),
|
|
95298
|
-
auto_update:
|
|
95375
|
+
auto_update: z51.boolean().optional(),
|
|
95299
95376
|
skills: SkillsConfigSchema.optional(),
|
|
95300
95377
|
goal: GoalConfigSchema.optional(),
|
|
95301
|
-
ralph_loop:
|
|
95302
|
-
runtime_fallback:
|
|
95378
|
+
ralph_loop: z51.record(z51.string(), z51.unknown()).optional(),
|
|
95379
|
+
runtime_fallback: z51.union([z51.boolean(), RuntimeFallbackConfigSchema]).optional(),
|
|
95303
95380
|
background_task: BackgroundTaskConfigSchema.optional(),
|
|
95304
95381
|
notification: NotificationConfigSchema.optional(),
|
|
95305
95382
|
model_capabilities: ModelCapabilitiesConfigSchema.optional(),
|
|
@@ -95322,7 +95399,7 @@ var OhMyOpenCodeConfigSchema = z50.object({
|
|
|
95322
95399
|
ulw_execute: UlwExecuteConfigSchema.optional(),
|
|
95323
95400
|
start_work: UlwExecuteConfigSchema.optional(),
|
|
95324
95401
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
95325
|
-
_migrations:
|
|
95402
|
+
_migrations: z51.array(z51.string()).optional()
|
|
95326
95403
|
});
|
|
95327
95404
|
// packages/omo-opencode/src/config/validate.ts
|
|
95328
95405
|
function shortPath(configPath) {
|
|
@@ -101924,11 +102001,7 @@ init_logger2();
|
|
|
101924
102001
|
|
|
101925
102002
|
// packages/omo-opencode/src/hooks/model-fallback/next-fallback.ts
|
|
101926
102003
|
init_connected_providers_cache();
|
|
101927
|
-
|
|
101928
|
-
// packages/omo-opencode/src/shared/provider-model-id-transform.ts
|
|
101929
|
-
init_src2();
|
|
101930
|
-
|
|
101931
|
-
// packages/omo-opencode/src/hooks/model-fallback/next-fallback.ts
|
|
102004
|
+
init_provider_model_id_transform2();
|
|
101932
102005
|
init_logger2();
|
|
101933
102006
|
function canonicalizeModelID(modelID) {
|
|
101934
102007
|
return modelID.toLowerCase().replace(/\./g, "-");
|
|
@@ -105754,7 +105827,7 @@ function getCachedVersion(options = {}) {
|
|
|
105754
105827
|
// package.json
|
|
105755
105828
|
var package_default = {
|
|
105756
105829
|
name: "@herjarsa/oh-my-openagent-v2",
|
|
105757
|
-
version: "0.1.
|
|
105830
|
+
version: "0.1.2",
|
|
105758
105831
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools (herjarsa fork for OpenCode 2 (oh-my-openagent-v2))",
|
|
105759
105832
|
main: "./dist/index.js",
|
|
105760
105833
|
types: "dist/index.d.ts",
|
|
@@ -105767,6 +105840,11 @@ var package_default = {
|
|
|
105767
105840
|
"packages/mcp-stdio-core",
|
|
105768
105841
|
"packages/mcp-client-core",
|
|
105769
105842
|
"packages/lsp-core",
|
|
105843
|
+
"packages/senpi-desktop-prelude",
|
|
105844
|
+
"packages/senpi-desktop-protocol",
|
|
105845
|
+
"packages/senpi-desktop-engine",
|
|
105846
|
+
"packages/senpi-desktop-service",
|
|
105847
|
+
"packages/senpi-desktop-tool",
|
|
105770
105848
|
"packages/utils",
|
|
105771
105849
|
"packages/model-core",
|
|
105772
105850
|
"packages/omo-config-core",
|
|
@@ -105885,7 +105963,7 @@ var package_default = {
|
|
|
105885
105963
|
prepublishOnly: "bun run clean && bun run build:lsp-tools-mcp && bun run build:lsp-daemon && bun run build",
|
|
105886
105964
|
"test:model-capabilities": "bun test --timeout 20000 packages/model-core/src/model-capability-aliases.test.ts packages/model-core/src/model-capability-guardrails.test.ts packages/model-core/src/model-capabilities.test.ts packages/omo-opencode/src/cli/doctor/checks/model-resolution.test.ts --bail",
|
|
105887
105965
|
typecheck: "tsgo --noEmit && bun run typecheck:script && bun run typecheck:packages",
|
|
105888
|
-
"typecheck:packages": "tsgo --noEmit -p packages/rules-engine/tsconfig.json && tsgo --noEmit -p packages/delegate-core/tsconfig.json && tsgo --noEmit -p packages/mcp-stdio-core/tsconfig.json && tsgo --noEmit -p packages/mcp-client-core/tsconfig.json && tsgo --noEmit -p packages/git-bash-mcp/tsconfig.json && tsgo --noEmit -p packages/ast-grep-mcp/tsconfig.json && tsgo --noEmit -p packages/lsp-core/tsconfig.json && tsgo --noEmit -p packages/utils/tsconfig.json && tsgo --noEmit -p packages/model-core/tsconfig.json && tsgo --noEmit -p packages/omo-config-core/tsconfig.json && tsgo --noEmit -p packages/prompts-core/tsconfig.json && tsgo --noEmit -p packages/comment-checker-core/tsconfig.json && tsgo --noEmit -p packages/hashline-core/tsconfig.json && tsgo --noEmit -p packages/tmux-core/tsconfig.json && tsgo --noEmit -p packages/team-core/tsconfig.json && tsgo --noEmit -p packages/openclaw-core/tsconfig.json && tsgo --noEmit -p packages/boulder-state/tsconfig.json && tsgo --noEmit -p packages/isolation-core/tsconfig.json && tsgo --noEmit -p packages/memory-core/tsconfig.json && tsgo --noEmit -p packages/telemetry-core/tsconfig.json && tsgo --noEmit -p packages/claude-code-compat-core/tsconfig.json && tsgo --noEmit -p packages/skills-loader-core/tsconfig.json && tsgo --noEmit -p packages/agents-md-core/tsconfig.json && tsgo --noEmit -p packages/omo-codex/plugin/shared/tsconfig.json && tsgo --noEmit -p packages/omo-codex/tsconfig.json && tsgo --noEmit -p packages/omo-senpi/tsconfig.json && tsgo --noEmit -p packages/senpi-task/tsconfig.json && tsgo --noEmit -p packages/omo-opencode/tsconfig.json && tsgo --noEmit -p packages/omo-native/tsconfig.json",
|
|
105966
|
+
"typecheck:packages": "tsgo --noEmit -p packages/rules-engine/tsconfig.json && tsgo --noEmit -p packages/delegate-core/tsconfig.json && tsgo --noEmit -p packages/mcp-stdio-core/tsconfig.json && tsgo --noEmit -p packages/mcp-client-core/tsconfig.json && tsgo --noEmit -p packages/git-bash-mcp/tsconfig.json && tsgo --noEmit -p packages/ast-grep-mcp/tsconfig.json && tsgo --noEmit -p packages/lsp-core/tsconfig.json && tsgo --noEmit -p packages/senpi-desktop-prelude/tsconfig.json && tsgo --noEmit -p packages/senpi-desktop-protocol/tsconfig.json && tsgo --noEmit -p packages/senpi-desktop-engine/tsconfig.json && tsgo --noEmit -p packages/senpi-desktop-service/tsconfig.json && tsgo --noEmit -p packages/senpi-desktop-tool/tsconfig.json && tsgo --noEmit -p packages/utils/tsconfig.json && tsgo --noEmit -p packages/model-core/tsconfig.json && tsgo --noEmit -p packages/omo-config-core/tsconfig.json && tsgo --noEmit -p packages/prompts-core/tsconfig.json && tsgo --noEmit -p packages/comment-checker-core/tsconfig.json && tsgo --noEmit -p packages/hashline-core/tsconfig.json && tsgo --noEmit -p packages/tmux-core/tsconfig.json && tsgo --noEmit -p packages/team-core/tsconfig.json && tsgo --noEmit -p packages/openclaw-core/tsconfig.json && tsgo --noEmit -p packages/boulder-state/tsconfig.json && tsgo --noEmit -p packages/isolation-core/tsconfig.json && tsgo --noEmit -p packages/memory-core/tsconfig.json && tsgo --noEmit -p packages/telemetry-core/tsconfig.json && tsgo --noEmit -p packages/claude-code-compat-core/tsconfig.json && tsgo --noEmit -p packages/skills-loader-core/tsconfig.json && tsgo --noEmit -p packages/agents-md-core/tsconfig.json && tsgo --noEmit -p packages/omo-codex/plugin/shared/tsconfig.json && tsgo --noEmit -p packages/omo-codex/tsconfig.json && tsgo --noEmit -p packages/omo-senpi/tsconfig.json && tsgo --noEmit -p packages/senpi-task/tsconfig.json && tsgo --noEmit -p packages/omo-opencode/tsconfig.json && tsgo --noEmit -p packages/omo-native/tsconfig.json",
|
|
105889
105967
|
"typecheck:script": "tsgo --noEmit -p script/tsconfig.json",
|
|
105890
105968
|
test: "bun test --timeout 20000",
|
|
105891
105969
|
"changelog:section": "bun script/changelog-section.ts",
|
|
@@ -105909,7 +105987,7 @@ var package_default = {
|
|
|
105909
105987
|
license: "SUL-1.0",
|
|
105910
105988
|
repository: {
|
|
105911
105989
|
type: "git",
|
|
105912
|
-
url: "git+https://github.com/
|
|
105990
|
+
url: "git+https://github.com/herjarsa/oh-my-openagent-v2.git"
|
|
105913
105991
|
},
|
|
105914
105992
|
bugs: {
|
|
105915
105993
|
url: "https://github.com/code-yeongyu/oh-my-openagent/issues"
|
|
@@ -105956,6 +106034,11 @@ var package_default = {
|
|
|
105956
106034
|
"@oh-my-opencode/openclaw-core": "workspace:*",
|
|
105957
106035
|
"@oh-my-opencode/prompts-core": "workspace:*",
|
|
105958
106036
|
"@oh-my-opencode/rules-engine": "workspace:*",
|
|
106037
|
+
"@oh-my-opencode/senpi-desktop-engine": "workspace:*",
|
|
106038
|
+
"@oh-my-opencode/senpi-desktop-prelude": "workspace:*",
|
|
106039
|
+
"@oh-my-opencode/senpi-desktop-protocol": "workspace:*",
|
|
106040
|
+
"@oh-my-opencode/senpi-desktop-service": "workspace:*",
|
|
106041
|
+
"@oh-my-opencode/senpi-desktop-tool": "workspace:*",
|
|
105959
106042
|
"@oh-my-opencode/senpi-task": "workspace:*",
|
|
105960
106043
|
"@oh-my-opencode/shared-skills": "workspace:*",
|
|
105961
106044
|
"@oh-my-opencode/skills-loader-core": "workspace:*",
|
|
@@ -105992,7 +106075,7 @@ var package_default = {
|
|
|
105992
106075
|
"@earendil-works/pi-agent-core": "0.84.2",
|
|
105993
106076
|
"@earendil-works/pi-ai": "0.84.2",
|
|
105994
106077
|
"@earendil-works/pi-coding-agent": "0.84.2",
|
|
105995
|
-
"@earendil-works/pi-tui": "
|
|
106078
|
+
"@earendil-works/pi-tui": "npm:@code-yeongyu/senpi-tui@2026.9.24-3",
|
|
105996
106079
|
hono: "^4.13.8",
|
|
105997
106080
|
"@hono/node-server": "2.1.1",
|
|
105998
106081
|
"express-rate-limit": "^8.7.0",
|
|
@@ -110050,35 +110133,35 @@ import { mkdirSync as mkdirSync18, readFileSync as readFileSync46, renameSync as
|
|
|
110050
110133
|
import { join as join85 } from "path";
|
|
110051
110134
|
|
|
110052
110135
|
// packages/omo-opencode/src/hooks/goal/types.ts
|
|
110053
|
-
import { z as
|
|
110136
|
+
import { z as z53 } from "zod";
|
|
110054
110137
|
var GOAL_STATUS_VALUES = ["active", "paused", "complete"];
|
|
110055
|
-
var GoalStatusSchema =
|
|
110056
|
-
var GoalSchema =
|
|
110057
|
-
id:
|
|
110058
|
-
sessionID:
|
|
110059
|
-
objective:
|
|
110138
|
+
var GoalStatusSchema = z53.enum(GOAL_STATUS_VALUES);
|
|
110139
|
+
var GoalSchema = z53.object({
|
|
110140
|
+
id: z53.string(),
|
|
110141
|
+
sessionID: z53.string(),
|
|
110142
|
+
objective: z53.string(),
|
|
110060
110143
|
status: GoalStatusSchema,
|
|
110061
|
-
tokensUsed:
|
|
110062
|
-
timeUsedSeconds:
|
|
110063
|
-
createdAt:
|
|
110064
|
-
updatedAt:
|
|
110065
|
-
lastStartedAt:
|
|
110066
|
-
completedAt:
|
|
110067
|
-
});
|
|
110068
|
-
var GoalFileSchema =
|
|
110069
|
-
version:
|
|
110144
|
+
tokensUsed: z53.number().int().nonnegative(),
|
|
110145
|
+
timeUsedSeconds: z53.number().int().nonnegative(),
|
|
110146
|
+
createdAt: z53.number().int().nonnegative(),
|
|
110147
|
+
updatedAt: z53.number().int().nonnegative(),
|
|
110148
|
+
lastStartedAt: z53.number().int().nonnegative().optional(),
|
|
110149
|
+
completedAt: z53.number().int().nonnegative().optional()
|
|
110150
|
+
});
|
|
110151
|
+
var GoalFileSchema = z53.object({
|
|
110152
|
+
version: z53.literal(1),
|
|
110070
110153
|
goal: GoalSchema.nullable()
|
|
110071
110154
|
});
|
|
110072
|
-
var GoalToolSnapshotSchema =
|
|
110073
|
-
sessionID:
|
|
110074
|
-
objective:
|
|
110155
|
+
var GoalToolSnapshotSchema = z53.object({
|
|
110156
|
+
sessionID: z53.string(),
|
|
110157
|
+
objective: z53.string(),
|
|
110075
110158
|
status: GoalStatusSchema,
|
|
110076
|
-
tokensUsed:
|
|
110077
|
-
timeUsedSeconds:
|
|
110078
|
-
createdAt:
|
|
110079
|
-
updatedAt:
|
|
110159
|
+
tokensUsed: z53.number().int().nonnegative(),
|
|
110160
|
+
timeUsedSeconds: z53.number().int().nonnegative(),
|
|
110161
|
+
createdAt: z53.number().int().nonnegative(),
|
|
110162
|
+
updatedAt: z53.number().int().nonnegative()
|
|
110080
110163
|
});
|
|
110081
|
-
var GoalToolResponseSchema =
|
|
110164
|
+
var GoalToolResponseSchema = z53.object({
|
|
110082
110165
|
goal: GoalToolSnapshotSchema.nullable()
|
|
110083
110166
|
});
|
|
110084
110167
|
|
|
@@ -127607,11 +127690,11 @@ init_safe_create_hook();
|
|
|
127607
127690
|
import { resolve as resolve27 } from "path";
|
|
127608
127691
|
|
|
127609
127692
|
// node_modules/.bun/@opencode-ai+plugin@1.18.31+7445fc152a67980a/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
127610
|
-
import { z as
|
|
127693
|
+
import { z as z54 } from "zod";
|
|
127611
127694
|
function tool(input) {
|
|
127612
127695
|
return input;
|
|
127613
127696
|
}
|
|
127614
|
-
tool.schema =
|
|
127697
|
+
tool.schema = z54;
|
|
127615
127698
|
|
|
127616
127699
|
// packages/omo-opencode/src/shared/ripgrep-cli.ts
|
|
127617
127700
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
@@ -132198,30 +132281,8 @@ async function resolveCallableAgents(_client, _sessionId) {
|
|
|
132198
132281
|
return [...ALLOWED_AGENTS];
|
|
132199
132282
|
}
|
|
132200
132283
|
|
|
132201
|
-
// packages/omo-opencode/src/agents/builtin-agents/model-resolution.ts
|
|
132202
|
-
init_shared();
|
|
132203
|
-
function applyModelResolution(input) {
|
|
132204
|
-
const { uiSelectedModel, userModel, requirement, availableModels, systemDefaultModel } = input;
|
|
132205
|
-
return resolveModelPipeline2({
|
|
132206
|
-
intent: { uiSelectedModel, userModel },
|
|
132207
|
-
constraints: { availableModels },
|
|
132208
|
-
policy: { fallbackChain: requirement?.fallbackChain, systemDefaultModel }
|
|
132209
|
-
});
|
|
132210
|
-
}
|
|
132211
|
-
function getFirstFallbackModel(requirement) {
|
|
132212
|
-
const entry = requirement?.fallbackChain?.[0];
|
|
132213
|
-
if (!entry || entry.providers.length === 0)
|
|
132214
|
-
return;
|
|
132215
|
-
const provider = entry.providers[0];
|
|
132216
|
-
const transformedModel = transformModelForProvider(provider, entry.model);
|
|
132217
|
-
return {
|
|
132218
|
-
model: `${provider}/${transformedModel}`,
|
|
132219
|
-
provenance: "provider-fallback",
|
|
132220
|
-
variant: entry.variant
|
|
132221
|
-
};
|
|
132222
|
-
}
|
|
132223
|
-
|
|
132224
132284
|
// packages/omo-opencode/src/tools/call-omo-agent/tools.ts
|
|
132285
|
+
init_model_resolution();
|
|
132225
132286
|
function createSyncExecutorDeps(modelFallbackControllerAccessor) {
|
|
132226
132287
|
return {
|
|
132227
132288
|
createOrGetSession,
|
|
@@ -137255,55 +137316,55 @@ init_constants2();
|
|
|
137255
137316
|
import { join as join120 } from "path";
|
|
137256
137317
|
|
|
137257
137318
|
// packages/omo-opencode/src/tools/task/types.ts
|
|
137258
|
-
import { z as
|
|
137259
|
-
var TaskStatusSchema =
|
|
137260
|
-
var TaskObjectSchema =
|
|
137261
|
-
id:
|
|
137262
|
-
subject:
|
|
137263
|
-
description:
|
|
137319
|
+
import { z as z55 } from "zod";
|
|
137320
|
+
var TaskStatusSchema = z55.enum(["pending", "in_progress", "completed", "deleted"]);
|
|
137321
|
+
var TaskObjectSchema = z55.object({
|
|
137322
|
+
id: z55.string(),
|
|
137323
|
+
subject: z55.string(),
|
|
137324
|
+
description: z55.string(),
|
|
137264
137325
|
status: TaskStatusSchema,
|
|
137265
|
-
activeForm:
|
|
137266
|
-
blocks:
|
|
137267
|
-
blockedBy:
|
|
137268
|
-
owner:
|
|
137269
|
-
metadata:
|
|
137270
|
-
repoURL:
|
|
137271
|
-
parentID:
|
|
137272
|
-
threadID:
|
|
137326
|
+
activeForm: z55.string().optional(),
|
|
137327
|
+
blocks: z55.array(z55.string()).default([]),
|
|
137328
|
+
blockedBy: z55.array(z55.string()).default([]),
|
|
137329
|
+
owner: z55.string().optional(),
|
|
137330
|
+
metadata: z55.record(z55.string(), z55.unknown()).optional(),
|
|
137331
|
+
repoURL: z55.string().optional(),
|
|
137332
|
+
parentID: z55.string().optional(),
|
|
137333
|
+
threadID: z55.string()
|
|
137273
137334
|
}).strict();
|
|
137274
|
-
var TaskCreateInputSchema =
|
|
137275
|
-
subject:
|
|
137276
|
-
description:
|
|
137277
|
-
activeForm:
|
|
137278
|
-
blocks:
|
|
137279
|
-
blockedBy:
|
|
137280
|
-
owner:
|
|
137281
|
-
metadata:
|
|
137282
|
-
repoURL:
|
|
137283
|
-
parentID:
|
|
137284
|
-
});
|
|
137285
|
-
var TaskListInputSchema =
|
|
137335
|
+
var TaskCreateInputSchema = z55.object({
|
|
137336
|
+
subject: z55.string(),
|
|
137337
|
+
description: z55.string().optional(),
|
|
137338
|
+
activeForm: z55.string().optional(),
|
|
137339
|
+
blocks: z55.array(z55.string()).optional(),
|
|
137340
|
+
blockedBy: z55.array(z55.string()).optional(),
|
|
137341
|
+
owner: z55.string().optional(),
|
|
137342
|
+
metadata: z55.record(z55.string(), z55.unknown()).optional(),
|
|
137343
|
+
repoURL: z55.string().optional(),
|
|
137344
|
+
parentID: z55.string().optional()
|
|
137345
|
+
});
|
|
137346
|
+
var TaskListInputSchema = z55.object({
|
|
137286
137347
|
status: TaskStatusSchema.optional(),
|
|
137287
|
-
parentID:
|
|
137348
|
+
parentID: z55.string().optional()
|
|
137288
137349
|
});
|
|
137289
|
-
var TaskGetInputSchema =
|
|
137290
|
-
id:
|
|
137350
|
+
var TaskGetInputSchema = z55.object({
|
|
137351
|
+
id: z55.string()
|
|
137291
137352
|
});
|
|
137292
|
-
var TaskUpdateInputSchema =
|
|
137293
|
-
id:
|
|
137294
|
-
subject:
|
|
137295
|
-
description:
|
|
137353
|
+
var TaskUpdateInputSchema = z55.object({
|
|
137354
|
+
id: z55.string(),
|
|
137355
|
+
subject: z55.string().optional(),
|
|
137356
|
+
description: z55.string().optional(),
|
|
137296
137357
|
status: TaskStatusSchema.optional(),
|
|
137297
|
-
activeForm:
|
|
137298
|
-
addBlocks:
|
|
137299
|
-
addBlockedBy:
|
|
137300
|
-
owner:
|
|
137301
|
-
metadata:
|
|
137302
|
-
repoURL:
|
|
137303
|
-
parentID:
|
|
137358
|
+
activeForm: z55.string().optional(),
|
|
137359
|
+
addBlocks: z55.array(z55.string()).optional(),
|
|
137360
|
+
addBlockedBy: z55.array(z55.string()).optional(),
|
|
137361
|
+
owner: z55.string().optional(),
|
|
137362
|
+
metadata: z55.record(z55.string(), z55.unknown()).optional(),
|
|
137363
|
+
repoURL: z55.string().optional(),
|
|
137364
|
+
parentID: z55.string().optional()
|
|
137304
137365
|
});
|
|
137305
|
-
var TaskDeleteInputSchema =
|
|
137306
|
-
id:
|
|
137366
|
+
var TaskDeleteInputSchema = z55.object({
|
|
137367
|
+
id: z55.string()
|
|
137307
137368
|
});
|
|
137308
137369
|
|
|
137309
137370
|
// packages/omo-opencode/src/features/claude-tasks/storage.ts
|
|
@@ -138208,7 +138269,7 @@ function createHashlineEditTool(ctx) {
|
|
|
138208
138269
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
138209
138270
|
import { randomUUID as randomUUID10 } from "crypto";
|
|
138210
138271
|
init_logger2();
|
|
138211
|
-
import { z as
|
|
138272
|
+
import { z as z56 } from "zod";
|
|
138212
138273
|
|
|
138213
138274
|
// packages/team-core/src/team-mailbox/send.ts
|
|
138214
138275
|
init_paths();
|
|
@@ -138793,18 +138854,18 @@ async function resolveTeamRuntimeDetails(teamRunId, sessionID, config, deps) {
|
|
|
138793
138854
|
|
|
138794
138855
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
138795
138856
|
var MESSAGE_TOOL_KINDS = ["message", "announcement"];
|
|
138796
|
-
var TeamReferenceArgsSchema =
|
|
138797
|
-
path:
|
|
138798
|
-
description:
|
|
138799
|
-
});
|
|
138800
|
-
var TeamSendMessageArgsSchema =
|
|
138801
|
-
teamRunId:
|
|
138802
|
-
to:
|
|
138803
|
-
body:
|
|
138804
|
-
kind:
|
|
138805
|
-
correlationId:
|
|
138806
|
-
summary:
|
|
138807
|
-
references:
|
|
138857
|
+
var TeamReferenceArgsSchema = z56.object({
|
|
138858
|
+
path: z56.string().min(1),
|
|
138859
|
+
description: z56.string().optional()
|
|
138860
|
+
});
|
|
138861
|
+
var TeamSendMessageArgsSchema = z56.object({
|
|
138862
|
+
teamRunId: z56.string().min(1),
|
|
138863
|
+
to: z56.string().min(1),
|
|
138864
|
+
body: z56.string(),
|
|
138865
|
+
kind: z56.enum(MESSAGE_TOOL_KINDS).optional(),
|
|
138866
|
+
correlationId: z56.preprocess((value) => value === "" ? undefined : value, z56.uuid().optional()),
|
|
138867
|
+
summary: z56.string().optional(),
|
|
138868
|
+
references: z56.array(TeamReferenceArgsSchema).optional()
|
|
138808
138869
|
});
|
|
138809
138870
|
function createTeamSendMessageTool(config, client, deps = defaultTeamSendMessageToolDeps) {
|
|
138810
138871
|
return tool({
|
|
@@ -140324,6 +140385,7 @@ function isEmptyNoProgressAssistantTurnInfo(info) {
|
|
|
140324
140385
|
// packages/omo-opencode/src/features/background-agent/fallback-retry-handler.ts
|
|
140325
140386
|
init_src2();
|
|
140326
140387
|
init_shared();
|
|
140388
|
+
init_provider_model_id_transform2();
|
|
140327
140389
|
class TeamModeFallbackError extends Error {
|
|
140328
140390
|
constructor(message) {
|
|
140329
140391
|
super(message);
|
|
@@ -147524,63 +147586,63 @@ function getLiteralValue(schema) {
|
|
|
147524
147586
|
}
|
|
147525
147587
|
|
|
147526
147588
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
147527
|
-
import * as
|
|
147589
|
+
import * as z57 from "zod/v4";
|
|
147528
147590
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
147529
147591
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
147530
147592
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
147531
147593
|
var JSONRPC_VERSION = "2.0";
|
|
147532
|
-
var AssertObjectSchema =
|
|
147533
|
-
var ProgressTokenSchema =
|
|
147534
|
-
var CursorSchema =
|
|
147535
|
-
var TaskCreationParamsSchema =
|
|
147536
|
-
ttl:
|
|
147537
|
-
pollInterval:
|
|
147594
|
+
var AssertObjectSchema = z57.custom((v) => v !== null && (typeof v === "object" || typeof v === "function"));
|
|
147595
|
+
var ProgressTokenSchema = z57.union([z57.string(), z57.number().int()]);
|
|
147596
|
+
var CursorSchema = z57.string();
|
|
147597
|
+
var TaskCreationParamsSchema = z57.looseObject({
|
|
147598
|
+
ttl: z57.number().optional(),
|
|
147599
|
+
pollInterval: z57.number().optional()
|
|
147538
147600
|
});
|
|
147539
|
-
var TaskMetadataSchema =
|
|
147540
|
-
ttl:
|
|
147601
|
+
var TaskMetadataSchema = z57.object({
|
|
147602
|
+
ttl: z57.number().optional()
|
|
147541
147603
|
});
|
|
147542
|
-
var RelatedTaskMetadataSchema =
|
|
147543
|
-
taskId:
|
|
147604
|
+
var RelatedTaskMetadataSchema = z57.object({
|
|
147605
|
+
taskId: z57.string()
|
|
147544
147606
|
});
|
|
147545
|
-
var RequestMetaSchema =
|
|
147607
|
+
var RequestMetaSchema = z57.looseObject({
|
|
147546
147608
|
progressToken: ProgressTokenSchema.optional(),
|
|
147547
147609
|
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
|
147548
147610
|
});
|
|
147549
|
-
var BaseRequestParamsSchema =
|
|
147611
|
+
var BaseRequestParamsSchema = z57.object({
|
|
147550
147612
|
_meta: RequestMetaSchema.optional()
|
|
147551
147613
|
});
|
|
147552
147614
|
var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
147553
147615
|
task: TaskMetadataSchema.optional()
|
|
147554
147616
|
});
|
|
147555
147617
|
var isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success;
|
|
147556
|
-
var RequestSchema =
|
|
147557
|
-
method:
|
|
147618
|
+
var RequestSchema = z57.object({
|
|
147619
|
+
method: z57.string(),
|
|
147558
147620
|
params: BaseRequestParamsSchema.loose().optional()
|
|
147559
147621
|
});
|
|
147560
|
-
var NotificationsParamsSchema =
|
|
147622
|
+
var NotificationsParamsSchema = z57.object({
|
|
147561
147623
|
_meta: RequestMetaSchema.optional()
|
|
147562
147624
|
});
|
|
147563
|
-
var NotificationSchema =
|
|
147564
|
-
method:
|
|
147625
|
+
var NotificationSchema = z57.object({
|
|
147626
|
+
method: z57.string(),
|
|
147565
147627
|
params: NotificationsParamsSchema.loose().optional()
|
|
147566
147628
|
});
|
|
147567
|
-
var ResultSchema =
|
|
147629
|
+
var ResultSchema = z57.looseObject({
|
|
147568
147630
|
_meta: RequestMetaSchema.optional()
|
|
147569
147631
|
});
|
|
147570
|
-
var RequestIdSchema =
|
|
147571
|
-
var JSONRPCRequestSchema =
|
|
147572
|
-
jsonrpc:
|
|
147632
|
+
var RequestIdSchema = z57.union([z57.string(), z57.number().int()]);
|
|
147633
|
+
var JSONRPCRequestSchema = z57.object({
|
|
147634
|
+
jsonrpc: z57.literal(JSONRPC_VERSION),
|
|
147573
147635
|
id: RequestIdSchema,
|
|
147574
147636
|
...RequestSchema.shape
|
|
147575
147637
|
}).strict();
|
|
147576
147638
|
var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
|
147577
|
-
var JSONRPCNotificationSchema =
|
|
147578
|
-
jsonrpc:
|
|
147639
|
+
var JSONRPCNotificationSchema = z57.object({
|
|
147640
|
+
jsonrpc: z57.literal(JSONRPC_VERSION),
|
|
147579
147641
|
...NotificationSchema.shape
|
|
147580
147642
|
}).strict();
|
|
147581
147643
|
var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
|
147582
|
-
var JSONRPCResultResponseSchema =
|
|
147583
|
-
jsonrpc:
|
|
147644
|
+
var JSONRPCResultResponseSchema = z57.object({
|
|
147645
|
+
jsonrpc: z57.literal(JSONRPC_VERSION),
|
|
147584
147646
|
id: RequestIdSchema,
|
|
147585
147647
|
result: ResultSchema
|
|
147586
147648
|
}).strict();
|
|
@@ -147596,153 +147658,153 @@ var ErrorCode;
|
|
|
147596
147658
|
ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError";
|
|
147597
147659
|
ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
|
|
147598
147660
|
})(ErrorCode || (ErrorCode = {}));
|
|
147599
|
-
var JSONRPCErrorResponseSchema =
|
|
147600
|
-
jsonrpc:
|
|
147661
|
+
var JSONRPCErrorResponseSchema = z57.object({
|
|
147662
|
+
jsonrpc: z57.literal(JSONRPC_VERSION),
|
|
147601
147663
|
id: RequestIdSchema.optional(),
|
|
147602
|
-
error:
|
|
147603
|
-
code:
|
|
147604
|
-
message:
|
|
147605
|
-
data:
|
|
147664
|
+
error: z57.object({
|
|
147665
|
+
code: z57.number().int(),
|
|
147666
|
+
message: z57.string(),
|
|
147667
|
+
data: z57.unknown().optional()
|
|
147606
147668
|
})
|
|
147607
147669
|
}).strict();
|
|
147608
147670
|
var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
|
|
147609
|
-
var JSONRPCMessageSchema =
|
|
147671
|
+
var JSONRPCMessageSchema = z57.union([
|
|
147610
147672
|
JSONRPCRequestSchema,
|
|
147611
147673
|
JSONRPCNotificationSchema,
|
|
147612
147674
|
JSONRPCResultResponseSchema,
|
|
147613
147675
|
JSONRPCErrorResponseSchema
|
|
147614
147676
|
]);
|
|
147615
|
-
var JSONRPCResponseSchema =
|
|
147677
|
+
var JSONRPCResponseSchema = z57.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
|
147616
147678
|
var EmptyResultSchema = ResultSchema.strict();
|
|
147617
147679
|
var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
147618
147680
|
requestId: RequestIdSchema.optional(),
|
|
147619
|
-
reason:
|
|
147681
|
+
reason: z57.string().optional()
|
|
147620
147682
|
});
|
|
147621
147683
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
147622
|
-
method:
|
|
147684
|
+
method: z57.literal("notifications/cancelled"),
|
|
147623
147685
|
params: CancelledNotificationParamsSchema
|
|
147624
147686
|
});
|
|
147625
|
-
var IconSchema =
|
|
147626
|
-
src:
|
|
147627
|
-
mimeType:
|
|
147628
|
-
sizes:
|
|
147629
|
-
theme:
|
|
147687
|
+
var IconSchema = z57.object({
|
|
147688
|
+
src: z57.string(),
|
|
147689
|
+
mimeType: z57.string().optional(),
|
|
147690
|
+
sizes: z57.array(z57.string()).optional(),
|
|
147691
|
+
theme: z57.enum(["light", "dark"]).optional()
|
|
147630
147692
|
});
|
|
147631
|
-
var IconsSchema =
|
|
147632
|
-
icons:
|
|
147693
|
+
var IconsSchema = z57.object({
|
|
147694
|
+
icons: z57.array(IconSchema).optional()
|
|
147633
147695
|
});
|
|
147634
|
-
var BaseMetadataSchema =
|
|
147635
|
-
name:
|
|
147636
|
-
title:
|
|
147696
|
+
var BaseMetadataSchema = z57.object({
|
|
147697
|
+
name: z57.string(),
|
|
147698
|
+
title: z57.string().optional()
|
|
147637
147699
|
});
|
|
147638
147700
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
147639
147701
|
...BaseMetadataSchema.shape,
|
|
147640
147702
|
...IconsSchema.shape,
|
|
147641
|
-
version:
|
|
147642
|
-
websiteUrl:
|
|
147643
|
-
description:
|
|
147644
|
-
});
|
|
147645
|
-
var FormElicitationCapabilitySchema =
|
|
147646
|
-
applyDefaults:
|
|
147647
|
-
}),
|
|
147648
|
-
var ElicitationCapabilitySchema =
|
|
147703
|
+
version: z57.string(),
|
|
147704
|
+
websiteUrl: z57.string().optional(),
|
|
147705
|
+
description: z57.string().optional()
|
|
147706
|
+
});
|
|
147707
|
+
var FormElicitationCapabilitySchema = z57.intersection(z57.object({
|
|
147708
|
+
applyDefaults: z57.boolean().optional()
|
|
147709
|
+
}), z57.record(z57.string(), z57.unknown()));
|
|
147710
|
+
var ElicitationCapabilitySchema = z57.preprocess((value) => {
|
|
147649
147711
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
147650
147712
|
if (Object.keys(value).length === 0) {
|
|
147651
147713
|
return { form: {} };
|
|
147652
147714
|
}
|
|
147653
147715
|
}
|
|
147654
147716
|
return value;
|
|
147655
|
-
},
|
|
147717
|
+
}, z57.intersection(z57.object({
|
|
147656
147718
|
form: FormElicitationCapabilitySchema.optional(),
|
|
147657
147719
|
url: AssertObjectSchema.optional()
|
|
147658
|
-
}),
|
|
147659
|
-
var ClientTasksCapabilitySchema =
|
|
147720
|
+
}), z57.record(z57.string(), z57.unknown()).optional()));
|
|
147721
|
+
var ClientTasksCapabilitySchema = z57.looseObject({
|
|
147660
147722
|
list: AssertObjectSchema.optional(),
|
|
147661
147723
|
cancel: AssertObjectSchema.optional(),
|
|
147662
|
-
requests:
|
|
147663
|
-
sampling:
|
|
147724
|
+
requests: z57.looseObject({
|
|
147725
|
+
sampling: z57.looseObject({
|
|
147664
147726
|
createMessage: AssertObjectSchema.optional()
|
|
147665
147727
|
}).optional(),
|
|
147666
|
-
elicitation:
|
|
147728
|
+
elicitation: z57.looseObject({
|
|
147667
147729
|
create: AssertObjectSchema.optional()
|
|
147668
147730
|
}).optional()
|
|
147669
147731
|
}).optional()
|
|
147670
147732
|
});
|
|
147671
|
-
var ServerTasksCapabilitySchema =
|
|
147733
|
+
var ServerTasksCapabilitySchema = z57.looseObject({
|
|
147672
147734
|
list: AssertObjectSchema.optional(),
|
|
147673
147735
|
cancel: AssertObjectSchema.optional(),
|
|
147674
|
-
requests:
|
|
147675
|
-
tools:
|
|
147736
|
+
requests: z57.looseObject({
|
|
147737
|
+
tools: z57.looseObject({
|
|
147676
147738
|
call: AssertObjectSchema.optional()
|
|
147677
147739
|
}).optional()
|
|
147678
147740
|
}).optional()
|
|
147679
147741
|
});
|
|
147680
|
-
var ClientCapabilitiesSchema =
|
|
147681
|
-
experimental:
|
|
147682
|
-
sampling:
|
|
147742
|
+
var ClientCapabilitiesSchema = z57.object({
|
|
147743
|
+
experimental: z57.record(z57.string(), AssertObjectSchema).optional(),
|
|
147744
|
+
sampling: z57.object({
|
|
147683
147745
|
context: AssertObjectSchema.optional(),
|
|
147684
147746
|
tools: AssertObjectSchema.optional()
|
|
147685
147747
|
}).optional(),
|
|
147686
147748
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
147687
|
-
roots:
|
|
147688
|
-
listChanged:
|
|
147749
|
+
roots: z57.object({
|
|
147750
|
+
listChanged: z57.boolean().optional()
|
|
147689
147751
|
}).optional(),
|
|
147690
147752
|
tasks: ClientTasksCapabilitySchema.optional(),
|
|
147691
|
-
extensions:
|
|
147753
|
+
extensions: z57.record(z57.string(), AssertObjectSchema).optional()
|
|
147692
147754
|
});
|
|
147693
147755
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
147694
|
-
protocolVersion:
|
|
147756
|
+
protocolVersion: z57.string(),
|
|
147695
147757
|
capabilities: ClientCapabilitiesSchema,
|
|
147696
147758
|
clientInfo: ImplementationSchema
|
|
147697
147759
|
});
|
|
147698
147760
|
var InitializeRequestSchema = RequestSchema.extend({
|
|
147699
|
-
method:
|
|
147761
|
+
method: z57.literal("initialize"),
|
|
147700
147762
|
params: InitializeRequestParamsSchema
|
|
147701
147763
|
});
|
|
147702
|
-
var ServerCapabilitiesSchema =
|
|
147703
|
-
experimental:
|
|
147764
|
+
var ServerCapabilitiesSchema = z57.object({
|
|
147765
|
+
experimental: z57.record(z57.string(), AssertObjectSchema).optional(),
|
|
147704
147766
|
logging: AssertObjectSchema.optional(),
|
|
147705
147767
|
completions: AssertObjectSchema.optional(),
|
|
147706
|
-
prompts:
|
|
147707
|
-
listChanged:
|
|
147768
|
+
prompts: z57.object({
|
|
147769
|
+
listChanged: z57.boolean().optional()
|
|
147708
147770
|
}).optional(),
|
|
147709
|
-
resources:
|
|
147710
|
-
subscribe:
|
|
147711
|
-
listChanged:
|
|
147771
|
+
resources: z57.object({
|
|
147772
|
+
subscribe: z57.boolean().optional(),
|
|
147773
|
+
listChanged: z57.boolean().optional()
|
|
147712
147774
|
}).optional(),
|
|
147713
|
-
tools:
|
|
147714
|
-
listChanged:
|
|
147775
|
+
tools: z57.object({
|
|
147776
|
+
listChanged: z57.boolean().optional()
|
|
147715
147777
|
}).optional(),
|
|
147716
147778
|
tasks: ServerTasksCapabilitySchema.optional(),
|
|
147717
|
-
extensions:
|
|
147779
|
+
extensions: z57.record(z57.string(), AssertObjectSchema).optional()
|
|
147718
147780
|
});
|
|
147719
147781
|
var InitializeResultSchema = ResultSchema.extend({
|
|
147720
|
-
protocolVersion:
|
|
147782
|
+
protocolVersion: z57.string(),
|
|
147721
147783
|
capabilities: ServerCapabilitiesSchema,
|
|
147722
147784
|
serverInfo: ImplementationSchema,
|
|
147723
|
-
instructions:
|
|
147785
|
+
instructions: z57.string().optional()
|
|
147724
147786
|
});
|
|
147725
147787
|
var InitializedNotificationSchema = NotificationSchema.extend({
|
|
147726
|
-
method:
|
|
147788
|
+
method: z57.literal("notifications/initialized"),
|
|
147727
147789
|
params: NotificationsParamsSchema.optional()
|
|
147728
147790
|
});
|
|
147729
147791
|
var isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success;
|
|
147730
147792
|
var PingRequestSchema = RequestSchema.extend({
|
|
147731
|
-
method:
|
|
147793
|
+
method: z57.literal("ping"),
|
|
147732
147794
|
params: BaseRequestParamsSchema.optional()
|
|
147733
147795
|
});
|
|
147734
|
-
var ProgressSchema =
|
|
147735
|
-
progress:
|
|
147736
|
-
total:
|
|
147737
|
-
message:
|
|
147796
|
+
var ProgressSchema = z57.object({
|
|
147797
|
+
progress: z57.number(),
|
|
147798
|
+
total: z57.optional(z57.number()),
|
|
147799
|
+
message: z57.optional(z57.string())
|
|
147738
147800
|
});
|
|
147739
|
-
var ProgressNotificationParamsSchema =
|
|
147801
|
+
var ProgressNotificationParamsSchema = z57.object({
|
|
147740
147802
|
...NotificationsParamsSchema.shape,
|
|
147741
147803
|
...ProgressSchema.shape,
|
|
147742
147804
|
progressToken: ProgressTokenSchema
|
|
147743
147805
|
});
|
|
147744
147806
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
147745
|
-
method:
|
|
147807
|
+
method: z57.literal("notifications/progress"),
|
|
147746
147808
|
params: ProgressNotificationParamsSchema
|
|
147747
147809
|
});
|
|
147748
147810
|
var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
@@ -147754,60 +147816,60 @@ var PaginatedRequestSchema = RequestSchema.extend({
|
|
|
147754
147816
|
var PaginatedResultSchema = ResultSchema.extend({
|
|
147755
147817
|
nextCursor: CursorSchema.optional()
|
|
147756
147818
|
});
|
|
147757
|
-
var TaskStatusSchema2 =
|
|
147758
|
-
var TaskSchema2 =
|
|
147759
|
-
taskId:
|
|
147819
|
+
var TaskStatusSchema2 = z57.enum(["working", "input_required", "completed", "failed", "cancelled"]);
|
|
147820
|
+
var TaskSchema2 = z57.object({
|
|
147821
|
+
taskId: z57.string(),
|
|
147760
147822
|
status: TaskStatusSchema2,
|
|
147761
|
-
ttl:
|
|
147762
|
-
createdAt:
|
|
147763
|
-
lastUpdatedAt:
|
|
147764
|
-
pollInterval:
|
|
147765
|
-
statusMessage:
|
|
147823
|
+
ttl: z57.union([z57.number(), z57.null()]),
|
|
147824
|
+
createdAt: z57.string(),
|
|
147825
|
+
lastUpdatedAt: z57.string(),
|
|
147826
|
+
pollInterval: z57.optional(z57.number()),
|
|
147827
|
+
statusMessage: z57.optional(z57.string())
|
|
147766
147828
|
});
|
|
147767
147829
|
var CreateTaskResultSchema = ResultSchema.extend({
|
|
147768
147830
|
task: TaskSchema2
|
|
147769
147831
|
});
|
|
147770
147832
|
var TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema2);
|
|
147771
147833
|
var TaskStatusNotificationSchema = NotificationSchema.extend({
|
|
147772
|
-
method:
|
|
147834
|
+
method: z57.literal("notifications/tasks/status"),
|
|
147773
147835
|
params: TaskStatusNotificationParamsSchema
|
|
147774
147836
|
});
|
|
147775
147837
|
var GetTaskRequestSchema = RequestSchema.extend({
|
|
147776
|
-
method:
|
|
147838
|
+
method: z57.literal("tasks/get"),
|
|
147777
147839
|
params: BaseRequestParamsSchema.extend({
|
|
147778
|
-
taskId:
|
|
147840
|
+
taskId: z57.string()
|
|
147779
147841
|
})
|
|
147780
147842
|
});
|
|
147781
147843
|
var GetTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
147782
147844
|
var GetTaskPayloadRequestSchema = RequestSchema.extend({
|
|
147783
|
-
method:
|
|
147845
|
+
method: z57.literal("tasks/result"),
|
|
147784
147846
|
params: BaseRequestParamsSchema.extend({
|
|
147785
|
-
taskId:
|
|
147847
|
+
taskId: z57.string()
|
|
147786
147848
|
})
|
|
147787
147849
|
});
|
|
147788
147850
|
var GetTaskPayloadResultSchema = ResultSchema.loose();
|
|
147789
147851
|
var ListTasksRequestSchema = PaginatedRequestSchema.extend({
|
|
147790
|
-
method:
|
|
147852
|
+
method: z57.literal("tasks/list")
|
|
147791
147853
|
});
|
|
147792
147854
|
var ListTasksResultSchema = PaginatedResultSchema.extend({
|
|
147793
|
-
tasks:
|
|
147855
|
+
tasks: z57.array(TaskSchema2)
|
|
147794
147856
|
});
|
|
147795
147857
|
var CancelTaskRequestSchema = RequestSchema.extend({
|
|
147796
|
-
method:
|
|
147858
|
+
method: z57.literal("tasks/cancel"),
|
|
147797
147859
|
params: BaseRequestParamsSchema.extend({
|
|
147798
|
-
taskId:
|
|
147860
|
+
taskId: z57.string()
|
|
147799
147861
|
})
|
|
147800
147862
|
});
|
|
147801
147863
|
var CancelTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
147802
|
-
var ResourceContentsSchema =
|
|
147803
|
-
uri:
|
|
147804
|
-
mimeType:
|
|
147805
|
-
_meta:
|
|
147864
|
+
var ResourceContentsSchema = z57.object({
|
|
147865
|
+
uri: z57.string(),
|
|
147866
|
+
mimeType: z57.optional(z57.string()),
|
|
147867
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
147806
147868
|
});
|
|
147807
147869
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
147808
|
-
text:
|
|
147870
|
+
text: z57.string()
|
|
147809
147871
|
});
|
|
147810
|
-
var Base64Schema =
|
|
147872
|
+
var Base64Schema = z57.string().refine((val) => {
|
|
147811
147873
|
try {
|
|
147812
147874
|
atob(val);
|
|
147813
147875
|
return true;
|
|
@@ -147818,447 +147880,447 @@ var Base64Schema = z56.string().refine((val) => {
|
|
|
147818
147880
|
var BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
147819
147881
|
blob: Base64Schema
|
|
147820
147882
|
});
|
|
147821
|
-
var RoleSchema =
|
|
147822
|
-
var AnnotationsSchema =
|
|
147823
|
-
audience:
|
|
147824
|
-
priority:
|
|
147825
|
-
lastModified:
|
|
147883
|
+
var RoleSchema = z57.enum(["user", "assistant"]);
|
|
147884
|
+
var AnnotationsSchema = z57.object({
|
|
147885
|
+
audience: z57.array(RoleSchema).optional(),
|
|
147886
|
+
priority: z57.number().min(0).max(1).optional(),
|
|
147887
|
+
lastModified: z57.iso.datetime({ offset: true }).optional()
|
|
147826
147888
|
});
|
|
147827
|
-
var ResourceSchema =
|
|
147889
|
+
var ResourceSchema = z57.object({
|
|
147828
147890
|
...BaseMetadataSchema.shape,
|
|
147829
147891
|
...IconsSchema.shape,
|
|
147830
|
-
uri:
|
|
147831
|
-
description:
|
|
147832
|
-
mimeType:
|
|
147833
|
-
size:
|
|
147892
|
+
uri: z57.string(),
|
|
147893
|
+
description: z57.optional(z57.string()),
|
|
147894
|
+
mimeType: z57.optional(z57.string()),
|
|
147895
|
+
size: z57.optional(z57.number()),
|
|
147834
147896
|
annotations: AnnotationsSchema.optional(),
|
|
147835
|
-
_meta:
|
|
147897
|
+
_meta: z57.optional(z57.looseObject({}))
|
|
147836
147898
|
});
|
|
147837
|
-
var ResourceTemplateSchema =
|
|
147899
|
+
var ResourceTemplateSchema = z57.object({
|
|
147838
147900
|
...BaseMetadataSchema.shape,
|
|
147839
147901
|
...IconsSchema.shape,
|
|
147840
|
-
uriTemplate:
|
|
147841
|
-
description:
|
|
147842
|
-
mimeType:
|
|
147902
|
+
uriTemplate: z57.string(),
|
|
147903
|
+
description: z57.optional(z57.string()),
|
|
147904
|
+
mimeType: z57.optional(z57.string()),
|
|
147843
147905
|
annotations: AnnotationsSchema.optional(),
|
|
147844
|
-
_meta:
|
|
147906
|
+
_meta: z57.optional(z57.looseObject({}))
|
|
147845
147907
|
});
|
|
147846
147908
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
147847
|
-
method:
|
|
147909
|
+
method: z57.literal("resources/list")
|
|
147848
147910
|
});
|
|
147849
147911
|
var ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
147850
|
-
resources:
|
|
147912
|
+
resources: z57.array(ResourceSchema)
|
|
147851
147913
|
});
|
|
147852
147914
|
var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
147853
|
-
method:
|
|
147915
|
+
method: z57.literal("resources/templates/list")
|
|
147854
147916
|
});
|
|
147855
147917
|
var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
147856
|
-
resourceTemplates:
|
|
147918
|
+
resourceTemplates: z57.array(ResourceTemplateSchema)
|
|
147857
147919
|
});
|
|
147858
147920
|
var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
147859
|
-
uri:
|
|
147921
|
+
uri: z57.string()
|
|
147860
147922
|
});
|
|
147861
147923
|
var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
|
147862
147924
|
var ReadResourceRequestSchema = RequestSchema.extend({
|
|
147863
|
-
method:
|
|
147925
|
+
method: z57.literal("resources/read"),
|
|
147864
147926
|
params: ReadResourceRequestParamsSchema
|
|
147865
147927
|
});
|
|
147866
147928
|
var ReadResourceResultSchema = ResultSchema.extend({
|
|
147867
|
-
contents:
|
|
147929
|
+
contents: z57.array(z57.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
147868
147930
|
});
|
|
147869
147931
|
var ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
147870
|
-
method:
|
|
147932
|
+
method: z57.literal("notifications/resources/list_changed"),
|
|
147871
147933
|
params: NotificationsParamsSchema.optional()
|
|
147872
147934
|
});
|
|
147873
147935
|
var SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
147874
147936
|
var SubscribeRequestSchema = RequestSchema.extend({
|
|
147875
|
-
method:
|
|
147937
|
+
method: z57.literal("resources/subscribe"),
|
|
147876
147938
|
params: SubscribeRequestParamsSchema
|
|
147877
147939
|
});
|
|
147878
147940
|
var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
147879
147941
|
var UnsubscribeRequestSchema = RequestSchema.extend({
|
|
147880
|
-
method:
|
|
147942
|
+
method: z57.literal("resources/unsubscribe"),
|
|
147881
147943
|
params: UnsubscribeRequestParamsSchema
|
|
147882
147944
|
});
|
|
147883
147945
|
var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
147884
|
-
uri:
|
|
147946
|
+
uri: z57.string()
|
|
147885
147947
|
});
|
|
147886
147948
|
var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
147887
|
-
method:
|
|
147949
|
+
method: z57.literal("notifications/resources/updated"),
|
|
147888
147950
|
params: ResourceUpdatedNotificationParamsSchema
|
|
147889
147951
|
});
|
|
147890
|
-
var PromptArgumentSchema =
|
|
147891
|
-
name:
|
|
147892
|
-
description:
|
|
147893
|
-
required:
|
|
147952
|
+
var PromptArgumentSchema = z57.object({
|
|
147953
|
+
name: z57.string(),
|
|
147954
|
+
description: z57.optional(z57.string()),
|
|
147955
|
+
required: z57.optional(z57.boolean())
|
|
147894
147956
|
});
|
|
147895
|
-
var PromptSchema =
|
|
147957
|
+
var PromptSchema = z57.object({
|
|
147896
147958
|
...BaseMetadataSchema.shape,
|
|
147897
147959
|
...IconsSchema.shape,
|
|
147898
|
-
description:
|
|
147899
|
-
arguments:
|
|
147900
|
-
_meta:
|
|
147960
|
+
description: z57.optional(z57.string()),
|
|
147961
|
+
arguments: z57.optional(z57.array(PromptArgumentSchema)),
|
|
147962
|
+
_meta: z57.optional(z57.looseObject({}))
|
|
147901
147963
|
});
|
|
147902
147964
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
147903
|
-
method:
|
|
147965
|
+
method: z57.literal("prompts/list")
|
|
147904
147966
|
});
|
|
147905
147967
|
var ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
147906
|
-
prompts:
|
|
147968
|
+
prompts: z57.array(PromptSchema)
|
|
147907
147969
|
});
|
|
147908
147970
|
var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
147909
|
-
name:
|
|
147910
|
-
arguments:
|
|
147971
|
+
name: z57.string(),
|
|
147972
|
+
arguments: z57.record(z57.string(), z57.string()).optional()
|
|
147911
147973
|
});
|
|
147912
147974
|
var GetPromptRequestSchema = RequestSchema.extend({
|
|
147913
|
-
method:
|
|
147975
|
+
method: z57.literal("prompts/get"),
|
|
147914
147976
|
params: GetPromptRequestParamsSchema
|
|
147915
147977
|
});
|
|
147916
|
-
var TextContentSchema =
|
|
147917
|
-
type:
|
|
147918
|
-
text:
|
|
147978
|
+
var TextContentSchema = z57.object({
|
|
147979
|
+
type: z57.literal("text"),
|
|
147980
|
+
text: z57.string(),
|
|
147919
147981
|
annotations: AnnotationsSchema.optional(),
|
|
147920
|
-
_meta:
|
|
147982
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
147921
147983
|
});
|
|
147922
|
-
var ImageContentSchema =
|
|
147923
|
-
type:
|
|
147984
|
+
var ImageContentSchema = z57.object({
|
|
147985
|
+
type: z57.literal("image"),
|
|
147924
147986
|
data: Base64Schema,
|
|
147925
|
-
mimeType:
|
|
147987
|
+
mimeType: z57.string(),
|
|
147926
147988
|
annotations: AnnotationsSchema.optional(),
|
|
147927
|
-
_meta:
|
|
147989
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
147928
147990
|
});
|
|
147929
|
-
var AudioContentSchema =
|
|
147930
|
-
type:
|
|
147991
|
+
var AudioContentSchema = z57.object({
|
|
147992
|
+
type: z57.literal("audio"),
|
|
147931
147993
|
data: Base64Schema,
|
|
147932
|
-
mimeType:
|
|
147994
|
+
mimeType: z57.string(),
|
|
147933
147995
|
annotations: AnnotationsSchema.optional(),
|
|
147934
|
-
_meta:
|
|
147935
|
-
});
|
|
147936
|
-
var ToolUseContentSchema =
|
|
147937
|
-
type:
|
|
147938
|
-
name:
|
|
147939
|
-
id:
|
|
147940
|
-
input:
|
|
147941
|
-
_meta:
|
|
147942
|
-
});
|
|
147943
|
-
var EmbeddedResourceSchema =
|
|
147944
|
-
type:
|
|
147945
|
-
resource:
|
|
147996
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
147997
|
+
});
|
|
147998
|
+
var ToolUseContentSchema = z57.object({
|
|
147999
|
+
type: z57.literal("tool_use"),
|
|
148000
|
+
name: z57.string(),
|
|
148001
|
+
id: z57.string(),
|
|
148002
|
+
input: z57.record(z57.string(), z57.unknown()),
|
|
148003
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
148004
|
+
});
|
|
148005
|
+
var EmbeddedResourceSchema = z57.object({
|
|
148006
|
+
type: z57.literal("resource"),
|
|
148007
|
+
resource: z57.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
147946
148008
|
annotations: AnnotationsSchema.optional(),
|
|
147947
|
-
_meta:
|
|
148009
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
147948
148010
|
});
|
|
147949
148011
|
var ResourceLinkSchema = ResourceSchema.extend({
|
|
147950
|
-
type:
|
|
148012
|
+
type: z57.literal("resource_link")
|
|
147951
148013
|
});
|
|
147952
|
-
var ContentBlockSchema =
|
|
148014
|
+
var ContentBlockSchema = z57.union([
|
|
147953
148015
|
TextContentSchema,
|
|
147954
148016
|
ImageContentSchema,
|
|
147955
148017
|
AudioContentSchema,
|
|
147956
148018
|
ResourceLinkSchema,
|
|
147957
148019
|
EmbeddedResourceSchema
|
|
147958
148020
|
]);
|
|
147959
|
-
var PromptMessageSchema =
|
|
148021
|
+
var PromptMessageSchema = z57.object({
|
|
147960
148022
|
role: RoleSchema,
|
|
147961
148023
|
content: ContentBlockSchema
|
|
147962
148024
|
});
|
|
147963
148025
|
var GetPromptResultSchema = ResultSchema.extend({
|
|
147964
|
-
description:
|
|
147965
|
-
messages:
|
|
148026
|
+
description: z57.string().optional(),
|
|
148027
|
+
messages: z57.array(PromptMessageSchema)
|
|
147966
148028
|
});
|
|
147967
148029
|
var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
147968
|
-
method:
|
|
148030
|
+
method: z57.literal("notifications/prompts/list_changed"),
|
|
147969
148031
|
params: NotificationsParamsSchema.optional()
|
|
147970
148032
|
});
|
|
147971
|
-
var ToolAnnotationsSchema =
|
|
147972
|
-
title:
|
|
147973
|
-
readOnlyHint:
|
|
147974
|
-
destructiveHint:
|
|
147975
|
-
idempotentHint:
|
|
147976
|
-
openWorldHint:
|
|
148033
|
+
var ToolAnnotationsSchema = z57.object({
|
|
148034
|
+
title: z57.string().optional(),
|
|
148035
|
+
readOnlyHint: z57.boolean().optional(),
|
|
148036
|
+
destructiveHint: z57.boolean().optional(),
|
|
148037
|
+
idempotentHint: z57.boolean().optional(),
|
|
148038
|
+
openWorldHint: z57.boolean().optional()
|
|
147977
148039
|
});
|
|
147978
|
-
var ToolExecutionSchema =
|
|
147979
|
-
taskSupport:
|
|
148040
|
+
var ToolExecutionSchema = z57.object({
|
|
148041
|
+
taskSupport: z57.enum(["required", "optional", "forbidden"]).optional()
|
|
147980
148042
|
});
|
|
147981
|
-
var ToolSchema =
|
|
148043
|
+
var ToolSchema = z57.object({
|
|
147982
148044
|
...BaseMetadataSchema.shape,
|
|
147983
148045
|
...IconsSchema.shape,
|
|
147984
|
-
description:
|
|
147985
|
-
inputSchema:
|
|
147986
|
-
type:
|
|
147987
|
-
properties:
|
|
147988
|
-
required:
|
|
147989
|
-
}).catchall(
|
|
147990
|
-
outputSchema:
|
|
147991
|
-
type:
|
|
147992
|
-
properties:
|
|
147993
|
-
required:
|
|
147994
|
-
}).catchall(
|
|
148046
|
+
description: z57.string().optional(),
|
|
148047
|
+
inputSchema: z57.object({
|
|
148048
|
+
type: z57.literal("object"),
|
|
148049
|
+
properties: z57.record(z57.string(), AssertObjectSchema).optional(),
|
|
148050
|
+
required: z57.array(z57.string()).optional()
|
|
148051
|
+
}).catchall(z57.unknown()),
|
|
148052
|
+
outputSchema: z57.object({
|
|
148053
|
+
type: z57.literal("object"),
|
|
148054
|
+
properties: z57.record(z57.string(), AssertObjectSchema).optional(),
|
|
148055
|
+
required: z57.array(z57.string()).optional()
|
|
148056
|
+
}).catchall(z57.unknown()).optional(),
|
|
147995
148057
|
annotations: ToolAnnotationsSchema.optional(),
|
|
147996
148058
|
execution: ToolExecutionSchema.optional(),
|
|
147997
|
-
_meta:
|
|
148059
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
147998
148060
|
});
|
|
147999
148061
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
148000
|
-
method:
|
|
148062
|
+
method: z57.literal("tools/list")
|
|
148001
148063
|
});
|
|
148002
148064
|
var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
148003
|
-
tools:
|
|
148065
|
+
tools: z57.array(ToolSchema)
|
|
148004
148066
|
});
|
|
148005
148067
|
var CallToolResultSchema = ResultSchema.extend({
|
|
148006
|
-
content:
|
|
148007
|
-
structuredContent:
|
|
148008
|
-
isError:
|
|
148068
|
+
content: z57.array(ContentBlockSchema).default([]),
|
|
148069
|
+
structuredContent: z57.record(z57.string(), z57.unknown()).optional(),
|
|
148070
|
+
isError: z57.boolean().optional()
|
|
148009
148071
|
});
|
|
148010
148072
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
148011
|
-
toolResult:
|
|
148073
|
+
toolResult: z57.unknown()
|
|
148012
148074
|
}));
|
|
148013
148075
|
var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
148014
|
-
name:
|
|
148015
|
-
arguments:
|
|
148076
|
+
name: z57.string(),
|
|
148077
|
+
arguments: z57.record(z57.string(), z57.unknown()).optional()
|
|
148016
148078
|
});
|
|
148017
148079
|
var CallToolRequestSchema = RequestSchema.extend({
|
|
148018
|
-
method:
|
|
148080
|
+
method: z57.literal("tools/call"),
|
|
148019
148081
|
params: CallToolRequestParamsSchema
|
|
148020
148082
|
});
|
|
148021
148083
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
148022
|
-
method:
|
|
148084
|
+
method: z57.literal("notifications/tools/list_changed"),
|
|
148023
148085
|
params: NotificationsParamsSchema.optional()
|
|
148024
148086
|
});
|
|
148025
|
-
var ListChangedOptionsBaseSchema =
|
|
148026
|
-
autoRefresh:
|
|
148027
|
-
debounceMs:
|
|
148087
|
+
var ListChangedOptionsBaseSchema = z57.object({
|
|
148088
|
+
autoRefresh: z57.boolean().default(true),
|
|
148089
|
+
debounceMs: z57.number().int().nonnegative().default(300)
|
|
148028
148090
|
});
|
|
148029
|
-
var LoggingLevelSchema =
|
|
148091
|
+
var LoggingLevelSchema = z57.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
148030
148092
|
var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
148031
148093
|
level: LoggingLevelSchema
|
|
148032
148094
|
});
|
|
148033
148095
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
148034
|
-
method:
|
|
148096
|
+
method: z57.literal("logging/setLevel"),
|
|
148035
148097
|
params: SetLevelRequestParamsSchema
|
|
148036
148098
|
});
|
|
148037
148099
|
var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
148038
148100
|
level: LoggingLevelSchema,
|
|
148039
|
-
logger:
|
|
148040
|
-
data:
|
|
148101
|
+
logger: z57.string().optional(),
|
|
148102
|
+
data: z57.unknown()
|
|
148041
148103
|
});
|
|
148042
148104
|
var LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
148043
|
-
method:
|
|
148105
|
+
method: z57.literal("notifications/message"),
|
|
148044
148106
|
params: LoggingMessageNotificationParamsSchema
|
|
148045
148107
|
});
|
|
148046
|
-
var ModelHintSchema =
|
|
148047
|
-
name:
|
|
148108
|
+
var ModelHintSchema = z57.object({
|
|
148109
|
+
name: z57.string().optional()
|
|
148048
148110
|
});
|
|
148049
|
-
var ModelPreferencesSchema =
|
|
148050
|
-
hints:
|
|
148051
|
-
costPriority:
|
|
148052
|
-
speedPriority:
|
|
148053
|
-
intelligencePriority:
|
|
148111
|
+
var ModelPreferencesSchema = z57.object({
|
|
148112
|
+
hints: z57.array(ModelHintSchema).optional(),
|
|
148113
|
+
costPriority: z57.number().min(0).max(1).optional(),
|
|
148114
|
+
speedPriority: z57.number().min(0).max(1).optional(),
|
|
148115
|
+
intelligencePriority: z57.number().min(0).max(1).optional()
|
|
148054
148116
|
});
|
|
148055
|
-
var ToolChoiceSchema =
|
|
148056
|
-
mode:
|
|
148117
|
+
var ToolChoiceSchema = z57.object({
|
|
148118
|
+
mode: z57.enum(["auto", "required", "none"]).optional()
|
|
148057
148119
|
});
|
|
148058
|
-
var ToolResultContentSchema =
|
|
148059
|
-
type:
|
|
148060
|
-
toolUseId:
|
|
148061
|
-
content:
|
|
148062
|
-
structuredContent:
|
|
148063
|
-
isError:
|
|
148064
|
-
_meta:
|
|
148120
|
+
var ToolResultContentSchema = z57.object({
|
|
148121
|
+
type: z57.literal("tool_result"),
|
|
148122
|
+
toolUseId: z57.string().describe("The unique identifier for the corresponding tool call."),
|
|
148123
|
+
content: z57.array(ContentBlockSchema).default([]),
|
|
148124
|
+
structuredContent: z57.object({}).loose().optional(),
|
|
148125
|
+
isError: z57.boolean().optional(),
|
|
148126
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
148065
148127
|
});
|
|
148066
|
-
var SamplingContentSchema =
|
|
148067
|
-
var SamplingMessageContentBlockSchema =
|
|
148128
|
+
var SamplingContentSchema = z57.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]);
|
|
148129
|
+
var SamplingMessageContentBlockSchema = z57.discriminatedUnion("type", [
|
|
148068
148130
|
TextContentSchema,
|
|
148069
148131
|
ImageContentSchema,
|
|
148070
148132
|
AudioContentSchema,
|
|
148071
148133
|
ToolUseContentSchema,
|
|
148072
148134
|
ToolResultContentSchema
|
|
148073
148135
|
]);
|
|
148074
|
-
var SamplingMessageSchema =
|
|
148136
|
+
var SamplingMessageSchema = z57.object({
|
|
148075
148137
|
role: RoleSchema,
|
|
148076
|
-
content:
|
|
148077
|
-
_meta:
|
|
148138
|
+
content: z57.union([SamplingMessageContentBlockSchema, z57.array(SamplingMessageContentBlockSchema)]),
|
|
148139
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
148078
148140
|
});
|
|
148079
148141
|
var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
148080
|
-
messages:
|
|
148142
|
+
messages: z57.array(SamplingMessageSchema),
|
|
148081
148143
|
modelPreferences: ModelPreferencesSchema.optional(),
|
|
148082
|
-
systemPrompt:
|
|
148083
|
-
includeContext:
|
|
148084
|
-
temperature:
|
|
148085
|
-
maxTokens:
|
|
148086
|
-
stopSequences:
|
|
148144
|
+
systemPrompt: z57.string().optional(),
|
|
148145
|
+
includeContext: z57.enum(["none", "thisServer", "allServers"]).optional(),
|
|
148146
|
+
temperature: z57.number().optional(),
|
|
148147
|
+
maxTokens: z57.number().int(),
|
|
148148
|
+
stopSequences: z57.array(z57.string()).optional(),
|
|
148087
148149
|
metadata: AssertObjectSchema.optional(),
|
|
148088
|
-
tools:
|
|
148150
|
+
tools: z57.array(ToolSchema).optional(),
|
|
148089
148151
|
toolChoice: ToolChoiceSchema.optional()
|
|
148090
148152
|
});
|
|
148091
148153
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
148092
|
-
method:
|
|
148154
|
+
method: z57.literal("sampling/createMessage"),
|
|
148093
148155
|
params: CreateMessageRequestParamsSchema
|
|
148094
148156
|
});
|
|
148095
148157
|
var CreateMessageResultSchema = ResultSchema.extend({
|
|
148096
|
-
model:
|
|
148097
|
-
stopReason:
|
|
148158
|
+
model: z57.string(),
|
|
148159
|
+
stopReason: z57.optional(z57.enum(["endTurn", "stopSequence", "maxTokens"]).or(z57.string())),
|
|
148098
148160
|
role: RoleSchema,
|
|
148099
148161
|
content: SamplingContentSchema
|
|
148100
148162
|
});
|
|
148101
148163
|
var CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
148102
|
-
model:
|
|
148103
|
-
stopReason:
|
|
148164
|
+
model: z57.string(),
|
|
148165
|
+
stopReason: z57.optional(z57.enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(z57.string())),
|
|
148104
148166
|
role: RoleSchema,
|
|
148105
|
-
content:
|
|
148106
|
-
});
|
|
148107
|
-
var BooleanSchemaSchema =
|
|
148108
|
-
type:
|
|
148109
|
-
title:
|
|
148110
|
-
description:
|
|
148111
|
-
default:
|
|
148112
|
-
});
|
|
148113
|
-
var StringSchemaSchema =
|
|
148114
|
-
type:
|
|
148115
|
-
title:
|
|
148116
|
-
description:
|
|
148117
|
-
minLength:
|
|
148118
|
-
maxLength:
|
|
148119
|
-
format:
|
|
148120
|
-
default:
|
|
148121
|
-
});
|
|
148122
|
-
var NumberSchemaSchema =
|
|
148123
|
-
type:
|
|
148124
|
-
title:
|
|
148125
|
-
description:
|
|
148126
|
-
minimum:
|
|
148127
|
-
maximum:
|
|
148128
|
-
default:
|
|
148129
|
-
});
|
|
148130
|
-
var UntitledSingleSelectEnumSchemaSchema =
|
|
148131
|
-
type:
|
|
148132
|
-
title:
|
|
148133
|
-
description:
|
|
148134
|
-
enum:
|
|
148135
|
-
default:
|
|
148136
|
-
});
|
|
148137
|
-
var TitledSingleSelectEnumSchemaSchema =
|
|
148138
|
-
type:
|
|
148139
|
-
title:
|
|
148140
|
-
description:
|
|
148141
|
-
oneOf:
|
|
148142
|
-
const:
|
|
148143
|
-
title:
|
|
148167
|
+
content: z57.union([SamplingMessageContentBlockSchema, z57.array(SamplingMessageContentBlockSchema)])
|
|
148168
|
+
});
|
|
148169
|
+
var BooleanSchemaSchema = z57.object({
|
|
148170
|
+
type: z57.literal("boolean"),
|
|
148171
|
+
title: z57.string().optional(),
|
|
148172
|
+
description: z57.string().optional(),
|
|
148173
|
+
default: z57.boolean().optional()
|
|
148174
|
+
});
|
|
148175
|
+
var StringSchemaSchema = z57.object({
|
|
148176
|
+
type: z57.literal("string"),
|
|
148177
|
+
title: z57.string().optional(),
|
|
148178
|
+
description: z57.string().optional(),
|
|
148179
|
+
minLength: z57.number().optional(),
|
|
148180
|
+
maxLength: z57.number().optional(),
|
|
148181
|
+
format: z57.enum(["email", "uri", "date", "date-time"]).optional(),
|
|
148182
|
+
default: z57.string().optional()
|
|
148183
|
+
});
|
|
148184
|
+
var NumberSchemaSchema = z57.object({
|
|
148185
|
+
type: z57.enum(["number", "integer"]),
|
|
148186
|
+
title: z57.string().optional(),
|
|
148187
|
+
description: z57.string().optional(),
|
|
148188
|
+
minimum: z57.number().optional(),
|
|
148189
|
+
maximum: z57.number().optional(),
|
|
148190
|
+
default: z57.number().optional()
|
|
148191
|
+
});
|
|
148192
|
+
var UntitledSingleSelectEnumSchemaSchema = z57.object({
|
|
148193
|
+
type: z57.literal("string"),
|
|
148194
|
+
title: z57.string().optional(),
|
|
148195
|
+
description: z57.string().optional(),
|
|
148196
|
+
enum: z57.array(z57.string()),
|
|
148197
|
+
default: z57.string().optional()
|
|
148198
|
+
});
|
|
148199
|
+
var TitledSingleSelectEnumSchemaSchema = z57.object({
|
|
148200
|
+
type: z57.literal("string"),
|
|
148201
|
+
title: z57.string().optional(),
|
|
148202
|
+
description: z57.string().optional(),
|
|
148203
|
+
oneOf: z57.array(z57.object({
|
|
148204
|
+
const: z57.string(),
|
|
148205
|
+
title: z57.string()
|
|
148144
148206
|
})),
|
|
148145
|
-
default:
|
|
148146
|
-
});
|
|
148147
|
-
var LegacyTitledEnumSchemaSchema =
|
|
148148
|
-
type:
|
|
148149
|
-
title:
|
|
148150
|
-
description:
|
|
148151
|
-
enum:
|
|
148152
|
-
enumNames:
|
|
148153
|
-
default:
|
|
148154
|
-
});
|
|
148155
|
-
var SingleSelectEnumSchemaSchema =
|
|
148156
|
-
var UntitledMultiSelectEnumSchemaSchema =
|
|
148157
|
-
type:
|
|
148158
|
-
title:
|
|
148159
|
-
description:
|
|
148160
|
-
minItems:
|
|
148161
|
-
maxItems:
|
|
148162
|
-
items:
|
|
148163
|
-
type:
|
|
148164
|
-
enum:
|
|
148207
|
+
default: z57.string().optional()
|
|
148208
|
+
});
|
|
148209
|
+
var LegacyTitledEnumSchemaSchema = z57.object({
|
|
148210
|
+
type: z57.literal("string"),
|
|
148211
|
+
title: z57.string().optional(),
|
|
148212
|
+
description: z57.string().optional(),
|
|
148213
|
+
enum: z57.array(z57.string()),
|
|
148214
|
+
enumNames: z57.array(z57.string()).optional(),
|
|
148215
|
+
default: z57.string().optional()
|
|
148216
|
+
});
|
|
148217
|
+
var SingleSelectEnumSchemaSchema = z57.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
|
|
148218
|
+
var UntitledMultiSelectEnumSchemaSchema = z57.object({
|
|
148219
|
+
type: z57.literal("array"),
|
|
148220
|
+
title: z57.string().optional(),
|
|
148221
|
+
description: z57.string().optional(),
|
|
148222
|
+
minItems: z57.number().optional(),
|
|
148223
|
+
maxItems: z57.number().optional(),
|
|
148224
|
+
items: z57.object({
|
|
148225
|
+
type: z57.literal("string"),
|
|
148226
|
+
enum: z57.array(z57.string())
|
|
148165
148227
|
}),
|
|
148166
|
-
default:
|
|
148167
|
-
});
|
|
148168
|
-
var TitledMultiSelectEnumSchemaSchema =
|
|
148169
|
-
type:
|
|
148170
|
-
title:
|
|
148171
|
-
description:
|
|
148172
|
-
minItems:
|
|
148173
|
-
maxItems:
|
|
148174
|
-
items:
|
|
148175
|
-
anyOf:
|
|
148176
|
-
const:
|
|
148177
|
-
title:
|
|
148228
|
+
default: z57.array(z57.string()).optional()
|
|
148229
|
+
});
|
|
148230
|
+
var TitledMultiSelectEnumSchemaSchema = z57.object({
|
|
148231
|
+
type: z57.literal("array"),
|
|
148232
|
+
title: z57.string().optional(),
|
|
148233
|
+
description: z57.string().optional(),
|
|
148234
|
+
minItems: z57.number().optional(),
|
|
148235
|
+
maxItems: z57.number().optional(),
|
|
148236
|
+
items: z57.object({
|
|
148237
|
+
anyOf: z57.array(z57.object({
|
|
148238
|
+
const: z57.string(),
|
|
148239
|
+
title: z57.string()
|
|
148178
148240
|
}))
|
|
148179
148241
|
}),
|
|
148180
|
-
default:
|
|
148242
|
+
default: z57.array(z57.string()).optional()
|
|
148181
148243
|
});
|
|
148182
|
-
var MultiSelectEnumSchemaSchema =
|
|
148183
|
-
var EnumSchemaSchema =
|
|
148184
|
-
var PrimitiveSchemaDefinitionSchema =
|
|
148244
|
+
var MultiSelectEnumSchemaSchema = z57.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
|
|
148245
|
+
var EnumSchemaSchema = z57.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
|
|
148246
|
+
var PrimitiveSchemaDefinitionSchema = z57.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
|
|
148185
148247
|
var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
148186
|
-
mode:
|
|
148187
|
-
message:
|
|
148188
|
-
requestedSchema:
|
|
148189
|
-
type:
|
|
148190
|
-
properties:
|
|
148191
|
-
required:
|
|
148248
|
+
mode: z57.literal("form").optional(),
|
|
148249
|
+
message: z57.string(),
|
|
148250
|
+
requestedSchema: z57.object({
|
|
148251
|
+
type: z57.literal("object"),
|
|
148252
|
+
properties: z57.record(z57.string(), PrimitiveSchemaDefinitionSchema),
|
|
148253
|
+
required: z57.array(z57.string()).optional()
|
|
148192
148254
|
})
|
|
148193
148255
|
});
|
|
148194
148256
|
var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
148195
|
-
mode:
|
|
148196
|
-
message:
|
|
148197
|
-
elicitationId:
|
|
148198
|
-
url:
|
|
148257
|
+
mode: z57.literal("url"),
|
|
148258
|
+
message: z57.string(),
|
|
148259
|
+
elicitationId: z57.string(),
|
|
148260
|
+
url: z57.string().url()
|
|
148199
148261
|
});
|
|
148200
|
-
var ElicitRequestParamsSchema =
|
|
148262
|
+
var ElicitRequestParamsSchema = z57.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
|
|
148201
148263
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
148202
|
-
method:
|
|
148264
|
+
method: z57.literal("elicitation/create"),
|
|
148203
148265
|
params: ElicitRequestParamsSchema
|
|
148204
148266
|
});
|
|
148205
148267
|
var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
148206
|
-
elicitationId:
|
|
148268
|
+
elicitationId: z57.string()
|
|
148207
148269
|
});
|
|
148208
148270
|
var ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
|
148209
|
-
method:
|
|
148271
|
+
method: z57.literal("notifications/elicitation/complete"),
|
|
148210
148272
|
params: ElicitationCompleteNotificationParamsSchema
|
|
148211
148273
|
});
|
|
148212
148274
|
var ElicitResultSchema = ResultSchema.extend({
|
|
148213
|
-
action:
|
|
148214
|
-
content:
|
|
148275
|
+
action: z57.enum(["accept", "decline", "cancel"]),
|
|
148276
|
+
content: z57.preprocess((val) => val === null ? undefined : val, z57.record(z57.string(), z57.union([z57.string(), z57.number(), z57.boolean(), z57.array(z57.string())])).optional())
|
|
148215
148277
|
});
|
|
148216
|
-
var ResourceTemplateReferenceSchema =
|
|
148217
|
-
type:
|
|
148218
|
-
uri:
|
|
148278
|
+
var ResourceTemplateReferenceSchema = z57.object({
|
|
148279
|
+
type: z57.literal("ref/resource"),
|
|
148280
|
+
uri: z57.string()
|
|
148219
148281
|
});
|
|
148220
|
-
var PromptReferenceSchema =
|
|
148221
|
-
type:
|
|
148222
|
-
name:
|
|
148282
|
+
var PromptReferenceSchema = z57.object({
|
|
148283
|
+
type: z57.literal("ref/prompt"),
|
|
148284
|
+
name: z57.string()
|
|
148223
148285
|
});
|
|
148224
148286
|
var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
148225
|
-
ref:
|
|
148226
|
-
argument:
|
|
148227
|
-
name:
|
|
148228
|
-
value:
|
|
148287
|
+
ref: z57.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
148288
|
+
argument: z57.object({
|
|
148289
|
+
name: z57.string(),
|
|
148290
|
+
value: z57.string()
|
|
148229
148291
|
}),
|
|
148230
|
-
context:
|
|
148231
|
-
arguments:
|
|
148292
|
+
context: z57.object({
|
|
148293
|
+
arguments: z57.record(z57.string(), z57.string()).optional()
|
|
148232
148294
|
}).optional()
|
|
148233
148295
|
});
|
|
148234
148296
|
var CompleteRequestSchema = RequestSchema.extend({
|
|
148235
|
-
method:
|
|
148297
|
+
method: z57.literal("completion/complete"),
|
|
148236
148298
|
params: CompleteRequestParamsSchema
|
|
148237
148299
|
});
|
|
148238
148300
|
var CompleteResultSchema = ResultSchema.extend({
|
|
148239
|
-
completion:
|
|
148240
|
-
values:
|
|
148241
|
-
total:
|
|
148242
|
-
hasMore:
|
|
148301
|
+
completion: z57.looseObject({
|
|
148302
|
+
values: z57.array(z57.string()).max(100),
|
|
148303
|
+
total: z57.optional(z57.number().int()),
|
|
148304
|
+
hasMore: z57.optional(z57.boolean())
|
|
148243
148305
|
})
|
|
148244
148306
|
});
|
|
148245
|
-
var RootSchema =
|
|
148246
|
-
uri:
|
|
148247
|
-
name:
|
|
148248
|
-
_meta:
|
|
148307
|
+
var RootSchema = z57.object({
|
|
148308
|
+
uri: z57.string().startsWith("file://"),
|
|
148309
|
+
name: z57.string().optional(),
|
|
148310
|
+
_meta: z57.record(z57.string(), z57.unknown()).optional()
|
|
148249
148311
|
});
|
|
148250
148312
|
var ListRootsRequestSchema = RequestSchema.extend({
|
|
148251
|
-
method:
|
|
148313
|
+
method: z57.literal("roots/list"),
|
|
148252
148314
|
params: BaseRequestParamsSchema.optional()
|
|
148253
148315
|
});
|
|
148254
148316
|
var ListRootsResultSchema = ResultSchema.extend({
|
|
148255
|
-
roots:
|
|
148317
|
+
roots: z57.array(RootSchema)
|
|
148256
148318
|
});
|
|
148257
148319
|
var RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
148258
|
-
method:
|
|
148320
|
+
method: z57.literal("notifications/roots/list_changed"),
|
|
148259
148321
|
params: NotificationsParamsSchema.optional()
|
|
148260
148322
|
});
|
|
148261
|
-
var ClientRequestSchema =
|
|
148323
|
+
var ClientRequestSchema = z57.union([
|
|
148262
148324
|
PingRequestSchema,
|
|
148263
148325
|
InitializeRequestSchema,
|
|
148264
148326
|
CompleteRequestSchema,
|
|
@@ -148277,14 +148339,14 @@ var ClientRequestSchema = z56.union([
|
|
|
148277
148339
|
ListTasksRequestSchema,
|
|
148278
148340
|
CancelTaskRequestSchema
|
|
148279
148341
|
]);
|
|
148280
|
-
var ClientNotificationSchema =
|
|
148342
|
+
var ClientNotificationSchema = z57.union([
|
|
148281
148343
|
CancelledNotificationSchema,
|
|
148282
148344
|
ProgressNotificationSchema,
|
|
148283
148345
|
InitializedNotificationSchema,
|
|
148284
148346
|
RootsListChangedNotificationSchema,
|
|
148285
148347
|
TaskStatusNotificationSchema
|
|
148286
148348
|
]);
|
|
148287
|
-
var ClientResultSchema =
|
|
148349
|
+
var ClientResultSchema = z57.union([
|
|
148288
148350
|
EmptyResultSchema,
|
|
148289
148351
|
CreateMessageResultSchema,
|
|
148290
148352
|
CreateMessageResultWithToolsSchema,
|
|
@@ -148294,7 +148356,7 @@ var ClientResultSchema = z56.union([
|
|
|
148294
148356
|
ListTasksResultSchema,
|
|
148295
148357
|
CreateTaskResultSchema
|
|
148296
148358
|
]);
|
|
148297
|
-
var ServerRequestSchema =
|
|
148359
|
+
var ServerRequestSchema = z57.union([
|
|
148298
148360
|
PingRequestSchema,
|
|
148299
148361
|
CreateMessageRequestSchema,
|
|
148300
148362
|
ElicitRequestSchema,
|
|
@@ -148304,7 +148366,7 @@ var ServerRequestSchema = z56.union([
|
|
|
148304
148366
|
ListTasksRequestSchema,
|
|
148305
148367
|
CancelTaskRequestSchema
|
|
148306
148368
|
]);
|
|
148307
|
-
var ServerNotificationSchema =
|
|
148369
|
+
var ServerNotificationSchema = z57.union([
|
|
148308
148370
|
CancelledNotificationSchema,
|
|
148309
148371
|
ProgressNotificationSchema,
|
|
148310
148372
|
LoggingMessageNotificationSchema,
|
|
@@ -148315,7 +148377,7 @@ var ServerNotificationSchema = z56.union([
|
|
|
148315
148377
|
TaskStatusNotificationSchema,
|
|
148316
148378
|
ElicitationCompleteNotificationSchema
|
|
148317
148379
|
]);
|
|
148318
|
-
var ServerResultSchema =
|
|
148380
|
+
var ServerResultSchema = z57.union([
|
|
148319
148381
|
EmptyResultSchema,
|
|
148320
148382
|
InitializeResultSchema,
|
|
148321
148383
|
CompleteResultSchema,
|
|
@@ -149993,149 +150055,149 @@ async function pkceChallenge(length) {
|
|
|
149993
150055
|
}
|
|
149994
150056
|
|
|
149995
150057
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
149996
|
-
import * as
|
|
149997
|
-
var SafeUrlSchema =
|
|
150058
|
+
import * as z58 from "zod/v4";
|
|
150059
|
+
var SafeUrlSchema = z58.url().superRefine((val, ctx) => {
|
|
149998
150060
|
if (!URL.canParse(val)) {
|
|
149999
150061
|
ctx.addIssue({
|
|
150000
|
-
code:
|
|
150062
|
+
code: z58.ZodIssueCode.custom,
|
|
150001
150063
|
message: "URL must be parseable",
|
|
150002
150064
|
fatal: true
|
|
150003
150065
|
});
|
|
150004
|
-
return
|
|
150066
|
+
return z58.NEVER;
|
|
150005
150067
|
}
|
|
150006
150068
|
}).refine((url) => {
|
|
150007
150069
|
const u = new URL(url);
|
|
150008
150070
|
return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
|
|
150009
150071
|
}, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
|
|
150010
|
-
var OAuthProtectedResourceMetadataSchema =
|
|
150011
|
-
resource:
|
|
150012
|
-
authorization_servers:
|
|
150013
|
-
jwks_uri:
|
|
150014
|
-
scopes_supported:
|
|
150015
|
-
bearer_methods_supported:
|
|
150016
|
-
resource_signing_alg_values_supported:
|
|
150017
|
-
resource_name:
|
|
150018
|
-
resource_documentation:
|
|
150019
|
-
resource_policy_uri:
|
|
150020
|
-
resource_tos_uri:
|
|
150021
|
-
tls_client_certificate_bound_access_tokens:
|
|
150022
|
-
authorization_details_types_supported:
|
|
150023
|
-
dpop_signing_alg_values_supported:
|
|
150024
|
-
dpop_bound_access_tokens_required:
|
|
150025
|
-
});
|
|
150026
|
-
var OAuthMetadataSchema =
|
|
150027
|
-
issuer:
|
|
150072
|
+
var OAuthProtectedResourceMetadataSchema = z58.looseObject({
|
|
150073
|
+
resource: z58.string().url(),
|
|
150074
|
+
authorization_servers: z58.array(SafeUrlSchema).optional(),
|
|
150075
|
+
jwks_uri: z58.string().url().optional(),
|
|
150076
|
+
scopes_supported: z58.array(z58.string()).optional(),
|
|
150077
|
+
bearer_methods_supported: z58.array(z58.string()).optional(),
|
|
150078
|
+
resource_signing_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150079
|
+
resource_name: z58.string().optional(),
|
|
150080
|
+
resource_documentation: z58.string().optional(),
|
|
150081
|
+
resource_policy_uri: z58.string().url().optional(),
|
|
150082
|
+
resource_tos_uri: z58.string().url().optional(),
|
|
150083
|
+
tls_client_certificate_bound_access_tokens: z58.boolean().optional(),
|
|
150084
|
+
authorization_details_types_supported: z58.array(z58.string()).optional(),
|
|
150085
|
+
dpop_signing_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150086
|
+
dpop_bound_access_tokens_required: z58.boolean().optional()
|
|
150087
|
+
});
|
|
150088
|
+
var OAuthMetadataSchema = z58.looseObject({
|
|
150089
|
+
issuer: z58.string(),
|
|
150028
150090
|
authorization_endpoint: SafeUrlSchema,
|
|
150029
150091
|
token_endpoint: SafeUrlSchema,
|
|
150030
150092
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
150031
|
-
scopes_supported:
|
|
150032
|
-
response_types_supported:
|
|
150033
|
-
response_modes_supported:
|
|
150034
|
-
grant_types_supported:
|
|
150035
|
-
token_endpoint_auth_methods_supported:
|
|
150036
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
150093
|
+
scopes_supported: z58.array(z58.string()).optional(),
|
|
150094
|
+
response_types_supported: z58.array(z58.string()),
|
|
150095
|
+
response_modes_supported: z58.array(z58.string()).optional(),
|
|
150096
|
+
grant_types_supported: z58.array(z58.string()).optional(),
|
|
150097
|
+
token_endpoint_auth_methods_supported: z58.array(z58.string()).optional(),
|
|
150098
|
+
token_endpoint_auth_signing_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150037
150099
|
service_documentation: SafeUrlSchema.optional(),
|
|
150038
150100
|
revocation_endpoint: SafeUrlSchema.optional(),
|
|
150039
|
-
revocation_endpoint_auth_methods_supported:
|
|
150040
|
-
revocation_endpoint_auth_signing_alg_values_supported:
|
|
150041
|
-
introspection_endpoint:
|
|
150042
|
-
introspection_endpoint_auth_methods_supported:
|
|
150043
|
-
introspection_endpoint_auth_signing_alg_values_supported:
|
|
150044
|
-
code_challenge_methods_supported:
|
|
150045
|
-
client_id_metadata_document_supported:
|
|
150046
|
-
});
|
|
150047
|
-
var OpenIdProviderMetadataSchema =
|
|
150048
|
-
issuer:
|
|
150101
|
+
revocation_endpoint_auth_methods_supported: z58.array(z58.string()).optional(),
|
|
150102
|
+
revocation_endpoint_auth_signing_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150103
|
+
introspection_endpoint: z58.string().optional(),
|
|
150104
|
+
introspection_endpoint_auth_methods_supported: z58.array(z58.string()).optional(),
|
|
150105
|
+
introspection_endpoint_auth_signing_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150106
|
+
code_challenge_methods_supported: z58.array(z58.string()).optional(),
|
|
150107
|
+
client_id_metadata_document_supported: z58.boolean().optional()
|
|
150108
|
+
});
|
|
150109
|
+
var OpenIdProviderMetadataSchema = z58.looseObject({
|
|
150110
|
+
issuer: z58.string(),
|
|
150049
150111
|
authorization_endpoint: SafeUrlSchema,
|
|
150050
150112
|
token_endpoint: SafeUrlSchema,
|
|
150051
150113
|
userinfo_endpoint: SafeUrlSchema.optional(),
|
|
150052
150114
|
jwks_uri: SafeUrlSchema,
|
|
150053
150115
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
150054
|
-
scopes_supported:
|
|
150055
|
-
response_types_supported:
|
|
150056
|
-
response_modes_supported:
|
|
150057
|
-
grant_types_supported:
|
|
150058
|
-
acr_values_supported:
|
|
150059
|
-
subject_types_supported:
|
|
150060
|
-
id_token_signing_alg_values_supported:
|
|
150061
|
-
id_token_encryption_alg_values_supported:
|
|
150062
|
-
id_token_encryption_enc_values_supported:
|
|
150063
|
-
userinfo_signing_alg_values_supported:
|
|
150064
|
-
userinfo_encryption_alg_values_supported:
|
|
150065
|
-
userinfo_encryption_enc_values_supported:
|
|
150066
|
-
request_object_signing_alg_values_supported:
|
|
150067
|
-
request_object_encryption_alg_values_supported:
|
|
150068
|
-
request_object_encryption_enc_values_supported:
|
|
150069
|
-
token_endpoint_auth_methods_supported:
|
|
150070
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
150071
|
-
display_values_supported:
|
|
150072
|
-
claim_types_supported:
|
|
150073
|
-
claims_supported:
|
|
150074
|
-
service_documentation:
|
|
150075
|
-
claims_locales_supported:
|
|
150076
|
-
ui_locales_supported:
|
|
150077
|
-
claims_parameter_supported:
|
|
150078
|
-
request_parameter_supported:
|
|
150079
|
-
request_uri_parameter_supported:
|
|
150080
|
-
require_request_uri_registration:
|
|
150116
|
+
scopes_supported: z58.array(z58.string()).optional(),
|
|
150117
|
+
response_types_supported: z58.array(z58.string()),
|
|
150118
|
+
response_modes_supported: z58.array(z58.string()).optional(),
|
|
150119
|
+
grant_types_supported: z58.array(z58.string()).optional(),
|
|
150120
|
+
acr_values_supported: z58.array(z58.string()).optional(),
|
|
150121
|
+
subject_types_supported: z58.array(z58.string()),
|
|
150122
|
+
id_token_signing_alg_values_supported: z58.array(z58.string()),
|
|
150123
|
+
id_token_encryption_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150124
|
+
id_token_encryption_enc_values_supported: z58.array(z58.string()).optional(),
|
|
150125
|
+
userinfo_signing_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150126
|
+
userinfo_encryption_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150127
|
+
userinfo_encryption_enc_values_supported: z58.array(z58.string()).optional(),
|
|
150128
|
+
request_object_signing_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150129
|
+
request_object_encryption_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150130
|
+
request_object_encryption_enc_values_supported: z58.array(z58.string()).optional(),
|
|
150131
|
+
token_endpoint_auth_methods_supported: z58.array(z58.string()).optional(),
|
|
150132
|
+
token_endpoint_auth_signing_alg_values_supported: z58.array(z58.string()).optional(),
|
|
150133
|
+
display_values_supported: z58.array(z58.string()).optional(),
|
|
150134
|
+
claim_types_supported: z58.array(z58.string()).optional(),
|
|
150135
|
+
claims_supported: z58.array(z58.string()).optional(),
|
|
150136
|
+
service_documentation: z58.string().optional(),
|
|
150137
|
+
claims_locales_supported: z58.array(z58.string()).optional(),
|
|
150138
|
+
ui_locales_supported: z58.array(z58.string()).optional(),
|
|
150139
|
+
claims_parameter_supported: z58.boolean().optional(),
|
|
150140
|
+
request_parameter_supported: z58.boolean().optional(),
|
|
150141
|
+
request_uri_parameter_supported: z58.boolean().optional(),
|
|
150142
|
+
require_request_uri_registration: z58.boolean().optional(),
|
|
150081
150143
|
op_policy_uri: SafeUrlSchema.optional(),
|
|
150082
150144
|
op_tos_uri: SafeUrlSchema.optional(),
|
|
150083
|
-
client_id_metadata_document_supported:
|
|
150145
|
+
client_id_metadata_document_supported: z58.boolean().optional()
|
|
150084
150146
|
});
|
|
150085
|
-
var OpenIdProviderDiscoveryMetadataSchema =
|
|
150147
|
+
var OpenIdProviderDiscoveryMetadataSchema = z58.object({
|
|
150086
150148
|
...OpenIdProviderMetadataSchema.shape,
|
|
150087
150149
|
...OAuthMetadataSchema.pick({
|
|
150088
150150
|
code_challenge_methods_supported: true
|
|
150089
150151
|
}).shape
|
|
150090
150152
|
});
|
|
150091
|
-
var OAuthTokensSchema =
|
|
150092
|
-
access_token:
|
|
150093
|
-
id_token:
|
|
150094
|
-
token_type:
|
|
150095
|
-
expires_in:
|
|
150096
|
-
scope:
|
|
150097
|
-
refresh_token:
|
|
150153
|
+
var OAuthTokensSchema = z58.object({
|
|
150154
|
+
access_token: z58.string(),
|
|
150155
|
+
id_token: z58.string().optional(),
|
|
150156
|
+
token_type: z58.string(),
|
|
150157
|
+
expires_in: z58.coerce.number().optional(),
|
|
150158
|
+
scope: z58.string().optional(),
|
|
150159
|
+
refresh_token: z58.string().optional()
|
|
150098
150160
|
}).strip();
|
|
150099
|
-
var OAuthErrorResponseSchema =
|
|
150100
|
-
error:
|
|
150101
|
-
error_description:
|
|
150102
|
-
error_uri:
|
|
150161
|
+
var OAuthErrorResponseSchema = z58.object({
|
|
150162
|
+
error: z58.string(),
|
|
150163
|
+
error_description: z58.string().optional(),
|
|
150164
|
+
error_uri: z58.string().optional()
|
|
150103
150165
|
});
|
|
150104
|
-
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(
|
|
150166
|
+
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z58.literal("").transform(() => {
|
|
150105
150167
|
return;
|
|
150106
150168
|
}));
|
|
150107
|
-
var OAuthClientMetadataSchema =
|
|
150108
|
-
redirect_uris:
|
|
150109
|
-
token_endpoint_auth_method:
|
|
150110
|
-
grant_types:
|
|
150111
|
-
response_types:
|
|
150112
|
-
client_name:
|
|
150169
|
+
var OAuthClientMetadataSchema = z58.object({
|
|
150170
|
+
redirect_uris: z58.array(SafeUrlSchema),
|
|
150171
|
+
token_endpoint_auth_method: z58.string().optional(),
|
|
150172
|
+
grant_types: z58.array(z58.string()).optional(),
|
|
150173
|
+
response_types: z58.array(z58.string()).optional(),
|
|
150174
|
+
client_name: z58.string().optional(),
|
|
150113
150175
|
client_uri: SafeUrlSchema.optional(),
|
|
150114
150176
|
logo_uri: OptionalSafeUrlSchema,
|
|
150115
|
-
scope:
|
|
150116
|
-
contacts:
|
|
150177
|
+
scope: z58.string().optional(),
|
|
150178
|
+
contacts: z58.array(z58.string()).optional(),
|
|
150117
150179
|
tos_uri: OptionalSafeUrlSchema,
|
|
150118
|
-
policy_uri:
|
|
150180
|
+
policy_uri: z58.string().optional(),
|
|
150119
150181
|
jwks_uri: SafeUrlSchema.optional(),
|
|
150120
|
-
jwks:
|
|
150121
|
-
software_id:
|
|
150122
|
-
software_version:
|
|
150123
|
-
software_statement:
|
|
150182
|
+
jwks: z58.any().optional(),
|
|
150183
|
+
software_id: z58.string().optional(),
|
|
150184
|
+
software_version: z58.string().optional(),
|
|
150185
|
+
software_statement: z58.string().optional()
|
|
150124
150186
|
}).strip();
|
|
150125
|
-
var OAuthClientInformationSchema =
|
|
150126
|
-
client_id:
|
|
150127
|
-
client_secret:
|
|
150128
|
-
client_id_issued_at:
|
|
150129
|
-
client_secret_expires_at:
|
|
150187
|
+
var OAuthClientInformationSchema = z58.object({
|
|
150188
|
+
client_id: z58.string(),
|
|
150189
|
+
client_secret: z58.string().optional(),
|
|
150190
|
+
client_id_issued_at: z58.number().optional(),
|
|
150191
|
+
client_secret_expires_at: z58.number().optional()
|
|
150130
150192
|
}).strip();
|
|
150131
150193
|
var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
150132
|
-
var OAuthClientRegistrationErrorSchema =
|
|
150133
|
-
error:
|
|
150134
|
-
error_description:
|
|
150194
|
+
var OAuthClientRegistrationErrorSchema = z58.object({
|
|
150195
|
+
error: z58.string(),
|
|
150196
|
+
error_description: z58.string().optional()
|
|
150135
150197
|
}).strip();
|
|
150136
|
-
var OAuthTokenRevocationRequestSchema =
|
|
150137
|
-
token:
|
|
150138
|
-
token_type_hint:
|
|
150198
|
+
var OAuthTokenRevocationRequestSchema = z58.object({
|
|
150199
|
+
token: z58.string(),
|
|
150200
|
+
token_type_hint: z58.string().optional()
|
|
150139
150201
|
}).strip();
|
|
150140
150202
|
|
|
150141
150203
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
|
|
@@ -152348,7 +152410,7 @@ function mirrorFilePath(projectDir) {
|
|
|
152348
152410
|
}
|
|
152349
152411
|
|
|
152350
152412
|
// packages/omo-opencode/src/features/tui-sidebar/snapshot-schema.ts
|
|
152351
|
-
import { z as
|
|
152413
|
+
import { z as z59 } from "zod";
|
|
152352
152414
|
var AGENT_STATUS_VALUES = [
|
|
152353
152415
|
"busy",
|
|
152354
152416
|
"idle",
|
|
@@ -152364,32 +152426,32 @@ var BACKGROUND_TASK_STATUS_VALUES = [
|
|
|
152364
152426
|
"cancelled",
|
|
152365
152427
|
"interrupt"
|
|
152366
152428
|
];
|
|
152367
|
-
var AgentRowSchema =
|
|
152368
|
-
name:
|
|
152369
|
-
status:
|
|
152370
|
-
});
|
|
152371
|
-
var JobRowSchema =
|
|
152372
|
-
title:
|
|
152373
|
-
status:
|
|
152374
|
-
toolCalls:
|
|
152375
|
-
lastTool:
|
|
152376
|
-
});
|
|
152377
|
-
var LoopLiveSchema =
|
|
152378
|
-
kind:
|
|
152379
|
-
goalsDone:
|
|
152380
|
-
goalsTotal:
|
|
152381
|
-
pass:
|
|
152382
|
-
fail:
|
|
152383
|
-
pending:
|
|
152384
|
-
blocked:
|
|
152385
|
-
activeGoal:
|
|
152386
|
-
});
|
|
152387
|
-
var TuiRuntimeSnapshotSchema =
|
|
152388
|
-
version:
|
|
152389
|
-
projectDir:
|
|
152390
|
-
updatedAt:
|
|
152391
|
-
activeAgents:
|
|
152392
|
-
jobBoard:
|
|
152429
|
+
var AgentRowSchema = z59.object({
|
|
152430
|
+
name: z59.string(),
|
|
152431
|
+
status: z59.enum(AGENT_STATUS_VALUES)
|
|
152432
|
+
});
|
|
152433
|
+
var JobRowSchema = z59.object({
|
|
152434
|
+
title: z59.string(),
|
|
152435
|
+
status: z59.enum(BACKGROUND_TASK_STATUS_VALUES),
|
|
152436
|
+
toolCalls: z59.number().int().nonnegative().nullable(),
|
|
152437
|
+
lastTool: z59.string().nullable()
|
|
152438
|
+
});
|
|
152439
|
+
var LoopLiveSchema = z59.object({
|
|
152440
|
+
kind: z59.literal("live"),
|
|
152441
|
+
goalsDone: z59.number().int().nonnegative(),
|
|
152442
|
+
goalsTotal: z59.number().int().nonnegative(),
|
|
152443
|
+
pass: z59.number().int().nonnegative(),
|
|
152444
|
+
fail: z59.number().int().nonnegative(),
|
|
152445
|
+
pending: z59.number().int().nonnegative(),
|
|
152446
|
+
blocked: z59.number().int().nonnegative(),
|
|
152447
|
+
activeGoal: z59.string().nullable()
|
|
152448
|
+
});
|
|
152449
|
+
var TuiRuntimeSnapshotSchema = z59.object({
|
|
152450
|
+
version: z59.literal(MIRROR_SCHEMA_VERSION),
|
|
152451
|
+
projectDir: z59.string(),
|
|
152452
|
+
updatedAt: z59.number(),
|
|
152453
|
+
activeAgents: z59.array(AgentRowSchema),
|
|
152454
|
+
jobBoard: z59.array(JobRowSchema),
|
|
152393
152455
|
loop: LoopLiveSchema.nullable()
|
|
152394
152456
|
});
|
|
152395
152457
|
|
|
@@ -152403,25 +152465,25 @@ function writeMirror(projectDir, snapshot) {
|
|
|
152403
152465
|
// packages/omo-opencode/src/features/tui-sidebar/loop-reader.ts
|
|
152404
152466
|
import { readdirSync as readdirSync31, readFileSync as readFileSync69, statSync as statSync14 } from "fs";
|
|
152405
152467
|
import { join as join130 } from "path";
|
|
152406
|
-
import { z as
|
|
152407
|
-
var CriterionSchema =
|
|
152408
|
-
status:
|
|
152409
|
-
});
|
|
152410
|
-
var GoalBaseSchema =
|
|
152411
|
-
id:
|
|
152412
|
-
title:
|
|
152413
|
-
status:
|
|
152414
|
-
});
|
|
152415
|
-
var CurrentLoopSchema =
|
|
152416
|
-
version:
|
|
152417
|
-
activeGoalId:
|
|
152418
|
-
goals:
|
|
152419
|
-
successCriteria:
|
|
152468
|
+
import { z as z60 } from "zod";
|
|
152469
|
+
var CriterionSchema = z60.object({
|
|
152470
|
+
status: z60.string()
|
|
152471
|
+
});
|
|
152472
|
+
var GoalBaseSchema = z60.object({
|
|
152473
|
+
id: z60.string(),
|
|
152474
|
+
title: z60.string(),
|
|
152475
|
+
status: z60.string()
|
|
152476
|
+
});
|
|
152477
|
+
var CurrentLoopSchema = z60.object({
|
|
152478
|
+
version: z60.literal(1),
|
|
152479
|
+
activeGoalId: z60.string().optional(),
|
|
152480
|
+
goals: z60.array(GoalBaseSchema.extend({
|
|
152481
|
+
successCriteria: z60.array(CriterionSchema)
|
|
152420
152482
|
}))
|
|
152421
152483
|
});
|
|
152422
|
-
var LegacyLoopSchema =
|
|
152423
|
-
goals:
|
|
152424
|
-
criteria:
|
|
152484
|
+
var LegacyLoopSchema = z60.object({
|
|
152485
|
+
goals: z60.array(GoalBaseSchema.extend({
|
|
152486
|
+
criteria: z60.array(CriterionSchema)
|
|
152425
152487
|
}))
|
|
152426
152488
|
});
|
|
152427
152489
|
function readActiveLoop(projectDir) {
|
|
@@ -165777,6 +165839,7 @@ function applyEnvironmentContext(config, directory, options = {}) {
|
|
|
165777
165839
|
}
|
|
165778
165840
|
|
|
165779
165841
|
// packages/omo-opencode/src/agents/builtin-agents/general-agents.ts
|
|
165842
|
+
init_model_resolution();
|
|
165780
165843
|
init_logger2();
|
|
165781
165844
|
function collectPendingBuiltinAgents(input) {
|
|
165782
165845
|
const {
|
|
@@ -165822,20 +165885,21 @@ function collectPendingBuiltinAgents(input) {
|
|
|
165822
165885
|
}
|
|
165823
165886
|
}
|
|
165824
165887
|
const isPrimaryAgent = isFactory(source) && source.mode === "primary";
|
|
165888
|
+
const overridePrimaryModel = primaryOverrideModel(override);
|
|
165825
165889
|
let resolution = applyModelResolution({
|
|
165826
|
-
uiSelectedModel: isPrimaryAgent &&
|
|
165827
|
-
userModel:
|
|
165890
|
+
uiSelectedModel: isPrimaryAgent && overridePrimaryModel === undefined ? uiSelectedModel : undefined,
|
|
165891
|
+
userModel: overridePrimaryModel,
|
|
165828
165892
|
requirement,
|
|
165829
165893
|
availableModels,
|
|
165830
165894
|
systemDefaultModel
|
|
165831
165895
|
});
|
|
165832
165896
|
if (!resolution) {
|
|
165833
|
-
if (
|
|
165897
|
+
if (overridePrimaryModel) {
|
|
165834
165898
|
log2("[agent-registration] User-configured model not resolved, using as-is", {
|
|
165835
165899
|
agent: agentName,
|
|
165836
|
-
configuredModel:
|
|
165900
|
+
configuredModel: overridePrimaryModel
|
|
165837
165901
|
});
|
|
165838
|
-
resolution = { model:
|
|
165902
|
+
resolution = { model: overridePrimaryModel, provenance: "override" };
|
|
165839
165903
|
} else {
|
|
165840
165904
|
resolution = getFirstFallbackModel(requirement);
|
|
165841
165905
|
}
|
|
@@ -165843,7 +165907,7 @@ function collectPendingBuiltinAgents(input) {
|
|
|
165843
165907
|
if (!resolution) {
|
|
165844
165908
|
log2("[agent-registration] Agent skipped: model resolution returned no result", {
|
|
165845
165909
|
agent: agentName,
|
|
165846
|
-
configuredModel:
|
|
165910
|
+
configuredModel: overridePrimaryModel
|
|
165847
165911
|
});
|
|
165848
165912
|
continue;
|
|
165849
165913
|
}
|
|
@@ -165873,6 +165937,7 @@ function collectPendingBuiltinAgents(input) {
|
|
|
165873
165937
|
// packages/omo-opencode/src/agents/builtin-agents/sisyphus-agent.ts
|
|
165874
165938
|
init_shared();
|
|
165875
165939
|
init_logger2();
|
|
165940
|
+
init_model_resolution();
|
|
165876
165941
|
|
|
165877
165942
|
// packages/omo-opencode/src/agents/sisyphus-runtime-prompt-reconciler.ts
|
|
165878
165943
|
var context;
|
|
@@ -165928,19 +165993,19 @@ function maybeCreateSisyphusConfig(input) {
|
|
|
165928
165993
|
if (disabledAgents.includes("sisyphus") || !meetsSisyphusAnyModelRequirement)
|
|
165929
165994
|
return;
|
|
165930
165995
|
let sisyphusResolution = applyModelResolution({
|
|
165931
|
-
uiSelectedModel: sisyphusOverride
|
|
165932
|
-
userModel: sisyphusOverride
|
|
165996
|
+
uiSelectedModel: primaryOverrideModel(sisyphusOverride) !== undefined ? undefined : uiSelectedModel,
|
|
165997
|
+
userModel: primaryOverrideModel(sisyphusOverride),
|
|
165933
165998
|
requirement: sisyphusRequirement,
|
|
165934
165999
|
availableModels,
|
|
165935
166000
|
systemDefaultModel
|
|
165936
166001
|
});
|
|
165937
|
-
if (isFirstRunNoCache && !sisyphusOverride
|
|
166002
|
+
if (isFirstRunNoCache && !primaryOverrideModel(sisyphusOverride) && !uiSelectedModel) {
|
|
165938
166003
|
sisyphusResolution = getFirstFallbackModel(sisyphusRequirement);
|
|
165939
166004
|
}
|
|
165940
166005
|
if (!sisyphusResolution) {
|
|
165941
166006
|
log2("[agent-registration] Agent skipped: model resolution returned no result", {
|
|
165942
166007
|
agent: "sisyphus",
|
|
165943
|
-
configuredModel: sisyphusOverride
|
|
166008
|
+
configuredModel: primaryOverrideModel(sisyphusOverride)
|
|
165944
166009
|
});
|
|
165945
166010
|
return;
|
|
165946
166011
|
}
|
|
@@ -165971,6 +166036,7 @@ function maybeCreateSisyphusConfig(input) {
|
|
|
165971
166036
|
// packages/omo-opencode/src/agents/builtin-agents/hephaestus-agent.ts
|
|
165972
166037
|
init_shared();
|
|
165973
166038
|
init_logger2();
|
|
166039
|
+
init_model_resolution();
|
|
165974
166040
|
function maybeCreateHephaestusConfig(input) {
|
|
165975
166041
|
const {
|
|
165976
166042
|
disabledAgents,
|
|
@@ -166000,12 +166066,12 @@ function maybeCreateHephaestusConfig(input) {
|
|
|
166000
166066
|
return;
|
|
166001
166067
|
}
|
|
166002
166068
|
let hephaestusResolution = applyModelResolution({
|
|
166003
|
-
userModel: hephaestusOverride
|
|
166069
|
+
userModel: primaryOverrideModel(hephaestusOverride),
|
|
166004
166070
|
requirement: hephaestusRequirement,
|
|
166005
166071
|
availableModels,
|
|
166006
166072
|
systemDefaultModel
|
|
166007
166073
|
});
|
|
166008
|
-
if (isFirstRunNoCache && !hephaestusOverride
|
|
166074
|
+
if (isFirstRunNoCache && !primaryOverrideModel(hephaestusOverride)) {
|
|
166009
166075
|
hephaestusResolution = getFirstFallbackModel(hephaestusRequirement);
|
|
166010
166076
|
}
|
|
166011
166077
|
if (!hephaestusResolution) {
|
|
@@ -166055,6 +166121,7 @@ function maybeCreateHephaestusConfig(input) {
|
|
|
166055
166121
|
// packages/omo-opencode/src/agents/builtin-agents/atlas-agent.ts
|
|
166056
166122
|
init_shared();
|
|
166057
166123
|
init_logger2();
|
|
166124
|
+
init_model_resolution();
|
|
166058
166125
|
function maybeCreateAtlasConfig(input) {
|
|
166059
166126
|
const {
|
|
166060
166127
|
disabledAgents,
|
|
@@ -166072,20 +166139,21 @@ function maybeCreateAtlasConfig(input) {
|
|
|
166072
166139
|
return;
|
|
166073
166140
|
const orchestratorOverride = agentOverrides["atlas"];
|
|
166074
166141
|
const atlasRequirement = AGENT_MODEL_REQUIREMENTS["atlas"];
|
|
166142
|
+
const atlasPrimaryModel = primaryOverrideModel(orchestratorOverride);
|
|
166075
166143
|
let atlasResolution = applyModelResolution({
|
|
166076
|
-
uiSelectedModel:
|
|
166077
|
-
userModel:
|
|
166144
|
+
uiSelectedModel: atlasPrimaryModel !== undefined ? undefined : uiSelectedModel,
|
|
166145
|
+
userModel: atlasPrimaryModel,
|
|
166078
166146
|
requirement: atlasRequirement,
|
|
166079
166147
|
availableModels,
|
|
166080
166148
|
systemDefaultModel
|
|
166081
166149
|
});
|
|
166082
|
-
if (!atlasResolution &&
|
|
166083
|
-
atlasResolution = { model:
|
|
166150
|
+
if (!atlasResolution && atlasPrimaryModel) {
|
|
166151
|
+
atlasResolution = { model: atlasPrimaryModel, provenance: "override" };
|
|
166084
166152
|
}
|
|
166085
166153
|
if (!atlasResolution) {
|
|
166086
166154
|
log2("[agent-registration] Agent skipped: model resolution returned no result", {
|
|
166087
166155
|
agent: "atlas",
|
|
166088
|
-
configuredModel:
|
|
166156
|
+
configuredModel: atlasPrimaryModel
|
|
166089
166157
|
});
|
|
166090
166158
|
return;
|
|
166091
166159
|
}
|
|
@@ -167197,7 +167265,7 @@ init_opencode_config_dir();
|
|
|
167197
167265
|
import { existsSync as existsSync109, readFileSync as readFileSync76 } from "fs";
|
|
167198
167266
|
import { delimiter as delimiter2, dirname as dirname49, resolve as resolve37 } from "path";
|
|
167199
167267
|
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
167200
|
-
import { z as
|
|
167268
|
+
import { z as z61 } from "zod";
|
|
167201
167269
|
|
|
167202
167270
|
// packages/omo-opencode/src/mcp/cli-suffix.ts
|
|
167203
167271
|
function normalizeCliPath(path) {
|
|
@@ -167298,8 +167366,8 @@ var PROJECT_LSP_CONFIGS = [".opencode/lsp.json", ".omo/lsp.json", ".omo/lsp-clie
|
|
|
167298
167366
|
var DAEMON_PACKAGE_NAME = "@code-yeongyu/lsp-daemon";
|
|
167299
167367
|
var OMO_LSP_DAEMON_CLI = "OMO_LSP_DAEMON_CLI";
|
|
167300
167368
|
var OMO_LSP_DAEMON_VERSION = "OMO_LSP_DAEMON_VERSION";
|
|
167301
|
-
var DaemonPackageSchema =
|
|
167302
|
-
version:
|
|
167369
|
+
var DaemonPackageSchema = z61.object({
|
|
167370
|
+
version: z61.string().min(1)
|
|
167303
167371
|
});
|
|
167304
167372
|
var LSP_BOOTSTRAP_SCRIPT = [
|
|
167305
167373
|
"const { existsSync } = require('node:fs')",
|
|
@@ -172560,14 +172628,14 @@ init_process();
|
|
|
172560
172628
|
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1);
|
|
172561
172629
|
// packages/omo-opencode/src/plugin/native-skills.ts
|
|
172562
172630
|
init_shared();
|
|
172563
|
-
import { z as
|
|
172564
|
-
var NativeSkillEntrySchema =
|
|
172565
|
-
name:
|
|
172566
|
-
description:
|
|
172567
|
-
location:
|
|
172568
|
-
content:
|
|
172631
|
+
import { z as z62 } from "zod";
|
|
172632
|
+
var NativeSkillEntrySchema = z62.object({
|
|
172633
|
+
name: z62.string(),
|
|
172634
|
+
description: z62.string().default(""),
|
|
172635
|
+
location: z62.string(),
|
|
172636
|
+
content: z62.string()
|
|
172569
172637
|
});
|
|
172570
|
-
var NativeSkillEntriesSchema =
|
|
172638
|
+
var NativeSkillEntriesSchema = z62.array(NativeSkillEntrySchema);
|
|
172571
172639
|
function getObjectProperty(value, property) {
|
|
172572
172640
|
if (typeof value !== "object" || value === null)
|
|
172573
172641
|
return;
|
|
@@ -173723,7 +173791,7 @@ async function resolveParticipant2(teamRunId, sessionID, config, deps) {
|
|
|
173723
173791
|
}
|
|
173724
173792
|
|
|
173725
173793
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-inline-spec.ts
|
|
173726
|
-
import { z as
|
|
173794
|
+
import { z as z63 } from "zod";
|
|
173727
173795
|
init_types3();
|
|
173728
173796
|
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." }] } }).';
|
|
173729
173797
|
function omitEmptyStringArgs(rawArgs) {
|
|
@@ -173732,10 +173800,10 @@ function omitEmptyStringArgs(rawArgs) {
|
|
|
173732
173800
|
}
|
|
173733
173801
|
return Object.fromEntries(Object.entries(rawArgs).filter(([, value]) => value !== ""));
|
|
173734
173802
|
}
|
|
173735
|
-
var TeamCreateArgsSchema =
|
|
173736
|
-
teamName:
|
|
173737
|
-
inline_spec:
|
|
173738
|
-
leadSessionId:
|
|
173803
|
+
var TeamCreateArgsSchema = z63.preprocess(omitEmptyStringArgs, z63.object({
|
|
173804
|
+
teamName: z63.string().min(1).nullish(),
|
|
173805
|
+
inline_spec: z63.unknown().nullish(),
|
|
173806
|
+
leadSessionId: z63.string().nullish()
|
|
173739
173807
|
}).superRefine((value, ctx) => {
|
|
173740
173808
|
const optionCount = Number(value.teamName != null) + Number(value.inline_spec != null);
|
|
173741
173809
|
if (optionCount !== 1) {
|
|
@@ -173856,7 +173924,7 @@ function createTeamCreateTool(config, client, bgMgr, tmuxMgr, executorConfig, de
|
|
|
173856
173924
|
});
|
|
173857
173925
|
}
|
|
173858
173926
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
173859
|
-
import { z as
|
|
173927
|
+
import { z as z64 } from "zod";
|
|
173860
173928
|
// packages/omo-opencode/src/features/team-mode/team-runtime/shutdown.ts
|
|
173861
173929
|
init_store2();
|
|
173862
173930
|
init_shutdown_helpers();
|
|
@@ -173945,13 +174013,13 @@ async function rejectShutdown(teamRunId, memberName, rejectorName, reason, confi
|
|
|
173945
174013
|
|
|
173946
174014
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
173947
174015
|
init_store();
|
|
173948
|
-
var TeamDeleteArgsSchema =
|
|
173949
|
-
var TeamShutdownRequestArgsSchema =
|
|
173950
|
-
var TeamApproveShutdownArgsSchema =
|
|
173951
|
-
var TeamRejectShutdownArgsSchema =
|
|
173952
|
-
teamRunId:
|
|
173953
|
-
memberName:
|
|
173954
|
-
reason:
|
|
174016
|
+
var TeamDeleteArgsSchema = z64.object({ teamRunId: z64.string().min(1), force: z64.boolean().optional() });
|
|
174017
|
+
var TeamShutdownRequestArgsSchema = z64.object({ teamRunId: z64.string().min(1), targetMemberName: z64.string().min(1) });
|
|
174018
|
+
var TeamApproveShutdownArgsSchema = z64.object({ teamRunId: z64.string().min(1), memberName: z64.string().min(1) });
|
|
174019
|
+
var TeamRejectShutdownArgsSchema = z64.object({
|
|
174020
|
+
teamRunId: z64.string().min(1),
|
|
174021
|
+
memberName: z64.string().min(1),
|
|
174022
|
+
reason: z64.string().min(1)
|
|
173955
174023
|
});
|
|
173956
174024
|
var defaultTeamShutdownToolDeps = {
|
|
173957
174025
|
listActiveTeams,
|
|
@@ -184464,7 +184532,7 @@ var DEFAULT_MAX_ATTRIBUTES_PER_EVENT = 128;
|
|
|
184464
184532
|
var DEFAULT_MAX_ATTRIBUTE_VALUE_LENGTH = 8192;
|
|
184465
184533
|
var DEFAULT_MAX_LIVE_SPANS = 1e4;
|
|
184466
184534
|
var DEFAULT_MAX_SPAN_AGE_MS = 3600000;
|
|
184467
|
-
function
|
|
184535
|
+
function positiveInteger2(value, fallback) {
|
|
184468
184536
|
return typeof value == "number" && Number.isInteger(value) && value >= 1 ? value : fallback;
|
|
184469
184537
|
}
|
|
184470
184538
|
var IDENTITY_KEYS = [
|
|
@@ -184504,22 +184572,22 @@ function resolveTracesConfig(config, hostResourceAttributes, logger) {
|
|
|
184504
184572
|
const resourceAttributes = assignUserAttributes({
|
|
184505
184573
|
...hostResourceAttributes
|
|
184506
184574
|
}, withUsableIdentityKeys(config?.resourceAttributes));
|
|
184507
|
-
const maxExportBatchSize =
|
|
184575
|
+
const maxExportBatchSize = positiveInteger2(config?.maxExportBatchSize, DEFAULT_MAX_EXPORT_BATCH_SIZE);
|
|
184508
184576
|
return {
|
|
184509
184577
|
serviceName: resourceAttributes?.["service.name"] ?? config?.serviceName,
|
|
184510
184578
|
serviceVersion: resourceAttributes?.["service.version"] ?? config?.serviceVersion,
|
|
184511
184579
|
environment: resourceAttributes?.["deployment.environment"] ?? config?.environment,
|
|
184512
184580
|
resourceAttributes,
|
|
184513
184581
|
beforeSpanSend: resolveBeforeSpanSend(config?.beforeSpanSend, logger),
|
|
184514
|
-
maxAttributesPerSpan:
|
|
184515
|
-
maxEventsPerSpan:
|
|
184582
|
+
maxAttributesPerSpan: positiveInteger2(config?.maxAttributesPerSpan, DEFAULT_MAX_ATTRIBUTES_PER_SPAN),
|
|
184583
|
+
maxEventsPerSpan: positiveInteger2(config?.maxEventsPerSpan, DEFAULT_MAX_EVENTS_PER_SPAN),
|
|
184516
184584
|
maxAttributesPerEvent: DEFAULT_MAX_ATTRIBUTES_PER_EVENT,
|
|
184517
|
-
maxAttributeValueLength:
|
|
184518
|
-
flushIntervalMs:
|
|
184585
|
+
maxAttributeValueLength: positiveInteger2(config?.maxAttributeValueLength, DEFAULT_MAX_ATTRIBUTE_VALUE_LENGTH),
|
|
184586
|
+
flushIntervalMs: positiveInteger2(config?.flushIntervalMs, DEFAULT_FLUSH_INTERVAL_MS2),
|
|
184519
184587
|
maxExportBatchSize,
|
|
184520
|
-
maxQueueSize: Math.max(
|
|
184521
|
-
maxLiveSpans:
|
|
184522
|
-
maxSpanAgeMs:
|
|
184588
|
+
maxQueueSize: Math.max(positiveInteger2(config?.maxQueueSize, DEFAULT_MAX_QUEUE_SIZE), maxExportBatchSize),
|
|
184589
|
+
maxLiveSpans: positiveInteger2(config?.maxLiveSpans, DEFAULT_MAX_LIVE_SPANS),
|
|
184590
|
+
maxSpanAgeMs: positiveInteger2(config?.maxSpanAgeMs, DEFAULT_MAX_SPAN_AGE_MS)
|
|
184523
184591
|
};
|
|
184524
184592
|
}
|
|
184525
184593
|
// node_modules/.bun/posthog-node@5.52.4/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
|
|
@@ -188640,11 +188708,11 @@ function spikeLog3(event, data = {}) {
|
|
|
188640
188708
|
`);
|
|
188641
188709
|
} catch {}
|
|
188642
188710
|
}
|
|
188643
|
-
var
|
|
188711
|
+
var z65 = tool.schema;
|
|
188644
188712
|
function convertArgsToJsonSchema(args) {
|
|
188645
188713
|
try {
|
|
188646
|
-
const schema =
|
|
188647
|
-
const converted =
|
|
188714
|
+
const schema = z65.object(args);
|
|
188715
|
+
const converted = z65.toJSONSchema(schema);
|
|
188648
188716
|
delete converted["$schema"];
|
|
188649
188717
|
return converted;
|
|
188650
188718
|
} catch {
|