oh-my-opencode 5.1.8 → 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 +27 -15
- package/dist/cli-node/index.js +27 -15
- package/dist/index.js +1087 -1080
- package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
- package/dist/tui.js +26 -14
- 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 +6 -0
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-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/scripts/install-dist/install-local.mjs +8 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
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";
|
|
@@ -20779,11 +20779,16 @@ var OmoFormatOnMutationSchema = OmoFormatOnMutationLayerSchema.extend({
|
|
|
20779
20779
|
timeoutMs: z14.number().int().positive().default(3000)
|
|
20780
20780
|
}).strict();
|
|
20781
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
|
+
|
|
20782
20786
|
// packages/omo-config-core/src/schema/config.ts
|
|
20783
|
-
var OmoOpenCodeHarnessConfigSchema =
|
|
20784
|
-
var OmoDisabledSkillsSchema =
|
|
20785
|
-
var OmoTypedHarnessConfigSchema =
|
|
20787
|
+
var OmoOpenCodeHarnessConfigSchema = z16.record(z16.string(), z16.unknown());
|
|
20788
|
+
var OmoDisabledSkillsSchema = z16.array(z16.string());
|
|
20789
|
+
var OmoTypedHarnessConfigSchema = z16.object({
|
|
20786
20790
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
20791
|
+
gateway: OmoGatewaySectionSchema.optional(),
|
|
20787
20792
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
20788
20793
|
agents: OmoAgentsConfigSchema.optional(),
|
|
20789
20794
|
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
@@ -20791,13 +20796,13 @@ var OmoTypedHarnessConfigSchema = z15.object({
|
|
|
20791
20796
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
20792
20797
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
20793
20798
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
20794
|
-
model_profile:
|
|
20799
|
+
model_profile: z16.string().optional(),
|
|
20795
20800
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
20796
20801
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
20797
20802
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
20798
20803
|
disabled_skills: OmoDisabledSkillsSchema.optional()
|
|
20799
20804
|
}).strict();
|
|
20800
|
-
var OmoConfigProfileSchema =
|
|
20805
|
+
var OmoConfigProfileSchema = z16.object({
|
|
20801
20806
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
20802
20807
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
20803
20808
|
agents: OmoAgentsConfigSchema.optional(),
|
|
@@ -20806,7 +20811,7 @@ var OmoConfigProfileSchema = z15.object({
|
|
|
20806
20811
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
20807
20812
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
20808
20813
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
20809
|
-
model_profile:
|
|
20814
|
+
model_profile: z16.string().optional(),
|
|
20810
20815
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
20811
20816
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
20812
20817
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
@@ -20816,9 +20821,10 @@ var OmoConfigProfileSchema = z15.object({
|
|
|
20816
20821
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
20817
20822
|
"[codex]": OmoTypedHarnessConfigSchema.optional()
|
|
20818
20823
|
}).strict();
|
|
20819
|
-
var OmoConfigSchema =
|
|
20824
|
+
var OmoConfigSchema = z16.object({
|
|
20820
20825
|
formatOnMutation: OmoFormatOnMutationSchema.optional(),
|
|
20821
|
-
|
|
20826
|
+
gateway: OmoGatewaySectionSchema.optional(),
|
|
20827
|
+
$schema: z16.string().optional(),
|
|
20822
20828
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
20823
20829
|
agents: OmoAgentsConfigSchema.optional(),
|
|
20824
20830
|
git_master: OmoGitMasterSettingsSchema.optional(),
|
|
@@ -20826,7 +20832,7 @@ var OmoConfigSchema = z15.object({
|
|
|
20826
20832
|
teams: OmoTeamsConfigSchema.optional(),
|
|
20827
20833
|
models: OmoModelCatalogSchema.optional(),
|
|
20828
20834
|
model_profiles: OmoModelProfilesSchema.optional(),
|
|
20829
|
-
model_profile:
|
|
20835
|
+
model_profile: z16.string().optional(),
|
|
20830
20836
|
memory: OmoMemorySettingsSchema.optional(),
|
|
20831
20837
|
telemetry: OmoTelemetrySettingsSchema.optional(),
|
|
20832
20838
|
computer: OmoComputerSettingsSchema.optional(),
|
|
@@ -20835,13 +20841,14 @@ var OmoConfigSchema = z15.object({
|
|
|
20835
20841
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
20836
20842
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
20837
20843
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
20838
|
-
profiles:
|
|
20839
|
-
_migrations:
|
|
20840
|
-
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()
|
|
20841
20847
|
}).strict();
|
|
20842
|
-
var OmoConfigLayerSchema =
|
|
20848
|
+
var OmoConfigLayerSchema = z16.object({
|
|
20843
20849
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
20844
|
-
|
|
20850
|
+
gateway: OmoGatewaySectionSchema.optional(),
|
|
20851
|
+
$schema: z16.string().optional(),
|
|
20845
20852
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
20846
20853
|
agents: OmoAgentsConfigSchema.optional(),
|
|
20847
20854
|
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
@@ -20849,7 +20856,7 @@ var OmoConfigLayerSchema = z15.object({
|
|
|
20849
20856
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
20850
20857
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
20851
20858
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
20852
|
-
model_profile:
|
|
20859
|
+
model_profile: z16.string().optional(),
|
|
20853
20860
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
20854
20861
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
20855
20862
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
@@ -20858,9 +20865,9 @@ var OmoConfigLayerSchema = z15.object({
|
|
|
20858
20865
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
20859
20866
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
20860
20867
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
20861
|
-
profiles:
|
|
20862
|
-
_migrations:
|
|
20863
|
-
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()
|
|
20864
20871
|
}).strict();
|
|
20865
20872
|
|
|
20866
20873
|
// packages/omo-config-core/src/schema/legacy-category-names.ts
|
|
@@ -26132,8 +26139,8 @@ function findUnknownKeyPaths(schema, value) {
|
|
|
26132
26139
|
}
|
|
26133
26140
|
|
|
26134
26141
|
// packages/omo-opencode/src/config/schema/agent-names.ts
|
|
26135
|
-
import { z as
|
|
26136
|
-
var BuiltinAgentNameSchema =
|
|
26142
|
+
import { z as z17 } from "zod";
|
|
26143
|
+
var BuiltinAgentNameSchema = z17.enum([
|
|
26137
26144
|
"sisyphus",
|
|
26138
26145
|
"hephaestus",
|
|
26139
26146
|
"prometheus",
|
|
@@ -26146,7 +26153,7 @@ var BuiltinAgentNameSchema = z16.enum([
|
|
|
26146
26153
|
"atlas",
|
|
26147
26154
|
"sisyphus-junior"
|
|
26148
26155
|
]);
|
|
26149
|
-
var BuiltinSkillNameSchema =
|
|
26156
|
+
var BuiltinSkillNameSchema = z17.enum([
|
|
26150
26157
|
"playwright",
|
|
26151
26158
|
"dev-browser",
|
|
26152
26159
|
"frontend",
|
|
@@ -26160,7 +26167,7 @@ var BuiltinSkillNameSchema = z16.enum([
|
|
|
26160
26167
|
"visual-qa",
|
|
26161
26168
|
"team-mode"
|
|
26162
26169
|
]);
|
|
26163
|
-
var OverridableAgentNameSchema =
|
|
26170
|
+
var OverridableAgentNameSchema = z17.enum([
|
|
26164
26171
|
"build",
|
|
26165
26172
|
"plan",
|
|
26166
26173
|
"sisyphus",
|
|
@@ -26177,41 +26184,41 @@ var OverridableAgentNameSchema = z16.enum([
|
|
|
26177
26184
|
"atlas"
|
|
26178
26185
|
]);
|
|
26179
26186
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
26180
|
-
import { z as
|
|
26187
|
+
import { z as z20 } from "zod";
|
|
26181
26188
|
|
|
26182
26189
|
// packages/omo-opencode/src/config/schema/fallback-models.ts
|
|
26183
|
-
import { z as
|
|
26184
|
-
var FallbackModelObjectSchema =
|
|
26185
|
-
model:
|
|
26190
|
+
import { z as z18 } from "zod";
|
|
26191
|
+
var FallbackModelObjectSchema = z18.object({
|
|
26192
|
+
model: z18.string(),
|
|
26186
26193
|
reasoning: OmoReasoningSchema.optional(),
|
|
26187
|
-
variant:
|
|
26188
|
-
reasoningEffort:
|
|
26189
|
-
temperature:
|
|
26190
|
-
top_p:
|
|
26191
|
-
maxTokens:
|
|
26192
|
-
thinking:
|
|
26193
|
-
type:
|
|
26194
|
-
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()
|
|
26195
26202
|
}).optional()
|
|
26196
26203
|
});
|
|
26197
|
-
var FallbackModelStringArraySchema =
|
|
26198
|
-
var FallbackModelObjectArraySchema =
|
|
26199
|
-
var FallbackModelMixedArraySchema =
|
|
26200
|
-
var FallbackModelsSchema =
|
|
26201
|
-
|
|
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(),
|
|
26202
26209
|
FallbackModelStringArraySchema,
|
|
26203
26210
|
FallbackModelObjectArraySchema,
|
|
26204
26211
|
FallbackModelMixedArraySchema
|
|
26205
26212
|
]);
|
|
26206
26213
|
|
|
26207
26214
|
// packages/omo-opencode/src/config/schema/internal/permission.ts
|
|
26208
|
-
import { z as
|
|
26209
|
-
var PermissionValueSchema2 =
|
|
26210
|
-
var BashPermissionSchema2 =
|
|
26215
|
+
import { z as z19 } from "zod";
|
|
26216
|
+
var PermissionValueSchema2 = z19.enum(["ask", "allow", "deny"]);
|
|
26217
|
+
var BashPermissionSchema2 = z19.union([
|
|
26211
26218
|
PermissionValueSchema2,
|
|
26212
|
-
|
|
26219
|
+
z19.record(z19.string(), PermissionValueSchema2)
|
|
26213
26220
|
]);
|
|
26214
|
-
var AgentPermissionSchema =
|
|
26221
|
+
var AgentPermissionSchema = z19.object({
|
|
26215
26222
|
edit: PermissionValueSchema2.optional(),
|
|
26216
26223
|
bash: BashPermissionSchema2.optional(),
|
|
26217
26224
|
webfetch: PermissionValueSchema2.optional(),
|
|
@@ -26221,50 +26228,50 @@ var AgentPermissionSchema = z18.object({
|
|
|
26221
26228
|
}).catchall(PermissionValueSchema2.optional());
|
|
26222
26229
|
|
|
26223
26230
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
26224
|
-
var AgentOverrideConfigSchema =
|
|
26225
|
-
model:
|
|
26226
|
-
models:
|
|
26231
|
+
var AgentOverrideConfigSchema = z20.object({
|
|
26232
|
+
model: z20.string().optional(),
|
|
26233
|
+
models: z20.array(z20.union([z20.string(), FallbackModelObjectSchema])).optional(),
|
|
26227
26234
|
fallback_models: FallbackModelsSchema.optional(),
|
|
26228
26235
|
reasoning: OmoReasoningSchema.optional(),
|
|
26229
|
-
variant:
|
|
26230
|
-
category:
|
|
26231
|
-
skills:
|
|
26232
|
-
temperature:
|
|
26233
|
-
top_p:
|
|
26234
|
-
prompt:
|
|
26235
|
-
prompt_append:
|
|
26236
|
-
tools:
|
|
26237
|
-
disable:
|
|
26238
|
-
description:
|
|
26239
|
-
mode:
|
|
26240
|
-
color:
|
|
26241
|
-
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(),
|
|
26242
26249
|
permission: AgentPermissionSchema.optional(),
|
|
26243
|
-
maxTokens:
|
|
26244
|
-
thinking:
|
|
26245
|
-
type:
|
|
26246
|
-
budgetTokens:
|
|
26250
|
+
maxTokens: z20.number().optional(),
|
|
26251
|
+
thinking: z20.object({
|
|
26252
|
+
type: z20.enum(["enabled", "disabled"]),
|
|
26253
|
+
budgetTokens: z20.number().optional()
|
|
26247
26254
|
}).optional(),
|
|
26248
|
-
reasoningEffort:
|
|
26249
|
-
textVerbosity:
|
|
26250
|
-
providerOptions:
|
|
26251
|
-
ultrawork:
|
|
26252
|
-
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(),
|
|
26253
26260
|
reasoning: OmoReasoningSchema.optional(),
|
|
26254
|
-
variant:
|
|
26261
|
+
variant: z20.string().optional()
|
|
26255
26262
|
}).optional(),
|
|
26256
|
-
compaction:
|
|
26257
|
-
model:
|
|
26263
|
+
compaction: z20.object({
|
|
26264
|
+
model: z20.string().optional(),
|
|
26258
26265
|
reasoning: OmoReasoningSchema.optional(),
|
|
26259
|
-
variant:
|
|
26266
|
+
variant: z20.string().optional()
|
|
26260
26267
|
}).optional()
|
|
26261
26268
|
});
|
|
26262
|
-
var AgentOverridesSchema =
|
|
26269
|
+
var AgentOverridesSchema = z20.object({
|
|
26263
26270
|
build: AgentOverrideConfigSchema.optional(),
|
|
26264
26271
|
plan: AgentOverrideConfigSchema.optional(),
|
|
26265
26272
|
sisyphus: AgentOverrideConfigSchema.optional(),
|
|
26266
26273
|
hephaestus: AgentOverrideConfigSchema.extend({
|
|
26267
|
-
allow_non_gpt_model:
|
|
26274
|
+
allow_non_gpt_model: z20.boolean().optional()
|
|
26268
26275
|
}).optional(),
|
|
26269
26276
|
"sisyphus-junior": AgentOverrideConfigSchema.optional(),
|
|
26270
26277
|
"OpenCode-Builder": AgentOverrideConfigSchema.optional(),
|
|
@@ -26278,73 +26285,73 @@ var AgentOverridesSchema = z19.object({
|
|
|
26278
26285
|
atlas: AgentOverrideConfigSchema.optional()
|
|
26279
26286
|
}).catchall(AgentOverrideConfigSchema.optional());
|
|
26280
26287
|
// packages/omo-opencode/src/config/schema/babysitting.ts
|
|
26281
|
-
import { z as
|
|
26282
|
-
var BabysittingConfigSchema =
|
|
26283
|
-
timeout_ms:
|
|
26288
|
+
import { z as z21 } from "zod";
|
|
26289
|
+
var BabysittingConfigSchema = z21.object({
|
|
26290
|
+
timeout_ms: z21.number().default(120000)
|
|
26284
26291
|
});
|
|
26285
26292
|
// packages/omo-opencode/src/config/schema/background-task.ts
|
|
26286
|
-
import { z as
|
|
26287
|
-
var CircuitBreakerConfigSchema =
|
|
26288
|
-
enabled:
|
|
26289
|
-
maxToolCalls:
|
|
26290
|
-
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()
|
|
26291
26298
|
});
|
|
26292
|
-
var BackgroundTaskConfigSchema =
|
|
26293
|
-
defaultConcurrency:
|
|
26294
|
-
providerConcurrency:
|
|
26295
|
-
modelConcurrency:
|
|
26296
|
-
maxDepth:
|
|
26297
|
-
maxLiveDescendantsPerRoot:
|
|
26298
|
-
staleTimeoutMs:
|
|
26299
|
-
messageStalenessTimeoutMs:
|
|
26300
|
-
taskTtlMs:
|
|
26301
|
-
sessionGoneTimeoutMs:
|
|
26302
|
-
taskCleanupDelayMs:
|
|
26303
|
-
syncPollTimeoutMs:
|
|
26304
|
-
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(),
|
|
26305
26312
|
circuitBreaker: CircuitBreakerConfigSchema.optional()
|
|
26306
26313
|
});
|
|
26307
26314
|
// packages/omo-opencode/src/config/schema/browser-automation.ts
|
|
26308
|
-
import { z as
|
|
26309
|
-
var BrowserAutomationProviderSchema =
|
|
26315
|
+
import { z as z23 } from "zod";
|
|
26316
|
+
var BrowserAutomationProviderSchema = z23.enum([
|
|
26310
26317
|
"playwright",
|
|
26311
26318
|
"dev-browser",
|
|
26312
26319
|
"playwright-cli"
|
|
26313
26320
|
], {
|
|
26314
26321
|
error: (issue) => `Browser provider ${JSON.stringify(issue.input)} is no longer supported; use the built-in browser path: Bun.WebView / playwright-core scripts`
|
|
26315
26322
|
});
|
|
26316
|
-
var BrowserAutomationConfigSchema =
|
|
26323
|
+
var BrowserAutomationConfigSchema = z23.object({
|
|
26317
26324
|
provider: BrowserAutomationProviderSchema.default("playwright"),
|
|
26318
|
-
playwright_mcp_args:
|
|
26325
|
+
playwright_mcp_args: z23.array(z23.string()).optional()
|
|
26319
26326
|
});
|
|
26320
26327
|
// packages/omo-opencode/src/config/schema/categories.ts
|
|
26321
|
-
import { z as
|
|
26322
|
-
var CategoryConfigSchema =
|
|
26323
|
-
description:
|
|
26324
|
-
model:
|
|
26325
|
-
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(),
|
|
26326
26333
|
fallback_models: FallbackModelsSchema.optional(),
|
|
26327
26334
|
reasoning: OmoReasoningSchema.optional(),
|
|
26328
|
-
variant:
|
|
26329
|
-
temperature:
|
|
26330
|
-
top_p:
|
|
26331
|
-
max_tokens:
|
|
26332
|
-
provider_options:
|
|
26333
|
-
maxTokens:
|
|
26334
|
-
thinking:
|
|
26335
|
-
type:
|
|
26336
|
-
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()
|
|
26337
26344
|
}).optional(),
|
|
26338
|
-
reasoningEffort:
|
|
26339
|
-
textVerbosity:
|
|
26340
|
-
tools:
|
|
26341
|
-
prompt_append:
|
|
26342
|
-
max_prompt_tokens:
|
|
26343
|
-
is_unstable_agent:
|
|
26344
|
-
disable:
|
|
26345
|
-
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()
|
|
26346
26353
|
});
|
|
26347
|
-
var BuiltinCategoryNameSchema =
|
|
26354
|
+
var BuiltinCategoryNameSchema = z24.enum([
|
|
26348
26355
|
"visual-engineering",
|
|
26349
26356
|
"ultrabrain",
|
|
26350
26357
|
"deep",
|
|
@@ -26354,29 +26361,29 @@ var BuiltinCategoryNameSchema = z23.enum([
|
|
|
26354
26361
|
"unspecified-high",
|
|
26355
26362
|
"writing"
|
|
26356
26363
|
]);
|
|
26357
|
-
var CategoriesConfigSchema =
|
|
26364
|
+
var CategoriesConfigSchema = z24.record(z24.string(), CategoryConfigSchema);
|
|
26358
26365
|
// packages/omo-opencode/src/config/schema/claude-code.ts
|
|
26359
|
-
import { z as
|
|
26360
|
-
var ClaudeCodeConfigSchema =
|
|
26361
|
-
mcp:
|
|
26362
|
-
commands:
|
|
26363
|
-
skills:
|
|
26364
|
-
agents:
|
|
26365
|
-
hooks:
|
|
26366
|
-
plugins:
|
|
26367
|
-
plugins_override:
|
|
26368
|
-
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("/"), {
|
|
26369
26376
|
message: "anthropic_provider must be a provider name without '/'"
|
|
26370
26377
|
}).optional()
|
|
26371
26378
|
});
|
|
26372
26379
|
// packages/omo-opencode/src/config/schema/comment-checker.ts
|
|
26373
|
-
import { z as
|
|
26374
|
-
var CommentCheckerConfigSchema =
|
|
26375
|
-
custom_prompt:
|
|
26380
|
+
import { z as z26 } from "zod";
|
|
26381
|
+
var CommentCheckerConfigSchema = z26.object({
|
|
26382
|
+
custom_prompt: z26.string().optional()
|
|
26376
26383
|
});
|
|
26377
26384
|
// packages/omo-opencode/src/config/schema/commands.ts
|
|
26378
|
-
import { z as
|
|
26379
|
-
var BuiltinCommandNameSchema =
|
|
26385
|
+
import { z as z27 } from "zod";
|
|
26386
|
+
var BuiltinCommandNameSchema = z27.enum([
|
|
26380
26387
|
"goal",
|
|
26381
26388
|
"refactor",
|
|
26382
26389
|
"ulw-execute",
|
|
@@ -26385,21 +26392,21 @@ var BuiltinCommandNameSchema = z26.enum([
|
|
|
26385
26392
|
"hyperplan"
|
|
26386
26393
|
]);
|
|
26387
26394
|
// packages/omo-opencode/src/config/schema/default-mode.ts
|
|
26388
|
-
import { z as
|
|
26389
|
-
var DefaultModeConfigSchema =
|
|
26390
|
-
ultrawork:
|
|
26391
|
-
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)
|
|
26392
26399
|
});
|
|
26393
26400
|
// packages/omo-opencode/src/config/schema/dynamic-context-pruning.ts
|
|
26394
|
-
import { z as
|
|
26395
|
-
var DynamicContextPruningConfigSchema =
|
|
26396
|
-
enabled:
|
|
26397
|
-
notification:
|
|
26398
|
-
turn_protection:
|
|
26399
|
-
enabled:
|
|
26400
|
-
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)
|
|
26401
26408
|
}).optional(),
|
|
26402
|
-
protected_tools:
|
|
26409
|
+
protected_tools: z29.array(z29.string()).default([
|
|
26403
26410
|
"task",
|
|
26404
26411
|
"todowrite",
|
|
26405
26412
|
"todoread",
|
|
@@ -26408,45 +26415,45 @@ var DynamicContextPruningConfigSchema = z28.object({
|
|
|
26408
26415
|
"session_write",
|
|
26409
26416
|
"session_search"
|
|
26410
26417
|
]),
|
|
26411
|
-
strategies:
|
|
26412
|
-
deduplication:
|
|
26413
|
-
enabled:
|
|
26418
|
+
strategies: z29.object({
|
|
26419
|
+
deduplication: z29.object({
|
|
26420
|
+
enabled: z29.boolean().default(true)
|
|
26414
26421
|
}).optional(),
|
|
26415
|
-
supersede_writes:
|
|
26416
|
-
enabled:
|
|
26417
|
-
aggressive:
|
|
26422
|
+
supersede_writes: z29.object({
|
|
26423
|
+
enabled: z29.boolean().default(true),
|
|
26424
|
+
aggressive: z29.boolean().default(false)
|
|
26418
26425
|
}).optional(),
|
|
26419
|
-
purge_errors:
|
|
26420
|
-
enabled:
|
|
26421
|
-
turns:
|
|
26426
|
+
purge_errors: z29.object({
|
|
26427
|
+
enabled: z29.boolean().default(true),
|
|
26428
|
+
turns: z29.number().min(1).max(20).default(5)
|
|
26422
26429
|
}).optional()
|
|
26423
26430
|
}).optional()
|
|
26424
26431
|
});
|
|
26425
26432
|
// packages/omo-opencode/src/config/schema/experimental.ts
|
|
26426
|
-
import { z as
|
|
26427
|
-
var ExperimentalConfigSchema =
|
|
26428
|
-
aggressive_truncation:
|
|
26429
|
-
preemptive_compaction:
|
|
26430
|
-
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(),
|
|
26431
26438
|
dynamic_context_pruning: DynamicContextPruningConfigSchema.optional(),
|
|
26432
|
-
task_system:
|
|
26433
|
-
plugin_load_timeout_ms:
|
|
26434
|
-
safe_hook_creation:
|
|
26435
|
-
disable_omo_env:
|
|
26436
|
-
hashline_edit:
|
|
26437
|
-
model_fallback_title:
|
|
26438
|
-
max_tools:
|
|
26439
|
-
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()
|
|
26440
26447
|
});
|
|
26441
26448
|
// packages/omo-opencode/src/config/schema/goal.ts
|
|
26442
|
-
import { z as
|
|
26443
|
-
var GoalConfigSchema =
|
|
26444
|
-
enabled:
|
|
26445
|
-
auto_start:
|
|
26446
|
-
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)
|
|
26447
26454
|
});
|
|
26448
26455
|
// packages/skills-loader-core/src/config/git-env-prefix.ts
|
|
26449
|
-
import { z as
|
|
26456
|
+
import { z as z32 } from "zod";
|
|
26450
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_-]*)*$/;
|
|
26451
26458
|
var GIT_ENV_PREFIX_VALIDATION_MESSAGE = 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"';
|
|
26452
26459
|
function isValidGitEnvPrefix(value) {
|
|
@@ -26461,17 +26468,17 @@ function assertValidGitEnvPrefix(value) {
|
|
|
26461
26468
|
}
|
|
26462
26469
|
return value;
|
|
26463
26470
|
}
|
|
26464
|
-
var GitEnvPrefixSchema =
|
|
26471
|
+
var GitEnvPrefixSchema = z32.string().refine(isValidGitEnvPrefix, { message: GIT_ENV_PREFIX_VALIDATION_MESSAGE }).default("GIT_MASTER=1");
|
|
26465
26472
|
// packages/omo-opencode/src/config/schema/git-master.ts
|
|
26466
|
-
import { z as
|
|
26467
|
-
var GitMasterConfigSchema =
|
|
26468
|
-
commit_footer:
|
|
26469
|
-
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),
|
|
26470
26477
|
git_env_prefix: GitEnvPrefixSchema
|
|
26471
26478
|
});
|
|
26472
26479
|
// packages/omo-opencode/src/config/schema/hooks.ts
|
|
26473
|
-
import { z as
|
|
26474
|
-
var HookNameSchema =
|
|
26480
|
+
import { z as z34 } from "zod";
|
|
26481
|
+
var HookNameSchema = z34.enum([
|
|
26475
26482
|
"todo-continuation-enforcer",
|
|
26476
26483
|
"session-notification",
|
|
26477
26484
|
"comment-checker",
|
|
@@ -26530,240 +26537,240 @@ var HookNameSchema = z33.enum([
|
|
|
26530
26537
|
"native-edition-nudge"
|
|
26531
26538
|
]);
|
|
26532
26539
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
26533
|
-
import { z as
|
|
26534
|
-
var I18nConfigSchema =
|
|
26535
|
-
locale:
|
|
26540
|
+
import { z as z35 } from "zod";
|
|
26541
|
+
var I18nConfigSchema = z35.object({
|
|
26542
|
+
locale: z35.string().optional()
|
|
26536
26543
|
});
|
|
26537
26544
|
// packages/omo-opencode/src/config/schema/keyword-detector.ts
|
|
26538
|
-
import { z as
|
|
26539
|
-
var KeywordTypeSchema =
|
|
26540
|
-
var KeywordDetectorConfigSchema =
|
|
26541
|
-
enabled_expansions:
|
|
26542
|
-
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()
|
|
26543
26550
|
});
|
|
26544
26551
|
// packages/omo-opencode/src/config/schema/model-capabilities.ts
|
|
26545
|
-
import { z as
|
|
26546
|
-
var ModelCapabilitiesConfigSchema =
|
|
26547
|
-
enabled:
|
|
26548
|
-
auto_refresh_on_start:
|
|
26549
|
-
refresh_timeout_ms:
|
|
26550
|
-
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()
|
|
26551
26558
|
});
|
|
26552
26559
|
// packages/omo-opencode/src/config/schema/notification.ts
|
|
26553
|
-
import { z as
|
|
26554
|
-
var NotificationConfigSchema =
|
|
26555
|
-
force_enable:
|
|
26560
|
+
import { z as z38 } from "zod";
|
|
26561
|
+
var NotificationConfigSchema = z38.object({
|
|
26562
|
+
force_enable: z38.boolean().optional()
|
|
26556
26563
|
});
|
|
26557
26564
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
26558
|
-
import { z as
|
|
26565
|
+
import { z as z52 } from "zod";
|
|
26559
26566
|
|
|
26560
26567
|
// packages/omo-opencode/src/mcp/types.ts
|
|
26561
|
-
import { z as
|
|
26562
|
-
var McpNameSchema =
|
|
26563
|
-
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);
|
|
26564
26571
|
|
|
26565
26572
|
// packages/omo-opencode/src/config/schema/agent-definitions.ts
|
|
26566
|
-
import { z as
|
|
26567
|
-
var AgentDefinitionPathSchema =
|
|
26568
|
-
var AgentDefinitionsConfigSchema =
|
|
26573
|
+
import { z as z40 } from "zod";
|
|
26574
|
+
var AgentDefinitionPathSchema = z40.string().min(1);
|
|
26575
|
+
var AgentDefinitionsConfigSchema = z40.array(AgentDefinitionPathSchema).optional();
|
|
26569
26576
|
|
|
26570
26577
|
// packages/omo-opencode/src/config/schema/openclaw.ts
|
|
26571
|
-
import { z as
|
|
26572
|
-
var OpenClawGatewaySchema =
|
|
26573
|
-
type:
|
|
26574
|
-
url:
|
|
26575
|
-
method:
|
|
26576
|
-
headers:
|
|
26577
|
-
command:
|
|
26578
|
-
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()
|
|
26579
26586
|
});
|
|
26580
|
-
var OpenClawHookSchema =
|
|
26581
|
-
enabled:
|
|
26582
|
-
gateway:
|
|
26583
|
-
instruction:
|
|
26587
|
+
var OpenClawHookSchema = z41.object({
|
|
26588
|
+
enabled: z41.boolean().default(true),
|
|
26589
|
+
gateway: z41.string(),
|
|
26590
|
+
instruction: z41.string()
|
|
26584
26591
|
});
|
|
26585
|
-
var OpenClawReplyListenerConfigSchema =
|
|
26586
|
-
discordBotToken:
|
|
26587
|
-
discordChannelId:
|
|
26588
|
-
discordMention:
|
|
26589
|
-
authorizedDiscordUserIds:
|
|
26590
|
-
telegramBotToken:
|
|
26591
|
-
telegramChatId:
|
|
26592
|
-
pollIntervalMs:
|
|
26593
|
-
rateLimitPerMinute:
|
|
26594
|
-
maxMessageLength:
|
|
26595
|
-
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)
|
|
26596
26603
|
});
|
|
26597
|
-
var OpenClawConfigSchema =
|
|
26598
|
-
enabled:
|
|
26599
|
-
gateways:
|
|
26600
|
-
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({}),
|
|
26601
26608
|
replyListener: OpenClawReplyListenerConfigSchema.optional()
|
|
26602
26609
|
});
|
|
26603
26610
|
|
|
26604
26611
|
// packages/omo-opencode/src/config/schema/monitor.ts
|
|
26605
|
-
import { z as
|
|
26606
|
-
var MonitorConfigSchema =
|
|
26607
|
-
enabled:
|
|
26608
|
-
live_mode_enabled:
|
|
26609
|
-
allowed_commands:
|
|
26610
|
-
max_monitors_per_session:
|
|
26611
|
-
max_runtime_ms:
|
|
26612
|
-
batch_max_lines:
|
|
26613
|
-
batch_max_bytes:
|
|
26614
|
-
flush_interval_ms:
|
|
26615
|
-
ring_max_lines:
|
|
26616
|
-
line_max_bytes:
|
|
26617
|
-
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)
|
|
26618
26625
|
});
|
|
26619
26626
|
|
|
26620
26627
|
// packages/omo-opencode/src/config/schema/runtime-fallback.ts
|
|
26621
|
-
import { z as
|
|
26622
|
-
var RuntimeFallbackConfigSchema =
|
|
26623
|
-
enabled:
|
|
26624
|
-
retry_on_errors:
|
|
26625
|
-
max_fallback_attempts:
|
|
26626
|
-
cooldown_seconds:
|
|
26627
|
-
timeout_seconds:
|
|
26628
|
-
notify_on_fallback:
|
|
26629
|
-
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()
|
|
26630
26637
|
});
|
|
26631
26638
|
|
|
26632
26639
|
// packages/team-core/src/config.ts
|
|
26633
|
-
import * as
|
|
26634
|
-
var TeamModeConfigSchema =
|
|
26635
|
-
enabled:
|
|
26636
|
-
tmux_visualization:
|
|
26637
|
-
max_parallel_members:
|
|
26638
|
-
max_members:
|
|
26639
|
-
max_messages_per_run:
|
|
26640
|
-
max_wall_clock_minutes:
|
|
26641
|
-
max_member_turns:
|
|
26642
|
-
base_dir:
|
|
26643
|
-
message_payload_max_bytes:
|
|
26644
|
-
recipient_unread_max_bytes:
|
|
26645
|
-
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)
|
|
26646
26653
|
});
|
|
26647
26654
|
// packages/omo-opencode/src/config/schema/skills.ts
|
|
26648
|
-
import { z as
|
|
26649
|
-
var SkillSourceSchema =
|
|
26650
|
-
|
|
26651
|
-
|
|
26652
|
-
path:
|
|
26653
|
-
recursive:
|
|
26654
|
-
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()
|
|
26655
26662
|
})
|
|
26656
26663
|
]);
|
|
26657
|
-
var SkillDefinitionSchema =
|
|
26658
|
-
description:
|
|
26659
|
-
template:
|
|
26660
|
-
from:
|
|
26661
|
-
model:
|
|
26662
|
-
agent:
|
|
26663
|
-
subtask:
|
|
26664
|
-
"argument-hint":
|
|
26665
|
-
license:
|
|
26666
|
-
compatibility:
|
|
26667
|
-
metadata:
|
|
26668
|
-
"allowed-tools":
|
|
26669
|
-
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()
|
|
26670
26677
|
});
|
|
26671
|
-
var SkillEntrySchema =
|
|
26672
|
-
var SkillsConfigSchema =
|
|
26673
|
-
|
|
26674
|
-
|
|
26675
|
-
sources:
|
|
26676
|
-
enable:
|
|
26677
|
-
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()
|
|
26678
26685
|
}).catchall(SkillEntrySchema)
|
|
26679
26686
|
]);
|
|
26680
26687
|
|
|
26681
26688
|
// packages/omo-opencode/src/config/schema/sisyphus.ts
|
|
26682
|
-
import { z as
|
|
26683
|
-
var SisyphusTasksConfigSchema =
|
|
26684
|
-
storage_path:
|
|
26685
|
-
task_list_id:
|
|
26686
|
-
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)
|
|
26687
26694
|
});
|
|
26688
|
-
var SisyphusConfigSchema =
|
|
26695
|
+
var SisyphusConfigSchema = z46.object({
|
|
26689
26696
|
tasks: SisyphusTasksConfigSchema.optional()
|
|
26690
26697
|
});
|
|
26691
26698
|
|
|
26692
26699
|
// packages/omo-opencode/src/config/schema/sisyphus-agent.ts
|
|
26693
|
-
import { z as
|
|
26694
|
-
var SisyphusAgentConfigSchema =
|
|
26695
|
-
disabled:
|
|
26696
|
-
default_builder_enabled:
|
|
26697
|
-
planner_enabled:
|
|
26698
|
-
replace_plan:
|
|
26699
|
-
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()
|
|
26700
26707
|
});
|
|
26701
26708
|
|
|
26702
26709
|
// packages/omo-opencode/src/config/schema/tmux.ts
|
|
26703
26710
|
init_src2();
|
|
26704
|
-
import { z as
|
|
26705
|
-
var TmuxLayoutSchema =
|
|
26706
|
-
var TmuxIsolationSchema =
|
|
26707
|
-
var TmuxConfigSchema =
|
|
26708
|
-
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),
|
|
26709
26716
|
layout: TmuxLayoutSchema.default("main-vertical"),
|
|
26710
|
-
main_pane_size:
|
|
26711
|
-
main_pane_min_width:
|
|
26712
|
-
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),
|
|
26713
26720
|
isolation: TmuxIsolationSchema.default("inline")
|
|
26714
26721
|
});
|
|
26715
26722
|
|
|
26716
26723
|
// packages/omo-opencode/src/config/schema/tui.ts
|
|
26717
|
-
import { z as
|
|
26718
|
-
var TuiSidebarConfigSchema =
|
|
26719
|
-
enabled:
|
|
26724
|
+
import { z as z49 } from "zod";
|
|
26725
|
+
var TuiSidebarConfigSchema = z49.object({
|
|
26726
|
+
enabled: z49.boolean().default(true)
|
|
26720
26727
|
});
|
|
26721
|
-
var TuiConfigSchema =
|
|
26728
|
+
var TuiConfigSchema = z49.object({
|
|
26722
26729
|
sidebar: TuiSidebarConfigSchema.default({ enabled: true })
|
|
26723
26730
|
});
|
|
26724
26731
|
|
|
26725
26732
|
// packages/omo-opencode/src/config/schema/ulw-execute.ts
|
|
26726
|
-
import { z as
|
|
26727
|
-
var UlwExecuteConfigSchema =
|
|
26728
|
-
auto_commit:
|
|
26733
|
+
import { z as z50 } from "zod";
|
|
26734
|
+
var UlwExecuteConfigSchema = z50.object({
|
|
26735
|
+
auto_commit: z50.boolean().default(true)
|
|
26729
26736
|
});
|
|
26730
26737
|
|
|
26731
26738
|
// packages/omo-opencode/src/config/schema/websearch.ts
|
|
26732
|
-
import { z as
|
|
26733
|
-
var WebsearchProviderSchema =
|
|
26734
|
-
var WebsearchConfigSchema =
|
|
26739
|
+
import { z as z51 } from "zod";
|
|
26740
|
+
var WebsearchProviderSchema = z51.enum(["exa", "tavily"]);
|
|
26741
|
+
var WebsearchConfigSchema = z51.object({
|
|
26735
26742
|
provider: WebsearchProviderSchema.optional()
|
|
26736
26743
|
});
|
|
26737
26744
|
|
|
26738
26745
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
26739
|
-
var OhMyOpenCodeConfigSchema =
|
|
26740
|
-
$schema:
|
|
26741
|
-
new_task_system_enabled:
|
|
26742
|
-
default_run_agent:
|
|
26743
|
-
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(),
|
|
26744
26751
|
agent_definitions: AgentDefinitionsConfigSchema,
|
|
26745
|
-
disabled_mcps:
|
|
26746
|
-
disabled_agents:
|
|
26747
|
-
disabled_skills:
|
|
26748
|
-
disabled_hooks:
|
|
26749
|
-
disabled_commands:
|
|
26750
|
-
disabled_tools:
|
|
26751
|
-
disabled_providers:
|
|
26752
|
-
mcp_env_allowlist:
|
|
26753
|
-
hashline_edit:
|
|
26754
|
-
telemetry:
|
|
26755
|
-
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(),
|
|
26756
26763
|
agents: AgentOverridesSchema.optional(),
|
|
26757
26764
|
categories: CategoriesConfigSchema.optional(),
|
|
26758
26765
|
claude_code: ClaudeCodeConfigSchema.optional(),
|
|
26759
26766
|
sisyphus_agent: SisyphusAgentConfigSchema.optional(),
|
|
26760
26767
|
comment_checker: CommentCheckerConfigSchema.optional(),
|
|
26761
26768
|
experimental: ExperimentalConfigSchema.optional(),
|
|
26762
|
-
auto_update:
|
|
26769
|
+
auto_update: z52.boolean().optional(),
|
|
26763
26770
|
skills: SkillsConfigSchema.optional(),
|
|
26764
26771
|
goal: GoalConfigSchema.optional(),
|
|
26765
|
-
ralph_loop:
|
|
26766
|
-
runtime_fallback:
|
|
26772
|
+
ralph_loop: z52.record(z52.string(), z52.unknown()).optional(),
|
|
26773
|
+
runtime_fallback: z52.union([z52.boolean(), RuntimeFallbackConfigSchema]).optional(),
|
|
26767
26774
|
background_task: BackgroundTaskConfigSchema.optional(),
|
|
26768
26775
|
notification: NotificationConfigSchema.optional(),
|
|
26769
26776
|
model_capabilities: ModelCapabilitiesConfigSchema.optional(),
|
|
@@ -26786,7 +26793,7 @@ var OhMyOpenCodeConfigSchema = z51.object({
|
|
|
26786
26793
|
ulw_execute: UlwExecuteConfigSchema.optional(),
|
|
26787
26794
|
start_work: UlwExecuteConfigSchema.optional(),
|
|
26788
26795
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
26789
|
-
_migrations:
|
|
26796
|
+
_migrations: z52.array(z52.string()).optional()
|
|
26790
26797
|
});
|
|
26791
26798
|
// packages/omo-opencode/src/config/prune-plugin-view.ts
|
|
26792
26799
|
var validatePluginRecord = (record) => {
|
|
@@ -98575,7 +98582,7 @@ function getCachedVersion(options = {}) {
|
|
|
98575
98582
|
// package.json
|
|
98576
98583
|
var package_default = {
|
|
98577
98584
|
name: "oh-my-opencode",
|
|
98578
|
-
version: "5.1.
|
|
98585
|
+
version: "5.1.9",
|
|
98579
98586
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
98580
98587
|
main: "./dist/index.js",
|
|
98581
98588
|
types: "dist/index.d.ts",
|
|
@@ -98752,7 +98759,7 @@ var package_default = {
|
|
|
98752
98759
|
},
|
|
98753
98760
|
devDependencies: {
|
|
98754
98761
|
"@clack/prompts": "^1.8.1",
|
|
98755
|
-
"@code-yeongyu/senpi": "2026.10.1-
|
|
98762
|
+
"@code-yeongyu/senpi": "2026.10.1-3",
|
|
98756
98763
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
98757
98764
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
98758
98765
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -98810,18 +98817,18 @@ var package_default = {
|
|
|
98810
98817
|
typescript: "^7.0.2"
|
|
98811
98818
|
},
|
|
98812
98819
|
optionalDependencies: {
|
|
98813
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
98814
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
98815
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
98816
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
98817
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
98818
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
98819
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
98820
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
98821
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
98822
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
98823
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
98824
|
-
"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"
|
|
98825
98832
|
},
|
|
98826
98833
|
overrides: {
|
|
98827
98834
|
hono: "^4.13.8",
|
|
@@ -107580,35 +107587,35 @@ import { mkdirSync as mkdirSync18, readFileSync as readFileSync47, renameSync as
|
|
|
107580
107587
|
import { join as join86 } from "path";
|
|
107581
107588
|
|
|
107582
107589
|
// packages/omo-opencode/src/hooks/goal/types.ts
|
|
107583
|
-
import { z as
|
|
107590
|
+
import { z as z54 } from "zod";
|
|
107584
107591
|
var GOAL_STATUS_VALUES = ["active", "paused", "complete"];
|
|
107585
|
-
var GoalStatusSchema =
|
|
107586
|
-
var GoalSchema =
|
|
107587
|
-
id:
|
|
107588
|
-
sessionID:
|
|
107589
|
-
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(),
|
|
107590
107597
|
status: GoalStatusSchema,
|
|
107591
|
-
tokensUsed:
|
|
107592
|
-
timeUsedSeconds:
|
|
107593
|
-
createdAt:
|
|
107594
|
-
updatedAt:
|
|
107595
|
-
lastStartedAt:
|
|
107596
|
-
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()
|
|
107597
107604
|
});
|
|
107598
|
-
var GoalFileSchema =
|
|
107599
|
-
version:
|
|
107605
|
+
var GoalFileSchema = z54.object({
|
|
107606
|
+
version: z54.literal(1),
|
|
107600
107607
|
goal: GoalSchema.nullable()
|
|
107601
107608
|
});
|
|
107602
|
-
var GoalToolSnapshotSchema =
|
|
107603
|
-
sessionID:
|
|
107604
|
-
objective:
|
|
107609
|
+
var GoalToolSnapshotSchema = z54.object({
|
|
107610
|
+
sessionID: z54.string(),
|
|
107611
|
+
objective: z54.string(),
|
|
107605
107612
|
status: GoalStatusSchema,
|
|
107606
|
-
tokensUsed:
|
|
107607
|
-
timeUsedSeconds:
|
|
107608
|
-
createdAt:
|
|
107609
|
-
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()
|
|
107610
107617
|
});
|
|
107611
|
-
var GoalToolResponseSchema =
|
|
107618
|
+
var GoalToolResponseSchema = z54.object({
|
|
107612
107619
|
goal: GoalToolSnapshotSchema.nullable()
|
|
107613
107620
|
});
|
|
107614
107621
|
|
|
@@ -125020,11 +125027,11 @@ function createMonitorStatusInjectorHook(monitorManager, config) {
|
|
|
125020
125027
|
import { resolve as resolve27 } from "path";
|
|
125021
125028
|
|
|
125022
125029
|
// node_modules/.bun/@opencode-ai+plugin@1.18.31+7445fc152a67980a/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
125023
|
-
import { z as
|
|
125030
|
+
import { z as z55 } from "zod";
|
|
125024
125031
|
function tool(input) {
|
|
125025
125032
|
return input;
|
|
125026
125033
|
}
|
|
125027
|
-
tool.schema =
|
|
125034
|
+
tool.schema = z55;
|
|
125028
125035
|
|
|
125029
125036
|
// packages/omo-opencode/src/shared/ripgrep-cli.ts
|
|
125030
125037
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
@@ -134155,55 +134162,55 @@ function isExplicitSyncRun(runInBackground) {
|
|
|
134155
134162
|
import { join as join121 } from "path";
|
|
134156
134163
|
|
|
134157
134164
|
// packages/omo-opencode/src/tools/task/types.ts
|
|
134158
|
-
import { z as
|
|
134159
|
-
var TaskStatusSchema =
|
|
134160
|
-
var TaskObjectSchema =
|
|
134161
|
-
id:
|
|
134162
|
-
subject:
|
|
134163
|
-
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(),
|
|
134164
134171
|
status: TaskStatusSchema,
|
|
134165
|
-
activeForm:
|
|
134166
|
-
blocks:
|
|
134167
|
-
blockedBy:
|
|
134168
|
-
owner:
|
|
134169
|
-
metadata:
|
|
134170
|
-
repoURL:
|
|
134171
|
-
parentID:
|
|
134172
|
-
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()
|
|
134173
134180
|
}).strict();
|
|
134174
|
-
var TaskCreateInputSchema =
|
|
134175
|
-
subject:
|
|
134176
|
-
description:
|
|
134177
|
-
activeForm:
|
|
134178
|
-
blocks:
|
|
134179
|
-
blockedBy:
|
|
134180
|
-
owner:
|
|
134181
|
-
metadata:
|
|
134182
|
-
repoURL:
|
|
134183
|
-
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()
|
|
134184
134191
|
});
|
|
134185
|
-
var TaskListInputSchema =
|
|
134192
|
+
var TaskListInputSchema = z56.object({
|
|
134186
134193
|
status: TaskStatusSchema.optional(),
|
|
134187
|
-
parentID:
|
|
134194
|
+
parentID: z56.string().optional()
|
|
134188
134195
|
});
|
|
134189
|
-
var TaskGetInputSchema =
|
|
134190
|
-
id:
|
|
134196
|
+
var TaskGetInputSchema = z56.object({
|
|
134197
|
+
id: z56.string()
|
|
134191
134198
|
});
|
|
134192
|
-
var TaskUpdateInputSchema =
|
|
134193
|
-
id:
|
|
134194
|
-
subject:
|
|
134195
|
-
description:
|
|
134199
|
+
var TaskUpdateInputSchema = z56.object({
|
|
134200
|
+
id: z56.string(),
|
|
134201
|
+
subject: z56.string().optional(),
|
|
134202
|
+
description: z56.string().optional(),
|
|
134196
134203
|
status: TaskStatusSchema.optional(),
|
|
134197
|
-
activeForm:
|
|
134198
|
-
addBlocks:
|
|
134199
|
-
addBlockedBy:
|
|
134200
|
-
owner:
|
|
134201
|
-
metadata:
|
|
134202
|
-
repoURL:
|
|
134203
|
-
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()
|
|
134204
134211
|
});
|
|
134205
|
-
var TaskDeleteInputSchema =
|
|
134206
|
-
id:
|
|
134212
|
+
var TaskDeleteInputSchema = z56.object({
|
|
134213
|
+
id: z56.string()
|
|
134207
134214
|
});
|
|
134208
134215
|
|
|
134209
134216
|
// packages/omo-opencode/src/features/claude-tasks/storage.ts
|
|
@@ -135104,7 +135111,7 @@ function createHashlineEditTool(ctx) {
|
|
|
135104
135111
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
135105
135112
|
import { randomUUID as randomUUID11 } from "crypto";
|
|
135106
135113
|
init_logger2();
|
|
135107
|
-
import { z as
|
|
135114
|
+
import { z as z57 } from "zod";
|
|
135108
135115
|
|
|
135109
135116
|
// packages/team-core/src/team-mailbox/send.ts
|
|
135110
135117
|
init_paths();
|
|
@@ -135685,18 +135692,18 @@ async function resolveTeamRuntimeDetails(teamRunId, sessionID, config, deps) {
|
|
|
135685
135692
|
|
|
135686
135693
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
135687
135694
|
var MESSAGE_TOOL_KINDS = ["message", "announcement"];
|
|
135688
|
-
var TeamReferenceArgsSchema =
|
|
135689
|
-
path:
|
|
135690
|
-
description:
|
|
135695
|
+
var TeamReferenceArgsSchema = z57.object({
|
|
135696
|
+
path: z57.string().min(1),
|
|
135697
|
+
description: z57.string().optional()
|
|
135691
135698
|
});
|
|
135692
|
-
var TeamSendMessageArgsSchema =
|
|
135693
|
-
teamRunId:
|
|
135694
|
-
to:
|
|
135695
|
-
body:
|
|
135696
|
-
kind:
|
|
135697
|
-
correlationId:
|
|
135698
|
-
summary:
|
|
135699
|
-
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()
|
|
135700
135707
|
});
|
|
135701
135708
|
function createTeamSendMessageTool(config, client, deps = defaultTeamSendMessageToolDeps) {
|
|
135702
135709
|
return tool({
|
|
@@ -144361,63 +144368,63 @@ function getLiteralValue(schema) {
|
|
|
144361
144368
|
}
|
|
144362
144369
|
|
|
144363
144370
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
144364
|
-
import * as
|
|
144371
|
+
import * as z58 from "zod/v4";
|
|
144365
144372
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
144366
144373
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
144367
144374
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
144368
144375
|
var JSONRPC_VERSION = "2.0";
|
|
144369
|
-
var AssertObjectSchema =
|
|
144370
|
-
var ProgressTokenSchema =
|
|
144371
|
-
var CursorSchema =
|
|
144372
|
-
var TaskCreationParamsSchema =
|
|
144373
|
-
ttl:
|
|
144374
|
-
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()
|
|
144375
144382
|
});
|
|
144376
|
-
var TaskMetadataSchema =
|
|
144377
|
-
ttl:
|
|
144383
|
+
var TaskMetadataSchema = z58.object({
|
|
144384
|
+
ttl: z58.number().optional()
|
|
144378
144385
|
});
|
|
144379
|
-
var RelatedTaskMetadataSchema =
|
|
144380
|
-
taskId:
|
|
144386
|
+
var RelatedTaskMetadataSchema = z58.object({
|
|
144387
|
+
taskId: z58.string()
|
|
144381
144388
|
});
|
|
144382
|
-
var RequestMetaSchema =
|
|
144389
|
+
var RequestMetaSchema = z58.looseObject({
|
|
144383
144390
|
progressToken: ProgressTokenSchema.optional(),
|
|
144384
144391
|
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
|
144385
144392
|
});
|
|
144386
|
-
var BaseRequestParamsSchema =
|
|
144393
|
+
var BaseRequestParamsSchema = z58.object({
|
|
144387
144394
|
_meta: RequestMetaSchema.optional()
|
|
144388
144395
|
});
|
|
144389
144396
|
var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144390
144397
|
task: TaskMetadataSchema.optional()
|
|
144391
144398
|
});
|
|
144392
144399
|
var isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success;
|
|
144393
|
-
var RequestSchema =
|
|
144394
|
-
method:
|
|
144400
|
+
var RequestSchema = z58.object({
|
|
144401
|
+
method: z58.string(),
|
|
144395
144402
|
params: BaseRequestParamsSchema.loose().optional()
|
|
144396
144403
|
});
|
|
144397
|
-
var NotificationsParamsSchema =
|
|
144404
|
+
var NotificationsParamsSchema = z58.object({
|
|
144398
144405
|
_meta: RequestMetaSchema.optional()
|
|
144399
144406
|
});
|
|
144400
|
-
var NotificationSchema =
|
|
144401
|
-
method:
|
|
144407
|
+
var NotificationSchema = z58.object({
|
|
144408
|
+
method: z58.string(),
|
|
144402
144409
|
params: NotificationsParamsSchema.loose().optional()
|
|
144403
144410
|
});
|
|
144404
|
-
var ResultSchema =
|
|
144411
|
+
var ResultSchema = z58.looseObject({
|
|
144405
144412
|
_meta: RequestMetaSchema.optional()
|
|
144406
144413
|
});
|
|
144407
|
-
var RequestIdSchema =
|
|
144408
|
-
var JSONRPCRequestSchema =
|
|
144409
|
-
jsonrpc:
|
|
144414
|
+
var RequestIdSchema = z58.union([z58.string(), z58.number().int()]);
|
|
144415
|
+
var JSONRPCRequestSchema = z58.object({
|
|
144416
|
+
jsonrpc: z58.literal(JSONRPC_VERSION),
|
|
144410
144417
|
id: RequestIdSchema,
|
|
144411
144418
|
...RequestSchema.shape
|
|
144412
144419
|
}).strict();
|
|
144413
144420
|
var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
|
144414
|
-
var JSONRPCNotificationSchema =
|
|
144415
|
-
jsonrpc:
|
|
144421
|
+
var JSONRPCNotificationSchema = z58.object({
|
|
144422
|
+
jsonrpc: z58.literal(JSONRPC_VERSION),
|
|
144416
144423
|
...NotificationSchema.shape
|
|
144417
144424
|
}).strict();
|
|
144418
144425
|
var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
|
144419
|
-
var JSONRPCResultResponseSchema =
|
|
144420
|
-
jsonrpc:
|
|
144426
|
+
var JSONRPCResultResponseSchema = z58.object({
|
|
144427
|
+
jsonrpc: z58.literal(JSONRPC_VERSION),
|
|
144421
144428
|
id: RequestIdSchema,
|
|
144422
144429
|
result: ResultSchema
|
|
144423
144430
|
}).strict();
|
|
@@ -144433,153 +144440,153 @@ var ErrorCode;
|
|
|
144433
144440
|
ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError";
|
|
144434
144441
|
ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
|
|
144435
144442
|
})(ErrorCode || (ErrorCode = {}));
|
|
144436
|
-
var JSONRPCErrorResponseSchema =
|
|
144437
|
-
jsonrpc:
|
|
144443
|
+
var JSONRPCErrorResponseSchema = z58.object({
|
|
144444
|
+
jsonrpc: z58.literal(JSONRPC_VERSION),
|
|
144438
144445
|
id: RequestIdSchema.optional(),
|
|
144439
|
-
error:
|
|
144440
|
-
code:
|
|
144441
|
-
message:
|
|
144442
|
-
data:
|
|
144446
|
+
error: z58.object({
|
|
144447
|
+
code: z58.number().int(),
|
|
144448
|
+
message: z58.string(),
|
|
144449
|
+
data: z58.unknown().optional()
|
|
144443
144450
|
})
|
|
144444
144451
|
}).strict();
|
|
144445
144452
|
var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
|
|
144446
|
-
var JSONRPCMessageSchema =
|
|
144453
|
+
var JSONRPCMessageSchema = z58.union([
|
|
144447
144454
|
JSONRPCRequestSchema,
|
|
144448
144455
|
JSONRPCNotificationSchema,
|
|
144449
144456
|
JSONRPCResultResponseSchema,
|
|
144450
144457
|
JSONRPCErrorResponseSchema
|
|
144451
144458
|
]);
|
|
144452
|
-
var JSONRPCResponseSchema =
|
|
144459
|
+
var JSONRPCResponseSchema = z58.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
|
144453
144460
|
var EmptyResultSchema = ResultSchema.strict();
|
|
144454
144461
|
var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
144455
144462
|
requestId: RequestIdSchema.optional(),
|
|
144456
|
-
reason:
|
|
144463
|
+
reason: z58.string().optional()
|
|
144457
144464
|
});
|
|
144458
144465
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
144459
|
-
method:
|
|
144466
|
+
method: z58.literal("notifications/cancelled"),
|
|
144460
144467
|
params: CancelledNotificationParamsSchema
|
|
144461
144468
|
});
|
|
144462
|
-
var IconSchema =
|
|
144463
|
-
src:
|
|
144464
|
-
mimeType:
|
|
144465
|
-
sizes:
|
|
144466
|
-
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()
|
|
144467
144474
|
});
|
|
144468
|
-
var IconsSchema =
|
|
144469
|
-
icons:
|
|
144475
|
+
var IconsSchema = z58.object({
|
|
144476
|
+
icons: z58.array(IconSchema).optional()
|
|
144470
144477
|
});
|
|
144471
|
-
var BaseMetadataSchema =
|
|
144472
|
-
name:
|
|
144473
|
-
title:
|
|
144478
|
+
var BaseMetadataSchema = z58.object({
|
|
144479
|
+
name: z58.string(),
|
|
144480
|
+
title: z58.string().optional()
|
|
144474
144481
|
});
|
|
144475
144482
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
144476
144483
|
...BaseMetadataSchema.shape,
|
|
144477
144484
|
...IconsSchema.shape,
|
|
144478
|
-
version:
|
|
144479
|
-
websiteUrl:
|
|
144480
|
-
description:
|
|
144485
|
+
version: z58.string(),
|
|
144486
|
+
websiteUrl: z58.string().optional(),
|
|
144487
|
+
description: z58.string().optional()
|
|
144481
144488
|
});
|
|
144482
|
-
var FormElicitationCapabilitySchema =
|
|
144483
|
-
applyDefaults:
|
|
144484
|
-
}),
|
|
144485
|
-
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) => {
|
|
144486
144493
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
144487
144494
|
if (Object.keys(value).length === 0) {
|
|
144488
144495
|
return { form: {} };
|
|
144489
144496
|
}
|
|
144490
144497
|
}
|
|
144491
144498
|
return value;
|
|
144492
|
-
},
|
|
144499
|
+
}, z58.intersection(z58.object({
|
|
144493
144500
|
form: FormElicitationCapabilitySchema.optional(),
|
|
144494
144501
|
url: AssertObjectSchema.optional()
|
|
144495
|
-
}),
|
|
144496
|
-
var ClientTasksCapabilitySchema =
|
|
144502
|
+
}), z58.record(z58.string(), z58.unknown()).optional()));
|
|
144503
|
+
var ClientTasksCapabilitySchema = z58.looseObject({
|
|
144497
144504
|
list: AssertObjectSchema.optional(),
|
|
144498
144505
|
cancel: AssertObjectSchema.optional(),
|
|
144499
|
-
requests:
|
|
144500
|
-
sampling:
|
|
144506
|
+
requests: z58.looseObject({
|
|
144507
|
+
sampling: z58.looseObject({
|
|
144501
144508
|
createMessage: AssertObjectSchema.optional()
|
|
144502
144509
|
}).optional(),
|
|
144503
|
-
elicitation:
|
|
144510
|
+
elicitation: z58.looseObject({
|
|
144504
144511
|
create: AssertObjectSchema.optional()
|
|
144505
144512
|
}).optional()
|
|
144506
144513
|
}).optional()
|
|
144507
144514
|
});
|
|
144508
|
-
var ServerTasksCapabilitySchema =
|
|
144515
|
+
var ServerTasksCapabilitySchema = z58.looseObject({
|
|
144509
144516
|
list: AssertObjectSchema.optional(),
|
|
144510
144517
|
cancel: AssertObjectSchema.optional(),
|
|
144511
|
-
requests:
|
|
144512
|
-
tools:
|
|
144518
|
+
requests: z58.looseObject({
|
|
144519
|
+
tools: z58.looseObject({
|
|
144513
144520
|
call: AssertObjectSchema.optional()
|
|
144514
144521
|
}).optional()
|
|
144515
144522
|
}).optional()
|
|
144516
144523
|
});
|
|
144517
|
-
var ClientCapabilitiesSchema =
|
|
144518
|
-
experimental:
|
|
144519
|
-
sampling:
|
|
144524
|
+
var ClientCapabilitiesSchema = z58.object({
|
|
144525
|
+
experimental: z58.record(z58.string(), AssertObjectSchema).optional(),
|
|
144526
|
+
sampling: z58.object({
|
|
144520
144527
|
context: AssertObjectSchema.optional(),
|
|
144521
144528
|
tools: AssertObjectSchema.optional()
|
|
144522
144529
|
}).optional(),
|
|
144523
144530
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
144524
|
-
roots:
|
|
144525
|
-
listChanged:
|
|
144531
|
+
roots: z58.object({
|
|
144532
|
+
listChanged: z58.boolean().optional()
|
|
144526
144533
|
}).optional(),
|
|
144527
144534
|
tasks: ClientTasksCapabilitySchema.optional(),
|
|
144528
|
-
extensions:
|
|
144535
|
+
extensions: z58.record(z58.string(), AssertObjectSchema).optional()
|
|
144529
144536
|
});
|
|
144530
144537
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144531
|
-
protocolVersion:
|
|
144538
|
+
protocolVersion: z58.string(),
|
|
144532
144539
|
capabilities: ClientCapabilitiesSchema,
|
|
144533
144540
|
clientInfo: ImplementationSchema
|
|
144534
144541
|
});
|
|
144535
144542
|
var InitializeRequestSchema = RequestSchema.extend({
|
|
144536
|
-
method:
|
|
144543
|
+
method: z58.literal("initialize"),
|
|
144537
144544
|
params: InitializeRequestParamsSchema
|
|
144538
144545
|
});
|
|
144539
|
-
var ServerCapabilitiesSchema =
|
|
144540
|
-
experimental:
|
|
144546
|
+
var ServerCapabilitiesSchema = z58.object({
|
|
144547
|
+
experimental: z58.record(z58.string(), AssertObjectSchema).optional(),
|
|
144541
144548
|
logging: AssertObjectSchema.optional(),
|
|
144542
144549
|
completions: AssertObjectSchema.optional(),
|
|
144543
|
-
prompts:
|
|
144544
|
-
listChanged:
|
|
144550
|
+
prompts: z58.object({
|
|
144551
|
+
listChanged: z58.boolean().optional()
|
|
144545
144552
|
}).optional(),
|
|
144546
|
-
resources:
|
|
144547
|
-
subscribe:
|
|
144548
|
-
listChanged:
|
|
144553
|
+
resources: z58.object({
|
|
144554
|
+
subscribe: z58.boolean().optional(),
|
|
144555
|
+
listChanged: z58.boolean().optional()
|
|
144549
144556
|
}).optional(),
|
|
144550
|
-
tools:
|
|
144551
|
-
listChanged:
|
|
144557
|
+
tools: z58.object({
|
|
144558
|
+
listChanged: z58.boolean().optional()
|
|
144552
144559
|
}).optional(),
|
|
144553
144560
|
tasks: ServerTasksCapabilitySchema.optional(),
|
|
144554
|
-
extensions:
|
|
144561
|
+
extensions: z58.record(z58.string(), AssertObjectSchema).optional()
|
|
144555
144562
|
});
|
|
144556
144563
|
var InitializeResultSchema = ResultSchema.extend({
|
|
144557
|
-
protocolVersion:
|
|
144564
|
+
protocolVersion: z58.string(),
|
|
144558
144565
|
capabilities: ServerCapabilitiesSchema,
|
|
144559
144566
|
serverInfo: ImplementationSchema,
|
|
144560
|
-
instructions:
|
|
144567
|
+
instructions: z58.string().optional()
|
|
144561
144568
|
});
|
|
144562
144569
|
var InitializedNotificationSchema = NotificationSchema.extend({
|
|
144563
|
-
method:
|
|
144570
|
+
method: z58.literal("notifications/initialized"),
|
|
144564
144571
|
params: NotificationsParamsSchema.optional()
|
|
144565
144572
|
});
|
|
144566
144573
|
var isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success;
|
|
144567
144574
|
var PingRequestSchema = RequestSchema.extend({
|
|
144568
|
-
method:
|
|
144575
|
+
method: z58.literal("ping"),
|
|
144569
144576
|
params: BaseRequestParamsSchema.optional()
|
|
144570
144577
|
});
|
|
144571
|
-
var ProgressSchema =
|
|
144572
|
-
progress:
|
|
144573
|
-
total:
|
|
144574
|
-
message:
|
|
144578
|
+
var ProgressSchema = z58.object({
|
|
144579
|
+
progress: z58.number(),
|
|
144580
|
+
total: z58.optional(z58.number()),
|
|
144581
|
+
message: z58.optional(z58.string())
|
|
144575
144582
|
});
|
|
144576
|
-
var ProgressNotificationParamsSchema =
|
|
144583
|
+
var ProgressNotificationParamsSchema = z58.object({
|
|
144577
144584
|
...NotificationsParamsSchema.shape,
|
|
144578
144585
|
...ProgressSchema.shape,
|
|
144579
144586
|
progressToken: ProgressTokenSchema
|
|
144580
144587
|
});
|
|
144581
144588
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
144582
|
-
method:
|
|
144589
|
+
method: z58.literal("notifications/progress"),
|
|
144583
144590
|
params: ProgressNotificationParamsSchema
|
|
144584
144591
|
});
|
|
144585
144592
|
var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
@@ -144591,60 +144598,60 @@ var PaginatedRequestSchema = RequestSchema.extend({
|
|
|
144591
144598
|
var PaginatedResultSchema = ResultSchema.extend({
|
|
144592
144599
|
nextCursor: CursorSchema.optional()
|
|
144593
144600
|
});
|
|
144594
|
-
var TaskStatusSchema2 =
|
|
144595
|
-
var TaskSchema2 =
|
|
144596
|
-
taskId:
|
|
144601
|
+
var TaskStatusSchema2 = z58.enum(["working", "input_required", "completed", "failed", "cancelled"]);
|
|
144602
|
+
var TaskSchema2 = z58.object({
|
|
144603
|
+
taskId: z58.string(),
|
|
144597
144604
|
status: TaskStatusSchema2,
|
|
144598
|
-
ttl:
|
|
144599
|
-
createdAt:
|
|
144600
|
-
lastUpdatedAt:
|
|
144601
|
-
pollInterval:
|
|
144602
|
-
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())
|
|
144603
144610
|
});
|
|
144604
144611
|
var CreateTaskResultSchema = ResultSchema.extend({
|
|
144605
144612
|
task: TaskSchema2
|
|
144606
144613
|
});
|
|
144607
144614
|
var TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema2);
|
|
144608
144615
|
var TaskStatusNotificationSchema = NotificationSchema.extend({
|
|
144609
|
-
method:
|
|
144616
|
+
method: z58.literal("notifications/tasks/status"),
|
|
144610
144617
|
params: TaskStatusNotificationParamsSchema
|
|
144611
144618
|
});
|
|
144612
144619
|
var GetTaskRequestSchema = RequestSchema.extend({
|
|
144613
|
-
method:
|
|
144620
|
+
method: z58.literal("tasks/get"),
|
|
144614
144621
|
params: BaseRequestParamsSchema.extend({
|
|
144615
|
-
taskId:
|
|
144622
|
+
taskId: z58.string()
|
|
144616
144623
|
})
|
|
144617
144624
|
});
|
|
144618
144625
|
var GetTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
144619
144626
|
var GetTaskPayloadRequestSchema = RequestSchema.extend({
|
|
144620
|
-
method:
|
|
144627
|
+
method: z58.literal("tasks/result"),
|
|
144621
144628
|
params: BaseRequestParamsSchema.extend({
|
|
144622
|
-
taskId:
|
|
144629
|
+
taskId: z58.string()
|
|
144623
144630
|
})
|
|
144624
144631
|
});
|
|
144625
144632
|
var GetTaskPayloadResultSchema = ResultSchema.loose();
|
|
144626
144633
|
var ListTasksRequestSchema = PaginatedRequestSchema.extend({
|
|
144627
|
-
method:
|
|
144634
|
+
method: z58.literal("tasks/list")
|
|
144628
144635
|
});
|
|
144629
144636
|
var ListTasksResultSchema = PaginatedResultSchema.extend({
|
|
144630
|
-
tasks:
|
|
144637
|
+
tasks: z58.array(TaskSchema2)
|
|
144631
144638
|
});
|
|
144632
144639
|
var CancelTaskRequestSchema = RequestSchema.extend({
|
|
144633
|
-
method:
|
|
144640
|
+
method: z58.literal("tasks/cancel"),
|
|
144634
144641
|
params: BaseRequestParamsSchema.extend({
|
|
144635
|
-
taskId:
|
|
144642
|
+
taskId: z58.string()
|
|
144636
144643
|
})
|
|
144637
144644
|
});
|
|
144638
144645
|
var CancelTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
144639
|
-
var ResourceContentsSchema =
|
|
144640
|
-
uri:
|
|
144641
|
-
mimeType:
|
|
144642
|
-
_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()
|
|
144643
144650
|
});
|
|
144644
144651
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
144645
|
-
text:
|
|
144652
|
+
text: z58.string()
|
|
144646
144653
|
});
|
|
144647
|
-
var Base64Schema =
|
|
144654
|
+
var Base64Schema = z58.string().refine((val) => {
|
|
144648
144655
|
try {
|
|
144649
144656
|
atob(val);
|
|
144650
144657
|
return true;
|
|
@@ -144655,447 +144662,447 @@ var Base64Schema = z57.string().refine((val) => {
|
|
|
144655
144662
|
var BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
144656
144663
|
blob: Base64Schema
|
|
144657
144664
|
});
|
|
144658
|
-
var RoleSchema =
|
|
144659
|
-
var AnnotationsSchema =
|
|
144660
|
-
audience:
|
|
144661
|
-
priority:
|
|
144662
|
-
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()
|
|
144663
144670
|
});
|
|
144664
|
-
var ResourceSchema =
|
|
144671
|
+
var ResourceSchema = z58.object({
|
|
144665
144672
|
...BaseMetadataSchema.shape,
|
|
144666
144673
|
...IconsSchema.shape,
|
|
144667
|
-
uri:
|
|
144668
|
-
description:
|
|
144669
|
-
mimeType:
|
|
144670
|
-
size:
|
|
144674
|
+
uri: z58.string(),
|
|
144675
|
+
description: z58.optional(z58.string()),
|
|
144676
|
+
mimeType: z58.optional(z58.string()),
|
|
144677
|
+
size: z58.optional(z58.number()),
|
|
144671
144678
|
annotations: AnnotationsSchema.optional(),
|
|
144672
|
-
_meta:
|
|
144679
|
+
_meta: z58.optional(z58.looseObject({}))
|
|
144673
144680
|
});
|
|
144674
|
-
var ResourceTemplateSchema =
|
|
144681
|
+
var ResourceTemplateSchema = z58.object({
|
|
144675
144682
|
...BaseMetadataSchema.shape,
|
|
144676
144683
|
...IconsSchema.shape,
|
|
144677
|
-
uriTemplate:
|
|
144678
|
-
description:
|
|
144679
|
-
mimeType:
|
|
144684
|
+
uriTemplate: z58.string(),
|
|
144685
|
+
description: z58.optional(z58.string()),
|
|
144686
|
+
mimeType: z58.optional(z58.string()),
|
|
144680
144687
|
annotations: AnnotationsSchema.optional(),
|
|
144681
|
-
_meta:
|
|
144688
|
+
_meta: z58.optional(z58.looseObject({}))
|
|
144682
144689
|
});
|
|
144683
144690
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
144684
|
-
method:
|
|
144691
|
+
method: z58.literal("resources/list")
|
|
144685
144692
|
});
|
|
144686
144693
|
var ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
144687
|
-
resources:
|
|
144694
|
+
resources: z58.array(ResourceSchema)
|
|
144688
144695
|
});
|
|
144689
144696
|
var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
144690
|
-
method:
|
|
144697
|
+
method: z58.literal("resources/templates/list")
|
|
144691
144698
|
});
|
|
144692
144699
|
var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
144693
|
-
resourceTemplates:
|
|
144700
|
+
resourceTemplates: z58.array(ResourceTemplateSchema)
|
|
144694
144701
|
});
|
|
144695
144702
|
var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144696
|
-
uri:
|
|
144703
|
+
uri: z58.string()
|
|
144697
144704
|
});
|
|
144698
144705
|
var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
|
144699
144706
|
var ReadResourceRequestSchema = RequestSchema.extend({
|
|
144700
|
-
method:
|
|
144707
|
+
method: z58.literal("resources/read"),
|
|
144701
144708
|
params: ReadResourceRequestParamsSchema
|
|
144702
144709
|
});
|
|
144703
144710
|
var ReadResourceResultSchema = ResultSchema.extend({
|
|
144704
|
-
contents:
|
|
144711
|
+
contents: z58.array(z58.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
144705
144712
|
});
|
|
144706
144713
|
var ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
144707
|
-
method:
|
|
144714
|
+
method: z58.literal("notifications/resources/list_changed"),
|
|
144708
144715
|
params: NotificationsParamsSchema.optional()
|
|
144709
144716
|
});
|
|
144710
144717
|
var SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
144711
144718
|
var SubscribeRequestSchema = RequestSchema.extend({
|
|
144712
|
-
method:
|
|
144719
|
+
method: z58.literal("resources/subscribe"),
|
|
144713
144720
|
params: SubscribeRequestParamsSchema
|
|
144714
144721
|
});
|
|
144715
144722
|
var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
144716
144723
|
var UnsubscribeRequestSchema = RequestSchema.extend({
|
|
144717
|
-
method:
|
|
144724
|
+
method: z58.literal("resources/unsubscribe"),
|
|
144718
144725
|
params: UnsubscribeRequestParamsSchema
|
|
144719
144726
|
});
|
|
144720
144727
|
var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
144721
|
-
uri:
|
|
144728
|
+
uri: z58.string()
|
|
144722
144729
|
});
|
|
144723
144730
|
var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
144724
|
-
method:
|
|
144731
|
+
method: z58.literal("notifications/resources/updated"),
|
|
144725
144732
|
params: ResourceUpdatedNotificationParamsSchema
|
|
144726
144733
|
});
|
|
144727
|
-
var PromptArgumentSchema =
|
|
144728
|
-
name:
|
|
144729
|
-
description:
|
|
144730
|
-
required:
|
|
144734
|
+
var PromptArgumentSchema = z58.object({
|
|
144735
|
+
name: z58.string(),
|
|
144736
|
+
description: z58.optional(z58.string()),
|
|
144737
|
+
required: z58.optional(z58.boolean())
|
|
144731
144738
|
});
|
|
144732
|
-
var PromptSchema =
|
|
144739
|
+
var PromptSchema = z58.object({
|
|
144733
144740
|
...BaseMetadataSchema.shape,
|
|
144734
144741
|
...IconsSchema.shape,
|
|
144735
|
-
description:
|
|
144736
|
-
arguments:
|
|
144737
|
-
_meta:
|
|
144742
|
+
description: z58.optional(z58.string()),
|
|
144743
|
+
arguments: z58.optional(z58.array(PromptArgumentSchema)),
|
|
144744
|
+
_meta: z58.optional(z58.looseObject({}))
|
|
144738
144745
|
});
|
|
144739
144746
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
144740
|
-
method:
|
|
144747
|
+
method: z58.literal("prompts/list")
|
|
144741
144748
|
});
|
|
144742
144749
|
var ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
144743
|
-
prompts:
|
|
144750
|
+
prompts: z58.array(PromptSchema)
|
|
144744
144751
|
});
|
|
144745
144752
|
var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144746
|
-
name:
|
|
144747
|
-
arguments:
|
|
144753
|
+
name: z58.string(),
|
|
144754
|
+
arguments: z58.record(z58.string(), z58.string()).optional()
|
|
144748
144755
|
});
|
|
144749
144756
|
var GetPromptRequestSchema = RequestSchema.extend({
|
|
144750
|
-
method:
|
|
144757
|
+
method: z58.literal("prompts/get"),
|
|
144751
144758
|
params: GetPromptRequestParamsSchema
|
|
144752
144759
|
});
|
|
144753
|
-
var TextContentSchema =
|
|
144754
|
-
type:
|
|
144755
|
-
text:
|
|
144760
|
+
var TextContentSchema = z58.object({
|
|
144761
|
+
type: z58.literal("text"),
|
|
144762
|
+
text: z58.string(),
|
|
144756
144763
|
annotations: AnnotationsSchema.optional(),
|
|
144757
|
-
_meta:
|
|
144764
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144758
144765
|
});
|
|
144759
|
-
var ImageContentSchema =
|
|
144760
|
-
type:
|
|
144766
|
+
var ImageContentSchema = z58.object({
|
|
144767
|
+
type: z58.literal("image"),
|
|
144761
144768
|
data: Base64Schema,
|
|
144762
|
-
mimeType:
|
|
144769
|
+
mimeType: z58.string(),
|
|
144763
144770
|
annotations: AnnotationsSchema.optional(),
|
|
144764
|
-
_meta:
|
|
144771
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144765
144772
|
});
|
|
144766
|
-
var AudioContentSchema =
|
|
144767
|
-
type:
|
|
144773
|
+
var AudioContentSchema = z58.object({
|
|
144774
|
+
type: z58.literal("audio"),
|
|
144768
144775
|
data: Base64Schema,
|
|
144769
|
-
mimeType:
|
|
144776
|
+
mimeType: z58.string(),
|
|
144770
144777
|
annotations: AnnotationsSchema.optional(),
|
|
144771
|
-
_meta:
|
|
144778
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144772
144779
|
});
|
|
144773
|
-
var ToolUseContentSchema =
|
|
144774
|
-
type:
|
|
144775
|
-
name:
|
|
144776
|
-
id:
|
|
144777
|
-
input:
|
|
144778
|
-
_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()
|
|
144779
144786
|
});
|
|
144780
|
-
var EmbeddedResourceSchema =
|
|
144781
|
-
type:
|
|
144782
|
-
resource:
|
|
144787
|
+
var EmbeddedResourceSchema = z58.object({
|
|
144788
|
+
type: z58.literal("resource"),
|
|
144789
|
+
resource: z58.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
144783
144790
|
annotations: AnnotationsSchema.optional(),
|
|
144784
|
-
_meta:
|
|
144791
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144785
144792
|
});
|
|
144786
144793
|
var ResourceLinkSchema = ResourceSchema.extend({
|
|
144787
|
-
type:
|
|
144794
|
+
type: z58.literal("resource_link")
|
|
144788
144795
|
});
|
|
144789
|
-
var ContentBlockSchema =
|
|
144796
|
+
var ContentBlockSchema = z58.union([
|
|
144790
144797
|
TextContentSchema,
|
|
144791
144798
|
ImageContentSchema,
|
|
144792
144799
|
AudioContentSchema,
|
|
144793
144800
|
ResourceLinkSchema,
|
|
144794
144801
|
EmbeddedResourceSchema
|
|
144795
144802
|
]);
|
|
144796
|
-
var PromptMessageSchema =
|
|
144803
|
+
var PromptMessageSchema = z58.object({
|
|
144797
144804
|
role: RoleSchema,
|
|
144798
144805
|
content: ContentBlockSchema
|
|
144799
144806
|
});
|
|
144800
144807
|
var GetPromptResultSchema = ResultSchema.extend({
|
|
144801
|
-
description:
|
|
144802
|
-
messages:
|
|
144808
|
+
description: z58.string().optional(),
|
|
144809
|
+
messages: z58.array(PromptMessageSchema)
|
|
144803
144810
|
});
|
|
144804
144811
|
var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
144805
|
-
method:
|
|
144812
|
+
method: z58.literal("notifications/prompts/list_changed"),
|
|
144806
144813
|
params: NotificationsParamsSchema.optional()
|
|
144807
144814
|
});
|
|
144808
|
-
var ToolAnnotationsSchema =
|
|
144809
|
-
title:
|
|
144810
|
-
readOnlyHint:
|
|
144811
|
-
destructiveHint:
|
|
144812
|
-
idempotentHint:
|
|
144813
|
-
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()
|
|
144814
144821
|
});
|
|
144815
|
-
var ToolExecutionSchema =
|
|
144816
|
-
taskSupport:
|
|
144822
|
+
var ToolExecutionSchema = z58.object({
|
|
144823
|
+
taskSupport: z58.enum(["required", "optional", "forbidden"]).optional()
|
|
144817
144824
|
});
|
|
144818
|
-
var ToolSchema =
|
|
144825
|
+
var ToolSchema = z58.object({
|
|
144819
144826
|
...BaseMetadataSchema.shape,
|
|
144820
144827
|
...IconsSchema.shape,
|
|
144821
|
-
description:
|
|
144822
|
-
inputSchema:
|
|
144823
|
-
type:
|
|
144824
|
-
properties:
|
|
144825
|
-
required:
|
|
144826
|
-
}).catchall(
|
|
144827
|
-
outputSchema:
|
|
144828
|
-
type:
|
|
144829
|
-
properties:
|
|
144830
|
-
required:
|
|
144831
|
-
}).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(),
|
|
144832
144839
|
annotations: ToolAnnotationsSchema.optional(),
|
|
144833
144840
|
execution: ToolExecutionSchema.optional(),
|
|
144834
|
-
_meta:
|
|
144841
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144835
144842
|
});
|
|
144836
144843
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
144837
|
-
method:
|
|
144844
|
+
method: z58.literal("tools/list")
|
|
144838
144845
|
});
|
|
144839
144846
|
var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
144840
|
-
tools:
|
|
144847
|
+
tools: z58.array(ToolSchema)
|
|
144841
144848
|
});
|
|
144842
144849
|
var CallToolResultSchema = ResultSchema.extend({
|
|
144843
|
-
content:
|
|
144844
|
-
structuredContent:
|
|
144845
|
-
isError:
|
|
144850
|
+
content: z58.array(ContentBlockSchema).default([]),
|
|
144851
|
+
structuredContent: z58.record(z58.string(), z58.unknown()).optional(),
|
|
144852
|
+
isError: z58.boolean().optional()
|
|
144846
144853
|
});
|
|
144847
144854
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
144848
|
-
toolResult:
|
|
144855
|
+
toolResult: z58.unknown()
|
|
144849
144856
|
}));
|
|
144850
144857
|
var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
144851
|
-
name:
|
|
144852
|
-
arguments:
|
|
144858
|
+
name: z58.string(),
|
|
144859
|
+
arguments: z58.record(z58.string(), z58.unknown()).optional()
|
|
144853
144860
|
});
|
|
144854
144861
|
var CallToolRequestSchema = RequestSchema.extend({
|
|
144855
|
-
method:
|
|
144862
|
+
method: z58.literal("tools/call"),
|
|
144856
144863
|
params: CallToolRequestParamsSchema
|
|
144857
144864
|
});
|
|
144858
144865
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
144859
|
-
method:
|
|
144866
|
+
method: z58.literal("notifications/tools/list_changed"),
|
|
144860
144867
|
params: NotificationsParamsSchema.optional()
|
|
144861
144868
|
});
|
|
144862
|
-
var ListChangedOptionsBaseSchema =
|
|
144863
|
-
autoRefresh:
|
|
144864
|
-
debounceMs:
|
|
144869
|
+
var ListChangedOptionsBaseSchema = z58.object({
|
|
144870
|
+
autoRefresh: z58.boolean().default(true),
|
|
144871
|
+
debounceMs: z58.number().int().nonnegative().default(300)
|
|
144865
144872
|
});
|
|
144866
|
-
var LoggingLevelSchema =
|
|
144873
|
+
var LoggingLevelSchema = z58.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
144867
144874
|
var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144868
144875
|
level: LoggingLevelSchema
|
|
144869
144876
|
});
|
|
144870
144877
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
144871
|
-
method:
|
|
144878
|
+
method: z58.literal("logging/setLevel"),
|
|
144872
144879
|
params: SetLevelRequestParamsSchema
|
|
144873
144880
|
});
|
|
144874
144881
|
var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
144875
144882
|
level: LoggingLevelSchema,
|
|
144876
|
-
logger:
|
|
144877
|
-
data:
|
|
144883
|
+
logger: z58.string().optional(),
|
|
144884
|
+
data: z58.unknown()
|
|
144878
144885
|
});
|
|
144879
144886
|
var LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
144880
|
-
method:
|
|
144887
|
+
method: z58.literal("notifications/message"),
|
|
144881
144888
|
params: LoggingMessageNotificationParamsSchema
|
|
144882
144889
|
});
|
|
144883
|
-
var ModelHintSchema =
|
|
144884
|
-
name:
|
|
144890
|
+
var ModelHintSchema = z58.object({
|
|
144891
|
+
name: z58.string().optional()
|
|
144885
144892
|
});
|
|
144886
|
-
var ModelPreferencesSchema =
|
|
144887
|
-
hints:
|
|
144888
|
-
costPriority:
|
|
144889
|
-
speedPriority:
|
|
144890
|
-
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()
|
|
144891
144898
|
});
|
|
144892
|
-
var ToolChoiceSchema =
|
|
144893
|
-
mode:
|
|
144899
|
+
var ToolChoiceSchema = z58.object({
|
|
144900
|
+
mode: z58.enum(["auto", "required", "none"]).optional()
|
|
144894
144901
|
});
|
|
144895
|
-
var ToolResultContentSchema =
|
|
144896
|
-
type:
|
|
144897
|
-
toolUseId:
|
|
144898
|
-
content:
|
|
144899
|
-
structuredContent:
|
|
144900
|
-
isError:
|
|
144901
|
-
_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()
|
|
144902
144909
|
});
|
|
144903
|
-
var SamplingContentSchema =
|
|
144904
|
-
var SamplingMessageContentBlockSchema =
|
|
144910
|
+
var SamplingContentSchema = z58.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]);
|
|
144911
|
+
var SamplingMessageContentBlockSchema = z58.discriminatedUnion("type", [
|
|
144905
144912
|
TextContentSchema,
|
|
144906
144913
|
ImageContentSchema,
|
|
144907
144914
|
AudioContentSchema,
|
|
144908
144915
|
ToolUseContentSchema,
|
|
144909
144916
|
ToolResultContentSchema
|
|
144910
144917
|
]);
|
|
144911
|
-
var SamplingMessageSchema =
|
|
144918
|
+
var SamplingMessageSchema = z58.object({
|
|
144912
144919
|
role: RoleSchema,
|
|
144913
|
-
content:
|
|
144914
|
-
_meta:
|
|
144920
|
+
content: z58.union([SamplingMessageContentBlockSchema, z58.array(SamplingMessageContentBlockSchema)]),
|
|
144921
|
+
_meta: z58.record(z58.string(), z58.unknown()).optional()
|
|
144915
144922
|
});
|
|
144916
144923
|
var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
144917
|
-
messages:
|
|
144924
|
+
messages: z58.array(SamplingMessageSchema),
|
|
144918
144925
|
modelPreferences: ModelPreferencesSchema.optional(),
|
|
144919
|
-
systemPrompt:
|
|
144920
|
-
includeContext:
|
|
144921
|
-
temperature:
|
|
144922
|
-
maxTokens:
|
|
144923
|
-
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(),
|
|
144924
144931
|
metadata: AssertObjectSchema.optional(),
|
|
144925
|
-
tools:
|
|
144932
|
+
tools: z58.array(ToolSchema).optional(),
|
|
144926
144933
|
toolChoice: ToolChoiceSchema.optional()
|
|
144927
144934
|
});
|
|
144928
144935
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
144929
|
-
method:
|
|
144936
|
+
method: z58.literal("sampling/createMessage"),
|
|
144930
144937
|
params: CreateMessageRequestParamsSchema
|
|
144931
144938
|
});
|
|
144932
144939
|
var CreateMessageResultSchema = ResultSchema.extend({
|
|
144933
|
-
model:
|
|
144934
|
-
stopReason:
|
|
144940
|
+
model: z58.string(),
|
|
144941
|
+
stopReason: z58.optional(z58.enum(["endTurn", "stopSequence", "maxTokens"]).or(z58.string())),
|
|
144935
144942
|
role: RoleSchema,
|
|
144936
144943
|
content: SamplingContentSchema
|
|
144937
144944
|
});
|
|
144938
144945
|
var CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
144939
|
-
model:
|
|
144940
|
-
stopReason:
|
|
144946
|
+
model: z58.string(),
|
|
144947
|
+
stopReason: z58.optional(z58.enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(z58.string())),
|
|
144941
144948
|
role: RoleSchema,
|
|
144942
|
-
content:
|
|
144949
|
+
content: z58.union([SamplingMessageContentBlockSchema, z58.array(SamplingMessageContentBlockSchema)])
|
|
144943
144950
|
});
|
|
144944
|
-
var BooleanSchemaSchema =
|
|
144945
|
-
type:
|
|
144946
|
-
title:
|
|
144947
|
-
description:
|
|
144948
|
-
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()
|
|
144949
144956
|
});
|
|
144950
|
-
var StringSchemaSchema =
|
|
144951
|
-
type:
|
|
144952
|
-
title:
|
|
144953
|
-
description:
|
|
144954
|
-
minLength:
|
|
144955
|
-
maxLength:
|
|
144956
|
-
format:
|
|
144957
|
-
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()
|
|
144958
144965
|
});
|
|
144959
|
-
var NumberSchemaSchema =
|
|
144960
|
-
type:
|
|
144961
|
-
title:
|
|
144962
|
-
description:
|
|
144963
|
-
minimum:
|
|
144964
|
-
maximum:
|
|
144965
|
-
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()
|
|
144966
144973
|
});
|
|
144967
|
-
var UntitledSingleSelectEnumSchemaSchema =
|
|
144968
|
-
type:
|
|
144969
|
-
title:
|
|
144970
|
-
description:
|
|
144971
|
-
enum:
|
|
144972
|
-
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()
|
|
144973
144980
|
});
|
|
144974
|
-
var TitledSingleSelectEnumSchemaSchema =
|
|
144975
|
-
type:
|
|
144976
|
-
title:
|
|
144977
|
-
description:
|
|
144978
|
-
oneOf:
|
|
144979
|
-
const:
|
|
144980
|
-
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()
|
|
144981
144988
|
})),
|
|
144982
|
-
default:
|
|
144989
|
+
default: z58.string().optional()
|
|
144983
144990
|
});
|
|
144984
|
-
var LegacyTitledEnumSchemaSchema =
|
|
144985
|
-
type:
|
|
144986
|
-
title:
|
|
144987
|
-
description:
|
|
144988
|
-
enum:
|
|
144989
|
-
enumNames:
|
|
144990
|
-
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()
|
|
144991
144998
|
});
|
|
144992
|
-
var SingleSelectEnumSchemaSchema =
|
|
144993
|
-
var UntitledMultiSelectEnumSchemaSchema =
|
|
144994
|
-
type:
|
|
144995
|
-
title:
|
|
144996
|
-
description:
|
|
144997
|
-
minItems:
|
|
144998
|
-
maxItems:
|
|
144999
|
-
items:
|
|
145000
|
-
type:
|
|
145001
|
-
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())
|
|
145002
145009
|
}),
|
|
145003
|
-
default:
|
|
145010
|
+
default: z58.array(z58.string()).optional()
|
|
145004
145011
|
});
|
|
145005
|
-
var TitledMultiSelectEnumSchemaSchema =
|
|
145006
|
-
type:
|
|
145007
|
-
title:
|
|
145008
|
-
description:
|
|
145009
|
-
minItems:
|
|
145010
|
-
maxItems:
|
|
145011
|
-
items:
|
|
145012
|
-
anyOf:
|
|
145013
|
-
const:
|
|
145014
|
-
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()
|
|
145015
145022
|
}))
|
|
145016
145023
|
}),
|
|
145017
|
-
default:
|
|
145024
|
+
default: z58.array(z58.string()).optional()
|
|
145018
145025
|
});
|
|
145019
|
-
var MultiSelectEnumSchemaSchema =
|
|
145020
|
-
var EnumSchemaSchema =
|
|
145021
|
-
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]);
|
|
145022
145029
|
var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
145023
|
-
mode:
|
|
145024
|
-
message:
|
|
145025
|
-
requestedSchema:
|
|
145026
|
-
type:
|
|
145027
|
-
properties:
|
|
145028
|
-
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()
|
|
145029
145036
|
})
|
|
145030
145037
|
});
|
|
145031
145038
|
var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
145032
|
-
mode:
|
|
145033
|
-
message:
|
|
145034
|
-
elicitationId:
|
|
145035
|
-
url:
|
|
145039
|
+
mode: z58.literal("url"),
|
|
145040
|
+
message: z58.string(),
|
|
145041
|
+
elicitationId: z58.string(),
|
|
145042
|
+
url: z58.string().url()
|
|
145036
145043
|
});
|
|
145037
|
-
var ElicitRequestParamsSchema =
|
|
145044
|
+
var ElicitRequestParamsSchema = z58.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
|
|
145038
145045
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
145039
|
-
method:
|
|
145046
|
+
method: z58.literal("elicitation/create"),
|
|
145040
145047
|
params: ElicitRequestParamsSchema
|
|
145041
145048
|
});
|
|
145042
145049
|
var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
145043
|
-
elicitationId:
|
|
145050
|
+
elicitationId: z58.string()
|
|
145044
145051
|
});
|
|
145045
145052
|
var ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
|
145046
|
-
method:
|
|
145053
|
+
method: z58.literal("notifications/elicitation/complete"),
|
|
145047
145054
|
params: ElicitationCompleteNotificationParamsSchema
|
|
145048
145055
|
});
|
|
145049
145056
|
var ElicitResultSchema = ResultSchema.extend({
|
|
145050
|
-
action:
|
|
145051
|
-
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())
|
|
145052
145059
|
});
|
|
145053
|
-
var ResourceTemplateReferenceSchema =
|
|
145054
|
-
type:
|
|
145055
|
-
uri:
|
|
145060
|
+
var ResourceTemplateReferenceSchema = z58.object({
|
|
145061
|
+
type: z58.literal("ref/resource"),
|
|
145062
|
+
uri: z58.string()
|
|
145056
145063
|
});
|
|
145057
|
-
var PromptReferenceSchema =
|
|
145058
|
-
type:
|
|
145059
|
-
name:
|
|
145064
|
+
var PromptReferenceSchema = z58.object({
|
|
145065
|
+
type: z58.literal("ref/prompt"),
|
|
145066
|
+
name: z58.string()
|
|
145060
145067
|
});
|
|
145061
145068
|
var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
145062
|
-
ref:
|
|
145063
|
-
argument:
|
|
145064
|
-
name:
|
|
145065
|
-
value:
|
|
145069
|
+
ref: z58.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
145070
|
+
argument: z58.object({
|
|
145071
|
+
name: z58.string(),
|
|
145072
|
+
value: z58.string()
|
|
145066
145073
|
}),
|
|
145067
|
-
context:
|
|
145068
|
-
arguments:
|
|
145074
|
+
context: z58.object({
|
|
145075
|
+
arguments: z58.record(z58.string(), z58.string()).optional()
|
|
145069
145076
|
}).optional()
|
|
145070
145077
|
});
|
|
145071
145078
|
var CompleteRequestSchema = RequestSchema.extend({
|
|
145072
|
-
method:
|
|
145079
|
+
method: z58.literal("completion/complete"),
|
|
145073
145080
|
params: CompleteRequestParamsSchema
|
|
145074
145081
|
});
|
|
145075
145082
|
var CompleteResultSchema = ResultSchema.extend({
|
|
145076
|
-
completion:
|
|
145077
|
-
values:
|
|
145078
|
-
total:
|
|
145079
|
-
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())
|
|
145080
145087
|
})
|
|
145081
145088
|
});
|
|
145082
|
-
var RootSchema =
|
|
145083
|
-
uri:
|
|
145084
|
-
name:
|
|
145085
|
-
_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()
|
|
145086
145093
|
});
|
|
145087
145094
|
var ListRootsRequestSchema = RequestSchema.extend({
|
|
145088
|
-
method:
|
|
145095
|
+
method: z58.literal("roots/list"),
|
|
145089
145096
|
params: BaseRequestParamsSchema.optional()
|
|
145090
145097
|
});
|
|
145091
145098
|
var ListRootsResultSchema = ResultSchema.extend({
|
|
145092
|
-
roots:
|
|
145099
|
+
roots: z58.array(RootSchema)
|
|
145093
145100
|
});
|
|
145094
145101
|
var RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
145095
|
-
method:
|
|
145102
|
+
method: z58.literal("notifications/roots/list_changed"),
|
|
145096
145103
|
params: NotificationsParamsSchema.optional()
|
|
145097
145104
|
});
|
|
145098
|
-
var ClientRequestSchema =
|
|
145105
|
+
var ClientRequestSchema = z58.union([
|
|
145099
145106
|
PingRequestSchema,
|
|
145100
145107
|
InitializeRequestSchema,
|
|
145101
145108
|
CompleteRequestSchema,
|
|
@@ -145114,14 +145121,14 @@ var ClientRequestSchema = z57.union([
|
|
|
145114
145121
|
ListTasksRequestSchema,
|
|
145115
145122
|
CancelTaskRequestSchema
|
|
145116
145123
|
]);
|
|
145117
|
-
var ClientNotificationSchema =
|
|
145124
|
+
var ClientNotificationSchema = z58.union([
|
|
145118
145125
|
CancelledNotificationSchema,
|
|
145119
145126
|
ProgressNotificationSchema,
|
|
145120
145127
|
InitializedNotificationSchema,
|
|
145121
145128
|
RootsListChangedNotificationSchema,
|
|
145122
145129
|
TaskStatusNotificationSchema
|
|
145123
145130
|
]);
|
|
145124
|
-
var ClientResultSchema =
|
|
145131
|
+
var ClientResultSchema = z58.union([
|
|
145125
145132
|
EmptyResultSchema,
|
|
145126
145133
|
CreateMessageResultSchema,
|
|
145127
145134
|
CreateMessageResultWithToolsSchema,
|
|
@@ -145131,7 +145138,7 @@ var ClientResultSchema = z57.union([
|
|
|
145131
145138
|
ListTasksResultSchema,
|
|
145132
145139
|
CreateTaskResultSchema
|
|
145133
145140
|
]);
|
|
145134
|
-
var ServerRequestSchema =
|
|
145141
|
+
var ServerRequestSchema = z58.union([
|
|
145135
145142
|
PingRequestSchema,
|
|
145136
145143
|
CreateMessageRequestSchema,
|
|
145137
145144
|
ElicitRequestSchema,
|
|
@@ -145141,7 +145148,7 @@ var ServerRequestSchema = z57.union([
|
|
|
145141
145148
|
ListTasksRequestSchema,
|
|
145142
145149
|
CancelTaskRequestSchema
|
|
145143
145150
|
]);
|
|
145144
|
-
var ServerNotificationSchema =
|
|
145151
|
+
var ServerNotificationSchema = z58.union([
|
|
145145
145152
|
CancelledNotificationSchema,
|
|
145146
145153
|
ProgressNotificationSchema,
|
|
145147
145154
|
LoggingMessageNotificationSchema,
|
|
@@ -145152,7 +145159,7 @@ var ServerNotificationSchema = z57.union([
|
|
|
145152
145159
|
TaskStatusNotificationSchema,
|
|
145153
145160
|
ElicitationCompleteNotificationSchema
|
|
145154
145161
|
]);
|
|
145155
|
-
var ServerResultSchema =
|
|
145162
|
+
var ServerResultSchema = z58.union([
|
|
145156
145163
|
EmptyResultSchema,
|
|
145157
145164
|
InitializeResultSchema,
|
|
145158
145165
|
CompleteResultSchema,
|
|
@@ -146830,149 +146837,149 @@ async function pkceChallenge(length) {
|
|
|
146830
146837
|
}
|
|
146831
146838
|
|
|
146832
146839
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
146833
|
-
import * as
|
|
146834
|
-
var SafeUrlSchema =
|
|
146840
|
+
import * as z59 from "zod/v4";
|
|
146841
|
+
var SafeUrlSchema = z59.url().superRefine((val, ctx) => {
|
|
146835
146842
|
if (!URL.canParse(val)) {
|
|
146836
146843
|
ctx.addIssue({
|
|
146837
|
-
code:
|
|
146844
|
+
code: z59.ZodIssueCode.custom,
|
|
146838
146845
|
message: "URL must be parseable",
|
|
146839
146846
|
fatal: true
|
|
146840
146847
|
});
|
|
146841
|
-
return
|
|
146848
|
+
return z59.NEVER;
|
|
146842
146849
|
}
|
|
146843
146850
|
}).refine((url) => {
|
|
146844
146851
|
const u = new URL(url);
|
|
146845
146852
|
return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
|
|
146846
146853
|
}, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
|
|
146847
|
-
var OAuthProtectedResourceMetadataSchema =
|
|
146848
|
-
resource:
|
|
146849
|
-
authorization_servers:
|
|
146850
|
-
jwks_uri:
|
|
146851
|
-
scopes_supported:
|
|
146852
|
-
bearer_methods_supported:
|
|
146853
|
-
resource_signing_alg_values_supported:
|
|
146854
|
-
resource_name:
|
|
146855
|
-
resource_documentation:
|
|
146856
|
-
resource_policy_uri:
|
|
146857
|
-
resource_tos_uri:
|
|
146858
|
-
tls_client_certificate_bound_access_tokens:
|
|
146859
|
-
authorization_details_types_supported:
|
|
146860
|
-
dpop_signing_alg_values_supported:
|
|
146861
|
-
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()
|
|
146862
146869
|
});
|
|
146863
|
-
var OAuthMetadataSchema =
|
|
146864
|
-
issuer:
|
|
146870
|
+
var OAuthMetadataSchema = z59.looseObject({
|
|
146871
|
+
issuer: z59.string(),
|
|
146865
146872
|
authorization_endpoint: SafeUrlSchema,
|
|
146866
146873
|
token_endpoint: SafeUrlSchema,
|
|
146867
146874
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
146868
|
-
scopes_supported:
|
|
146869
|
-
response_types_supported:
|
|
146870
|
-
response_modes_supported:
|
|
146871
|
-
grant_types_supported:
|
|
146872
|
-
token_endpoint_auth_methods_supported:
|
|
146873
|
-
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(),
|
|
146874
146881
|
service_documentation: SafeUrlSchema.optional(),
|
|
146875
146882
|
revocation_endpoint: SafeUrlSchema.optional(),
|
|
146876
|
-
revocation_endpoint_auth_methods_supported:
|
|
146877
|
-
revocation_endpoint_auth_signing_alg_values_supported:
|
|
146878
|
-
introspection_endpoint:
|
|
146879
|
-
introspection_endpoint_auth_methods_supported:
|
|
146880
|
-
introspection_endpoint_auth_signing_alg_values_supported:
|
|
146881
|
-
code_challenge_methods_supported:
|
|
146882
|
-
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()
|
|
146883
146890
|
});
|
|
146884
|
-
var OpenIdProviderMetadataSchema =
|
|
146885
|
-
issuer:
|
|
146891
|
+
var OpenIdProviderMetadataSchema = z59.looseObject({
|
|
146892
|
+
issuer: z59.string(),
|
|
146886
146893
|
authorization_endpoint: SafeUrlSchema,
|
|
146887
146894
|
token_endpoint: SafeUrlSchema,
|
|
146888
146895
|
userinfo_endpoint: SafeUrlSchema.optional(),
|
|
146889
146896
|
jwks_uri: SafeUrlSchema,
|
|
146890
146897
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
146891
|
-
scopes_supported:
|
|
146892
|
-
response_types_supported:
|
|
146893
|
-
response_modes_supported:
|
|
146894
|
-
grant_types_supported:
|
|
146895
|
-
acr_values_supported:
|
|
146896
|
-
subject_types_supported:
|
|
146897
|
-
id_token_signing_alg_values_supported:
|
|
146898
|
-
id_token_encryption_alg_values_supported:
|
|
146899
|
-
id_token_encryption_enc_values_supported:
|
|
146900
|
-
userinfo_signing_alg_values_supported:
|
|
146901
|
-
userinfo_encryption_alg_values_supported:
|
|
146902
|
-
userinfo_encryption_enc_values_supported:
|
|
146903
|
-
request_object_signing_alg_values_supported:
|
|
146904
|
-
request_object_encryption_alg_values_supported:
|
|
146905
|
-
request_object_encryption_enc_values_supported:
|
|
146906
|
-
token_endpoint_auth_methods_supported:
|
|
146907
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
146908
|
-
display_values_supported:
|
|
146909
|
-
claim_types_supported:
|
|
146910
|
-
claims_supported:
|
|
146911
|
-
service_documentation:
|
|
146912
|
-
claims_locales_supported:
|
|
146913
|
-
ui_locales_supported:
|
|
146914
|
-
claims_parameter_supported:
|
|
146915
|
-
request_parameter_supported:
|
|
146916
|
-
request_uri_parameter_supported:
|
|
146917
|
-
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(),
|
|
146918
146925
|
op_policy_uri: SafeUrlSchema.optional(),
|
|
146919
146926
|
op_tos_uri: SafeUrlSchema.optional(),
|
|
146920
|
-
client_id_metadata_document_supported:
|
|
146927
|
+
client_id_metadata_document_supported: z59.boolean().optional()
|
|
146921
146928
|
});
|
|
146922
|
-
var OpenIdProviderDiscoveryMetadataSchema =
|
|
146929
|
+
var OpenIdProviderDiscoveryMetadataSchema = z59.object({
|
|
146923
146930
|
...OpenIdProviderMetadataSchema.shape,
|
|
146924
146931
|
...OAuthMetadataSchema.pick({
|
|
146925
146932
|
code_challenge_methods_supported: true
|
|
146926
146933
|
}).shape
|
|
146927
146934
|
});
|
|
146928
|
-
var OAuthTokensSchema =
|
|
146929
|
-
access_token:
|
|
146930
|
-
id_token:
|
|
146931
|
-
token_type:
|
|
146932
|
-
expires_in:
|
|
146933
|
-
scope:
|
|
146934
|
-
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()
|
|
146935
146942
|
}).strip();
|
|
146936
|
-
var OAuthErrorResponseSchema =
|
|
146937
|
-
error:
|
|
146938
|
-
error_description:
|
|
146939
|
-
error_uri:
|
|
146943
|
+
var OAuthErrorResponseSchema = z59.object({
|
|
146944
|
+
error: z59.string(),
|
|
146945
|
+
error_description: z59.string().optional(),
|
|
146946
|
+
error_uri: z59.string().optional()
|
|
146940
146947
|
});
|
|
146941
|
-
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(
|
|
146948
|
+
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z59.literal("").transform(() => {
|
|
146942
146949
|
return;
|
|
146943
146950
|
}));
|
|
146944
|
-
var OAuthClientMetadataSchema =
|
|
146945
|
-
redirect_uris:
|
|
146946
|
-
token_endpoint_auth_method:
|
|
146947
|
-
grant_types:
|
|
146948
|
-
response_types:
|
|
146949
|
-
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(),
|
|
146950
146957
|
client_uri: SafeUrlSchema.optional(),
|
|
146951
146958
|
logo_uri: OptionalSafeUrlSchema,
|
|
146952
|
-
scope:
|
|
146953
|
-
contacts:
|
|
146959
|
+
scope: z59.string().optional(),
|
|
146960
|
+
contacts: z59.array(z59.string()).optional(),
|
|
146954
146961
|
tos_uri: OptionalSafeUrlSchema,
|
|
146955
|
-
policy_uri:
|
|
146962
|
+
policy_uri: z59.string().optional(),
|
|
146956
146963
|
jwks_uri: SafeUrlSchema.optional(),
|
|
146957
|
-
jwks:
|
|
146958
|
-
software_id:
|
|
146959
|
-
software_version:
|
|
146960
|
-
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()
|
|
146961
146968
|
}).strip();
|
|
146962
|
-
var OAuthClientInformationSchema =
|
|
146963
|
-
client_id:
|
|
146964
|
-
client_secret:
|
|
146965
|
-
client_id_issued_at:
|
|
146966
|
-
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()
|
|
146967
146974
|
}).strip();
|
|
146968
146975
|
var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
146969
|
-
var OAuthClientRegistrationErrorSchema =
|
|
146970
|
-
error:
|
|
146971
|
-
error_description:
|
|
146976
|
+
var OAuthClientRegistrationErrorSchema = z59.object({
|
|
146977
|
+
error: z59.string(),
|
|
146978
|
+
error_description: z59.string().optional()
|
|
146972
146979
|
}).strip();
|
|
146973
|
-
var OAuthTokenRevocationRequestSchema =
|
|
146974
|
-
token:
|
|
146975
|
-
token_type_hint:
|
|
146980
|
+
var OAuthTokenRevocationRequestSchema = z59.object({
|
|
146981
|
+
token: z59.string(),
|
|
146982
|
+
token_type_hint: z59.string().optional()
|
|
146976
146983
|
}).strip();
|
|
146977
146984
|
|
|
146978
146985
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
|
|
@@ -149184,7 +149191,7 @@ function mirrorFilePath(projectDir) {
|
|
|
149184
149191
|
}
|
|
149185
149192
|
|
|
149186
149193
|
// packages/omo-opencode/src/features/tui-sidebar/snapshot-schema.ts
|
|
149187
|
-
import { z as
|
|
149194
|
+
import { z as z60 } from "zod";
|
|
149188
149195
|
var AGENT_STATUS_VALUES = [
|
|
149189
149196
|
"busy",
|
|
149190
149197
|
"idle",
|
|
@@ -149200,32 +149207,32 @@ var BACKGROUND_TASK_STATUS_VALUES = [
|
|
|
149200
149207
|
"cancelled",
|
|
149201
149208
|
"interrupt"
|
|
149202
149209
|
];
|
|
149203
|
-
var AgentRowSchema =
|
|
149204
|
-
name:
|
|
149205
|
-
status:
|
|
149210
|
+
var AgentRowSchema = z60.object({
|
|
149211
|
+
name: z60.string(),
|
|
149212
|
+
status: z60.enum(AGENT_STATUS_VALUES)
|
|
149206
149213
|
});
|
|
149207
|
-
var JobRowSchema =
|
|
149208
|
-
title:
|
|
149209
|
-
status:
|
|
149210
|
-
toolCalls:
|
|
149211
|
-
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()
|
|
149212
149219
|
});
|
|
149213
|
-
var LoopLiveSchema =
|
|
149214
|
-
kind:
|
|
149215
|
-
goalsDone:
|
|
149216
|
-
goalsTotal:
|
|
149217
|
-
pass:
|
|
149218
|
-
fail:
|
|
149219
|
-
pending:
|
|
149220
|
-
blocked:
|
|
149221
|
-
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()
|
|
149222
149229
|
});
|
|
149223
|
-
var TuiRuntimeSnapshotSchema =
|
|
149224
|
-
version:
|
|
149225
|
-
projectDir:
|
|
149226
|
-
updatedAt:
|
|
149227
|
-
activeAgents:
|
|
149228
|
-
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),
|
|
149229
149236
|
loop: LoopLiveSchema.nullable()
|
|
149230
149237
|
});
|
|
149231
149238
|
|
|
@@ -149240,25 +149247,25 @@ function writeMirror(projectDir, snapshot) {
|
|
|
149240
149247
|
// packages/omo-opencode/src/features/tui-sidebar/loop-reader.ts
|
|
149241
149248
|
import { readdirSync as readdirSync31, readFileSync as readFileSync70, statSync as statSync14 } from "fs";
|
|
149242
149249
|
import { join as join131 } from "path";
|
|
149243
|
-
import { z as
|
|
149244
|
-
var CriterionSchema =
|
|
149245
|
-
status:
|
|
149250
|
+
import { z as z61 } from "zod";
|
|
149251
|
+
var CriterionSchema = z61.object({
|
|
149252
|
+
status: z61.string()
|
|
149246
149253
|
});
|
|
149247
|
-
var GoalBaseSchema =
|
|
149248
|
-
id:
|
|
149249
|
-
title:
|
|
149250
|
-
status:
|
|
149254
|
+
var GoalBaseSchema = z61.object({
|
|
149255
|
+
id: z61.string(),
|
|
149256
|
+
title: z61.string(),
|
|
149257
|
+
status: z61.string()
|
|
149251
149258
|
});
|
|
149252
|
-
var CurrentLoopSchema =
|
|
149253
|
-
version:
|
|
149254
|
-
activeGoalId:
|
|
149255
|
-
goals:
|
|
149256
|
-
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)
|
|
149257
149264
|
}))
|
|
149258
149265
|
});
|
|
149259
|
-
var LegacyLoopSchema =
|
|
149260
|
-
goals:
|
|
149261
|
-
criteria:
|
|
149266
|
+
var LegacyLoopSchema = z61.object({
|
|
149267
|
+
goals: z61.array(GoalBaseSchema.extend({
|
|
149268
|
+
criteria: z61.array(CriterionSchema)
|
|
149262
149269
|
}))
|
|
149263
149270
|
});
|
|
149264
149271
|
function readActiveLoop(projectDir) {
|
|
@@ -165912,7 +165919,7 @@ var grep_app = {
|
|
|
165912
165919
|
import { existsSync as existsSync109, readFileSync as readFileSync77 } from "fs";
|
|
165913
165920
|
import { delimiter as delimiter2, dirname as dirname49, resolve as resolve37 } from "path";
|
|
165914
165921
|
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
165915
|
-
import { z as
|
|
165922
|
+
import { z as z62 } from "zod";
|
|
165916
165923
|
|
|
165917
165924
|
// packages/omo-opencode/src/mcp/cli-suffix.ts
|
|
165918
165925
|
function normalizeCliPath(path) {
|
|
@@ -166013,8 +166020,8 @@ var PROJECT_LSP_CONFIGS = [".opencode/lsp.json", ".omo/lsp.json", ".omo/lsp-clie
|
|
|
166013
166020
|
var DAEMON_PACKAGE_NAME = "@code-yeongyu/lsp-daemon";
|
|
166014
166021
|
var OMO_LSP_DAEMON_CLI = "OMO_LSP_DAEMON_CLI";
|
|
166015
166022
|
var OMO_LSP_DAEMON_VERSION = "OMO_LSP_DAEMON_VERSION";
|
|
166016
|
-
var DaemonPackageSchema =
|
|
166017
|
-
version:
|
|
166023
|
+
var DaemonPackageSchema = z62.object({
|
|
166024
|
+
version: z62.string().min(1)
|
|
166018
166025
|
});
|
|
166019
166026
|
var LSP_BOOTSTRAP_SCRIPT = [
|
|
166020
166027
|
"const { existsSync } = require('node:fs')",
|
|
@@ -171282,14 +171289,14 @@ class OpencodeClient2 extends HeyApiClient {
|
|
|
171282
171289
|
// node_modules/.bun/@opencode-ai+sdk@1.18.31/node_modules/@opencode-ai/sdk/dist/v2/server.js
|
|
171283
171290
|
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1);
|
|
171284
171291
|
// packages/omo-opencode/src/plugin/native-skills.ts
|
|
171285
|
-
import { z as
|
|
171286
|
-
var NativeSkillEntrySchema =
|
|
171287
|
-
name:
|
|
171288
|
-
description:
|
|
171289
|
-
location:
|
|
171290
|
-
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()
|
|
171291
171298
|
});
|
|
171292
|
-
var NativeSkillEntriesSchema =
|
|
171299
|
+
var NativeSkillEntriesSchema = z63.array(NativeSkillEntrySchema);
|
|
171293
171300
|
function getObjectProperty(value, property) {
|
|
171294
171301
|
if (typeof value !== "object" || value === null)
|
|
171295
171302
|
return;
|
|
@@ -172439,7 +172446,7 @@ async function resolveParticipant2(teamRunId, sessionID, config, deps) {
|
|
|
172439
172446
|
}
|
|
172440
172447
|
|
|
172441
172448
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-inline-spec.ts
|
|
172442
|
-
import { z as
|
|
172449
|
+
import { z as z64 } from "zod";
|
|
172443
172450
|
init_types2();
|
|
172444
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." }] } }).';
|
|
172445
172452
|
function omitEmptyStringArgs(rawArgs) {
|
|
@@ -172448,10 +172455,10 @@ function omitEmptyStringArgs(rawArgs) {
|
|
|
172448
172455
|
}
|
|
172449
172456
|
return Object.fromEntries(Object.entries(rawArgs).filter(([, value]) => value !== ""));
|
|
172450
172457
|
}
|
|
172451
|
-
var TeamCreateArgsSchema =
|
|
172452
|
-
teamName:
|
|
172453
|
-
inline_spec:
|
|
172454
|
-
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()
|
|
172455
172462
|
}).superRefine((value, ctx) => {
|
|
172456
172463
|
const optionCount = Number(value.teamName != null) + Number(value.inline_spec != null);
|
|
172457
172464
|
if (optionCount !== 1) {
|
|
@@ -172572,7 +172579,7 @@ function createTeamCreateTool(config, client, bgMgr, tmuxMgr, executorConfig, de
|
|
|
172572
172579
|
});
|
|
172573
172580
|
}
|
|
172574
172581
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
172575
|
-
import { z as
|
|
172582
|
+
import { z as z65 } from "zod";
|
|
172576
172583
|
// packages/omo-opencode/src/features/team-mode/team-runtime/shutdown.ts
|
|
172577
172584
|
init_store2();
|
|
172578
172585
|
init_shutdown_helpers();
|
|
@@ -172661,13 +172668,13 @@ async function rejectShutdown(teamRunId, memberName, rejectorName, reason, confi
|
|
|
172661
172668
|
|
|
172662
172669
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
172663
172670
|
init_store();
|
|
172664
|
-
var TeamDeleteArgsSchema =
|
|
172665
|
-
var TeamShutdownRequestArgsSchema =
|
|
172666
|
-
var TeamApproveShutdownArgsSchema =
|
|
172667
|
-
var TeamRejectShutdownArgsSchema =
|
|
172668
|
-
teamRunId:
|
|
172669
|
-
memberName:
|
|
172670
|
-
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)
|
|
172671
172678
|
});
|
|
172672
172679
|
var defaultTeamShutdownToolDeps = {
|
|
172673
172680
|
listActiveTeams,
|