oh-my-opencode 5.1.40 → 5.1.41
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 +38 -15
- package/dist/cli-node/index.js +38 -15
- package/dist/index.js +1391 -1372
- package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
- package/dist/skills/frontend/SKILL.md +6 -6
- package/dist/skills/frontend/references/design/README.md +2 -2
- package/dist/skills/frontend/references/perfection/README.md +2 -2
- package/dist/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +22 -13
- package/dist/skills/frontend/scripts/perfection/accent-stripes/findings.ts +7 -6
- package/dist/skills/frontend/scripts/perfection/accent-stripes/lint.ts +18 -24
- package/dist/skills/frontend/scripts/perfection/accent-stripes/markup.ts +14 -7
- package/dist/skills/frontend/scripts/perfection/accent-stripes/selector.ts +5 -1
- package/dist/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +32 -14
- package/dist/skills/frontend/scripts/perfection/check-accent-stripes.test.ts +15 -6
- package/dist/skills/frontend/scripts/perfection/check-accent-stripes.ts +1 -1
- package/dist/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/inline-ok.tsx +1 -0
- package/dist/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/neutral-and-flat.css +1 -1
- package/dist/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/tailwind-ok.tsx +5 -2
- package/dist/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/uniform-and-rings.css +2 -2
- package/dist/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/accent-outlines.css +4 -0
- package/dist/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/accent-outlines.tsx +8 -0
- package/dist/skills/frontend/scripts/perfection/fixtures/accent-stripes/{negative → positive}/flat-stripe-side.tsx +3 -1
- package/dist/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/report-callouts.html +8 -0
- package/dist/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/square-surfaces.css +8 -0
- package/dist/skills/ulw-research/SKILL.md +10 -2
- package/dist/skills/ulw-research/references/deliverable-phase.md +10 -0
- package/dist/skills/ulw-research/references/report-visualization.md +23 -0
- package/dist/tui.js +36 -14
- package/package.json +14 -14
- package/packages/lsp-core/src/lsp/fixtures/disposed-stdin-epipe-probe.ts +28 -0
- package/packages/lsp-core/src/lsp/process-pipe-errors.test.ts +21 -0
- package/packages/lsp-core/src/lsp/process.ts +16 -0
- package/packages/lsp-daemon/dist/cli.js +10 -0
- package/packages/lsp-daemon/dist/client.js +10 -0
- package/packages/lsp-daemon/dist/index.js +10 -0
- package/packages/lsp-tools-mcp/dist/cli.js +10 -0
- package/packages/lsp-tools-mcp/dist/lsp/manager.js +10 -0
- package/packages/lsp-tools-mcp/dist/mcp.js +10 -0
- package/packages/lsp-tools-mcp/dist/tools.js +10 -0
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +16 -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 +3 -3
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +10 -0
- 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/plugin/skills/frontend/SKILL.md +6 -6
- package/packages/omo-codex/plugin/skills/frontend/references/design/README.md +2 -2
- package/packages/omo-codex/plugin/skills/frontend/references/perfection/README.md +2 -2
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +22 -13
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/findings.ts +7 -6
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/lint.ts +18 -24
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/markup.ts +14 -7
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/selector.ts +5 -1
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +32 -14
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/check-accent-stripes.ts +1 -1
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/inline-ok.tsx +1 -0
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/neutral-and-flat.css +1 -1
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/tailwind-ok.tsx +5 -2
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/uniform-and-rings.css +2 -2
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/accent-outlines.css +4 -0
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/accent-outlines.tsx +8 -0
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/fixtures/accent-stripes/{negative → positive}/flat-stripe-side.tsx +3 -1
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/report-callouts.html +8 -0
- package/packages/omo-codex/plugin/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/square-surfaces.css +8 -0
- package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +10 -2
- package/packages/omo-codex/plugin/skills/ulw-research/references/deliverable-phase.md +10 -0
- package/packages/omo-codex/plugin/skills/ulw-research/references/report-visualization.md +23 -0
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +18 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
- package/packages/shared-skills/skills/frontend/SKILL.md +6 -6
- package/packages/shared-skills/skills/frontend/references/design/README.md +2 -2
- package/packages/shared-skills/skills/frontend/references/perfection/README.md +2 -2
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/declarations.ts +22 -13
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/findings.ts +7 -6
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/lint.ts +18 -24
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/markup.ts +14 -7
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/selector.ts +5 -1
- package/packages/shared-skills/skills/frontend/scripts/perfection/accent-stripes/tailwind.ts +32 -14
- package/packages/shared-skills/skills/frontend/scripts/perfection/check-accent-stripes.test.ts +15 -6
- package/packages/shared-skills/skills/frontend/scripts/perfection/check-accent-stripes.ts +1 -1
- package/packages/shared-skills/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/inline-ok.tsx +1 -0
- package/packages/shared-skills/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/neutral-and-flat.css +1 -1
- package/packages/shared-skills/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/tailwind-ok.tsx +5 -2
- package/packages/shared-skills/skills/frontend/scripts/perfection/fixtures/accent-stripes/negative/uniform-and-rings.css +2 -2
- package/packages/shared-skills/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/accent-outlines.css +4 -0
- package/packages/shared-skills/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/accent-outlines.tsx +8 -0
- package/packages/shared-skills/skills/frontend/scripts/perfection/fixtures/accent-stripes/{negative → positive}/flat-stripe-side.tsx +3 -1
- package/packages/shared-skills/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/report-callouts.html +8 -0
- package/packages/shared-skills/skills/frontend/scripts/perfection/fixtures/accent-stripes/positive/square-surfaces.css +8 -0
- package/packages/shared-skills/skills/ulw-research/SKILL.md +10 -2
- package/packages/shared-skills/skills/ulw-research/references/deliverable-phase.md +10 -0
- package/packages/shared-skills/skills/ulw-research/references/report-visualization.md +23 -0
package/dist/index.js
CHANGED
|
@@ -11825,7 +11825,7 @@ var init_member_parser = __esm(() => {
|
|
|
11825
11825
|
});
|
|
11826
11826
|
|
|
11827
11827
|
// packages/team-core/src/types.ts
|
|
11828
|
-
import * as
|
|
11828
|
+
import * as z55 from "zod";
|
|
11829
11829
|
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;
|
|
11830
11830
|
var init_types2 = __esm(() => {
|
|
11831
11831
|
init_member_parser();
|
|
@@ -11846,40 +11846,40 @@ var init_types2 = __esm(() => {
|
|
|
11846
11846
|
"failed",
|
|
11847
11847
|
"orphaned"
|
|
11848
11848
|
];
|
|
11849
|
-
MemberBaseSchema =
|
|
11850
|
-
name:
|
|
11851
|
-
cwd:
|
|
11852
|
-
worktreePath:
|
|
11853
|
-
task_summary:
|
|
11854
|
-
subscriptions:
|
|
11855
|
-
backendType:
|
|
11856
|
-
color:
|
|
11857
|
-
isActive:
|
|
11849
|
+
MemberBaseSchema = z55.object({
|
|
11850
|
+
name: z55.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
11851
|
+
cwd: z55.string().optional(),
|
|
11852
|
+
worktreePath: z55.string().optional(),
|
|
11853
|
+
task_summary: z55.string().max(80).optional(),
|
|
11854
|
+
subscriptions: z55.array(z55.string()).optional(),
|
|
11855
|
+
backendType: z55.enum(["in-process", "tmux"]).default("in-process"),
|
|
11856
|
+
color: z55.string().optional(),
|
|
11857
|
+
isActive: z55.boolean().default(true)
|
|
11858
11858
|
}).strict();
|
|
11859
11859
|
CategoryMemberSchema = MemberBaseSchema.extend({
|
|
11860
|
-
kind:
|
|
11861
|
-
category:
|
|
11862
|
-
prompt:
|
|
11860
|
+
kind: z55.literal("category"),
|
|
11861
|
+
category: z55.string().min(1),
|
|
11862
|
+
prompt: z55.string().min(1)
|
|
11863
11863
|
});
|
|
11864
11864
|
SubagentMemberSchema = MemberBaseSchema.extend({
|
|
11865
|
-
kind:
|
|
11866
|
-
subagent_type:
|
|
11867
|
-
prompt:
|
|
11865
|
+
kind: z55.literal("subagent_type"),
|
|
11866
|
+
subagent_type: z55.string().min(1),
|
|
11867
|
+
prompt: z55.string().optional()
|
|
11868
11868
|
});
|
|
11869
|
-
MemberSchema =
|
|
11870
|
-
TeamReferenceSchema =
|
|
11871
|
-
path:
|
|
11872
|
-
description:
|
|
11869
|
+
MemberSchema = z55.discriminatedUnion("kind", [CategoryMemberSchema, SubagentMemberSchema]);
|
|
11870
|
+
TeamReferenceSchema = z55.object({
|
|
11871
|
+
path: z55.string(),
|
|
11872
|
+
description: z55.string().optional()
|
|
11873
11873
|
}).strict();
|
|
11874
|
-
TeamSpecSchema =
|
|
11875
|
-
version:
|
|
11876
|
-
name:
|
|
11877
|
-
description:
|
|
11878
|
-
createdAt:
|
|
11879
|
-
leadAgentId:
|
|
11880
|
-
teamAllowedPaths:
|
|
11881
|
-
sessionPermission:
|
|
11882
|
-
members:
|
|
11874
|
+
TeamSpecSchema = z55.object({
|
|
11875
|
+
version: z55.literal(1).default(1),
|
|
11876
|
+
name: z55.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
11877
|
+
description: z55.string().optional(),
|
|
11878
|
+
createdAt: z55.number().int().positive().default(() => Date.now()),
|
|
11879
|
+
leadAgentId: z55.string().optional(),
|
|
11880
|
+
teamAllowedPaths: z55.array(z55.string()).optional(),
|
|
11881
|
+
sessionPermission: z55.string().optional(),
|
|
11882
|
+
members: z55.array(MemberSchema).min(1).max(8)
|
|
11883
11883
|
}).superRefine((teamSpec, ctx) => {
|
|
11884
11884
|
if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
|
|
11885
11885
|
ctx.addIssue({
|
|
@@ -11901,95 +11901,95 @@ var init_types2 = __esm(() => {
|
|
|
11901
11901
|
leadAgentId: firstMember.name
|
|
11902
11902
|
};
|
|
11903
11903
|
});
|
|
11904
|
-
MessageSchema =
|
|
11905
|
-
version:
|
|
11906
|
-
messageId:
|
|
11907
|
-
from:
|
|
11908
|
-
to:
|
|
11909
|
-
kind:
|
|
11910
|
-
body:
|
|
11911
|
-
summary:
|
|
11912
|
-
references:
|
|
11913
|
-
timestamp:
|
|
11914
|
-
correlationId:
|
|
11915
|
-
color:
|
|
11904
|
+
MessageSchema = z55.object({
|
|
11905
|
+
version: z55.literal(1),
|
|
11906
|
+
messageId: z55.string().uuid(),
|
|
11907
|
+
from: z55.string(),
|
|
11908
|
+
to: z55.string(),
|
|
11909
|
+
kind: z55.enum(MESSAGE_KINDS),
|
|
11910
|
+
body: z55.string().max(32 * 1024),
|
|
11911
|
+
summary: z55.string().optional(),
|
|
11912
|
+
references: z55.array(TeamReferenceSchema).optional(),
|
|
11913
|
+
timestamp: z55.number().int().positive(),
|
|
11914
|
+
correlationId: z55.string().uuid().optional(),
|
|
11915
|
+
color: z55.string().optional()
|
|
11916
11916
|
});
|
|
11917
|
-
TaskSchema =
|
|
11918
|
-
version:
|
|
11919
|
-
id:
|
|
11920
|
-
subject:
|
|
11921
|
-
description:
|
|
11922
|
-
activeForm:
|
|
11923
|
-
status:
|
|
11924
|
-
owner:
|
|
11925
|
-
blocks:
|
|
11926
|
-
blockedBy:
|
|
11927
|
-
metadata:
|
|
11928
|
-
createdAt:
|
|
11929
|
-
updatedAt:
|
|
11930
|
-
claimedAt:
|
|
11917
|
+
TaskSchema = z55.object({
|
|
11918
|
+
version: z55.literal(1),
|
|
11919
|
+
id: z55.string(),
|
|
11920
|
+
subject: z55.string(),
|
|
11921
|
+
description: z55.string(),
|
|
11922
|
+
activeForm: z55.string().optional(),
|
|
11923
|
+
status: z55.enum(TASK_STATUSES),
|
|
11924
|
+
owner: z55.string().optional(),
|
|
11925
|
+
blocks: z55.array(z55.string()).default([]),
|
|
11926
|
+
blockedBy: z55.array(z55.string()).default([]),
|
|
11927
|
+
metadata: z55.record(z55.string(), z55.unknown()).optional(),
|
|
11928
|
+
createdAt: z55.number().int().positive(),
|
|
11929
|
+
updatedAt: z55.number().int().positive(),
|
|
11930
|
+
claimedAt: z55.number().int().positive().optional()
|
|
11931
11931
|
});
|
|
11932
|
-
RuntimeStateMemberModelSchema =
|
|
11933
|
-
providerID:
|
|
11934
|
-
modelID:
|
|
11935
|
-
variant:
|
|
11936
|
-
reasoningEffort:
|
|
11937
|
-
temperature:
|
|
11938
|
-
top_p:
|
|
11939
|
-
maxTokens:
|
|
11940
|
-
thinking:
|
|
11941
|
-
type:
|
|
11942
|
-
budgetTokens:
|
|
11932
|
+
RuntimeStateMemberModelSchema = z55.object({
|
|
11933
|
+
providerID: z55.string(),
|
|
11934
|
+
modelID: z55.string(),
|
|
11935
|
+
variant: z55.string().optional(),
|
|
11936
|
+
reasoningEffort: z55.string().optional(),
|
|
11937
|
+
temperature: z55.number().optional(),
|
|
11938
|
+
top_p: z55.number().optional(),
|
|
11939
|
+
maxTokens: z55.number().optional(),
|
|
11940
|
+
thinking: z55.object({
|
|
11941
|
+
type: z55.enum(["enabled", "disabled"]),
|
|
11942
|
+
budgetTokens: z55.number().int().positive().optional()
|
|
11943
11943
|
}).optional()
|
|
11944
11944
|
}).strict();
|
|
11945
|
-
RuntimeStateMemberSchema =
|
|
11946
|
-
name:
|
|
11947
|
-
sessionId:
|
|
11948
|
-
tmuxPaneId:
|
|
11949
|
-
tmuxGridPaneId:
|
|
11950
|
-
agentType:
|
|
11951
|
-
subagent_type:
|
|
11952
|
-
category:
|
|
11945
|
+
RuntimeStateMemberSchema = z55.object({
|
|
11946
|
+
name: z55.string(),
|
|
11947
|
+
sessionId: z55.string().optional(),
|
|
11948
|
+
tmuxPaneId: z55.string().optional(),
|
|
11949
|
+
tmuxGridPaneId: z55.string().optional(),
|
|
11950
|
+
agentType: z55.enum(["leader", "general-purpose"]),
|
|
11951
|
+
subagent_type: z55.string().optional(),
|
|
11952
|
+
category: z55.string().optional(),
|
|
11953
11953
|
model: RuntimeStateMemberModelSchema.optional(),
|
|
11954
|
-
status:
|
|
11955
|
-
color:
|
|
11956
|
-
worktreePath:
|
|
11957
|
-
lastInjectedTurnMarker:
|
|
11958
|
-
pendingInjectedMessageIds:
|
|
11954
|
+
status: z55.enum(["pending", "running", "idle", "errored", "completed", "shutdown_approved"]),
|
|
11955
|
+
color: z55.string().optional(),
|
|
11956
|
+
worktreePath: z55.string().optional(),
|
|
11957
|
+
lastInjectedTurnMarker: z55.string().optional(),
|
|
11958
|
+
pendingInjectedMessageIds: z55.array(z55.string()).default([])
|
|
11959
11959
|
}).strict();
|
|
11960
|
-
RuntimeBoundsSchema =
|
|
11961
|
-
maxMembers:
|
|
11962
|
-
maxParallelMembers:
|
|
11963
|
-
maxMessagesPerRun:
|
|
11964
|
-
maxWallClockMinutes:
|
|
11965
|
-
maxMemberTurns:
|
|
11960
|
+
RuntimeBoundsSchema = z55.object({
|
|
11961
|
+
maxMembers: z55.number().int().default(8),
|
|
11962
|
+
maxParallelMembers: z55.number().int().default(4),
|
|
11963
|
+
maxMessagesPerRun: z55.number().int().default(1e4),
|
|
11964
|
+
maxWallClockMinutes: z55.number().int().default(120),
|
|
11965
|
+
maxMemberTurns: z55.number().int().default(500)
|
|
11966
11966
|
}).strict();
|
|
11967
|
-
ShutdownRequestSchema =
|
|
11968
|
-
memberId:
|
|
11969
|
-
requesterName:
|
|
11970
|
-
requestedAt:
|
|
11971
|
-
approvedAt:
|
|
11972
|
-
rejectedReason:
|
|
11973
|
-
rejectedAt:
|
|
11967
|
+
ShutdownRequestSchema = z55.object({
|
|
11968
|
+
memberId: z55.string(),
|
|
11969
|
+
requesterName: z55.string(),
|
|
11970
|
+
requestedAt: z55.number().int().positive(),
|
|
11971
|
+
approvedAt: z55.number().int().positive().optional(),
|
|
11972
|
+
rejectedReason: z55.string().optional(),
|
|
11973
|
+
rejectedAt: z55.number().int().positive().optional()
|
|
11974
11974
|
}).strict();
|
|
11975
|
-
RuntimeStateTmuxLayoutSchema =
|
|
11976
|
-
ownedSession:
|
|
11977
|
-
targetSessionId:
|
|
11978
|
-
focusWindowId:
|
|
11979
|
-
gridWindowId:
|
|
11980
|
-
paneIds:
|
|
11975
|
+
RuntimeStateTmuxLayoutSchema = z55.object({
|
|
11976
|
+
ownedSession: z55.boolean(),
|
|
11977
|
+
targetSessionId: z55.string(),
|
|
11978
|
+
focusWindowId: z55.string().optional(),
|
|
11979
|
+
gridWindowId: z55.string().optional(),
|
|
11980
|
+
paneIds: z55.array(z55.string()).optional()
|
|
11981
11981
|
}).strict();
|
|
11982
|
-
RuntimeStateSchema =
|
|
11983
|
-
version:
|
|
11984
|
-
teamRunId:
|
|
11985
|
-
teamName:
|
|
11986
|
-
specSource:
|
|
11987
|
-
createdAt:
|
|
11988
|
-
status:
|
|
11989
|
-
leadSessionId:
|
|
11982
|
+
RuntimeStateSchema = z55.object({
|
|
11983
|
+
version: z55.literal(1),
|
|
11984
|
+
teamRunId: z55.string().uuid(),
|
|
11985
|
+
teamName: z55.string(),
|
|
11986
|
+
specSource: z55.enum(["project", "user"]),
|
|
11987
|
+
createdAt: z55.number().int().positive(),
|
|
11988
|
+
status: z55.enum(RUNTIME_STATUSES),
|
|
11989
|
+
leadSessionId: z55.string().optional(),
|
|
11990
11990
|
tmuxLayout: RuntimeStateTmuxLayoutSchema.optional(),
|
|
11991
|
-
members:
|
|
11992
|
-
shutdownRequests:
|
|
11991
|
+
members: z55.array(RuntimeStateMemberSchema),
|
|
11992
|
+
shutdownRequests: z55.array(ShutdownRequestSchema).default([]),
|
|
11993
11993
|
bounds: RuntimeBoundsSchema
|
|
11994
11994
|
});
|
|
11995
11995
|
AGENT_ELIGIBILITY_REGISTRY = {
|
|
@@ -84930,7 +84930,7 @@ var OmoCategoryConfigSchema = z4.preprocess((value) => isRecord7(value) ? normal
|
|
|
84930
84930
|
var OmoCategoriesConfigSchema = z4.record(z4.string(), OmoCategoryConfigSchema);
|
|
84931
84931
|
|
|
84932
84932
|
// packages/omo-config-core/src/schema/config.ts
|
|
84933
|
-
import * as
|
|
84933
|
+
import * as z18 from "zod";
|
|
84934
84934
|
|
|
84935
84935
|
// packages/omo-config-core/src/schema/computer.ts
|
|
84936
84936
|
import * as z5 from "zod";
|
|
@@ -84980,160 +84980,177 @@ var OMO_CONFIG_LEGACY_HARNESS_ALIASES = { senpi: "native" };
|
|
|
84980
84980
|
var OMO_CONFIG_LEGACY_HARNESS_IDS = Object.keys(OMO_CONFIG_LEGACY_HARNESS_ALIASES);
|
|
84981
84981
|
|
|
84982
84982
|
// packages/omo-config-core/src/schema/memory.ts
|
|
84983
|
+
import * as z9 from "zod";
|
|
84984
|
+
|
|
84985
|
+
// packages/omo-config-core/src/schema/memory-agreements.ts
|
|
84983
84986
|
import * as z8 from "zod";
|
|
84984
|
-
var
|
|
84985
|
-
|
|
84986
|
-
|
|
84987
|
+
var OMO_MEMORY_AGREEMENTS_DEFAULTS = { enabled: true, needs_human_threshold: 3, max_items: 64 };
|
|
84988
|
+
var OmoMemoryAgreementsSchema = z8.object({
|
|
84989
|
+
enabled: z8.boolean().default(OMO_MEMORY_AGREEMENTS_DEFAULTS.enabled),
|
|
84990
|
+
needs_human_threshold: z8.number().int().min(1).default(OMO_MEMORY_AGREEMENTS_DEFAULTS.needs_human_threshold),
|
|
84991
|
+
max_items: z8.number().int().min(8).max(256).default(OMO_MEMORY_AGREEMENTS_DEFAULTS.max_items)
|
|
84992
|
+
}).strict();
|
|
84993
|
+
var OmoMemoryAgreementsLayerSchema = z8.object({
|
|
84994
|
+
enabled: z8.boolean().optional(),
|
|
84995
|
+
needs_human_threshold: z8.number().int().min(1).optional(),
|
|
84996
|
+
max_items: z8.number().int().min(8).max(256).optional()
|
|
84997
|
+
}).strict();
|
|
84998
|
+
|
|
84999
|
+
// packages/omo-config-core/src/schema/memory.ts
|
|
85000
|
+
var OmoMemoryReflectionTriggerSchema = z9.object({
|
|
85001
|
+
step_count: z9.number().int().nonnegative().default(25),
|
|
85002
|
+
on_compaction: z9.boolean().default(true)
|
|
84987
85003
|
}).strict();
|
|
84988
|
-
var OmoMemoryReflectionSchema =
|
|
84989
|
-
enabled:
|
|
85004
|
+
var OmoMemoryReflectionSchema = z9.object({
|
|
85005
|
+
enabled: z9.boolean().default(true),
|
|
84990
85006
|
trigger: OmoMemoryReflectionTriggerSchema.default({ step_count: 25, on_compaction: true }),
|
|
84991
|
-
merge:
|
|
84992
|
-
category:
|
|
84993
|
-
timeout_minutes:
|
|
84994
|
-
sandbox:
|
|
85007
|
+
merge: z9.enum(["auto", "integration"]).default("auto"),
|
|
85008
|
+
category: z9.string().min(1).default("quick"),
|
|
85009
|
+
timeout_minutes: z9.number().int().positive().default(15),
|
|
85010
|
+
sandbox: z9.enum(["auto", "required", "off"]).default("auto")
|
|
84995
85011
|
}).strict();
|
|
84996
|
-
var OmoMemorySyncSchema =
|
|
84997
|
-
remote:
|
|
84998
|
-
enabled:
|
|
85012
|
+
var OmoMemorySyncSchema = z9.object({
|
|
85013
|
+
remote: z9.string().min(1).optional(),
|
|
85014
|
+
enabled: z9.boolean().default(true)
|
|
84999
85015
|
}).strict();
|
|
85000
|
-
var OmoMemorySearchSchema =
|
|
85001
|
-
enabled:
|
|
85016
|
+
var OmoMemorySearchSchema = z9.object({
|
|
85017
|
+
enabled: z9.boolean().default(true)
|
|
85002
85018
|
}).strict();
|
|
85003
|
-
var OmoMemoryRecallEventCapsSchema =
|
|
85004
|
-
tool_args:
|
|
85005
|
-
result_head:
|
|
85006
|
-
assistant:
|
|
85007
|
-
prompt:
|
|
85019
|
+
var OmoMemoryRecallEventCapsSchema = z9.object({
|
|
85020
|
+
tool_args: z9.number().int().nonnegative().default(400),
|
|
85021
|
+
result_head: z9.number().int().nonnegative().default(600),
|
|
85022
|
+
assistant: z9.number().int().nonnegative().default(1500),
|
|
85023
|
+
prompt: z9.number().int().nonnegative().default(4000)
|
|
85008
85024
|
}).strict();
|
|
85009
|
-
var OmoMemoryRecallSchema =
|
|
85010
|
-
enabled:
|
|
85011
|
-
max_items:
|
|
85012
|
-
category:
|
|
85025
|
+
var OmoMemoryRecallSchema = z9.object({
|
|
85026
|
+
enabled: z9.boolean().default(true),
|
|
85027
|
+
max_items: z9.number().int().min(1).max(5).default(2),
|
|
85028
|
+
category: z9.string().min(1).default("quick"),
|
|
85013
85029
|
event_caps: OmoMemoryRecallEventCapsSchema.default({ tool_args: 400, result_head: 600, assistant: 1500, prompt: 4000 }),
|
|
85014
|
-
sidecar_max_tokens:
|
|
85015
|
-
max_concurrent_wakes:
|
|
85016
|
-
tool_budget:
|
|
85017
|
-
query_expansion:
|
|
85030
|
+
sidecar_max_tokens: z9.number().int().positive().default(48000),
|
|
85031
|
+
max_concurrent_wakes: z9.number().int().positive().default(2),
|
|
85032
|
+
tool_budget: z9.number().int().positive().default(8),
|
|
85033
|
+
query_expansion: z9.boolean().default(false)
|
|
85018
85034
|
}).strict();
|
|
85019
|
-
var OmoMemoryNudgeSchema =
|
|
85020
|
-
enabled:
|
|
85021
|
-
every_user_turns:
|
|
85035
|
+
var OmoMemoryNudgeSchema = z9.object({
|
|
85036
|
+
enabled: z9.boolean().default(true),
|
|
85037
|
+
every_user_turns: z9.number().int().min(1).default(10)
|
|
85022
85038
|
}).strict();
|
|
85023
|
-
var OmoMemoryFactsSchema =
|
|
85024
|
-
enabled:
|
|
85025
|
-
debounce_settles:
|
|
85026
|
-
model:
|
|
85039
|
+
var OmoMemoryFactsSchema = z9.object({
|
|
85040
|
+
enabled: z9.boolean().default(true),
|
|
85041
|
+
debounce_settles: z9.number().int().min(1).default(4),
|
|
85042
|
+
model: z9.string().min(1).optional()
|
|
85027
85043
|
}).strict();
|
|
85028
|
-
var OmoMemoryDreamSchema =
|
|
85029
|
-
enabled:
|
|
85030
|
-
idle_minutes:
|
|
85031
|
-
min_hours_between:
|
|
85032
|
-
shutdown_launch:
|
|
85033
|
-
auto_select_max:
|
|
85034
|
-
auto_select_max_chars:
|
|
85044
|
+
var OmoMemoryDreamSchema = z9.object({
|
|
85045
|
+
enabled: z9.boolean().default(true),
|
|
85046
|
+
idle_minutes: z9.number().int().min(0).default(30),
|
|
85047
|
+
min_hours_between: z9.number().int().min(1).default(24),
|
|
85048
|
+
shutdown_launch: z9.boolean().default(true),
|
|
85049
|
+
auto_select_max: z9.number().int().min(1).max(10).default(5),
|
|
85050
|
+
auto_select_max_chars: z9.number().int().min(1e4).default(150000)
|
|
85035
85051
|
}).strict();
|
|
85036
|
-
var OmoMemoryPeopleSchema =
|
|
85037
|
-
enabled:
|
|
85038
|
-
max_entries:
|
|
85039
|
-
max_entry_chars:
|
|
85052
|
+
var OmoMemoryPeopleSchema = z9.object({
|
|
85053
|
+
enabled: z9.boolean().default(true),
|
|
85054
|
+
max_entries: z9.number().int().min(1).max(100).default(40),
|
|
85055
|
+
max_entry_chars: z9.number().int().min(50).max(500).default(200)
|
|
85040
85056
|
}).strict();
|
|
85041
|
-
var OmoMemorySoulSchema =
|
|
85042
|
-
edit_notice:
|
|
85057
|
+
var OmoMemorySoulSchema = z9.object({
|
|
85058
|
+
edit_notice: z9.boolean().default(true)
|
|
85043
85059
|
}).strict();
|
|
85044
|
-
var OmoMemoryWriteNoticeSchema =
|
|
85045
|
-
enabled:
|
|
85060
|
+
var OmoMemoryWriteNoticeSchema = z9.object({
|
|
85061
|
+
enabled: z9.boolean().default(true)
|
|
85046
85062
|
}).strict();
|
|
85047
|
-
var OmoMemoryReflectionTriggerLayerSchema =
|
|
85048
|
-
step_count:
|
|
85049
|
-
on_compaction:
|
|
85063
|
+
var OmoMemoryReflectionTriggerLayerSchema = z9.object({
|
|
85064
|
+
step_count: z9.number().int().nonnegative().optional(),
|
|
85065
|
+
on_compaction: z9.boolean().optional()
|
|
85050
85066
|
}).strict();
|
|
85051
|
-
var OmoMemoryReflectionLayerSchema =
|
|
85052
|
-
enabled:
|
|
85067
|
+
var OmoMemoryReflectionLayerSchema = z9.object({
|
|
85068
|
+
enabled: z9.boolean().optional(),
|
|
85053
85069
|
trigger: OmoMemoryReflectionTriggerLayerSchema.optional(),
|
|
85054
|
-
merge:
|
|
85055
|
-
category:
|
|
85056
|
-
timeout_minutes:
|
|
85057
|
-
sandbox:
|
|
85070
|
+
merge: z9.enum(["auto", "integration"]).optional(),
|
|
85071
|
+
category: z9.string().min(1).optional(),
|
|
85072
|
+
timeout_minutes: z9.number().int().positive().optional(),
|
|
85073
|
+
sandbox: z9.enum(["auto", "required", "off"]).optional()
|
|
85058
85074
|
}).strict();
|
|
85059
|
-
var OmoMemorySyncLayerSchema =
|
|
85060
|
-
remote:
|
|
85061
|
-
enabled:
|
|
85075
|
+
var OmoMemorySyncLayerSchema = z9.object({
|
|
85076
|
+
remote: z9.string().min(1).optional(),
|
|
85077
|
+
enabled: z9.boolean().optional()
|
|
85062
85078
|
}).strict();
|
|
85063
|
-
var OmoMemorySearchLayerSchema =
|
|
85064
|
-
enabled:
|
|
85079
|
+
var OmoMemorySearchLayerSchema = z9.object({
|
|
85080
|
+
enabled: z9.boolean().optional()
|
|
85065
85081
|
}).strict();
|
|
85066
|
-
var OmoMemoryRecallEventCapsLayerSchema =
|
|
85067
|
-
tool_args:
|
|
85068
|
-
result_head:
|
|
85069
|
-
assistant:
|
|
85070
|
-
prompt:
|
|
85082
|
+
var OmoMemoryRecallEventCapsLayerSchema = z9.object({
|
|
85083
|
+
tool_args: z9.number().int().nonnegative().optional(),
|
|
85084
|
+
result_head: z9.number().int().nonnegative().optional(),
|
|
85085
|
+
assistant: z9.number().int().nonnegative().optional(),
|
|
85086
|
+
prompt: z9.number().int().nonnegative().optional()
|
|
85071
85087
|
}).strict();
|
|
85072
|
-
var OmoMemoryRecallLayerSchema =
|
|
85073
|
-
enabled:
|
|
85074
|
-
max_items:
|
|
85075
|
-
category:
|
|
85088
|
+
var OmoMemoryRecallLayerSchema = z9.object({
|
|
85089
|
+
enabled: z9.boolean().optional(),
|
|
85090
|
+
max_items: z9.number().int().min(1).max(5).optional(),
|
|
85091
|
+
category: z9.string().min(1).optional(),
|
|
85076
85092
|
event_caps: OmoMemoryRecallEventCapsLayerSchema.optional(),
|
|
85077
|
-
sidecar_max_tokens:
|
|
85078
|
-
max_concurrent_wakes:
|
|
85079
|
-
tool_budget:
|
|
85080
|
-
query_expansion:
|
|
85093
|
+
sidecar_max_tokens: z9.number().int().positive().optional(),
|
|
85094
|
+
max_concurrent_wakes: z9.number().int().positive().optional(),
|
|
85095
|
+
tool_budget: z9.number().int().positive().optional(),
|
|
85096
|
+
query_expansion: z9.boolean().optional()
|
|
85081
85097
|
}).strict();
|
|
85082
|
-
var OmoMemoryNudgeLayerSchema =
|
|
85083
|
-
enabled:
|
|
85084
|
-
every_user_turns:
|
|
85098
|
+
var OmoMemoryNudgeLayerSchema = z9.object({
|
|
85099
|
+
enabled: z9.boolean().optional(),
|
|
85100
|
+
every_user_turns: z9.number().int().min(1).optional()
|
|
85085
85101
|
}).strict();
|
|
85086
|
-
var OmoMemoryFactsLayerSchema =
|
|
85087
|
-
enabled:
|
|
85088
|
-
debounce_settles:
|
|
85089
|
-
model:
|
|
85102
|
+
var OmoMemoryFactsLayerSchema = z9.object({
|
|
85103
|
+
enabled: z9.boolean().optional(),
|
|
85104
|
+
debounce_settles: z9.number().int().min(1).optional(),
|
|
85105
|
+
model: z9.string().min(1).optional()
|
|
85090
85106
|
}).strict();
|
|
85091
|
-
var OmoMemoryDreamLayerSchema =
|
|
85092
|
-
enabled:
|
|
85093
|
-
idle_minutes:
|
|
85094
|
-
min_hours_between:
|
|
85095
|
-
shutdown_launch:
|
|
85096
|
-
auto_select_max:
|
|
85097
|
-
auto_select_max_chars:
|
|
85107
|
+
var OmoMemoryDreamLayerSchema = z9.object({
|
|
85108
|
+
enabled: z9.boolean().optional(),
|
|
85109
|
+
idle_minutes: z9.number().int().min(0).optional(),
|
|
85110
|
+
min_hours_between: z9.number().int().min(1).optional(),
|
|
85111
|
+
shutdown_launch: z9.boolean().optional(),
|
|
85112
|
+
auto_select_max: z9.number().int().min(1).max(10).optional(),
|
|
85113
|
+
auto_select_max_chars: z9.number().int().min(1e4).optional()
|
|
85098
85114
|
}).strict();
|
|
85099
|
-
var OmoMemoryPeopleLayerSchema =
|
|
85100
|
-
enabled:
|
|
85101
|
-
max_entries:
|
|
85102
|
-
max_entry_chars:
|
|
85115
|
+
var OmoMemoryPeopleLayerSchema = z9.object({
|
|
85116
|
+
enabled: z9.boolean().optional(),
|
|
85117
|
+
max_entries: z9.number().int().min(1).max(100).optional(),
|
|
85118
|
+
max_entry_chars: z9.number().int().min(50).max(500).optional()
|
|
85103
85119
|
}).strict();
|
|
85104
|
-
var OmoMemorySoulLayerSchema =
|
|
85105
|
-
edit_notice:
|
|
85120
|
+
var OmoMemorySoulLayerSchema = z9.object({
|
|
85121
|
+
edit_notice: z9.boolean().optional()
|
|
85106
85122
|
}).strict();
|
|
85107
|
-
var OmoMemoryWriteNoticeLayerSchema =
|
|
85108
|
-
enabled:
|
|
85123
|
+
var OmoMemoryWriteNoticeLayerSchema = z9.object({
|
|
85124
|
+
enabled: z9.boolean().optional()
|
|
85109
85125
|
}).strict();
|
|
85110
|
-
var OmoMemoryProjectionSchema =
|
|
85111
|
-
max_entries_per_directory:
|
|
85112
|
-
max_bytes:
|
|
85126
|
+
var OmoMemoryProjectionSchema = z9.object({
|
|
85127
|
+
max_entries_per_directory: z9.number().int().min(0).default(40),
|
|
85128
|
+
max_bytes: z9.number().int().min(0).default(24576)
|
|
85113
85129
|
}).strict();
|
|
85114
|
-
var OmoMemoryProjectionLayerSchema =
|
|
85115
|
-
max_entries_per_directory:
|
|
85116
|
-
max_bytes:
|
|
85130
|
+
var OmoMemoryProjectionLayerSchema = z9.object({
|
|
85131
|
+
max_entries_per_directory: z9.number().int().min(0).optional(),
|
|
85132
|
+
max_bytes: z9.number().int().min(0).optional()
|
|
85117
85133
|
}).strict();
|
|
85118
|
-
var OmoMemoryAgentOverridesSchema =
|
|
85119
|
-
enabled:
|
|
85120
|
-
agent:
|
|
85134
|
+
var OmoMemoryAgentOverridesSchema = z9.object({
|
|
85135
|
+
enabled: z9.boolean().optional(),
|
|
85136
|
+
agent: z9.string().min(1).optional(),
|
|
85121
85137
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
85122
85138
|
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
85123
85139
|
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
85124
85140
|
dream: OmoMemoryDreamLayerSchema.optional(),
|
|
85125
85141
|
people: OmoMemoryPeopleLayerSchema.optional(),
|
|
85142
|
+
agreements: OmoMemoryAgreementsLayerSchema.optional(),
|
|
85126
85143
|
soul: OmoMemorySoulLayerSchema.optional(),
|
|
85127
85144
|
write_notice: OmoMemoryWriteNoticeLayerSchema.optional(),
|
|
85128
85145
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
85129
85146
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
85130
85147
|
recall: OmoMemoryRecallLayerSchema.optional(),
|
|
85131
85148
|
projection: OmoMemoryProjectionLayerSchema.optional(),
|
|
85132
|
-
compile_warn_tokens:
|
|
85149
|
+
compile_warn_tokens: z9.number().int().positive().optional()
|
|
85133
85150
|
}).strict();
|
|
85134
|
-
var OmoMemorySettingsSchema =
|
|
85135
|
-
enabled:
|
|
85136
|
-
agent:
|
|
85151
|
+
var OmoMemorySettingsSchema = z9.object({
|
|
85152
|
+
enabled: z9.boolean().default(true),
|
|
85153
|
+
agent: z9.string().min(1).default("auto"),
|
|
85137
85154
|
reflection: OmoMemoryReflectionSchema.default({
|
|
85138
85155
|
enabled: true,
|
|
85139
85156
|
trigger: { step_count: 25, on_compaction: true },
|
|
@@ -85153,6 +85170,7 @@ var OmoMemorySettingsSchema = z8.object({
|
|
|
85153
85170
|
auto_select_max_chars: 150000
|
|
85154
85171
|
}),
|
|
85155
85172
|
people: OmoMemoryPeopleSchema.default({ enabled: true, max_entries: 40, max_entry_chars: 200 }),
|
|
85173
|
+
agreements: OmoMemoryAgreementsSchema.default(OMO_MEMORY_AGREEMENTS_DEFAULTS),
|
|
85156
85174
|
soul: OmoMemorySoulSchema.default({ edit_notice: true }),
|
|
85157
85175
|
write_notice: OmoMemoryWriteNoticeSchema.default({ enabled: true }),
|
|
85158
85176
|
sync: OmoMemorySyncSchema.default({ enabled: true }),
|
|
@@ -85168,100 +85186,101 @@ var OmoMemorySettingsSchema = z8.object({
|
|
|
85168
85186
|
query_expansion: false
|
|
85169
85187
|
}),
|
|
85170
85188
|
projection: OmoMemoryProjectionSchema.default({ max_entries_per_directory: 40, max_bytes: 24576 }),
|
|
85171
|
-
compile_warn_tokens:
|
|
85172
|
-
agents:
|
|
85189
|
+
compile_warn_tokens: z9.number().int().positive().default(30000),
|
|
85190
|
+
agents: z9.record(z9.string(), OmoMemoryAgentOverridesSchema).default({})
|
|
85173
85191
|
}).strict();
|
|
85174
|
-
var OmoMemorySettingsLayerSchema =
|
|
85175
|
-
enabled:
|
|
85176
|
-
agent:
|
|
85192
|
+
var OmoMemorySettingsLayerSchema = z9.object({
|
|
85193
|
+
enabled: z9.boolean().optional(),
|
|
85194
|
+
agent: z9.string().min(1).optional(),
|
|
85177
85195
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
85178
85196
|
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
85179
85197
|
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
85180
85198
|
dream: OmoMemoryDreamLayerSchema.optional(),
|
|
85181
85199
|
people: OmoMemoryPeopleLayerSchema.optional(),
|
|
85200
|
+
agreements: OmoMemoryAgreementsLayerSchema.optional(),
|
|
85182
85201
|
soul: OmoMemorySoulLayerSchema.optional(),
|
|
85183
85202
|
write_notice: OmoMemoryWriteNoticeLayerSchema.optional(),
|
|
85184
85203
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
85185
85204
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
85186
85205
|
recall: OmoMemoryRecallLayerSchema.optional(),
|
|
85187
85206
|
projection: OmoMemoryProjectionLayerSchema.optional(),
|
|
85188
|
-
compile_warn_tokens:
|
|
85189
|
-
agents:
|
|
85207
|
+
compile_warn_tokens: z9.number().int().positive().optional(),
|
|
85208
|
+
agents: z9.record(z9.string(), OmoMemoryAgentOverridesSchema).optional()
|
|
85190
85209
|
}).strict();
|
|
85191
85210
|
|
|
85192
85211
|
// packages/omo-config-core/src/schema/model-catalog.ts
|
|
85193
|
-
import * as
|
|
85212
|
+
import * as z10 from "zod";
|
|
85194
85213
|
function isRecord8(value) {
|
|
85195
85214
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
85196
85215
|
}
|
|
85197
|
-
var OmoModelCatalogEntryInputSchema =
|
|
85198
|
-
model:
|
|
85216
|
+
var OmoModelCatalogEntryInputSchema = z10.object({
|
|
85217
|
+
model: z10.string(),
|
|
85199
85218
|
reasoning: OmoReasoningSchema.optional(),
|
|
85200
|
-
variant:
|
|
85219
|
+
variant: z10.string().optional(),
|
|
85201
85220
|
reasoningEffort: OmoReasoningEffortSchema.optional()
|
|
85202
85221
|
}).strict();
|
|
85203
|
-
var OmoModelCatalogEntrySchema =
|
|
85204
|
-
var OmoModelCatalogSchema =
|
|
85222
|
+
var OmoModelCatalogEntrySchema = z10.preprocess((value) => isRecord8(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryInputSchema);
|
|
85223
|
+
var OmoModelCatalogSchema = z10.record(z10.string(), OmoModelCatalogEntrySchema);
|
|
85205
85224
|
var OmoModelCatalogEntryLayerInputSchema = OmoModelCatalogEntryInputSchema.partial();
|
|
85206
|
-
var OmoModelCatalogEntryLayerSchema =
|
|
85207
|
-
var OmoModelCatalogLayerSchema =
|
|
85225
|
+
var OmoModelCatalogEntryLayerSchema = z10.preprocess((value) => isRecord8(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryLayerInputSchema);
|
|
85226
|
+
var OmoModelCatalogLayerSchema = z10.record(z10.string(), OmoModelCatalogEntryLayerSchema);
|
|
85208
85227
|
|
|
85209
85228
|
// packages/omo-config-core/src/schema/model-profile.ts
|
|
85210
|
-
import * as
|
|
85229
|
+
import * as z11 from "zod";
|
|
85211
85230
|
function isRecord9(value) {
|
|
85212
85231
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
85213
85232
|
}
|
|
85214
|
-
var OmoModelProfileInputSchema =
|
|
85215
|
-
display_name:
|
|
85216
|
-
family:
|
|
85217
|
-
tier:
|
|
85218
|
-
models:
|
|
85233
|
+
var OmoModelProfileInputSchema = z11.object({
|
|
85234
|
+
display_name: z11.string().optional(),
|
|
85235
|
+
family: z11.enum(["daily", "geeky"]).optional(),
|
|
85236
|
+
tier: z11.enum(["normal", "heavy"]).optional(),
|
|
85237
|
+
models: z11.array(z11.union([z11.string(), OmoFallbackModelObjectSchema])).optional()
|
|
85219
85238
|
}).strict();
|
|
85220
|
-
var OmoModelProfileSchema =
|
|
85221
|
-
var OmoModelProfilesSchema =
|
|
85239
|
+
var OmoModelProfileSchema = z11.preprocess((value) => isRecord9(value) ? normalizeLegacyModelFields(value) : value, OmoModelProfileInputSchema);
|
|
85240
|
+
var OmoModelProfilesSchema = z11.record(z11.string(), OmoModelProfileSchema);
|
|
85222
85241
|
var OmoModelProfileLayerInputSchema = OmoModelProfileInputSchema.partial();
|
|
85223
|
-
var OmoModelProfileLayerSchema =
|
|
85224
|
-
var OmoModelProfilesLayerSchema =
|
|
85242
|
+
var OmoModelProfileLayerSchema = z11.preprocess((value) => isRecord9(value) ? normalizeLegacyModelFields(value) : value, OmoModelProfileLayerInputSchema);
|
|
85243
|
+
var OmoModelProfilesLayerSchema = z11.record(z11.string(), OmoModelProfileLayerSchema);
|
|
85225
85244
|
|
|
85226
85245
|
// packages/omo-config-core/src/schema/side-panel.ts
|
|
85227
|
-
import * as
|
|
85228
|
-
var OmoSidePanelWidthSchema =
|
|
85246
|
+
import * as z12 from "zod";
|
|
85247
|
+
var OmoSidePanelWidthSchema = z12.union([z12.number().int().min(24).max(160), z12.string().regex(/^(?:1\d|[2-4]\d|50)%$/)]);
|
|
85229
85248
|
var OmoSidePanelSectionsShape = {
|
|
85230
|
-
session:
|
|
85231
|
-
goal:
|
|
85232
|
-
context:
|
|
85233
|
-
usage:
|
|
85234
|
-
agents:
|
|
85235
|
-
tools:
|
|
85236
|
-
files:
|
|
85237
|
-
memory:
|
|
85249
|
+
session: z12.boolean(),
|
|
85250
|
+
goal: z12.boolean(),
|
|
85251
|
+
context: z12.boolean(),
|
|
85252
|
+
usage: z12.boolean(),
|
|
85253
|
+
agents: z12.boolean(),
|
|
85254
|
+
tools: z12.boolean(),
|
|
85255
|
+
files: z12.boolean(),
|
|
85256
|
+
memory: z12.boolean()
|
|
85238
85257
|
};
|
|
85239
|
-
var OmoSidePanelSectionsLayerSchema =
|
|
85258
|
+
var OmoSidePanelSectionsLayerSchema = z12.object(OmoSidePanelSectionsShape).partial().strict();
|
|
85240
85259
|
var OmoSidePanelSectionsSchema = OmoSidePanelSectionsLayerSchema.extend({
|
|
85241
|
-
session:
|
|
85242
|
-
goal:
|
|
85243
|
-
context:
|
|
85244
|
-
usage:
|
|
85245
|
-
agents:
|
|
85246
|
-
tools:
|
|
85247
|
-
files:
|
|
85248
|
-
memory:
|
|
85260
|
+
session: z12.boolean().default(true),
|
|
85261
|
+
goal: z12.boolean().default(true),
|
|
85262
|
+
context: z12.boolean().default(true),
|
|
85263
|
+
usage: z12.boolean().default(false),
|
|
85264
|
+
agents: z12.boolean().default(true),
|
|
85265
|
+
tools: z12.boolean().default(true),
|
|
85266
|
+
files: z12.boolean().default(true),
|
|
85267
|
+
memory: z12.boolean().default(true)
|
|
85249
85268
|
}).strict();
|
|
85250
85269
|
var OmoSidePanelSettingsShape = {
|
|
85251
|
-
enabled:
|
|
85270
|
+
enabled: z12.boolean(),
|
|
85252
85271
|
width: OmoSidePanelWidthSchema,
|
|
85253
|
-
min_columns:
|
|
85254
|
-
clickable:
|
|
85255
|
-
usage_poll_seconds:
|
|
85272
|
+
min_columns: z12.number().int().min(60).max(400),
|
|
85273
|
+
clickable: z12.boolean(),
|
|
85274
|
+
usage_poll_seconds: z12.number().int().min(60).max(3600),
|
|
85256
85275
|
sections: OmoSidePanelSectionsLayerSchema
|
|
85257
85276
|
};
|
|
85258
|
-
var OmoSidePanelSettingsLayerSchema =
|
|
85277
|
+
var OmoSidePanelSettingsLayerSchema = z12.object(OmoSidePanelSettingsShape).partial().strict();
|
|
85259
85278
|
var OmoSidePanelSettingsSchema = OmoSidePanelSettingsLayerSchema.extend({
|
|
85260
|
-
enabled:
|
|
85279
|
+
enabled: z12.boolean().default(false),
|
|
85261
85280
|
width: OmoSidePanelWidthSchema.default("26%"),
|
|
85262
|
-
min_columns:
|
|
85263
|
-
clickable:
|
|
85264
|
-
usage_poll_seconds:
|
|
85281
|
+
min_columns: z12.number().int().min(60).max(400).default(120),
|
|
85282
|
+
clickable: z12.boolean().default(true),
|
|
85283
|
+
usage_poll_seconds: z12.number().int().min(60).max(3600).default(150),
|
|
85265
85284
|
sections: OmoSidePanelSectionsSchema.default({
|
|
85266
85285
|
session: true,
|
|
85267
85286
|
goal: true,
|
|
@@ -85276,23 +85295,23 @@ var OmoSidePanelSettingsSchema = OmoSidePanelSettingsLayerSchema.extend({
|
|
|
85276
85295
|
|
|
85277
85296
|
// packages/omo-config-core/src/schema/task.ts
|
|
85278
85297
|
import { availableParallelism } from "os";
|
|
85279
|
-
import * as
|
|
85298
|
+
import * as z13 from "zod";
|
|
85280
85299
|
var DEFAULT_RESIDENCY_MAX_CHILDREN = "unlimited";
|
|
85281
|
-
var ResidencyMaxChildrenInputSchema =
|
|
85282
|
-
var OmoTaskWaitSchema =
|
|
85283
|
-
min_ms:
|
|
85284
|
-
default_ms:
|
|
85285
|
-
max_ms:
|
|
85300
|
+
var ResidencyMaxChildrenInputSchema = z13.union([z13.number().int().nonnegative(), z13.literal("unlimited")]);
|
|
85301
|
+
var OmoTaskWaitSchema = z13.object({
|
|
85302
|
+
min_ms: z13.number().int().positive().default(5000),
|
|
85303
|
+
default_ms: z13.number().int().positive().default(60000),
|
|
85304
|
+
max_ms: z13.number().int().positive().default(600000)
|
|
85286
85305
|
}).strict();
|
|
85287
|
-
var OmoTaskTeamSettingsSchema =
|
|
85288
|
-
max_members:
|
|
85289
|
-
max_parallel_members:
|
|
85290
|
-
max_wall_clock_minutes:
|
|
85306
|
+
var OmoTaskTeamSettingsSchema = z13.object({
|
|
85307
|
+
max_members: z13.number().int().min(1).max(8).default(8),
|
|
85308
|
+
max_parallel_members: z13.number().int().min(1).max(8).default(4),
|
|
85309
|
+
max_wall_clock_minutes: z13.number().int().positive().default(120)
|
|
85291
85310
|
}).strict();
|
|
85292
|
-
var OmoTaskWarningsSchema =
|
|
85293
|
-
unavailable_categories:
|
|
85311
|
+
var OmoTaskWarningsSchema = z13.object({
|
|
85312
|
+
unavailable_categories: z13.boolean().default(true)
|
|
85294
85313
|
}).strict();
|
|
85295
|
-
var IsolationBackendKindSchema =
|
|
85314
|
+
var IsolationBackendKindSchema = z13.enum([
|
|
85296
85315
|
"auto",
|
|
85297
85316
|
"apfs",
|
|
85298
85317
|
"btrfs",
|
|
@@ -85302,49 +85321,49 @@ var IsolationBackendKindSchema = z12.enum([
|
|
|
85302
85321
|
"block-clone",
|
|
85303
85322
|
"rcopy"
|
|
85304
85323
|
]);
|
|
85305
|
-
var OmoTaskIsolationSchema =
|
|
85306
|
-
enabled:
|
|
85324
|
+
var OmoTaskIsolationSchema = z13.object({
|
|
85325
|
+
enabled: z13.boolean().default(false),
|
|
85307
85326
|
backend: IsolationBackendKindSchema.default("auto"),
|
|
85308
|
-
apply:
|
|
85309
|
-
merge:
|
|
85310
|
-
commits:
|
|
85327
|
+
apply: z13.boolean().default(true),
|
|
85328
|
+
merge: z13.enum(["patch", "branch"]).default("patch"),
|
|
85329
|
+
commits: z13.enum(["generic", "ai"]).default("generic")
|
|
85311
85330
|
}).strict();
|
|
85312
85331
|
var isolationDefaults = OmoTaskIsolationSchema.parse({});
|
|
85313
|
-
var OmoTaskIsolationLayerSchema =
|
|
85314
|
-
enabled:
|
|
85332
|
+
var OmoTaskIsolationLayerSchema = z13.object({
|
|
85333
|
+
enabled: z13.boolean().optional(),
|
|
85315
85334
|
backend: IsolationBackendKindSchema.optional(),
|
|
85316
|
-
apply:
|
|
85317
|
-
merge:
|
|
85318
|
-
commits:
|
|
85335
|
+
apply: z13.boolean().optional(),
|
|
85336
|
+
merge: z13.enum(["patch", "branch"]).optional(),
|
|
85337
|
+
commits: z13.enum(["generic", "ai"]).optional()
|
|
85319
85338
|
}).strict();
|
|
85320
|
-
var OmoTaskDagSettingsSchema =
|
|
85321
|
-
max_nodes_per_run:
|
|
85322
|
-
max_runs_per_session:
|
|
85323
|
-
subscriber_ring:
|
|
85324
|
-
heartbeat_ms:
|
|
85325
|
-
history_default_limit:
|
|
85326
|
-
history_max_limit:
|
|
85327
|
-
retention_days:
|
|
85328
|
-
max_prompt_bytes:
|
|
85339
|
+
var OmoTaskDagSettingsSchema = z13.object({
|
|
85340
|
+
max_nodes_per_run: z13.number().int().positive().default(64),
|
|
85341
|
+
max_runs_per_session: z13.number().int().positive().default(16),
|
|
85342
|
+
subscriber_ring: z13.number().int().positive().default(1000),
|
|
85343
|
+
heartbeat_ms: z13.number().int().positive().default(15000),
|
|
85344
|
+
history_default_limit: z13.number().int().positive().default(256),
|
|
85345
|
+
history_max_limit: z13.number().int().positive().default(1000),
|
|
85346
|
+
retention_days: z13.number().int().positive().default(7),
|
|
85347
|
+
max_prompt_bytes: z13.number().int().positive().default(262144)
|
|
85329
85348
|
}).strict();
|
|
85330
|
-
var OmoTaskSettingsSchema =
|
|
85349
|
+
var OmoTaskSettingsSchema = z13.object({
|
|
85331
85350
|
isolation: OmoTaskIsolationSchema.default(isolationDefaults),
|
|
85332
|
-
default_execution_mode:
|
|
85333
|
-
process_runner:
|
|
85334
|
-
host_engine_policy:
|
|
85335
|
-
host_idle_exit_ms:
|
|
85336
|
-
host_shard_prewarm:
|
|
85337
|
-
default_concurrency:
|
|
85338
|
-
global_concurrency:
|
|
85339
|
-
provider_concurrency:
|
|
85340
|
-
model_concurrency:
|
|
85341
|
-
max_depth:
|
|
85351
|
+
default_execution_mode: z13.enum(["auto", "in-process", "process"]).default("auto"),
|
|
85352
|
+
process_runner: z13.enum(["host", "child-process"]).default("host"),
|
|
85353
|
+
host_engine_policy: z13.enum(["upgrade", "fallback"]).default("upgrade"),
|
|
85354
|
+
host_idle_exit_ms: z13.number().int().positive().optional(),
|
|
85355
|
+
host_shard_prewarm: z13.enum(["off", "first-turn", "session-start"]).default("first-turn"),
|
|
85356
|
+
default_concurrency: z13.number().int().nonnegative().default(5),
|
|
85357
|
+
global_concurrency: z13.number().int().nonnegative().default(8),
|
|
85358
|
+
provider_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85359
|
+
model_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85360
|
+
max_depth: z13.number().int().nonnegative().default(1),
|
|
85342
85361
|
residency_max_children: ResidencyMaxChildrenInputSchema.default(DEFAULT_RESIDENCY_MAX_CHILDREN),
|
|
85343
|
-
resident_idle_timeout_ms:
|
|
85344
|
-
ttl_ms:
|
|
85345
|
-
state_dir:
|
|
85346
|
-
reattach_on_reconcile:
|
|
85347
|
-
resume_children:
|
|
85362
|
+
resident_idle_timeout_ms: z13.number().int().positive().max(Number.MAX_SAFE_INTEGER).default(900000),
|
|
85363
|
+
ttl_ms: z13.number().int().positive().default(86400000),
|
|
85364
|
+
state_dir: z13.string().optional(),
|
|
85365
|
+
reattach_on_reconcile: z13.boolean().optional(),
|
|
85366
|
+
resume_children: z13.boolean().default(true),
|
|
85348
85367
|
warnings: OmoTaskWarningsSchema.default({ unavailable_categories: true }),
|
|
85349
85368
|
wait: OmoTaskWaitSchema.default({ min_ms: 5000, default_ms: 60000, max_ms: 600000 }),
|
|
85350
85369
|
team: OmoTaskTeamSettingsSchema.default({
|
|
@@ -85354,54 +85373,54 @@ var OmoTaskSettingsSchema = z12.object({
|
|
|
85354
85373
|
}),
|
|
85355
85374
|
dag: OmoTaskDagSettingsSchema.optional()
|
|
85356
85375
|
}).strict();
|
|
85357
|
-
var OmoTaskDagSettingsLayerSchema =
|
|
85358
|
-
max_nodes_per_run:
|
|
85359
|
-
max_runs_per_session:
|
|
85360
|
-
subscriber_ring:
|
|
85361
|
-
heartbeat_ms:
|
|
85362
|
-
history_default_limit:
|
|
85363
|
-
history_max_limit:
|
|
85364
|
-
retention_days:
|
|
85365
|
-
max_prompt_bytes:
|
|
85376
|
+
var OmoTaskDagSettingsLayerSchema = z13.object({
|
|
85377
|
+
max_nodes_per_run: z13.number().int().positive().optional(),
|
|
85378
|
+
max_runs_per_session: z13.number().int().positive().optional(),
|
|
85379
|
+
subscriber_ring: z13.number().int().positive().optional(),
|
|
85380
|
+
heartbeat_ms: z13.number().int().positive().optional(),
|
|
85381
|
+
history_default_limit: z13.number().int().positive().optional(),
|
|
85382
|
+
history_max_limit: z13.number().int().positive().optional(),
|
|
85383
|
+
retention_days: z13.number().int().positive().optional(),
|
|
85384
|
+
max_prompt_bytes: z13.number().int().positive().optional()
|
|
85366
85385
|
}).strict();
|
|
85367
|
-
var OmoTaskWaitLayerSchema =
|
|
85368
|
-
min_ms:
|
|
85369
|
-
default_ms:
|
|
85370
|
-
max_ms:
|
|
85386
|
+
var OmoTaskWaitLayerSchema = z13.object({
|
|
85387
|
+
min_ms: z13.number().int().positive().optional(),
|
|
85388
|
+
default_ms: z13.number().int().positive().optional(),
|
|
85389
|
+
max_ms: z13.number().int().positive().optional()
|
|
85371
85390
|
}).strict();
|
|
85372
|
-
var OmoTaskTeamSettingsLayerSchema =
|
|
85373
|
-
max_members:
|
|
85374
|
-
max_parallel_members:
|
|
85375
|
-
max_wall_clock_minutes:
|
|
85391
|
+
var OmoTaskTeamSettingsLayerSchema = z13.object({
|
|
85392
|
+
max_members: z13.number().int().min(1).max(8).optional(),
|
|
85393
|
+
max_parallel_members: z13.number().int().min(1).max(8).optional(),
|
|
85394
|
+
max_wall_clock_minutes: z13.number().int().positive().optional()
|
|
85376
85395
|
}).strict();
|
|
85377
|
-
var OmoTaskWarningsLayerSchema =
|
|
85378
|
-
unavailable_categories:
|
|
85396
|
+
var OmoTaskWarningsLayerSchema = z13.object({
|
|
85397
|
+
unavailable_categories: z13.boolean().optional()
|
|
85379
85398
|
}).strict();
|
|
85380
|
-
var OmoTaskSettingsLayerSchema =
|
|
85399
|
+
var OmoTaskSettingsLayerSchema = z13.object({
|
|
85381
85400
|
isolation: OmoTaskIsolationLayerSchema.optional(),
|
|
85382
|
-
default_execution_mode:
|
|
85383
|
-
process_runner:
|
|
85384
|
-
host_engine_policy:
|
|
85385
|
-
host_idle_exit_ms:
|
|
85386
|
-
host_shard_prewarm:
|
|
85387
|
-
default_concurrency:
|
|
85388
|
-
global_concurrency:
|
|
85389
|
-
provider_concurrency:
|
|
85390
|
-
model_concurrency:
|
|
85391
|
-
max_depth:
|
|
85401
|
+
default_execution_mode: z13.enum(["auto", "in-process", "process"]).optional(),
|
|
85402
|
+
process_runner: z13.enum(["host", "child-process"]).optional(),
|
|
85403
|
+
host_engine_policy: z13.enum(["upgrade", "fallback"]).optional(),
|
|
85404
|
+
host_idle_exit_ms: z13.number().int().positive().optional(),
|
|
85405
|
+
host_shard_prewarm: z13.enum(["off", "first-turn", "session-start"]).optional(),
|
|
85406
|
+
default_concurrency: z13.number().int().nonnegative().optional(),
|
|
85407
|
+
global_concurrency: z13.number().int().nonnegative().optional(),
|
|
85408
|
+
provider_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85409
|
+
model_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85410
|
+
max_depth: z13.number().int().nonnegative().optional(),
|
|
85392
85411
|
residency_max_children: ResidencyMaxChildrenInputSchema.optional(),
|
|
85393
|
-
resident_idle_timeout_ms:
|
|
85394
|
-
ttl_ms:
|
|
85395
|
-
state_dir:
|
|
85396
|
-
reattach_on_reconcile:
|
|
85397
|
-
resume_children:
|
|
85412
|
+
resident_idle_timeout_ms: z13.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),
|
|
85413
|
+
ttl_ms: z13.number().int().positive().optional(),
|
|
85414
|
+
state_dir: z13.string().optional(),
|
|
85415
|
+
reattach_on_reconcile: z13.boolean().optional(),
|
|
85416
|
+
resume_children: z13.boolean().optional(),
|
|
85398
85417
|
warnings: OmoTaskWarningsLayerSchema.optional(),
|
|
85399
85418
|
wait: OmoTaskWaitLayerSchema.optional(),
|
|
85400
85419
|
team: OmoTaskTeamSettingsLayerSchema.optional(),
|
|
85401
85420
|
dag: OmoTaskDagSettingsLayerSchema.optional()
|
|
85402
85421
|
}).strict();
|
|
85403
85422
|
function resolveOmoTaskSettings(input, resolveParallelism = availableParallelism) {
|
|
85404
|
-
const record =
|
|
85423
|
+
const record = z13.record(z13.string(), z13.unknown()).parse(input);
|
|
85405
85424
|
return OmoTaskSettingsSchema.parse({
|
|
85406
85425
|
...record,
|
|
85407
85426
|
residency_max_children: record["residency_max_children"] ?? DEFAULT_RESIDENCY_MAX_CHILDREN,
|
|
@@ -85410,39 +85429,39 @@ function resolveOmoTaskSettings(input, resolveParallelism = availableParallelism
|
|
|
85410
85429
|
}
|
|
85411
85430
|
|
|
85412
85431
|
// packages/omo-config-core/src/schema/team.ts
|
|
85413
|
-
import * as
|
|
85414
|
-
var OmoTeamMemberBaseSchema =
|
|
85415
|
-
name:
|
|
85416
|
-
cwd:
|
|
85417
|
-
worktreePath:
|
|
85418
|
-
subscriptions:
|
|
85419
|
-
backendType:
|
|
85420
|
-
color:
|
|
85421
|
-
isActive:
|
|
85432
|
+
import * as z14 from "zod";
|
|
85433
|
+
var OmoTeamMemberBaseSchema = z14.object({
|
|
85434
|
+
name: z14.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
85435
|
+
cwd: z14.string().optional(),
|
|
85436
|
+
worktreePath: z14.string().optional(),
|
|
85437
|
+
subscriptions: z14.array(z14.string()).optional(),
|
|
85438
|
+
backendType: z14.enum(["in-process", "tmux"]).default("in-process"),
|
|
85439
|
+
color: z14.string().optional(),
|
|
85440
|
+
isActive: z14.boolean().default(true)
|
|
85422
85441
|
}).strict();
|
|
85423
85442
|
var OmoTeamCategoryMemberSchema = OmoTeamMemberBaseSchema.extend({
|
|
85424
|
-
kind:
|
|
85425
|
-
category:
|
|
85426
|
-
prompt:
|
|
85443
|
+
kind: z14.literal("category"),
|
|
85444
|
+
category: z14.string().min(1),
|
|
85445
|
+
prompt: z14.string().min(1)
|
|
85427
85446
|
});
|
|
85428
85447
|
var OmoTeamSubagentMemberSchema = OmoTeamMemberBaseSchema.extend({
|
|
85429
|
-
kind:
|
|
85430
|
-
subagent_type:
|
|
85431
|
-
prompt:
|
|
85448
|
+
kind: z14.literal("subagent_type"),
|
|
85449
|
+
subagent_type: z14.string().min(1),
|
|
85450
|
+
prompt: z14.string().optional()
|
|
85432
85451
|
});
|
|
85433
|
-
var OmoTeamMemberSchema =
|
|
85452
|
+
var OmoTeamMemberSchema = z14.discriminatedUnion("kind", [
|
|
85434
85453
|
OmoTeamCategoryMemberSchema,
|
|
85435
85454
|
OmoTeamSubagentMemberSchema
|
|
85436
85455
|
]);
|
|
85437
|
-
var OmoTeamSpecBaseSchema =
|
|
85438
|
-
version:
|
|
85439
|
-
name:
|
|
85440
|
-
description:
|
|
85441
|
-
createdAt:
|
|
85442
|
-
leadAgentId:
|
|
85443
|
-
teamAllowedPaths:
|
|
85444
|
-
sessionPermission:
|
|
85445
|
-
members:
|
|
85456
|
+
var OmoTeamSpecBaseSchema = z14.object({
|
|
85457
|
+
version: z14.literal(1).default(1),
|
|
85458
|
+
name: z14.string().min(1).regex(/^[a-z0-9-]+$/).optional(),
|
|
85459
|
+
description: z14.string().optional(),
|
|
85460
|
+
createdAt: z14.number().int().positive().optional(),
|
|
85461
|
+
leadAgentId: z14.string().optional(),
|
|
85462
|
+
teamAllowedPaths: z14.array(z14.string()).optional(),
|
|
85463
|
+
sessionPermission: z14.string().optional(),
|
|
85464
|
+
members: z14.array(OmoTeamMemberSchema).min(1).max(8)
|
|
85446
85465
|
}).strict();
|
|
85447
85466
|
var OmoTeamSpecSchema = OmoTeamSpecBaseSchema.superRefine((teamSpec, ctx) => {
|
|
85448
85467
|
if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
|
|
@@ -85454,43 +85473,43 @@ var OmoTeamSpecSchema = OmoTeamSpecBaseSchema.superRefine((teamSpec, ctx) => {
|
|
|
85454
85473
|
}
|
|
85455
85474
|
});
|
|
85456
85475
|
var OmoTeamSpecLayerSchema = OmoTeamSpecBaseSchema.partial();
|
|
85457
|
-
var OmoTeamsConfigSchema =
|
|
85458
|
-
var OmoTeamsConfigLayerSchema =
|
|
85476
|
+
var OmoTeamsConfigSchema = z14.record(z14.string(), OmoTeamSpecSchema);
|
|
85477
|
+
var OmoTeamsConfigLayerSchema = z14.record(z14.string(), OmoTeamSpecLayerSchema);
|
|
85459
85478
|
|
|
85460
85479
|
// packages/omo-config-core/src/schema/telemetry.ts
|
|
85461
|
-
import * as
|
|
85480
|
+
import * as z15 from "zod";
|
|
85462
85481
|
var OmoTelemetrySettingsShape = {
|
|
85463
|
-
enabled:
|
|
85482
|
+
enabled: z15.boolean()
|
|
85464
85483
|
};
|
|
85465
|
-
var OmoTelemetrySettingsLayerSchema =
|
|
85484
|
+
var OmoTelemetrySettingsLayerSchema = z15.object(OmoTelemetrySettingsShape).partial().strict();
|
|
85466
85485
|
var OmoTelemetrySettingsSchema = OmoTelemetrySettingsLayerSchema.extend({
|
|
85467
|
-
enabled:
|
|
85486
|
+
enabled: z15.boolean().default(true)
|
|
85468
85487
|
}).strict();
|
|
85469
85488
|
|
|
85470
85489
|
// packages/omo-config-core/src/schema/format-on-mutation.ts
|
|
85471
|
-
import * as
|
|
85472
|
-
var mode =
|
|
85473
|
-
var languages =
|
|
85474
|
-
var OmoFormatOnMutationLayerSchema =
|
|
85490
|
+
import * as z16 from "zod";
|
|
85491
|
+
var mode = z16.enum(["off", "best-effort", "required"]);
|
|
85492
|
+
var languages = z16.record(z16.string(), z16.boolean()).optional();
|
|
85493
|
+
var OmoFormatOnMutationLayerSchema = z16.object({
|
|
85475
85494
|
mode: mode.optional(),
|
|
85476
85495
|
languages,
|
|
85477
|
-
maxFileBytes:
|
|
85478
|
-
timeoutMs:
|
|
85496
|
+
maxFileBytes: z16.number().int().positive().optional(),
|
|
85497
|
+
timeoutMs: z16.number().int().positive().optional()
|
|
85479
85498
|
}).strict();
|
|
85480
85499
|
var OmoFormatOnMutationSchema = OmoFormatOnMutationLayerSchema.extend({
|
|
85481
85500
|
mode: mode.default("best-effort"),
|
|
85482
|
-
maxFileBytes:
|
|
85483
|
-
timeoutMs:
|
|
85501
|
+
maxFileBytes: z16.number().int().positive().default(1048576),
|
|
85502
|
+
timeoutMs: z16.number().int().positive().default(3000)
|
|
85484
85503
|
}).strict();
|
|
85485
85504
|
|
|
85486
85505
|
// packages/omo-config-core/src/schema/gateway.ts
|
|
85487
|
-
import * as
|
|
85488
|
-
var OmoGatewaySectionSchema =
|
|
85506
|
+
import * as z17 from "zod";
|
|
85507
|
+
var OmoGatewaySectionSchema = z17.record(z17.string(), z17.unknown()).describe("Chat-surface gateway settings, owned and validated by a separately installed gateway package. omo accepts the key and never reads it.");
|
|
85489
85508
|
|
|
85490
85509
|
// packages/omo-config-core/src/schema/config.ts
|
|
85491
|
-
var OmoOpenCodeHarnessConfigSchema =
|
|
85492
|
-
var OmoDisabledSkillsSchema =
|
|
85493
|
-
var OmoTypedHarnessConfigSchema =
|
|
85510
|
+
var OmoOpenCodeHarnessConfigSchema = z18.record(z18.string(), z18.unknown());
|
|
85511
|
+
var OmoDisabledSkillsSchema = z18.array(z18.string());
|
|
85512
|
+
var OmoTypedHarnessConfigSchema = z18.object({
|
|
85494
85513
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
85495
85514
|
gateway: OmoGatewaySectionSchema.optional(),
|
|
85496
85515
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
@@ -85500,14 +85519,14 @@ var OmoTypedHarnessConfigSchema = z17.object({
|
|
|
85500
85519
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
85501
85520
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
85502
85521
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
85503
|
-
model_profile:
|
|
85522
|
+
model_profile: z18.string().optional(),
|
|
85504
85523
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
85505
85524
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
85506
85525
|
side_panel: OmoSidePanelSettingsLayerSchema.optional(),
|
|
85507
85526
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
85508
85527
|
disabled_skills: OmoDisabledSkillsSchema.optional()
|
|
85509
85528
|
}).strict();
|
|
85510
|
-
var OmoConfigProfileSchema =
|
|
85529
|
+
var OmoConfigProfileSchema = z18.object({
|
|
85511
85530
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
85512
85531
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
85513
85532
|
agents: OmoAgentsConfigSchema.optional(),
|
|
@@ -85516,7 +85535,7 @@ var OmoConfigProfileSchema = z17.object({
|
|
|
85516
85535
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
85517
85536
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
85518
85537
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
85519
|
-
model_profile:
|
|
85538
|
+
model_profile: z18.string().optional(),
|
|
85520
85539
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
85521
85540
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
85522
85541
|
side_panel: OmoSidePanelSettingsLayerSchema.optional(),
|
|
@@ -85527,10 +85546,10 @@ var OmoConfigProfileSchema = z17.object({
|
|
|
85527
85546
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
85528
85547
|
"[codex]": OmoTypedHarnessConfigSchema.optional()
|
|
85529
85548
|
}).strict();
|
|
85530
|
-
var OmoConfigSchema =
|
|
85549
|
+
var OmoConfigSchema = z18.object({
|
|
85531
85550
|
formatOnMutation: OmoFormatOnMutationSchema.optional(),
|
|
85532
85551
|
gateway: OmoGatewaySectionSchema.optional(),
|
|
85533
|
-
$schema:
|
|
85552
|
+
$schema: z18.string().optional(),
|
|
85534
85553
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
85535
85554
|
agents: OmoAgentsConfigSchema.optional(),
|
|
85536
85555
|
git_master: OmoGitMasterSettingsSchema.optional(),
|
|
@@ -85538,7 +85557,7 @@ var OmoConfigSchema = z17.object({
|
|
|
85538
85557
|
teams: OmoTeamsConfigSchema.optional(),
|
|
85539
85558
|
models: OmoModelCatalogSchema.optional(),
|
|
85540
85559
|
model_profiles: OmoModelProfilesSchema.optional(),
|
|
85541
|
-
model_profile:
|
|
85560
|
+
model_profile: z18.string().optional(),
|
|
85542
85561
|
memory: OmoMemorySettingsSchema.optional(),
|
|
85543
85562
|
telemetry: OmoTelemetrySettingsSchema.optional(),
|
|
85544
85563
|
side_panel: OmoSidePanelSettingsSchema.optional(),
|
|
@@ -85548,14 +85567,14 @@ var OmoConfigSchema = z17.object({
|
|
|
85548
85567
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
85549
85568
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
85550
85569
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
85551
|
-
profiles:
|
|
85552
|
-
_migrations:
|
|
85553
|
-
legacy_migrations:
|
|
85570
|
+
profiles: z18.record(z18.string(), OmoConfigProfileSchema).default({}),
|
|
85571
|
+
_migrations: z18.array(z18.string()).optional(),
|
|
85572
|
+
legacy_migrations: z18.record(z18.string(), z18.unknown()).optional()
|
|
85554
85573
|
}).strict();
|
|
85555
|
-
var OmoConfigLayerSchema =
|
|
85574
|
+
var OmoConfigLayerSchema = z18.object({
|
|
85556
85575
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
85557
85576
|
gateway: OmoGatewaySectionSchema.optional(),
|
|
85558
|
-
$schema:
|
|
85577
|
+
$schema: z18.string().optional(),
|
|
85559
85578
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
85560
85579
|
agents: OmoAgentsConfigSchema.optional(),
|
|
85561
85580
|
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
@@ -85563,7 +85582,7 @@ var OmoConfigLayerSchema = z17.object({
|
|
|
85563
85582
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
85564
85583
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
85565
85584
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
85566
|
-
model_profile:
|
|
85585
|
+
model_profile: z18.string().optional(),
|
|
85567
85586
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
85568
85587
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
85569
85588
|
side_panel: OmoSidePanelSettingsLayerSchema.optional(),
|
|
@@ -85573,9 +85592,9 @@ var OmoConfigLayerSchema = z17.object({
|
|
|
85573
85592
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
85574
85593
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
85575
85594
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
85576
|
-
profiles:
|
|
85577
|
-
_migrations:
|
|
85578
|
-
legacy_migrations:
|
|
85595
|
+
profiles: z18.record(z18.string(), OmoConfigProfileSchema).optional(),
|
|
85596
|
+
_migrations: z18.array(z18.string()).optional(),
|
|
85597
|
+
legacy_migrations: z18.record(z18.string(), z18.unknown()).optional()
|
|
85579
85598
|
}).strict();
|
|
85580
85599
|
|
|
85581
85600
|
// packages/omo-config-core/src/schema/legacy-category-names.ts
|
|
@@ -87803,7 +87822,7 @@ init_src();
|
|
|
87803
87822
|
// package.json
|
|
87804
87823
|
var package_default = {
|
|
87805
87824
|
name: "oh-my-opencode",
|
|
87806
|
-
version: "5.1.
|
|
87825
|
+
version: "5.1.41",
|
|
87807
87826
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
87808
87827
|
main: "./dist/index.js",
|
|
87809
87828
|
types: "dist/index.d.ts",
|
|
@@ -87980,7 +87999,7 @@ var package_default = {
|
|
|
87980
87999
|
},
|
|
87981
88000
|
devDependencies: {
|
|
87982
88001
|
"@clack/prompts": "^1.8.1",
|
|
87983
|
-
"@code-yeongyu/senpi": "2026.10.
|
|
88002
|
+
"@code-yeongyu/senpi": "2026.10.21-1",
|
|
87984
88003
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
87985
88004
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
87986
88005
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -88041,18 +88060,18 @@ var package_default = {
|
|
|
88041
88060
|
typescript: "^7.0.2"
|
|
88042
88061
|
},
|
|
88043
88062
|
optionalDependencies: {
|
|
88044
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
88045
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
88046
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
88047
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
88048
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
88049
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
88050
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
88051
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
88052
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
88053
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
88054
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
88055
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
88063
|
+
"oh-my-opencode-darwin-arm64": "5.1.41",
|
|
88064
|
+
"oh-my-opencode-darwin-x64": "5.1.41",
|
|
88065
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.41",
|
|
88066
|
+
"oh-my-opencode-linux-arm64": "5.1.41",
|
|
88067
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.41",
|
|
88068
|
+
"oh-my-opencode-linux-x64": "5.1.41",
|
|
88069
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.41",
|
|
88070
|
+
"oh-my-opencode-linux-x64-musl": "5.1.41",
|
|
88071
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.41",
|
|
88072
|
+
"oh-my-opencode-windows-arm64": "5.1.41",
|
|
88073
|
+
"oh-my-opencode-windows-x64": "5.1.41",
|
|
88074
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.41"
|
|
88056
88075
|
},
|
|
88057
88076
|
overrides: {
|
|
88058
88077
|
hono: "^4.13.8",
|
|
@@ -88454,8 +88473,8 @@ function findUnknownKeyPaths(schema, value) {
|
|
|
88454
88473
|
}
|
|
88455
88474
|
|
|
88456
88475
|
// packages/omo-opencode/src/config/schema/agent-names.ts
|
|
88457
|
-
import { z as
|
|
88458
|
-
var BuiltinAgentNameSchema =
|
|
88476
|
+
import { z as z19 } from "zod";
|
|
88477
|
+
var BuiltinAgentNameSchema = z19.enum([
|
|
88459
88478
|
"sisyphus",
|
|
88460
88479
|
"hephaestus",
|
|
88461
88480
|
"prometheus",
|
|
@@ -88468,7 +88487,7 @@ var BuiltinAgentNameSchema = z18.enum([
|
|
|
88468
88487
|
"atlas",
|
|
88469
88488
|
"sisyphus-junior"
|
|
88470
88489
|
]);
|
|
88471
|
-
var BuiltinSkillNameSchema =
|
|
88490
|
+
var BuiltinSkillNameSchema = z19.enum([
|
|
88472
88491
|
"playwright",
|
|
88473
88492
|
"dev-browser",
|
|
88474
88493
|
"frontend",
|
|
@@ -88482,7 +88501,7 @@ var BuiltinSkillNameSchema = z18.enum([
|
|
|
88482
88501
|
"visual-qa",
|
|
88483
88502
|
"team-mode"
|
|
88484
88503
|
]);
|
|
88485
|
-
var OverridableAgentNameSchema =
|
|
88504
|
+
var OverridableAgentNameSchema = z19.enum([
|
|
88486
88505
|
"build",
|
|
88487
88506
|
"plan",
|
|
88488
88507
|
"sisyphus",
|
|
@@ -88499,41 +88518,41 @@ var OverridableAgentNameSchema = z18.enum([
|
|
|
88499
88518
|
"atlas"
|
|
88500
88519
|
]);
|
|
88501
88520
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
88502
|
-
import { z as
|
|
88521
|
+
import { z as z22 } from "zod";
|
|
88503
88522
|
|
|
88504
88523
|
// packages/omo-opencode/src/config/schema/fallback-models.ts
|
|
88505
|
-
import { z as
|
|
88506
|
-
var FallbackModelObjectSchema =
|
|
88507
|
-
model:
|
|
88524
|
+
import { z as z20 } from "zod";
|
|
88525
|
+
var FallbackModelObjectSchema = z20.object({
|
|
88526
|
+
model: z20.string(),
|
|
88508
88527
|
reasoning: OmoReasoningSchema.optional(),
|
|
88509
|
-
variant:
|
|
88510
|
-
reasoningEffort:
|
|
88511
|
-
temperature:
|
|
88512
|
-
top_p:
|
|
88513
|
-
maxTokens:
|
|
88514
|
-
thinking:
|
|
88515
|
-
type:
|
|
88516
|
-
budgetTokens:
|
|
88528
|
+
variant: z20.string().optional(),
|
|
88529
|
+
reasoningEffort: z20.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
88530
|
+
temperature: z20.number().min(0).max(2).optional(),
|
|
88531
|
+
top_p: z20.number().min(0).max(1).optional(),
|
|
88532
|
+
maxTokens: z20.number().optional(),
|
|
88533
|
+
thinking: z20.object({
|
|
88534
|
+
type: z20.enum(["enabled", "disabled"]),
|
|
88535
|
+
budgetTokens: z20.number().optional()
|
|
88517
88536
|
}).optional()
|
|
88518
88537
|
});
|
|
88519
|
-
var FallbackModelStringArraySchema =
|
|
88520
|
-
var FallbackModelObjectArraySchema =
|
|
88521
|
-
var FallbackModelMixedArraySchema =
|
|
88522
|
-
var FallbackModelsSchema =
|
|
88523
|
-
|
|
88538
|
+
var FallbackModelStringArraySchema = z20.array(z20.string());
|
|
88539
|
+
var FallbackModelObjectArraySchema = z20.array(FallbackModelObjectSchema);
|
|
88540
|
+
var FallbackModelMixedArraySchema = z20.array(z20.union([z20.string(), FallbackModelObjectSchema]));
|
|
88541
|
+
var FallbackModelsSchema = z20.union([
|
|
88542
|
+
z20.string(),
|
|
88524
88543
|
FallbackModelStringArraySchema,
|
|
88525
88544
|
FallbackModelObjectArraySchema,
|
|
88526
88545
|
FallbackModelMixedArraySchema
|
|
88527
88546
|
]);
|
|
88528
88547
|
|
|
88529
88548
|
// packages/omo-opencode/src/config/schema/internal/permission.ts
|
|
88530
|
-
import { z as
|
|
88531
|
-
var PermissionValueSchema2 =
|
|
88532
|
-
var BashPermissionSchema2 =
|
|
88549
|
+
import { z as z21 } from "zod";
|
|
88550
|
+
var PermissionValueSchema2 = z21.enum(["ask", "allow", "deny"]);
|
|
88551
|
+
var BashPermissionSchema2 = z21.union([
|
|
88533
88552
|
PermissionValueSchema2,
|
|
88534
|
-
|
|
88553
|
+
z21.record(z21.string(), PermissionValueSchema2)
|
|
88535
88554
|
]);
|
|
88536
|
-
var AgentPermissionSchema =
|
|
88555
|
+
var AgentPermissionSchema = z21.object({
|
|
88537
88556
|
edit: PermissionValueSchema2.optional(),
|
|
88538
88557
|
bash: BashPermissionSchema2.optional(),
|
|
88539
88558
|
webfetch: PermissionValueSchema2.optional(),
|
|
@@ -88543,50 +88562,50 @@ var AgentPermissionSchema = z20.object({
|
|
|
88543
88562
|
}).catchall(PermissionValueSchema2.optional());
|
|
88544
88563
|
|
|
88545
88564
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
88546
|
-
var AgentOverrideConfigSchema =
|
|
88547
|
-
model:
|
|
88548
|
-
models:
|
|
88565
|
+
var AgentOverrideConfigSchema = z22.object({
|
|
88566
|
+
model: z22.string().optional(),
|
|
88567
|
+
models: z22.array(z22.union([z22.string(), FallbackModelObjectSchema])).optional(),
|
|
88549
88568
|
fallback_models: FallbackModelsSchema.optional(),
|
|
88550
88569
|
reasoning: OmoReasoningSchema.optional(),
|
|
88551
|
-
variant:
|
|
88552
|
-
category:
|
|
88553
|
-
skills:
|
|
88554
|
-
temperature:
|
|
88555
|
-
top_p:
|
|
88556
|
-
prompt:
|
|
88557
|
-
prompt_append:
|
|
88558
|
-
tools:
|
|
88559
|
-
disable:
|
|
88560
|
-
description:
|
|
88561
|
-
mode:
|
|
88562
|
-
color:
|
|
88563
|
-
displayName:
|
|
88570
|
+
variant: z22.string().optional(),
|
|
88571
|
+
category: z22.string().optional(),
|
|
88572
|
+
skills: z22.array(z22.string()).optional(),
|
|
88573
|
+
temperature: z22.number().min(0).max(2).optional(),
|
|
88574
|
+
top_p: z22.number().min(0).max(1).optional(),
|
|
88575
|
+
prompt: z22.string().optional(),
|
|
88576
|
+
prompt_append: z22.string().optional(),
|
|
88577
|
+
tools: z22.record(z22.string(), z22.boolean()).optional(),
|
|
88578
|
+
disable: z22.boolean().optional(),
|
|
88579
|
+
description: z22.string().optional(),
|
|
88580
|
+
mode: z22.enum(["subagent", "primary", "all"]).optional(),
|
|
88581
|
+
color: z22.string().regex(/^#[0-9A-Fa-f]{6}$/).optional(),
|
|
88582
|
+
displayName: z22.string().optional(),
|
|
88564
88583
|
permission: AgentPermissionSchema.optional(),
|
|
88565
|
-
maxTokens:
|
|
88566
|
-
thinking:
|
|
88567
|
-
type:
|
|
88568
|
-
budgetTokens:
|
|
88584
|
+
maxTokens: z22.number().optional(),
|
|
88585
|
+
thinking: z22.object({
|
|
88586
|
+
type: z22.enum(["enabled", "disabled"]),
|
|
88587
|
+
budgetTokens: z22.number().optional()
|
|
88569
88588
|
}).optional(),
|
|
88570
|
-
reasoningEffort:
|
|
88571
|
-
textVerbosity:
|
|
88572
|
-
providerOptions:
|
|
88573
|
-
ultrawork:
|
|
88574
|
-
model:
|
|
88589
|
+
reasoningEffort: z22.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
88590
|
+
textVerbosity: z22.enum(["low", "medium", "high"]).optional(),
|
|
88591
|
+
providerOptions: z22.record(z22.string(), z22.unknown()).optional(),
|
|
88592
|
+
ultrawork: z22.object({
|
|
88593
|
+
model: z22.string().optional(),
|
|
88575
88594
|
reasoning: OmoReasoningSchema.optional(),
|
|
88576
|
-
variant:
|
|
88595
|
+
variant: z22.string().optional()
|
|
88577
88596
|
}).optional(),
|
|
88578
|
-
compaction:
|
|
88579
|
-
model:
|
|
88597
|
+
compaction: z22.object({
|
|
88598
|
+
model: z22.string().optional(),
|
|
88580
88599
|
reasoning: OmoReasoningSchema.optional(),
|
|
88581
|
-
variant:
|
|
88600
|
+
variant: z22.string().optional()
|
|
88582
88601
|
}).optional()
|
|
88583
88602
|
});
|
|
88584
|
-
var AgentOverridesSchema =
|
|
88603
|
+
var AgentOverridesSchema = z22.object({
|
|
88585
88604
|
build: AgentOverrideConfigSchema.optional(),
|
|
88586
88605
|
plan: AgentOverrideConfigSchema.optional(),
|
|
88587
88606
|
sisyphus: AgentOverrideConfigSchema.optional(),
|
|
88588
88607
|
hephaestus: AgentOverrideConfigSchema.extend({
|
|
88589
|
-
allow_non_gpt_model:
|
|
88608
|
+
allow_non_gpt_model: z22.boolean().optional()
|
|
88590
88609
|
}).optional(),
|
|
88591
88610
|
"sisyphus-junior": AgentOverrideConfigSchema.optional(),
|
|
88592
88611
|
"OpenCode-Builder": AgentOverrideConfigSchema.optional(),
|
|
@@ -88600,73 +88619,73 @@ var AgentOverridesSchema = z21.object({
|
|
|
88600
88619
|
atlas: AgentOverrideConfigSchema.optional()
|
|
88601
88620
|
}).catchall(AgentOverrideConfigSchema.optional());
|
|
88602
88621
|
// packages/omo-opencode/src/config/schema/babysitting.ts
|
|
88603
|
-
import { z as
|
|
88604
|
-
var BabysittingConfigSchema =
|
|
88605
|
-
timeout_ms:
|
|
88622
|
+
import { z as z23 } from "zod";
|
|
88623
|
+
var BabysittingConfigSchema = z23.object({
|
|
88624
|
+
timeout_ms: z23.number().default(120000)
|
|
88606
88625
|
});
|
|
88607
88626
|
// packages/omo-opencode/src/config/schema/background-task.ts
|
|
88608
|
-
import { z as
|
|
88609
|
-
var CircuitBreakerConfigSchema =
|
|
88610
|
-
enabled:
|
|
88611
|
-
maxToolCalls:
|
|
88612
|
-
consecutiveThreshold:
|
|
88627
|
+
import { z as z24 } from "zod";
|
|
88628
|
+
var CircuitBreakerConfigSchema = z24.object({
|
|
88629
|
+
enabled: z24.boolean().optional(),
|
|
88630
|
+
maxToolCalls: z24.number().int().min(10).optional(),
|
|
88631
|
+
consecutiveThreshold: z24.number().int().min(5).optional()
|
|
88613
88632
|
});
|
|
88614
|
-
var BackgroundTaskConfigSchema =
|
|
88615
|
-
defaultConcurrency:
|
|
88616
|
-
providerConcurrency:
|
|
88617
|
-
modelConcurrency:
|
|
88618
|
-
maxDepth:
|
|
88619
|
-
maxLiveDescendantsPerRoot:
|
|
88620
|
-
staleTimeoutMs:
|
|
88621
|
-
messageStalenessTimeoutMs:
|
|
88622
|
-
taskTtlMs:
|
|
88623
|
-
sessionGoneTimeoutMs:
|
|
88624
|
-
taskCleanupDelayMs:
|
|
88625
|
-
syncPollTimeoutMs:
|
|
88626
|
-
maxToolCalls:
|
|
88633
|
+
var BackgroundTaskConfigSchema = z24.object({
|
|
88634
|
+
defaultConcurrency: z24.number().min(0).optional(),
|
|
88635
|
+
providerConcurrency: z24.record(z24.string(), z24.number().min(0)).optional(),
|
|
88636
|
+
modelConcurrency: z24.record(z24.string(), z24.number().min(0)).optional(),
|
|
88637
|
+
maxDepth: z24.number().int().min(1).optional(),
|
|
88638
|
+
maxLiveDescendantsPerRoot: z24.number().int().min(0).optional(),
|
|
88639
|
+
staleTimeoutMs: z24.number().min(60000).optional(),
|
|
88640
|
+
messageStalenessTimeoutMs: z24.number().min(60000).optional(),
|
|
88641
|
+
taskTtlMs: z24.number().min(300000).optional(),
|
|
88642
|
+
sessionGoneTimeoutMs: z24.number().min(1e4).optional(),
|
|
88643
|
+
taskCleanupDelayMs: z24.number().min(60000).optional(),
|
|
88644
|
+
syncPollTimeoutMs: z24.number().min(60000).optional(),
|
|
88645
|
+
maxToolCalls: z24.number().int().min(10).optional(),
|
|
88627
88646
|
circuitBreaker: CircuitBreakerConfigSchema.optional()
|
|
88628
88647
|
});
|
|
88629
88648
|
// packages/omo-opencode/src/config/schema/browser-automation.ts
|
|
88630
|
-
import { z as
|
|
88631
|
-
var BrowserAutomationProviderSchema =
|
|
88649
|
+
import { z as z25 } from "zod";
|
|
88650
|
+
var BrowserAutomationProviderSchema = z25.enum([
|
|
88632
88651
|
"playwright",
|
|
88633
88652
|
"dev-browser",
|
|
88634
88653
|
"playwright-cli"
|
|
88635
88654
|
], {
|
|
88636
88655
|
error: (issue) => `Browser provider ${JSON.stringify(issue.input)} is no longer supported; use the built-in browser path: Bun.WebView / playwright-core scripts`
|
|
88637
88656
|
});
|
|
88638
|
-
var BrowserAutomationConfigSchema =
|
|
88657
|
+
var BrowserAutomationConfigSchema = z25.object({
|
|
88639
88658
|
provider: BrowserAutomationProviderSchema.default("playwright"),
|
|
88640
|
-
playwright_mcp_args:
|
|
88659
|
+
playwright_mcp_args: z25.array(z25.string()).optional()
|
|
88641
88660
|
});
|
|
88642
88661
|
// packages/omo-opencode/src/config/schema/categories.ts
|
|
88643
|
-
import { z as
|
|
88644
|
-
var CategoryConfigSchema =
|
|
88645
|
-
description:
|
|
88646
|
-
model:
|
|
88647
|
-
models:
|
|
88662
|
+
import { z as z26 } from "zod";
|
|
88663
|
+
var CategoryConfigSchema = z26.object({
|
|
88664
|
+
description: z26.string().optional(),
|
|
88665
|
+
model: z26.string().optional(),
|
|
88666
|
+
models: z26.array(z26.union([z26.string(), FallbackModelObjectSchema])).optional(),
|
|
88648
88667
|
fallback_models: FallbackModelsSchema.optional(),
|
|
88649
88668
|
reasoning: OmoReasoningSchema.optional(),
|
|
88650
|
-
variant:
|
|
88651
|
-
temperature:
|
|
88652
|
-
top_p:
|
|
88653
|
-
max_tokens:
|
|
88654
|
-
provider_options:
|
|
88655
|
-
maxTokens:
|
|
88656
|
-
thinking:
|
|
88657
|
-
type:
|
|
88658
|
-
budgetTokens:
|
|
88669
|
+
variant: z26.string().optional(),
|
|
88670
|
+
temperature: z26.number().min(0).max(2).optional(),
|
|
88671
|
+
top_p: z26.number().min(0).max(1).optional(),
|
|
88672
|
+
max_tokens: z26.number().int().positive().optional(),
|
|
88673
|
+
provider_options: z26.record(z26.string(), z26.unknown()).optional(),
|
|
88674
|
+
maxTokens: z26.number().optional(),
|
|
88675
|
+
thinking: z26.object({
|
|
88676
|
+
type: z26.enum(["enabled", "disabled"]),
|
|
88677
|
+
budgetTokens: z26.number().optional()
|
|
88659
88678
|
}).optional(),
|
|
88660
|
-
reasoningEffort:
|
|
88661
|
-
textVerbosity:
|
|
88662
|
-
tools:
|
|
88663
|
-
prompt_append:
|
|
88664
|
-
max_prompt_tokens:
|
|
88665
|
-
is_unstable_agent:
|
|
88666
|
-
disable:
|
|
88667
|
-
warn_unavailable:
|
|
88679
|
+
reasoningEffort: z26.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
88680
|
+
textVerbosity: z26.enum(["low", "medium", "high"]).optional(),
|
|
88681
|
+
tools: z26.record(z26.string(), z26.boolean()).optional(),
|
|
88682
|
+
prompt_append: z26.string().optional(),
|
|
88683
|
+
max_prompt_tokens: z26.number().int().positive().optional(),
|
|
88684
|
+
is_unstable_agent: z26.boolean().optional(),
|
|
88685
|
+
disable: z26.boolean().optional(),
|
|
88686
|
+
warn_unavailable: z26.boolean().optional()
|
|
88668
88687
|
});
|
|
88669
|
-
var BuiltinCategoryNameSchema =
|
|
88688
|
+
var BuiltinCategoryNameSchema = z26.enum([
|
|
88670
88689
|
"visual-engineering",
|
|
88671
88690
|
"ultrabrain",
|
|
88672
88691
|
"deep",
|
|
@@ -88676,29 +88695,29 @@ var BuiltinCategoryNameSchema = z25.enum([
|
|
|
88676
88695
|
"unspecified-high",
|
|
88677
88696
|
"writing"
|
|
88678
88697
|
]);
|
|
88679
|
-
var CategoriesConfigSchema =
|
|
88698
|
+
var CategoriesConfigSchema = z26.record(z26.string(), CategoryConfigSchema);
|
|
88680
88699
|
// packages/omo-opencode/src/config/schema/claude-code.ts
|
|
88681
|
-
import { z as
|
|
88682
|
-
var ClaudeCodeConfigSchema =
|
|
88683
|
-
mcp:
|
|
88684
|
-
commands:
|
|
88685
|
-
skills:
|
|
88686
|
-
agents:
|
|
88687
|
-
hooks:
|
|
88688
|
-
plugins:
|
|
88689
|
-
plugins_override:
|
|
88690
|
-
anthropic_provider:
|
|
88700
|
+
import { z as z27 } from "zod";
|
|
88701
|
+
var ClaudeCodeConfigSchema = z27.object({
|
|
88702
|
+
mcp: z27.boolean().optional(),
|
|
88703
|
+
commands: z27.boolean().optional(),
|
|
88704
|
+
skills: z27.boolean().optional(),
|
|
88705
|
+
agents: z27.boolean().optional(),
|
|
88706
|
+
hooks: z27.boolean().optional(),
|
|
88707
|
+
plugins: z27.boolean().optional(),
|
|
88708
|
+
plugins_override: z27.record(z27.string(), z27.boolean()).optional(),
|
|
88709
|
+
anthropic_provider: z27.string().trim().min(1).refine((v) => !v.includes("/"), {
|
|
88691
88710
|
message: "anthropic_provider must be a provider name without '/'"
|
|
88692
88711
|
}).optional()
|
|
88693
88712
|
});
|
|
88694
88713
|
// packages/omo-opencode/src/config/schema/comment-checker.ts
|
|
88695
|
-
import { z as
|
|
88696
|
-
var CommentCheckerConfigSchema =
|
|
88697
|
-
custom_prompt:
|
|
88714
|
+
import { z as z28 } from "zod";
|
|
88715
|
+
var CommentCheckerConfigSchema = z28.object({
|
|
88716
|
+
custom_prompt: z28.string().optional()
|
|
88698
88717
|
});
|
|
88699
88718
|
// packages/omo-opencode/src/config/schema/commands.ts
|
|
88700
|
-
import { z as
|
|
88701
|
-
var BuiltinCommandNameSchema =
|
|
88719
|
+
import { z as z29 } from "zod";
|
|
88720
|
+
var BuiltinCommandNameSchema = z29.enum([
|
|
88702
88721
|
"goal",
|
|
88703
88722
|
"refactor",
|
|
88704
88723
|
"ulw-execute",
|
|
@@ -88707,21 +88726,21 @@ var BuiltinCommandNameSchema = z28.enum([
|
|
|
88707
88726
|
"hyperplan"
|
|
88708
88727
|
]);
|
|
88709
88728
|
// packages/omo-opencode/src/config/schema/default-mode.ts
|
|
88710
|
-
import { z as
|
|
88711
|
-
var DefaultModeConfigSchema =
|
|
88712
|
-
ultrawork:
|
|
88713
|
-
goal:
|
|
88729
|
+
import { z as z30 } from "zod";
|
|
88730
|
+
var DefaultModeConfigSchema = z30.object({
|
|
88731
|
+
ultrawork: z30.boolean().default(false),
|
|
88732
|
+
goal: z30.boolean().default(false)
|
|
88714
88733
|
});
|
|
88715
88734
|
// packages/omo-opencode/src/config/schema/dynamic-context-pruning.ts
|
|
88716
|
-
import { z as
|
|
88717
|
-
var DynamicContextPruningConfigSchema =
|
|
88718
|
-
enabled:
|
|
88719
|
-
notification:
|
|
88720
|
-
turn_protection:
|
|
88721
|
-
enabled:
|
|
88722
|
-
turns:
|
|
88735
|
+
import { z as z31 } from "zod";
|
|
88736
|
+
var DynamicContextPruningConfigSchema = z31.object({
|
|
88737
|
+
enabled: z31.boolean().default(false),
|
|
88738
|
+
notification: z31.enum(["off", "minimal", "detailed"]).default("detailed"),
|
|
88739
|
+
turn_protection: z31.object({
|
|
88740
|
+
enabled: z31.boolean().default(true),
|
|
88741
|
+
turns: z31.number().min(1).max(10).default(3)
|
|
88723
88742
|
}).optional(),
|
|
88724
|
-
protected_tools:
|
|
88743
|
+
protected_tools: z31.array(z31.string()).default([
|
|
88725
88744
|
"task",
|
|
88726
88745
|
"todowrite",
|
|
88727
88746
|
"todoread",
|
|
@@ -88730,45 +88749,45 @@ var DynamicContextPruningConfigSchema = z30.object({
|
|
|
88730
88749
|
"session_write",
|
|
88731
88750
|
"session_search"
|
|
88732
88751
|
]),
|
|
88733
|
-
strategies:
|
|
88734
|
-
deduplication:
|
|
88735
|
-
enabled:
|
|
88752
|
+
strategies: z31.object({
|
|
88753
|
+
deduplication: z31.object({
|
|
88754
|
+
enabled: z31.boolean().default(true)
|
|
88736
88755
|
}).optional(),
|
|
88737
|
-
supersede_writes:
|
|
88738
|
-
enabled:
|
|
88739
|
-
aggressive:
|
|
88756
|
+
supersede_writes: z31.object({
|
|
88757
|
+
enabled: z31.boolean().default(true),
|
|
88758
|
+
aggressive: z31.boolean().default(false)
|
|
88740
88759
|
}).optional(),
|
|
88741
|
-
purge_errors:
|
|
88742
|
-
enabled:
|
|
88743
|
-
turns:
|
|
88760
|
+
purge_errors: z31.object({
|
|
88761
|
+
enabled: z31.boolean().default(true),
|
|
88762
|
+
turns: z31.number().min(1).max(20).default(5)
|
|
88744
88763
|
}).optional()
|
|
88745
88764
|
}).optional()
|
|
88746
88765
|
});
|
|
88747
88766
|
// packages/omo-opencode/src/config/schema/experimental.ts
|
|
88748
|
-
import { z as
|
|
88749
|
-
var ExperimentalConfigSchema =
|
|
88750
|
-
aggressive_truncation:
|
|
88751
|
-
preemptive_compaction:
|
|
88752
|
-
truncate_all_tool_outputs:
|
|
88767
|
+
import { z as z32 } from "zod";
|
|
88768
|
+
var ExperimentalConfigSchema = z32.object({
|
|
88769
|
+
aggressive_truncation: z32.boolean().optional(),
|
|
88770
|
+
preemptive_compaction: z32.boolean().optional(),
|
|
88771
|
+
truncate_all_tool_outputs: z32.boolean().optional(),
|
|
88753
88772
|
dynamic_context_pruning: DynamicContextPruningConfigSchema.optional(),
|
|
88754
|
-
task_system:
|
|
88755
|
-
plugin_load_timeout_ms:
|
|
88756
|
-
safe_hook_creation:
|
|
88757
|
-
disable_omo_env:
|
|
88758
|
-
hashline_edit:
|
|
88759
|
-
model_fallback_title:
|
|
88760
|
-
max_tools:
|
|
88761
|
-
disable_live_parent_wake_routing:
|
|
88773
|
+
task_system: z32.boolean().optional(),
|
|
88774
|
+
plugin_load_timeout_ms: z32.number().min(1000).optional(),
|
|
88775
|
+
safe_hook_creation: z32.boolean().optional(),
|
|
88776
|
+
disable_omo_env: z32.boolean().optional(),
|
|
88777
|
+
hashline_edit: z32.boolean().optional(),
|
|
88778
|
+
model_fallback_title: z32.boolean().optional(),
|
|
88779
|
+
max_tools: z32.number().int().min(1).optional(),
|
|
88780
|
+
disable_live_parent_wake_routing: z32.boolean().optional()
|
|
88762
88781
|
});
|
|
88763
88782
|
// packages/omo-opencode/src/config/schema/goal.ts
|
|
88764
|
-
import { z as
|
|
88765
|
-
var GoalConfigSchema =
|
|
88766
|
-
enabled:
|
|
88767
|
-
auto_start:
|
|
88768
|
-
default_max_iterations:
|
|
88783
|
+
import { z as z33 } from "zod";
|
|
88784
|
+
var GoalConfigSchema = z33.object({
|
|
88785
|
+
enabled: z33.boolean().default(false),
|
|
88786
|
+
auto_start: z33.boolean().default(false),
|
|
88787
|
+
default_max_iterations: z33.number().min(1).max(1000).default(100)
|
|
88769
88788
|
});
|
|
88770
88789
|
// packages/skills-loader-core/src/config/git-env-prefix.ts
|
|
88771
|
-
import { z as
|
|
88790
|
+
import { z as z34 } from "zod";
|
|
88772
88791
|
var GIT_ENV_ASSIGNMENT_PATTERN2 = /^(?:[A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)(?: [A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)*$/;
|
|
88773
88792
|
var GIT_ENV_PREFIX_VALIDATION_MESSAGE = 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"';
|
|
88774
88793
|
function isValidGitEnvPrefix(value) {
|
|
@@ -88783,17 +88802,17 @@ function assertValidGitEnvPrefix(value) {
|
|
|
88783
88802
|
}
|
|
88784
88803
|
return value;
|
|
88785
88804
|
}
|
|
88786
|
-
var GitEnvPrefixSchema2 =
|
|
88805
|
+
var GitEnvPrefixSchema2 = z34.string().refine(isValidGitEnvPrefix, { message: GIT_ENV_PREFIX_VALIDATION_MESSAGE }).default("GIT_MASTER=1");
|
|
88787
88806
|
// packages/omo-opencode/src/config/schema/git-master.ts
|
|
88788
|
-
import { z as
|
|
88789
|
-
var GitMasterConfigSchema =
|
|
88790
|
-
commit_footer:
|
|
88791
|
-
include_co_authored_by:
|
|
88807
|
+
import { z as z35 } from "zod";
|
|
88808
|
+
var GitMasterConfigSchema = z35.object({
|
|
88809
|
+
commit_footer: z35.union([z35.boolean(), z35.string()]).default(false),
|
|
88810
|
+
include_co_authored_by: z35.boolean().default(false),
|
|
88792
88811
|
git_env_prefix: GitEnvPrefixSchema2
|
|
88793
88812
|
});
|
|
88794
88813
|
// packages/omo-opencode/src/config/schema/hooks.ts
|
|
88795
|
-
import { z as
|
|
88796
|
-
var HookNameSchema =
|
|
88814
|
+
import { z as z36 } from "zod";
|
|
88815
|
+
var HookNameSchema = z36.enum([
|
|
88797
88816
|
"todo-continuation-enforcer",
|
|
88798
88817
|
"session-notification",
|
|
88799
88818
|
"comment-checker",
|
|
@@ -88852,240 +88871,240 @@ var HookNameSchema = z35.enum([
|
|
|
88852
88871
|
"native-edition-nudge"
|
|
88853
88872
|
]);
|
|
88854
88873
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
88855
|
-
import { z as
|
|
88856
|
-
var I18nConfigSchema =
|
|
88857
|
-
locale:
|
|
88874
|
+
import { z as z37 } from "zod";
|
|
88875
|
+
var I18nConfigSchema = z37.object({
|
|
88876
|
+
locale: z37.string().optional()
|
|
88858
88877
|
});
|
|
88859
88878
|
// packages/omo-opencode/src/config/schema/keyword-detector.ts
|
|
88860
|
-
import { z as
|
|
88861
|
-
var KeywordTypeSchema =
|
|
88862
|
-
var KeywordDetectorConfigSchema =
|
|
88863
|
-
enabled_expansions:
|
|
88864
|
-
disabled_keywords:
|
|
88879
|
+
import { z as z38 } from "zod";
|
|
88880
|
+
var KeywordTypeSchema = z38.enum(["ultrawork", "team", "hyperplan", "hyperplan-ultrawork"]);
|
|
88881
|
+
var KeywordDetectorConfigSchema = z38.object({
|
|
88882
|
+
enabled_expansions: z38.array(KeywordTypeSchema).optional(),
|
|
88883
|
+
disabled_keywords: z38.array(KeywordTypeSchema).optional()
|
|
88865
88884
|
});
|
|
88866
88885
|
// packages/omo-opencode/src/config/schema/model-capabilities.ts
|
|
88867
|
-
import { z as
|
|
88868
|
-
var ModelCapabilitiesConfigSchema =
|
|
88869
|
-
enabled:
|
|
88870
|
-
auto_refresh_on_start:
|
|
88871
|
-
refresh_timeout_ms:
|
|
88872
|
-
source_url:
|
|
88886
|
+
import { z as z39 } from "zod";
|
|
88887
|
+
var ModelCapabilitiesConfigSchema = z39.object({
|
|
88888
|
+
enabled: z39.boolean().optional(),
|
|
88889
|
+
auto_refresh_on_start: z39.boolean().optional(),
|
|
88890
|
+
refresh_timeout_ms: z39.number().int().positive().optional(),
|
|
88891
|
+
source_url: z39.string().url().optional()
|
|
88873
88892
|
});
|
|
88874
88893
|
// packages/omo-opencode/src/config/schema/notification.ts
|
|
88875
|
-
import { z as
|
|
88876
|
-
var NotificationConfigSchema =
|
|
88877
|
-
force_enable:
|
|
88894
|
+
import { z as z40 } from "zod";
|
|
88895
|
+
var NotificationConfigSchema = z40.object({
|
|
88896
|
+
force_enable: z40.boolean().optional()
|
|
88878
88897
|
});
|
|
88879
88898
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
88880
|
-
import { z as
|
|
88899
|
+
import { z as z54 } from "zod";
|
|
88881
88900
|
|
|
88882
88901
|
// packages/omo-opencode/src/mcp/types.ts
|
|
88883
|
-
import { z as
|
|
88884
|
-
var McpNameSchema =
|
|
88885
|
-
var AnyMcpNameSchema =
|
|
88902
|
+
import { z as z41 } from "zod";
|
|
88903
|
+
var McpNameSchema = z41.enum(["websearch", "context7", "grep_app", "lsp"]);
|
|
88904
|
+
var AnyMcpNameSchema = z41.string().min(1);
|
|
88886
88905
|
|
|
88887
88906
|
// packages/omo-opencode/src/config/schema/agent-definitions.ts
|
|
88888
|
-
import { z as
|
|
88889
|
-
var AgentDefinitionPathSchema =
|
|
88890
|
-
var AgentDefinitionsConfigSchema =
|
|
88907
|
+
import { z as z42 } from "zod";
|
|
88908
|
+
var AgentDefinitionPathSchema = z42.string().min(1);
|
|
88909
|
+
var AgentDefinitionsConfigSchema = z42.array(AgentDefinitionPathSchema).optional();
|
|
88891
88910
|
|
|
88892
88911
|
// packages/omo-opencode/src/config/schema/openclaw.ts
|
|
88893
|
-
import { z as
|
|
88894
|
-
var OpenClawGatewaySchema =
|
|
88895
|
-
type:
|
|
88896
|
-
url:
|
|
88897
|
-
method:
|
|
88898
|
-
headers:
|
|
88899
|
-
command:
|
|
88900
|
-
timeout:
|
|
88912
|
+
import { z as z43 } from "zod";
|
|
88913
|
+
var OpenClawGatewaySchema = z43.object({
|
|
88914
|
+
type: z43.enum(["http", "command"]).default("http"),
|
|
88915
|
+
url: z43.string().optional(),
|
|
88916
|
+
method: z43.string().default("POST"),
|
|
88917
|
+
headers: z43.record(z43.string(), z43.string()).optional(),
|
|
88918
|
+
command: z43.string().optional(),
|
|
88919
|
+
timeout: z43.number().optional()
|
|
88901
88920
|
});
|
|
88902
|
-
var OpenClawHookSchema =
|
|
88903
|
-
enabled:
|
|
88904
|
-
gateway:
|
|
88905
|
-
instruction:
|
|
88921
|
+
var OpenClawHookSchema = z43.object({
|
|
88922
|
+
enabled: z43.boolean().default(true),
|
|
88923
|
+
gateway: z43.string(),
|
|
88924
|
+
instruction: z43.string()
|
|
88906
88925
|
});
|
|
88907
|
-
var OpenClawReplyListenerConfigSchema =
|
|
88908
|
-
discordBotToken:
|
|
88909
|
-
discordChannelId:
|
|
88910
|
-
discordMention:
|
|
88911
|
-
authorizedDiscordUserIds:
|
|
88912
|
-
telegramBotToken:
|
|
88913
|
-
telegramChatId:
|
|
88914
|
-
pollIntervalMs:
|
|
88915
|
-
rateLimitPerMinute:
|
|
88916
|
-
maxMessageLength:
|
|
88917
|
-
includePrefix:
|
|
88926
|
+
var OpenClawReplyListenerConfigSchema = z43.object({
|
|
88927
|
+
discordBotToken: z43.string().optional(),
|
|
88928
|
+
discordChannelId: z43.string().optional(),
|
|
88929
|
+
discordMention: z43.string().optional(),
|
|
88930
|
+
authorizedDiscordUserIds: z43.array(z43.string()).default([]),
|
|
88931
|
+
telegramBotToken: z43.string().optional(),
|
|
88932
|
+
telegramChatId: z43.string().optional(),
|
|
88933
|
+
pollIntervalMs: z43.number().default(3000),
|
|
88934
|
+
rateLimitPerMinute: z43.number().default(10),
|
|
88935
|
+
maxMessageLength: z43.number().default(500),
|
|
88936
|
+
includePrefix: z43.boolean().default(true)
|
|
88918
88937
|
});
|
|
88919
|
-
var OpenClawConfigSchema =
|
|
88920
|
-
enabled:
|
|
88921
|
-
gateways:
|
|
88922
|
-
hooks:
|
|
88938
|
+
var OpenClawConfigSchema = z43.object({
|
|
88939
|
+
enabled: z43.boolean().default(false),
|
|
88940
|
+
gateways: z43.record(z43.string(), OpenClawGatewaySchema).default({}),
|
|
88941
|
+
hooks: z43.record(z43.string(), OpenClawHookSchema).default({}),
|
|
88923
88942
|
replyListener: OpenClawReplyListenerConfigSchema.optional()
|
|
88924
88943
|
});
|
|
88925
88944
|
|
|
88926
88945
|
// packages/omo-opencode/src/config/schema/monitor.ts
|
|
88927
|
-
import { z as
|
|
88928
|
-
var MonitorConfigSchema =
|
|
88929
|
-
enabled:
|
|
88930
|
-
live_mode_enabled:
|
|
88931
|
-
allowed_commands:
|
|
88932
|
-
max_monitors_per_session:
|
|
88933
|
-
max_runtime_ms:
|
|
88934
|
-
batch_max_lines:
|
|
88935
|
-
batch_max_bytes:
|
|
88936
|
-
flush_interval_ms:
|
|
88937
|
-
ring_max_lines:
|
|
88938
|
-
line_max_bytes:
|
|
88939
|
-
pattern_max_length:
|
|
88946
|
+
import { z as z44 } from "zod";
|
|
88947
|
+
var MonitorConfigSchema = z44.object({
|
|
88948
|
+
enabled: z44.boolean().default(false),
|
|
88949
|
+
live_mode_enabled: z44.boolean().default(false),
|
|
88950
|
+
allowed_commands: z44.array(z44.string()).optional(),
|
|
88951
|
+
max_monitors_per_session: z44.number().int().min(1).max(16).default(3),
|
|
88952
|
+
max_runtime_ms: z44.number().int().min(1000).default(1800000),
|
|
88953
|
+
batch_max_lines: z44.number().int().min(1).default(50),
|
|
88954
|
+
batch_max_bytes: z44.number().int().min(1024).default(16384),
|
|
88955
|
+
flush_interval_ms: z44.number().int().min(250).default(1000),
|
|
88956
|
+
ring_max_lines: z44.number().int().min(1).default(1000),
|
|
88957
|
+
line_max_bytes: z44.number().int().min(256).default(8192),
|
|
88958
|
+
pattern_max_length: z44.number().int().min(1).default(512)
|
|
88940
88959
|
});
|
|
88941
88960
|
|
|
88942
88961
|
// packages/omo-opencode/src/config/schema/runtime-fallback.ts
|
|
88943
|
-
import { z as
|
|
88944
|
-
var RuntimeFallbackConfigSchema =
|
|
88945
|
-
enabled:
|
|
88946
|
-
retry_on_errors:
|
|
88947
|
-
max_fallback_attempts:
|
|
88948
|
-
cooldown_seconds:
|
|
88949
|
-
timeout_seconds:
|
|
88950
|
-
notify_on_fallback:
|
|
88951
|
-
restore_primary_after_cooldown:
|
|
88962
|
+
import { z as z45 } from "zod";
|
|
88963
|
+
var RuntimeFallbackConfigSchema = z45.object({
|
|
88964
|
+
enabled: z45.boolean().optional(),
|
|
88965
|
+
retry_on_errors: z45.array(z45.number()).optional(),
|
|
88966
|
+
max_fallback_attempts: z45.number().min(1).max(20).optional(),
|
|
88967
|
+
cooldown_seconds: z45.number().min(0).optional(),
|
|
88968
|
+
timeout_seconds: z45.number().min(0).optional(),
|
|
88969
|
+
notify_on_fallback: z45.boolean().optional(),
|
|
88970
|
+
restore_primary_after_cooldown: z45.boolean().optional()
|
|
88952
88971
|
});
|
|
88953
88972
|
|
|
88954
88973
|
// packages/team-core/src/config.ts
|
|
88955
|
-
import * as
|
|
88956
|
-
var TeamModeConfigSchema =
|
|
88957
|
-
enabled:
|
|
88958
|
-
tmux_visualization:
|
|
88959
|
-
max_parallel_members:
|
|
88960
|
-
max_members:
|
|
88961
|
-
max_messages_per_run:
|
|
88962
|
-
max_wall_clock_minutes:
|
|
88963
|
-
max_member_turns:
|
|
88964
|
-
base_dir:
|
|
88965
|
-
message_payload_max_bytes:
|
|
88966
|
-
recipient_unread_max_bytes:
|
|
88967
|
-
mailbox_poll_interval_ms:
|
|
88974
|
+
import * as z46 from "zod";
|
|
88975
|
+
var TeamModeConfigSchema = z46.object({
|
|
88976
|
+
enabled: z46.boolean().default(false),
|
|
88977
|
+
tmux_visualization: z46.boolean().default(false),
|
|
88978
|
+
max_parallel_members: z46.number().int().min(1).max(8).default(4),
|
|
88979
|
+
max_members: z46.number().int().min(1).max(8).default(8),
|
|
88980
|
+
max_messages_per_run: z46.number().int().min(1).default(1e4),
|
|
88981
|
+
max_wall_clock_minutes: z46.number().int().min(1).default(120),
|
|
88982
|
+
max_member_turns: z46.number().int().min(1).default(500),
|
|
88983
|
+
base_dir: z46.string().optional(),
|
|
88984
|
+
message_payload_max_bytes: z46.number().int().min(1024).default(32768),
|
|
88985
|
+
recipient_unread_max_bytes: z46.number().int().min(1024).default(262144),
|
|
88986
|
+
mailbox_poll_interval_ms: z46.number().int().min(500).default(3000)
|
|
88968
88987
|
});
|
|
88969
88988
|
// packages/omo-opencode/src/config/schema/skills.ts
|
|
88970
|
-
import { z as
|
|
88971
|
-
var SkillSourceSchema =
|
|
88972
|
-
|
|
88973
|
-
|
|
88974
|
-
path:
|
|
88975
|
-
recursive:
|
|
88976
|
-
glob:
|
|
88989
|
+
import { z as z47 } from "zod";
|
|
88990
|
+
var SkillSourceSchema = z47.union([
|
|
88991
|
+
z47.string(),
|
|
88992
|
+
z47.object({
|
|
88993
|
+
path: z47.string(),
|
|
88994
|
+
recursive: z47.boolean().optional(),
|
|
88995
|
+
glob: z47.string().optional()
|
|
88977
88996
|
})
|
|
88978
88997
|
]);
|
|
88979
|
-
var SkillDefinitionSchema =
|
|
88980
|
-
description:
|
|
88981
|
-
template:
|
|
88982
|
-
from:
|
|
88983
|
-
model:
|
|
88984
|
-
agent:
|
|
88985
|
-
subtask:
|
|
88986
|
-
"argument-hint":
|
|
88987
|
-
license:
|
|
88988
|
-
compatibility:
|
|
88989
|
-
metadata:
|
|
88990
|
-
"allowed-tools":
|
|
88991
|
-
disable:
|
|
88998
|
+
var SkillDefinitionSchema = z47.object({
|
|
88999
|
+
description: z47.string().optional(),
|
|
89000
|
+
template: z47.string().optional(),
|
|
89001
|
+
from: z47.string().optional(),
|
|
89002
|
+
model: z47.string().optional(),
|
|
89003
|
+
agent: z47.string().optional(),
|
|
89004
|
+
subtask: z47.boolean().optional(),
|
|
89005
|
+
"argument-hint": z47.string().optional(),
|
|
89006
|
+
license: z47.string().optional(),
|
|
89007
|
+
compatibility: z47.string().optional(),
|
|
89008
|
+
metadata: z47.record(z47.string(), z47.unknown()).optional(),
|
|
89009
|
+
"allowed-tools": z47.array(z47.string()).optional(),
|
|
89010
|
+
disable: z47.boolean().optional()
|
|
88992
89011
|
});
|
|
88993
|
-
var SkillEntrySchema =
|
|
88994
|
-
var SkillsConfigSchema =
|
|
88995
|
-
|
|
88996
|
-
|
|
88997
|
-
sources:
|
|
88998
|
-
enable:
|
|
88999
|
-
disable:
|
|
89012
|
+
var SkillEntrySchema = z47.union([z47.boolean(), SkillDefinitionSchema]);
|
|
89013
|
+
var SkillsConfigSchema = z47.union([
|
|
89014
|
+
z47.array(z47.string()),
|
|
89015
|
+
z47.object({
|
|
89016
|
+
sources: z47.array(SkillSourceSchema).optional(),
|
|
89017
|
+
enable: z47.array(z47.string()).optional(),
|
|
89018
|
+
disable: z47.array(z47.string()).optional()
|
|
89000
89019
|
}).catchall(SkillEntrySchema)
|
|
89001
89020
|
]);
|
|
89002
89021
|
|
|
89003
89022
|
// packages/omo-opencode/src/config/schema/sisyphus.ts
|
|
89004
|
-
import { z as
|
|
89005
|
-
var SisyphusTasksConfigSchema =
|
|
89006
|
-
storage_path:
|
|
89007
|
-
task_list_id:
|
|
89008
|
-
claude_code_compat:
|
|
89023
|
+
import { z as z48 } from "zod";
|
|
89024
|
+
var SisyphusTasksConfigSchema = z48.object({
|
|
89025
|
+
storage_path: z48.string().optional(),
|
|
89026
|
+
task_list_id: z48.string().optional(),
|
|
89027
|
+
claude_code_compat: z48.boolean().default(false)
|
|
89009
89028
|
});
|
|
89010
|
-
var SisyphusConfigSchema =
|
|
89029
|
+
var SisyphusConfigSchema = z48.object({
|
|
89011
89030
|
tasks: SisyphusTasksConfigSchema.optional()
|
|
89012
89031
|
});
|
|
89013
89032
|
|
|
89014
89033
|
// packages/omo-opencode/src/config/schema/sisyphus-agent.ts
|
|
89015
|
-
import { z as
|
|
89016
|
-
var SisyphusAgentConfigSchema =
|
|
89017
|
-
disabled:
|
|
89018
|
-
default_builder_enabled:
|
|
89019
|
-
planner_enabled:
|
|
89020
|
-
replace_plan:
|
|
89021
|
-
tdd:
|
|
89034
|
+
import { z as z49 } from "zod";
|
|
89035
|
+
var SisyphusAgentConfigSchema = z49.object({
|
|
89036
|
+
disabled: z49.boolean().optional(),
|
|
89037
|
+
default_builder_enabled: z49.boolean().optional(),
|
|
89038
|
+
planner_enabled: z49.boolean().optional(),
|
|
89039
|
+
replace_plan: z49.boolean().optional(),
|
|
89040
|
+
tdd: z49.boolean().default(true).optional()
|
|
89022
89041
|
});
|
|
89023
89042
|
|
|
89024
89043
|
// packages/omo-opencode/src/config/schema/tmux.ts
|
|
89025
89044
|
init_src2();
|
|
89026
|
-
import { z as
|
|
89027
|
-
var TmuxLayoutSchema =
|
|
89028
|
-
var TmuxIsolationSchema =
|
|
89029
|
-
var TmuxConfigSchema =
|
|
89030
|
-
enabled:
|
|
89045
|
+
import { z as z50 } from "zod";
|
|
89046
|
+
var TmuxLayoutSchema = z50.enum(TMUX_LAYOUT_VALUES);
|
|
89047
|
+
var TmuxIsolationSchema = z50.enum(TMUX_ISOLATION_VALUES);
|
|
89048
|
+
var TmuxConfigSchema = z50.object({
|
|
89049
|
+
enabled: z50.boolean().default(false),
|
|
89031
89050
|
layout: TmuxLayoutSchema.default("main-vertical"),
|
|
89032
|
-
main_pane_size:
|
|
89033
|
-
main_pane_min_width:
|
|
89034
|
-
agent_pane_min_width:
|
|
89051
|
+
main_pane_size: z50.number().min(20).max(80).default(60),
|
|
89052
|
+
main_pane_min_width: z50.number().min(40).default(120),
|
|
89053
|
+
agent_pane_min_width: z50.number().min(20).default(40),
|
|
89035
89054
|
isolation: TmuxIsolationSchema.default("inline")
|
|
89036
89055
|
});
|
|
89037
89056
|
|
|
89038
89057
|
// packages/omo-opencode/src/config/schema/tui.ts
|
|
89039
|
-
import { z as
|
|
89040
|
-
var TuiSidebarConfigSchema =
|
|
89041
|
-
enabled:
|
|
89058
|
+
import { z as z51 } from "zod";
|
|
89059
|
+
var TuiSidebarConfigSchema = z51.object({
|
|
89060
|
+
enabled: z51.boolean().default(true)
|
|
89042
89061
|
});
|
|
89043
|
-
var TuiConfigSchema =
|
|
89062
|
+
var TuiConfigSchema = z51.object({
|
|
89044
89063
|
sidebar: TuiSidebarConfigSchema.default({ enabled: true })
|
|
89045
89064
|
});
|
|
89046
89065
|
|
|
89047
89066
|
// packages/omo-opencode/src/config/schema/ulw-execute.ts
|
|
89048
|
-
import { z as
|
|
89049
|
-
var UlwExecuteConfigSchema =
|
|
89050
|
-
auto_commit:
|
|
89067
|
+
import { z as z52 } from "zod";
|
|
89068
|
+
var UlwExecuteConfigSchema = z52.object({
|
|
89069
|
+
auto_commit: z52.boolean().default(true)
|
|
89051
89070
|
});
|
|
89052
89071
|
|
|
89053
89072
|
// packages/omo-opencode/src/config/schema/websearch.ts
|
|
89054
|
-
import { z as
|
|
89055
|
-
var WebsearchProviderSchema =
|
|
89056
|
-
var WebsearchConfigSchema =
|
|
89073
|
+
import { z as z53 } from "zod";
|
|
89074
|
+
var WebsearchProviderSchema = z53.enum(["exa", "tavily"]);
|
|
89075
|
+
var WebsearchConfigSchema = z53.object({
|
|
89057
89076
|
provider: WebsearchProviderSchema.optional()
|
|
89058
89077
|
});
|
|
89059
89078
|
|
|
89060
89079
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
89061
|
-
var OhMyOpenCodeConfigSchema =
|
|
89062
|
-
$schema:
|
|
89063
|
-
new_task_system_enabled:
|
|
89064
|
-
default_run_agent:
|
|
89065
|
-
agent_order:
|
|
89080
|
+
var OhMyOpenCodeConfigSchema = z54.object({
|
|
89081
|
+
$schema: z54.string().optional(),
|
|
89082
|
+
new_task_system_enabled: z54.boolean().optional(),
|
|
89083
|
+
default_run_agent: z54.string().optional(),
|
|
89084
|
+
agent_order: z54.array(z54.string().max(128)).max(64).optional(),
|
|
89066
89085
|
agent_definitions: AgentDefinitionsConfigSchema,
|
|
89067
|
-
disabled_mcps:
|
|
89068
|
-
disabled_agents:
|
|
89069
|
-
disabled_skills:
|
|
89070
|
-
disabled_hooks:
|
|
89071
|
-
disabled_commands:
|
|
89072
|
-
disabled_tools:
|
|
89073
|
-
disabled_providers:
|
|
89074
|
-
mcp_env_allowlist:
|
|
89075
|
-
hashline_edit:
|
|
89076
|
-
telemetry:
|
|
89077
|
-
model_fallback:
|
|
89086
|
+
disabled_mcps: z54.array(AnyMcpNameSchema).optional(),
|
|
89087
|
+
disabled_agents: z54.array(z54.string()).optional(),
|
|
89088
|
+
disabled_skills: z54.array(z54.string()).optional(),
|
|
89089
|
+
disabled_hooks: z54.array(z54.string()).optional(),
|
|
89090
|
+
disabled_commands: z54.array(BuiltinCommandNameSchema).optional(),
|
|
89091
|
+
disabled_tools: z54.array(z54.string()).optional(),
|
|
89092
|
+
disabled_providers: z54.array(z54.string()).optional(),
|
|
89093
|
+
mcp_env_allowlist: z54.array(z54.string()).optional(),
|
|
89094
|
+
hashline_edit: z54.boolean().optional(),
|
|
89095
|
+
telemetry: z54.boolean().optional().describe("Enable or disable anonymous telemetry. Default: enabled when omitted. Set to false to disable."),
|
|
89096
|
+
model_fallback: z54.boolean().optional(),
|
|
89078
89097
|
agents: AgentOverridesSchema.optional(),
|
|
89079
89098
|
categories: CategoriesConfigSchema.optional(),
|
|
89080
89099
|
claude_code: ClaudeCodeConfigSchema.optional(),
|
|
89081
89100
|
sisyphus_agent: SisyphusAgentConfigSchema.optional(),
|
|
89082
89101
|
comment_checker: CommentCheckerConfigSchema.optional(),
|
|
89083
89102
|
experimental: ExperimentalConfigSchema.optional(),
|
|
89084
|
-
auto_update:
|
|
89103
|
+
auto_update: z54.boolean().optional(),
|
|
89085
89104
|
skills: SkillsConfigSchema.optional(),
|
|
89086
89105
|
goal: GoalConfigSchema.optional(),
|
|
89087
|
-
ralph_loop:
|
|
89088
|
-
runtime_fallback:
|
|
89106
|
+
ralph_loop: z54.record(z54.string(), z54.unknown()).optional(),
|
|
89107
|
+
runtime_fallback: z54.union([z54.boolean(), RuntimeFallbackConfigSchema]).optional(),
|
|
89089
89108
|
background_task: BackgroundTaskConfigSchema.optional(),
|
|
89090
89109
|
notification: NotificationConfigSchema.optional(),
|
|
89091
89110
|
model_capabilities: ModelCapabilitiesConfigSchema.optional(),
|
|
@@ -89108,7 +89127,7 @@ var OhMyOpenCodeConfigSchema = z53.object({
|
|
|
89108
89127
|
ulw_execute: UlwExecuteConfigSchema.optional(),
|
|
89109
89128
|
start_work: UlwExecuteConfigSchema.optional(),
|
|
89110
89129
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
89111
|
-
_migrations:
|
|
89130
|
+
_migrations: z54.array(z54.string()).optional()
|
|
89112
89131
|
});
|
|
89113
89132
|
// packages/omo-opencode/src/config/prune-plugin-view.ts
|
|
89114
89133
|
var validatePluginRecord = (record) => {
|
|
@@ -108422,35 +108441,35 @@ import { mkdirSync as mkdirSync18, readFileSync as readFileSync47, renameSync as
|
|
|
108422
108441
|
import { join as join86 } from "path";
|
|
108423
108442
|
|
|
108424
108443
|
// packages/omo-opencode/src/hooks/goal/types.ts
|
|
108425
|
-
import { z as
|
|
108444
|
+
import { z as z56 } from "zod";
|
|
108426
108445
|
var GOAL_STATUS_VALUES = ["active", "paused", "complete"];
|
|
108427
|
-
var GoalStatusSchema =
|
|
108428
|
-
var GoalSchema =
|
|
108429
|
-
id:
|
|
108430
|
-
sessionID:
|
|
108431
|
-
objective:
|
|
108446
|
+
var GoalStatusSchema = z56.enum(GOAL_STATUS_VALUES);
|
|
108447
|
+
var GoalSchema = z56.object({
|
|
108448
|
+
id: z56.string(),
|
|
108449
|
+
sessionID: z56.string(),
|
|
108450
|
+
objective: z56.string(),
|
|
108432
108451
|
status: GoalStatusSchema,
|
|
108433
|
-
tokensUsed:
|
|
108434
|
-
timeUsedSeconds:
|
|
108435
|
-
createdAt:
|
|
108436
|
-
updatedAt:
|
|
108437
|
-
lastStartedAt:
|
|
108438
|
-
completedAt:
|
|
108452
|
+
tokensUsed: z56.number().int().nonnegative(),
|
|
108453
|
+
timeUsedSeconds: z56.number().int().nonnegative(),
|
|
108454
|
+
createdAt: z56.number().int().nonnegative(),
|
|
108455
|
+
updatedAt: z56.number().int().nonnegative(),
|
|
108456
|
+
lastStartedAt: z56.number().int().nonnegative().optional(),
|
|
108457
|
+
completedAt: z56.number().int().nonnegative().optional()
|
|
108439
108458
|
});
|
|
108440
|
-
var GoalFileSchema =
|
|
108441
|
-
version:
|
|
108459
|
+
var GoalFileSchema = z56.object({
|
|
108460
|
+
version: z56.literal(1),
|
|
108442
108461
|
goal: GoalSchema.nullable()
|
|
108443
108462
|
});
|
|
108444
|
-
var GoalToolSnapshotSchema =
|
|
108445
|
-
sessionID:
|
|
108446
|
-
objective:
|
|
108463
|
+
var GoalToolSnapshotSchema = z56.object({
|
|
108464
|
+
sessionID: z56.string(),
|
|
108465
|
+
objective: z56.string(),
|
|
108447
108466
|
status: GoalStatusSchema,
|
|
108448
|
-
tokensUsed:
|
|
108449
|
-
timeUsedSeconds:
|
|
108450
|
-
createdAt:
|
|
108451
|
-
updatedAt:
|
|
108467
|
+
tokensUsed: z56.number().int().nonnegative(),
|
|
108468
|
+
timeUsedSeconds: z56.number().int().nonnegative(),
|
|
108469
|
+
createdAt: z56.number().int().nonnegative(),
|
|
108470
|
+
updatedAt: z56.number().int().nonnegative()
|
|
108452
108471
|
});
|
|
108453
|
-
var GoalToolResponseSchema =
|
|
108472
|
+
var GoalToolResponseSchema = z56.object({
|
|
108454
108473
|
goal: GoalToolSnapshotSchema.nullable()
|
|
108455
108474
|
});
|
|
108456
108475
|
|
|
@@ -110230,7 +110249,7 @@ function loadSharedSkillTemplate(skillName) {
|
|
|
110230
110249
|
// packages/skills-loader-core/src/features/builtin-skills/skills/frontend.ts
|
|
110231
110250
|
var frontendSkill = {
|
|
110232
110251
|
name: "frontend",
|
|
110233
|
-
description: "Builds, styles, and polishes web UI
|
|
110252
|
+
description: "Builds, styles, and polishes anything drawn with HTML, CSS, or SVG: web UI, pages, components, HTML reports rendered to PDF or print, figures, PNG/SVG diagrams, slides, and images for Notion or Slack. Use for any styling, layout, animation, or visual-quality task, or when asked to make something look or feel a certain way.",
|
|
110234
110253
|
template: loadSharedSkillTemplate("frontend")
|
|
110235
110254
|
};
|
|
110236
110255
|
// packages/skills-loader-core/src/features/builtin-skills/skills/git-master-skill-metadata.ts
|
|
@@ -125863,11 +125882,11 @@ function createMonitorStatusInjectorHook(monitorManager, config) {
|
|
|
125863
125882
|
import { resolve as resolve28 } from "path";
|
|
125864
125883
|
|
|
125865
125884
|
// node_modules/.bun/@opencode-ai+plugin@1.18.31+7445fc152a67980a/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
125866
|
-
import { z as
|
|
125885
|
+
import { z as z57 } from "zod";
|
|
125867
125886
|
function tool(input) {
|
|
125868
125887
|
return input;
|
|
125869
125888
|
}
|
|
125870
|
-
tool.schema =
|
|
125889
|
+
tool.schema = z57;
|
|
125871
125890
|
|
|
125872
125891
|
// packages/omo-opencode/src/shared/ripgrep-cli.ts
|
|
125873
125892
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
@@ -139679,55 +139698,55 @@ function isExplicitSyncRun(runInBackground) {
|
|
|
139679
139698
|
import { join as join121 } from "path";
|
|
139680
139699
|
|
|
139681
139700
|
// packages/omo-opencode/src/tools/task/types.ts
|
|
139682
|
-
import { z as
|
|
139683
|
-
var TaskStatusSchema =
|
|
139684
|
-
var TaskObjectSchema =
|
|
139685
|
-
id:
|
|
139686
|
-
subject:
|
|
139687
|
-
description:
|
|
139701
|
+
import { z as z58 } from "zod";
|
|
139702
|
+
var TaskStatusSchema = z58.enum(["pending", "in_progress", "completed", "deleted"]);
|
|
139703
|
+
var TaskObjectSchema = z58.object({
|
|
139704
|
+
id: z58.string(),
|
|
139705
|
+
subject: z58.string(),
|
|
139706
|
+
description: z58.string(),
|
|
139688
139707
|
status: TaskStatusSchema,
|
|
139689
|
-
activeForm:
|
|
139690
|
-
blocks:
|
|
139691
|
-
blockedBy:
|
|
139692
|
-
owner:
|
|
139693
|
-
metadata:
|
|
139694
|
-
repoURL:
|
|
139695
|
-
parentID:
|
|
139696
|
-
threadID:
|
|
139708
|
+
activeForm: z58.string().optional(),
|
|
139709
|
+
blocks: z58.array(z58.string()).default([]),
|
|
139710
|
+
blockedBy: z58.array(z58.string()).default([]),
|
|
139711
|
+
owner: z58.string().optional(),
|
|
139712
|
+
metadata: z58.record(z58.string(), z58.unknown()).optional(),
|
|
139713
|
+
repoURL: z58.string().optional(),
|
|
139714
|
+
parentID: z58.string().optional(),
|
|
139715
|
+
threadID: z58.string()
|
|
139697
139716
|
}).strict();
|
|
139698
|
-
var TaskCreateInputSchema =
|
|
139699
|
-
subject:
|
|
139700
|
-
description:
|
|
139701
|
-
activeForm:
|
|
139702
|
-
blocks:
|
|
139703
|
-
blockedBy:
|
|
139704
|
-
owner:
|
|
139705
|
-
metadata:
|
|
139706
|
-
repoURL:
|
|
139707
|
-
parentID:
|
|
139717
|
+
var TaskCreateInputSchema = z58.object({
|
|
139718
|
+
subject: z58.string(),
|
|
139719
|
+
description: z58.string().optional(),
|
|
139720
|
+
activeForm: z58.string().optional(),
|
|
139721
|
+
blocks: z58.array(z58.string()).optional(),
|
|
139722
|
+
blockedBy: z58.array(z58.string()).optional(),
|
|
139723
|
+
owner: z58.string().optional(),
|
|
139724
|
+
metadata: z58.record(z58.string(), z58.unknown()).optional(),
|
|
139725
|
+
repoURL: z58.string().optional(),
|
|
139726
|
+
parentID: z58.string().optional()
|
|
139708
139727
|
});
|
|
139709
|
-
var TaskListInputSchema =
|
|
139728
|
+
var TaskListInputSchema = z58.object({
|
|
139710
139729
|
status: TaskStatusSchema.optional(),
|
|
139711
|
-
parentID:
|
|
139730
|
+
parentID: z58.string().optional()
|
|
139712
139731
|
});
|
|
139713
|
-
var TaskGetInputSchema =
|
|
139714
|
-
id:
|
|
139732
|
+
var TaskGetInputSchema = z58.object({
|
|
139733
|
+
id: z58.string()
|
|
139715
139734
|
});
|
|
139716
|
-
var TaskUpdateInputSchema =
|
|
139717
|
-
id:
|
|
139718
|
-
subject:
|
|
139719
|
-
description:
|
|
139735
|
+
var TaskUpdateInputSchema = z58.object({
|
|
139736
|
+
id: z58.string(),
|
|
139737
|
+
subject: z58.string().optional(),
|
|
139738
|
+
description: z58.string().optional(),
|
|
139720
139739
|
status: TaskStatusSchema.optional(),
|
|
139721
|
-
activeForm:
|
|
139722
|
-
addBlocks:
|
|
139723
|
-
addBlockedBy:
|
|
139724
|
-
owner:
|
|
139725
|
-
metadata:
|
|
139726
|
-
repoURL:
|
|
139727
|
-
parentID:
|
|
139740
|
+
activeForm: z58.string().optional(),
|
|
139741
|
+
addBlocks: z58.array(z58.string()).optional(),
|
|
139742
|
+
addBlockedBy: z58.array(z58.string()).optional(),
|
|
139743
|
+
owner: z58.string().optional(),
|
|
139744
|
+
metadata: z58.record(z58.string(), z58.unknown()).optional(),
|
|
139745
|
+
repoURL: z58.string().optional(),
|
|
139746
|
+
parentID: z58.string().optional()
|
|
139728
139747
|
});
|
|
139729
|
-
var TaskDeleteInputSchema =
|
|
139730
|
-
id:
|
|
139748
|
+
var TaskDeleteInputSchema = z58.object({
|
|
139749
|
+
id: z58.string()
|
|
139731
139750
|
});
|
|
139732
139751
|
|
|
139733
139752
|
// packages/omo-opencode/src/features/claude-tasks/storage.ts
|
|
@@ -140628,7 +140647,7 @@ function createHashlineEditTool(ctx) {
|
|
|
140628
140647
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
140629
140648
|
import { randomUUID as randomUUID11 } from "crypto";
|
|
140630
140649
|
init_logger2();
|
|
140631
|
-
import { z as
|
|
140650
|
+
import { z as z59 } from "zod";
|
|
140632
140651
|
|
|
140633
140652
|
// packages/team-core/src/team-mailbox/send.ts
|
|
140634
140653
|
init_paths();
|
|
@@ -141209,18 +141228,18 @@ async function resolveTeamRuntimeDetails(teamRunId, sessionID, config, deps) {
|
|
|
141209
141228
|
|
|
141210
141229
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
141211
141230
|
var MESSAGE_TOOL_KINDS = ["message", "announcement"];
|
|
141212
|
-
var TeamReferenceArgsSchema =
|
|
141213
|
-
path:
|
|
141214
|
-
description:
|
|
141231
|
+
var TeamReferenceArgsSchema = z59.object({
|
|
141232
|
+
path: z59.string().min(1),
|
|
141233
|
+
description: z59.string().optional()
|
|
141215
141234
|
});
|
|
141216
|
-
var TeamSendMessageArgsSchema =
|
|
141217
|
-
teamRunId:
|
|
141218
|
-
to:
|
|
141219
|
-
body:
|
|
141220
|
-
kind:
|
|
141221
|
-
correlationId:
|
|
141222
|
-
summary:
|
|
141223
|
-
references:
|
|
141235
|
+
var TeamSendMessageArgsSchema = z59.object({
|
|
141236
|
+
teamRunId: z59.string().min(1),
|
|
141237
|
+
to: z59.string().min(1),
|
|
141238
|
+
body: z59.string(),
|
|
141239
|
+
kind: z59.enum(MESSAGE_TOOL_KINDS).optional(),
|
|
141240
|
+
correlationId: z59.preprocess((value) => value === "" ? undefined : value, z59.uuid().optional()),
|
|
141241
|
+
summary: z59.string().optional(),
|
|
141242
|
+
references: z59.array(TeamReferenceArgsSchema).optional()
|
|
141224
141243
|
});
|
|
141225
141244
|
function createTeamSendMessageTool(config, client, deps = defaultTeamSendMessageToolDeps) {
|
|
141226
141245
|
return tool({
|
|
@@ -150127,63 +150146,63 @@ function getLiteralValue(schema) {
|
|
|
150127
150146
|
}
|
|
150128
150147
|
|
|
150129
150148
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
150130
|
-
import * as
|
|
150149
|
+
import * as z60 from "zod/v4";
|
|
150131
150150
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
150132
150151
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
150133
150152
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
150134
150153
|
var JSONRPC_VERSION = "2.0";
|
|
150135
|
-
var AssertObjectSchema =
|
|
150136
|
-
var ProgressTokenSchema =
|
|
150137
|
-
var CursorSchema =
|
|
150138
|
-
var TaskCreationParamsSchema =
|
|
150139
|
-
ttl:
|
|
150140
|
-
pollInterval:
|
|
150154
|
+
var AssertObjectSchema = z60.custom((v) => v !== null && (typeof v === "object" || typeof v === "function"));
|
|
150155
|
+
var ProgressTokenSchema = z60.union([z60.string(), z60.number().int()]);
|
|
150156
|
+
var CursorSchema = z60.string();
|
|
150157
|
+
var TaskCreationParamsSchema = z60.looseObject({
|
|
150158
|
+
ttl: z60.number().optional(),
|
|
150159
|
+
pollInterval: z60.number().optional()
|
|
150141
150160
|
});
|
|
150142
|
-
var TaskMetadataSchema =
|
|
150143
|
-
ttl:
|
|
150161
|
+
var TaskMetadataSchema = z60.object({
|
|
150162
|
+
ttl: z60.number().optional()
|
|
150144
150163
|
});
|
|
150145
|
-
var RelatedTaskMetadataSchema =
|
|
150146
|
-
taskId:
|
|
150164
|
+
var RelatedTaskMetadataSchema = z60.object({
|
|
150165
|
+
taskId: z60.string()
|
|
150147
150166
|
});
|
|
150148
|
-
var RequestMetaSchema =
|
|
150167
|
+
var RequestMetaSchema = z60.looseObject({
|
|
150149
150168
|
progressToken: ProgressTokenSchema.optional(),
|
|
150150
150169
|
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
|
150151
150170
|
});
|
|
150152
|
-
var BaseRequestParamsSchema =
|
|
150171
|
+
var BaseRequestParamsSchema = z60.object({
|
|
150153
150172
|
_meta: RequestMetaSchema.optional()
|
|
150154
150173
|
});
|
|
150155
150174
|
var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150156
150175
|
task: TaskMetadataSchema.optional()
|
|
150157
150176
|
});
|
|
150158
150177
|
var isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success;
|
|
150159
|
-
var RequestSchema =
|
|
150160
|
-
method:
|
|
150178
|
+
var RequestSchema = z60.object({
|
|
150179
|
+
method: z60.string(),
|
|
150161
150180
|
params: BaseRequestParamsSchema.loose().optional()
|
|
150162
150181
|
});
|
|
150163
|
-
var NotificationsParamsSchema =
|
|
150182
|
+
var NotificationsParamsSchema = z60.object({
|
|
150164
150183
|
_meta: RequestMetaSchema.optional()
|
|
150165
150184
|
});
|
|
150166
|
-
var NotificationSchema =
|
|
150167
|
-
method:
|
|
150185
|
+
var NotificationSchema = z60.object({
|
|
150186
|
+
method: z60.string(),
|
|
150168
150187
|
params: NotificationsParamsSchema.loose().optional()
|
|
150169
150188
|
});
|
|
150170
|
-
var ResultSchema =
|
|
150189
|
+
var ResultSchema = z60.looseObject({
|
|
150171
150190
|
_meta: RequestMetaSchema.optional()
|
|
150172
150191
|
});
|
|
150173
|
-
var RequestIdSchema =
|
|
150174
|
-
var JSONRPCRequestSchema =
|
|
150175
|
-
jsonrpc:
|
|
150192
|
+
var RequestIdSchema = z60.union([z60.string(), z60.number().int()]);
|
|
150193
|
+
var JSONRPCRequestSchema = z60.object({
|
|
150194
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150176
150195
|
id: RequestIdSchema,
|
|
150177
150196
|
...RequestSchema.shape
|
|
150178
150197
|
}).strict();
|
|
150179
150198
|
var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
|
150180
|
-
var JSONRPCNotificationSchema =
|
|
150181
|
-
jsonrpc:
|
|
150199
|
+
var JSONRPCNotificationSchema = z60.object({
|
|
150200
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150182
150201
|
...NotificationSchema.shape
|
|
150183
150202
|
}).strict();
|
|
150184
150203
|
var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
|
150185
|
-
var JSONRPCResultResponseSchema =
|
|
150186
|
-
jsonrpc:
|
|
150204
|
+
var JSONRPCResultResponseSchema = z60.object({
|
|
150205
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150187
150206
|
id: RequestIdSchema,
|
|
150188
150207
|
result: ResultSchema
|
|
150189
150208
|
}).strict();
|
|
@@ -150199,153 +150218,153 @@ var ErrorCode;
|
|
|
150199
150218
|
ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError";
|
|
150200
150219
|
ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
|
|
150201
150220
|
})(ErrorCode || (ErrorCode = {}));
|
|
150202
|
-
var JSONRPCErrorResponseSchema =
|
|
150203
|
-
jsonrpc:
|
|
150221
|
+
var JSONRPCErrorResponseSchema = z60.object({
|
|
150222
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150204
150223
|
id: RequestIdSchema.optional(),
|
|
150205
|
-
error:
|
|
150206
|
-
code:
|
|
150207
|
-
message:
|
|
150208
|
-
data:
|
|
150224
|
+
error: z60.object({
|
|
150225
|
+
code: z60.number().int(),
|
|
150226
|
+
message: z60.string(),
|
|
150227
|
+
data: z60.unknown().optional()
|
|
150209
150228
|
})
|
|
150210
150229
|
}).strict();
|
|
150211
150230
|
var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
|
|
150212
|
-
var JSONRPCMessageSchema =
|
|
150231
|
+
var JSONRPCMessageSchema = z60.union([
|
|
150213
150232
|
JSONRPCRequestSchema,
|
|
150214
150233
|
JSONRPCNotificationSchema,
|
|
150215
150234
|
JSONRPCResultResponseSchema,
|
|
150216
150235
|
JSONRPCErrorResponseSchema
|
|
150217
150236
|
]);
|
|
150218
|
-
var JSONRPCResponseSchema =
|
|
150237
|
+
var JSONRPCResponseSchema = z60.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
|
150219
150238
|
var EmptyResultSchema = ResultSchema.strict();
|
|
150220
150239
|
var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150221
150240
|
requestId: RequestIdSchema.optional(),
|
|
150222
|
-
reason:
|
|
150241
|
+
reason: z60.string().optional()
|
|
150223
150242
|
});
|
|
150224
150243
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
150225
|
-
method:
|
|
150244
|
+
method: z60.literal("notifications/cancelled"),
|
|
150226
150245
|
params: CancelledNotificationParamsSchema
|
|
150227
150246
|
});
|
|
150228
|
-
var IconSchema =
|
|
150229
|
-
src:
|
|
150230
|
-
mimeType:
|
|
150231
|
-
sizes:
|
|
150232
|
-
theme:
|
|
150247
|
+
var IconSchema = z60.object({
|
|
150248
|
+
src: z60.string(),
|
|
150249
|
+
mimeType: z60.string().optional(),
|
|
150250
|
+
sizes: z60.array(z60.string()).optional(),
|
|
150251
|
+
theme: z60.enum(["light", "dark"]).optional()
|
|
150233
150252
|
});
|
|
150234
|
-
var IconsSchema =
|
|
150235
|
-
icons:
|
|
150253
|
+
var IconsSchema = z60.object({
|
|
150254
|
+
icons: z60.array(IconSchema).optional()
|
|
150236
150255
|
});
|
|
150237
|
-
var BaseMetadataSchema =
|
|
150238
|
-
name:
|
|
150239
|
-
title:
|
|
150256
|
+
var BaseMetadataSchema = z60.object({
|
|
150257
|
+
name: z60.string(),
|
|
150258
|
+
title: z60.string().optional()
|
|
150240
150259
|
});
|
|
150241
150260
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
150242
150261
|
...BaseMetadataSchema.shape,
|
|
150243
150262
|
...IconsSchema.shape,
|
|
150244
|
-
version:
|
|
150245
|
-
websiteUrl:
|
|
150246
|
-
description:
|
|
150263
|
+
version: z60.string(),
|
|
150264
|
+
websiteUrl: z60.string().optional(),
|
|
150265
|
+
description: z60.string().optional()
|
|
150247
150266
|
});
|
|
150248
|
-
var FormElicitationCapabilitySchema =
|
|
150249
|
-
applyDefaults:
|
|
150250
|
-
}),
|
|
150251
|
-
var ElicitationCapabilitySchema =
|
|
150267
|
+
var FormElicitationCapabilitySchema = z60.intersection(z60.object({
|
|
150268
|
+
applyDefaults: z60.boolean().optional()
|
|
150269
|
+
}), z60.record(z60.string(), z60.unknown()));
|
|
150270
|
+
var ElicitationCapabilitySchema = z60.preprocess((value) => {
|
|
150252
150271
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
150253
150272
|
if (Object.keys(value).length === 0) {
|
|
150254
150273
|
return { form: {} };
|
|
150255
150274
|
}
|
|
150256
150275
|
}
|
|
150257
150276
|
return value;
|
|
150258
|
-
},
|
|
150277
|
+
}, z60.intersection(z60.object({
|
|
150259
150278
|
form: FormElicitationCapabilitySchema.optional(),
|
|
150260
150279
|
url: AssertObjectSchema.optional()
|
|
150261
|
-
}),
|
|
150262
|
-
var ClientTasksCapabilitySchema =
|
|
150280
|
+
}), z60.record(z60.string(), z60.unknown()).optional()));
|
|
150281
|
+
var ClientTasksCapabilitySchema = z60.looseObject({
|
|
150263
150282
|
list: AssertObjectSchema.optional(),
|
|
150264
150283
|
cancel: AssertObjectSchema.optional(),
|
|
150265
|
-
requests:
|
|
150266
|
-
sampling:
|
|
150284
|
+
requests: z60.looseObject({
|
|
150285
|
+
sampling: z60.looseObject({
|
|
150267
150286
|
createMessage: AssertObjectSchema.optional()
|
|
150268
150287
|
}).optional(),
|
|
150269
|
-
elicitation:
|
|
150288
|
+
elicitation: z60.looseObject({
|
|
150270
150289
|
create: AssertObjectSchema.optional()
|
|
150271
150290
|
}).optional()
|
|
150272
150291
|
}).optional()
|
|
150273
150292
|
});
|
|
150274
|
-
var ServerTasksCapabilitySchema =
|
|
150293
|
+
var ServerTasksCapabilitySchema = z60.looseObject({
|
|
150275
150294
|
list: AssertObjectSchema.optional(),
|
|
150276
150295
|
cancel: AssertObjectSchema.optional(),
|
|
150277
|
-
requests:
|
|
150278
|
-
tools:
|
|
150296
|
+
requests: z60.looseObject({
|
|
150297
|
+
tools: z60.looseObject({
|
|
150279
150298
|
call: AssertObjectSchema.optional()
|
|
150280
150299
|
}).optional()
|
|
150281
150300
|
}).optional()
|
|
150282
150301
|
});
|
|
150283
|
-
var ClientCapabilitiesSchema =
|
|
150284
|
-
experimental:
|
|
150285
|
-
sampling:
|
|
150302
|
+
var ClientCapabilitiesSchema = z60.object({
|
|
150303
|
+
experimental: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150304
|
+
sampling: z60.object({
|
|
150286
150305
|
context: AssertObjectSchema.optional(),
|
|
150287
150306
|
tools: AssertObjectSchema.optional()
|
|
150288
150307
|
}).optional(),
|
|
150289
150308
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
150290
|
-
roots:
|
|
150291
|
-
listChanged:
|
|
150309
|
+
roots: z60.object({
|
|
150310
|
+
listChanged: z60.boolean().optional()
|
|
150292
150311
|
}).optional(),
|
|
150293
150312
|
tasks: ClientTasksCapabilitySchema.optional(),
|
|
150294
|
-
extensions:
|
|
150313
|
+
extensions: z60.record(z60.string(), AssertObjectSchema).optional()
|
|
150295
150314
|
});
|
|
150296
150315
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150297
|
-
protocolVersion:
|
|
150316
|
+
protocolVersion: z60.string(),
|
|
150298
150317
|
capabilities: ClientCapabilitiesSchema,
|
|
150299
150318
|
clientInfo: ImplementationSchema
|
|
150300
150319
|
});
|
|
150301
150320
|
var InitializeRequestSchema = RequestSchema.extend({
|
|
150302
|
-
method:
|
|
150321
|
+
method: z60.literal("initialize"),
|
|
150303
150322
|
params: InitializeRequestParamsSchema
|
|
150304
150323
|
});
|
|
150305
|
-
var ServerCapabilitiesSchema =
|
|
150306
|
-
experimental:
|
|
150324
|
+
var ServerCapabilitiesSchema = z60.object({
|
|
150325
|
+
experimental: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150307
150326
|
logging: AssertObjectSchema.optional(),
|
|
150308
150327
|
completions: AssertObjectSchema.optional(),
|
|
150309
|
-
prompts:
|
|
150310
|
-
listChanged:
|
|
150328
|
+
prompts: z60.object({
|
|
150329
|
+
listChanged: z60.boolean().optional()
|
|
150311
150330
|
}).optional(),
|
|
150312
|
-
resources:
|
|
150313
|
-
subscribe:
|
|
150314
|
-
listChanged:
|
|
150331
|
+
resources: z60.object({
|
|
150332
|
+
subscribe: z60.boolean().optional(),
|
|
150333
|
+
listChanged: z60.boolean().optional()
|
|
150315
150334
|
}).optional(),
|
|
150316
|
-
tools:
|
|
150317
|
-
listChanged:
|
|
150335
|
+
tools: z60.object({
|
|
150336
|
+
listChanged: z60.boolean().optional()
|
|
150318
150337
|
}).optional(),
|
|
150319
150338
|
tasks: ServerTasksCapabilitySchema.optional(),
|
|
150320
|
-
extensions:
|
|
150339
|
+
extensions: z60.record(z60.string(), AssertObjectSchema).optional()
|
|
150321
150340
|
});
|
|
150322
150341
|
var InitializeResultSchema = ResultSchema.extend({
|
|
150323
|
-
protocolVersion:
|
|
150342
|
+
protocolVersion: z60.string(),
|
|
150324
150343
|
capabilities: ServerCapabilitiesSchema,
|
|
150325
150344
|
serverInfo: ImplementationSchema,
|
|
150326
|
-
instructions:
|
|
150345
|
+
instructions: z60.string().optional()
|
|
150327
150346
|
});
|
|
150328
150347
|
var InitializedNotificationSchema = NotificationSchema.extend({
|
|
150329
|
-
method:
|
|
150348
|
+
method: z60.literal("notifications/initialized"),
|
|
150330
150349
|
params: NotificationsParamsSchema.optional()
|
|
150331
150350
|
});
|
|
150332
150351
|
var isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success;
|
|
150333
150352
|
var PingRequestSchema = RequestSchema.extend({
|
|
150334
|
-
method:
|
|
150353
|
+
method: z60.literal("ping"),
|
|
150335
150354
|
params: BaseRequestParamsSchema.optional()
|
|
150336
150355
|
});
|
|
150337
|
-
var ProgressSchema =
|
|
150338
|
-
progress:
|
|
150339
|
-
total:
|
|
150340
|
-
message:
|
|
150356
|
+
var ProgressSchema = z60.object({
|
|
150357
|
+
progress: z60.number(),
|
|
150358
|
+
total: z60.optional(z60.number()),
|
|
150359
|
+
message: z60.optional(z60.string())
|
|
150341
150360
|
});
|
|
150342
|
-
var ProgressNotificationParamsSchema =
|
|
150361
|
+
var ProgressNotificationParamsSchema = z60.object({
|
|
150343
150362
|
...NotificationsParamsSchema.shape,
|
|
150344
150363
|
...ProgressSchema.shape,
|
|
150345
150364
|
progressToken: ProgressTokenSchema
|
|
150346
150365
|
});
|
|
150347
150366
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
150348
|
-
method:
|
|
150367
|
+
method: z60.literal("notifications/progress"),
|
|
150349
150368
|
params: ProgressNotificationParamsSchema
|
|
150350
150369
|
});
|
|
150351
150370
|
var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
@@ -150357,60 +150376,60 @@ var PaginatedRequestSchema = RequestSchema.extend({
|
|
|
150357
150376
|
var PaginatedResultSchema = ResultSchema.extend({
|
|
150358
150377
|
nextCursor: CursorSchema.optional()
|
|
150359
150378
|
});
|
|
150360
|
-
var TaskStatusSchema2 =
|
|
150361
|
-
var TaskSchema2 =
|
|
150362
|
-
taskId:
|
|
150379
|
+
var TaskStatusSchema2 = z60.enum(["working", "input_required", "completed", "failed", "cancelled"]);
|
|
150380
|
+
var TaskSchema2 = z60.object({
|
|
150381
|
+
taskId: z60.string(),
|
|
150363
150382
|
status: TaskStatusSchema2,
|
|
150364
|
-
ttl:
|
|
150365
|
-
createdAt:
|
|
150366
|
-
lastUpdatedAt:
|
|
150367
|
-
pollInterval:
|
|
150368
|
-
statusMessage:
|
|
150383
|
+
ttl: z60.union([z60.number(), z60.null()]),
|
|
150384
|
+
createdAt: z60.string(),
|
|
150385
|
+
lastUpdatedAt: z60.string(),
|
|
150386
|
+
pollInterval: z60.optional(z60.number()),
|
|
150387
|
+
statusMessage: z60.optional(z60.string())
|
|
150369
150388
|
});
|
|
150370
150389
|
var CreateTaskResultSchema = ResultSchema.extend({
|
|
150371
150390
|
task: TaskSchema2
|
|
150372
150391
|
});
|
|
150373
150392
|
var TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema2);
|
|
150374
150393
|
var TaskStatusNotificationSchema = NotificationSchema.extend({
|
|
150375
|
-
method:
|
|
150394
|
+
method: z60.literal("notifications/tasks/status"),
|
|
150376
150395
|
params: TaskStatusNotificationParamsSchema
|
|
150377
150396
|
});
|
|
150378
150397
|
var GetTaskRequestSchema = RequestSchema.extend({
|
|
150379
|
-
method:
|
|
150398
|
+
method: z60.literal("tasks/get"),
|
|
150380
150399
|
params: BaseRequestParamsSchema.extend({
|
|
150381
|
-
taskId:
|
|
150400
|
+
taskId: z60.string()
|
|
150382
150401
|
})
|
|
150383
150402
|
});
|
|
150384
150403
|
var GetTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
150385
150404
|
var GetTaskPayloadRequestSchema = RequestSchema.extend({
|
|
150386
|
-
method:
|
|
150405
|
+
method: z60.literal("tasks/result"),
|
|
150387
150406
|
params: BaseRequestParamsSchema.extend({
|
|
150388
|
-
taskId:
|
|
150407
|
+
taskId: z60.string()
|
|
150389
150408
|
})
|
|
150390
150409
|
});
|
|
150391
150410
|
var GetTaskPayloadResultSchema = ResultSchema.loose();
|
|
150392
150411
|
var ListTasksRequestSchema = PaginatedRequestSchema.extend({
|
|
150393
|
-
method:
|
|
150412
|
+
method: z60.literal("tasks/list")
|
|
150394
150413
|
});
|
|
150395
150414
|
var ListTasksResultSchema = PaginatedResultSchema.extend({
|
|
150396
|
-
tasks:
|
|
150415
|
+
tasks: z60.array(TaskSchema2)
|
|
150397
150416
|
});
|
|
150398
150417
|
var CancelTaskRequestSchema = RequestSchema.extend({
|
|
150399
|
-
method:
|
|
150418
|
+
method: z60.literal("tasks/cancel"),
|
|
150400
150419
|
params: BaseRequestParamsSchema.extend({
|
|
150401
|
-
taskId:
|
|
150420
|
+
taskId: z60.string()
|
|
150402
150421
|
})
|
|
150403
150422
|
});
|
|
150404
150423
|
var CancelTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
150405
|
-
var ResourceContentsSchema =
|
|
150406
|
-
uri:
|
|
150407
|
-
mimeType:
|
|
150408
|
-
_meta:
|
|
150424
|
+
var ResourceContentsSchema = z60.object({
|
|
150425
|
+
uri: z60.string(),
|
|
150426
|
+
mimeType: z60.optional(z60.string()),
|
|
150427
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150409
150428
|
});
|
|
150410
150429
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
150411
|
-
text:
|
|
150430
|
+
text: z60.string()
|
|
150412
150431
|
});
|
|
150413
|
-
var Base64Schema =
|
|
150432
|
+
var Base64Schema = z60.string().refine((val) => {
|
|
150414
150433
|
try {
|
|
150415
150434
|
atob(val);
|
|
150416
150435
|
return true;
|
|
@@ -150421,447 +150440,447 @@ var Base64Schema = z59.string().refine((val) => {
|
|
|
150421
150440
|
var BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
150422
150441
|
blob: Base64Schema
|
|
150423
150442
|
});
|
|
150424
|
-
var RoleSchema =
|
|
150425
|
-
var AnnotationsSchema =
|
|
150426
|
-
audience:
|
|
150427
|
-
priority:
|
|
150428
|
-
lastModified:
|
|
150443
|
+
var RoleSchema = z60.enum(["user", "assistant"]);
|
|
150444
|
+
var AnnotationsSchema = z60.object({
|
|
150445
|
+
audience: z60.array(RoleSchema).optional(),
|
|
150446
|
+
priority: z60.number().min(0).max(1).optional(),
|
|
150447
|
+
lastModified: z60.iso.datetime({ offset: true }).optional()
|
|
150429
150448
|
});
|
|
150430
|
-
var ResourceSchema =
|
|
150449
|
+
var ResourceSchema = z60.object({
|
|
150431
150450
|
...BaseMetadataSchema.shape,
|
|
150432
150451
|
...IconsSchema.shape,
|
|
150433
|
-
uri:
|
|
150434
|
-
description:
|
|
150435
|
-
mimeType:
|
|
150436
|
-
size:
|
|
150452
|
+
uri: z60.string(),
|
|
150453
|
+
description: z60.optional(z60.string()),
|
|
150454
|
+
mimeType: z60.optional(z60.string()),
|
|
150455
|
+
size: z60.optional(z60.number()),
|
|
150437
150456
|
annotations: AnnotationsSchema.optional(),
|
|
150438
|
-
_meta:
|
|
150457
|
+
_meta: z60.optional(z60.looseObject({}))
|
|
150439
150458
|
});
|
|
150440
|
-
var ResourceTemplateSchema =
|
|
150459
|
+
var ResourceTemplateSchema = z60.object({
|
|
150441
150460
|
...BaseMetadataSchema.shape,
|
|
150442
150461
|
...IconsSchema.shape,
|
|
150443
|
-
uriTemplate:
|
|
150444
|
-
description:
|
|
150445
|
-
mimeType:
|
|
150462
|
+
uriTemplate: z60.string(),
|
|
150463
|
+
description: z60.optional(z60.string()),
|
|
150464
|
+
mimeType: z60.optional(z60.string()),
|
|
150446
150465
|
annotations: AnnotationsSchema.optional(),
|
|
150447
|
-
_meta:
|
|
150466
|
+
_meta: z60.optional(z60.looseObject({}))
|
|
150448
150467
|
});
|
|
150449
150468
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
150450
|
-
method:
|
|
150469
|
+
method: z60.literal("resources/list")
|
|
150451
150470
|
});
|
|
150452
150471
|
var ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
150453
|
-
resources:
|
|
150472
|
+
resources: z60.array(ResourceSchema)
|
|
150454
150473
|
});
|
|
150455
150474
|
var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
150456
|
-
method:
|
|
150475
|
+
method: z60.literal("resources/templates/list")
|
|
150457
150476
|
});
|
|
150458
150477
|
var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
150459
|
-
resourceTemplates:
|
|
150478
|
+
resourceTemplates: z60.array(ResourceTemplateSchema)
|
|
150460
150479
|
});
|
|
150461
150480
|
var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150462
|
-
uri:
|
|
150481
|
+
uri: z60.string()
|
|
150463
150482
|
});
|
|
150464
150483
|
var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
|
150465
150484
|
var ReadResourceRequestSchema = RequestSchema.extend({
|
|
150466
|
-
method:
|
|
150485
|
+
method: z60.literal("resources/read"),
|
|
150467
150486
|
params: ReadResourceRequestParamsSchema
|
|
150468
150487
|
});
|
|
150469
150488
|
var ReadResourceResultSchema = ResultSchema.extend({
|
|
150470
|
-
contents:
|
|
150489
|
+
contents: z60.array(z60.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
150471
150490
|
});
|
|
150472
150491
|
var ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
150473
|
-
method:
|
|
150492
|
+
method: z60.literal("notifications/resources/list_changed"),
|
|
150474
150493
|
params: NotificationsParamsSchema.optional()
|
|
150475
150494
|
});
|
|
150476
150495
|
var SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
150477
150496
|
var SubscribeRequestSchema = RequestSchema.extend({
|
|
150478
|
-
method:
|
|
150497
|
+
method: z60.literal("resources/subscribe"),
|
|
150479
150498
|
params: SubscribeRequestParamsSchema
|
|
150480
150499
|
});
|
|
150481
150500
|
var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
150482
150501
|
var UnsubscribeRequestSchema = RequestSchema.extend({
|
|
150483
|
-
method:
|
|
150502
|
+
method: z60.literal("resources/unsubscribe"),
|
|
150484
150503
|
params: UnsubscribeRequestParamsSchema
|
|
150485
150504
|
});
|
|
150486
150505
|
var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150487
|
-
uri:
|
|
150506
|
+
uri: z60.string()
|
|
150488
150507
|
});
|
|
150489
150508
|
var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
150490
|
-
method:
|
|
150509
|
+
method: z60.literal("notifications/resources/updated"),
|
|
150491
150510
|
params: ResourceUpdatedNotificationParamsSchema
|
|
150492
150511
|
});
|
|
150493
|
-
var PromptArgumentSchema =
|
|
150494
|
-
name:
|
|
150495
|
-
description:
|
|
150496
|
-
required:
|
|
150512
|
+
var PromptArgumentSchema = z60.object({
|
|
150513
|
+
name: z60.string(),
|
|
150514
|
+
description: z60.optional(z60.string()),
|
|
150515
|
+
required: z60.optional(z60.boolean())
|
|
150497
150516
|
});
|
|
150498
|
-
var PromptSchema =
|
|
150517
|
+
var PromptSchema = z60.object({
|
|
150499
150518
|
...BaseMetadataSchema.shape,
|
|
150500
150519
|
...IconsSchema.shape,
|
|
150501
|
-
description:
|
|
150502
|
-
arguments:
|
|
150503
|
-
_meta:
|
|
150520
|
+
description: z60.optional(z60.string()),
|
|
150521
|
+
arguments: z60.optional(z60.array(PromptArgumentSchema)),
|
|
150522
|
+
_meta: z60.optional(z60.looseObject({}))
|
|
150504
150523
|
});
|
|
150505
150524
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
150506
|
-
method:
|
|
150525
|
+
method: z60.literal("prompts/list")
|
|
150507
150526
|
});
|
|
150508
150527
|
var ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
150509
|
-
prompts:
|
|
150528
|
+
prompts: z60.array(PromptSchema)
|
|
150510
150529
|
});
|
|
150511
150530
|
var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150512
|
-
name:
|
|
150513
|
-
arguments:
|
|
150531
|
+
name: z60.string(),
|
|
150532
|
+
arguments: z60.record(z60.string(), z60.string()).optional()
|
|
150514
150533
|
});
|
|
150515
150534
|
var GetPromptRequestSchema = RequestSchema.extend({
|
|
150516
|
-
method:
|
|
150535
|
+
method: z60.literal("prompts/get"),
|
|
150517
150536
|
params: GetPromptRequestParamsSchema
|
|
150518
150537
|
});
|
|
150519
|
-
var TextContentSchema =
|
|
150520
|
-
type:
|
|
150521
|
-
text:
|
|
150538
|
+
var TextContentSchema = z60.object({
|
|
150539
|
+
type: z60.literal("text"),
|
|
150540
|
+
text: z60.string(),
|
|
150522
150541
|
annotations: AnnotationsSchema.optional(),
|
|
150523
|
-
_meta:
|
|
150542
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150524
150543
|
});
|
|
150525
|
-
var ImageContentSchema =
|
|
150526
|
-
type:
|
|
150544
|
+
var ImageContentSchema = z60.object({
|
|
150545
|
+
type: z60.literal("image"),
|
|
150527
150546
|
data: Base64Schema,
|
|
150528
|
-
mimeType:
|
|
150547
|
+
mimeType: z60.string(),
|
|
150529
150548
|
annotations: AnnotationsSchema.optional(),
|
|
150530
|
-
_meta:
|
|
150549
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150531
150550
|
});
|
|
150532
|
-
var AudioContentSchema =
|
|
150533
|
-
type:
|
|
150551
|
+
var AudioContentSchema = z60.object({
|
|
150552
|
+
type: z60.literal("audio"),
|
|
150534
150553
|
data: Base64Schema,
|
|
150535
|
-
mimeType:
|
|
150554
|
+
mimeType: z60.string(),
|
|
150536
150555
|
annotations: AnnotationsSchema.optional(),
|
|
150537
|
-
_meta:
|
|
150556
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150538
150557
|
});
|
|
150539
|
-
var ToolUseContentSchema =
|
|
150540
|
-
type:
|
|
150541
|
-
name:
|
|
150542
|
-
id:
|
|
150543
|
-
input:
|
|
150544
|
-
_meta:
|
|
150558
|
+
var ToolUseContentSchema = z60.object({
|
|
150559
|
+
type: z60.literal("tool_use"),
|
|
150560
|
+
name: z60.string(),
|
|
150561
|
+
id: z60.string(),
|
|
150562
|
+
input: z60.record(z60.string(), z60.unknown()),
|
|
150563
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150545
150564
|
});
|
|
150546
|
-
var EmbeddedResourceSchema =
|
|
150547
|
-
type:
|
|
150548
|
-
resource:
|
|
150565
|
+
var EmbeddedResourceSchema = z60.object({
|
|
150566
|
+
type: z60.literal("resource"),
|
|
150567
|
+
resource: z60.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
150549
150568
|
annotations: AnnotationsSchema.optional(),
|
|
150550
|
-
_meta:
|
|
150569
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150551
150570
|
});
|
|
150552
150571
|
var ResourceLinkSchema = ResourceSchema.extend({
|
|
150553
|
-
type:
|
|
150572
|
+
type: z60.literal("resource_link")
|
|
150554
150573
|
});
|
|
150555
|
-
var ContentBlockSchema =
|
|
150574
|
+
var ContentBlockSchema = z60.union([
|
|
150556
150575
|
TextContentSchema,
|
|
150557
150576
|
ImageContentSchema,
|
|
150558
150577
|
AudioContentSchema,
|
|
150559
150578
|
ResourceLinkSchema,
|
|
150560
150579
|
EmbeddedResourceSchema
|
|
150561
150580
|
]);
|
|
150562
|
-
var PromptMessageSchema =
|
|
150581
|
+
var PromptMessageSchema = z60.object({
|
|
150563
150582
|
role: RoleSchema,
|
|
150564
150583
|
content: ContentBlockSchema
|
|
150565
150584
|
});
|
|
150566
150585
|
var GetPromptResultSchema = ResultSchema.extend({
|
|
150567
|
-
description:
|
|
150568
|
-
messages:
|
|
150586
|
+
description: z60.string().optional(),
|
|
150587
|
+
messages: z60.array(PromptMessageSchema)
|
|
150569
150588
|
});
|
|
150570
150589
|
var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
150571
|
-
method:
|
|
150590
|
+
method: z60.literal("notifications/prompts/list_changed"),
|
|
150572
150591
|
params: NotificationsParamsSchema.optional()
|
|
150573
150592
|
});
|
|
150574
|
-
var ToolAnnotationsSchema =
|
|
150575
|
-
title:
|
|
150576
|
-
readOnlyHint:
|
|
150577
|
-
destructiveHint:
|
|
150578
|
-
idempotentHint:
|
|
150579
|
-
openWorldHint:
|
|
150593
|
+
var ToolAnnotationsSchema = z60.object({
|
|
150594
|
+
title: z60.string().optional(),
|
|
150595
|
+
readOnlyHint: z60.boolean().optional(),
|
|
150596
|
+
destructiveHint: z60.boolean().optional(),
|
|
150597
|
+
idempotentHint: z60.boolean().optional(),
|
|
150598
|
+
openWorldHint: z60.boolean().optional()
|
|
150580
150599
|
});
|
|
150581
|
-
var ToolExecutionSchema =
|
|
150582
|
-
taskSupport:
|
|
150600
|
+
var ToolExecutionSchema = z60.object({
|
|
150601
|
+
taskSupport: z60.enum(["required", "optional", "forbidden"]).optional()
|
|
150583
150602
|
});
|
|
150584
|
-
var ToolSchema =
|
|
150603
|
+
var ToolSchema = z60.object({
|
|
150585
150604
|
...BaseMetadataSchema.shape,
|
|
150586
150605
|
...IconsSchema.shape,
|
|
150587
|
-
description:
|
|
150588
|
-
inputSchema:
|
|
150589
|
-
type:
|
|
150590
|
-
properties:
|
|
150591
|
-
required:
|
|
150592
|
-
}).catchall(
|
|
150593
|
-
outputSchema:
|
|
150594
|
-
type:
|
|
150595
|
-
properties:
|
|
150596
|
-
required:
|
|
150597
|
-
}).catchall(
|
|
150606
|
+
description: z60.string().optional(),
|
|
150607
|
+
inputSchema: z60.object({
|
|
150608
|
+
type: z60.literal("object"),
|
|
150609
|
+
properties: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150610
|
+
required: z60.array(z60.string()).optional()
|
|
150611
|
+
}).catchall(z60.unknown()),
|
|
150612
|
+
outputSchema: z60.object({
|
|
150613
|
+
type: z60.literal("object"),
|
|
150614
|
+
properties: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150615
|
+
required: z60.array(z60.string()).optional()
|
|
150616
|
+
}).catchall(z60.unknown()).optional(),
|
|
150598
150617
|
annotations: ToolAnnotationsSchema.optional(),
|
|
150599
150618
|
execution: ToolExecutionSchema.optional(),
|
|
150600
|
-
_meta:
|
|
150619
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150601
150620
|
});
|
|
150602
150621
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
150603
|
-
method:
|
|
150622
|
+
method: z60.literal("tools/list")
|
|
150604
150623
|
});
|
|
150605
150624
|
var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
150606
|
-
tools:
|
|
150625
|
+
tools: z60.array(ToolSchema)
|
|
150607
150626
|
});
|
|
150608
150627
|
var CallToolResultSchema = ResultSchema.extend({
|
|
150609
|
-
content:
|
|
150610
|
-
structuredContent:
|
|
150611
|
-
isError:
|
|
150628
|
+
content: z60.array(ContentBlockSchema).default([]),
|
|
150629
|
+
structuredContent: z60.record(z60.string(), z60.unknown()).optional(),
|
|
150630
|
+
isError: z60.boolean().optional()
|
|
150612
150631
|
});
|
|
150613
150632
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
150614
|
-
toolResult:
|
|
150633
|
+
toolResult: z60.unknown()
|
|
150615
150634
|
}));
|
|
150616
150635
|
var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150617
|
-
name:
|
|
150618
|
-
arguments:
|
|
150636
|
+
name: z60.string(),
|
|
150637
|
+
arguments: z60.record(z60.string(), z60.unknown()).optional()
|
|
150619
150638
|
});
|
|
150620
150639
|
var CallToolRequestSchema = RequestSchema.extend({
|
|
150621
|
-
method:
|
|
150640
|
+
method: z60.literal("tools/call"),
|
|
150622
150641
|
params: CallToolRequestParamsSchema
|
|
150623
150642
|
});
|
|
150624
150643
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
150625
|
-
method:
|
|
150644
|
+
method: z60.literal("notifications/tools/list_changed"),
|
|
150626
150645
|
params: NotificationsParamsSchema.optional()
|
|
150627
150646
|
});
|
|
150628
|
-
var ListChangedOptionsBaseSchema =
|
|
150629
|
-
autoRefresh:
|
|
150630
|
-
debounceMs:
|
|
150647
|
+
var ListChangedOptionsBaseSchema = z60.object({
|
|
150648
|
+
autoRefresh: z60.boolean().default(true),
|
|
150649
|
+
debounceMs: z60.number().int().nonnegative().default(300)
|
|
150631
150650
|
});
|
|
150632
|
-
var LoggingLevelSchema =
|
|
150651
|
+
var LoggingLevelSchema = z60.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
150633
150652
|
var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150634
150653
|
level: LoggingLevelSchema
|
|
150635
150654
|
});
|
|
150636
150655
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
150637
|
-
method:
|
|
150656
|
+
method: z60.literal("logging/setLevel"),
|
|
150638
150657
|
params: SetLevelRequestParamsSchema
|
|
150639
150658
|
});
|
|
150640
150659
|
var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150641
150660
|
level: LoggingLevelSchema,
|
|
150642
|
-
logger:
|
|
150643
|
-
data:
|
|
150661
|
+
logger: z60.string().optional(),
|
|
150662
|
+
data: z60.unknown()
|
|
150644
150663
|
});
|
|
150645
150664
|
var LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
150646
|
-
method:
|
|
150665
|
+
method: z60.literal("notifications/message"),
|
|
150647
150666
|
params: LoggingMessageNotificationParamsSchema
|
|
150648
150667
|
});
|
|
150649
|
-
var ModelHintSchema =
|
|
150650
|
-
name:
|
|
150668
|
+
var ModelHintSchema = z60.object({
|
|
150669
|
+
name: z60.string().optional()
|
|
150651
150670
|
});
|
|
150652
|
-
var ModelPreferencesSchema =
|
|
150653
|
-
hints:
|
|
150654
|
-
costPriority:
|
|
150655
|
-
speedPriority:
|
|
150656
|
-
intelligencePriority:
|
|
150671
|
+
var ModelPreferencesSchema = z60.object({
|
|
150672
|
+
hints: z60.array(ModelHintSchema).optional(),
|
|
150673
|
+
costPriority: z60.number().min(0).max(1).optional(),
|
|
150674
|
+
speedPriority: z60.number().min(0).max(1).optional(),
|
|
150675
|
+
intelligencePriority: z60.number().min(0).max(1).optional()
|
|
150657
150676
|
});
|
|
150658
|
-
var ToolChoiceSchema =
|
|
150659
|
-
mode:
|
|
150677
|
+
var ToolChoiceSchema = z60.object({
|
|
150678
|
+
mode: z60.enum(["auto", "required", "none"]).optional()
|
|
150660
150679
|
});
|
|
150661
|
-
var ToolResultContentSchema =
|
|
150662
|
-
type:
|
|
150663
|
-
toolUseId:
|
|
150664
|
-
content:
|
|
150665
|
-
structuredContent:
|
|
150666
|
-
isError:
|
|
150667
|
-
_meta:
|
|
150680
|
+
var ToolResultContentSchema = z60.object({
|
|
150681
|
+
type: z60.literal("tool_result"),
|
|
150682
|
+
toolUseId: z60.string().describe("The unique identifier for the corresponding tool call."),
|
|
150683
|
+
content: z60.array(ContentBlockSchema).default([]),
|
|
150684
|
+
structuredContent: z60.object({}).loose().optional(),
|
|
150685
|
+
isError: z60.boolean().optional(),
|
|
150686
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150668
150687
|
});
|
|
150669
|
-
var SamplingContentSchema =
|
|
150670
|
-
var SamplingMessageContentBlockSchema =
|
|
150688
|
+
var SamplingContentSchema = z60.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]);
|
|
150689
|
+
var SamplingMessageContentBlockSchema = z60.discriminatedUnion("type", [
|
|
150671
150690
|
TextContentSchema,
|
|
150672
150691
|
ImageContentSchema,
|
|
150673
150692
|
AudioContentSchema,
|
|
150674
150693
|
ToolUseContentSchema,
|
|
150675
150694
|
ToolResultContentSchema
|
|
150676
150695
|
]);
|
|
150677
|
-
var SamplingMessageSchema =
|
|
150696
|
+
var SamplingMessageSchema = z60.object({
|
|
150678
150697
|
role: RoleSchema,
|
|
150679
|
-
content:
|
|
150680
|
-
_meta:
|
|
150698
|
+
content: z60.union([SamplingMessageContentBlockSchema, z60.array(SamplingMessageContentBlockSchema)]),
|
|
150699
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150681
150700
|
});
|
|
150682
150701
|
var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150683
|
-
messages:
|
|
150702
|
+
messages: z60.array(SamplingMessageSchema),
|
|
150684
150703
|
modelPreferences: ModelPreferencesSchema.optional(),
|
|
150685
|
-
systemPrompt:
|
|
150686
|
-
includeContext:
|
|
150687
|
-
temperature:
|
|
150688
|
-
maxTokens:
|
|
150689
|
-
stopSequences:
|
|
150704
|
+
systemPrompt: z60.string().optional(),
|
|
150705
|
+
includeContext: z60.enum(["none", "thisServer", "allServers"]).optional(),
|
|
150706
|
+
temperature: z60.number().optional(),
|
|
150707
|
+
maxTokens: z60.number().int(),
|
|
150708
|
+
stopSequences: z60.array(z60.string()).optional(),
|
|
150690
150709
|
metadata: AssertObjectSchema.optional(),
|
|
150691
|
-
tools:
|
|
150710
|
+
tools: z60.array(ToolSchema).optional(),
|
|
150692
150711
|
toolChoice: ToolChoiceSchema.optional()
|
|
150693
150712
|
});
|
|
150694
150713
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
150695
|
-
method:
|
|
150714
|
+
method: z60.literal("sampling/createMessage"),
|
|
150696
150715
|
params: CreateMessageRequestParamsSchema
|
|
150697
150716
|
});
|
|
150698
150717
|
var CreateMessageResultSchema = ResultSchema.extend({
|
|
150699
|
-
model:
|
|
150700
|
-
stopReason:
|
|
150718
|
+
model: z60.string(),
|
|
150719
|
+
stopReason: z60.optional(z60.enum(["endTurn", "stopSequence", "maxTokens"]).or(z60.string())),
|
|
150701
150720
|
role: RoleSchema,
|
|
150702
150721
|
content: SamplingContentSchema
|
|
150703
150722
|
});
|
|
150704
150723
|
var CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
150705
|
-
model:
|
|
150706
|
-
stopReason:
|
|
150724
|
+
model: z60.string(),
|
|
150725
|
+
stopReason: z60.optional(z60.enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(z60.string())),
|
|
150707
150726
|
role: RoleSchema,
|
|
150708
|
-
content:
|
|
150727
|
+
content: z60.union([SamplingMessageContentBlockSchema, z60.array(SamplingMessageContentBlockSchema)])
|
|
150709
150728
|
});
|
|
150710
|
-
var BooleanSchemaSchema =
|
|
150711
|
-
type:
|
|
150712
|
-
title:
|
|
150713
|
-
description:
|
|
150714
|
-
default:
|
|
150729
|
+
var BooleanSchemaSchema = z60.object({
|
|
150730
|
+
type: z60.literal("boolean"),
|
|
150731
|
+
title: z60.string().optional(),
|
|
150732
|
+
description: z60.string().optional(),
|
|
150733
|
+
default: z60.boolean().optional()
|
|
150715
150734
|
});
|
|
150716
|
-
var StringSchemaSchema =
|
|
150717
|
-
type:
|
|
150718
|
-
title:
|
|
150719
|
-
description:
|
|
150720
|
-
minLength:
|
|
150721
|
-
maxLength:
|
|
150722
|
-
format:
|
|
150723
|
-
default:
|
|
150735
|
+
var StringSchemaSchema = z60.object({
|
|
150736
|
+
type: z60.literal("string"),
|
|
150737
|
+
title: z60.string().optional(),
|
|
150738
|
+
description: z60.string().optional(),
|
|
150739
|
+
minLength: z60.number().optional(),
|
|
150740
|
+
maxLength: z60.number().optional(),
|
|
150741
|
+
format: z60.enum(["email", "uri", "date", "date-time"]).optional(),
|
|
150742
|
+
default: z60.string().optional()
|
|
150724
150743
|
});
|
|
150725
|
-
var NumberSchemaSchema =
|
|
150726
|
-
type:
|
|
150727
|
-
title:
|
|
150728
|
-
description:
|
|
150729
|
-
minimum:
|
|
150730
|
-
maximum:
|
|
150731
|
-
default:
|
|
150744
|
+
var NumberSchemaSchema = z60.object({
|
|
150745
|
+
type: z60.enum(["number", "integer"]),
|
|
150746
|
+
title: z60.string().optional(),
|
|
150747
|
+
description: z60.string().optional(),
|
|
150748
|
+
minimum: z60.number().optional(),
|
|
150749
|
+
maximum: z60.number().optional(),
|
|
150750
|
+
default: z60.number().optional()
|
|
150732
150751
|
});
|
|
150733
|
-
var UntitledSingleSelectEnumSchemaSchema =
|
|
150734
|
-
type:
|
|
150735
|
-
title:
|
|
150736
|
-
description:
|
|
150737
|
-
enum:
|
|
150738
|
-
default:
|
|
150752
|
+
var UntitledSingleSelectEnumSchemaSchema = z60.object({
|
|
150753
|
+
type: z60.literal("string"),
|
|
150754
|
+
title: z60.string().optional(),
|
|
150755
|
+
description: z60.string().optional(),
|
|
150756
|
+
enum: z60.array(z60.string()),
|
|
150757
|
+
default: z60.string().optional()
|
|
150739
150758
|
});
|
|
150740
|
-
var TitledSingleSelectEnumSchemaSchema =
|
|
150741
|
-
type:
|
|
150742
|
-
title:
|
|
150743
|
-
description:
|
|
150744
|
-
oneOf:
|
|
150745
|
-
const:
|
|
150746
|
-
title:
|
|
150759
|
+
var TitledSingleSelectEnumSchemaSchema = z60.object({
|
|
150760
|
+
type: z60.literal("string"),
|
|
150761
|
+
title: z60.string().optional(),
|
|
150762
|
+
description: z60.string().optional(),
|
|
150763
|
+
oneOf: z60.array(z60.object({
|
|
150764
|
+
const: z60.string(),
|
|
150765
|
+
title: z60.string()
|
|
150747
150766
|
})),
|
|
150748
|
-
default:
|
|
150767
|
+
default: z60.string().optional()
|
|
150749
150768
|
});
|
|
150750
|
-
var LegacyTitledEnumSchemaSchema =
|
|
150751
|
-
type:
|
|
150752
|
-
title:
|
|
150753
|
-
description:
|
|
150754
|
-
enum:
|
|
150755
|
-
enumNames:
|
|
150756
|
-
default:
|
|
150769
|
+
var LegacyTitledEnumSchemaSchema = z60.object({
|
|
150770
|
+
type: z60.literal("string"),
|
|
150771
|
+
title: z60.string().optional(),
|
|
150772
|
+
description: z60.string().optional(),
|
|
150773
|
+
enum: z60.array(z60.string()),
|
|
150774
|
+
enumNames: z60.array(z60.string()).optional(),
|
|
150775
|
+
default: z60.string().optional()
|
|
150757
150776
|
});
|
|
150758
|
-
var SingleSelectEnumSchemaSchema =
|
|
150759
|
-
var UntitledMultiSelectEnumSchemaSchema =
|
|
150760
|
-
type:
|
|
150761
|
-
title:
|
|
150762
|
-
description:
|
|
150763
|
-
minItems:
|
|
150764
|
-
maxItems:
|
|
150765
|
-
items:
|
|
150766
|
-
type:
|
|
150767
|
-
enum:
|
|
150777
|
+
var SingleSelectEnumSchemaSchema = z60.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
|
|
150778
|
+
var UntitledMultiSelectEnumSchemaSchema = z60.object({
|
|
150779
|
+
type: z60.literal("array"),
|
|
150780
|
+
title: z60.string().optional(),
|
|
150781
|
+
description: z60.string().optional(),
|
|
150782
|
+
minItems: z60.number().optional(),
|
|
150783
|
+
maxItems: z60.number().optional(),
|
|
150784
|
+
items: z60.object({
|
|
150785
|
+
type: z60.literal("string"),
|
|
150786
|
+
enum: z60.array(z60.string())
|
|
150768
150787
|
}),
|
|
150769
|
-
default:
|
|
150788
|
+
default: z60.array(z60.string()).optional()
|
|
150770
150789
|
});
|
|
150771
|
-
var TitledMultiSelectEnumSchemaSchema =
|
|
150772
|
-
type:
|
|
150773
|
-
title:
|
|
150774
|
-
description:
|
|
150775
|
-
minItems:
|
|
150776
|
-
maxItems:
|
|
150777
|
-
items:
|
|
150778
|
-
anyOf:
|
|
150779
|
-
const:
|
|
150780
|
-
title:
|
|
150790
|
+
var TitledMultiSelectEnumSchemaSchema = z60.object({
|
|
150791
|
+
type: z60.literal("array"),
|
|
150792
|
+
title: z60.string().optional(),
|
|
150793
|
+
description: z60.string().optional(),
|
|
150794
|
+
minItems: z60.number().optional(),
|
|
150795
|
+
maxItems: z60.number().optional(),
|
|
150796
|
+
items: z60.object({
|
|
150797
|
+
anyOf: z60.array(z60.object({
|
|
150798
|
+
const: z60.string(),
|
|
150799
|
+
title: z60.string()
|
|
150781
150800
|
}))
|
|
150782
150801
|
}),
|
|
150783
|
-
default:
|
|
150802
|
+
default: z60.array(z60.string()).optional()
|
|
150784
150803
|
});
|
|
150785
|
-
var MultiSelectEnumSchemaSchema =
|
|
150786
|
-
var EnumSchemaSchema =
|
|
150787
|
-
var PrimitiveSchemaDefinitionSchema =
|
|
150804
|
+
var MultiSelectEnumSchemaSchema = z60.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
|
|
150805
|
+
var EnumSchemaSchema = z60.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
|
|
150806
|
+
var PrimitiveSchemaDefinitionSchema = z60.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
|
|
150788
150807
|
var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150789
|
-
mode:
|
|
150790
|
-
message:
|
|
150791
|
-
requestedSchema:
|
|
150792
|
-
type:
|
|
150793
|
-
properties:
|
|
150794
|
-
required:
|
|
150808
|
+
mode: z60.literal("form").optional(),
|
|
150809
|
+
message: z60.string(),
|
|
150810
|
+
requestedSchema: z60.object({
|
|
150811
|
+
type: z60.literal("object"),
|
|
150812
|
+
properties: z60.record(z60.string(), PrimitiveSchemaDefinitionSchema),
|
|
150813
|
+
required: z60.array(z60.string()).optional()
|
|
150795
150814
|
})
|
|
150796
150815
|
});
|
|
150797
150816
|
var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150798
|
-
mode:
|
|
150799
|
-
message:
|
|
150800
|
-
elicitationId:
|
|
150801
|
-
url:
|
|
150817
|
+
mode: z60.literal("url"),
|
|
150818
|
+
message: z60.string(),
|
|
150819
|
+
elicitationId: z60.string(),
|
|
150820
|
+
url: z60.string().url()
|
|
150802
150821
|
});
|
|
150803
|
-
var ElicitRequestParamsSchema =
|
|
150822
|
+
var ElicitRequestParamsSchema = z60.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
|
|
150804
150823
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
150805
|
-
method:
|
|
150824
|
+
method: z60.literal("elicitation/create"),
|
|
150806
150825
|
params: ElicitRequestParamsSchema
|
|
150807
150826
|
});
|
|
150808
150827
|
var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150809
|
-
elicitationId:
|
|
150828
|
+
elicitationId: z60.string()
|
|
150810
150829
|
});
|
|
150811
150830
|
var ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
|
150812
|
-
method:
|
|
150831
|
+
method: z60.literal("notifications/elicitation/complete"),
|
|
150813
150832
|
params: ElicitationCompleteNotificationParamsSchema
|
|
150814
150833
|
});
|
|
150815
150834
|
var ElicitResultSchema = ResultSchema.extend({
|
|
150816
|
-
action:
|
|
150817
|
-
content:
|
|
150835
|
+
action: z60.enum(["accept", "decline", "cancel"]),
|
|
150836
|
+
content: z60.preprocess((val) => val === null ? undefined : val, z60.record(z60.string(), z60.union([z60.string(), z60.number(), z60.boolean(), z60.array(z60.string())])).optional())
|
|
150818
150837
|
});
|
|
150819
|
-
var ResourceTemplateReferenceSchema =
|
|
150820
|
-
type:
|
|
150821
|
-
uri:
|
|
150838
|
+
var ResourceTemplateReferenceSchema = z60.object({
|
|
150839
|
+
type: z60.literal("ref/resource"),
|
|
150840
|
+
uri: z60.string()
|
|
150822
150841
|
});
|
|
150823
|
-
var PromptReferenceSchema =
|
|
150824
|
-
type:
|
|
150825
|
-
name:
|
|
150842
|
+
var PromptReferenceSchema = z60.object({
|
|
150843
|
+
type: z60.literal("ref/prompt"),
|
|
150844
|
+
name: z60.string()
|
|
150826
150845
|
});
|
|
150827
150846
|
var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150828
|
-
ref:
|
|
150829
|
-
argument:
|
|
150830
|
-
name:
|
|
150831
|
-
value:
|
|
150847
|
+
ref: z60.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
150848
|
+
argument: z60.object({
|
|
150849
|
+
name: z60.string(),
|
|
150850
|
+
value: z60.string()
|
|
150832
150851
|
}),
|
|
150833
|
-
context:
|
|
150834
|
-
arguments:
|
|
150852
|
+
context: z60.object({
|
|
150853
|
+
arguments: z60.record(z60.string(), z60.string()).optional()
|
|
150835
150854
|
}).optional()
|
|
150836
150855
|
});
|
|
150837
150856
|
var CompleteRequestSchema = RequestSchema.extend({
|
|
150838
|
-
method:
|
|
150857
|
+
method: z60.literal("completion/complete"),
|
|
150839
150858
|
params: CompleteRequestParamsSchema
|
|
150840
150859
|
});
|
|
150841
150860
|
var CompleteResultSchema = ResultSchema.extend({
|
|
150842
|
-
completion:
|
|
150843
|
-
values:
|
|
150844
|
-
total:
|
|
150845
|
-
hasMore:
|
|
150861
|
+
completion: z60.looseObject({
|
|
150862
|
+
values: z60.array(z60.string()).max(100),
|
|
150863
|
+
total: z60.optional(z60.number().int()),
|
|
150864
|
+
hasMore: z60.optional(z60.boolean())
|
|
150846
150865
|
})
|
|
150847
150866
|
});
|
|
150848
|
-
var RootSchema =
|
|
150849
|
-
uri:
|
|
150850
|
-
name:
|
|
150851
|
-
_meta:
|
|
150867
|
+
var RootSchema = z60.object({
|
|
150868
|
+
uri: z60.string().startsWith("file://"),
|
|
150869
|
+
name: z60.string().optional(),
|
|
150870
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150852
150871
|
});
|
|
150853
150872
|
var ListRootsRequestSchema = RequestSchema.extend({
|
|
150854
|
-
method:
|
|
150873
|
+
method: z60.literal("roots/list"),
|
|
150855
150874
|
params: BaseRequestParamsSchema.optional()
|
|
150856
150875
|
});
|
|
150857
150876
|
var ListRootsResultSchema = ResultSchema.extend({
|
|
150858
|
-
roots:
|
|
150877
|
+
roots: z60.array(RootSchema)
|
|
150859
150878
|
});
|
|
150860
150879
|
var RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
150861
|
-
method:
|
|
150880
|
+
method: z60.literal("notifications/roots/list_changed"),
|
|
150862
150881
|
params: NotificationsParamsSchema.optional()
|
|
150863
150882
|
});
|
|
150864
|
-
var ClientRequestSchema =
|
|
150883
|
+
var ClientRequestSchema = z60.union([
|
|
150865
150884
|
PingRequestSchema,
|
|
150866
150885
|
InitializeRequestSchema,
|
|
150867
150886
|
CompleteRequestSchema,
|
|
@@ -150880,14 +150899,14 @@ var ClientRequestSchema = z59.union([
|
|
|
150880
150899
|
ListTasksRequestSchema,
|
|
150881
150900
|
CancelTaskRequestSchema
|
|
150882
150901
|
]);
|
|
150883
|
-
var ClientNotificationSchema =
|
|
150902
|
+
var ClientNotificationSchema = z60.union([
|
|
150884
150903
|
CancelledNotificationSchema,
|
|
150885
150904
|
ProgressNotificationSchema,
|
|
150886
150905
|
InitializedNotificationSchema,
|
|
150887
150906
|
RootsListChangedNotificationSchema,
|
|
150888
150907
|
TaskStatusNotificationSchema
|
|
150889
150908
|
]);
|
|
150890
|
-
var ClientResultSchema =
|
|
150909
|
+
var ClientResultSchema = z60.union([
|
|
150891
150910
|
EmptyResultSchema,
|
|
150892
150911
|
CreateMessageResultSchema,
|
|
150893
150912
|
CreateMessageResultWithToolsSchema,
|
|
@@ -150897,7 +150916,7 @@ var ClientResultSchema = z59.union([
|
|
|
150897
150916
|
ListTasksResultSchema,
|
|
150898
150917
|
CreateTaskResultSchema
|
|
150899
150918
|
]);
|
|
150900
|
-
var ServerRequestSchema =
|
|
150919
|
+
var ServerRequestSchema = z60.union([
|
|
150901
150920
|
PingRequestSchema,
|
|
150902
150921
|
CreateMessageRequestSchema,
|
|
150903
150922
|
ElicitRequestSchema,
|
|
@@ -150907,7 +150926,7 @@ var ServerRequestSchema = z59.union([
|
|
|
150907
150926
|
ListTasksRequestSchema,
|
|
150908
150927
|
CancelTaskRequestSchema
|
|
150909
150928
|
]);
|
|
150910
|
-
var ServerNotificationSchema =
|
|
150929
|
+
var ServerNotificationSchema = z60.union([
|
|
150911
150930
|
CancelledNotificationSchema,
|
|
150912
150931
|
ProgressNotificationSchema,
|
|
150913
150932
|
LoggingMessageNotificationSchema,
|
|
@@ -150918,7 +150937,7 @@ var ServerNotificationSchema = z59.union([
|
|
|
150918
150937
|
TaskStatusNotificationSchema,
|
|
150919
150938
|
ElicitationCompleteNotificationSchema
|
|
150920
150939
|
]);
|
|
150921
|
-
var ServerResultSchema =
|
|
150940
|
+
var ServerResultSchema = z60.union([
|
|
150922
150941
|
EmptyResultSchema,
|
|
150923
150942
|
InitializeResultSchema,
|
|
150924
150943
|
CompleteResultSchema,
|
|
@@ -152680,151 +152699,151 @@ async function pkceChallenge(length) {
|
|
|
152680
152699
|
}
|
|
152681
152700
|
|
|
152682
152701
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
152683
|
-
import * as
|
|
152684
|
-
var SafeUrlSchema =
|
|
152702
|
+
import * as z61 from "zod/v4";
|
|
152703
|
+
var SafeUrlSchema = z61.url().superRefine((val, ctx) => {
|
|
152685
152704
|
if (!URL.canParse(val)) {
|
|
152686
152705
|
ctx.addIssue({
|
|
152687
|
-
code:
|
|
152706
|
+
code: z61.ZodIssueCode.custom,
|
|
152688
152707
|
message: "URL must be parseable",
|
|
152689
152708
|
fatal: true
|
|
152690
152709
|
});
|
|
152691
|
-
return
|
|
152710
|
+
return z61.NEVER;
|
|
152692
152711
|
}
|
|
152693
152712
|
}).refine((url) => {
|
|
152694
152713
|
const u = new URL(url);
|
|
152695
152714
|
return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
|
|
152696
152715
|
}, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
|
|
152697
|
-
var OAuthProtectedResourceMetadataSchema =
|
|
152698
|
-
resource:
|
|
152699
|
-
authorization_servers:
|
|
152700
|
-
jwks_uri:
|
|
152701
|
-
scopes_supported:
|
|
152702
|
-
bearer_methods_supported:
|
|
152703
|
-
resource_signing_alg_values_supported:
|
|
152704
|
-
resource_name:
|
|
152705
|
-
resource_documentation:
|
|
152706
|
-
resource_policy_uri:
|
|
152707
|
-
resource_tos_uri:
|
|
152708
|
-
tls_client_certificate_bound_access_tokens:
|
|
152709
|
-
authorization_details_types_supported:
|
|
152710
|
-
dpop_signing_alg_values_supported:
|
|
152711
|
-
dpop_bound_access_tokens_required:
|
|
152716
|
+
var OAuthProtectedResourceMetadataSchema = z61.looseObject({
|
|
152717
|
+
resource: z61.string().url(),
|
|
152718
|
+
authorization_servers: z61.array(SafeUrlSchema).optional(),
|
|
152719
|
+
jwks_uri: z61.string().url().optional(),
|
|
152720
|
+
scopes_supported: z61.array(z61.string()).optional(),
|
|
152721
|
+
bearer_methods_supported: z61.array(z61.string()).optional(),
|
|
152722
|
+
resource_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152723
|
+
resource_name: z61.string().optional(),
|
|
152724
|
+
resource_documentation: z61.string().optional(),
|
|
152725
|
+
resource_policy_uri: z61.string().url().optional(),
|
|
152726
|
+
resource_tos_uri: z61.string().url().optional(),
|
|
152727
|
+
tls_client_certificate_bound_access_tokens: z61.boolean().optional(),
|
|
152728
|
+
authorization_details_types_supported: z61.array(z61.string()).optional(),
|
|
152729
|
+
dpop_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152730
|
+
dpop_bound_access_tokens_required: z61.boolean().optional()
|
|
152712
152731
|
});
|
|
152713
|
-
var OAuthMetadataSchema =
|
|
152714
|
-
issuer:
|
|
152732
|
+
var OAuthMetadataSchema = z61.looseObject({
|
|
152733
|
+
issuer: z61.string(),
|
|
152715
152734
|
authorization_endpoint: SafeUrlSchema,
|
|
152716
152735
|
token_endpoint: SafeUrlSchema,
|
|
152717
152736
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
152718
|
-
scopes_supported:
|
|
152719
|
-
response_types_supported:
|
|
152720
|
-
response_modes_supported:
|
|
152721
|
-
grant_types_supported:
|
|
152722
|
-
token_endpoint_auth_methods_supported:
|
|
152723
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
152737
|
+
scopes_supported: z61.array(z61.string()).optional(),
|
|
152738
|
+
response_types_supported: z61.array(z61.string()),
|
|
152739
|
+
response_modes_supported: z61.array(z61.string()).optional(),
|
|
152740
|
+
grant_types_supported: z61.array(z61.string()).optional(),
|
|
152741
|
+
token_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152742
|
+
token_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152724
152743
|
service_documentation: SafeUrlSchema.optional(),
|
|
152725
152744
|
revocation_endpoint: SafeUrlSchema.optional(),
|
|
152726
|
-
revocation_endpoint_auth_methods_supported:
|
|
152727
|
-
revocation_endpoint_auth_signing_alg_values_supported:
|
|
152728
|
-
introspection_endpoint:
|
|
152729
|
-
introspection_endpoint_auth_methods_supported:
|
|
152730
|
-
introspection_endpoint_auth_signing_alg_values_supported:
|
|
152731
|
-
code_challenge_methods_supported:
|
|
152732
|
-
client_id_metadata_document_supported:
|
|
152745
|
+
revocation_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152746
|
+
revocation_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152747
|
+
introspection_endpoint: z61.string().optional(),
|
|
152748
|
+
introspection_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152749
|
+
introspection_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152750
|
+
code_challenge_methods_supported: z61.array(z61.string()).optional(),
|
|
152751
|
+
client_id_metadata_document_supported: z61.boolean().optional()
|
|
152733
152752
|
});
|
|
152734
|
-
var OpenIdProviderMetadataSchema =
|
|
152735
|
-
issuer:
|
|
152753
|
+
var OpenIdProviderMetadataSchema = z61.looseObject({
|
|
152754
|
+
issuer: z61.string(),
|
|
152736
152755
|
authorization_endpoint: SafeUrlSchema,
|
|
152737
152756
|
token_endpoint: SafeUrlSchema,
|
|
152738
152757
|
userinfo_endpoint: SafeUrlSchema.optional(),
|
|
152739
152758
|
jwks_uri: SafeUrlSchema,
|
|
152740
152759
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
152741
|
-
scopes_supported:
|
|
152742
|
-
response_types_supported:
|
|
152743
|
-
response_modes_supported:
|
|
152744
|
-
grant_types_supported:
|
|
152745
|
-
acr_values_supported:
|
|
152746
|
-
subject_types_supported:
|
|
152747
|
-
id_token_signing_alg_values_supported:
|
|
152748
|
-
id_token_encryption_alg_values_supported:
|
|
152749
|
-
id_token_encryption_enc_values_supported:
|
|
152750
|
-
userinfo_signing_alg_values_supported:
|
|
152751
|
-
userinfo_encryption_alg_values_supported:
|
|
152752
|
-
userinfo_encryption_enc_values_supported:
|
|
152753
|
-
request_object_signing_alg_values_supported:
|
|
152754
|
-
request_object_encryption_alg_values_supported:
|
|
152755
|
-
request_object_encryption_enc_values_supported:
|
|
152756
|
-
token_endpoint_auth_methods_supported:
|
|
152757
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
152758
|
-
display_values_supported:
|
|
152759
|
-
claim_types_supported:
|
|
152760
|
-
claims_supported:
|
|
152761
|
-
service_documentation:
|
|
152762
|
-
claims_locales_supported:
|
|
152763
|
-
ui_locales_supported:
|
|
152764
|
-
claims_parameter_supported:
|
|
152765
|
-
request_parameter_supported:
|
|
152766
|
-
request_uri_parameter_supported:
|
|
152767
|
-
require_request_uri_registration:
|
|
152760
|
+
scopes_supported: z61.array(z61.string()).optional(),
|
|
152761
|
+
response_types_supported: z61.array(z61.string()),
|
|
152762
|
+
response_modes_supported: z61.array(z61.string()).optional(),
|
|
152763
|
+
grant_types_supported: z61.array(z61.string()).optional(),
|
|
152764
|
+
acr_values_supported: z61.array(z61.string()).optional(),
|
|
152765
|
+
subject_types_supported: z61.array(z61.string()),
|
|
152766
|
+
id_token_signing_alg_values_supported: z61.array(z61.string()),
|
|
152767
|
+
id_token_encryption_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152768
|
+
id_token_encryption_enc_values_supported: z61.array(z61.string()).optional(),
|
|
152769
|
+
userinfo_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152770
|
+
userinfo_encryption_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152771
|
+
userinfo_encryption_enc_values_supported: z61.array(z61.string()).optional(),
|
|
152772
|
+
request_object_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152773
|
+
request_object_encryption_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152774
|
+
request_object_encryption_enc_values_supported: z61.array(z61.string()).optional(),
|
|
152775
|
+
token_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152776
|
+
token_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152777
|
+
display_values_supported: z61.array(z61.string()).optional(),
|
|
152778
|
+
claim_types_supported: z61.array(z61.string()).optional(),
|
|
152779
|
+
claims_supported: z61.array(z61.string()).optional(),
|
|
152780
|
+
service_documentation: z61.string().optional(),
|
|
152781
|
+
claims_locales_supported: z61.array(z61.string()).optional(),
|
|
152782
|
+
ui_locales_supported: z61.array(z61.string()).optional(),
|
|
152783
|
+
claims_parameter_supported: z61.boolean().optional(),
|
|
152784
|
+
request_parameter_supported: z61.boolean().optional(),
|
|
152785
|
+
request_uri_parameter_supported: z61.boolean().optional(),
|
|
152786
|
+
require_request_uri_registration: z61.boolean().optional(),
|
|
152768
152787
|
op_policy_uri: SafeUrlSchema.optional(),
|
|
152769
152788
|
op_tos_uri: SafeUrlSchema.optional(),
|
|
152770
|
-
client_id_metadata_document_supported:
|
|
152789
|
+
client_id_metadata_document_supported: z61.boolean().optional()
|
|
152771
152790
|
});
|
|
152772
|
-
var OpenIdProviderDiscoveryMetadataSchema =
|
|
152791
|
+
var OpenIdProviderDiscoveryMetadataSchema = z61.object({
|
|
152773
152792
|
...OpenIdProviderMetadataSchema.shape,
|
|
152774
152793
|
...OAuthMetadataSchema.pick({
|
|
152775
152794
|
code_challenge_methods_supported: true
|
|
152776
152795
|
}).shape
|
|
152777
152796
|
});
|
|
152778
|
-
var OAuthTokensSchema =
|
|
152779
|
-
access_token:
|
|
152780
|
-
id_token:
|
|
152781
|
-
token_type:
|
|
152782
|
-
expires_in:
|
|
152783
|
-
scope:
|
|
152784
|
-
refresh_token:
|
|
152785
|
-
issuer:
|
|
152797
|
+
var OAuthTokensSchema = z61.object({
|
|
152798
|
+
access_token: z61.string(),
|
|
152799
|
+
id_token: z61.string().optional(),
|
|
152800
|
+
token_type: z61.string(),
|
|
152801
|
+
expires_in: z61.coerce.number().optional(),
|
|
152802
|
+
scope: z61.string().optional(),
|
|
152803
|
+
refresh_token: z61.string().optional(),
|
|
152804
|
+
issuer: z61.string().optional().catch(undefined)
|
|
152786
152805
|
}).strip();
|
|
152787
|
-
var OAuthErrorResponseSchema =
|
|
152788
|
-
error:
|
|
152789
|
-
error_description:
|
|
152790
|
-
error_uri:
|
|
152806
|
+
var OAuthErrorResponseSchema = z61.object({
|
|
152807
|
+
error: z61.string(),
|
|
152808
|
+
error_description: z61.string().optional(),
|
|
152809
|
+
error_uri: z61.string().optional()
|
|
152791
152810
|
});
|
|
152792
|
-
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(
|
|
152811
|
+
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z61.literal("").transform(() => {
|
|
152793
152812
|
return;
|
|
152794
152813
|
}));
|
|
152795
|
-
var OAuthClientMetadataSchema =
|
|
152796
|
-
redirect_uris:
|
|
152797
|
-
token_endpoint_auth_method:
|
|
152798
|
-
grant_types:
|
|
152799
|
-
response_types:
|
|
152800
|
-
client_name:
|
|
152814
|
+
var OAuthClientMetadataSchema = z61.object({
|
|
152815
|
+
redirect_uris: z61.array(SafeUrlSchema),
|
|
152816
|
+
token_endpoint_auth_method: z61.string().optional(),
|
|
152817
|
+
grant_types: z61.array(z61.string()).optional(),
|
|
152818
|
+
response_types: z61.array(z61.string()).optional(),
|
|
152819
|
+
client_name: z61.string().optional(),
|
|
152801
152820
|
client_uri: SafeUrlSchema.optional(),
|
|
152802
152821
|
logo_uri: OptionalSafeUrlSchema,
|
|
152803
|
-
scope:
|
|
152804
|
-
contacts:
|
|
152822
|
+
scope: z61.string().optional(),
|
|
152823
|
+
contacts: z61.array(z61.string()).optional(),
|
|
152805
152824
|
tos_uri: OptionalSafeUrlSchema,
|
|
152806
|
-
policy_uri:
|
|
152825
|
+
policy_uri: z61.string().optional(),
|
|
152807
152826
|
jwks_uri: SafeUrlSchema.optional(),
|
|
152808
|
-
jwks:
|
|
152809
|
-
software_id:
|
|
152810
|
-
software_version:
|
|
152811
|
-
software_statement:
|
|
152827
|
+
jwks: z61.any().optional(),
|
|
152828
|
+
software_id: z61.string().optional(),
|
|
152829
|
+
software_version: z61.string().optional(),
|
|
152830
|
+
software_statement: z61.string().optional()
|
|
152812
152831
|
}).strip();
|
|
152813
|
-
var OAuthClientInformationSchema =
|
|
152814
|
-
client_id:
|
|
152815
|
-
client_secret:
|
|
152816
|
-
client_id_issued_at:
|
|
152817
|
-
client_secret_expires_at:
|
|
152818
|
-
issuer:
|
|
152832
|
+
var OAuthClientInformationSchema = z61.object({
|
|
152833
|
+
client_id: z61.string(),
|
|
152834
|
+
client_secret: z61.string().optional(),
|
|
152835
|
+
client_id_issued_at: z61.number().optional(),
|
|
152836
|
+
client_secret_expires_at: z61.number().optional(),
|
|
152837
|
+
issuer: z61.string().optional().catch(undefined)
|
|
152819
152838
|
}).strip();
|
|
152820
152839
|
var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
152821
|
-
var OAuthClientRegistrationErrorSchema =
|
|
152822
|
-
error:
|
|
152823
|
-
error_description:
|
|
152840
|
+
var OAuthClientRegistrationErrorSchema = z61.object({
|
|
152841
|
+
error: z61.string(),
|
|
152842
|
+
error_description: z61.string().optional()
|
|
152824
152843
|
}).strip();
|
|
152825
|
-
var OAuthTokenRevocationRequestSchema =
|
|
152826
|
-
token:
|
|
152827
|
-
token_type_hint:
|
|
152844
|
+
var OAuthTokenRevocationRequestSchema = z61.object({
|
|
152845
|
+
token: z61.string(),
|
|
152846
|
+
token_type_hint: z61.string().optional()
|
|
152828
152847
|
}).strip();
|
|
152829
152848
|
|
|
152830
152849
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
|
|
@@ -155096,7 +155115,7 @@ function mirrorFilePath(projectDir) {
|
|
|
155096
155115
|
}
|
|
155097
155116
|
|
|
155098
155117
|
// packages/omo-opencode/src/features/tui-sidebar/snapshot-schema.ts
|
|
155099
|
-
import { z as
|
|
155118
|
+
import { z as z62 } from "zod";
|
|
155100
155119
|
var AGENT_STATUS_VALUES = [
|
|
155101
155120
|
"busy",
|
|
155102
155121
|
"idle",
|
|
@@ -155112,32 +155131,32 @@ var BACKGROUND_TASK_STATUS_VALUES = [
|
|
|
155112
155131
|
"cancelled",
|
|
155113
155132
|
"interrupt"
|
|
155114
155133
|
];
|
|
155115
|
-
var AgentRowSchema =
|
|
155116
|
-
name:
|
|
155117
|
-
status:
|
|
155134
|
+
var AgentRowSchema = z62.object({
|
|
155135
|
+
name: z62.string(),
|
|
155136
|
+
status: z62.enum(AGENT_STATUS_VALUES)
|
|
155118
155137
|
});
|
|
155119
|
-
var JobRowSchema =
|
|
155120
|
-
title:
|
|
155121
|
-
status:
|
|
155122
|
-
toolCalls:
|
|
155123
|
-
lastTool:
|
|
155138
|
+
var JobRowSchema = z62.object({
|
|
155139
|
+
title: z62.string(),
|
|
155140
|
+
status: z62.enum(BACKGROUND_TASK_STATUS_VALUES),
|
|
155141
|
+
toolCalls: z62.number().int().nonnegative().nullable(),
|
|
155142
|
+
lastTool: z62.string().nullable()
|
|
155124
155143
|
});
|
|
155125
|
-
var LoopLiveSchema =
|
|
155126
|
-
kind:
|
|
155127
|
-
goalsDone:
|
|
155128
|
-
goalsTotal:
|
|
155129
|
-
pass:
|
|
155130
|
-
fail:
|
|
155131
|
-
pending:
|
|
155132
|
-
blocked:
|
|
155133
|
-
activeGoal:
|
|
155144
|
+
var LoopLiveSchema = z62.object({
|
|
155145
|
+
kind: z62.literal("live"),
|
|
155146
|
+
goalsDone: z62.number().int().nonnegative(),
|
|
155147
|
+
goalsTotal: z62.number().int().nonnegative(),
|
|
155148
|
+
pass: z62.number().int().nonnegative(),
|
|
155149
|
+
fail: z62.number().int().nonnegative(),
|
|
155150
|
+
pending: z62.number().int().nonnegative(),
|
|
155151
|
+
blocked: z62.number().int().nonnegative(),
|
|
155152
|
+
activeGoal: z62.string().nullable()
|
|
155134
155153
|
});
|
|
155135
|
-
var TuiRuntimeSnapshotSchema =
|
|
155136
|
-
version:
|
|
155137
|
-
projectDir:
|
|
155138
|
-
updatedAt:
|
|
155139
|
-
activeAgents:
|
|
155140
|
-
jobBoard:
|
|
155154
|
+
var TuiRuntimeSnapshotSchema = z62.object({
|
|
155155
|
+
version: z62.literal(MIRROR_SCHEMA_VERSION),
|
|
155156
|
+
projectDir: z62.string(),
|
|
155157
|
+
updatedAt: z62.number(),
|
|
155158
|
+
activeAgents: z62.array(AgentRowSchema),
|
|
155159
|
+
jobBoard: z62.array(JobRowSchema),
|
|
155141
155160
|
loop: LoopLiveSchema.nullable()
|
|
155142
155161
|
});
|
|
155143
155162
|
|
|
@@ -155152,25 +155171,25 @@ function writeMirror(projectDir, snapshot) {
|
|
|
155152
155171
|
// packages/omo-opencode/src/features/tui-sidebar/loop-reader.ts
|
|
155153
155172
|
import { readdirSync as readdirSync31, readFileSync as readFileSync70, statSync as statSync15 } from "fs";
|
|
155154
155173
|
import { join as join131 } from "path";
|
|
155155
|
-
import { z as
|
|
155156
|
-
var CriterionSchema =
|
|
155157
|
-
status:
|
|
155174
|
+
import { z as z63 } from "zod";
|
|
155175
|
+
var CriterionSchema = z63.object({
|
|
155176
|
+
status: z63.string()
|
|
155158
155177
|
});
|
|
155159
|
-
var GoalBaseSchema =
|
|
155160
|
-
id:
|
|
155161
|
-
title:
|
|
155162
|
-
status:
|
|
155178
|
+
var GoalBaseSchema = z63.object({
|
|
155179
|
+
id: z63.string(),
|
|
155180
|
+
title: z63.string(),
|
|
155181
|
+
status: z63.string()
|
|
155163
155182
|
});
|
|
155164
|
-
var CurrentLoopSchema =
|
|
155165
|
-
version:
|
|
155166
|
-
activeGoalId:
|
|
155167
|
-
goals:
|
|
155168
|
-
successCriteria:
|
|
155183
|
+
var CurrentLoopSchema = z63.object({
|
|
155184
|
+
version: z63.literal(1),
|
|
155185
|
+
activeGoalId: z63.string().optional(),
|
|
155186
|
+
goals: z63.array(GoalBaseSchema.extend({
|
|
155187
|
+
successCriteria: z63.array(CriterionSchema)
|
|
155169
155188
|
}))
|
|
155170
155189
|
});
|
|
155171
|
-
var LegacyLoopSchema =
|
|
155172
|
-
goals:
|
|
155173
|
-
criteria:
|
|
155190
|
+
var LegacyLoopSchema = z63.object({
|
|
155191
|
+
goals: z63.array(GoalBaseSchema.extend({
|
|
155192
|
+
criteria: z63.array(CriterionSchema)
|
|
155174
155193
|
}))
|
|
155175
155194
|
});
|
|
155176
155195
|
function readActiveLoop(projectDir) {
|
|
@@ -171837,7 +171856,7 @@ var grep_app = {
|
|
|
171837
171856
|
import { existsSync as existsSync109, readFileSync as readFileSync77 } from "fs";
|
|
171838
171857
|
import { delimiter as delimiter2, dirname as dirname49, resolve as resolve38 } from "path";
|
|
171839
171858
|
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
171840
|
-
import { z as
|
|
171859
|
+
import { z as z64 } from "zod";
|
|
171841
171860
|
|
|
171842
171861
|
// packages/omo-opencode/src/mcp/cli-suffix.ts
|
|
171843
171862
|
function normalizeCliPath(path) {
|
|
@@ -171938,8 +171957,8 @@ var PROJECT_LSP_CONFIGS = [".opencode/lsp.json", ".omo/lsp.json", ".omo/lsp-clie
|
|
|
171938
171957
|
var DAEMON_PACKAGE_NAME = "@code-yeongyu/lsp-daemon";
|
|
171939
171958
|
var OMO_LSP_DAEMON_CLI = "OMO_LSP_DAEMON_CLI";
|
|
171940
171959
|
var OMO_LSP_DAEMON_VERSION = "OMO_LSP_DAEMON_VERSION";
|
|
171941
|
-
var DaemonPackageSchema =
|
|
171942
|
-
version:
|
|
171960
|
+
var DaemonPackageSchema = z64.object({
|
|
171961
|
+
version: z64.string().min(1)
|
|
171943
171962
|
});
|
|
171944
171963
|
var LSP_BOOTSTRAP_SCRIPT = [
|
|
171945
171964
|
"const { existsSync } = require('node:fs')",
|
|
@@ -172759,14 +172778,14 @@ function createTeamModeToolsRecord(args) {
|
|
|
172759
172778
|
// node_modules/.bun/@opencode-ai+sdk@1.18.31/node_modules/@opencode-ai/sdk/dist/v2/server.js
|
|
172760
172779
|
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1);
|
|
172761
172780
|
// packages/omo-opencode/src/plugin/native-skills.ts
|
|
172762
|
-
import { z as
|
|
172763
|
-
var NativeSkillEntrySchema =
|
|
172764
|
-
name:
|
|
172765
|
-
description:
|
|
172766
|
-
location:
|
|
172767
|
-
content:
|
|
172781
|
+
import { z as z65 } from "zod";
|
|
172782
|
+
var NativeSkillEntrySchema = z65.object({
|
|
172783
|
+
name: z65.string(),
|
|
172784
|
+
description: z65.string().default(""),
|
|
172785
|
+
location: z65.string(),
|
|
172786
|
+
content: z65.string()
|
|
172768
172787
|
});
|
|
172769
|
-
var NativeSkillEntriesSchema =
|
|
172788
|
+
var NativeSkillEntriesSchema = z65.array(NativeSkillEntrySchema);
|
|
172770
172789
|
function getObjectProperty(value, property) {
|
|
172771
172790
|
if (typeof value !== "object" || value === null)
|
|
172772
172791
|
return;
|
|
@@ -173917,7 +173936,7 @@ async function resolveParticipant2(teamRunId, sessionID, config, deps) {
|
|
|
173917
173936
|
}
|
|
173918
173937
|
|
|
173919
173938
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-inline-spec.ts
|
|
173920
|
-
import { z as
|
|
173939
|
+
import { z as z66 } from "zod";
|
|
173921
173940
|
init_types2();
|
|
173922
173941
|
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." }] } }).';
|
|
173923
173942
|
function omitEmptyStringArgs(rawArgs) {
|
|
@@ -173926,10 +173945,10 @@ function omitEmptyStringArgs(rawArgs) {
|
|
|
173926
173945
|
}
|
|
173927
173946
|
return Object.fromEntries(Object.entries(rawArgs).filter(([, value]) => value !== ""));
|
|
173928
173947
|
}
|
|
173929
|
-
var TeamCreateArgsSchema =
|
|
173930
|
-
teamName:
|
|
173931
|
-
inline_spec:
|
|
173932
|
-
leadSessionId:
|
|
173948
|
+
var TeamCreateArgsSchema = z66.preprocess(omitEmptyStringArgs, z66.object({
|
|
173949
|
+
teamName: z66.string().min(1).nullish(),
|
|
173950
|
+
inline_spec: z66.unknown().nullish(),
|
|
173951
|
+
leadSessionId: z66.string().nullish()
|
|
173933
173952
|
}).superRefine((value, ctx) => {
|
|
173934
173953
|
const optionCount = Number(value.teamName != null) + Number(value.inline_spec != null);
|
|
173935
173954
|
if (optionCount !== 1) {
|
|
@@ -174051,7 +174070,7 @@ function createTeamCreateTool(config, client, bgMgr, tmuxMgr, executorConfig, de
|
|
|
174051
174070
|
});
|
|
174052
174071
|
}
|
|
174053
174072
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
174054
|
-
import { z as
|
|
174073
|
+
import { z as z67 } from "zod";
|
|
174055
174074
|
// packages/omo-opencode/src/features/team-mode/team-runtime/shutdown.ts
|
|
174056
174075
|
init_store2();
|
|
174057
174076
|
init_shutdown_helpers();
|
|
@@ -174140,13 +174159,13 @@ async function rejectShutdown(teamRunId, memberName, rejectorName, reason, confi
|
|
|
174140
174159
|
|
|
174141
174160
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
174142
174161
|
init_store();
|
|
174143
|
-
var TeamDeleteArgsSchema =
|
|
174144
|
-
var TeamShutdownRequestArgsSchema =
|
|
174145
|
-
var TeamApproveShutdownArgsSchema =
|
|
174146
|
-
var TeamRejectShutdownArgsSchema =
|
|
174147
|
-
teamRunId:
|
|
174148
|
-
memberName:
|
|
174149
|
-
reason:
|
|
174162
|
+
var TeamDeleteArgsSchema = z67.object({ teamRunId: z67.string().min(1), force: z67.boolean().optional() });
|
|
174163
|
+
var TeamShutdownRequestArgsSchema = z67.object({ teamRunId: z67.string().min(1), targetMemberName: z67.string().min(1) });
|
|
174164
|
+
var TeamApproveShutdownArgsSchema = z67.object({ teamRunId: z67.string().min(1), memberName: z67.string().min(1) });
|
|
174165
|
+
var TeamRejectShutdownArgsSchema = z67.object({
|
|
174166
|
+
teamRunId: z67.string().min(1),
|
|
174167
|
+
memberName: z67.string().min(1),
|
|
174168
|
+
reason: z67.string().min(1)
|
|
174150
174169
|
});
|
|
174151
174170
|
var defaultTeamShutdownToolDeps = {
|
|
174152
174171
|
listActiveTeams,
|