oh-my-opencode 5.1.7 → 5.1.9
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/cli/index.js +35 -43
- package/dist/cli-node/index.js +35 -43
- package/dist/index.js +1118 -1106
- package/dist/shared/index.d.ts +0 -1
- package/dist/shared/live-server-route.d.ts +0 -2
- package/dist/shared/tmux/tmux-utils/pane-close.d.ts +0 -3
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +1 -1
- package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
- package/dist/skills/debugging/SKILL.md +1 -1
- package/dist/skills/debugging/references/methodology/06-fix.md +8 -0
- package/dist/tui.js +34 -42
- package/package.json +14 -14
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +12 -3
- 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/bootstrap/test/download.test.ts +0 -16
- package/packages/omo-codex/plugin/components/bootstrap/test/environment.test.ts +3 -0
- 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/lsp/test/package-smoke.test.ts +0 -27
- 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/ultrawork/test/directive-source.test.ts +0 -6
- package/packages/omo-codex/plugin/components/ultrawork/test/package-smoke.test.ts +0 -15
- 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-lock.json +12 -12
- 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/plugin/skills/debugging/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/debugging/references/methodology/06-fix.md +8 -0
- package/packages/omo-codex/plugin/test/AGENTS.md +11 -0
- package/packages/omo-codex/plugin/test/component-bundled-cli.test.mjs +0 -50
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +14 -5
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
- package/packages/shared-skills/skills/debugging/SKILL.md +1 -1
- package/packages/shared-skills/skills/debugging/references/methodology/06-fix.md +8 -0
package/dist/index.js
CHANGED
|
@@ -11813,7 +11813,7 @@ var init_member_parser = __esm(() => {
|
|
|
11813
11813
|
});
|
|
11814
11814
|
|
|
11815
11815
|
// packages/team-core/src/types.ts
|
|
11816
|
-
import * as
|
|
11816
|
+
import * as z53 from "zod";
|
|
11817
11817
|
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;
|
|
11818
11818
|
var init_types2 = __esm(() => {
|
|
11819
11819
|
init_member_parser();
|
|
@@ -11834,40 +11834,40 @@ var init_types2 = __esm(() => {
|
|
|
11834
11834
|
"failed",
|
|
11835
11835
|
"orphaned"
|
|
11836
11836
|
];
|
|
11837
|
-
MemberBaseSchema =
|
|
11838
|
-
name:
|
|
11839
|
-
cwd:
|
|
11840
|
-
worktreePath:
|
|
11841
|
-
task_summary:
|
|
11842
|
-
subscriptions:
|
|
11843
|
-
backendType:
|
|
11844
|
-
color:
|
|
11845
|
-
isActive:
|
|
11837
|
+
MemberBaseSchema = z53.object({
|
|
11838
|
+
name: z53.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
11839
|
+
cwd: z53.string().optional(),
|
|
11840
|
+
worktreePath: z53.string().optional(),
|
|
11841
|
+
task_summary: z53.string().max(80).optional(),
|
|
11842
|
+
subscriptions: z53.array(z53.string()).optional(),
|
|
11843
|
+
backendType: z53.enum(["in-process", "tmux"]).default("in-process"),
|
|
11844
|
+
color: z53.string().optional(),
|
|
11845
|
+
isActive: z53.boolean().default(true)
|
|
11846
11846
|
}).strict();
|
|
11847
11847
|
CategoryMemberSchema = MemberBaseSchema.extend({
|
|
11848
|
-
kind:
|
|
11849
|
-
category:
|
|
11850
|
-
prompt:
|
|
11848
|
+
kind: z53.literal("category"),
|
|
11849
|
+
category: z53.string().min(1),
|
|
11850
|
+
prompt: z53.string().min(1)
|
|
11851
11851
|
});
|
|
11852
11852
|
SubagentMemberSchema = MemberBaseSchema.extend({
|
|
11853
|
-
kind:
|
|
11854
|
-
subagent_type:
|
|
11855
|
-
prompt:
|
|
11853
|
+
kind: z53.literal("subagent_type"),
|
|
11854
|
+
subagent_type: z53.string().min(1),
|
|
11855
|
+
prompt: z53.string().optional()
|
|
11856
11856
|
});
|
|
11857
|
-
MemberSchema =
|
|
11858
|
-
TeamReferenceSchema =
|
|
11859
|
-
path:
|
|
11860
|
-
description:
|
|
11857
|
+
MemberSchema = z53.discriminatedUnion("kind", [CategoryMemberSchema, SubagentMemberSchema]);
|
|
11858
|
+
TeamReferenceSchema = z53.object({
|
|
11859
|
+
path: z53.string(),
|
|
11860
|
+
description: z53.string().optional()
|
|
11861
11861
|
}).strict();
|
|
11862
|
-
TeamSpecSchema =
|
|
11863
|
-
version:
|
|
11864
|
-
name:
|
|
11865
|
-
description:
|
|
11866
|
-
createdAt:
|
|
11867
|
-
leadAgentId:
|
|
11868
|
-
teamAllowedPaths:
|
|
11869
|
-
sessionPermission:
|
|
11870
|
-
members:
|
|
11862
|
+
TeamSpecSchema = z53.object({
|
|
11863
|
+
version: z53.literal(1).default(1),
|
|
11864
|
+
name: z53.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
11865
|
+
description: z53.string().optional(),
|
|
11866
|
+
createdAt: z53.number().int().positive().default(() => Date.now()),
|
|
11867
|
+
leadAgentId: z53.string().optional(),
|
|
11868
|
+
teamAllowedPaths: z53.array(z53.string()).optional(),
|
|
11869
|
+
sessionPermission: z53.string().optional(),
|
|
11870
|
+
members: z53.array(MemberSchema).min(1).max(8)
|
|
11871
11871
|
}).superRefine((teamSpec, ctx) => {
|
|
11872
11872
|
if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
|
|
11873
11873
|
ctx.addIssue({
|
|
@@ -11889,95 +11889,95 @@ var init_types2 = __esm(() => {
|
|
|
11889
11889
|
leadAgentId: firstMember.name
|
|
11890
11890
|
};
|
|
11891
11891
|
});
|
|
11892
|
-
MessageSchema =
|
|
11893
|
-
version:
|
|
11894
|
-
messageId:
|
|
11895
|
-
from:
|
|
11896
|
-
to:
|
|
11897
|
-
kind:
|
|
11898
|
-
body:
|
|
11899
|
-
summary:
|
|
11900
|
-
references:
|
|
11901
|
-
timestamp:
|
|
11902
|
-
correlationId:
|
|
11903
|
-
color:
|
|
11892
|
+
MessageSchema = z53.object({
|
|
11893
|
+
version: z53.literal(1),
|
|
11894
|
+
messageId: z53.string().uuid(),
|
|
11895
|
+
from: z53.string(),
|
|
11896
|
+
to: z53.string(),
|
|
11897
|
+
kind: z53.enum(MESSAGE_KINDS),
|
|
11898
|
+
body: z53.string().max(32 * 1024),
|
|
11899
|
+
summary: z53.string().optional(),
|
|
11900
|
+
references: z53.array(TeamReferenceSchema).optional(),
|
|
11901
|
+
timestamp: z53.number().int().positive(),
|
|
11902
|
+
correlationId: z53.string().uuid().optional(),
|
|
11903
|
+
color: z53.string().optional()
|
|
11904
11904
|
});
|
|
11905
|
-
TaskSchema =
|
|
11906
|
-
version:
|
|
11907
|
-
id:
|
|
11908
|
-
subject:
|
|
11909
|
-
description:
|
|
11910
|
-
activeForm:
|
|
11911
|
-
status:
|
|
11912
|
-
owner:
|
|
11913
|
-
blocks:
|
|
11914
|
-
blockedBy:
|
|
11915
|
-
metadata:
|
|
11916
|
-
createdAt:
|
|
11917
|
-
updatedAt:
|
|
11918
|
-
claimedAt:
|
|
11905
|
+
TaskSchema = z53.object({
|
|
11906
|
+
version: z53.literal(1),
|
|
11907
|
+
id: z53.string(),
|
|
11908
|
+
subject: z53.string(),
|
|
11909
|
+
description: z53.string(),
|
|
11910
|
+
activeForm: z53.string().optional(),
|
|
11911
|
+
status: z53.enum(TASK_STATUSES),
|
|
11912
|
+
owner: z53.string().optional(),
|
|
11913
|
+
blocks: z53.array(z53.string()).default([]),
|
|
11914
|
+
blockedBy: z53.array(z53.string()).default([]),
|
|
11915
|
+
metadata: z53.record(z53.string(), z53.unknown()).optional(),
|
|
11916
|
+
createdAt: z53.number().int().positive(),
|
|
11917
|
+
updatedAt: z53.number().int().positive(),
|
|
11918
|
+
claimedAt: z53.number().int().positive().optional()
|
|
11919
11919
|
});
|
|
11920
|
-
RuntimeStateMemberModelSchema =
|
|
11921
|
-
providerID:
|
|
11922
|
-
modelID:
|
|
11923
|
-
variant:
|
|
11924
|
-
reasoningEffort:
|
|
11925
|
-
temperature:
|
|
11926
|
-
top_p:
|
|
11927
|
-
maxTokens:
|
|
11928
|
-
thinking:
|
|
11929
|
-
type:
|
|
11930
|
-
budgetTokens:
|
|
11920
|
+
RuntimeStateMemberModelSchema = z53.object({
|
|
11921
|
+
providerID: z53.string(),
|
|
11922
|
+
modelID: z53.string(),
|
|
11923
|
+
variant: z53.string().optional(),
|
|
11924
|
+
reasoningEffort: z53.string().optional(),
|
|
11925
|
+
temperature: z53.number().optional(),
|
|
11926
|
+
top_p: z53.number().optional(),
|
|
11927
|
+
maxTokens: z53.number().optional(),
|
|
11928
|
+
thinking: z53.object({
|
|
11929
|
+
type: z53.enum(["enabled", "disabled"]),
|
|
11930
|
+
budgetTokens: z53.number().int().positive().optional()
|
|
11931
11931
|
}).optional()
|
|
11932
11932
|
}).strict();
|
|
11933
|
-
RuntimeStateMemberSchema =
|
|
11934
|
-
name:
|
|
11935
|
-
sessionId:
|
|
11936
|
-
tmuxPaneId:
|
|
11937
|
-
tmuxGridPaneId:
|
|
11938
|
-
agentType:
|
|
11939
|
-
subagent_type:
|
|
11940
|
-
category:
|
|
11933
|
+
RuntimeStateMemberSchema = z53.object({
|
|
11934
|
+
name: z53.string(),
|
|
11935
|
+
sessionId: z53.string().optional(),
|
|
11936
|
+
tmuxPaneId: z53.string().optional(),
|
|
11937
|
+
tmuxGridPaneId: z53.string().optional(),
|
|
11938
|
+
agentType: z53.enum(["leader", "general-purpose"]),
|
|
11939
|
+
subagent_type: z53.string().optional(),
|
|
11940
|
+
category: z53.string().optional(),
|
|
11941
11941
|
model: RuntimeStateMemberModelSchema.optional(),
|
|
11942
|
-
status:
|
|
11943
|
-
color:
|
|
11944
|
-
worktreePath:
|
|
11945
|
-
lastInjectedTurnMarker:
|
|
11946
|
-
pendingInjectedMessageIds:
|
|
11942
|
+
status: z53.enum(["pending", "running", "idle", "errored", "completed", "shutdown_approved"]),
|
|
11943
|
+
color: z53.string().optional(),
|
|
11944
|
+
worktreePath: z53.string().optional(),
|
|
11945
|
+
lastInjectedTurnMarker: z53.string().optional(),
|
|
11946
|
+
pendingInjectedMessageIds: z53.array(z53.string()).default([])
|
|
11947
11947
|
}).strict();
|
|
11948
|
-
RuntimeBoundsSchema =
|
|
11949
|
-
maxMembers:
|
|
11950
|
-
maxParallelMembers:
|
|
11951
|
-
maxMessagesPerRun:
|
|
11952
|
-
maxWallClockMinutes:
|
|
11953
|
-
maxMemberTurns:
|
|
11948
|
+
RuntimeBoundsSchema = z53.object({
|
|
11949
|
+
maxMembers: z53.number().int().default(8),
|
|
11950
|
+
maxParallelMembers: z53.number().int().default(4),
|
|
11951
|
+
maxMessagesPerRun: z53.number().int().default(1e4),
|
|
11952
|
+
maxWallClockMinutes: z53.number().int().default(120),
|
|
11953
|
+
maxMemberTurns: z53.number().int().default(500)
|
|
11954
11954
|
}).strict();
|
|
11955
|
-
ShutdownRequestSchema =
|
|
11956
|
-
memberId:
|
|
11957
|
-
requesterName:
|
|
11958
|
-
requestedAt:
|
|
11959
|
-
approvedAt:
|
|
11960
|
-
rejectedReason:
|
|
11961
|
-
rejectedAt:
|
|
11955
|
+
ShutdownRequestSchema = z53.object({
|
|
11956
|
+
memberId: z53.string(),
|
|
11957
|
+
requesterName: z53.string(),
|
|
11958
|
+
requestedAt: z53.number().int().positive(),
|
|
11959
|
+
approvedAt: z53.number().int().positive().optional(),
|
|
11960
|
+
rejectedReason: z53.string().optional(),
|
|
11961
|
+
rejectedAt: z53.number().int().positive().optional()
|
|
11962
11962
|
}).strict();
|
|
11963
|
-
RuntimeStateTmuxLayoutSchema =
|
|
11964
|
-
ownedSession:
|
|
11965
|
-
targetSessionId:
|
|
11966
|
-
focusWindowId:
|
|
11967
|
-
gridWindowId:
|
|
11968
|
-
paneIds:
|
|
11963
|
+
RuntimeStateTmuxLayoutSchema = z53.object({
|
|
11964
|
+
ownedSession: z53.boolean(),
|
|
11965
|
+
targetSessionId: z53.string(),
|
|
11966
|
+
focusWindowId: z53.string().optional(),
|
|
11967
|
+
gridWindowId: z53.string().optional(),
|
|
11968
|
+
paneIds: z53.array(z53.string()).optional()
|
|
11969
11969
|
}).strict();
|
|
11970
|
-
RuntimeStateSchema =
|
|
11971
|
-
version:
|
|
11972
|
-
teamRunId:
|
|
11973
|
-
teamName:
|
|
11974
|
-
specSource:
|
|
11975
|
-
createdAt:
|
|
11976
|
-
status:
|
|
11977
|
-
leadSessionId:
|
|
11970
|
+
RuntimeStateSchema = z53.object({
|
|
11971
|
+
version: z53.literal(1),
|
|
11972
|
+
teamRunId: z53.string().uuid(),
|
|
11973
|
+
teamName: z53.string(),
|
|
11974
|
+
specSource: z53.enum(["project", "user"]),
|
|
11975
|
+
createdAt: z53.number().int().positive(),
|
|
11976
|
+
status: z53.enum(RUNTIME_STATUSES),
|
|
11977
|
+
leadSessionId: z53.string().optional(),
|
|
11978
11978
|
tmuxLayout: RuntimeStateTmuxLayoutSchema.optional(),
|
|
11979
|
-
members:
|
|
11980
|
-
shutdownRequests:
|
|
11979
|
+
members: z53.array(RuntimeStateMemberSchema),
|
|
11980
|
+
shutdownRequests: z53.array(ShutdownRequestSchema).default([]),
|
|
11981
11981
|
bounds: RuntimeBoundsSchema
|
|
11982
11982
|
});
|
|
11983
11983
|
AGENT_ELIGIBILITY_REGISTRY = {
|
|
@@ -20297,7 +20297,7 @@ var OmoCategoryConfigSchema = z4.preprocess((value) => isRecord3(value) ? normal
|
|
|
20297
20297
|
var OmoCategoriesConfigSchema = z4.record(z4.string(), OmoCategoryConfigSchema);
|
|
20298
20298
|
|
|
20299
20299
|
// packages/omo-config-core/src/schema/config.ts
|
|
20300
|
-
import * as
|
|
20300
|
+
import * as z16 from "zod";
|
|
20301
20301
|
|
|
20302
20302
|
// packages/omo-config-core/src/schema/computer.ts
|
|
20303
20303
|
import * as z5 from "zod";
|
|
@@ -20373,7 +20373,8 @@ var OmoMemoryRecallSchema = z8.object({
|
|
|
20373
20373
|
event_caps: OmoMemoryRecallEventCapsSchema.default({ tool_args: 400, result_head: 600, assistant: 1500, prompt: 4000 }),
|
|
20374
20374
|
sidecar_max_tokens: z8.number().int().positive().default(48000),
|
|
20375
20375
|
max_concurrent_wakes: z8.number().int().positive().default(2),
|
|
20376
|
-
tool_budget: z8.number().int().positive().default(8)
|
|
20376
|
+
tool_budget: z8.number().int().positive().default(8),
|
|
20377
|
+
query_expansion: z8.boolean().default(false)
|
|
20377
20378
|
}).strict();
|
|
20378
20379
|
var OmoMemoryNudgeSchema = z8.object({
|
|
20379
20380
|
enabled: z8.boolean().default(true),
|
|
@@ -20434,7 +20435,8 @@ var OmoMemoryRecallLayerSchema = z8.object({
|
|
|
20434
20435
|
event_caps: OmoMemoryRecallEventCapsLayerSchema.optional(),
|
|
20435
20436
|
sidecar_max_tokens: z8.number().int().positive().optional(),
|
|
20436
20437
|
max_concurrent_wakes: z8.number().int().positive().optional(),
|
|
20437
|
-
tool_budget: z8.number().int().positive().optional()
|
|
20438
|
+
tool_budget: z8.number().int().positive().optional(),
|
|
20439
|
+
query_expansion: z8.boolean().optional()
|
|
20438
20440
|
}).strict();
|
|
20439
20441
|
var OmoMemoryNudgeLayerSchema = z8.object({
|
|
20440
20442
|
enabled: z8.boolean().optional(),
|
|
@@ -20511,7 +20513,8 @@ var OmoMemorySettingsSchema = z8.object({
|
|
|
20511
20513
|
event_caps: { tool_args: 400, result_head: 600, assistant: 1500, prompt: 4000 },
|
|
20512
20514
|
sidecar_max_tokens: 48000,
|
|
20513
20515
|
max_concurrent_wakes: 2,
|
|
20514
|
-
tool_budget: 8
|
|
20516
|
+
tool_budget: 8,
|
|
20517
|
+
query_expansion: false
|
|
20515
20518
|
}),
|
|
20516
20519
|
compile_warn_tokens: z8.number().int().positive().default(30000),
|
|
20517
20520
|
agents: z8.record(z8.string(), OmoMemoryAgentOverridesSchema).default({})
|
|
@@ -20776,11 +20779,16 @@ var OmoFormatOnMutationSchema = OmoFormatOnMutationLayerSchema.extend({
|
|
|
20776
20779
|
timeoutMs: z14.number().int().positive().default(3000)
|
|
20777
20780
|
}).strict();
|
|
20778
20781
|
|
|
20782
|
+
// packages/omo-config-core/src/schema/gateway.ts
|
|
20783
|
+
import * as z15 from "zod";
|
|
20784
|
+
var OmoGatewaySectionSchema = z15.record(z15.string(), z15.unknown()).describe("Chat-surface gateway settings, owned and validated by a separately installed gateway package. omo accepts the key and never reads it.");
|
|
20785
|
+
|
|
20779
20786
|
// packages/omo-config-core/src/schema/config.ts
|
|
20780
|
-
var OmoOpenCodeHarnessConfigSchema =
|
|
20781
|
-
var OmoDisabledSkillsSchema =
|
|
20782
|
-
var OmoTypedHarnessConfigSchema =
|
|
20787
|
+
var OmoOpenCodeHarnessConfigSchema = z16.record(z16.string(), z16.unknown());
|
|
20788
|
+
var OmoDisabledSkillsSchema = z16.array(z16.string());
|
|
20789
|
+
var OmoTypedHarnessConfigSchema = z16.object({
|
|
20783
20790
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
20791
|
+
gateway: OmoGatewaySectionSchema.optional(),
|
|
20784
20792
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
20785
20793
|
agents: OmoAgentsConfigSchema.optional(),
|
|
20786
20794
|
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
@@ -20788,13 +20796,13 @@ var OmoTypedHarnessConfigSchema = z15.object({
|
|
|
20788
20796
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
20789
20797
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
20790
20798
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
20791
|
-
model_profile:
|
|
20799
|
+
model_profile: z16.string().optional(),
|
|
20792
20800
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
20793
20801
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
20794
20802
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
20795
20803
|
disabled_skills: OmoDisabledSkillsSchema.optional()
|
|
20796
20804
|
}).strict();
|
|
20797
|
-
var OmoConfigProfileSchema =
|
|
20805
|
+
var OmoConfigProfileSchema = z16.object({
|
|
20798
20806
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
20799
20807
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
20800
20808
|
agents: OmoAgentsConfigSchema.optional(),
|
|
@@ -20803,7 +20811,7 @@ var OmoConfigProfileSchema = z15.object({
|
|
|
20803
20811
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
20804
20812
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
20805
20813
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
20806
|
-
model_profile:
|
|
20814
|
+
model_profile: z16.string().optional(),
|
|
20807
20815
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
20808
20816
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
20809
20817
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
@@ -20813,9 +20821,10 @@ var OmoConfigProfileSchema = z15.object({
|
|
|
20813
20821
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
20814
20822
|
"[codex]": OmoTypedHarnessConfigSchema.optional()
|
|
20815
20823
|
}).strict();
|
|
20816
|
-
var OmoConfigSchema =
|
|
20824
|
+
var OmoConfigSchema = z16.object({
|
|
20817
20825
|
formatOnMutation: OmoFormatOnMutationSchema.optional(),
|
|
20818
|
-
|
|
20826
|
+
gateway: OmoGatewaySectionSchema.optional(),
|
|
20827
|
+
$schema: z16.string().optional(),
|
|
20819
20828
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
20820
20829
|
agents: OmoAgentsConfigSchema.optional(),
|
|
20821
20830
|
git_master: OmoGitMasterSettingsSchema.optional(),
|
|
@@ -20823,7 +20832,7 @@ var OmoConfigSchema = z15.object({
|
|
|
20823
20832
|
teams: OmoTeamsConfigSchema.optional(),
|
|
20824
20833
|
models: OmoModelCatalogSchema.optional(),
|
|
20825
20834
|
model_profiles: OmoModelProfilesSchema.optional(),
|
|
20826
|
-
model_profile:
|
|
20835
|
+
model_profile: z16.string().optional(),
|
|
20827
20836
|
memory: OmoMemorySettingsSchema.optional(),
|
|
20828
20837
|
telemetry: OmoTelemetrySettingsSchema.optional(),
|
|
20829
20838
|
computer: OmoComputerSettingsSchema.optional(),
|
|
@@ -20832,13 +20841,14 @@ var OmoConfigSchema = z15.object({
|
|
|
20832
20841
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
20833
20842
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
20834
20843
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
20835
|
-
profiles:
|
|
20836
|
-
_migrations:
|
|
20837
|
-
legacy_migrations:
|
|
20844
|
+
profiles: z16.record(z16.string(), OmoConfigProfileSchema).default({}),
|
|
20845
|
+
_migrations: z16.array(z16.string()).optional(),
|
|
20846
|
+
legacy_migrations: z16.record(z16.string(), z16.unknown()).optional()
|
|
20838
20847
|
}).strict();
|
|
20839
|
-
var OmoConfigLayerSchema =
|
|
20848
|
+
var OmoConfigLayerSchema = z16.object({
|
|
20840
20849
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
20841
|
-
|
|
20850
|
+
gateway: OmoGatewaySectionSchema.optional(),
|
|
20851
|
+
$schema: z16.string().optional(),
|
|
20842
20852
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
20843
20853
|
agents: OmoAgentsConfigSchema.optional(),
|
|
20844
20854
|
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
@@ -20846,7 +20856,7 @@ var OmoConfigLayerSchema = z15.object({
|
|
|
20846
20856
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
20847
20857
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
20848
20858
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
20849
|
-
model_profile:
|
|
20859
|
+
model_profile: z16.string().optional(),
|
|
20850
20860
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
20851
20861
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
20852
20862
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
@@ -20855,9 +20865,9 @@ var OmoConfigLayerSchema = z15.object({
|
|
|
20855
20865
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
20856
20866
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
20857
20867
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
20858
|
-
profiles:
|
|
20859
|
-
_migrations:
|
|
20860
|
-
legacy_migrations:
|
|
20868
|
+
profiles: z16.record(z16.string(), OmoConfigProfileSchema).optional(),
|
|
20869
|
+
_migrations: z16.array(z16.string()).optional(),
|
|
20870
|
+
legacy_migrations: z16.record(z16.string(), z16.unknown()).optional()
|
|
20861
20871
|
}).strict();
|
|
20862
20872
|
|
|
20863
20873
|
// packages/omo-config-core/src/schema/legacy-category-names.ts
|
|
@@ -22968,7 +22978,7 @@ var CATEGORY_MODEL_REQUIREMENTS = {
|
|
|
22968
22978
|
{
|
|
22969
22979
|
providers: ["openai", "chatgpt-subscription", "github-copilot", "opencode"],
|
|
22970
22980
|
model: "gpt-6-astra",
|
|
22971
|
-
variant: "
|
|
22981
|
+
variant: "high"
|
|
22972
22982
|
}
|
|
22973
22983
|
]
|
|
22974
22984
|
},
|
|
@@ -26129,8 +26139,8 @@ function findUnknownKeyPaths(schema, value) {
|
|
|
26129
26139
|
}
|
|
26130
26140
|
|
|
26131
26141
|
// packages/omo-opencode/src/config/schema/agent-names.ts
|
|
26132
|
-
import { z as
|
|
26133
|
-
var BuiltinAgentNameSchema =
|
|
26142
|
+
import { z as z17 } from "zod";
|
|
26143
|
+
var BuiltinAgentNameSchema = z17.enum([
|
|
26134
26144
|
"sisyphus",
|
|
26135
26145
|
"hephaestus",
|
|
26136
26146
|
"prometheus",
|
|
@@ -26143,7 +26153,7 @@ var BuiltinAgentNameSchema = z16.enum([
|
|
|
26143
26153
|
"atlas",
|
|
26144
26154
|
"sisyphus-junior"
|
|
26145
26155
|
]);
|
|
26146
|
-
var BuiltinSkillNameSchema =
|
|
26156
|
+
var BuiltinSkillNameSchema = z17.enum([
|
|
26147
26157
|
"playwright",
|
|
26148
26158
|
"dev-browser",
|
|
26149
26159
|
"frontend",
|
|
@@ -26157,7 +26167,7 @@ var BuiltinSkillNameSchema = z16.enum([
|
|
|
26157
26167
|
"visual-qa",
|
|
26158
26168
|
"team-mode"
|
|
26159
26169
|
]);
|
|
26160
|
-
var OverridableAgentNameSchema =
|
|
26170
|
+
var OverridableAgentNameSchema = z17.enum([
|
|
26161
26171
|
"build",
|
|
26162
26172
|
"plan",
|
|
26163
26173
|
"sisyphus",
|
|
@@ -26174,41 +26184,41 @@ var OverridableAgentNameSchema = z16.enum([
|
|
|
26174
26184
|
"atlas"
|
|
26175
26185
|
]);
|
|
26176
26186
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
26177
|
-
import { z as
|
|
26187
|
+
import { z as z20 } from "zod";
|
|
26178
26188
|
|
|
26179
26189
|
// packages/omo-opencode/src/config/schema/fallback-models.ts
|
|
26180
|
-
import { z as
|
|
26181
|
-
var FallbackModelObjectSchema =
|
|
26182
|
-
model:
|
|
26190
|
+
import { z as z18 } from "zod";
|
|
26191
|
+
var FallbackModelObjectSchema = z18.object({
|
|
26192
|
+
model: z18.string(),
|
|
26183
26193
|
reasoning: OmoReasoningSchema.optional(),
|
|
26184
|
-
variant:
|
|
26185
|
-
reasoningEffort:
|
|
26186
|
-
temperature:
|
|
26187
|
-
top_p:
|
|
26188
|
-
maxTokens:
|
|
26189
|
-
thinking:
|
|
26190
|
-
type:
|
|
26191
|
-
budgetTokens:
|
|
26194
|
+
variant: z18.string().optional(),
|
|
26195
|
+
reasoningEffort: z18.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
26196
|
+
temperature: z18.number().min(0).max(2).optional(),
|
|
26197
|
+
top_p: z18.number().min(0).max(1).optional(),
|
|
26198
|
+
maxTokens: z18.number().optional(),
|
|
26199
|
+
thinking: z18.object({
|
|
26200
|
+
type: z18.enum(["enabled", "disabled"]),
|
|
26201
|
+
budgetTokens: z18.number().optional()
|
|
26192
26202
|
}).optional()
|
|
26193
26203
|
});
|
|
26194
|
-
var FallbackModelStringArraySchema =
|
|
26195
|
-
var FallbackModelObjectArraySchema =
|
|
26196
|
-
var FallbackModelMixedArraySchema =
|
|
26197
|
-
var FallbackModelsSchema =
|
|
26198
|
-
|
|
26204
|
+
var FallbackModelStringArraySchema = z18.array(z18.string());
|
|
26205
|
+
var FallbackModelObjectArraySchema = z18.array(FallbackModelObjectSchema);
|
|
26206
|
+
var FallbackModelMixedArraySchema = z18.array(z18.union([z18.string(), FallbackModelObjectSchema]));
|
|
26207
|
+
var FallbackModelsSchema = z18.union([
|
|
26208
|
+
z18.string(),
|
|
26199
26209
|
FallbackModelStringArraySchema,
|
|
26200
26210
|
FallbackModelObjectArraySchema,
|
|
26201
26211
|
FallbackModelMixedArraySchema
|
|
26202
26212
|
]);
|
|
26203
26213
|
|
|
26204
26214
|
// packages/omo-opencode/src/config/schema/internal/permission.ts
|
|
26205
|
-
import { z as
|
|
26206
|
-
var PermissionValueSchema2 =
|
|
26207
|
-
var BashPermissionSchema2 =
|
|
26215
|
+
import { z as z19 } from "zod";
|
|
26216
|
+
var PermissionValueSchema2 = z19.enum(["ask", "allow", "deny"]);
|
|
26217
|
+
var BashPermissionSchema2 = z19.union([
|
|
26208
26218
|
PermissionValueSchema2,
|
|
26209
|
-
|
|
26219
|
+
z19.record(z19.string(), PermissionValueSchema2)
|
|
26210
26220
|
]);
|
|
26211
|
-
var AgentPermissionSchema =
|
|
26221
|
+
var AgentPermissionSchema = z19.object({
|
|
26212
26222
|
edit: PermissionValueSchema2.optional(),
|
|
26213
26223
|
bash: BashPermissionSchema2.optional(),
|
|
26214
26224
|
webfetch: PermissionValueSchema2.optional(),
|
|
@@ -26218,50 +26228,50 @@ var AgentPermissionSchema = z18.object({
|
|
|
26218
26228
|
}).catchall(PermissionValueSchema2.optional());
|
|
26219
26229
|
|
|
26220
26230
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
26221
|
-
var AgentOverrideConfigSchema =
|
|
26222
|
-
model:
|
|
26223
|
-
models:
|
|
26231
|
+
var AgentOverrideConfigSchema = z20.object({
|
|
26232
|
+
model: z20.string().optional(),
|
|
26233
|
+
models: z20.array(z20.union([z20.string(), FallbackModelObjectSchema])).optional(),
|
|
26224
26234
|
fallback_models: FallbackModelsSchema.optional(),
|
|
26225
26235
|
reasoning: OmoReasoningSchema.optional(),
|
|
26226
|
-
variant:
|
|
26227
|
-
category:
|
|
26228
|
-
skills:
|
|
26229
|
-
temperature:
|
|
26230
|
-
top_p:
|
|
26231
|
-
prompt:
|
|
26232
|
-
prompt_append:
|
|
26233
|
-
tools:
|
|
26234
|
-
disable:
|
|
26235
|
-
description:
|
|
26236
|
-
mode:
|
|
26237
|
-
color:
|
|
26238
|
-
displayName:
|
|
26236
|
+
variant: z20.string().optional(),
|
|
26237
|
+
category: z20.string().optional(),
|
|
26238
|
+
skills: z20.array(z20.string()).optional(),
|
|
26239
|
+
temperature: z20.number().min(0).max(2).optional(),
|
|
26240
|
+
top_p: z20.number().min(0).max(1).optional(),
|
|
26241
|
+
prompt: z20.string().optional(),
|
|
26242
|
+
prompt_append: z20.string().optional(),
|
|
26243
|
+
tools: z20.record(z20.string(), z20.boolean()).optional(),
|
|
26244
|
+
disable: z20.boolean().optional(),
|
|
26245
|
+
description: z20.string().optional(),
|
|
26246
|
+
mode: z20.enum(["subagent", "primary", "all"]).optional(),
|
|
26247
|
+
color: z20.string().regex(/^#[0-9A-Fa-f]{6}$/).optional(),
|
|
26248
|
+
displayName: z20.string().optional(),
|
|
26239
26249
|
permission: AgentPermissionSchema.optional(),
|
|
26240
|
-
maxTokens:
|
|
26241
|
-
thinking:
|
|
26242
|
-
type:
|
|
26243
|
-
budgetTokens:
|
|
26250
|
+
maxTokens: z20.number().optional(),
|
|
26251
|
+
thinking: z20.object({
|
|
26252
|
+
type: z20.enum(["enabled", "disabled"]),
|
|
26253
|
+
budgetTokens: z20.number().optional()
|
|
26244
26254
|
}).optional(),
|
|
26245
|
-
reasoningEffort:
|
|
26246
|
-
textVerbosity:
|
|
26247
|
-
providerOptions:
|
|
26248
|
-
ultrawork:
|
|
26249
|
-
model:
|
|
26255
|
+
reasoningEffort: z20.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
26256
|
+
textVerbosity: z20.enum(["low", "medium", "high"]).optional(),
|
|
26257
|
+
providerOptions: z20.record(z20.string(), z20.unknown()).optional(),
|
|
26258
|
+
ultrawork: z20.object({
|
|
26259
|
+
model: z20.string().optional(),
|
|
26250
26260
|
reasoning: OmoReasoningSchema.optional(),
|
|
26251
|
-
variant:
|
|
26261
|
+
variant: z20.string().optional()
|
|
26252
26262
|
}).optional(),
|
|
26253
|
-
compaction:
|
|
26254
|
-
model:
|
|
26263
|
+
compaction: z20.object({
|
|
26264
|
+
model: z20.string().optional(),
|
|
26255
26265
|
reasoning: OmoReasoningSchema.optional(),
|
|
26256
|
-
variant:
|
|
26266
|
+
variant: z20.string().optional()
|
|
26257
26267
|
}).optional()
|
|
26258
26268
|
});
|
|
26259
|
-
var AgentOverridesSchema =
|
|
26269
|
+
var AgentOverridesSchema = z20.object({
|
|
26260
26270
|
build: AgentOverrideConfigSchema.optional(),
|
|
26261
26271
|
plan: AgentOverrideConfigSchema.optional(),
|
|
26262
26272
|
sisyphus: AgentOverrideConfigSchema.optional(),
|
|
26263
26273
|
hephaestus: AgentOverrideConfigSchema.extend({
|
|
26264
|
-
allow_non_gpt_model:
|
|
26274
|
+
allow_non_gpt_model: z20.boolean().optional()
|
|
26265
26275
|
}).optional(),
|
|
26266
26276
|
"sisyphus-junior": AgentOverrideConfigSchema.optional(),
|
|
26267
26277
|
"OpenCode-Builder": AgentOverrideConfigSchema.optional(),
|
|
@@ -26275,73 +26285,73 @@ var AgentOverridesSchema = z19.object({
|
|
|
26275
26285
|
atlas: AgentOverrideConfigSchema.optional()
|
|
26276
26286
|
}).catchall(AgentOverrideConfigSchema.optional());
|
|
26277
26287
|
// packages/omo-opencode/src/config/schema/babysitting.ts
|
|
26278
|
-
import { z as
|
|
26279
|
-
var BabysittingConfigSchema =
|
|
26280
|
-
timeout_ms:
|
|
26288
|
+
import { z as z21 } from "zod";
|
|
26289
|
+
var BabysittingConfigSchema = z21.object({
|
|
26290
|
+
timeout_ms: z21.number().default(120000)
|
|
26281
26291
|
});
|
|
26282
26292
|
// packages/omo-opencode/src/config/schema/background-task.ts
|
|
26283
|
-
import { z as
|
|
26284
|
-
var CircuitBreakerConfigSchema =
|
|
26285
|
-
enabled:
|
|
26286
|
-
maxToolCalls:
|
|
26287
|
-
consecutiveThreshold:
|
|
26293
|
+
import { z as z22 } from "zod";
|
|
26294
|
+
var CircuitBreakerConfigSchema = z22.object({
|
|
26295
|
+
enabled: z22.boolean().optional(),
|
|
26296
|
+
maxToolCalls: z22.number().int().min(10).optional(),
|
|
26297
|
+
consecutiveThreshold: z22.number().int().min(5).optional()
|
|
26288
26298
|
});
|
|
26289
|
-
var BackgroundTaskConfigSchema =
|
|
26290
|
-
defaultConcurrency:
|
|
26291
|
-
providerConcurrency:
|
|
26292
|
-
modelConcurrency:
|
|
26293
|
-
maxDepth:
|
|
26294
|
-
maxLiveDescendantsPerRoot:
|
|
26295
|
-
staleTimeoutMs:
|
|
26296
|
-
messageStalenessTimeoutMs:
|
|
26297
|
-
taskTtlMs:
|
|
26298
|
-
sessionGoneTimeoutMs:
|
|
26299
|
-
taskCleanupDelayMs:
|
|
26300
|
-
syncPollTimeoutMs:
|
|
26301
|
-
maxToolCalls:
|
|
26299
|
+
var BackgroundTaskConfigSchema = z22.object({
|
|
26300
|
+
defaultConcurrency: z22.number().min(0).optional(),
|
|
26301
|
+
providerConcurrency: z22.record(z22.string(), z22.number().min(0)).optional(),
|
|
26302
|
+
modelConcurrency: z22.record(z22.string(), z22.number().min(0)).optional(),
|
|
26303
|
+
maxDepth: z22.number().int().min(1).optional(),
|
|
26304
|
+
maxLiveDescendantsPerRoot: z22.number().int().min(0).optional(),
|
|
26305
|
+
staleTimeoutMs: z22.number().min(60000).optional(),
|
|
26306
|
+
messageStalenessTimeoutMs: z22.number().min(60000).optional(),
|
|
26307
|
+
taskTtlMs: z22.number().min(300000).optional(),
|
|
26308
|
+
sessionGoneTimeoutMs: z22.number().min(1e4).optional(),
|
|
26309
|
+
taskCleanupDelayMs: z22.number().min(60000).optional(),
|
|
26310
|
+
syncPollTimeoutMs: z22.number().min(60000).optional(),
|
|
26311
|
+
maxToolCalls: z22.number().int().min(10).optional(),
|
|
26302
26312
|
circuitBreaker: CircuitBreakerConfigSchema.optional()
|
|
26303
26313
|
});
|
|
26304
26314
|
// packages/omo-opencode/src/config/schema/browser-automation.ts
|
|
26305
|
-
import { z as
|
|
26306
|
-
var BrowserAutomationProviderSchema =
|
|
26315
|
+
import { z as z23 } from "zod";
|
|
26316
|
+
var BrowserAutomationProviderSchema = z23.enum([
|
|
26307
26317
|
"playwright",
|
|
26308
26318
|
"dev-browser",
|
|
26309
26319
|
"playwright-cli"
|
|
26310
26320
|
], {
|
|
26311
26321
|
error: (issue) => `Browser provider ${JSON.stringify(issue.input)} is no longer supported; use the built-in browser path: Bun.WebView / playwright-core scripts`
|
|
26312
26322
|
});
|
|
26313
|
-
var BrowserAutomationConfigSchema =
|
|
26323
|
+
var BrowserAutomationConfigSchema = z23.object({
|
|
26314
26324
|
provider: BrowserAutomationProviderSchema.default("playwright"),
|
|
26315
|
-
playwright_mcp_args:
|
|
26325
|
+
playwright_mcp_args: z23.array(z23.string()).optional()
|
|
26316
26326
|
});
|
|
26317
26327
|
// packages/omo-opencode/src/config/schema/categories.ts
|
|
26318
|
-
import { z as
|
|
26319
|
-
var CategoryConfigSchema =
|
|
26320
|
-
description:
|
|
26321
|
-
model:
|
|
26322
|
-
models:
|
|
26328
|
+
import { z as z24 } from "zod";
|
|
26329
|
+
var CategoryConfigSchema = z24.object({
|
|
26330
|
+
description: z24.string().optional(),
|
|
26331
|
+
model: z24.string().optional(),
|
|
26332
|
+
models: z24.array(z24.union([z24.string(), FallbackModelObjectSchema])).optional(),
|
|
26323
26333
|
fallback_models: FallbackModelsSchema.optional(),
|
|
26324
26334
|
reasoning: OmoReasoningSchema.optional(),
|
|
26325
|
-
variant:
|
|
26326
|
-
temperature:
|
|
26327
|
-
top_p:
|
|
26328
|
-
max_tokens:
|
|
26329
|
-
provider_options:
|
|
26330
|
-
maxTokens:
|
|
26331
|
-
thinking:
|
|
26332
|
-
type:
|
|
26333
|
-
budgetTokens:
|
|
26335
|
+
variant: z24.string().optional(),
|
|
26336
|
+
temperature: z24.number().min(0).max(2).optional(),
|
|
26337
|
+
top_p: z24.number().min(0).max(1).optional(),
|
|
26338
|
+
max_tokens: z24.number().int().positive().optional(),
|
|
26339
|
+
provider_options: z24.record(z24.string(), z24.unknown()).optional(),
|
|
26340
|
+
maxTokens: z24.number().optional(),
|
|
26341
|
+
thinking: z24.object({
|
|
26342
|
+
type: z24.enum(["enabled", "disabled"]),
|
|
26343
|
+
budgetTokens: z24.number().optional()
|
|
26334
26344
|
}).optional(),
|
|
26335
|
-
reasoningEffort:
|
|
26336
|
-
textVerbosity:
|
|
26337
|
-
tools:
|
|
26338
|
-
prompt_append:
|
|
26339
|
-
max_prompt_tokens:
|
|
26340
|
-
is_unstable_agent:
|
|
26341
|
-
disable:
|
|
26342
|
-
warn_unavailable:
|
|
26345
|
+
reasoningEffort: z24.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
26346
|
+
textVerbosity: z24.enum(["low", "medium", "high"]).optional(),
|
|
26347
|
+
tools: z24.record(z24.string(), z24.boolean()).optional(),
|
|
26348
|
+
prompt_append: z24.string().optional(),
|
|
26349
|
+
max_prompt_tokens: z24.number().int().positive().optional(),
|
|
26350
|
+
is_unstable_agent: z24.boolean().optional(),
|
|
26351
|
+
disable: z24.boolean().optional(),
|
|
26352
|
+
warn_unavailable: z24.boolean().optional()
|
|
26343
26353
|
});
|
|
26344
|
-
var BuiltinCategoryNameSchema =
|
|
26354
|
+
var BuiltinCategoryNameSchema = z24.enum([
|
|
26345
26355
|
"visual-engineering",
|
|
26346
26356
|
"ultrabrain",
|
|
26347
26357
|
"deep",
|
|
@@ -26351,29 +26361,29 @@ var BuiltinCategoryNameSchema = z23.enum([
|
|
|
26351
26361
|
"unspecified-high",
|
|
26352
26362
|
"writing"
|
|
26353
26363
|
]);
|
|
26354
|
-
var CategoriesConfigSchema =
|
|
26364
|
+
var CategoriesConfigSchema = z24.record(z24.string(), CategoryConfigSchema);
|
|
26355
26365
|
// packages/omo-opencode/src/config/schema/claude-code.ts
|
|
26356
|
-
import { z as
|
|
26357
|
-
var ClaudeCodeConfigSchema =
|
|
26358
|
-
mcp:
|
|
26359
|
-
commands:
|
|
26360
|
-
skills:
|
|
26361
|
-
agents:
|
|
26362
|
-
hooks:
|
|
26363
|
-
plugins:
|
|
26364
|
-
plugins_override:
|
|
26365
|
-
anthropic_provider:
|
|
26366
|
+
import { z as z25 } from "zod";
|
|
26367
|
+
var ClaudeCodeConfigSchema = z25.object({
|
|
26368
|
+
mcp: z25.boolean().optional(),
|
|
26369
|
+
commands: z25.boolean().optional(),
|
|
26370
|
+
skills: z25.boolean().optional(),
|
|
26371
|
+
agents: z25.boolean().optional(),
|
|
26372
|
+
hooks: z25.boolean().optional(),
|
|
26373
|
+
plugins: z25.boolean().optional(),
|
|
26374
|
+
plugins_override: z25.record(z25.string(), z25.boolean()).optional(),
|
|
26375
|
+
anthropic_provider: z25.string().trim().min(1).refine((v) => !v.includes("/"), {
|
|
26366
26376
|
message: "anthropic_provider must be a provider name without '/'"
|
|
26367
26377
|
}).optional()
|
|
26368
26378
|
});
|
|
26369
26379
|
// packages/omo-opencode/src/config/schema/comment-checker.ts
|
|
26370
|
-
import { z as
|
|
26371
|
-
var CommentCheckerConfigSchema =
|
|
26372
|
-
custom_prompt:
|
|
26380
|
+
import { z as z26 } from "zod";
|
|
26381
|
+
var CommentCheckerConfigSchema = z26.object({
|
|
26382
|
+
custom_prompt: z26.string().optional()
|
|
26373
26383
|
});
|
|
26374
26384
|
// packages/omo-opencode/src/config/schema/commands.ts
|
|
26375
|
-
import { z as
|
|
26376
|
-
var BuiltinCommandNameSchema =
|
|
26385
|
+
import { z as z27 } from "zod";
|
|
26386
|
+
var BuiltinCommandNameSchema = z27.enum([
|
|
26377
26387
|
"goal",
|
|
26378
26388
|
"refactor",
|
|
26379
26389
|
"ulw-execute",
|
|
@@ -26382,21 +26392,21 @@ var BuiltinCommandNameSchema = z26.enum([
|
|
|
26382
26392
|
"hyperplan"
|
|
26383
26393
|
]);
|
|
26384
26394
|
// packages/omo-opencode/src/config/schema/default-mode.ts
|
|
26385
|
-
import { z as
|
|
26386
|
-
var DefaultModeConfigSchema =
|
|
26387
|
-
ultrawork:
|
|
26388
|
-
goal:
|
|
26395
|
+
import { z as z28 } from "zod";
|
|
26396
|
+
var DefaultModeConfigSchema = z28.object({
|
|
26397
|
+
ultrawork: z28.boolean().default(false),
|
|
26398
|
+
goal: z28.boolean().default(false)
|
|
26389
26399
|
});
|
|
26390
26400
|
// packages/omo-opencode/src/config/schema/dynamic-context-pruning.ts
|
|
26391
|
-
import { z as
|
|
26392
|
-
var DynamicContextPruningConfigSchema =
|
|
26393
|
-
enabled:
|
|
26394
|
-
notification:
|
|
26395
|
-
turn_protection:
|
|
26396
|
-
enabled:
|
|
26397
|
-
turns:
|
|
26401
|
+
import { z as z29 } from "zod";
|
|
26402
|
+
var DynamicContextPruningConfigSchema = z29.object({
|
|
26403
|
+
enabled: z29.boolean().default(false),
|
|
26404
|
+
notification: z29.enum(["off", "minimal", "detailed"]).default("detailed"),
|
|
26405
|
+
turn_protection: z29.object({
|
|
26406
|
+
enabled: z29.boolean().default(true),
|
|
26407
|
+
turns: z29.number().min(1).max(10).default(3)
|
|
26398
26408
|
}).optional(),
|
|
26399
|
-
protected_tools:
|
|
26409
|
+
protected_tools: z29.array(z29.string()).default([
|
|
26400
26410
|
"task",
|
|
26401
26411
|
"todowrite",
|
|
26402
26412
|
"todoread",
|
|
@@ -26405,45 +26415,45 @@ var DynamicContextPruningConfigSchema = z28.object({
|
|
|
26405
26415
|
"session_write",
|
|
26406
26416
|
"session_search"
|
|
26407
26417
|
]),
|
|
26408
|
-
strategies:
|
|
26409
|
-
deduplication:
|
|
26410
|
-
enabled:
|
|
26418
|
+
strategies: z29.object({
|
|
26419
|
+
deduplication: z29.object({
|
|
26420
|
+
enabled: z29.boolean().default(true)
|
|
26411
26421
|
}).optional(),
|
|
26412
|
-
supersede_writes:
|
|
26413
|
-
enabled:
|
|
26414
|
-
aggressive:
|
|
26422
|
+
supersede_writes: z29.object({
|
|
26423
|
+
enabled: z29.boolean().default(true),
|
|
26424
|
+
aggressive: z29.boolean().default(false)
|
|
26415
26425
|
}).optional(),
|
|
26416
|
-
purge_errors:
|
|
26417
|
-
enabled:
|
|
26418
|
-
turns:
|
|
26426
|
+
purge_errors: z29.object({
|
|
26427
|
+
enabled: z29.boolean().default(true),
|
|
26428
|
+
turns: z29.number().min(1).max(20).default(5)
|
|
26419
26429
|
}).optional()
|
|
26420
26430
|
}).optional()
|
|
26421
26431
|
});
|
|
26422
26432
|
// packages/omo-opencode/src/config/schema/experimental.ts
|
|
26423
|
-
import { z as
|
|
26424
|
-
var ExperimentalConfigSchema =
|
|
26425
|
-
aggressive_truncation:
|
|
26426
|
-
preemptive_compaction:
|
|
26427
|
-
truncate_all_tool_outputs:
|
|
26433
|
+
import { z as z30 } from "zod";
|
|
26434
|
+
var ExperimentalConfigSchema = z30.object({
|
|
26435
|
+
aggressive_truncation: z30.boolean().optional(),
|
|
26436
|
+
preemptive_compaction: z30.boolean().optional(),
|
|
26437
|
+
truncate_all_tool_outputs: z30.boolean().optional(),
|
|
26428
26438
|
dynamic_context_pruning: DynamicContextPruningConfigSchema.optional(),
|
|
26429
|
-
task_system:
|
|
26430
|
-
plugin_load_timeout_ms:
|
|
26431
|
-
safe_hook_creation:
|
|
26432
|
-
disable_omo_env:
|
|
26433
|
-
hashline_edit:
|
|
26434
|
-
model_fallback_title:
|
|
26435
|
-
max_tools:
|
|
26436
|
-
disable_live_parent_wake_routing:
|
|
26439
|
+
task_system: z30.boolean().optional(),
|
|
26440
|
+
plugin_load_timeout_ms: z30.number().min(1000).optional(),
|
|
26441
|
+
safe_hook_creation: z30.boolean().optional(),
|
|
26442
|
+
disable_omo_env: z30.boolean().optional(),
|
|
26443
|
+
hashline_edit: z30.boolean().optional(),
|
|
26444
|
+
model_fallback_title: z30.boolean().optional(),
|
|
26445
|
+
max_tools: z30.number().int().min(1).optional(),
|
|
26446
|
+
disable_live_parent_wake_routing: z30.boolean().optional()
|
|
26437
26447
|
});
|
|
26438
26448
|
// packages/omo-opencode/src/config/schema/goal.ts
|
|
26439
|
-
import { z as
|
|
26440
|
-
var GoalConfigSchema =
|
|
26441
|
-
enabled:
|
|
26442
|
-
auto_start:
|
|
26443
|
-
default_max_iterations:
|
|
26449
|
+
import { z as z31 } from "zod";
|
|
26450
|
+
var GoalConfigSchema = z31.object({
|
|
26451
|
+
enabled: z31.boolean().default(false),
|
|
26452
|
+
auto_start: z31.boolean().default(false),
|
|
26453
|
+
default_max_iterations: z31.number().min(1).max(1000).default(100)
|
|
26444
26454
|
});
|
|
26445
26455
|
// packages/skills-loader-core/src/config/git-env-prefix.ts
|
|
26446
|
-
import { z as
|
|
26456
|
+
import { z as z32 } from "zod";
|
|
26447
26457
|
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_-]*)*$/;
|
|
26448
26458
|
var GIT_ENV_PREFIX_VALIDATION_MESSAGE = 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"';
|
|
26449
26459
|
function isValidGitEnvPrefix(value) {
|
|
@@ -26458,17 +26468,17 @@ function assertValidGitEnvPrefix(value) {
|
|
|
26458
26468
|
}
|
|
26459
26469
|
return value;
|
|
26460
26470
|
}
|
|
26461
|
-
var GitEnvPrefixSchema =
|
|
26471
|
+
var GitEnvPrefixSchema = z32.string().refine(isValidGitEnvPrefix, { message: GIT_ENV_PREFIX_VALIDATION_MESSAGE }).default("GIT_MASTER=1");
|
|
26462
26472
|
// packages/omo-opencode/src/config/schema/git-master.ts
|
|
26463
|
-
import { z as
|
|
26464
|
-
var GitMasterConfigSchema =
|
|
26465
|
-
commit_footer:
|
|
26466
|
-
include_co_authored_by:
|
|
26473
|
+
import { z as z33 } from "zod";
|
|
26474
|
+
var GitMasterConfigSchema = z33.object({
|
|
26475
|
+
commit_footer: z33.union([z33.boolean(), z33.string()]).default(false),
|
|
26476
|
+
include_co_authored_by: z33.boolean().default(false),
|
|
26467
26477
|
git_env_prefix: GitEnvPrefixSchema
|
|
26468
26478
|
});
|
|
26469
26479
|
// packages/omo-opencode/src/config/schema/hooks.ts
|
|
26470
|
-
import { z as
|
|
26471
|
-
var HookNameSchema =
|
|
26480
|
+
import { z as z34 } from "zod";
|
|
26481
|
+
var HookNameSchema = z34.enum([
|
|
26472
26482
|
"todo-continuation-enforcer",
|
|
26473
26483
|
"session-notification",
|
|
26474
26484
|
"comment-checker",
|
|
@@ -26527,240 +26537,240 @@ var HookNameSchema = z33.enum([
|
|
|
26527
26537
|
"native-edition-nudge"
|
|
26528
26538
|
]);
|
|
26529
26539
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
26530
|
-
import { z as
|
|
26531
|
-
var I18nConfigSchema =
|
|
26532
|
-
locale:
|
|
26540
|
+
import { z as z35 } from "zod";
|
|
26541
|
+
var I18nConfigSchema = z35.object({
|
|
26542
|
+
locale: z35.string().optional()
|
|
26533
26543
|
});
|
|
26534
26544
|
// packages/omo-opencode/src/config/schema/keyword-detector.ts
|
|
26535
|
-
import { z as
|
|
26536
|
-
var KeywordTypeSchema =
|
|
26537
|
-
var KeywordDetectorConfigSchema =
|
|
26538
|
-
enabled_expansions:
|
|
26539
|
-
disabled_keywords:
|
|
26545
|
+
import { z as z36 } from "zod";
|
|
26546
|
+
var KeywordTypeSchema = z36.enum(["ultrawork", "team", "hyperplan", "hyperplan-ultrawork"]);
|
|
26547
|
+
var KeywordDetectorConfigSchema = z36.object({
|
|
26548
|
+
enabled_expansions: z36.array(KeywordTypeSchema).optional(),
|
|
26549
|
+
disabled_keywords: z36.array(KeywordTypeSchema).optional()
|
|
26540
26550
|
});
|
|
26541
26551
|
// packages/omo-opencode/src/config/schema/model-capabilities.ts
|
|
26542
|
-
import { z as
|
|
26543
|
-
var ModelCapabilitiesConfigSchema =
|
|
26544
|
-
enabled:
|
|
26545
|
-
auto_refresh_on_start:
|
|
26546
|
-
refresh_timeout_ms:
|
|
26547
|
-
source_url:
|
|
26552
|
+
import { z as z37 } from "zod";
|
|
26553
|
+
var ModelCapabilitiesConfigSchema = z37.object({
|
|
26554
|
+
enabled: z37.boolean().optional(),
|
|
26555
|
+
auto_refresh_on_start: z37.boolean().optional(),
|
|
26556
|
+
refresh_timeout_ms: z37.number().int().positive().optional(),
|
|
26557
|
+
source_url: z37.string().url().optional()
|
|
26548
26558
|
});
|
|
26549
26559
|
// packages/omo-opencode/src/config/schema/notification.ts
|
|
26550
|
-
import { z as
|
|
26551
|
-
var NotificationConfigSchema =
|
|
26552
|
-
force_enable:
|
|
26560
|
+
import { z as z38 } from "zod";
|
|
26561
|
+
var NotificationConfigSchema = z38.object({
|
|
26562
|
+
force_enable: z38.boolean().optional()
|
|
26553
26563
|
});
|
|
26554
26564
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
26555
|
-
import { z as
|
|
26565
|
+
import { z as z52 } from "zod";
|
|
26556
26566
|
|
|
26557
26567
|
// packages/omo-opencode/src/mcp/types.ts
|
|
26558
|
-
import { z as
|
|
26559
|
-
var McpNameSchema =
|
|
26560
|
-
var AnyMcpNameSchema =
|
|
26568
|
+
import { z as z39 } from "zod";
|
|
26569
|
+
var McpNameSchema = z39.enum(["websearch", "context7", "grep_app", "lsp"]);
|
|
26570
|
+
var AnyMcpNameSchema = z39.string().min(1);
|
|
26561
26571
|
|
|
26562
26572
|
// packages/omo-opencode/src/config/schema/agent-definitions.ts
|
|
26563
|
-
import { z as
|
|
26564
|
-
var AgentDefinitionPathSchema =
|
|
26565
|
-
var AgentDefinitionsConfigSchema =
|
|
26573
|
+
import { z as z40 } from "zod";
|
|
26574
|
+
var AgentDefinitionPathSchema = z40.string().min(1);
|
|
26575
|
+
var AgentDefinitionsConfigSchema = z40.array(AgentDefinitionPathSchema).optional();
|
|
26566
26576
|
|
|
26567
26577
|
// packages/omo-opencode/src/config/schema/openclaw.ts
|
|
26568
|
-
import { z as
|
|
26569
|
-
var OpenClawGatewaySchema =
|
|
26570
|
-
type:
|
|
26571
|
-
url:
|
|
26572
|
-
method:
|
|
26573
|
-
headers:
|
|
26574
|
-
command:
|
|
26575
|
-
timeout:
|
|
26578
|
+
import { z as z41 } from "zod";
|
|
26579
|
+
var OpenClawGatewaySchema = z41.object({
|
|
26580
|
+
type: z41.enum(["http", "command"]).default("http"),
|
|
26581
|
+
url: z41.string().optional(),
|
|
26582
|
+
method: z41.string().default("POST"),
|
|
26583
|
+
headers: z41.record(z41.string(), z41.string()).optional(),
|
|
26584
|
+
command: z41.string().optional(),
|
|
26585
|
+
timeout: z41.number().optional()
|
|
26576
26586
|
});
|
|
26577
|
-
var OpenClawHookSchema =
|
|
26578
|
-
enabled:
|
|
26579
|
-
gateway:
|
|
26580
|
-
instruction:
|
|
26587
|
+
var OpenClawHookSchema = z41.object({
|
|
26588
|
+
enabled: z41.boolean().default(true),
|
|
26589
|
+
gateway: z41.string(),
|
|
26590
|
+
instruction: z41.string()
|
|
26581
26591
|
});
|
|
26582
|
-
var OpenClawReplyListenerConfigSchema =
|
|
26583
|
-
discordBotToken:
|
|
26584
|
-
discordChannelId:
|
|
26585
|
-
discordMention:
|
|
26586
|
-
authorizedDiscordUserIds:
|
|
26587
|
-
telegramBotToken:
|
|
26588
|
-
telegramChatId:
|
|
26589
|
-
pollIntervalMs:
|
|
26590
|
-
rateLimitPerMinute:
|
|
26591
|
-
maxMessageLength:
|
|
26592
|
-
includePrefix:
|
|
26592
|
+
var OpenClawReplyListenerConfigSchema = z41.object({
|
|
26593
|
+
discordBotToken: z41.string().optional(),
|
|
26594
|
+
discordChannelId: z41.string().optional(),
|
|
26595
|
+
discordMention: z41.string().optional(),
|
|
26596
|
+
authorizedDiscordUserIds: z41.array(z41.string()).default([]),
|
|
26597
|
+
telegramBotToken: z41.string().optional(),
|
|
26598
|
+
telegramChatId: z41.string().optional(),
|
|
26599
|
+
pollIntervalMs: z41.number().default(3000),
|
|
26600
|
+
rateLimitPerMinute: z41.number().default(10),
|
|
26601
|
+
maxMessageLength: z41.number().default(500),
|
|
26602
|
+
includePrefix: z41.boolean().default(true)
|
|
26593
26603
|
});
|
|
26594
|
-
var OpenClawConfigSchema =
|
|
26595
|
-
enabled:
|
|
26596
|
-
gateways:
|
|
26597
|
-
hooks:
|
|
26604
|
+
var OpenClawConfigSchema = z41.object({
|
|
26605
|
+
enabled: z41.boolean().default(false),
|
|
26606
|
+
gateways: z41.record(z41.string(), OpenClawGatewaySchema).default({}),
|
|
26607
|
+
hooks: z41.record(z41.string(), OpenClawHookSchema).default({}),
|
|
26598
26608
|
replyListener: OpenClawReplyListenerConfigSchema.optional()
|
|
26599
26609
|
});
|
|
26600
26610
|
|
|
26601
26611
|
// packages/omo-opencode/src/config/schema/monitor.ts
|
|
26602
|
-
import { z as
|
|
26603
|
-
var MonitorConfigSchema =
|
|
26604
|
-
enabled:
|
|
26605
|
-
live_mode_enabled:
|
|
26606
|
-
allowed_commands:
|
|
26607
|
-
max_monitors_per_session:
|
|
26608
|
-
max_runtime_ms:
|
|
26609
|
-
batch_max_lines:
|
|
26610
|
-
batch_max_bytes:
|
|
26611
|
-
flush_interval_ms:
|
|
26612
|
-
ring_max_lines:
|
|
26613
|
-
line_max_bytes:
|
|
26614
|
-
pattern_max_length:
|
|
26612
|
+
import { z as z42 } from "zod";
|
|
26613
|
+
var MonitorConfigSchema = z42.object({
|
|
26614
|
+
enabled: z42.boolean().default(false),
|
|
26615
|
+
live_mode_enabled: z42.boolean().default(false),
|
|
26616
|
+
allowed_commands: z42.array(z42.string()).optional(),
|
|
26617
|
+
max_monitors_per_session: z42.number().int().min(1).max(16).default(3),
|
|
26618
|
+
max_runtime_ms: z42.number().int().min(1000).default(1800000),
|
|
26619
|
+
batch_max_lines: z42.number().int().min(1).default(50),
|
|
26620
|
+
batch_max_bytes: z42.number().int().min(1024).default(16384),
|
|
26621
|
+
flush_interval_ms: z42.number().int().min(250).default(1000),
|
|
26622
|
+
ring_max_lines: z42.number().int().min(1).default(1000),
|
|
26623
|
+
line_max_bytes: z42.number().int().min(256).default(8192),
|
|
26624
|
+
pattern_max_length: z42.number().int().min(1).default(512)
|
|
26615
26625
|
});
|
|
26616
26626
|
|
|
26617
26627
|
// packages/omo-opencode/src/config/schema/runtime-fallback.ts
|
|
26618
|
-
import { z as
|
|
26619
|
-
var RuntimeFallbackConfigSchema =
|
|
26620
|
-
enabled:
|
|
26621
|
-
retry_on_errors:
|
|
26622
|
-
max_fallback_attempts:
|
|
26623
|
-
cooldown_seconds:
|
|
26624
|
-
timeout_seconds:
|
|
26625
|
-
notify_on_fallback:
|
|
26626
|
-
restore_primary_after_cooldown:
|
|
26628
|
+
import { z as z43 } from "zod";
|
|
26629
|
+
var RuntimeFallbackConfigSchema = z43.object({
|
|
26630
|
+
enabled: z43.boolean().optional(),
|
|
26631
|
+
retry_on_errors: z43.array(z43.number()).optional(),
|
|
26632
|
+
max_fallback_attempts: z43.number().min(1).max(20).optional(),
|
|
26633
|
+
cooldown_seconds: z43.number().min(0).optional(),
|
|
26634
|
+
timeout_seconds: z43.number().min(0).optional(),
|
|
26635
|
+
notify_on_fallback: z43.boolean().optional(),
|
|
26636
|
+
restore_primary_after_cooldown: z43.boolean().optional()
|
|
26627
26637
|
});
|
|
26628
26638
|
|
|
26629
26639
|
// packages/team-core/src/config.ts
|
|
26630
|
-
import * as
|
|
26631
|
-
var TeamModeConfigSchema =
|
|
26632
|
-
enabled:
|
|
26633
|
-
tmux_visualization:
|
|
26634
|
-
max_parallel_members:
|
|
26635
|
-
max_members:
|
|
26636
|
-
max_messages_per_run:
|
|
26637
|
-
max_wall_clock_minutes:
|
|
26638
|
-
max_member_turns:
|
|
26639
|
-
base_dir:
|
|
26640
|
-
message_payload_max_bytes:
|
|
26641
|
-
recipient_unread_max_bytes:
|
|
26642
|
-
mailbox_poll_interval_ms:
|
|
26640
|
+
import * as z44 from "zod";
|
|
26641
|
+
var TeamModeConfigSchema = z44.object({
|
|
26642
|
+
enabled: z44.boolean().default(false),
|
|
26643
|
+
tmux_visualization: z44.boolean().default(false),
|
|
26644
|
+
max_parallel_members: z44.number().int().min(1).max(8).default(4),
|
|
26645
|
+
max_members: z44.number().int().min(1).max(8).default(8),
|
|
26646
|
+
max_messages_per_run: z44.number().int().min(1).default(1e4),
|
|
26647
|
+
max_wall_clock_minutes: z44.number().int().min(1).default(120),
|
|
26648
|
+
max_member_turns: z44.number().int().min(1).default(500),
|
|
26649
|
+
base_dir: z44.string().optional(),
|
|
26650
|
+
message_payload_max_bytes: z44.number().int().min(1024).default(32768),
|
|
26651
|
+
recipient_unread_max_bytes: z44.number().int().min(1024).default(262144),
|
|
26652
|
+
mailbox_poll_interval_ms: z44.number().int().min(500).default(3000)
|
|
26643
26653
|
});
|
|
26644
26654
|
// packages/omo-opencode/src/config/schema/skills.ts
|
|
26645
|
-
import { z as
|
|
26646
|
-
var SkillSourceSchema =
|
|
26647
|
-
|
|
26648
|
-
|
|
26649
|
-
path:
|
|
26650
|
-
recursive:
|
|
26651
|
-
glob:
|
|
26655
|
+
import { z as z45 } from "zod";
|
|
26656
|
+
var SkillSourceSchema = z45.union([
|
|
26657
|
+
z45.string(),
|
|
26658
|
+
z45.object({
|
|
26659
|
+
path: z45.string(),
|
|
26660
|
+
recursive: z45.boolean().optional(),
|
|
26661
|
+
glob: z45.string().optional()
|
|
26652
26662
|
})
|
|
26653
26663
|
]);
|
|
26654
|
-
var SkillDefinitionSchema =
|
|
26655
|
-
description:
|
|
26656
|
-
template:
|
|
26657
|
-
from:
|
|
26658
|
-
model:
|
|
26659
|
-
agent:
|
|
26660
|
-
subtask:
|
|
26661
|
-
"argument-hint":
|
|
26662
|
-
license:
|
|
26663
|
-
compatibility:
|
|
26664
|
-
metadata:
|
|
26665
|
-
"allowed-tools":
|
|
26666
|
-
disable:
|
|
26664
|
+
var SkillDefinitionSchema = z45.object({
|
|
26665
|
+
description: z45.string().optional(),
|
|
26666
|
+
template: z45.string().optional(),
|
|
26667
|
+
from: z45.string().optional(),
|
|
26668
|
+
model: z45.string().optional(),
|
|
26669
|
+
agent: z45.string().optional(),
|
|
26670
|
+
subtask: z45.boolean().optional(),
|
|
26671
|
+
"argument-hint": z45.string().optional(),
|
|
26672
|
+
license: z45.string().optional(),
|
|
26673
|
+
compatibility: z45.string().optional(),
|
|
26674
|
+
metadata: z45.record(z45.string(), z45.unknown()).optional(),
|
|
26675
|
+
"allowed-tools": z45.array(z45.string()).optional(),
|
|
26676
|
+
disable: z45.boolean().optional()
|
|
26667
26677
|
});
|
|
26668
|
-
var SkillEntrySchema =
|
|
26669
|
-
var SkillsConfigSchema =
|
|
26670
|
-
|
|
26671
|
-
|
|
26672
|
-
sources:
|
|
26673
|
-
enable:
|
|
26674
|
-
disable:
|
|
26678
|
+
var SkillEntrySchema = z45.union([z45.boolean(), SkillDefinitionSchema]);
|
|
26679
|
+
var SkillsConfigSchema = z45.union([
|
|
26680
|
+
z45.array(z45.string()),
|
|
26681
|
+
z45.object({
|
|
26682
|
+
sources: z45.array(SkillSourceSchema).optional(),
|
|
26683
|
+
enable: z45.array(z45.string()).optional(),
|
|
26684
|
+
disable: z45.array(z45.string()).optional()
|
|
26675
26685
|
}).catchall(SkillEntrySchema)
|
|
26676
26686
|
]);
|
|
26677
26687
|
|
|
26678
26688
|
// packages/omo-opencode/src/config/schema/sisyphus.ts
|
|
26679
|
-
import { z as
|
|
26680
|
-
var SisyphusTasksConfigSchema =
|
|
26681
|
-
storage_path:
|
|
26682
|
-
task_list_id:
|
|
26683
|
-
claude_code_compat:
|
|
26689
|
+
import { z as z46 } from "zod";
|
|
26690
|
+
var SisyphusTasksConfigSchema = z46.object({
|
|
26691
|
+
storage_path: z46.string().optional(),
|
|
26692
|
+
task_list_id: z46.string().optional(),
|
|
26693
|
+
claude_code_compat: z46.boolean().default(false)
|
|
26684
26694
|
});
|
|
26685
|
-
var SisyphusConfigSchema =
|
|
26695
|
+
var SisyphusConfigSchema = z46.object({
|
|
26686
26696
|
tasks: SisyphusTasksConfigSchema.optional()
|
|
26687
26697
|
});
|
|
26688
26698
|
|
|
26689
26699
|
// packages/omo-opencode/src/config/schema/sisyphus-agent.ts
|
|
26690
|
-
import { z as
|
|
26691
|
-
var SisyphusAgentConfigSchema =
|
|
26692
|
-
disabled:
|
|
26693
|
-
default_builder_enabled:
|
|
26694
|
-
planner_enabled:
|
|
26695
|
-
replace_plan:
|
|
26696
|
-
tdd:
|
|
26700
|
+
import { z as z47 } from "zod";
|
|
26701
|
+
var SisyphusAgentConfigSchema = z47.object({
|
|
26702
|
+
disabled: z47.boolean().optional(),
|
|
26703
|
+
default_builder_enabled: z47.boolean().optional(),
|
|
26704
|
+
planner_enabled: z47.boolean().optional(),
|
|
26705
|
+
replace_plan: z47.boolean().optional(),
|
|
26706
|
+
tdd: z47.boolean().default(true).optional()
|
|
26697
26707
|
});
|
|
26698
26708
|
|
|
26699
26709
|
// packages/omo-opencode/src/config/schema/tmux.ts
|
|
26700
26710
|
init_src2();
|
|
26701
|
-
import { z as
|
|
26702
|
-
var TmuxLayoutSchema =
|
|
26703
|
-
var TmuxIsolationSchema =
|
|
26704
|
-
var TmuxConfigSchema =
|
|
26705
|
-
enabled:
|
|
26711
|
+
import { z as z48 } from "zod";
|
|
26712
|
+
var TmuxLayoutSchema = z48.enum(TMUX_LAYOUT_VALUES);
|
|
26713
|
+
var TmuxIsolationSchema = z48.enum(TMUX_ISOLATION_VALUES);
|
|
26714
|
+
var TmuxConfigSchema = z48.object({
|
|
26715
|
+
enabled: z48.boolean().default(false),
|
|
26706
26716
|
layout: TmuxLayoutSchema.default("main-vertical"),
|
|
26707
|
-
main_pane_size:
|
|
26708
|
-
main_pane_min_width:
|
|
26709
|
-
agent_pane_min_width:
|
|
26717
|
+
main_pane_size: z48.number().min(20).max(80).default(60),
|
|
26718
|
+
main_pane_min_width: z48.number().min(40).default(120),
|
|
26719
|
+
agent_pane_min_width: z48.number().min(20).default(40),
|
|
26710
26720
|
isolation: TmuxIsolationSchema.default("inline")
|
|
26711
26721
|
});
|
|
26712
26722
|
|
|
26713
26723
|
// packages/omo-opencode/src/config/schema/tui.ts
|
|
26714
|
-
import { z as
|
|
26715
|
-
var TuiSidebarConfigSchema =
|
|
26716
|
-
enabled:
|
|
26724
|
+
import { z as z49 } from "zod";
|
|
26725
|
+
var TuiSidebarConfigSchema = z49.object({
|
|
26726
|
+
enabled: z49.boolean().default(true)
|
|
26717
26727
|
});
|
|
26718
|
-
var TuiConfigSchema =
|
|
26728
|
+
var TuiConfigSchema = z49.object({
|
|
26719
26729
|
sidebar: TuiSidebarConfigSchema.default({ enabled: true })
|
|
26720
26730
|
});
|
|
26721
26731
|
|
|
26722
26732
|
// packages/omo-opencode/src/config/schema/ulw-execute.ts
|
|
26723
|
-
import { z as
|
|
26724
|
-
var UlwExecuteConfigSchema =
|
|
26725
|
-
auto_commit:
|
|
26733
|
+
import { z as z50 } from "zod";
|
|
26734
|
+
var UlwExecuteConfigSchema = z50.object({
|
|
26735
|
+
auto_commit: z50.boolean().default(true)
|
|
26726
26736
|
});
|
|
26727
26737
|
|
|
26728
26738
|
// packages/omo-opencode/src/config/schema/websearch.ts
|
|
26729
|
-
import { z as
|
|
26730
|
-
var WebsearchProviderSchema =
|
|
26731
|
-
var WebsearchConfigSchema =
|
|
26739
|
+
import { z as z51 } from "zod";
|
|
26740
|
+
var WebsearchProviderSchema = z51.enum(["exa", "tavily"]);
|
|
26741
|
+
var WebsearchConfigSchema = z51.object({
|
|
26732
26742
|
provider: WebsearchProviderSchema.optional()
|
|
26733
26743
|
});
|
|
26734
26744
|
|
|
26735
26745
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
26736
|
-
var OhMyOpenCodeConfigSchema =
|
|
26737
|
-
$schema:
|
|
26738
|
-
new_task_system_enabled:
|
|
26739
|
-
default_run_agent:
|
|
26740
|
-
agent_order:
|
|
26746
|
+
var OhMyOpenCodeConfigSchema = z52.object({
|
|
26747
|
+
$schema: z52.string().optional(),
|
|
26748
|
+
new_task_system_enabled: z52.boolean().optional(),
|
|
26749
|
+
default_run_agent: z52.string().optional(),
|
|
26750
|
+
agent_order: z52.array(z52.string().max(128)).max(64).optional(),
|
|
26741
26751
|
agent_definitions: AgentDefinitionsConfigSchema,
|
|
26742
|
-
disabled_mcps:
|
|
26743
|
-
disabled_agents:
|
|
26744
|
-
disabled_skills:
|
|
26745
|
-
disabled_hooks:
|
|
26746
|
-
disabled_commands:
|
|
26747
|
-
disabled_tools:
|
|
26748
|
-
disabled_providers:
|
|
26749
|
-
mcp_env_allowlist:
|
|
26750
|
-
hashline_edit:
|
|
26751
|
-
telemetry:
|
|
26752
|
-
model_fallback:
|
|
26752
|
+
disabled_mcps: z52.array(AnyMcpNameSchema).optional(),
|
|
26753
|
+
disabled_agents: z52.array(z52.string()).optional(),
|
|
26754
|
+
disabled_skills: z52.array(z52.string()).optional(),
|
|
26755
|
+
disabled_hooks: z52.array(z52.string()).optional(),
|
|
26756
|
+
disabled_commands: z52.array(BuiltinCommandNameSchema).optional(),
|
|
26757
|
+
disabled_tools: z52.array(z52.string()).optional(),
|
|
26758
|
+
disabled_providers: z52.array(z52.string()).optional(),
|
|
26759
|
+
mcp_env_allowlist: z52.array(z52.string()).optional(),
|
|
26760
|
+
hashline_edit: z52.boolean().optional(),
|
|
26761
|
+
telemetry: z52.boolean().optional().describe("Enable or disable anonymous telemetry. Default: enabled when omitted. Set to false to disable."),
|
|
26762
|
+
model_fallback: z52.boolean().optional(),
|
|
26753
26763
|
agents: AgentOverridesSchema.optional(),
|
|
26754
26764
|
categories: CategoriesConfigSchema.optional(),
|
|
26755
26765
|
claude_code: ClaudeCodeConfigSchema.optional(),
|
|
26756
26766
|
sisyphus_agent: SisyphusAgentConfigSchema.optional(),
|
|
26757
26767
|
comment_checker: CommentCheckerConfigSchema.optional(),
|
|
26758
26768
|
experimental: ExperimentalConfigSchema.optional(),
|
|
26759
|
-
auto_update:
|
|
26769
|
+
auto_update: z52.boolean().optional(),
|
|
26760
26770
|
skills: SkillsConfigSchema.optional(),
|
|
26761
26771
|
goal: GoalConfigSchema.optional(),
|
|
26762
|
-
ralph_loop:
|
|
26763
|
-
runtime_fallback:
|
|
26772
|
+
ralph_loop: z52.record(z52.string(), z52.unknown()).optional(),
|
|
26773
|
+
runtime_fallback: z52.union([z52.boolean(), RuntimeFallbackConfigSchema]).optional(),
|
|
26764
26774
|
background_task: BackgroundTaskConfigSchema.optional(),
|
|
26765
26775
|
notification: NotificationConfigSchema.optional(),
|
|
26766
26776
|
model_capabilities: ModelCapabilitiesConfigSchema.optional(),
|
|
@@ -26783,7 +26793,7 @@ var OhMyOpenCodeConfigSchema = z51.object({
|
|
|
26783
26793
|
ulw_execute: UlwExecuteConfigSchema.optional(),
|
|
26784
26794
|
start_work: UlwExecuteConfigSchema.optional(),
|
|
26785
26795
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
26786
|
-
_migrations:
|
|
26796
|
+
_migrations: z52.array(z52.string()).optional()
|
|
26787
26797
|
});
|
|
26788
26798
|
// packages/omo-opencode/src/config/prune-plugin-view.ts
|
|
26789
26799
|
var validatePluginRecord = (record) => {
|
|
@@ -27797,7 +27807,7 @@ var OPENAI_CATEGORIES = [
|
|
|
27797
27807
|
},
|
|
27798
27808
|
{
|
|
27799
27809
|
name: "deep-high",
|
|
27800
|
-
config: { model: "openai/gpt-6-astra", variant: "
|
|
27810
|
+
config: { model: "openai/gpt-6-astra", variant: "high" },
|
|
27801
27811
|
description: "Escalation deep lane: a goal whose central decision cannot be settled from evidence alone. Same one-goal, one-deliverable contract as deep-low.",
|
|
27802
27812
|
callerGuidance: DEEP_HIGH_CATEGORY_CALLER_GUIDANCE,
|
|
27803
27813
|
promptAppend: DEEP_HIGH_CATEGORY_PROMPT_APPEND,
|
|
@@ -88276,24 +88286,6 @@ function migrateLegacyWorkspaceDirectory(directory) {
|
|
|
88276
88286
|
function isTaskSystemEnabled(config) {
|
|
88277
88287
|
return config.experimental?.task_system ?? false;
|
|
88278
88288
|
}
|
|
88279
|
-
// packages/omo-opencode/src/shared/excluded-dirs.ts
|
|
88280
|
-
var EXCLUDED_DIR_NAMES = [
|
|
88281
|
-
"node_modules",
|
|
88282
|
-
".git",
|
|
88283
|
-
"dist",
|
|
88284
|
-
"build",
|
|
88285
|
-
".next",
|
|
88286
|
-
".omo",
|
|
88287
|
-
".sisyphus",
|
|
88288
|
-
".turbo",
|
|
88289
|
-
"coverage",
|
|
88290
|
-
"out",
|
|
88291
|
-
".cache",
|
|
88292
|
-
".vscode-test",
|
|
88293
|
-
"target",
|
|
88294
|
-
".local-ignore"
|
|
88295
|
-
];
|
|
88296
|
-
var EXCLUDED_DIRS = Object.freeze(new Set(EXCLUDED_DIR_NAMES));
|
|
88297
88289
|
// packages/omo-opencode/src/shared/replace-tool-args.ts
|
|
88298
88290
|
init_src();
|
|
88299
88291
|
// packages/omo-opencode/src/cli/config-manager/config-context.ts
|
|
@@ -91512,7 +91504,7 @@ var RULE_EXTENSIONS = [".md", ".mdc"];
|
|
|
91512
91504
|
var GITHUB_INSTRUCTIONS_PATTERN = /\.instructions\.md$/;
|
|
91513
91505
|
var AGENTS_FILENAME = "AGENTS.md";
|
|
91514
91506
|
var GLOBAL_DISTANCE = 9999;
|
|
91515
|
-
var
|
|
91507
|
+
var EXCLUDED_DIRS = new Set(["node_modules", ".git", "dist", "build", ".turbo", ".next", "coverage"]);
|
|
91516
91508
|
var SOURCE_PRIORITY = new Map([
|
|
91517
91509
|
[".omo/rules", 0],
|
|
91518
91510
|
[".claude/rules", 1],
|
|
@@ -91650,7 +91642,7 @@ function findRuleFilesRecursive(dir, results, visited = new Set, boundaryRoot) {
|
|
|
91650
91642
|
for (const entry of entries) {
|
|
91651
91643
|
const fullPath = join50(dir, entry.name);
|
|
91652
91644
|
if (entry.isDirectory()) {
|
|
91653
|
-
if (!
|
|
91645
|
+
if (!EXCLUDED_DIRS.has(entry.name))
|
|
91654
91646
|
findRuleFilesRecursive(fullPath, results, visited, effectiveBoundary);
|
|
91655
91647
|
continue;
|
|
91656
91648
|
}
|
|
@@ -98590,7 +98582,7 @@ function getCachedVersion(options = {}) {
|
|
|
98590
98582
|
// package.json
|
|
98591
98583
|
var package_default = {
|
|
98592
98584
|
name: "oh-my-opencode",
|
|
98593
|
-
version: "5.1.
|
|
98585
|
+
version: "5.1.9",
|
|
98594
98586
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
98595
98587
|
main: "./dist/index.js",
|
|
98596
98588
|
types: "dist/index.d.ts",
|
|
@@ -98767,7 +98759,7 @@ var package_default = {
|
|
|
98767
98759
|
},
|
|
98768
98760
|
devDependencies: {
|
|
98769
98761
|
"@clack/prompts": "^1.8.1",
|
|
98770
|
-
"@code-yeongyu/senpi": "2026.
|
|
98762
|
+
"@code-yeongyu/senpi": "2026.10.1-3",
|
|
98771
98763
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
98772
98764
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
98773
98765
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -98825,18 +98817,18 @@ var package_default = {
|
|
|
98825
98817
|
typescript: "^7.0.2"
|
|
98826
98818
|
},
|
|
98827
98819
|
optionalDependencies: {
|
|
98828
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
98829
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
98830
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
98831
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
98832
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
98833
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
98834
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
98835
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
98836
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
98837
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
98838
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
98839
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
98820
|
+
"oh-my-opencode-darwin-arm64": "5.1.9",
|
|
98821
|
+
"oh-my-opencode-darwin-x64": "5.1.9",
|
|
98822
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.9",
|
|
98823
|
+
"oh-my-opencode-linux-arm64": "5.1.9",
|
|
98824
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.9",
|
|
98825
|
+
"oh-my-opencode-linux-x64": "5.1.9",
|
|
98826
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.9",
|
|
98827
|
+
"oh-my-opencode-linux-x64-musl": "5.1.9",
|
|
98828
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.9",
|
|
98829
|
+
"oh-my-opencode-windows-arm64": "5.1.9",
|
|
98830
|
+
"oh-my-opencode-windows-x64": "5.1.9",
|
|
98831
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.9"
|
|
98840
98832
|
},
|
|
98841
98833
|
overrides: {
|
|
98842
98834
|
hono: "^4.13.8",
|
|
@@ -107595,35 +107587,35 @@ import { mkdirSync as mkdirSync18, readFileSync as readFileSync47, renameSync as
|
|
|
107595
107587
|
import { join as join86 } from "path";
|
|
107596
107588
|
|
|
107597
107589
|
// packages/omo-opencode/src/hooks/goal/types.ts
|
|
107598
|
-
import { z as
|
|
107590
|
+
import { z as z54 } from "zod";
|
|
107599
107591
|
var GOAL_STATUS_VALUES = ["active", "paused", "complete"];
|
|
107600
|
-
var GoalStatusSchema =
|
|
107601
|
-
var GoalSchema =
|
|
107602
|
-
id:
|
|
107603
|
-
sessionID:
|
|
107604
|
-
objective:
|
|
107592
|
+
var GoalStatusSchema = z54.enum(GOAL_STATUS_VALUES);
|
|
107593
|
+
var GoalSchema = z54.object({
|
|
107594
|
+
id: z54.string(),
|
|
107595
|
+
sessionID: z54.string(),
|
|
107596
|
+
objective: z54.string(),
|
|
107605
107597
|
status: GoalStatusSchema,
|
|
107606
|
-
tokensUsed:
|
|
107607
|
-
timeUsedSeconds:
|
|
107608
|
-
createdAt:
|
|
107609
|
-
updatedAt:
|
|
107610
|
-
lastStartedAt:
|
|
107611
|
-
completedAt:
|
|
107598
|
+
tokensUsed: z54.number().int().nonnegative(),
|
|
107599
|
+
timeUsedSeconds: z54.number().int().nonnegative(),
|
|
107600
|
+
createdAt: z54.number().int().nonnegative(),
|
|
107601
|
+
updatedAt: z54.number().int().nonnegative(),
|
|
107602
|
+
lastStartedAt: z54.number().int().nonnegative().optional(),
|
|
107603
|
+
completedAt: z54.number().int().nonnegative().optional()
|
|
107612
107604
|
});
|
|
107613
|
-
var GoalFileSchema =
|
|
107614
|
-
version:
|
|
107605
|
+
var GoalFileSchema = z54.object({
|
|
107606
|
+
version: z54.literal(1),
|
|
107615
107607
|
goal: GoalSchema.nullable()
|
|
107616
107608
|
});
|
|
107617
|
-
var GoalToolSnapshotSchema =
|
|
107618
|
-
sessionID:
|
|
107619
|
-
objective:
|
|
107609
|
+
var GoalToolSnapshotSchema = z54.object({
|
|
107610
|
+
sessionID: z54.string(),
|
|
107611
|
+
objective: z54.string(),
|
|
107620
107612
|
status: GoalStatusSchema,
|
|
107621
|
-
tokensUsed:
|
|
107622
|
-
timeUsedSeconds:
|
|
107623
|
-
createdAt:
|
|
107624
|
-
updatedAt:
|
|
107613
|
+
tokensUsed: z54.number().int().nonnegative(),
|
|
107614
|
+
timeUsedSeconds: z54.number().int().nonnegative(),
|
|
107615
|
+
createdAt: z54.number().int().nonnegative(),
|
|
107616
|
+
updatedAt: z54.number().int().nonnegative()
|
|
107625
107617
|
});
|
|
107626
|
-
var GoalToolResponseSchema =
|
|
107618
|
+
var GoalToolResponseSchema = z54.object({
|
|
107627
107619
|
goal: GoalToolSnapshotSchema.nullable()
|
|
107628
107620
|
});
|
|
107629
107621
|
|
|
@@ -111807,6 +111799,26 @@ function readOpencodeConfigSkills(directory) {
|
|
|
111807
111799
|
// packages/omo-opencode/src/tools/slashcommand/command-discovery.ts
|
|
111808
111800
|
import { existsSync as existsSync76, readdirSync as readdirSync23, readFileSync as readFileSync52, statSync as statSync12 } from "fs";
|
|
111809
111801
|
import { basename as basename15, join as join100 } from "path";
|
|
111802
|
+
|
|
111803
|
+
// packages/omo-opencode/src/shared/excluded-dirs.ts
|
|
111804
|
+
var EXCLUDED_DIR_NAMES = [
|
|
111805
|
+
"node_modules",
|
|
111806
|
+
".git",
|
|
111807
|
+
"dist",
|
|
111808
|
+
"build",
|
|
111809
|
+
".next",
|
|
111810
|
+
".omo",
|
|
111811
|
+
".sisyphus",
|
|
111812
|
+
".turbo",
|
|
111813
|
+
"coverage",
|
|
111814
|
+
"out",
|
|
111815
|
+
".cache",
|
|
111816
|
+
".vscode-test",
|
|
111817
|
+
"target",
|
|
111818
|
+
".local-ignore"
|
|
111819
|
+
];
|
|
111820
|
+
var EXCLUDED_DIRS2 = Object.freeze(new Set(EXCLUDED_DIR_NAMES));
|
|
111821
|
+
// packages/omo-opencode/src/tools/slashcommand/command-discovery.ts
|
|
111810
111822
|
init_logger2();
|
|
111811
111823
|
|
|
111812
111824
|
// packages/omo-opencode/src/features/builtin-commands/templates/goal.ts
|
|
@@ -113330,7 +113342,7 @@ function discoverCommandsFromDir(commandsDir, scope, prefix = "") {
|
|
|
113330
113342
|
const commands = [];
|
|
113331
113343
|
for (const entry of entries) {
|
|
113332
113344
|
if (entry.isDirectory()) {
|
|
113333
|
-
if (
|
|
113345
|
+
if (EXCLUDED_DIRS2.has(entry.name))
|
|
113334
113346
|
continue;
|
|
113335
113347
|
if (entry.name.startsWith("."))
|
|
113336
113348
|
continue;
|
|
@@ -125015,11 +125027,11 @@ function createMonitorStatusInjectorHook(monitorManager, config) {
|
|
|
125015
125027
|
import { resolve as resolve27 } from "path";
|
|
125016
125028
|
|
|
125017
125029
|
// node_modules/.bun/@opencode-ai+plugin@1.18.31+7445fc152a67980a/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
125018
|
-
import { z as
|
|
125030
|
+
import { z as z55 } from "zod";
|
|
125019
125031
|
function tool(input) {
|
|
125020
125032
|
return input;
|
|
125021
125033
|
}
|
|
125022
|
-
tool.schema =
|
|
125034
|
+
tool.schema = z55;
|
|
125023
125035
|
|
|
125024
125036
|
// packages/omo-opencode/src/shared/ripgrep-cli.ts
|
|
125025
125037
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
@@ -134150,55 +134162,55 @@ function isExplicitSyncRun(runInBackground) {
|
|
|
134150
134162
|
import { join as join121 } from "path";
|
|
134151
134163
|
|
|
134152
134164
|
// packages/omo-opencode/src/tools/task/types.ts
|
|
134153
|
-
import { z as
|
|
134154
|
-
var TaskStatusSchema =
|
|
134155
|
-
var TaskObjectSchema =
|
|
134156
|
-
id:
|
|
134157
|
-
subject:
|
|
134158
|
-
description:
|
|
134165
|
+
import { z as z56 } from "zod";
|
|
134166
|
+
var TaskStatusSchema = z56.enum(["pending", "in_progress", "completed", "deleted"]);
|
|
134167
|
+
var TaskObjectSchema = z56.object({
|
|
134168
|
+
id: z56.string(),
|
|
134169
|
+
subject: z56.string(),
|
|
134170
|
+
description: z56.string(),
|
|
134159
134171
|
status: TaskStatusSchema,
|
|
134160
|
-
activeForm:
|
|
134161
|
-
blocks:
|
|
134162
|
-
blockedBy:
|
|
134163
|
-
owner:
|
|
134164
|
-
metadata:
|
|
134165
|
-
repoURL:
|
|
134166
|
-
parentID:
|
|
134167
|
-
threadID:
|
|
134172
|
+
activeForm: z56.string().optional(),
|
|
134173
|
+
blocks: z56.array(z56.string()).default([]),
|
|
134174
|
+
blockedBy: z56.array(z56.string()).default([]),
|
|
134175
|
+
owner: z56.string().optional(),
|
|
134176
|
+
metadata: z56.record(z56.string(), z56.unknown()).optional(),
|
|
134177
|
+
repoURL: z56.string().optional(),
|
|
134178
|
+
parentID: z56.string().optional(),
|
|
134179
|
+
threadID: z56.string()
|
|
134168
134180
|
}).strict();
|
|
134169
|
-
var TaskCreateInputSchema =
|
|
134170
|
-
subject:
|
|
134171
|
-
description:
|
|
134172
|
-
activeForm:
|
|
134173
|
-
blocks:
|
|
134174
|
-
blockedBy:
|
|
134175
|
-
owner:
|
|
134176
|
-
metadata:
|
|
134177
|
-
repoURL:
|
|
134178
|
-
parentID:
|
|
134181
|
+
var TaskCreateInputSchema = z56.object({
|
|
134182
|
+
subject: z56.string(),
|
|
134183
|
+
description: z56.string().optional(),
|
|
134184
|
+
activeForm: z56.string().optional(),
|
|
134185
|
+
blocks: z56.array(z56.string()).optional(),
|
|
134186
|
+
blockedBy: z56.array(z56.string()).optional(),
|
|
134187
|
+
owner: z56.string().optional(),
|
|
134188
|
+
metadata: z56.record(z56.string(), z56.unknown()).optional(),
|
|
134189
|
+
repoURL: z56.string().optional(),
|
|
134190
|
+
parentID: z56.string().optional()
|
|
134179
134191
|
});
|
|
134180
|
-
var TaskListInputSchema =
|
|
134192
|
+
var TaskListInputSchema = z56.object({
|
|
134181
134193
|
status: TaskStatusSchema.optional(),
|
|
134182
|
-
parentID:
|
|
134194
|
+
parentID: z56.string().optional()
|
|
134183
134195
|
});
|
|
134184
|
-
var TaskGetInputSchema =
|
|
134185
|
-
id:
|
|
134196
|
+
var TaskGetInputSchema = z56.object({
|
|
134197
|
+
id: z56.string()
|
|
134186
134198
|
});
|
|
134187
|
-
var TaskUpdateInputSchema =
|
|
134188
|
-
id:
|
|
134189
|
-
subject:
|
|
134190
|
-
description:
|
|
134199
|
+
var TaskUpdateInputSchema = z56.object({
|
|
134200
|
+
id: z56.string(),
|
|
134201
|
+
subject: z56.string().optional(),
|
|
134202
|
+
description: z56.string().optional(),
|
|
134191
134203
|
status: TaskStatusSchema.optional(),
|
|
134192
|
-
activeForm:
|
|
134193
|
-
addBlocks:
|
|
134194
|
-
addBlockedBy:
|
|
134195
|
-
owner:
|
|
134196
|
-
metadata:
|
|
134197
|
-
repoURL:
|
|
134198
|
-
parentID:
|
|
134204
|
+
activeForm: z56.string().optional(),
|
|
134205
|
+
addBlocks: z56.array(z56.string()).optional(),
|
|
134206
|
+
addBlockedBy: z56.array(z56.string()).optional(),
|
|
134207
|
+
owner: z56.string().optional(),
|
|
134208
|
+
metadata: z56.record(z56.string(), z56.unknown()).optional(),
|
|
134209
|
+
repoURL: z56.string().optional(),
|
|
134210
|
+
parentID: z56.string().optional()
|
|
134199
134211
|
});
|
|
134200
|
-
var TaskDeleteInputSchema =
|
|
134201
|
-
id:
|
|
134212
|
+
var TaskDeleteInputSchema = z56.object({
|
|
134213
|
+
id: z56.string()
|
|
134202
134214
|
});
|
|
134203
134215
|
|
|
134204
134216
|
// packages/omo-opencode/src/features/claude-tasks/storage.ts
|
|
@@ -135099,7 +135111,7 @@ function createHashlineEditTool(ctx) {
|
|
|
135099
135111
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
135100
135112
|
import { randomUUID as randomUUID11 } from "crypto";
|
|
135101
135113
|
init_logger2();
|
|
135102
|
-
import { z as
|
|
135114
|
+
import { z as z57 } from "zod";
|
|
135103
135115
|
|
|
135104
135116
|
// packages/team-core/src/team-mailbox/send.ts
|
|
135105
135117
|
init_paths();
|
|
@@ -135680,18 +135692,18 @@ async function resolveTeamRuntimeDetails(teamRunId, sessionID, config, deps) {
|
|
|
135680
135692
|
|
|
135681
135693
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
135682
135694
|
var MESSAGE_TOOL_KINDS = ["message", "announcement"];
|
|
135683
|
-
var TeamReferenceArgsSchema =
|
|
135684
|
-
path:
|
|
135685
|
-
description:
|
|
135695
|
+
var TeamReferenceArgsSchema = z57.object({
|
|
135696
|
+
path: z57.string().min(1),
|
|
135697
|
+
description: z57.string().optional()
|
|
135686
135698
|
});
|
|
135687
|
-
var TeamSendMessageArgsSchema =
|
|
135688
|
-
teamRunId:
|
|
135689
|
-
to:
|
|
135690
|
-
body:
|
|
135691
|
-
kind:
|
|
135692
|
-
correlationId:
|
|
135693
|
-
summary:
|
|
135694
|
-
references:
|
|
135699
|
+
var TeamSendMessageArgsSchema = z57.object({
|
|
135700
|
+
teamRunId: z57.string().min(1),
|
|
135701
|
+
to: z57.string().min(1),
|
|
135702
|
+
body: z57.string(),
|
|
135703
|
+
kind: z57.enum(MESSAGE_TOOL_KINDS).optional(),
|
|
135704
|
+
correlationId: z57.preprocess((value) => value === "" ? undefined : value, z57.uuid().optional()),
|
|
135705
|
+
summary: z57.string().optional(),
|
|
135706
|
+
references: z57.array(TeamReferenceArgsSchema).optional()
|
|
135695
135707
|
});
|
|
135696
135708
|
function createTeamSendMessageTool(config, client, deps = defaultTeamSendMessageToolDeps) {
|
|
135697
135709
|
return tool({
|
|
@@ -144356,63 +144368,63 @@ function getLiteralValue(schema) {
|
|
|
144356
144368
|
}
|
|
144357
144369
|
|
|
144358
144370
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
144359
|
-
import * as
|
|
144371
|
+
import * as z58 from "zod/v4";
|
|
144360
144372
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
144361
144373
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
144362
144374
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
144363
144375
|
var JSONRPC_VERSION = "2.0";
|
|
144364
|
-
var AssertObjectSchema =
|
|
144365
|
-
var ProgressTokenSchema =
|
|
144366
|
-
var CursorSchema =
|
|
144367
|
-
var TaskCreationParamsSchema =
|
|
144368
|
-
ttl:
|
|
144369
|
-
pollInterval:
|
|
144376
|
+
var AssertObjectSchema = z58.custom((v) => v !== null && (typeof v === "object" || typeof v === "function"));
|
|
144377
|
+
var ProgressTokenSchema = z58.union([z58.string(), z58.number().int()]);
|
|
144378
|
+
var CursorSchema = z58.string();
|
|
144379
|
+
var TaskCreationParamsSchema = z58.looseObject({
|
|
144380
|
+
ttl: z58.number().optional(),
|
|
144381
|
+
pollInterval: z58.number().optional()
|
|
144370
144382
|
});
|
|
144371
|
-
var TaskMetadataSchema =
|
|
144372
|
-
ttl:
|
|
144383
|
+
var TaskMetadataSchema = z58.object({
|
|
144384
|
+
ttl: z58.number().optional()
|
|
144373
144385
|
});
|
|
144374
|
-
var RelatedTaskMetadataSchema =
|
|
144375
|
-
taskId:
|
|
144386
|
+
var RelatedTaskMetadataSchema = z58.object({
|
|
144387
|
+
taskId: z58.string()
|
|
144376
144388
|
});
|
|
144377
|
-
var RequestMetaSchema =
|
|
144389
|
+
var RequestMetaSchema = z58.looseObject({
|
|
144378
144390
|
progressToken: ProgressTokenSchema.optional(),
|
|
144379
144391
|
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
|
144380
144392
|
});
|
|
144381
|
-
var BaseRequestParamsSchema =
|
|
144393
|
+
var BaseRequestParamsSchema = z58.object({
|
|
144382
144394
|
_meta: RequestMetaSchema.optional()
|
|
144383
144395
|
});
|
|
144384
144396
|
var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144385
144397
|
task: TaskMetadataSchema.optional()
|
|
144386
144398
|
});
|
|
144387
144399
|
var isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success;
|
|
144388
|
-
var RequestSchema =
|
|
144389
|
-
method:
|
|
144400
|
+
var RequestSchema = z58.object({
|
|
144401
|
+
method: z58.string(),
|
|
144390
144402
|
params: BaseRequestParamsSchema.loose().optional()
|
|
144391
144403
|
});
|
|
144392
|
-
var NotificationsParamsSchema =
|
|
144404
|
+
var NotificationsParamsSchema = z58.object({
|
|
144393
144405
|
_meta: RequestMetaSchema.optional()
|
|
144394
144406
|
});
|
|
144395
|
-
var NotificationSchema =
|
|
144396
|
-
method:
|
|
144407
|
+
var NotificationSchema = z58.object({
|
|
144408
|
+
method: z58.string(),
|
|
144397
144409
|
params: NotificationsParamsSchema.loose().optional()
|
|
144398
144410
|
});
|
|
144399
|
-
var ResultSchema =
|
|
144411
|
+
var ResultSchema = z58.looseObject({
|
|
144400
144412
|
_meta: RequestMetaSchema.optional()
|
|
144401
144413
|
});
|
|
144402
|
-
var RequestIdSchema =
|
|
144403
|
-
var JSONRPCRequestSchema =
|
|
144404
|
-
jsonrpc:
|
|
144414
|
+
var RequestIdSchema = z58.union([z58.string(), z58.number().int()]);
|
|
144415
|
+
var JSONRPCRequestSchema = z58.object({
|
|
144416
|
+
jsonrpc: z58.literal(JSONRPC_VERSION),
|
|
144405
144417
|
id: RequestIdSchema,
|
|
144406
144418
|
...RequestSchema.shape
|
|
144407
144419
|
}).strict();
|
|
144408
144420
|
var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
|
144409
|
-
var JSONRPCNotificationSchema =
|
|
144410
|
-
jsonrpc:
|
|
144421
|
+
var JSONRPCNotificationSchema = z58.object({
|
|
144422
|
+
jsonrpc: z58.literal(JSONRPC_VERSION),
|
|
144411
144423
|
...NotificationSchema.shape
|
|
144412
144424
|
}).strict();
|
|
144413
144425
|
var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
|
144414
|
-
var JSONRPCResultResponseSchema =
|
|
144415
|
-
jsonrpc:
|
|
144426
|
+
var JSONRPCResultResponseSchema = z58.object({
|
|
144427
|
+
jsonrpc: z58.literal(JSONRPC_VERSION),
|
|
144416
144428
|
id: RequestIdSchema,
|
|
144417
144429
|
result: ResultSchema
|
|
144418
144430
|
}).strict();
|
|
@@ -144428,153 +144440,153 @@ var ErrorCode;
|
|
|
144428
144440
|
ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError";
|
|
144429
144441
|
ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
|
|
144430
144442
|
})(ErrorCode || (ErrorCode = {}));
|
|
144431
|
-
var JSONRPCErrorResponseSchema =
|
|
144432
|
-
jsonrpc:
|
|
144443
|
+
var JSONRPCErrorResponseSchema = z58.object({
|
|
144444
|
+
jsonrpc: z58.literal(JSONRPC_VERSION),
|
|
144433
144445
|
id: RequestIdSchema.optional(),
|
|
144434
|
-
error:
|
|
144435
|
-
code:
|
|
144436
|
-
message:
|
|
144437
|
-
data:
|
|
144446
|
+
error: z58.object({
|
|
144447
|
+
code: z58.number().int(),
|
|
144448
|
+
message: z58.string(),
|
|
144449
|
+
data: z58.unknown().optional()
|
|
144438
144450
|
})
|
|
144439
144451
|
}).strict();
|
|
144440
144452
|
var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
|
|
144441
|
-
var JSONRPCMessageSchema =
|
|
144453
|
+
var JSONRPCMessageSchema = z58.union([
|
|
144442
144454
|
JSONRPCRequestSchema,
|
|
144443
144455
|
JSONRPCNotificationSchema,
|
|
144444
144456
|
JSONRPCResultResponseSchema,
|
|
144445
144457
|
JSONRPCErrorResponseSchema
|
|
144446
144458
|
]);
|
|
144447
|
-
var JSONRPCResponseSchema =
|
|
144459
|
+
var JSONRPCResponseSchema = z58.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
|
144448
144460
|
var EmptyResultSchema = ResultSchema.strict();
|
|
144449
144461
|
var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
144450
144462
|
requestId: RequestIdSchema.optional(),
|
|
144451
|
-
reason:
|
|
144463
|
+
reason: z58.string().optional()
|
|
144452
144464
|
});
|
|
144453
144465
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
144454
|
-
method:
|
|
144466
|
+
method: z58.literal("notifications/cancelled"),
|
|
144455
144467
|
params: CancelledNotificationParamsSchema
|
|
144456
144468
|
});
|
|
144457
|
-
var IconSchema =
|
|
144458
|
-
src:
|
|
144459
|
-
mimeType:
|
|
144460
|
-
sizes:
|
|
144461
|
-
theme:
|
|
144469
|
+
var IconSchema = z58.object({
|
|
144470
|
+
src: z58.string(),
|
|
144471
|
+
mimeType: z58.string().optional(),
|
|
144472
|
+
sizes: z58.array(z58.string()).optional(),
|
|
144473
|
+
theme: z58.enum(["light", "dark"]).optional()
|
|
144462
144474
|
});
|
|
144463
|
-
var IconsSchema =
|
|
144464
|
-
icons:
|
|
144475
|
+
var IconsSchema = z58.object({
|
|
144476
|
+
icons: z58.array(IconSchema).optional()
|
|
144465
144477
|
});
|
|
144466
|
-
var BaseMetadataSchema =
|
|
144467
|
-
name:
|
|
144468
|
-
title:
|
|
144478
|
+
var BaseMetadataSchema = z58.object({
|
|
144479
|
+
name: z58.string(),
|
|
144480
|
+
title: z58.string().optional()
|
|
144469
144481
|
});
|
|
144470
144482
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
144471
144483
|
...BaseMetadataSchema.shape,
|
|
144472
144484
|
...IconsSchema.shape,
|
|
144473
|
-
version:
|
|
144474
|
-
websiteUrl:
|
|
144475
|
-
description:
|
|
144485
|
+
version: z58.string(),
|
|
144486
|
+
websiteUrl: z58.string().optional(),
|
|
144487
|
+
description: z58.string().optional()
|
|
144476
144488
|
});
|
|
144477
|
-
var FormElicitationCapabilitySchema =
|
|
144478
|
-
applyDefaults:
|
|
144479
|
-
}),
|
|
144480
|
-
var ElicitationCapabilitySchema =
|
|
144489
|
+
var FormElicitationCapabilitySchema = z58.intersection(z58.object({
|
|
144490
|
+
applyDefaults: z58.boolean().optional()
|
|
144491
|
+
}), z58.record(z58.string(), z58.unknown()));
|
|
144492
|
+
var ElicitationCapabilitySchema = z58.preprocess((value) => {
|
|
144481
144493
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
144482
144494
|
if (Object.keys(value).length === 0) {
|
|
144483
144495
|
return { form: {} };
|
|
144484
144496
|
}
|
|
144485
144497
|
}
|
|
144486
144498
|
return value;
|
|
144487
|
-
},
|
|
144499
|
+
}, z58.intersection(z58.object({
|
|
144488
144500
|
form: FormElicitationCapabilitySchema.optional(),
|
|
144489
144501
|
url: AssertObjectSchema.optional()
|
|
144490
|
-
}),
|
|
144491
|
-
var ClientTasksCapabilitySchema =
|
|
144502
|
+
}), z58.record(z58.string(), z58.unknown()).optional()));
|
|
144503
|
+
var ClientTasksCapabilitySchema = z58.looseObject({
|
|
144492
144504
|
list: AssertObjectSchema.optional(),
|
|
144493
144505
|
cancel: AssertObjectSchema.optional(),
|
|
144494
|
-
requests:
|
|
144495
|
-
sampling:
|
|
144506
|
+
requests: z58.looseObject({
|
|
144507
|
+
sampling: z58.looseObject({
|
|
144496
144508
|
createMessage: AssertObjectSchema.optional()
|
|
144497
144509
|
}).optional(),
|
|
144498
|
-
elicitation:
|
|
144510
|
+
elicitation: z58.looseObject({
|
|
144499
144511
|
create: AssertObjectSchema.optional()
|
|
144500
144512
|
}).optional()
|
|
144501
144513
|
}).optional()
|
|
144502
144514
|
});
|
|
144503
|
-
var ServerTasksCapabilitySchema =
|
|
144515
|
+
var ServerTasksCapabilitySchema = z58.looseObject({
|
|
144504
144516
|
list: AssertObjectSchema.optional(),
|
|
144505
144517
|
cancel: AssertObjectSchema.optional(),
|
|
144506
|
-
requests:
|
|
144507
|
-
tools:
|
|
144518
|
+
requests: z58.looseObject({
|
|
144519
|
+
tools: z58.looseObject({
|
|
144508
144520
|
call: AssertObjectSchema.optional()
|
|
144509
144521
|
}).optional()
|
|
144510
144522
|
}).optional()
|
|
144511
144523
|
});
|
|
144512
|
-
var ClientCapabilitiesSchema =
|
|
144513
|
-
experimental:
|
|
144514
|
-
sampling:
|
|
144524
|
+
var ClientCapabilitiesSchema = z58.object({
|
|
144525
|
+
experimental: z58.record(z58.string(), AssertObjectSchema).optional(),
|
|
144526
|
+
sampling: z58.object({
|
|
144515
144527
|
context: AssertObjectSchema.optional(),
|
|
144516
144528
|
tools: AssertObjectSchema.optional()
|
|
144517
144529
|
}).optional(),
|
|
144518
144530
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
144519
|
-
roots:
|
|
144520
|
-
listChanged:
|
|
144531
|
+
roots: z58.object({
|
|
144532
|
+
listChanged: z58.boolean().optional()
|
|
144521
144533
|
}).optional(),
|
|
144522
144534
|
tasks: ClientTasksCapabilitySchema.optional(),
|
|
144523
|
-
extensions:
|
|
144535
|
+
extensions: z58.record(z58.string(), AssertObjectSchema).optional()
|
|
144524
144536
|
});
|
|
144525
144537
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144526
|
-
protocolVersion:
|
|
144538
|
+
protocolVersion: z58.string(),
|
|
144527
144539
|
capabilities: ClientCapabilitiesSchema,
|
|
144528
144540
|
clientInfo: ImplementationSchema
|
|
144529
144541
|
});
|
|
144530
144542
|
var InitializeRequestSchema = RequestSchema.extend({
|
|
144531
|
-
method:
|
|
144543
|
+
method: z58.literal("initialize"),
|
|
144532
144544
|
params: InitializeRequestParamsSchema
|
|
144533
144545
|
});
|
|
144534
|
-
var ServerCapabilitiesSchema =
|
|
144535
|
-
experimental:
|
|
144546
|
+
var ServerCapabilitiesSchema = z58.object({
|
|
144547
|
+
experimental: z58.record(z58.string(), AssertObjectSchema).optional(),
|
|
144536
144548
|
logging: AssertObjectSchema.optional(),
|
|
144537
144549
|
completions: AssertObjectSchema.optional(),
|
|
144538
|
-
prompts:
|
|
144539
|
-
listChanged:
|
|
144550
|
+
prompts: z58.object({
|
|
144551
|
+
listChanged: z58.boolean().optional()
|
|
144540
144552
|
}).optional(),
|
|
144541
|
-
resources:
|
|
144542
|
-
subscribe:
|
|
144543
|
-
listChanged:
|
|
144553
|
+
resources: z58.object({
|
|
144554
|
+
subscribe: z58.boolean().optional(),
|
|
144555
|
+
listChanged: z58.boolean().optional()
|
|
144544
144556
|
}).optional(),
|
|
144545
|
-
tools:
|
|
144546
|
-
listChanged:
|
|
144557
|
+
tools: z58.object({
|
|
144558
|
+
listChanged: z58.boolean().optional()
|
|
144547
144559
|
}).optional(),
|
|
144548
144560
|
tasks: ServerTasksCapabilitySchema.optional(),
|
|
144549
|
-
extensions:
|
|
144561
|
+
extensions: z58.record(z58.string(), AssertObjectSchema).optional()
|
|
144550
144562
|
});
|
|
144551
144563
|
var InitializeResultSchema = ResultSchema.extend({
|
|
144552
|
-
protocolVersion:
|
|
144564
|
+
protocolVersion: z58.string(),
|
|
144553
144565
|
capabilities: ServerCapabilitiesSchema,
|
|
144554
144566
|
serverInfo: ImplementationSchema,
|
|
144555
|
-
instructions:
|
|
144567
|
+
instructions: z58.string().optional()
|
|
144556
144568
|
});
|
|
144557
144569
|
var InitializedNotificationSchema = NotificationSchema.extend({
|
|
144558
|
-
method:
|
|
144570
|
+
method: z58.literal("notifications/initialized"),
|
|
144559
144571
|
params: NotificationsParamsSchema.optional()
|
|
144560
144572
|
});
|
|
144561
144573
|
var isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success;
|
|
144562
144574
|
var PingRequestSchema = RequestSchema.extend({
|
|
144563
|
-
method:
|
|
144575
|
+
method: z58.literal("ping"),
|
|
144564
144576
|
params: BaseRequestParamsSchema.optional()
|
|
144565
144577
|
});
|
|
144566
|
-
var ProgressSchema =
|
|
144567
|
-
progress:
|
|
144568
|
-
total:
|
|
144569
|
-
message:
|
|
144578
|
+
var ProgressSchema = z58.object({
|
|
144579
|
+
progress: z58.number(),
|
|
144580
|
+
total: z58.optional(z58.number()),
|
|
144581
|
+
message: z58.optional(z58.string())
|
|
144570
144582
|
});
|
|
144571
|
-
var ProgressNotificationParamsSchema =
|
|
144583
|
+
var ProgressNotificationParamsSchema = z58.object({
|
|
144572
144584
|
...NotificationsParamsSchema.shape,
|
|
144573
144585
|
...ProgressSchema.shape,
|
|
144574
144586
|
progressToken: ProgressTokenSchema
|
|
144575
144587
|
});
|
|
144576
144588
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
144577
|
-
method:
|
|
144589
|
+
method: z58.literal("notifications/progress"),
|
|
144578
144590
|
params: ProgressNotificationParamsSchema
|
|
144579
144591
|
});
|
|
144580
144592
|
var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
@@ -144586,60 +144598,60 @@ var PaginatedRequestSchema = RequestSchema.extend({
|
|
|
144586
144598
|
var PaginatedResultSchema = ResultSchema.extend({
|
|
144587
144599
|
nextCursor: CursorSchema.optional()
|
|
144588
144600
|
});
|
|
144589
|
-
var TaskStatusSchema2 =
|
|
144590
|
-
var TaskSchema2 =
|
|
144591
|
-
taskId:
|
|
144601
|
+
var TaskStatusSchema2 = z58.enum(["working", "input_required", "completed", "failed", "cancelled"]);
|
|
144602
|
+
var TaskSchema2 = z58.object({
|
|
144603
|
+
taskId: z58.string(),
|
|
144592
144604
|
status: TaskStatusSchema2,
|
|
144593
|
-
ttl:
|
|
144594
|
-
createdAt:
|
|
144595
|
-
lastUpdatedAt:
|
|
144596
|
-
pollInterval:
|
|
144597
|
-
statusMessage:
|
|
144605
|
+
ttl: z58.union([z58.number(), z58.null()]),
|
|
144606
|
+
createdAt: z58.string(),
|
|
144607
|
+
lastUpdatedAt: z58.string(),
|
|
144608
|
+
pollInterval: z58.optional(z58.number()),
|
|
144609
|
+
statusMessage: z58.optional(z58.string())
|
|
144598
144610
|
});
|
|
144599
144611
|
var CreateTaskResultSchema = ResultSchema.extend({
|
|
144600
144612
|
task: TaskSchema2
|
|
144601
144613
|
});
|
|
144602
144614
|
var TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema2);
|
|
144603
144615
|
var TaskStatusNotificationSchema = NotificationSchema.extend({
|
|
144604
|
-
method:
|
|
144616
|
+
method: z58.literal("notifications/tasks/status"),
|
|
144605
144617
|
params: TaskStatusNotificationParamsSchema
|
|
144606
144618
|
});
|
|
144607
144619
|
var GetTaskRequestSchema = RequestSchema.extend({
|
|
144608
|
-
method:
|
|
144620
|
+
method: z58.literal("tasks/get"),
|
|
144609
144621
|
params: BaseRequestParamsSchema.extend({
|
|
144610
|
-
taskId:
|
|
144622
|
+
taskId: z58.string()
|
|
144611
144623
|
})
|
|
144612
144624
|
});
|
|
144613
144625
|
var GetTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
144614
144626
|
var GetTaskPayloadRequestSchema = RequestSchema.extend({
|
|
144615
|
-
method:
|
|
144627
|
+
method: z58.literal("tasks/result"),
|
|
144616
144628
|
params: BaseRequestParamsSchema.extend({
|
|
144617
|
-
taskId:
|
|
144629
|
+
taskId: z58.string()
|
|
144618
144630
|
})
|
|
144619
144631
|
});
|
|
144620
144632
|
var GetTaskPayloadResultSchema = ResultSchema.loose();
|
|
144621
144633
|
var ListTasksRequestSchema = PaginatedRequestSchema.extend({
|
|
144622
|
-
method:
|
|
144634
|
+
method: z58.literal("tasks/list")
|
|
144623
144635
|
});
|
|
144624
144636
|
var ListTasksResultSchema = PaginatedResultSchema.extend({
|
|
144625
|
-
tasks:
|
|
144637
|
+
tasks: z58.array(TaskSchema2)
|
|
144626
144638
|
});
|
|
144627
144639
|
var CancelTaskRequestSchema = RequestSchema.extend({
|
|
144628
|
-
method:
|
|
144640
|
+
method: z58.literal("tasks/cancel"),
|
|
144629
144641
|
params: BaseRequestParamsSchema.extend({
|
|
144630
|
-
taskId:
|
|
144642
|
+
taskId: z58.string()
|
|
144631
144643
|
})
|
|
144632
144644
|
});
|
|
144633
144645
|
var CancelTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
144634
|
-
var ResourceContentsSchema =
|
|
144635
|
-
uri:
|
|
144636
|
-
mimeType:
|
|
144637
|
-
_meta:
|
|
144646
|
+
var ResourceContentsSchema = z58.object({
|
|
144647
|
+
uri: z58.string(),
|
|
144648
|
+
mimeType: z58.optional(z58.string()),
|
|
144649
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144638
144650
|
});
|
|
144639
144651
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
144640
|
-
text:
|
|
144652
|
+
text: z58.string()
|
|
144641
144653
|
});
|
|
144642
|
-
var Base64Schema =
|
|
144654
|
+
var Base64Schema = z58.string().refine((val) => {
|
|
144643
144655
|
try {
|
|
144644
144656
|
atob(val);
|
|
144645
144657
|
return true;
|
|
@@ -144650,447 +144662,447 @@ var Base64Schema = z57.string().refine((val) => {
|
|
|
144650
144662
|
var BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
144651
144663
|
blob: Base64Schema
|
|
144652
144664
|
});
|
|
144653
|
-
var RoleSchema =
|
|
144654
|
-
var AnnotationsSchema =
|
|
144655
|
-
audience:
|
|
144656
|
-
priority:
|
|
144657
|
-
lastModified:
|
|
144665
|
+
var RoleSchema = z58.enum(["user", "assistant"]);
|
|
144666
|
+
var AnnotationsSchema = z58.object({
|
|
144667
|
+
audience: z58.array(RoleSchema).optional(),
|
|
144668
|
+
priority: z58.number().min(0).max(1).optional(),
|
|
144669
|
+
lastModified: z58.iso.datetime({ offset: true }).optional()
|
|
144658
144670
|
});
|
|
144659
|
-
var ResourceSchema =
|
|
144671
|
+
var ResourceSchema = z58.object({
|
|
144660
144672
|
...BaseMetadataSchema.shape,
|
|
144661
144673
|
...IconsSchema.shape,
|
|
144662
|
-
uri:
|
|
144663
|
-
description:
|
|
144664
|
-
mimeType:
|
|
144665
|
-
size:
|
|
144674
|
+
uri: z58.string(),
|
|
144675
|
+
description: z58.optional(z58.string()),
|
|
144676
|
+
mimeType: z58.optional(z58.string()),
|
|
144677
|
+
size: z58.optional(z58.number()),
|
|
144666
144678
|
annotations: AnnotationsSchema.optional(),
|
|
144667
|
-
_meta:
|
|
144679
|
+
_meta: z58.optional(z58.looseObject({}))
|
|
144668
144680
|
});
|
|
144669
|
-
var ResourceTemplateSchema =
|
|
144681
|
+
var ResourceTemplateSchema = z58.object({
|
|
144670
144682
|
...BaseMetadataSchema.shape,
|
|
144671
144683
|
...IconsSchema.shape,
|
|
144672
|
-
uriTemplate:
|
|
144673
|
-
description:
|
|
144674
|
-
mimeType:
|
|
144684
|
+
uriTemplate: z58.string(),
|
|
144685
|
+
description: z58.optional(z58.string()),
|
|
144686
|
+
mimeType: z58.optional(z58.string()),
|
|
144675
144687
|
annotations: AnnotationsSchema.optional(),
|
|
144676
|
-
_meta:
|
|
144688
|
+
_meta: z58.optional(z58.looseObject({}))
|
|
144677
144689
|
});
|
|
144678
144690
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
144679
|
-
method:
|
|
144691
|
+
method: z58.literal("resources/list")
|
|
144680
144692
|
});
|
|
144681
144693
|
var ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
144682
|
-
resources:
|
|
144694
|
+
resources: z58.array(ResourceSchema)
|
|
144683
144695
|
});
|
|
144684
144696
|
var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
144685
|
-
method:
|
|
144697
|
+
method: z58.literal("resources/templates/list")
|
|
144686
144698
|
});
|
|
144687
144699
|
var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
144688
|
-
resourceTemplates:
|
|
144700
|
+
resourceTemplates: z58.array(ResourceTemplateSchema)
|
|
144689
144701
|
});
|
|
144690
144702
|
var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144691
|
-
uri:
|
|
144703
|
+
uri: z58.string()
|
|
144692
144704
|
});
|
|
144693
144705
|
var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
|
144694
144706
|
var ReadResourceRequestSchema = RequestSchema.extend({
|
|
144695
|
-
method:
|
|
144707
|
+
method: z58.literal("resources/read"),
|
|
144696
144708
|
params: ReadResourceRequestParamsSchema
|
|
144697
144709
|
});
|
|
144698
144710
|
var ReadResourceResultSchema = ResultSchema.extend({
|
|
144699
|
-
contents:
|
|
144711
|
+
contents: z58.array(z58.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
144700
144712
|
});
|
|
144701
144713
|
var ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
144702
|
-
method:
|
|
144714
|
+
method: z58.literal("notifications/resources/list_changed"),
|
|
144703
144715
|
params: NotificationsParamsSchema.optional()
|
|
144704
144716
|
});
|
|
144705
144717
|
var SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
144706
144718
|
var SubscribeRequestSchema = RequestSchema.extend({
|
|
144707
|
-
method:
|
|
144719
|
+
method: z58.literal("resources/subscribe"),
|
|
144708
144720
|
params: SubscribeRequestParamsSchema
|
|
144709
144721
|
});
|
|
144710
144722
|
var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
144711
144723
|
var UnsubscribeRequestSchema = RequestSchema.extend({
|
|
144712
|
-
method:
|
|
144724
|
+
method: z58.literal("resources/unsubscribe"),
|
|
144713
144725
|
params: UnsubscribeRequestParamsSchema
|
|
144714
144726
|
});
|
|
144715
144727
|
var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
144716
|
-
uri:
|
|
144728
|
+
uri: z58.string()
|
|
144717
144729
|
});
|
|
144718
144730
|
var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
144719
|
-
method:
|
|
144731
|
+
method: z58.literal("notifications/resources/updated"),
|
|
144720
144732
|
params: ResourceUpdatedNotificationParamsSchema
|
|
144721
144733
|
});
|
|
144722
|
-
var PromptArgumentSchema =
|
|
144723
|
-
name:
|
|
144724
|
-
description:
|
|
144725
|
-
required:
|
|
144734
|
+
var PromptArgumentSchema = z58.object({
|
|
144735
|
+
name: z58.string(),
|
|
144736
|
+
description: z58.optional(z58.string()),
|
|
144737
|
+
required: z58.optional(z58.boolean())
|
|
144726
144738
|
});
|
|
144727
|
-
var PromptSchema =
|
|
144739
|
+
var PromptSchema = z58.object({
|
|
144728
144740
|
...BaseMetadataSchema.shape,
|
|
144729
144741
|
...IconsSchema.shape,
|
|
144730
|
-
description:
|
|
144731
|
-
arguments:
|
|
144732
|
-
_meta:
|
|
144742
|
+
description: z58.optional(z58.string()),
|
|
144743
|
+
arguments: z58.optional(z58.array(PromptArgumentSchema)),
|
|
144744
|
+
_meta: z58.optional(z58.looseObject({}))
|
|
144733
144745
|
});
|
|
144734
144746
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
144735
|
-
method:
|
|
144747
|
+
method: z58.literal("prompts/list")
|
|
144736
144748
|
});
|
|
144737
144749
|
var ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
144738
|
-
prompts:
|
|
144750
|
+
prompts: z58.array(PromptSchema)
|
|
144739
144751
|
});
|
|
144740
144752
|
var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144741
|
-
name:
|
|
144742
|
-
arguments:
|
|
144753
|
+
name: z58.string(),
|
|
144754
|
+
arguments: z58.record(z58.string(), z58.string()).optional()
|
|
144743
144755
|
});
|
|
144744
144756
|
var GetPromptRequestSchema = RequestSchema.extend({
|
|
144745
|
-
method:
|
|
144757
|
+
method: z58.literal("prompts/get"),
|
|
144746
144758
|
params: GetPromptRequestParamsSchema
|
|
144747
144759
|
});
|
|
144748
|
-
var TextContentSchema =
|
|
144749
|
-
type:
|
|
144750
|
-
text:
|
|
144760
|
+
var TextContentSchema = z58.object({
|
|
144761
|
+
type: z58.literal("text"),
|
|
144762
|
+
text: z58.string(),
|
|
144751
144763
|
annotations: AnnotationsSchema.optional(),
|
|
144752
|
-
_meta:
|
|
144764
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144753
144765
|
});
|
|
144754
|
-
var ImageContentSchema =
|
|
144755
|
-
type:
|
|
144766
|
+
var ImageContentSchema = z58.object({
|
|
144767
|
+
type: z58.literal("image"),
|
|
144756
144768
|
data: Base64Schema,
|
|
144757
|
-
mimeType:
|
|
144769
|
+
mimeType: z58.string(),
|
|
144758
144770
|
annotations: AnnotationsSchema.optional(),
|
|
144759
|
-
_meta:
|
|
144771
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144760
144772
|
});
|
|
144761
|
-
var AudioContentSchema =
|
|
144762
|
-
type:
|
|
144773
|
+
var AudioContentSchema = z58.object({
|
|
144774
|
+
type: z58.literal("audio"),
|
|
144763
144775
|
data: Base64Schema,
|
|
144764
|
-
mimeType:
|
|
144776
|
+
mimeType: z58.string(),
|
|
144765
144777
|
annotations: AnnotationsSchema.optional(),
|
|
144766
|
-
_meta:
|
|
144778
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144767
144779
|
});
|
|
144768
|
-
var ToolUseContentSchema =
|
|
144769
|
-
type:
|
|
144770
|
-
name:
|
|
144771
|
-
id:
|
|
144772
|
-
input:
|
|
144773
|
-
_meta:
|
|
144780
|
+
var ToolUseContentSchema = z58.object({
|
|
144781
|
+
type: z58.literal("tool_use"),
|
|
144782
|
+
name: z58.string(),
|
|
144783
|
+
id: z58.string(),
|
|
144784
|
+
input: z58.record(z58.string(), z58.unknown()),
|
|
144785
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144774
144786
|
});
|
|
144775
|
-
var EmbeddedResourceSchema =
|
|
144776
|
-
type:
|
|
144777
|
-
resource:
|
|
144787
|
+
var EmbeddedResourceSchema = z58.object({
|
|
144788
|
+
type: z58.literal("resource"),
|
|
144789
|
+
resource: z58.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
144778
144790
|
annotations: AnnotationsSchema.optional(),
|
|
144779
|
-
_meta:
|
|
144791
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144780
144792
|
});
|
|
144781
144793
|
var ResourceLinkSchema = ResourceSchema.extend({
|
|
144782
|
-
type:
|
|
144794
|
+
type: z58.literal("resource_link")
|
|
144783
144795
|
});
|
|
144784
|
-
var ContentBlockSchema =
|
|
144796
|
+
var ContentBlockSchema = z58.union([
|
|
144785
144797
|
TextContentSchema,
|
|
144786
144798
|
ImageContentSchema,
|
|
144787
144799
|
AudioContentSchema,
|
|
144788
144800
|
ResourceLinkSchema,
|
|
144789
144801
|
EmbeddedResourceSchema
|
|
144790
144802
|
]);
|
|
144791
|
-
var PromptMessageSchema =
|
|
144803
|
+
var PromptMessageSchema = z58.object({
|
|
144792
144804
|
role: RoleSchema,
|
|
144793
144805
|
content: ContentBlockSchema
|
|
144794
144806
|
});
|
|
144795
144807
|
var GetPromptResultSchema = ResultSchema.extend({
|
|
144796
|
-
description:
|
|
144797
|
-
messages:
|
|
144808
|
+
description: z58.string().optional(),
|
|
144809
|
+
messages: z58.array(PromptMessageSchema)
|
|
144798
144810
|
});
|
|
144799
144811
|
var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
144800
|
-
method:
|
|
144812
|
+
method: z58.literal("notifications/prompts/list_changed"),
|
|
144801
144813
|
params: NotificationsParamsSchema.optional()
|
|
144802
144814
|
});
|
|
144803
|
-
var ToolAnnotationsSchema =
|
|
144804
|
-
title:
|
|
144805
|
-
readOnlyHint:
|
|
144806
|
-
destructiveHint:
|
|
144807
|
-
idempotentHint:
|
|
144808
|
-
openWorldHint:
|
|
144815
|
+
var ToolAnnotationsSchema = z58.object({
|
|
144816
|
+
title: z58.string().optional(),
|
|
144817
|
+
readOnlyHint: z58.boolean().optional(),
|
|
144818
|
+
destructiveHint: z58.boolean().optional(),
|
|
144819
|
+
idempotentHint: z58.boolean().optional(),
|
|
144820
|
+
openWorldHint: z58.boolean().optional()
|
|
144809
144821
|
});
|
|
144810
|
-
var ToolExecutionSchema =
|
|
144811
|
-
taskSupport:
|
|
144822
|
+
var ToolExecutionSchema = z58.object({
|
|
144823
|
+
taskSupport: z58.enum(["required", "optional", "forbidden"]).optional()
|
|
144812
144824
|
});
|
|
144813
|
-
var ToolSchema =
|
|
144825
|
+
var ToolSchema = z58.object({
|
|
144814
144826
|
...BaseMetadataSchema.shape,
|
|
144815
144827
|
...IconsSchema.shape,
|
|
144816
|
-
description:
|
|
144817
|
-
inputSchema:
|
|
144818
|
-
type:
|
|
144819
|
-
properties:
|
|
144820
|
-
required:
|
|
144821
|
-
}).catchall(
|
|
144822
|
-
outputSchema:
|
|
144823
|
-
type:
|
|
144824
|
-
properties:
|
|
144825
|
-
required:
|
|
144826
|
-
}).catchall(
|
|
144828
|
+
description: z58.string().optional(),
|
|
144829
|
+
inputSchema: z58.object({
|
|
144830
|
+
type: z58.literal("object"),
|
|
144831
|
+
properties: z58.record(z58.string(), AssertObjectSchema).optional(),
|
|
144832
|
+
required: z58.array(z58.string()).optional()
|
|
144833
|
+
}).catchall(z58.unknown()),
|
|
144834
|
+
outputSchema: z58.object({
|
|
144835
|
+
type: z58.literal("object"),
|
|
144836
|
+
properties: z58.record(z58.string(), AssertObjectSchema).optional(),
|
|
144837
|
+
required: z58.array(z58.string()).optional()
|
|
144838
|
+
}).catchall(z58.unknown()).optional(),
|
|
144827
144839
|
annotations: ToolAnnotationsSchema.optional(),
|
|
144828
144840
|
execution: ToolExecutionSchema.optional(),
|
|
144829
|
-
_meta:
|
|
144841
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144830
144842
|
});
|
|
144831
144843
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
144832
|
-
method:
|
|
144844
|
+
method: z58.literal("tools/list")
|
|
144833
144845
|
});
|
|
144834
144846
|
var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
144835
|
-
tools:
|
|
144847
|
+
tools: z58.array(ToolSchema)
|
|
144836
144848
|
});
|
|
144837
144849
|
var CallToolResultSchema = ResultSchema.extend({
|
|
144838
|
-
content:
|
|
144839
|
-
structuredContent:
|
|
144840
|
-
isError:
|
|
144850
|
+
content: z58.array(ContentBlockSchema).default([]),
|
|
144851
|
+
structuredContent: z58.record(z58.string(), z58.unknown()).optional(),
|
|
144852
|
+
isError: z58.boolean().optional()
|
|
144841
144853
|
});
|
|
144842
144854
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
144843
|
-
toolResult:
|
|
144855
|
+
toolResult: z58.unknown()
|
|
144844
144856
|
}));
|
|
144845
144857
|
var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
144846
|
-
name:
|
|
144847
|
-
arguments:
|
|
144858
|
+
name: z58.string(),
|
|
144859
|
+
arguments: z58.record(z58.string(), z58.unknown()).optional()
|
|
144848
144860
|
});
|
|
144849
144861
|
var CallToolRequestSchema = RequestSchema.extend({
|
|
144850
|
-
method:
|
|
144862
|
+
method: z58.literal("tools/call"),
|
|
144851
144863
|
params: CallToolRequestParamsSchema
|
|
144852
144864
|
});
|
|
144853
144865
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
144854
|
-
method:
|
|
144866
|
+
method: z58.literal("notifications/tools/list_changed"),
|
|
144855
144867
|
params: NotificationsParamsSchema.optional()
|
|
144856
144868
|
});
|
|
144857
|
-
var ListChangedOptionsBaseSchema =
|
|
144858
|
-
autoRefresh:
|
|
144859
|
-
debounceMs:
|
|
144869
|
+
var ListChangedOptionsBaseSchema = z58.object({
|
|
144870
|
+
autoRefresh: z58.boolean().default(true),
|
|
144871
|
+
debounceMs: z58.number().int().nonnegative().default(300)
|
|
144860
144872
|
});
|
|
144861
|
-
var LoggingLevelSchema =
|
|
144873
|
+
var LoggingLevelSchema = z58.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
144862
144874
|
var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144863
144875
|
level: LoggingLevelSchema
|
|
144864
144876
|
});
|
|
144865
144877
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
144866
|
-
method:
|
|
144878
|
+
method: z58.literal("logging/setLevel"),
|
|
144867
144879
|
params: SetLevelRequestParamsSchema
|
|
144868
144880
|
});
|
|
144869
144881
|
var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
144870
144882
|
level: LoggingLevelSchema,
|
|
144871
|
-
logger:
|
|
144872
|
-
data:
|
|
144883
|
+
logger: z58.string().optional(),
|
|
144884
|
+
data: z58.unknown()
|
|
144873
144885
|
});
|
|
144874
144886
|
var LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
144875
|
-
method:
|
|
144887
|
+
method: z58.literal("notifications/message"),
|
|
144876
144888
|
params: LoggingMessageNotificationParamsSchema
|
|
144877
144889
|
});
|
|
144878
|
-
var ModelHintSchema =
|
|
144879
|
-
name:
|
|
144890
|
+
var ModelHintSchema = z58.object({
|
|
144891
|
+
name: z58.string().optional()
|
|
144880
144892
|
});
|
|
144881
|
-
var ModelPreferencesSchema =
|
|
144882
|
-
hints:
|
|
144883
|
-
costPriority:
|
|
144884
|
-
speedPriority:
|
|
144885
|
-
intelligencePriority:
|
|
144893
|
+
var ModelPreferencesSchema = z58.object({
|
|
144894
|
+
hints: z58.array(ModelHintSchema).optional(),
|
|
144895
|
+
costPriority: z58.number().min(0).max(1).optional(),
|
|
144896
|
+
speedPriority: z58.number().min(0).max(1).optional(),
|
|
144897
|
+
intelligencePriority: z58.number().min(0).max(1).optional()
|
|
144886
144898
|
});
|
|
144887
|
-
var ToolChoiceSchema =
|
|
144888
|
-
mode:
|
|
144899
|
+
var ToolChoiceSchema = z58.object({
|
|
144900
|
+
mode: z58.enum(["auto", "required", "none"]).optional()
|
|
144889
144901
|
});
|
|
144890
|
-
var ToolResultContentSchema =
|
|
144891
|
-
type:
|
|
144892
|
-
toolUseId:
|
|
144893
|
-
content:
|
|
144894
|
-
structuredContent:
|
|
144895
|
-
isError:
|
|
144896
|
-
_meta:
|
|
144902
|
+
var ToolResultContentSchema = z58.object({
|
|
144903
|
+
type: z58.literal("tool_result"),
|
|
144904
|
+
toolUseId: z58.string().describe("The unique identifier for the corresponding tool call."),
|
|
144905
|
+
content: z58.array(ContentBlockSchema).default([]),
|
|
144906
|
+
structuredContent: z58.object({}).loose().optional(),
|
|
144907
|
+
isError: z58.boolean().optional(),
|
|
144908
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144897
144909
|
});
|
|
144898
|
-
var SamplingContentSchema =
|
|
144899
|
-
var SamplingMessageContentBlockSchema =
|
|
144910
|
+
var SamplingContentSchema = z58.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]);
|
|
144911
|
+
var SamplingMessageContentBlockSchema = z58.discriminatedUnion("type", [
|
|
144900
144912
|
TextContentSchema,
|
|
144901
144913
|
ImageContentSchema,
|
|
144902
144914
|
AudioContentSchema,
|
|
144903
144915
|
ToolUseContentSchema,
|
|
144904
144916
|
ToolResultContentSchema
|
|
144905
144917
|
]);
|
|
144906
|
-
var SamplingMessageSchema =
|
|
144918
|
+
var SamplingMessageSchema = z58.object({
|
|
144907
144919
|
role: RoleSchema,
|
|
144908
|
-
content:
|
|
144909
|
-
_meta:
|
|
144920
|
+
content: z58.union([SamplingMessageContentBlockSchema, z58.array(SamplingMessageContentBlockSchema)]),
|
|
144921
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144910
144922
|
});
|
|
144911
144923
|
var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
144912
|
-
messages:
|
|
144924
|
+
messages: z58.array(SamplingMessageSchema),
|
|
144913
144925
|
modelPreferences: ModelPreferencesSchema.optional(),
|
|
144914
|
-
systemPrompt:
|
|
144915
|
-
includeContext:
|
|
144916
|
-
temperature:
|
|
144917
|
-
maxTokens:
|
|
144918
|
-
stopSequences:
|
|
144926
|
+
systemPrompt: z58.string().optional(),
|
|
144927
|
+
includeContext: z58.enum(["none", "thisServer", "allServers"]).optional(),
|
|
144928
|
+
temperature: z58.number().optional(),
|
|
144929
|
+
maxTokens: z58.number().int(),
|
|
144930
|
+
stopSequences: z58.array(z58.string()).optional(),
|
|
144919
144931
|
metadata: AssertObjectSchema.optional(),
|
|
144920
|
-
tools:
|
|
144932
|
+
tools: z58.array(ToolSchema).optional(),
|
|
144921
144933
|
toolChoice: ToolChoiceSchema.optional()
|
|
144922
144934
|
});
|
|
144923
144935
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
144924
|
-
method:
|
|
144936
|
+
method: z58.literal("sampling/createMessage"),
|
|
144925
144937
|
params: CreateMessageRequestParamsSchema
|
|
144926
144938
|
});
|
|
144927
144939
|
var CreateMessageResultSchema = ResultSchema.extend({
|
|
144928
|
-
model:
|
|
144929
|
-
stopReason:
|
|
144940
|
+
model: z58.string(),
|
|
144941
|
+
stopReason: z58.optional(z58.enum(["endTurn", "stopSequence", "maxTokens"]).or(z58.string())),
|
|
144930
144942
|
role: RoleSchema,
|
|
144931
144943
|
content: SamplingContentSchema
|
|
144932
144944
|
});
|
|
144933
144945
|
var CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
144934
|
-
model:
|
|
144935
|
-
stopReason:
|
|
144946
|
+
model: z58.string(),
|
|
144947
|
+
stopReason: z58.optional(z58.enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(z58.string())),
|
|
144936
144948
|
role: RoleSchema,
|
|
144937
|
-
content:
|
|
144949
|
+
content: z58.union([SamplingMessageContentBlockSchema, z58.array(SamplingMessageContentBlockSchema)])
|
|
144938
144950
|
});
|
|
144939
|
-
var BooleanSchemaSchema =
|
|
144940
|
-
type:
|
|
144941
|
-
title:
|
|
144942
|
-
description:
|
|
144943
|
-
default:
|
|
144951
|
+
var BooleanSchemaSchema = z58.object({
|
|
144952
|
+
type: z58.literal("boolean"),
|
|
144953
|
+
title: z58.string().optional(),
|
|
144954
|
+
description: z58.string().optional(),
|
|
144955
|
+
default: z58.boolean().optional()
|
|
144944
144956
|
});
|
|
144945
|
-
var StringSchemaSchema =
|
|
144946
|
-
type:
|
|
144947
|
-
title:
|
|
144948
|
-
description:
|
|
144949
|
-
minLength:
|
|
144950
|
-
maxLength:
|
|
144951
|
-
format:
|
|
144952
|
-
default:
|
|
144957
|
+
var StringSchemaSchema = z58.object({
|
|
144958
|
+
type: z58.literal("string"),
|
|
144959
|
+
title: z58.string().optional(),
|
|
144960
|
+
description: z58.string().optional(),
|
|
144961
|
+
minLength: z58.number().optional(),
|
|
144962
|
+
maxLength: z58.number().optional(),
|
|
144963
|
+
format: z58.enum(["email", "uri", "date", "date-time"]).optional(),
|
|
144964
|
+
default: z58.string().optional()
|
|
144953
144965
|
});
|
|
144954
|
-
var NumberSchemaSchema =
|
|
144955
|
-
type:
|
|
144956
|
-
title:
|
|
144957
|
-
description:
|
|
144958
|
-
minimum:
|
|
144959
|
-
maximum:
|
|
144960
|
-
default:
|
|
144966
|
+
var NumberSchemaSchema = z58.object({
|
|
144967
|
+
type: z58.enum(["number", "integer"]),
|
|
144968
|
+
title: z58.string().optional(),
|
|
144969
|
+
description: z58.string().optional(),
|
|
144970
|
+
minimum: z58.number().optional(),
|
|
144971
|
+
maximum: z58.number().optional(),
|
|
144972
|
+
default: z58.number().optional()
|
|
144961
144973
|
});
|
|
144962
|
-
var UntitledSingleSelectEnumSchemaSchema =
|
|
144963
|
-
type:
|
|
144964
|
-
title:
|
|
144965
|
-
description:
|
|
144966
|
-
enum:
|
|
144967
|
-
default:
|
|
144974
|
+
var UntitledSingleSelectEnumSchemaSchema = z58.object({
|
|
144975
|
+
type: z58.literal("string"),
|
|
144976
|
+
title: z58.string().optional(),
|
|
144977
|
+
description: z58.string().optional(),
|
|
144978
|
+
enum: z58.array(z58.string()),
|
|
144979
|
+
default: z58.string().optional()
|
|
144968
144980
|
});
|
|
144969
|
-
var TitledSingleSelectEnumSchemaSchema =
|
|
144970
|
-
type:
|
|
144971
|
-
title:
|
|
144972
|
-
description:
|
|
144973
|
-
oneOf:
|
|
144974
|
-
const:
|
|
144975
|
-
title:
|
|
144981
|
+
var TitledSingleSelectEnumSchemaSchema = z58.object({
|
|
144982
|
+
type: z58.literal("string"),
|
|
144983
|
+
title: z58.string().optional(),
|
|
144984
|
+
description: z58.string().optional(),
|
|
144985
|
+
oneOf: z58.array(z58.object({
|
|
144986
|
+
const: z58.string(),
|
|
144987
|
+
title: z58.string()
|
|
144976
144988
|
})),
|
|
144977
|
-
default:
|
|
144989
|
+
default: z58.string().optional()
|
|
144978
144990
|
});
|
|
144979
|
-
var LegacyTitledEnumSchemaSchema =
|
|
144980
|
-
type:
|
|
144981
|
-
title:
|
|
144982
|
-
description:
|
|
144983
|
-
enum:
|
|
144984
|
-
enumNames:
|
|
144985
|
-
default:
|
|
144991
|
+
var LegacyTitledEnumSchemaSchema = z58.object({
|
|
144992
|
+
type: z58.literal("string"),
|
|
144993
|
+
title: z58.string().optional(),
|
|
144994
|
+
description: z58.string().optional(),
|
|
144995
|
+
enum: z58.array(z58.string()),
|
|
144996
|
+
enumNames: z58.array(z58.string()).optional(),
|
|
144997
|
+
default: z58.string().optional()
|
|
144986
144998
|
});
|
|
144987
|
-
var SingleSelectEnumSchemaSchema =
|
|
144988
|
-
var UntitledMultiSelectEnumSchemaSchema =
|
|
144989
|
-
type:
|
|
144990
|
-
title:
|
|
144991
|
-
description:
|
|
144992
|
-
minItems:
|
|
144993
|
-
maxItems:
|
|
144994
|
-
items:
|
|
144995
|
-
type:
|
|
144996
|
-
enum:
|
|
144999
|
+
var SingleSelectEnumSchemaSchema = z58.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
|
|
145000
|
+
var UntitledMultiSelectEnumSchemaSchema = z58.object({
|
|
145001
|
+
type: z58.literal("array"),
|
|
145002
|
+
title: z58.string().optional(),
|
|
145003
|
+
description: z58.string().optional(),
|
|
145004
|
+
minItems: z58.number().optional(),
|
|
145005
|
+
maxItems: z58.number().optional(),
|
|
145006
|
+
items: z58.object({
|
|
145007
|
+
type: z58.literal("string"),
|
|
145008
|
+
enum: z58.array(z58.string())
|
|
144997
145009
|
}),
|
|
144998
|
-
default:
|
|
145010
|
+
default: z58.array(z58.string()).optional()
|
|
144999
145011
|
});
|
|
145000
|
-
var TitledMultiSelectEnumSchemaSchema =
|
|
145001
|
-
type:
|
|
145002
|
-
title:
|
|
145003
|
-
description:
|
|
145004
|
-
minItems:
|
|
145005
|
-
maxItems:
|
|
145006
|
-
items:
|
|
145007
|
-
anyOf:
|
|
145008
|
-
const:
|
|
145009
|
-
title:
|
|
145012
|
+
var TitledMultiSelectEnumSchemaSchema = z58.object({
|
|
145013
|
+
type: z58.literal("array"),
|
|
145014
|
+
title: z58.string().optional(),
|
|
145015
|
+
description: z58.string().optional(),
|
|
145016
|
+
minItems: z58.number().optional(),
|
|
145017
|
+
maxItems: z58.number().optional(),
|
|
145018
|
+
items: z58.object({
|
|
145019
|
+
anyOf: z58.array(z58.object({
|
|
145020
|
+
const: z58.string(),
|
|
145021
|
+
title: z58.string()
|
|
145010
145022
|
}))
|
|
145011
145023
|
}),
|
|
145012
|
-
default:
|
|
145024
|
+
default: z58.array(z58.string()).optional()
|
|
145013
145025
|
});
|
|
145014
|
-
var MultiSelectEnumSchemaSchema =
|
|
145015
|
-
var EnumSchemaSchema =
|
|
145016
|
-
var PrimitiveSchemaDefinitionSchema =
|
|
145026
|
+
var MultiSelectEnumSchemaSchema = z58.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
|
|
145027
|
+
var EnumSchemaSchema = z58.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
|
|
145028
|
+
var PrimitiveSchemaDefinitionSchema = z58.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
|
|
145017
145029
|
var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
145018
|
-
mode:
|
|
145019
|
-
message:
|
|
145020
|
-
requestedSchema:
|
|
145021
|
-
type:
|
|
145022
|
-
properties:
|
|
145023
|
-
required:
|
|
145030
|
+
mode: z58.literal("form").optional(),
|
|
145031
|
+
message: z58.string(),
|
|
145032
|
+
requestedSchema: z58.object({
|
|
145033
|
+
type: z58.literal("object"),
|
|
145034
|
+
properties: z58.record(z58.string(), PrimitiveSchemaDefinitionSchema),
|
|
145035
|
+
required: z58.array(z58.string()).optional()
|
|
145024
145036
|
})
|
|
145025
145037
|
});
|
|
145026
145038
|
var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
145027
|
-
mode:
|
|
145028
|
-
message:
|
|
145029
|
-
elicitationId:
|
|
145030
|
-
url:
|
|
145039
|
+
mode: z58.literal("url"),
|
|
145040
|
+
message: z58.string(),
|
|
145041
|
+
elicitationId: z58.string(),
|
|
145042
|
+
url: z58.string().url()
|
|
145031
145043
|
});
|
|
145032
|
-
var ElicitRequestParamsSchema =
|
|
145044
|
+
var ElicitRequestParamsSchema = z58.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
|
|
145033
145045
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
145034
|
-
method:
|
|
145046
|
+
method: z58.literal("elicitation/create"),
|
|
145035
145047
|
params: ElicitRequestParamsSchema
|
|
145036
145048
|
});
|
|
145037
145049
|
var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
145038
|
-
elicitationId:
|
|
145050
|
+
elicitationId: z58.string()
|
|
145039
145051
|
});
|
|
145040
145052
|
var ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
|
145041
|
-
method:
|
|
145053
|
+
method: z58.literal("notifications/elicitation/complete"),
|
|
145042
145054
|
params: ElicitationCompleteNotificationParamsSchema
|
|
145043
145055
|
});
|
|
145044
145056
|
var ElicitResultSchema = ResultSchema.extend({
|
|
145045
|
-
action:
|
|
145046
|
-
content:
|
|
145057
|
+
action: z58.enum(["accept", "decline", "cancel"]),
|
|
145058
|
+
content: z58.preprocess((val) => val === null ? undefined : val, z58.record(z58.string(), z58.union([z58.string(), z58.number(), z58.boolean(), z58.array(z58.string())])).optional())
|
|
145047
145059
|
});
|
|
145048
|
-
var ResourceTemplateReferenceSchema =
|
|
145049
|
-
type:
|
|
145050
|
-
uri:
|
|
145060
|
+
var ResourceTemplateReferenceSchema = z58.object({
|
|
145061
|
+
type: z58.literal("ref/resource"),
|
|
145062
|
+
uri: z58.string()
|
|
145051
145063
|
});
|
|
145052
|
-
var PromptReferenceSchema =
|
|
145053
|
-
type:
|
|
145054
|
-
name:
|
|
145064
|
+
var PromptReferenceSchema = z58.object({
|
|
145065
|
+
type: z58.literal("ref/prompt"),
|
|
145066
|
+
name: z58.string()
|
|
145055
145067
|
});
|
|
145056
145068
|
var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
145057
|
-
ref:
|
|
145058
|
-
argument:
|
|
145059
|
-
name:
|
|
145060
|
-
value:
|
|
145069
|
+
ref: z58.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
145070
|
+
argument: z58.object({
|
|
145071
|
+
name: z58.string(),
|
|
145072
|
+
value: z58.string()
|
|
145061
145073
|
}),
|
|
145062
|
-
context:
|
|
145063
|
-
arguments:
|
|
145074
|
+
context: z58.object({
|
|
145075
|
+
arguments: z58.record(z58.string(), z58.string()).optional()
|
|
145064
145076
|
}).optional()
|
|
145065
145077
|
});
|
|
145066
145078
|
var CompleteRequestSchema = RequestSchema.extend({
|
|
145067
|
-
method:
|
|
145079
|
+
method: z58.literal("completion/complete"),
|
|
145068
145080
|
params: CompleteRequestParamsSchema
|
|
145069
145081
|
});
|
|
145070
145082
|
var CompleteResultSchema = ResultSchema.extend({
|
|
145071
|
-
completion:
|
|
145072
|
-
values:
|
|
145073
|
-
total:
|
|
145074
|
-
hasMore:
|
|
145083
|
+
completion: z58.looseObject({
|
|
145084
|
+
values: z58.array(z58.string()).max(100),
|
|
145085
|
+
total: z58.optional(z58.number().int()),
|
|
145086
|
+
hasMore: z58.optional(z58.boolean())
|
|
145075
145087
|
})
|
|
145076
145088
|
});
|
|
145077
|
-
var RootSchema =
|
|
145078
|
-
uri:
|
|
145079
|
-
name:
|
|
145080
|
-
_meta:
|
|
145089
|
+
var RootSchema = z58.object({
|
|
145090
|
+
uri: z58.string().startsWith("file://"),
|
|
145091
|
+
name: z58.string().optional(),
|
|
145092
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
145081
145093
|
});
|
|
145082
145094
|
var ListRootsRequestSchema = RequestSchema.extend({
|
|
145083
|
-
method:
|
|
145095
|
+
method: z58.literal("roots/list"),
|
|
145084
145096
|
params: BaseRequestParamsSchema.optional()
|
|
145085
145097
|
});
|
|
145086
145098
|
var ListRootsResultSchema = ResultSchema.extend({
|
|
145087
|
-
roots:
|
|
145099
|
+
roots: z58.array(RootSchema)
|
|
145088
145100
|
});
|
|
145089
145101
|
var RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
145090
|
-
method:
|
|
145102
|
+
method: z58.literal("notifications/roots/list_changed"),
|
|
145091
145103
|
params: NotificationsParamsSchema.optional()
|
|
145092
145104
|
});
|
|
145093
|
-
var ClientRequestSchema =
|
|
145105
|
+
var ClientRequestSchema = z58.union([
|
|
145094
145106
|
PingRequestSchema,
|
|
145095
145107
|
InitializeRequestSchema,
|
|
145096
145108
|
CompleteRequestSchema,
|
|
@@ -145109,14 +145121,14 @@ var ClientRequestSchema = z57.union([
|
|
|
145109
145121
|
ListTasksRequestSchema,
|
|
145110
145122
|
CancelTaskRequestSchema
|
|
145111
145123
|
]);
|
|
145112
|
-
var ClientNotificationSchema =
|
|
145124
|
+
var ClientNotificationSchema = z58.union([
|
|
145113
145125
|
CancelledNotificationSchema,
|
|
145114
145126
|
ProgressNotificationSchema,
|
|
145115
145127
|
InitializedNotificationSchema,
|
|
145116
145128
|
RootsListChangedNotificationSchema,
|
|
145117
145129
|
TaskStatusNotificationSchema
|
|
145118
145130
|
]);
|
|
145119
|
-
var ClientResultSchema =
|
|
145131
|
+
var ClientResultSchema = z58.union([
|
|
145120
145132
|
EmptyResultSchema,
|
|
145121
145133
|
CreateMessageResultSchema,
|
|
145122
145134
|
CreateMessageResultWithToolsSchema,
|
|
@@ -145126,7 +145138,7 @@ var ClientResultSchema = z57.union([
|
|
|
145126
145138
|
ListTasksResultSchema,
|
|
145127
145139
|
CreateTaskResultSchema
|
|
145128
145140
|
]);
|
|
145129
|
-
var ServerRequestSchema =
|
|
145141
|
+
var ServerRequestSchema = z58.union([
|
|
145130
145142
|
PingRequestSchema,
|
|
145131
145143
|
CreateMessageRequestSchema,
|
|
145132
145144
|
ElicitRequestSchema,
|
|
@@ -145136,7 +145148,7 @@ var ServerRequestSchema = z57.union([
|
|
|
145136
145148
|
ListTasksRequestSchema,
|
|
145137
145149
|
CancelTaskRequestSchema
|
|
145138
145150
|
]);
|
|
145139
|
-
var ServerNotificationSchema =
|
|
145151
|
+
var ServerNotificationSchema = z58.union([
|
|
145140
145152
|
CancelledNotificationSchema,
|
|
145141
145153
|
ProgressNotificationSchema,
|
|
145142
145154
|
LoggingMessageNotificationSchema,
|
|
@@ -145147,7 +145159,7 @@ var ServerNotificationSchema = z57.union([
|
|
|
145147
145159
|
TaskStatusNotificationSchema,
|
|
145148
145160
|
ElicitationCompleteNotificationSchema
|
|
145149
145161
|
]);
|
|
145150
|
-
var ServerResultSchema =
|
|
145162
|
+
var ServerResultSchema = z58.union([
|
|
145151
145163
|
EmptyResultSchema,
|
|
145152
145164
|
InitializeResultSchema,
|
|
145153
145165
|
CompleteResultSchema,
|
|
@@ -146825,149 +146837,149 @@ async function pkceChallenge(length) {
|
|
|
146825
146837
|
}
|
|
146826
146838
|
|
|
146827
146839
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
146828
|
-
import * as
|
|
146829
|
-
var SafeUrlSchema =
|
|
146840
|
+
import * as z59 from "zod/v4";
|
|
146841
|
+
var SafeUrlSchema = z59.url().superRefine((val, ctx) => {
|
|
146830
146842
|
if (!URL.canParse(val)) {
|
|
146831
146843
|
ctx.addIssue({
|
|
146832
|
-
code:
|
|
146844
|
+
code: z59.ZodIssueCode.custom,
|
|
146833
146845
|
message: "URL must be parseable",
|
|
146834
146846
|
fatal: true
|
|
146835
146847
|
});
|
|
146836
|
-
return
|
|
146848
|
+
return z59.NEVER;
|
|
146837
146849
|
}
|
|
146838
146850
|
}).refine((url) => {
|
|
146839
146851
|
const u = new URL(url);
|
|
146840
146852
|
return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
|
|
146841
146853
|
}, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
|
|
146842
|
-
var OAuthProtectedResourceMetadataSchema =
|
|
146843
|
-
resource:
|
|
146844
|
-
authorization_servers:
|
|
146845
|
-
jwks_uri:
|
|
146846
|
-
scopes_supported:
|
|
146847
|
-
bearer_methods_supported:
|
|
146848
|
-
resource_signing_alg_values_supported:
|
|
146849
|
-
resource_name:
|
|
146850
|
-
resource_documentation:
|
|
146851
|
-
resource_policy_uri:
|
|
146852
|
-
resource_tos_uri:
|
|
146853
|
-
tls_client_certificate_bound_access_tokens:
|
|
146854
|
-
authorization_details_types_supported:
|
|
146855
|
-
dpop_signing_alg_values_supported:
|
|
146856
|
-
dpop_bound_access_tokens_required:
|
|
146854
|
+
var OAuthProtectedResourceMetadataSchema = z59.looseObject({
|
|
146855
|
+
resource: z59.string().url(),
|
|
146856
|
+
authorization_servers: z59.array(SafeUrlSchema).optional(),
|
|
146857
|
+
jwks_uri: z59.string().url().optional(),
|
|
146858
|
+
scopes_supported: z59.array(z59.string()).optional(),
|
|
146859
|
+
bearer_methods_supported: z59.array(z59.string()).optional(),
|
|
146860
|
+
resource_signing_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146861
|
+
resource_name: z59.string().optional(),
|
|
146862
|
+
resource_documentation: z59.string().optional(),
|
|
146863
|
+
resource_policy_uri: z59.string().url().optional(),
|
|
146864
|
+
resource_tos_uri: z59.string().url().optional(),
|
|
146865
|
+
tls_client_certificate_bound_access_tokens: z59.boolean().optional(),
|
|
146866
|
+
authorization_details_types_supported: z59.array(z59.string()).optional(),
|
|
146867
|
+
dpop_signing_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146868
|
+
dpop_bound_access_tokens_required: z59.boolean().optional()
|
|
146857
146869
|
});
|
|
146858
|
-
var OAuthMetadataSchema =
|
|
146859
|
-
issuer:
|
|
146870
|
+
var OAuthMetadataSchema = z59.looseObject({
|
|
146871
|
+
issuer: z59.string(),
|
|
146860
146872
|
authorization_endpoint: SafeUrlSchema,
|
|
146861
146873
|
token_endpoint: SafeUrlSchema,
|
|
146862
146874
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
146863
|
-
scopes_supported:
|
|
146864
|
-
response_types_supported:
|
|
146865
|
-
response_modes_supported:
|
|
146866
|
-
grant_types_supported:
|
|
146867
|
-
token_endpoint_auth_methods_supported:
|
|
146868
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
146875
|
+
scopes_supported: z59.array(z59.string()).optional(),
|
|
146876
|
+
response_types_supported: z59.array(z59.string()),
|
|
146877
|
+
response_modes_supported: z59.array(z59.string()).optional(),
|
|
146878
|
+
grant_types_supported: z59.array(z59.string()).optional(),
|
|
146879
|
+
token_endpoint_auth_methods_supported: z59.array(z59.string()).optional(),
|
|
146880
|
+
token_endpoint_auth_signing_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146869
146881
|
service_documentation: SafeUrlSchema.optional(),
|
|
146870
146882
|
revocation_endpoint: SafeUrlSchema.optional(),
|
|
146871
|
-
revocation_endpoint_auth_methods_supported:
|
|
146872
|
-
revocation_endpoint_auth_signing_alg_values_supported:
|
|
146873
|
-
introspection_endpoint:
|
|
146874
|
-
introspection_endpoint_auth_methods_supported:
|
|
146875
|
-
introspection_endpoint_auth_signing_alg_values_supported:
|
|
146876
|
-
code_challenge_methods_supported:
|
|
146877
|
-
client_id_metadata_document_supported:
|
|
146883
|
+
revocation_endpoint_auth_methods_supported: z59.array(z59.string()).optional(),
|
|
146884
|
+
revocation_endpoint_auth_signing_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146885
|
+
introspection_endpoint: z59.string().optional(),
|
|
146886
|
+
introspection_endpoint_auth_methods_supported: z59.array(z59.string()).optional(),
|
|
146887
|
+
introspection_endpoint_auth_signing_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146888
|
+
code_challenge_methods_supported: z59.array(z59.string()).optional(),
|
|
146889
|
+
client_id_metadata_document_supported: z59.boolean().optional()
|
|
146878
146890
|
});
|
|
146879
|
-
var OpenIdProviderMetadataSchema =
|
|
146880
|
-
issuer:
|
|
146891
|
+
var OpenIdProviderMetadataSchema = z59.looseObject({
|
|
146892
|
+
issuer: z59.string(),
|
|
146881
146893
|
authorization_endpoint: SafeUrlSchema,
|
|
146882
146894
|
token_endpoint: SafeUrlSchema,
|
|
146883
146895
|
userinfo_endpoint: SafeUrlSchema.optional(),
|
|
146884
146896
|
jwks_uri: SafeUrlSchema,
|
|
146885
146897
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
146886
|
-
scopes_supported:
|
|
146887
|
-
response_types_supported:
|
|
146888
|
-
response_modes_supported:
|
|
146889
|
-
grant_types_supported:
|
|
146890
|
-
acr_values_supported:
|
|
146891
|
-
subject_types_supported:
|
|
146892
|
-
id_token_signing_alg_values_supported:
|
|
146893
|
-
id_token_encryption_alg_values_supported:
|
|
146894
|
-
id_token_encryption_enc_values_supported:
|
|
146895
|
-
userinfo_signing_alg_values_supported:
|
|
146896
|
-
userinfo_encryption_alg_values_supported:
|
|
146897
|
-
userinfo_encryption_enc_values_supported:
|
|
146898
|
-
request_object_signing_alg_values_supported:
|
|
146899
|
-
request_object_encryption_alg_values_supported:
|
|
146900
|
-
request_object_encryption_enc_values_supported:
|
|
146901
|
-
token_endpoint_auth_methods_supported:
|
|
146902
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
146903
|
-
display_values_supported:
|
|
146904
|
-
claim_types_supported:
|
|
146905
|
-
claims_supported:
|
|
146906
|
-
service_documentation:
|
|
146907
|
-
claims_locales_supported:
|
|
146908
|
-
ui_locales_supported:
|
|
146909
|
-
claims_parameter_supported:
|
|
146910
|
-
request_parameter_supported:
|
|
146911
|
-
request_uri_parameter_supported:
|
|
146912
|
-
require_request_uri_registration:
|
|
146898
|
+
scopes_supported: z59.array(z59.string()).optional(),
|
|
146899
|
+
response_types_supported: z59.array(z59.string()),
|
|
146900
|
+
response_modes_supported: z59.array(z59.string()).optional(),
|
|
146901
|
+
grant_types_supported: z59.array(z59.string()).optional(),
|
|
146902
|
+
acr_values_supported: z59.array(z59.string()).optional(),
|
|
146903
|
+
subject_types_supported: z59.array(z59.string()),
|
|
146904
|
+
id_token_signing_alg_values_supported: z59.array(z59.string()),
|
|
146905
|
+
id_token_encryption_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146906
|
+
id_token_encryption_enc_values_supported: z59.array(z59.string()).optional(),
|
|
146907
|
+
userinfo_signing_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146908
|
+
userinfo_encryption_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146909
|
+
userinfo_encryption_enc_values_supported: z59.array(z59.string()).optional(),
|
|
146910
|
+
request_object_signing_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146911
|
+
request_object_encryption_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146912
|
+
request_object_encryption_enc_values_supported: z59.array(z59.string()).optional(),
|
|
146913
|
+
token_endpoint_auth_methods_supported: z59.array(z59.string()).optional(),
|
|
146914
|
+
token_endpoint_auth_signing_alg_values_supported: z59.array(z59.string()).optional(),
|
|
146915
|
+
display_values_supported: z59.array(z59.string()).optional(),
|
|
146916
|
+
claim_types_supported: z59.array(z59.string()).optional(),
|
|
146917
|
+
claims_supported: z59.array(z59.string()).optional(),
|
|
146918
|
+
service_documentation: z59.string().optional(),
|
|
146919
|
+
claims_locales_supported: z59.array(z59.string()).optional(),
|
|
146920
|
+
ui_locales_supported: z59.array(z59.string()).optional(),
|
|
146921
|
+
claims_parameter_supported: z59.boolean().optional(),
|
|
146922
|
+
request_parameter_supported: z59.boolean().optional(),
|
|
146923
|
+
request_uri_parameter_supported: z59.boolean().optional(),
|
|
146924
|
+
require_request_uri_registration: z59.boolean().optional(),
|
|
146913
146925
|
op_policy_uri: SafeUrlSchema.optional(),
|
|
146914
146926
|
op_tos_uri: SafeUrlSchema.optional(),
|
|
146915
|
-
client_id_metadata_document_supported:
|
|
146927
|
+
client_id_metadata_document_supported: z59.boolean().optional()
|
|
146916
146928
|
});
|
|
146917
|
-
var OpenIdProviderDiscoveryMetadataSchema =
|
|
146929
|
+
var OpenIdProviderDiscoveryMetadataSchema = z59.object({
|
|
146918
146930
|
...OpenIdProviderMetadataSchema.shape,
|
|
146919
146931
|
...OAuthMetadataSchema.pick({
|
|
146920
146932
|
code_challenge_methods_supported: true
|
|
146921
146933
|
}).shape
|
|
146922
146934
|
});
|
|
146923
|
-
var OAuthTokensSchema =
|
|
146924
|
-
access_token:
|
|
146925
|
-
id_token:
|
|
146926
|
-
token_type:
|
|
146927
|
-
expires_in:
|
|
146928
|
-
scope:
|
|
146929
|
-
refresh_token:
|
|
146935
|
+
var OAuthTokensSchema = z59.object({
|
|
146936
|
+
access_token: z59.string(),
|
|
146937
|
+
id_token: z59.string().optional(),
|
|
146938
|
+
token_type: z59.string(),
|
|
146939
|
+
expires_in: z59.coerce.number().optional(),
|
|
146940
|
+
scope: z59.string().optional(),
|
|
146941
|
+
refresh_token: z59.string().optional()
|
|
146930
146942
|
}).strip();
|
|
146931
|
-
var OAuthErrorResponseSchema =
|
|
146932
|
-
error:
|
|
146933
|
-
error_description:
|
|
146934
|
-
error_uri:
|
|
146943
|
+
var OAuthErrorResponseSchema = z59.object({
|
|
146944
|
+
error: z59.string(),
|
|
146945
|
+
error_description: z59.string().optional(),
|
|
146946
|
+
error_uri: z59.string().optional()
|
|
146935
146947
|
});
|
|
146936
|
-
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(
|
|
146948
|
+
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z59.literal("").transform(() => {
|
|
146937
146949
|
return;
|
|
146938
146950
|
}));
|
|
146939
|
-
var OAuthClientMetadataSchema =
|
|
146940
|
-
redirect_uris:
|
|
146941
|
-
token_endpoint_auth_method:
|
|
146942
|
-
grant_types:
|
|
146943
|
-
response_types:
|
|
146944
|
-
client_name:
|
|
146951
|
+
var OAuthClientMetadataSchema = z59.object({
|
|
146952
|
+
redirect_uris: z59.array(SafeUrlSchema),
|
|
146953
|
+
token_endpoint_auth_method: z59.string().optional(),
|
|
146954
|
+
grant_types: z59.array(z59.string()).optional(),
|
|
146955
|
+
response_types: z59.array(z59.string()).optional(),
|
|
146956
|
+
client_name: z59.string().optional(),
|
|
146945
146957
|
client_uri: SafeUrlSchema.optional(),
|
|
146946
146958
|
logo_uri: OptionalSafeUrlSchema,
|
|
146947
|
-
scope:
|
|
146948
|
-
contacts:
|
|
146959
|
+
scope: z59.string().optional(),
|
|
146960
|
+
contacts: z59.array(z59.string()).optional(),
|
|
146949
146961
|
tos_uri: OptionalSafeUrlSchema,
|
|
146950
|
-
policy_uri:
|
|
146962
|
+
policy_uri: z59.string().optional(),
|
|
146951
146963
|
jwks_uri: SafeUrlSchema.optional(),
|
|
146952
|
-
jwks:
|
|
146953
|
-
software_id:
|
|
146954
|
-
software_version:
|
|
146955
|
-
software_statement:
|
|
146964
|
+
jwks: z59.any().optional(),
|
|
146965
|
+
software_id: z59.string().optional(),
|
|
146966
|
+
software_version: z59.string().optional(),
|
|
146967
|
+
software_statement: z59.string().optional()
|
|
146956
146968
|
}).strip();
|
|
146957
|
-
var OAuthClientInformationSchema =
|
|
146958
|
-
client_id:
|
|
146959
|
-
client_secret:
|
|
146960
|
-
client_id_issued_at:
|
|
146961
|
-
client_secret_expires_at:
|
|
146969
|
+
var OAuthClientInformationSchema = z59.object({
|
|
146970
|
+
client_id: z59.string(),
|
|
146971
|
+
client_secret: z59.string().optional(),
|
|
146972
|
+
client_id_issued_at: z59.number().optional(),
|
|
146973
|
+
client_secret_expires_at: z59.number().optional()
|
|
146962
146974
|
}).strip();
|
|
146963
146975
|
var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
146964
|
-
var OAuthClientRegistrationErrorSchema =
|
|
146965
|
-
error:
|
|
146966
|
-
error_description:
|
|
146976
|
+
var OAuthClientRegistrationErrorSchema = z59.object({
|
|
146977
|
+
error: z59.string(),
|
|
146978
|
+
error_description: z59.string().optional()
|
|
146967
146979
|
}).strip();
|
|
146968
|
-
var OAuthTokenRevocationRequestSchema =
|
|
146969
|
-
token:
|
|
146970
|
-
token_type_hint:
|
|
146980
|
+
var OAuthTokenRevocationRequestSchema = z59.object({
|
|
146981
|
+
token: z59.string(),
|
|
146982
|
+
token_type_hint: z59.string().optional()
|
|
146971
146983
|
}).strip();
|
|
146972
146984
|
|
|
146973
146985
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
|
|
@@ -149179,7 +149191,7 @@ function mirrorFilePath(projectDir) {
|
|
|
149179
149191
|
}
|
|
149180
149192
|
|
|
149181
149193
|
// packages/omo-opencode/src/features/tui-sidebar/snapshot-schema.ts
|
|
149182
|
-
import { z as
|
|
149194
|
+
import { z as z60 } from "zod";
|
|
149183
149195
|
var AGENT_STATUS_VALUES = [
|
|
149184
149196
|
"busy",
|
|
149185
149197
|
"idle",
|
|
@@ -149195,32 +149207,32 @@ var BACKGROUND_TASK_STATUS_VALUES = [
|
|
|
149195
149207
|
"cancelled",
|
|
149196
149208
|
"interrupt"
|
|
149197
149209
|
];
|
|
149198
|
-
var AgentRowSchema =
|
|
149199
|
-
name:
|
|
149200
|
-
status:
|
|
149210
|
+
var AgentRowSchema = z60.object({
|
|
149211
|
+
name: z60.string(),
|
|
149212
|
+
status: z60.enum(AGENT_STATUS_VALUES)
|
|
149201
149213
|
});
|
|
149202
|
-
var JobRowSchema =
|
|
149203
|
-
title:
|
|
149204
|
-
status:
|
|
149205
|
-
toolCalls:
|
|
149206
|
-
lastTool:
|
|
149214
|
+
var JobRowSchema = z60.object({
|
|
149215
|
+
title: z60.string(),
|
|
149216
|
+
status: z60.enum(BACKGROUND_TASK_STATUS_VALUES),
|
|
149217
|
+
toolCalls: z60.number().int().nonnegative().nullable(),
|
|
149218
|
+
lastTool: z60.string().nullable()
|
|
149207
149219
|
});
|
|
149208
|
-
var LoopLiveSchema =
|
|
149209
|
-
kind:
|
|
149210
|
-
goalsDone:
|
|
149211
|
-
goalsTotal:
|
|
149212
|
-
pass:
|
|
149213
|
-
fail:
|
|
149214
|
-
pending:
|
|
149215
|
-
blocked:
|
|
149216
|
-
activeGoal:
|
|
149220
|
+
var LoopLiveSchema = z60.object({
|
|
149221
|
+
kind: z60.literal("live"),
|
|
149222
|
+
goalsDone: z60.number().int().nonnegative(),
|
|
149223
|
+
goalsTotal: z60.number().int().nonnegative(),
|
|
149224
|
+
pass: z60.number().int().nonnegative(),
|
|
149225
|
+
fail: z60.number().int().nonnegative(),
|
|
149226
|
+
pending: z60.number().int().nonnegative(),
|
|
149227
|
+
blocked: z60.number().int().nonnegative(),
|
|
149228
|
+
activeGoal: z60.string().nullable()
|
|
149217
149229
|
});
|
|
149218
|
-
var TuiRuntimeSnapshotSchema =
|
|
149219
|
-
version:
|
|
149220
|
-
projectDir:
|
|
149221
|
-
updatedAt:
|
|
149222
|
-
activeAgents:
|
|
149223
|
-
jobBoard:
|
|
149230
|
+
var TuiRuntimeSnapshotSchema = z60.object({
|
|
149231
|
+
version: z60.literal(MIRROR_SCHEMA_VERSION),
|
|
149232
|
+
projectDir: z60.string(),
|
|
149233
|
+
updatedAt: z60.number(),
|
|
149234
|
+
activeAgents: z60.array(AgentRowSchema),
|
|
149235
|
+
jobBoard: z60.array(JobRowSchema),
|
|
149224
149236
|
loop: LoopLiveSchema.nullable()
|
|
149225
149237
|
});
|
|
149226
149238
|
|
|
@@ -149235,25 +149247,25 @@ function writeMirror(projectDir, snapshot) {
|
|
|
149235
149247
|
// packages/omo-opencode/src/features/tui-sidebar/loop-reader.ts
|
|
149236
149248
|
import { readdirSync as readdirSync31, readFileSync as readFileSync70, statSync as statSync14 } from "fs";
|
|
149237
149249
|
import { join as join131 } from "path";
|
|
149238
|
-
import { z as
|
|
149239
|
-
var CriterionSchema =
|
|
149240
|
-
status:
|
|
149250
|
+
import { z as z61 } from "zod";
|
|
149251
|
+
var CriterionSchema = z61.object({
|
|
149252
|
+
status: z61.string()
|
|
149241
149253
|
});
|
|
149242
|
-
var GoalBaseSchema =
|
|
149243
|
-
id:
|
|
149244
|
-
title:
|
|
149245
|
-
status:
|
|
149254
|
+
var GoalBaseSchema = z61.object({
|
|
149255
|
+
id: z61.string(),
|
|
149256
|
+
title: z61.string(),
|
|
149257
|
+
status: z61.string()
|
|
149246
149258
|
});
|
|
149247
|
-
var CurrentLoopSchema =
|
|
149248
|
-
version:
|
|
149249
|
-
activeGoalId:
|
|
149250
|
-
goals:
|
|
149251
|
-
successCriteria:
|
|
149259
|
+
var CurrentLoopSchema = z61.object({
|
|
149260
|
+
version: z61.literal(1),
|
|
149261
|
+
activeGoalId: z61.string().optional(),
|
|
149262
|
+
goals: z61.array(GoalBaseSchema.extend({
|
|
149263
|
+
successCriteria: z61.array(CriterionSchema)
|
|
149252
149264
|
}))
|
|
149253
149265
|
});
|
|
149254
|
-
var LegacyLoopSchema =
|
|
149255
|
-
goals:
|
|
149256
|
-
criteria:
|
|
149266
|
+
var LegacyLoopSchema = z61.object({
|
|
149267
|
+
goals: z61.array(GoalBaseSchema.extend({
|
|
149268
|
+
criteria: z61.array(CriterionSchema)
|
|
149257
149269
|
}))
|
|
149258
149270
|
});
|
|
149259
149271
|
function readActiveLoop(projectDir) {
|
|
@@ -165907,7 +165919,7 @@ var grep_app = {
|
|
|
165907
165919
|
import { existsSync as existsSync109, readFileSync as readFileSync77 } from "fs";
|
|
165908
165920
|
import { delimiter as delimiter2, dirname as dirname49, resolve as resolve37 } from "path";
|
|
165909
165921
|
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
165910
|
-
import { z as
|
|
165922
|
+
import { z as z62 } from "zod";
|
|
165911
165923
|
|
|
165912
165924
|
// packages/omo-opencode/src/mcp/cli-suffix.ts
|
|
165913
165925
|
function normalizeCliPath(path) {
|
|
@@ -166008,8 +166020,8 @@ var PROJECT_LSP_CONFIGS = [".opencode/lsp.json", ".omo/lsp.json", ".omo/lsp-clie
|
|
|
166008
166020
|
var DAEMON_PACKAGE_NAME = "@code-yeongyu/lsp-daemon";
|
|
166009
166021
|
var OMO_LSP_DAEMON_CLI = "OMO_LSP_DAEMON_CLI";
|
|
166010
166022
|
var OMO_LSP_DAEMON_VERSION = "OMO_LSP_DAEMON_VERSION";
|
|
166011
|
-
var DaemonPackageSchema =
|
|
166012
|
-
version:
|
|
166023
|
+
var DaemonPackageSchema = z62.object({
|
|
166024
|
+
version: z62.string().min(1)
|
|
166013
166025
|
});
|
|
166014
166026
|
var LSP_BOOTSTRAP_SCRIPT = [
|
|
166015
166027
|
"const { existsSync } = require('node:fs')",
|
|
@@ -171277,14 +171289,14 @@ class OpencodeClient2 extends HeyApiClient {
|
|
|
171277
171289
|
// node_modules/.bun/@opencode-ai+sdk@1.18.31/node_modules/@opencode-ai/sdk/dist/v2/server.js
|
|
171278
171290
|
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1);
|
|
171279
171291
|
// packages/omo-opencode/src/plugin/native-skills.ts
|
|
171280
|
-
import { z as
|
|
171281
|
-
var NativeSkillEntrySchema =
|
|
171282
|
-
name:
|
|
171283
|
-
description:
|
|
171284
|
-
location:
|
|
171285
|
-
content:
|
|
171292
|
+
import { z as z63 } from "zod";
|
|
171293
|
+
var NativeSkillEntrySchema = z63.object({
|
|
171294
|
+
name: z63.string(),
|
|
171295
|
+
description: z63.string().default(""),
|
|
171296
|
+
location: z63.string(),
|
|
171297
|
+
content: z63.string()
|
|
171286
171298
|
});
|
|
171287
|
-
var NativeSkillEntriesSchema =
|
|
171299
|
+
var NativeSkillEntriesSchema = z63.array(NativeSkillEntrySchema);
|
|
171288
171300
|
function getObjectProperty(value, property) {
|
|
171289
171301
|
if (typeof value !== "object" || value === null)
|
|
171290
171302
|
return;
|
|
@@ -172434,7 +172446,7 @@ async function resolveParticipant2(teamRunId, sessionID, config, deps) {
|
|
|
172434
172446
|
}
|
|
172435
172447
|
|
|
172436
172448
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-inline-spec.ts
|
|
172437
|
-
import { z as
|
|
172449
|
+
import { z as z64 } from "zod";
|
|
172438
172450
|
init_types2();
|
|
172439
172451
|
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." }] } }).';
|
|
172440
172452
|
function omitEmptyStringArgs(rawArgs) {
|
|
@@ -172443,10 +172455,10 @@ function omitEmptyStringArgs(rawArgs) {
|
|
|
172443
172455
|
}
|
|
172444
172456
|
return Object.fromEntries(Object.entries(rawArgs).filter(([, value]) => value !== ""));
|
|
172445
172457
|
}
|
|
172446
|
-
var TeamCreateArgsSchema =
|
|
172447
|
-
teamName:
|
|
172448
|
-
inline_spec:
|
|
172449
|
-
leadSessionId:
|
|
172458
|
+
var TeamCreateArgsSchema = z64.preprocess(omitEmptyStringArgs, z64.object({
|
|
172459
|
+
teamName: z64.string().min(1).nullish(),
|
|
172460
|
+
inline_spec: z64.unknown().nullish(),
|
|
172461
|
+
leadSessionId: z64.string().nullish()
|
|
172450
172462
|
}).superRefine((value, ctx) => {
|
|
172451
172463
|
const optionCount = Number(value.teamName != null) + Number(value.inline_spec != null);
|
|
172452
172464
|
if (optionCount !== 1) {
|
|
@@ -172567,7 +172579,7 @@ function createTeamCreateTool(config, client, bgMgr, tmuxMgr, executorConfig, de
|
|
|
172567
172579
|
});
|
|
172568
172580
|
}
|
|
172569
172581
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
172570
|
-
import { z as
|
|
172582
|
+
import { z as z65 } from "zod";
|
|
172571
172583
|
// packages/omo-opencode/src/features/team-mode/team-runtime/shutdown.ts
|
|
172572
172584
|
init_store2();
|
|
172573
172585
|
init_shutdown_helpers();
|
|
@@ -172656,13 +172668,13 @@ async function rejectShutdown(teamRunId, memberName, rejectorName, reason, confi
|
|
|
172656
172668
|
|
|
172657
172669
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
172658
172670
|
init_store();
|
|
172659
|
-
var TeamDeleteArgsSchema =
|
|
172660
|
-
var TeamShutdownRequestArgsSchema =
|
|
172661
|
-
var TeamApproveShutdownArgsSchema =
|
|
172662
|
-
var TeamRejectShutdownArgsSchema =
|
|
172663
|
-
teamRunId:
|
|
172664
|
-
memberName:
|
|
172665
|
-
reason:
|
|
172671
|
+
var TeamDeleteArgsSchema = z65.object({ teamRunId: z65.string().min(1), force: z65.boolean().optional() });
|
|
172672
|
+
var TeamShutdownRequestArgsSchema = z65.object({ teamRunId: z65.string().min(1), targetMemberName: z65.string().min(1) });
|
|
172673
|
+
var TeamApproveShutdownArgsSchema = z65.object({ teamRunId: z65.string().min(1), memberName: z65.string().min(1) });
|
|
172674
|
+
var TeamRejectShutdownArgsSchema = z65.object({
|
|
172675
|
+
teamRunId: z65.string().min(1),
|
|
172676
|
+
memberName: z65.string().min(1),
|
|
172677
|
+
reason: z65.string().min(1)
|
|
172666
172678
|
});
|
|
172667
172679
|
var defaultTeamShutdownToolDeps = {
|
|
172668
172680
|
listActiveTeams,
|