oh-my-opencode 5.1.40 → 5.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.de.md +118 -0
- package/README.es.md +118 -0
- package/README.fr.md +118 -0
- package/README.it.md +118 -0
- package/README.ja.md +2 -1
- package/README.ko.md +2 -1
- package/README.md +3 -2
- package/README.pt-br.md +118 -0
- package/README.ru.md +2 -1
- package/README.zh-cn.md +2 -1
- package/dist/cli/index.js +115 -27
- package/dist/cli/service-auth/index.d.ts +3 -0
- package/dist/cli-node/index.js +115 -27
- package/dist/index.js +1467 -1389
- 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 +108 -26
- 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 +84 -9
- 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 +86 -11
- 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,179 @@ 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()
|
|
84987
84997
|
}).strict();
|
|
84988
|
-
|
|
84989
|
-
|
|
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)
|
|
85003
|
+
}).strict();
|
|
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
|
|
85135
|
-
|
|
85136
|
-
|
|
85151
|
+
var OmoMemoryAutoIdentitySchema = z9.enum(["path", "git"]);
|
|
85152
|
+
var OmoMemorySettingsSchema = z9.object({
|
|
85153
|
+
enabled: z9.boolean().default(true),
|
|
85154
|
+
agent: z9.string().min(1).default("auto"),
|
|
85155
|
+
auto_identity: OmoMemoryAutoIdentitySchema.default("path"),
|
|
85137
85156
|
reflection: OmoMemoryReflectionSchema.default({
|
|
85138
85157
|
enabled: true,
|
|
85139
85158
|
trigger: { step_count: 25, on_compaction: true },
|
|
@@ -85153,6 +85172,7 @@ var OmoMemorySettingsSchema = z8.object({
|
|
|
85153
85172
|
auto_select_max_chars: 150000
|
|
85154
85173
|
}),
|
|
85155
85174
|
people: OmoMemoryPeopleSchema.default({ enabled: true, max_entries: 40, max_entry_chars: 200 }),
|
|
85175
|
+
agreements: OmoMemoryAgreementsSchema.default(OMO_MEMORY_AGREEMENTS_DEFAULTS),
|
|
85156
85176
|
soul: OmoMemorySoulSchema.default({ edit_notice: true }),
|
|
85157
85177
|
write_notice: OmoMemoryWriteNoticeSchema.default({ enabled: true }),
|
|
85158
85178
|
sync: OmoMemorySyncSchema.default({ enabled: true }),
|
|
@@ -85168,100 +85188,103 @@ var OmoMemorySettingsSchema = z8.object({
|
|
|
85168
85188
|
query_expansion: false
|
|
85169
85189
|
}),
|
|
85170
85190
|
projection: OmoMemoryProjectionSchema.default({ max_entries_per_directory: 40, max_bytes: 24576 }),
|
|
85171
|
-
compile_warn_tokens:
|
|
85172
|
-
agents:
|
|
85191
|
+
compile_warn_tokens: z9.number().int().positive().default(30000),
|
|
85192
|
+
agents: z9.record(z9.string(), OmoMemoryAgentOverridesSchema).default({})
|
|
85173
85193
|
}).strict();
|
|
85174
|
-
var OmoMemorySettingsLayerSchema =
|
|
85175
|
-
enabled:
|
|
85176
|
-
agent:
|
|
85194
|
+
var OmoMemorySettingsLayerSchema = z9.object({
|
|
85195
|
+
enabled: z9.boolean().optional(),
|
|
85196
|
+
agent: z9.string().min(1).optional(),
|
|
85197
|
+
auto_identity: OmoMemoryAutoIdentitySchema.optional(),
|
|
85177
85198
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
85178
85199
|
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
85179
85200
|
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
85180
85201
|
dream: OmoMemoryDreamLayerSchema.optional(),
|
|
85181
85202
|
people: OmoMemoryPeopleLayerSchema.optional(),
|
|
85203
|
+
agreements: OmoMemoryAgreementsLayerSchema.optional(),
|
|
85182
85204
|
soul: OmoMemorySoulLayerSchema.optional(),
|
|
85183
85205
|
write_notice: OmoMemoryWriteNoticeLayerSchema.optional(),
|
|
85184
85206
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
85185
85207
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
85186
85208
|
recall: OmoMemoryRecallLayerSchema.optional(),
|
|
85187
85209
|
projection: OmoMemoryProjectionLayerSchema.optional(),
|
|
85188
|
-
compile_warn_tokens:
|
|
85189
|
-
agents:
|
|
85210
|
+
compile_warn_tokens: z9.number().int().positive().optional(),
|
|
85211
|
+
agents: z9.record(z9.string(), OmoMemoryAgentOverridesSchema).optional()
|
|
85190
85212
|
}).strict();
|
|
85191
85213
|
|
|
85192
85214
|
// packages/omo-config-core/src/schema/model-catalog.ts
|
|
85193
|
-
import * as
|
|
85215
|
+
import * as z10 from "zod";
|
|
85194
85216
|
function isRecord8(value) {
|
|
85195
85217
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
85196
85218
|
}
|
|
85197
|
-
var OmoModelCatalogEntryInputSchema =
|
|
85198
|
-
model:
|
|
85219
|
+
var OmoModelCatalogEntryInputSchema = z10.object({
|
|
85220
|
+
model: z10.string(),
|
|
85199
85221
|
reasoning: OmoReasoningSchema.optional(),
|
|
85200
|
-
variant:
|
|
85222
|
+
variant: z10.string().optional(),
|
|
85201
85223
|
reasoningEffort: OmoReasoningEffortSchema.optional()
|
|
85202
85224
|
}).strict();
|
|
85203
|
-
var OmoModelCatalogEntrySchema =
|
|
85204
|
-
var OmoModelCatalogSchema =
|
|
85225
|
+
var OmoModelCatalogEntrySchema = z10.preprocess((value) => isRecord8(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryInputSchema);
|
|
85226
|
+
var OmoModelCatalogSchema = z10.record(z10.string(), OmoModelCatalogEntrySchema);
|
|
85205
85227
|
var OmoModelCatalogEntryLayerInputSchema = OmoModelCatalogEntryInputSchema.partial();
|
|
85206
|
-
var OmoModelCatalogEntryLayerSchema =
|
|
85207
|
-
var OmoModelCatalogLayerSchema =
|
|
85228
|
+
var OmoModelCatalogEntryLayerSchema = z10.preprocess((value) => isRecord8(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryLayerInputSchema);
|
|
85229
|
+
var OmoModelCatalogLayerSchema = z10.record(z10.string(), OmoModelCatalogEntryLayerSchema);
|
|
85208
85230
|
|
|
85209
85231
|
// packages/omo-config-core/src/schema/model-profile.ts
|
|
85210
|
-
import * as
|
|
85232
|
+
import * as z11 from "zod";
|
|
85211
85233
|
function isRecord9(value) {
|
|
85212
85234
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
85213
85235
|
}
|
|
85214
|
-
var OmoModelProfileInputSchema =
|
|
85215
|
-
display_name:
|
|
85216
|
-
|
|
85217
|
-
|
|
85218
|
-
|
|
85236
|
+
var OmoModelProfileInputSchema = z11.object({
|
|
85237
|
+
display_name: z11.string().optional(),
|
|
85238
|
+
caution: z11.string().optional(),
|
|
85239
|
+
family: z11.enum(["daily", "geeky"]).optional(),
|
|
85240
|
+
tier: z11.enum(["normal", "heavy"]).optional(),
|
|
85241
|
+
models: z11.array(z11.union([z11.string(), OmoFallbackModelObjectSchema])).optional()
|
|
85219
85242
|
}).strict();
|
|
85220
|
-
var OmoModelProfileSchema =
|
|
85221
|
-
var OmoModelProfilesSchema =
|
|
85243
|
+
var OmoModelProfileSchema = z11.preprocess((value) => isRecord9(value) ? normalizeLegacyModelFields(value) : value, OmoModelProfileInputSchema);
|
|
85244
|
+
var OmoModelProfilesSchema = z11.record(z11.string(), OmoModelProfileSchema);
|
|
85222
85245
|
var OmoModelProfileLayerInputSchema = OmoModelProfileInputSchema.partial();
|
|
85223
|
-
var OmoModelProfileLayerSchema =
|
|
85224
|
-
var OmoModelProfilesLayerSchema =
|
|
85246
|
+
var OmoModelProfileLayerSchema = z11.preprocess((value) => isRecord9(value) ? normalizeLegacyModelFields(value) : value, OmoModelProfileLayerInputSchema);
|
|
85247
|
+
var OmoModelProfilesLayerSchema = z11.record(z11.string(), OmoModelProfileLayerSchema);
|
|
85225
85248
|
|
|
85226
85249
|
// packages/omo-config-core/src/schema/side-panel.ts
|
|
85227
|
-
import * as
|
|
85228
|
-
var OmoSidePanelWidthSchema =
|
|
85250
|
+
import * as z12 from "zod";
|
|
85251
|
+
var OmoSidePanelWidthSchema = z12.union([z12.number().int().min(24).max(160), z12.string().regex(/^(?:1\d|[2-4]\d|50)%$/)]);
|
|
85229
85252
|
var OmoSidePanelSectionsShape = {
|
|
85230
|
-
session:
|
|
85231
|
-
goal:
|
|
85232
|
-
context:
|
|
85233
|
-
usage:
|
|
85234
|
-
agents:
|
|
85235
|
-
tools:
|
|
85236
|
-
files:
|
|
85237
|
-
memory:
|
|
85253
|
+
session: z12.boolean(),
|
|
85254
|
+
goal: z12.boolean(),
|
|
85255
|
+
context: z12.boolean(),
|
|
85256
|
+
usage: z12.boolean(),
|
|
85257
|
+
agents: z12.boolean(),
|
|
85258
|
+
tools: z12.boolean(),
|
|
85259
|
+
files: z12.boolean(),
|
|
85260
|
+
memory: z12.boolean()
|
|
85238
85261
|
};
|
|
85239
|
-
var OmoSidePanelSectionsLayerSchema =
|
|
85262
|
+
var OmoSidePanelSectionsLayerSchema = z12.object(OmoSidePanelSectionsShape).partial().strict();
|
|
85240
85263
|
var OmoSidePanelSectionsSchema = OmoSidePanelSectionsLayerSchema.extend({
|
|
85241
|
-
session:
|
|
85242
|
-
goal:
|
|
85243
|
-
context:
|
|
85244
|
-
usage:
|
|
85245
|
-
agents:
|
|
85246
|
-
tools:
|
|
85247
|
-
files:
|
|
85248
|
-
memory:
|
|
85264
|
+
session: z12.boolean().default(true),
|
|
85265
|
+
goal: z12.boolean().default(true),
|
|
85266
|
+
context: z12.boolean().default(true),
|
|
85267
|
+
usage: z12.boolean().default(false),
|
|
85268
|
+
agents: z12.boolean().default(true),
|
|
85269
|
+
tools: z12.boolean().default(true),
|
|
85270
|
+
files: z12.boolean().default(true),
|
|
85271
|
+
memory: z12.boolean().default(true)
|
|
85249
85272
|
}).strict();
|
|
85250
85273
|
var OmoSidePanelSettingsShape = {
|
|
85251
|
-
enabled:
|
|
85274
|
+
enabled: z12.boolean(),
|
|
85252
85275
|
width: OmoSidePanelWidthSchema,
|
|
85253
|
-
min_columns:
|
|
85254
|
-
clickable:
|
|
85255
|
-
usage_poll_seconds:
|
|
85276
|
+
min_columns: z12.number().int().min(60).max(400),
|
|
85277
|
+
clickable: z12.boolean(),
|
|
85278
|
+
usage_poll_seconds: z12.number().int().min(60).max(3600),
|
|
85256
85279
|
sections: OmoSidePanelSectionsLayerSchema
|
|
85257
85280
|
};
|
|
85258
|
-
var OmoSidePanelSettingsLayerSchema =
|
|
85281
|
+
var OmoSidePanelSettingsLayerSchema = z12.object(OmoSidePanelSettingsShape).partial().strict();
|
|
85259
85282
|
var OmoSidePanelSettingsSchema = OmoSidePanelSettingsLayerSchema.extend({
|
|
85260
|
-
enabled:
|
|
85283
|
+
enabled: z12.boolean().default(false),
|
|
85261
85284
|
width: OmoSidePanelWidthSchema.default("26%"),
|
|
85262
|
-
min_columns:
|
|
85263
|
-
clickable:
|
|
85264
|
-
usage_poll_seconds:
|
|
85285
|
+
min_columns: z12.number().int().min(60).max(400).default(120),
|
|
85286
|
+
clickable: z12.boolean().default(true),
|
|
85287
|
+
usage_poll_seconds: z12.number().int().min(60).max(3600).default(150),
|
|
85265
85288
|
sections: OmoSidePanelSectionsSchema.default({
|
|
85266
85289
|
session: true,
|
|
85267
85290
|
goal: true,
|
|
@@ -85276,23 +85299,23 @@ var OmoSidePanelSettingsSchema = OmoSidePanelSettingsLayerSchema.extend({
|
|
|
85276
85299
|
|
|
85277
85300
|
// packages/omo-config-core/src/schema/task.ts
|
|
85278
85301
|
import { availableParallelism } from "os";
|
|
85279
|
-
import * as
|
|
85302
|
+
import * as z13 from "zod";
|
|
85280
85303
|
var DEFAULT_RESIDENCY_MAX_CHILDREN = "unlimited";
|
|
85281
|
-
var ResidencyMaxChildrenInputSchema =
|
|
85282
|
-
var OmoTaskWaitSchema =
|
|
85283
|
-
min_ms:
|
|
85284
|
-
default_ms:
|
|
85285
|
-
max_ms:
|
|
85304
|
+
var ResidencyMaxChildrenInputSchema = z13.union([z13.number().int().nonnegative(), z13.literal("unlimited")]);
|
|
85305
|
+
var OmoTaskWaitSchema = z13.object({
|
|
85306
|
+
min_ms: z13.number().int().positive().default(5000),
|
|
85307
|
+
default_ms: z13.number().int().positive().default(60000),
|
|
85308
|
+
max_ms: z13.number().int().positive().default(600000)
|
|
85286
85309
|
}).strict();
|
|
85287
|
-
var OmoTaskTeamSettingsSchema =
|
|
85288
|
-
max_members:
|
|
85289
|
-
max_parallel_members:
|
|
85290
|
-
max_wall_clock_minutes:
|
|
85310
|
+
var OmoTaskTeamSettingsSchema = z13.object({
|
|
85311
|
+
max_members: z13.number().int().min(1).max(8).default(8),
|
|
85312
|
+
max_parallel_members: z13.number().int().min(1).max(8).default(4),
|
|
85313
|
+
max_wall_clock_minutes: z13.number().int().positive().default(120)
|
|
85291
85314
|
}).strict();
|
|
85292
|
-
var OmoTaskWarningsSchema =
|
|
85293
|
-
unavailable_categories:
|
|
85315
|
+
var OmoTaskWarningsSchema = z13.object({
|
|
85316
|
+
unavailable_categories: z13.boolean().default(true)
|
|
85294
85317
|
}).strict();
|
|
85295
|
-
var IsolationBackendKindSchema =
|
|
85318
|
+
var IsolationBackendKindSchema = z13.enum([
|
|
85296
85319
|
"auto",
|
|
85297
85320
|
"apfs",
|
|
85298
85321
|
"btrfs",
|
|
@@ -85302,49 +85325,49 @@ var IsolationBackendKindSchema = z12.enum([
|
|
|
85302
85325
|
"block-clone",
|
|
85303
85326
|
"rcopy"
|
|
85304
85327
|
]);
|
|
85305
|
-
var OmoTaskIsolationSchema =
|
|
85306
|
-
enabled:
|
|
85328
|
+
var OmoTaskIsolationSchema = z13.object({
|
|
85329
|
+
enabled: z13.boolean().default(false),
|
|
85307
85330
|
backend: IsolationBackendKindSchema.default("auto"),
|
|
85308
|
-
apply:
|
|
85309
|
-
merge:
|
|
85310
|
-
commits:
|
|
85331
|
+
apply: z13.boolean().default(true),
|
|
85332
|
+
merge: z13.enum(["patch", "branch"]).default("patch"),
|
|
85333
|
+
commits: z13.enum(["generic", "ai"]).default("generic")
|
|
85311
85334
|
}).strict();
|
|
85312
85335
|
var isolationDefaults = OmoTaskIsolationSchema.parse({});
|
|
85313
|
-
var OmoTaskIsolationLayerSchema =
|
|
85314
|
-
enabled:
|
|
85336
|
+
var OmoTaskIsolationLayerSchema = z13.object({
|
|
85337
|
+
enabled: z13.boolean().optional(),
|
|
85315
85338
|
backend: IsolationBackendKindSchema.optional(),
|
|
85316
|
-
apply:
|
|
85317
|
-
merge:
|
|
85318
|
-
commits:
|
|
85339
|
+
apply: z13.boolean().optional(),
|
|
85340
|
+
merge: z13.enum(["patch", "branch"]).optional(),
|
|
85341
|
+
commits: z13.enum(["generic", "ai"]).optional()
|
|
85319
85342
|
}).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:
|
|
85343
|
+
var OmoTaskDagSettingsSchema = z13.object({
|
|
85344
|
+
max_nodes_per_run: z13.number().int().positive().default(64),
|
|
85345
|
+
max_runs_per_session: z13.number().int().positive().default(16),
|
|
85346
|
+
subscriber_ring: z13.number().int().positive().default(1000),
|
|
85347
|
+
heartbeat_ms: z13.number().int().positive().default(15000),
|
|
85348
|
+
history_default_limit: z13.number().int().positive().default(256),
|
|
85349
|
+
history_max_limit: z13.number().int().positive().default(1000),
|
|
85350
|
+
retention_days: z13.number().int().positive().default(7),
|
|
85351
|
+
max_prompt_bytes: z13.number().int().positive().default(262144)
|
|
85329
85352
|
}).strict();
|
|
85330
|
-
var OmoTaskSettingsSchema =
|
|
85353
|
+
var OmoTaskSettingsSchema = z13.object({
|
|
85331
85354
|
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:
|
|
85355
|
+
default_execution_mode: z13.enum(["auto", "in-process", "process"]).default("auto"),
|
|
85356
|
+
process_runner: z13.enum(["host", "child-process"]).default("host"),
|
|
85357
|
+
host_engine_policy: z13.enum(["upgrade", "fallback"]).default("upgrade"),
|
|
85358
|
+
host_idle_exit_ms: z13.number().int().positive().optional(),
|
|
85359
|
+
host_shard_prewarm: z13.enum(["off", "first-turn", "session-start"]).default("first-turn"),
|
|
85360
|
+
default_concurrency: z13.number().int().nonnegative().default(5),
|
|
85361
|
+
global_concurrency: z13.number().int().nonnegative().default(8),
|
|
85362
|
+
provider_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85363
|
+
model_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85364
|
+
max_depth: z13.number().int().nonnegative().default(1),
|
|
85342
85365
|
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:
|
|
85366
|
+
resident_idle_timeout_ms: z13.number().int().positive().max(Number.MAX_SAFE_INTEGER).default(900000),
|
|
85367
|
+
ttl_ms: z13.number().int().positive().default(86400000),
|
|
85368
|
+
state_dir: z13.string().optional(),
|
|
85369
|
+
reattach_on_reconcile: z13.boolean().optional(),
|
|
85370
|
+
resume_children: z13.boolean().default(true),
|
|
85348
85371
|
warnings: OmoTaskWarningsSchema.default({ unavailable_categories: true }),
|
|
85349
85372
|
wait: OmoTaskWaitSchema.default({ min_ms: 5000, default_ms: 60000, max_ms: 600000 }),
|
|
85350
85373
|
team: OmoTaskTeamSettingsSchema.default({
|
|
@@ -85354,54 +85377,54 @@ var OmoTaskSettingsSchema = z12.object({
|
|
|
85354
85377
|
}),
|
|
85355
85378
|
dag: OmoTaskDagSettingsSchema.optional()
|
|
85356
85379
|
}).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:
|
|
85380
|
+
var OmoTaskDagSettingsLayerSchema = z13.object({
|
|
85381
|
+
max_nodes_per_run: z13.number().int().positive().optional(),
|
|
85382
|
+
max_runs_per_session: z13.number().int().positive().optional(),
|
|
85383
|
+
subscriber_ring: z13.number().int().positive().optional(),
|
|
85384
|
+
heartbeat_ms: z13.number().int().positive().optional(),
|
|
85385
|
+
history_default_limit: z13.number().int().positive().optional(),
|
|
85386
|
+
history_max_limit: z13.number().int().positive().optional(),
|
|
85387
|
+
retention_days: z13.number().int().positive().optional(),
|
|
85388
|
+
max_prompt_bytes: z13.number().int().positive().optional()
|
|
85366
85389
|
}).strict();
|
|
85367
|
-
var OmoTaskWaitLayerSchema =
|
|
85368
|
-
min_ms:
|
|
85369
|
-
default_ms:
|
|
85370
|
-
max_ms:
|
|
85390
|
+
var OmoTaskWaitLayerSchema = z13.object({
|
|
85391
|
+
min_ms: z13.number().int().positive().optional(),
|
|
85392
|
+
default_ms: z13.number().int().positive().optional(),
|
|
85393
|
+
max_ms: z13.number().int().positive().optional()
|
|
85371
85394
|
}).strict();
|
|
85372
|
-
var OmoTaskTeamSettingsLayerSchema =
|
|
85373
|
-
max_members:
|
|
85374
|
-
max_parallel_members:
|
|
85375
|
-
max_wall_clock_minutes:
|
|
85395
|
+
var OmoTaskTeamSettingsLayerSchema = z13.object({
|
|
85396
|
+
max_members: z13.number().int().min(1).max(8).optional(),
|
|
85397
|
+
max_parallel_members: z13.number().int().min(1).max(8).optional(),
|
|
85398
|
+
max_wall_clock_minutes: z13.number().int().positive().optional()
|
|
85376
85399
|
}).strict();
|
|
85377
|
-
var OmoTaskWarningsLayerSchema =
|
|
85378
|
-
unavailable_categories:
|
|
85400
|
+
var OmoTaskWarningsLayerSchema = z13.object({
|
|
85401
|
+
unavailable_categories: z13.boolean().optional()
|
|
85379
85402
|
}).strict();
|
|
85380
|
-
var OmoTaskSettingsLayerSchema =
|
|
85403
|
+
var OmoTaskSettingsLayerSchema = z13.object({
|
|
85381
85404
|
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:
|
|
85405
|
+
default_execution_mode: z13.enum(["auto", "in-process", "process"]).optional(),
|
|
85406
|
+
process_runner: z13.enum(["host", "child-process"]).optional(),
|
|
85407
|
+
host_engine_policy: z13.enum(["upgrade", "fallback"]).optional(),
|
|
85408
|
+
host_idle_exit_ms: z13.number().int().positive().optional(),
|
|
85409
|
+
host_shard_prewarm: z13.enum(["off", "first-turn", "session-start"]).optional(),
|
|
85410
|
+
default_concurrency: z13.number().int().nonnegative().optional(),
|
|
85411
|
+
global_concurrency: z13.number().int().nonnegative().optional(),
|
|
85412
|
+
provider_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85413
|
+
model_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85414
|
+
max_depth: z13.number().int().nonnegative().optional(),
|
|
85392
85415
|
residency_max_children: ResidencyMaxChildrenInputSchema.optional(),
|
|
85393
|
-
resident_idle_timeout_ms:
|
|
85394
|
-
ttl_ms:
|
|
85395
|
-
state_dir:
|
|
85396
|
-
reattach_on_reconcile:
|
|
85397
|
-
resume_children:
|
|
85416
|
+
resident_idle_timeout_ms: z13.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),
|
|
85417
|
+
ttl_ms: z13.number().int().positive().optional(),
|
|
85418
|
+
state_dir: z13.string().optional(),
|
|
85419
|
+
reattach_on_reconcile: z13.boolean().optional(),
|
|
85420
|
+
resume_children: z13.boolean().optional(),
|
|
85398
85421
|
warnings: OmoTaskWarningsLayerSchema.optional(),
|
|
85399
85422
|
wait: OmoTaskWaitLayerSchema.optional(),
|
|
85400
85423
|
team: OmoTaskTeamSettingsLayerSchema.optional(),
|
|
85401
85424
|
dag: OmoTaskDagSettingsLayerSchema.optional()
|
|
85402
85425
|
}).strict();
|
|
85403
85426
|
function resolveOmoTaskSettings(input, resolveParallelism = availableParallelism) {
|
|
85404
|
-
const record =
|
|
85427
|
+
const record = z13.record(z13.string(), z13.unknown()).parse(input);
|
|
85405
85428
|
return OmoTaskSettingsSchema.parse({
|
|
85406
85429
|
...record,
|
|
85407
85430
|
residency_max_children: record["residency_max_children"] ?? DEFAULT_RESIDENCY_MAX_CHILDREN,
|
|
@@ -85410,39 +85433,39 @@ function resolveOmoTaskSettings(input, resolveParallelism = availableParallelism
|
|
|
85410
85433
|
}
|
|
85411
85434
|
|
|
85412
85435
|
// 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:
|
|
85436
|
+
import * as z14 from "zod";
|
|
85437
|
+
var OmoTeamMemberBaseSchema = z14.object({
|
|
85438
|
+
name: z14.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
85439
|
+
cwd: z14.string().optional(),
|
|
85440
|
+
worktreePath: z14.string().optional(),
|
|
85441
|
+
subscriptions: z14.array(z14.string()).optional(),
|
|
85442
|
+
backendType: z14.enum(["in-process", "tmux"]).default("in-process"),
|
|
85443
|
+
color: z14.string().optional(),
|
|
85444
|
+
isActive: z14.boolean().default(true)
|
|
85422
85445
|
}).strict();
|
|
85423
85446
|
var OmoTeamCategoryMemberSchema = OmoTeamMemberBaseSchema.extend({
|
|
85424
|
-
kind:
|
|
85425
|
-
category:
|
|
85426
|
-
prompt:
|
|
85447
|
+
kind: z14.literal("category"),
|
|
85448
|
+
category: z14.string().min(1),
|
|
85449
|
+
prompt: z14.string().min(1)
|
|
85427
85450
|
});
|
|
85428
85451
|
var OmoTeamSubagentMemberSchema = OmoTeamMemberBaseSchema.extend({
|
|
85429
|
-
kind:
|
|
85430
|
-
subagent_type:
|
|
85431
|
-
prompt:
|
|
85452
|
+
kind: z14.literal("subagent_type"),
|
|
85453
|
+
subagent_type: z14.string().min(1),
|
|
85454
|
+
prompt: z14.string().optional()
|
|
85432
85455
|
});
|
|
85433
|
-
var OmoTeamMemberSchema =
|
|
85456
|
+
var OmoTeamMemberSchema = z14.discriminatedUnion("kind", [
|
|
85434
85457
|
OmoTeamCategoryMemberSchema,
|
|
85435
85458
|
OmoTeamSubagentMemberSchema
|
|
85436
85459
|
]);
|
|
85437
|
-
var OmoTeamSpecBaseSchema =
|
|
85438
|
-
version:
|
|
85439
|
-
name:
|
|
85440
|
-
description:
|
|
85441
|
-
createdAt:
|
|
85442
|
-
leadAgentId:
|
|
85443
|
-
teamAllowedPaths:
|
|
85444
|
-
sessionPermission:
|
|
85445
|
-
members:
|
|
85460
|
+
var OmoTeamSpecBaseSchema = z14.object({
|
|
85461
|
+
version: z14.literal(1).default(1),
|
|
85462
|
+
name: z14.string().min(1).regex(/^[a-z0-9-]+$/).optional(),
|
|
85463
|
+
description: z14.string().optional(),
|
|
85464
|
+
createdAt: z14.number().int().positive().optional(),
|
|
85465
|
+
leadAgentId: z14.string().optional(),
|
|
85466
|
+
teamAllowedPaths: z14.array(z14.string()).optional(),
|
|
85467
|
+
sessionPermission: z14.string().optional(),
|
|
85468
|
+
members: z14.array(OmoTeamMemberSchema).min(1).max(8)
|
|
85446
85469
|
}).strict();
|
|
85447
85470
|
var OmoTeamSpecSchema = OmoTeamSpecBaseSchema.superRefine((teamSpec, ctx) => {
|
|
85448
85471
|
if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
|
|
@@ -85454,43 +85477,44 @@ var OmoTeamSpecSchema = OmoTeamSpecBaseSchema.superRefine((teamSpec, ctx) => {
|
|
|
85454
85477
|
}
|
|
85455
85478
|
});
|
|
85456
85479
|
var OmoTeamSpecLayerSchema = OmoTeamSpecBaseSchema.partial();
|
|
85457
|
-
var OmoTeamsConfigSchema =
|
|
85458
|
-
var OmoTeamsConfigLayerSchema =
|
|
85480
|
+
var OmoTeamsConfigSchema = z14.record(z14.string(), OmoTeamSpecSchema);
|
|
85481
|
+
var OmoTeamsConfigLayerSchema = z14.record(z14.string(), OmoTeamSpecLayerSchema);
|
|
85459
85482
|
|
|
85460
85483
|
// packages/omo-config-core/src/schema/telemetry.ts
|
|
85461
|
-
import * as
|
|
85484
|
+
import * as z15 from "zod";
|
|
85462
85485
|
var OmoTelemetrySettingsShape = {
|
|
85463
|
-
enabled:
|
|
85486
|
+
enabled: z15.boolean()
|
|
85464
85487
|
};
|
|
85465
|
-
var OmoTelemetrySettingsLayerSchema =
|
|
85488
|
+
var OmoTelemetrySettingsLayerSchema = z15.object(OmoTelemetrySettingsShape).partial().strict();
|
|
85466
85489
|
var OmoTelemetrySettingsSchema = OmoTelemetrySettingsLayerSchema.extend({
|
|
85467
|
-
enabled:
|
|
85490
|
+
enabled: z15.boolean().default(true)
|
|
85468
85491
|
}).strict();
|
|
85469
85492
|
|
|
85470
85493
|
// packages/omo-config-core/src/schema/format-on-mutation.ts
|
|
85471
|
-
import * as
|
|
85472
|
-
var mode =
|
|
85473
|
-
var languages =
|
|
85474
|
-
var OmoFormatOnMutationLayerSchema =
|
|
85494
|
+
import * as z16 from "zod";
|
|
85495
|
+
var mode = z16.enum(["off", "best-effort", "required"]);
|
|
85496
|
+
var languages = z16.record(z16.string(), z16.boolean()).optional();
|
|
85497
|
+
var OmoFormatOnMutationLayerSchema = z16.object({
|
|
85475
85498
|
mode: mode.optional(),
|
|
85476
85499
|
languages,
|
|
85477
|
-
maxFileBytes:
|
|
85478
|
-
timeoutMs:
|
|
85500
|
+
maxFileBytes: z16.number().int().positive().optional(),
|
|
85501
|
+
timeoutMs: z16.number().int().positive().optional()
|
|
85479
85502
|
}).strict();
|
|
85480
85503
|
var OmoFormatOnMutationSchema = OmoFormatOnMutationLayerSchema.extend({
|
|
85481
85504
|
mode: mode.default("best-effort"),
|
|
85482
|
-
maxFileBytes:
|
|
85483
|
-
timeoutMs:
|
|
85505
|
+
maxFileBytes: z16.number().int().positive().default(1048576),
|
|
85506
|
+
timeoutMs: z16.number().int().positive().default(3000)
|
|
85484
85507
|
}).strict();
|
|
85485
85508
|
|
|
85486
85509
|
// packages/omo-config-core/src/schema/gateway.ts
|
|
85487
|
-
import * as
|
|
85488
|
-
var OmoGatewaySectionSchema =
|
|
85510
|
+
import * as z17 from "zod";
|
|
85511
|
+
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
85512
|
|
|
85490
85513
|
// packages/omo-config-core/src/schema/config.ts
|
|
85491
|
-
var OmoOpenCodeHarnessConfigSchema =
|
|
85492
|
-
var OmoDisabledSkillsSchema =
|
|
85493
|
-
var
|
|
85514
|
+
var OmoOpenCodeHarnessConfigSchema = z18.record(z18.string(), z18.unknown());
|
|
85515
|
+
var OmoDisabledSkillsSchema = z18.array(z18.string());
|
|
85516
|
+
var OmoExcludedModelsSchema = z18.array(z18.string());
|
|
85517
|
+
var OmoTypedHarnessConfigSchema = z18.object({
|
|
85494
85518
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
85495
85519
|
gateway: OmoGatewaySectionSchema.optional(),
|
|
85496
85520
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
@@ -85500,14 +85524,15 @@ var OmoTypedHarnessConfigSchema = z17.object({
|
|
|
85500
85524
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
85501
85525
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
85502
85526
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
85503
|
-
model_profile:
|
|
85527
|
+
model_profile: z18.string().optional(),
|
|
85504
85528
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
85505
85529
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
85506
85530
|
side_panel: OmoSidePanelSettingsLayerSchema.optional(),
|
|
85507
85531
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
85508
|
-
disabled_skills: OmoDisabledSkillsSchema.optional()
|
|
85532
|
+
disabled_skills: OmoDisabledSkillsSchema.optional(),
|
|
85533
|
+
exclude_models: OmoExcludedModelsSchema.optional()
|
|
85509
85534
|
}).strict();
|
|
85510
|
-
var OmoConfigProfileSchema =
|
|
85535
|
+
var OmoConfigProfileSchema = z18.object({
|
|
85511
85536
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
85512
85537
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
85513
85538
|
agents: OmoAgentsConfigSchema.optional(),
|
|
@@ -85516,21 +85541,22 @@ var OmoConfigProfileSchema = z17.object({
|
|
|
85516
85541
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
85517
85542
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
85518
85543
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
85519
|
-
model_profile:
|
|
85544
|
+
model_profile: z18.string().optional(),
|
|
85520
85545
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
85521
85546
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
85522
85547
|
side_panel: OmoSidePanelSettingsLayerSchema.optional(),
|
|
85523
85548
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
85524
85549
|
disabled_skills: OmoDisabledSkillsSchema.optional(),
|
|
85550
|
+
exclude_models: OmoExcludedModelsSchema.optional(),
|
|
85525
85551
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
85526
85552
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
85527
85553
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
85528
85554
|
"[codex]": OmoTypedHarnessConfigSchema.optional()
|
|
85529
85555
|
}).strict();
|
|
85530
|
-
var OmoConfigSchema =
|
|
85556
|
+
var OmoConfigSchema = z18.object({
|
|
85531
85557
|
formatOnMutation: OmoFormatOnMutationSchema.optional(),
|
|
85532
85558
|
gateway: OmoGatewaySectionSchema.optional(),
|
|
85533
|
-
$schema:
|
|
85559
|
+
$schema: z18.string().optional(),
|
|
85534
85560
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
85535
85561
|
agents: OmoAgentsConfigSchema.optional(),
|
|
85536
85562
|
git_master: OmoGitMasterSettingsSchema.optional(),
|
|
@@ -85538,24 +85564,25 @@ var OmoConfigSchema = z17.object({
|
|
|
85538
85564
|
teams: OmoTeamsConfigSchema.optional(),
|
|
85539
85565
|
models: OmoModelCatalogSchema.optional(),
|
|
85540
85566
|
model_profiles: OmoModelProfilesSchema.optional(),
|
|
85541
|
-
model_profile:
|
|
85567
|
+
model_profile: z18.string().optional(),
|
|
85542
85568
|
memory: OmoMemorySettingsSchema.optional(),
|
|
85543
85569
|
telemetry: OmoTelemetrySettingsSchema.optional(),
|
|
85544
85570
|
side_panel: OmoSidePanelSettingsSchema.optional(),
|
|
85545
85571
|
computer: OmoComputerSettingsSchema.optional(),
|
|
85546
85572
|
disabled_skills: OmoDisabledSkillsSchema.optional(),
|
|
85573
|
+
exclude_models: OmoExcludedModelsSchema.optional(),
|
|
85547
85574
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
85548
85575
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
85549
85576
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
85550
85577
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
85551
|
-
profiles:
|
|
85552
|
-
_migrations:
|
|
85553
|
-
legacy_migrations:
|
|
85578
|
+
profiles: z18.record(z18.string(), OmoConfigProfileSchema).default({}),
|
|
85579
|
+
_migrations: z18.array(z18.string()).optional(),
|
|
85580
|
+
legacy_migrations: z18.record(z18.string(), z18.unknown()).optional()
|
|
85554
85581
|
}).strict();
|
|
85555
|
-
var OmoConfigLayerSchema =
|
|
85582
|
+
var OmoConfigLayerSchema = z18.object({
|
|
85556
85583
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
85557
85584
|
gateway: OmoGatewaySectionSchema.optional(),
|
|
85558
|
-
$schema:
|
|
85585
|
+
$schema: z18.string().optional(),
|
|
85559
85586
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
85560
85587
|
agents: OmoAgentsConfigSchema.optional(),
|
|
85561
85588
|
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
@@ -85563,19 +85590,20 @@ var OmoConfigLayerSchema = z17.object({
|
|
|
85563
85590
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
85564
85591
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
85565
85592
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
85566
|
-
model_profile:
|
|
85593
|
+
model_profile: z18.string().optional(),
|
|
85567
85594
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
85568
85595
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
85569
85596
|
side_panel: OmoSidePanelSettingsLayerSchema.optional(),
|
|
85570
85597
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
85571
85598
|
disabled_skills: OmoDisabledSkillsSchema.optional(),
|
|
85599
|
+
exclude_models: OmoExcludedModelsSchema.optional(),
|
|
85572
85600
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
85573
85601
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
85574
85602
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
85575
85603
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
85576
|
-
profiles:
|
|
85577
|
-
_migrations:
|
|
85578
|
-
legacy_migrations:
|
|
85604
|
+
profiles: z18.record(z18.string(), OmoConfigProfileSchema).optional(),
|
|
85605
|
+
_migrations: z18.array(z18.string()).optional(),
|
|
85606
|
+
legacy_migrations: z18.record(z18.string(), z18.unknown()).optional()
|
|
85579
85607
|
}).strict();
|
|
85580
85608
|
|
|
85581
85609
|
// packages/omo-config-core/src/schema/legacy-category-names.ts
|
|
@@ -85741,6 +85769,50 @@ function omoConfigDiagnosticLines(diagnostics, options = {}) {
|
|
|
85741
85769
|
});
|
|
85742
85770
|
}
|
|
85743
85771
|
|
|
85772
|
+
// packages/omo-config-core/src/loader/disabled-skills.ts
|
|
85773
|
+
function toRecord(value) {
|
|
85774
|
+
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
85775
|
+
return;
|
|
85776
|
+
return value;
|
|
85777
|
+
}
|
|
85778
|
+
function namesAt(record, key) {
|
|
85779
|
+
const value = record?.[key];
|
|
85780
|
+
if (!Array.isArray(value))
|
|
85781
|
+
return [];
|
|
85782
|
+
return value.filter((entry) => typeof entry === "string" && entry.trim() !== "");
|
|
85783
|
+
}
|
|
85784
|
+
function harnessBlockKeys(harness) {
|
|
85785
|
+
const canonical = canonicalHarnessName(harness);
|
|
85786
|
+
const legacy = Object.entries(OMO_CONFIG_LEGACY_HARNESS_ALIASES).filter(([, target]) => target === canonical).map(([name]) => harnessBlockKey(name));
|
|
85787
|
+
return [harnessBlockKey(canonical), ...legacy];
|
|
85788
|
+
}
|
|
85789
|
+
function scopesOf(config, harness) {
|
|
85790
|
+
if (harness === undefined)
|
|
85791
|
+
return [config];
|
|
85792
|
+
return [config, ...harnessBlockKeys(harness).map((key) => toRecord(config[key]))];
|
|
85793
|
+
}
|
|
85794
|
+
function collectExcludedModels(options) {
|
|
85795
|
+
return collectUnionedList("exclude_models", options);
|
|
85796
|
+
}
|
|
85797
|
+
function collectUnionedList(key, options) {
|
|
85798
|
+
const names = new Set;
|
|
85799
|
+
for (const layer of options.layers) {
|
|
85800
|
+
const config = toRecord(layer.config);
|
|
85801
|
+
if (config === undefined)
|
|
85802
|
+
continue;
|
|
85803
|
+
const profile = options.profile === undefined ? undefined : toRecord(toRecord(config["profiles"])?.[options.profile]);
|
|
85804
|
+
const scopes = [
|
|
85805
|
+
...scopesOf(config, options.harness),
|
|
85806
|
+
...profile === undefined ? [] : scopesOf(profile, options.harness)
|
|
85807
|
+
];
|
|
85808
|
+
for (const scope of scopes) {
|
|
85809
|
+
for (const name of namesAt(scope, key))
|
|
85810
|
+
names.add(name.trim());
|
|
85811
|
+
}
|
|
85812
|
+
}
|
|
85813
|
+
return [...names];
|
|
85814
|
+
}
|
|
85815
|
+
|
|
85744
85816
|
// packages/omo-config-core/src/loader/loader.ts
|
|
85745
85817
|
init_main();
|
|
85746
85818
|
|
|
@@ -85975,7 +86047,7 @@ function stripUnrecognizedKeys(record, issues) {
|
|
|
85975
86047
|
}
|
|
85976
86048
|
return { issuePaths, stripped };
|
|
85977
86049
|
}
|
|
85978
|
-
function
|
|
86050
|
+
function toRecord2(value) {
|
|
85979
86051
|
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
85980
86052
|
return null;
|
|
85981
86053
|
const record = {};
|
|
@@ -85990,7 +86062,7 @@ var validateLayerRecord = (record) => {
|
|
|
85990
86062
|
};
|
|
85991
86063
|
function validateConfigLayer(path, data) {
|
|
85992
86064
|
const sanitized = sanitizeUnsafeKeys(data);
|
|
85993
|
-
const record =
|
|
86065
|
+
const record = toRecord2(sanitized.value);
|
|
85994
86066
|
const unsafeIssuePaths = sanitized.issues.flatMap((issue) => issue.keys.map((key) => [...issue.path, key].join(".")));
|
|
85995
86067
|
const unsafeDiagnostics = unsafeIssuePaths.length === 0 ? [] : [{ kind: "unknown-keys", message: `Ignored unknown keys in ${path}: ${unsafeIssuePaths.join(", ")}`, path, issuePaths: unsafeIssuePaths }];
|
|
85996
86068
|
const validation = OmoConfigLayerSchema.safeParse(sanitized.value);
|
|
@@ -86133,7 +86205,7 @@ function resolveOmoProfileName(options = {}) {
|
|
|
86133
86205
|
const env = options.env ?? process.env;
|
|
86134
86206
|
return profileName(options.profile) ?? profileName(env["OMO_PROFILE"]) ?? profileName(env["OCX_PROFILE"]) ?? profileNameFromOpenCodeConfigDir(env["OPENCODE_CONFIG_DIR"]);
|
|
86135
86207
|
}
|
|
86136
|
-
function
|
|
86208
|
+
function toRecord3(value) {
|
|
86137
86209
|
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
86138
86210
|
return;
|
|
86139
86211
|
return Object.fromEntries(Object.entries(value));
|
|
@@ -86154,13 +86226,13 @@ function harnessLayer(config, harness) {
|
|
|
86154
86226
|
const legacyKeys = Object.entries(OMO_CONFIG_LEGACY_HARNESS_ALIASES).filter(([, target]) => target === canonical).map(([legacy]) => harnessBlockKey(legacy));
|
|
86155
86227
|
let layer = {};
|
|
86156
86228
|
for (const key of [...legacyKeys, harnessBlockKey(canonical)]) {
|
|
86157
|
-
layer = mergeOmoConfigRecords(layer,
|
|
86229
|
+
layer = mergeOmoConfigRecords(layer, toRecord3(config[key]) ?? {});
|
|
86158
86230
|
}
|
|
86159
86231
|
return layer;
|
|
86160
86232
|
}
|
|
86161
86233
|
function resolveOmoConfigView(options) {
|
|
86162
|
-
const profiles =
|
|
86163
|
-
const profile = options.profile === undefined ? undefined :
|
|
86234
|
+
const profiles = toRecord3(options.config["profiles"]);
|
|
86235
|
+
const profile = options.profile === undefined ? undefined : toRecord3(profiles?.[options.profile]);
|
|
86164
86236
|
const diagnostics = profile === undefined && options.profile !== undefined ? [{
|
|
86165
86237
|
kind: "profile",
|
|
86166
86238
|
message: `Activated omo profile "${options.profile}" does not exist; using the base configuration`,
|
|
@@ -86301,9 +86373,15 @@ function loadOmoConfig(options = {}) {
|
|
|
86301
86373
|
});
|
|
86302
86374
|
const finalInput = mergeOmoConfigRecords(DEFAULT_RAW_CONFIG, resolved.config);
|
|
86303
86375
|
const finalConfig = OmoConfigSchema.safeParse(finalInput);
|
|
86376
|
+
const excludeModels = collectExcludedModels({
|
|
86377
|
+
layers,
|
|
86378
|
+
...options.harness === undefined ? {} : { harness: options.harness },
|
|
86379
|
+
...resolved.profile === undefined ? {} : { profile: resolved.profile }
|
|
86380
|
+
});
|
|
86381
|
+
const withExcludedModels = (config) => excludeModels.length === 0 ? config : { ...config, exclude_models: [...excludeModels] };
|
|
86304
86382
|
if (finalConfig.success) {
|
|
86305
86383
|
return {
|
|
86306
|
-
config: stripResolutionControlKeys(finalConfig.data),
|
|
86384
|
+
config: withExcludedModels(stripResolutionControlKeys(finalConfig.data)),
|
|
86307
86385
|
diagnostics: [...diagnostics, ...resolved.diagnostics],
|
|
86308
86386
|
layers,
|
|
86309
86387
|
...resolved.profile === undefined ? {} : { profile: resolved.profile },
|
|
@@ -86316,7 +86394,7 @@ function loadOmoConfig(options = {}) {
|
|
|
86316
86394
|
});
|
|
86317
86395
|
if (pruned.ok) {
|
|
86318
86396
|
return {
|
|
86319
|
-
config: stripResolutionControlKeys(OmoConfigSchema.parse(pruned.config)),
|
|
86397
|
+
config: withExcludedModels(stripResolutionControlKeys(OmoConfigSchema.parse(pruned.config))),
|
|
86320
86398
|
diagnostics: [...diagnostics, ...resolved.diagnostics, ...invalidValueDiagnostics(MERGED_OMO_CONFIG_PATH, pruned.dropped)],
|
|
86321
86399
|
layers,
|
|
86322
86400
|
...resolved.profile === undefined ? {} : { profile: resolved.profile },
|
|
@@ -87803,7 +87881,7 @@ init_src();
|
|
|
87803
87881
|
// package.json
|
|
87804
87882
|
var package_default = {
|
|
87805
87883
|
name: "oh-my-opencode",
|
|
87806
|
-
version: "5.1.
|
|
87884
|
+
version: "5.1.42",
|
|
87807
87885
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
87808
87886
|
main: "./dist/index.js",
|
|
87809
87887
|
types: "dist/index.d.ts",
|
|
@@ -87980,7 +88058,7 @@ var package_default = {
|
|
|
87980
88058
|
},
|
|
87981
88059
|
devDependencies: {
|
|
87982
88060
|
"@clack/prompts": "^1.8.1",
|
|
87983
|
-
"@code-yeongyu/senpi": "2026.10.
|
|
88061
|
+
"@code-yeongyu/senpi": "2026.10.21-2",
|
|
87984
88062
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
87985
88063
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
87986
88064
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -88041,18 +88119,18 @@ var package_default = {
|
|
|
88041
88119
|
typescript: "^7.0.2"
|
|
88042
88120
|
},
|
|
88043
88121
|
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.
|
|
88122
|
+
"oh-my-opencode-darwin-arm64": "5.1.42",
|
|
88123
|
+
"oh-my-opencode-darwin-x64": "5.1.42",
|
|
88124
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.42",
|
|
88125
|
+
"oh-my-opencode-linux-arm64": "5.1.42",
|
|
88126
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.42",
|
|
88127
|
+
"oh-my-opencode-linux-x64": "5.1.42",
|
|
88128
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.42",
|
|
88129
|
+
"oh-my-opencode-linux-x64-musl": "5.1.42",
|
|
88130
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.42",
|
|
88131
|
+
"oh-my-opencode-windows-arm64": "5.1.42",
|
|
88132
|
+
"oh-my-opencode-windows-x64": "5.1.42",
|
|
88133
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.42"
|
|
88056
88134
|
},
|
|
88057
88135
|
overrides: {
|
|
88058
88136
|
hono: "^4.13.8",
|
|
@@ -88454,8 +88532,8 @@ function findUnknownKeyPaths(schema, value) {
|
|
|
88454
88532
|
}
|
|
88455
88533
|
|
|
88456
88534
|
// packages/omo-opencode/src/config/schema/agent-names.ts
|
|
88457
|
-
import { z as
|
|
88458
|
-
var BuiltinAgentNameSchema =
|
|
88535
|
+
import { z as z19 } from "zod";
|
|
88536
|
+
var BuiltinAgentNameSchema = z19.enum([
|
|
88459
88537
|
"sisyphus",
|
|
88460
88538
|
"hephaestus",
|
|
88461
88539
|
"prometheus",
|
|
@@ -88468,7 +88546,7 @@ var BuiltinAgentNameSchema = z18.enum([
|
|
|
88468
88546
|
"atlas",
|
|
88469
88547
|
"sisyphus-junior"
|
|
88470
88548
|
]);
|
|
88471
|
-
var BuiltinSkillNameSchema =
|
|
88549
|
+
var BuiltinSkillNameSchema = z19.enum([
|
|
88472
88550
|
"playwright",
|
|
88473
88551
|
"dev-browser",
|
|
88474
88552
|
"frontend",
|
|
@@ -88482,7 +88560,7 @@ var BuiltinSkillNameSchema = z18.enum([
|
|
|
88482
88560
|
"visual-qa",
|
|
88483
88561
|
"team-mode"
|
|
88484
88562
|
]);
|
|
88485
|
-
var OverridableAgentNameSchema =
|
|
88563
|
+
var OverridableAgentNameSchema = z19.enum([
|
|
88486
88564
|
"build",
|
|
88487
88565
|
"plan",
|
|
88488
88566
|
"sisyphus",
|
|
@@ -88499,41 +88577,41 @@ var OverridableAgentNameSchema = z18.enum([
|
|
|
88499
88577
|
"atlas"
|
|
88500
88578
|
]);
|
|
88501
88579
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
88502
|
-
import { z as
|
|
88580
|
+
import { z as z22 } from "zod";
|
|
88503
88581
|
|
|
88504
88582
|
// packages/omo-opencode/src/config/schema/fallback-models.ts
|
|
88505
|
-
import { z as
|
|
88506
|
-
var FallbackModelObjectSchema =
|
|
88507
|
-
model:
|
|
88583
|
+
import { z as z20 } from "zod";
|
|
88584
|
+
var FallbackModelObjectSchema = z20.object({
|
|
88585
|
+
model: z20.string(),
|
|
88508
88586
|
reasoning: OmoReasoningSchema.optional(),
|
|
88509
|
-
variant:
|
|
88510
|
-
reasoningEffort:
|
|
88511
|
-
temperature:
|
|
88512
|
-
top_p:
|
|
88513
|
-
maxTokens:
|
|
88514
|
-
thinking:
|
|
88515
|
-
type:
|
|
88516
|
-
budgetTokens:
|
|
88587
|
+
variant: z20.string().optional(),
|
|
88588
|
+
reasoningEffort: z20.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
88589
|
+
temperature: z20.number().min(0).max(2).optional(),
|
|
88590
|
+
top_p: z20.number().min(0).max(1).optional(),
|
|
88591
|
+
maxTokens: z20.number().optional(),
|
|
88592
|
+
thinking: z20.object({
|
|
88593
|
+
type: z20.enum(["enabled", "disabled"]),
|
|
88594
|
+
budgetTokens: z20.number().optional()
|
|
88517
88595
|
}).optional()
|
|
88518
88596
|
});
|
|
88519
|
-
var FallbackModelStringArraySchema =
|
|
88520
|
-
var FallbackModelObjectArraySchema =
|
|
88521
|
-
var FallbackModelMixedArraySchema =
|
|
88522
|
-
var FallbackModelsSchema =
|
|
88523
|
-
|
|
88597
|
+
var FallbackModelStringArraySchema = z20.array(z20.string());
|
|
88598
|
+
var FallbackModelObjectArraySchema = z20.array(FallbackModelObjectSchema);
|
|
88599
|
+
var FallbackModelMixedArraySchema = z20.array(z20.union([z20.string(), FallbackModelObjectSchema]));
|
|
88600
|
+
var FallbackModelsSchema = z20.union([
|
|
88601
|
+
z20.string(),
|
|
88524
88602
|
FallbackModelStringArraySchema,
|
|
88525
88603
|
FallbackModelObjectArraySchema,
|
|
88526
88604
|
FallbackModelMixedArraySchema
|
|
88527
88605
|
]);
|
|
88528
88606
|
|
|
88529
88607
|
// packages/omo-opencode/src/config/schema/internal/permission.ts
|
|
88530
|
-
import { z as
|
|
88531
|
-
var PermissionValueSchema2 =
|
|
88532
|
-
var BashPermissionSchema2 =
|
|
88608
|
+
import { z as z21 } from "zod";
|
|
88609
|
+
var PermissionValueSchema2 = z21.enum(["ask", "allow", "deny"]);
|
|
88610
|
+
var BashPermissionSchema2 = z21.union([
|
|
88533
88611
|
PermissionValueSchema2,
|
|
88534
|
-
|
|
88612
|
+
z21.record(z21.string(), PermissionValueSchema2)
|
|
88535
88613
|
]);
|
|
88536
|
-
var AgentPermissionSchema =
|
|
88614
|
+
var AgentPermissionSchema = z21.object({
|
|
88537
88615
|
edit: PermissionValueSchema2.optional(),
|
|
88538
88616
|
bash: BashPermissionSchema2.optional(),
|
|
88539
88617
|
webfetch: PermissionValueSchema2.optional(),
|
|
@@ -88543,50 +88621,50 @@ var AgentPermissionSchema = z20.object({
|
|
|
88543
88621
|
}).catchall(PermissionValueSchema2.optional());
|
|
88544
88622
|
|
|
88545
88623
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
88546
|
-
var AgentOverrideConfigSchema =
|
|
88547
|
-
model:
|
|
88548
|
-
models:
|
|
88624
|
+
var AgentOverrideConfigSchema = z22.object({
|
|
88625
|
+
model: z22.string().optional(),
|
|
88626
|
+
models: z22.array(z22.union([z22.string(), FallbackModelObjectSchema])).optional(),
|
|
88549
88627
|
fallback_models: FallbackModelsSchema.optional(),
|
|
88550
88628
|
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:
|
|
88629
|
+
variant: z22.string().optional(),
|
|
88630
|
+
category: z22.string().optional(),
|
|
88631
|
+
skills: z22.array(z22.string()).optional(),
|
|
88632
|
+
temperature: z22.number().min(0).max(2).optional(),
|
|
88633
|
+
top_p: z22.number().min(0).max(1).optional(),
|
|
88634
|
+
prompt: z22.string().optional(),
|
|
88635
|
+
prompt_append: z22.string().optional(),
|
|
88636
|
+
tools: z22.record(z22.string(), z22.boolean()).optional(),
|
|
88637
|
+
disable: z22.boolean().optional(),
|
|
88638
|
+
description: z22.string().optional(),
|
|
88639
|
+
mode: z22.enum(["subagent", "primary", "all"]).optional(),
|
|
88640
|
+
color: z22.string().regex(/^#[0-9A-Fa-f]{6}$/).optional(),
|
|
88641
|
+
displayName: z22.string().optional(),
|
|
88564
88642
|
permission: AgentPermissionSchema.optional(),
|
|
88565
|
-
maxTokens:
|
|
88566
|
-
thinking:
|
|
88567
|
-
type:
|
|
88568
|
-
budgetTokens:
|
|
88643
|
+
maxTokens: z22.number().optional(),
|
|
88644
|
+
thinking: z22.object({
|
|
88645
|
+
type: z22.enum(["enabled", "disabled"]),
|
|
88646
|
+
budgetTokens: z22.number().optional()
|
|
88569
88647
|
}).optional(),
|
|
88570
|
-
reasoningEffort:
|
|
88571
|
-
textVerbosity:
|
|
88572
|
-
providerOptions:
|
|
88573
|
-
ultrawork:
|
|
88574
|
-
model:
|
|
88648
|
+
reasoningEffort: z22.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
88649
|
+
textVerbosity: z22.enum(["low", "medium", "high"]).optional(),
|
|
88650
|
+
providerOptions: z22.record(z22.string(), z22.unknown()).optional(),
|
|
88651
|
+
ultrawork: z22.object({
|
|
88652
|
+
model: z22.string().optional(),
|
|
88575
88653
|
reasoning: OmoReasoningSchema.optional(),
|
|
88576
|
-
variant:
|
|
88654
|
+
variant: z22.string().optional()
|
|
88577
88655
|
}).optional(),
|
|
88578
|
-
compaction:
|
|
88579
|
-
model:
|
|
88656
|
+
compaction: z22.object({
|
|
88657
|
+
model: z22.string().optional(),
|
|
88580
88658
|
reasoning: OmoReasoningSchema.optional(),
|
|
88581
|
-
variant:
|
|
88659
|
+
variant: z22.string().optional()
|
|
88582
88660
|
}).optional()
|
|
88583
88661
|
});
|
|
88584
|
-
var AgentOverridesSchema =
|
|
88662
|
+
var AgentOverridesSchema = z22.object({
|
|
88585
88663
|
build: AgentOverrideConfigSchema.optional(),
|
|
88586
88664
|
plan: AgentOverrideConfigSchema.optional(),
|
|
88587
88665
|
sisyphus: AgentOverrideConfigSchema.optional(),
|
|
88588
88666
|
hephaestus: AgentOverrideConfigSchema.extend({
|
|
88589
|
-
allow_non_gpt_model:
|
|
88667
|
+
allow_non_gpt_model: z22.boolean().optional()
|
|
88590
88668
|
}).optional(),
|
|
88591
88669
|
"sisyphus-junior": AgentOverrideConfigSchema.optional(),
|
|
88592
88670
|
"OpenCode-Builder": AgentOverrideConfigSchema.optional(),
|
|
@@ -88600,73 +88678,73 @@ var AgentOverridesSchema = z21.object({
|
|
|
88600
88678
|
atlas: AgentOverrideConfigSchema.optional()
|
|
88601
88679
|
}).catchall(AgentOverrideConfigSchema.optional());
|
|
88602
88680
|
// packages/omo-opencode/src/config/schema/babysitting.ts
|
|
88603
|
-
import { z as
|
|
88604
|
-
var BabysittingConfigSchema =
|
|
88605
|
-
timeout_ms:
|
|
88681
|
+
import { z as z23 } from "zod";
|
|
88682
|
+
var BabysittingConfigSchema = z23.object({
|
|
88683
|
+
timeout_ms: z23.number().default(120000)
|
|
88606
88684
|
});
|
|
88607
88685
|
// packages/omo-opencode/src/config/schema/background-task.ts
|
|
88608
|
-
import { z as
|
|
88609
|
-
var CircuitBreakerConfigSchema =
|
|
88610
|
-
enabled:
|
|
88611
|
-
maxToolCalls:
|
|
88612
|
-
consecutiveThreshold:
|
|
88686
|
+
import { z as z24 } from "zod";
|
|
88687
|
+
var CircuitBreakerConfigSchema = z24.object({
|
|
88688
|
+
enabled: z24.boolean().optional(),
|
|
88689
|
+
maxToolCalls: z24.number().int().min(10).optional(),
|
|
88690
|
+
consecutiveThreshold: z24.number().int().min(5).optional()
|
|
88613
88691
|
});
|
|
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:
|
|
88692
|
+
var BackgroundTaskConfigSchema = z24.object({
|
|
88693
|
+
defaultConcurrency: z24.number().min(0).optional(),
|
|
88694
|
+
providerConcurrency: z24.record(z24.string(), z24.number().min(0)).optional(),
|
|
88695
|
+
modelConcurrency: z24.record(z24.string(), z24.number().min(0)).optional(),
|
|
88696
|
+
maxDepth: z24.number().int().min(1).optional(),
|
|
88697
|
+
maxLiveDescendantsPerRoot: z24.number().int().min(0).optional(),
|
|
88698
|
+
staleTimeoutMs: z24.number().min(60000).optional(),
|
|
88699
|
+
messageStalenessTimeoutMs: z24.number().min(60000).optional(),
|
|
88700
|
+
taskTtlMs: z24.number().min(300000).optional(),
|
|
88701
|
+
sessionGoneTimeoutMs: z24.number().min(1e4).optional(),
|
|
88702
|
+
taskCleanupDelayMs: z24.number().min(60000).optional(),
|
|
88703
|
+
syncPollTimeoutMs: z24.number().min(60000).optional(),
|
|
88704
|
+
maxToolCalls: z24.number().int().min(10).optional(),
|
|
88627
88705
|
circuitBreaker: CircuitBreakerConfigSchema.optional()
|
|
88628
88706
|
});
|
|
88629
88707
|
// packages/omo-opencode/src/config/schema/browser-automation.ts
|
|
88630
|
-
import { z as
|
|
88631
|
-
var BrowserAutomationProviderSchema =
|
|
88708
|
+
import { z as z25 } from "zod";
|
|
88709
|
+
var BrowserAutomationProviderSchema = z25.enum([
|
|
88632
88710
|
"playwright",
|
|
88633
88711
|
"dev-browser",
|
|
88634
88712
|
"playwright-cli"
|
|
88635
88713
|
], {
|
|
88636
88714
|
error: (issue) => `Browser provider ${JSON.stringify(issue.input)} is no longer supported; use the built-in browser path: Bun.WebView / playwright-core scripts`
|
|
88637
88715
|
});
|
|
88638
|
-
var BrowserAutomationConfigSchema =
|
|
88716
|
+
var BrowserAutomationConfigSchema = z25.object({
|
|
88639
88717
|
provider: BrowserAutomationProviderSchema.default("playwright"),
|
|
88640
|
-
playwright_mcp_args:
|
|
88718
|
+
playwright_mcp_args: z25.array(z25.string()).optional()
|
|
88641
88719
|
});
|
|
88642
88720
|
// packages/omo-opencode/src/config/schema/categories.ts
|
|
88643
|
-
import { z as
|
|
88644
|
-
var CategoryConfigSchema =
|
|
88645
|
-
description:
|
|
88646
|
-
model:
|
|
88647
|
-
models:
|
|
88721
|
+
import { z as z26 } from "zod";
|
|
88722
|
+
var CategoryConfigSchema = z26.object({
|
|
88723
|
+
description: z26.string().optional(),
|
|
88724
|
+
model: z26.string().optional(),
|
|
88725
|
+
models: z26.array(z26.union([z26.string(), FallbackModelObjectSchema])).optional(),
|
|
88648
88726
|
fallback_models: FallbackModelsSchema.optional(),
|
|
88649
88727
|
reasoning: OmoReasoningSchema.optional(),
|
|
88650
|
-
variant:
|
|
88651
|
-
temperature:
|
|
88652
|
-
top_p:
|
|
88653
|
-
max_tokens:
|
|
88654
|
-
provider_options:
|
|
88655
|
-
maxTokens:
|
|
88656
|
-
thinking:
|
|
88657
|
-
type:
|
|
88658
|
-
budgetTokens:
|
|
88728
|
+
variant: z26.string().optional(),
|
|
88729
|
+
temperature: z26.number().min(0).max(2).optional(),
|
|
88730
|
+
top_p: z26.number().min(0).max(1).optional(),
|
|
88731
|
+
max_tokens: z26.number().int().positive().optional(),
|
|
88732
|
+
provider_options: z26.record(z26.string(), z26.unknown()).optional(),
|
|
88733
|
+
maxTokens: z26.number().optional(),
|
|
88734
|
+
thinking: z26.object({
|
|
88735
|
+
type: z26.enum(["enabled", "disabled"]),
|
|
88736
|
+
budgetTokens: z26.number().optional()
|
|
88659
88737
|
}).optional(),
|
|
88660
|
-
reasoningEffort:
|
|
88661
|
-
textVerbosity:
|
|
88662
|
-
tools:
|
|
88663
|
-
prompt_append:
|
|
88664
|
-
max_prompt_tokens:
|
|
88665
|
-
is_unstable_agent:
|
|
88666
|
-
disable:
|
|
88667
|
-
warn_unavailable:
|
|
88738
|
+
reasoningEffort: z26.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
88739
|
+
textVerbosity: z26.enum(["low", "medium", "high"]).optional(),
|
|
88740
|
+
tools: z26.record(z26.string(), z26.boolean()).optional(),
|
|
88741
|
+
prompt_append: z26.string().optional(),
|
|
88742
|
+
max_prompt_tokens: z26.number().int().positive().optional(),
|
|
88743
|
+
is_unstable_agent: z26.boolean().optional(),
|
|
88744
|
+
disable: z26.boolean().optional(),
|
|
88745
|
+
warn_unavailable: z26.boolean().optional()
|
|
88668
88746
|
});
|
|
88669
|
-
var BuiltinCategoryNameSchema =
|
|
88747
|
+
var BuiltinCategoryNameSchema = z26.enum([
|
|
88670
88748
|
"visual-engineering",
|
|
88671
88749
|
"ultrabrain",
|
|
88672
88750
|
"deep",
|
|
@@ -88676,29 +88754,29 @@ var BuiltinCategoryNameSchema = z25.enum([
|
|
|
88676
88754
|
"unspecified-high",
|
|
88677
88755
|
"writing"
|
|
88678
88756
|
]);
|
|
88679
|
-
var CategoriesConfigSchema =
|
|
88757
|
+
var CategoriesConfigSchema = z26.record(z26.string(), CategoryConfigSchema);
|
|
88680
88758
|
// 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:
|
|
88759
|
+
import { z as z27 } from "zod";
|
|
88760
|
+
var ClaudeCodeConfigSchema = z27.object({
|
|
88761
|
+
mcp: z27.boolean().optional(),
|
|
88762
|
+
commands: z27.boolean().optional(),
|
|
88763
|
+
skills: z27.boolean().optional(),
|
|
88764
|
+
agents: z27.boolean().optional(),
|
|
88765
|
+
hooks: z27.boolean().optional(),
|
|
88766
|
+
plugins: z27.boolean().optional(),
|
|
88767
|
+
plugins_override: z27.record(z27.string(), z27.boolean()).optional(),
|
|
88768
|
+
anthropic_provider: z27.string().trim().min(1).refine((v) => !v.includes("/"), {
|
|
88691
88769
|
message: "anthropic_provider must be a provider name without '/'"
|
|
88692
88770
|
}).optional()
|
|
88693
88771
|
});
|
|
88694
88772
|
// packages/omo-opencode/src/config/schema/comment-checker.ts
|
|
88695
|
-
import { z as
|
|
88696
|
-
var CommentCheckerConfigSchema =
|
|
88697
|
-
custom_prompt:
|
|
88773
|
+
import { z as z28 } from "zod";
|
|
88774
|
+
var CommentCheckerConfigSchema = z28.object({
|
|
88775
|
+
custom_prompt: z28.string().optional()
|
|
88698
88776
|
});
|
|
88699
88777
|
// packages/omo-opencode/src/config/schema/commands.ts
|
|
88700
|
-
import { z as
|
|
88701
|
-
var BuiltinCommandNameSchema =
|
|
88778
|
+
import { z as z29 } from "zod";
|
|
88779
|
+
var BuiltinCommandNameSchema = z29.enum([
|
|
88702
88780
|
"goal",
|
|
88703
88781
|
"refactor",
|
|
88704
88782
|
"ulw-execute",
|
|
@@ -88707,21 +88785,21 @@ var BuiltinCommandNameSchema = z28.enum([
|
|
|
88707
88785
|
"hyperplan"
|
|
88708
88786
|
]);
|
|
88709
88787
|
// packages/omo-opencode/src/config/schema/default-mode.ts
|
|
88710
|
-
import { z as
|
|
88711
|
-
var DefaultModeConfigSchema =
|
|
88712
|
-
ultrawork:
|
|
88713
|
-
goal:
|
|
88788
|
+
import { z as z30 } from "zod";
|
|
88789
|
+
var DefaultModeConfigSchema = z30.object({
|
|
88790
|
+
ultrawork: z30.boolean().default(false),
|
|
88791
|
+
goal: z30.boolean().default(false)
|
|
88714
88792
|
});
|
|
88715
88793
|
// 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:
|
|
88794
|
+
import { z as z31 } from "zod";
|
|
88795
|
+
var DynamicContextPruningConfigSchema = z31.object({
|
|
88796
|
+
enabled: z31.boolean().default(false),
|
|
88797
|
+
notification: z31.enum(["off", "minimal", "detailed"]).default("detailed"),
|
|
88798
|
+
turn_protection: z31.object({
|
|
88799
|
+
enabled: z31.boolean().default(true),
|
|
88800
|
+
turns: z31.number().min(1).max(10).default(3)
|
|
88723
88801
|
}).optional(),
|
|
88724
|
-
protected_tools:
|
|
88802
|
+
protected_tools: z31.array(z31.string()).default([
|
|
88725
88803
|
"task",
|
|
88726
88804
|
"todowrite",
|
|
88727
88805
|
"todoread",
|
|
@@ -88730,45 +88808,45 @@ var DynamicContextPruningConfigSchema = z30.object({
|
|
|
88730
88808
|
"session_write",
|
|
88731
88809
|
"session_search"
|
|
88732
88810
|
]),
|
|
88733
|
-
strategies:
|
|
88734
|
-
deduplication:
|
|
88735
|
-
enabled:
|
|
88811
|
+
strategies: z31.object({
|
|
88812
|
+
deduplication: z31.object({
|
|
88813
|
+
enabled: z31.boolean().default(true)
|
|
88736
88814
|
}).optional(),
|
|
88737
|
-
supersede_writes:
|
|
88738
|
-
enabled:
|
|
88739
|
-
aggressive:
|
|
88815
|
+
supersede_writes: z31.object({
|
|
88816
|
+
enabled: z31.boolean().default(true),
|
|
88817
|
+
aggressive: z31.boolean().default(false)
|
|
88740
88818
|
}).optional(),
|
|
88741
|
-
purge_errors:
|
|
88742
|
-
enabled:
|
|
88743
|
-
turns:
|
|
88819
|
+
purge_errors: z31.object({
|
|
88820
|
+
enabled: z31.boolean().default(true),
|
|
88821
|
+
turns: z31.number().min(1).max(20).default(5)
|
|
88744
88822
|
}).optional()
|
|
88745
88823
|
}).optional()
|
|
88746
88824
|
});
|
|
88747
88825
|
// 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:
|
|
88826
|
+
import { z as z32 } from "zod";
|
|
88827
|
+
var ExperimentalConfigSchema = z32.object({
|
|
88828
|
+
aggressive_truncation: z32.boolean().optional(),
|
|
88829
|
+
preemptive_compaction: z32.boolean().optional(),
|
|
88830
|
+
truncate_all_tool_outputs: z32.boolean().optional(),
|
|
88753
88831
|
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:
|
|
88832
|
+
task_system: z32.boolean().optional(),
|
|
88833
|
+
plugin_load_timeout_ms: z32.number().min(1000).optional(),
|
|
88834
|
+
safe_hook_creation: z32.boolean().optional(),
|
|
88835
|
+
disable_omo_env: z32.boolean().optional(),
|
|
88836
|
+
hashline_edit: z32.boolean().optional(),
|
|
88837
|
+
model_fallback_title: z32.boolean().optional(),
|
|
88838
|
+
max_tools: z32.number().int().min(1).optional(),
|
|
88839
|
+
disable_live_parent_wake_routing: z32.boolean().optional()
|
|
88762
88840
|
});
|
|
88763
88841
|
// packages/omo-opencode/src/config/schema/goal.ts
|
|
88764
|
-
import { z as
|
|
88765
|
-
var GoalConfigSchema =
|
|
88766
|
-
enabled:
|
|
88767
|
-
auto_start:
|
|
88768
|
-
default_max_iterations:
|
|
88842
|
+
import { z as z33 } from "zod";
|
|
88843
|
+
var GoalConfigSchema = z33.object({
|
|
88844
|
+
enabled: z33.boolean().default(false),
|
|
88845
|
+
auto_start: z33.boolean().default(false),
|
|
88846
|
+
default_max_iterations: z33.number().min(1).max(1000).default(100)
|
|
88769
88847
|
});
|
|
88770
88848
|
// packages/skills-loader-core/src/config/git-env-prefix.ts
|
|
88771
|
-
import { z as
|
|
88849
|
+
import { z as z34 } from "zod";
|
|
88772
88850
|
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
88851
|
var GIT_ENV_PREFIX_VALIDATION_MESSAGE = 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"';
|
|
88774
88852
|
function isValidGitEnvPrefix(value) {
|
|
@@ -88783,17 +88861,17 @@ function assertValidGitEnvPrefix(value) {
|
|
|
88783
88861
|
}
|
|
88784
88862
|
return value;
|
|
88785
88863
|
}
|
|
88786
|
-
var GitEnvPrefixSchema2 =
|
|
88864
|
+
var GitEnvPrefixSchema2 = z34.string().refine(isValidGitEnvPrefix, { message: GIT_ENV_PREFIX_VALIDATION_MESSAGE }).default("GIT_MASTER=1");
|
|
88787
88865
|
// packages/omo-opencode/src/config/schema/git-master.ts
|
|
88788
|
-
import { z as
|
|
88789
|
-
var GitMasterConfigSchema =
|
|
88790
|
-
commit_footer:
|
|
88791
|
-
include_co_authored_by:
|
|
88866
|
+
import { z as z35 } from "zod";
|
|
88867
|
+
var GitMasterConfigSchema = z35.object({
|
|
88868
|
+
commit_footer: z35.union([z35.boolean(), z35.string()]).default(false),
|
|
88869
|
+
include_co_authored_by: z35.boolean().default(false),
|
|
88792
88870
|
git_env_prefix: GitEnvPrefixSchema2
|
|
88793
88871
|
});
|
|
88794
88872
|
// packages/omo-opencode/src/config/schema/hooks.ts
|
|
88795
|
-
import { z as
|
|
88796
|
-
var HookNameSchema =
|
|
88873
|
+
import { z as z36 } from "zod";
|
|
88874
|
+
var HookNameSchema = z36.enum([
|
|
88797
88875
|
"todo-continuation-enforcer",
|
|
88798
88876
|
"session-notification",
|
|
88799
88877
|
"comment-checker",
|
|
@@ -88852,240 +88930,240 @@ var HookNameSchema = z35.enum([
|
|
|
88852
88930
|
"native-edition-nudge"
|
|
88853
88931
|
]);
|
|
88854
88932
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
88855
|
-
import { z as
|
|
88856
|
-
var I18nConfigSchema =
|
|
88857
|
-
locale:
|
|
88933
|
+
import { z as z37 } from "zod";
|
|
88934
|
+
var I18nConfigSchema = z37.object({
|
|
88935
|
+
locale: z37.string().optional()
|
|
88858
88936
|
});
|
|
88859
88937
|
// 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:
|
|
88938
|
+
import { z as z38 } from "zod";
|
|
88939
|
+
var KeywordTypeSchema = z38.enum(["ultrawork", "team", "hyperplan", "hyperplan-ultrawork"]);
|
|
88940
|
+
var KeywordDetectorConfigSchema = z38.object({
|
|
88941
|
+
enabled_expansions: z38.array(KeywordTypeSchema).optional(),
|
|
88942
|
+
disabled_keywords: z38.array(KeywordTypeSchema).optional()
|
|
88865
88943
|
});
|
|
88866
88944
|
// 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:
|
|
88945
|
+
import { z as z39 } from "zod";
|
|
88946
|
+
var ModelCapabilitiesConfigSchema = z39.object({
|
|
88947
|
+
enabled: z39.boolean().optional(),
|
|
88948
|
+
auto_refresh_on_start: z39.boolean().optional(),
|
|
88949
|
+
refresh_timeout_ms: z39.number().int().positive().optional(),
|
|
88950
|
+
source_url: z39.string().url().optional()
|
|
88873
88951
|
});
|
|
88874
88952
|
// packages/omo-opencode/src/config/schema/notification.ts
|
|
88875
|
-
import { z as
|
|
88876
|
-
var NotificationConfigSchema =
|
|
88877
|
-
force_enable:
|
|
88953
|
+
import { z as z40 } from "zod";
|
|
88954
|
+
var NotificationConfigSchema = z40.object({
|
|
88955
|
+
force_enable: z40.boolean().optional()
|
|
88878
88956
|
});
|
|
88879
88957
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
88880
|
-
import { z as
|
|
88958
|
+
import { z as z54 } from "zod";
|
|
88881
88959
|
|
|
88882
88960
|
// packages/omo-opencode/src/mcp/types.ts
|
|
88883
|
-
import { z as
|
|
88884
|
-
var McpNameSchema =
|
|
88885
|
-
var AnyMcpNameSchema =
|
|
88961
|
+
import { z as z41 } from "zod";
|
|
88962
|
+
var McpNameSchema = z41.enum(["websearch", "context7", "grep_app", "lsp"]);
|
|
88963
|
+
var AnyMcpNameSchema = z41.string().min(1);
|
|
88886
88964
|
|
|
88887
88965
|
// packages/omo-opencode/src/config/schema/agent-definitions.ts
|
|
88888
|
-
import { z as
|
|
88889
|
-
var AgentDefinitionPathSchema =
|
|
88890
|
-
var AgentDefinitionsConfigSchema =
|
|
88966
|
+
import { z as z42 } from "zod";
|
|
88967
|
+
var AgentDefinitionPathSchema = z42.string().min(1);
|
|
88968
|
+
var AgentDefinitionsConfigSchema = z42.array(AgentDefinitionPathSchema).optional();
|
|
88891
88969
|
|
|
88892
88970
|
// 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:
|
|
88971
|
+
import { z as z43 } from "zod";
|
|
88972
|
+
var OpenClawGatewaySchema = z43.object({
|
|
88973
|
+
type: z43.enum(["http", "command"]).default("http"),
|
|
88974
|
+
url: z43.string().optional(),
|
|
88975
|
+
method: z43.string().default("POST"),
|
|
88976
|
+
headers: z43.record(z43.string(), z43.string()).optional(),
|
|
88977
|
+
command: z43.string().optional(),
|
|
88978
|
+
timeout: z43.number().optional()
|
|
88901
88979
|
});
|
|
88902
|
-
var OpenClawHookSchema =
|
|
88903
|
-
enabled:
|
|
88904
|
-
gateway:
|
|
88905
|
-
instruction:
|
|
88980
|
+
var OpenClawHookSchema = z43.object({
|
|
88981
|
+
enabled: z43.boolean().default(true),
|
|
88982
|
+
gateway: z43.string(),
|
|
88983
|
+
instruction: z43.string()
|
|
88906
88984
|
});
|
|
88907
|
-
var OpenClawReplyListenerConfigSchema =
|
|
88908
|
-
discordBotToken:
|
|
88909
|
-
discordChannelId:
|
|
88910
|
-
discordMention:
|
|
88911
|
-
authorizedDiscordUserIds:
|
|
88912
|
-
telegramBotToken:
|
|
88913
|
-
telegramChatId:
|
|
88914
|
-
pollIntervalMs:
|
|
88915
|
-
rateLimitPerMinute:
|
|
88916
|
-
maxMessageLength:
|
|
88917
|
-
includePrefix:
|
|
88985
|
+
var OpenClawReplyListenerConfigSchema = z43.object({
|
|
88986
|
+
discordBotToken: z43.string().optional(),
|
|
88987
|
+
discordChannelId: z43.string().optional(),
|
|
88988
|
+
discordMention: z43.string().optional(),
|
|
88989
|
+
authorizedDiscordUserIds: z43.array(z43.string()).default([]),
|
|
88990
|
+
telegramBotToken: z43.string().optional(),
|
|
88991
|
+
telegramChatId: z43.string().optional(),
|
|
88992
|
+
pollIntervalMs: z43.number().default(3000),
|
|
88993
|
+
rateLimitPerMinute: z43.number().default(10),
|
|
88994
|
+
maxMessageLength: z43.number().default(500),
|
|
88995
|
+
includePrefix: z43.boolean().default(true)
|
|
88918
88996
|
});
|
|
88919
|
-
var OpenClawConfigSchema =
|
|
88920
|
-
enabled:
|
|
88921
|
-
gateways:
|
|
88922
|
-
hooks:
|
|
88997
|
+
var OpenClawConfigSchema = z43.object({
|
|
88998
|
+
enabled: z43.boolean().default(false),
|
|
88999
|
+
gateways: z43.record(z43.string(), OpenClawGatewaySchema).default({}),
|
|
89000
|
+
hooks: z43.record(z43.string(), OpenClawHookSchema).default({}),
|
|
88923
89001
|
replyListener: OpenClawReplyListenerConfigSchema.optional()
|
|
88924
89002
|
});
|
|
88925
89003
|
|
|
88926
89004
|
// 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:
|
|
89005
|
+
import { z as z44 } from "zod";
|
|
89006
|
+
var MonitorConfigSchema = z44.object({
|
|
89007
|
+
enabled: z44.boolean().default(false),
|
|
89008
|
+
live_mode_enabled: z44.boolean().default(false),
|
|
89009
|
+
allowed_commands: z44.array(z44.string()).optional(),
|
|
89010
|
+
max_monitors_per_session: z44.number().int().min(1).max(16).default(3),
|
|
89011
|
+
max_runtime_ms: z44.number().int().min(1000).default(1800000),
|
|
89012
|
+
batch_max_lines: z44.number().int().min(1).default(50),
|
|
89013
|
+
batch_max_bytes: z44.number().int().min(1024).default(16384),
|
|
89014
|
+
flush_interval_ms: z44.number().int().min(250).default(1000),
|
|
89015
|
+
ring_max_lines: z44.number().int().min(1).default(1000),
|
|
89016
|
+
line_max_bytes: z44.number().int().min(256).default(8192),
|
|
89017
|
+
pattern_max_length: z44.number().int().min(1).default(512)
|
|
88940
89018
|
});
|
|
88941
89019
|
|
|
88942
89020
|
// 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:
|
|
89021
|
+
import { z as z45 } from "zod";
|
|
89022
|
+
var RuntimeFallbackConfigSchema = z45.object({
|
|
89023
|
+
enabled: z45.boolean().optional(),
|
|
89024
|
+
retry_on_errors: z45.array(z45.number()).optional(),
|
|
89025
|
+
max_fallback_attempts: z45.number().min(1).max(20).optional(),
|
|
89026
|
+
cooldown_seconds: z45.number().min(0).optional(),
|
|
89027
|
+
timeout_seconds: z45.number().min(0).optional(),
|
|
89028
|
+
notify_on_fallback: z45.boolean().optional(),
|
|
89029
|
+
restore_primary_after_cooldown: z45.boolean().optional()
|
|
88952
89030
|
});
|
|
88953
89031
|
|
|
88954
89032
|
// 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:
|
|
89033
|
+
import * as z46 from "zod";
|
|
89034
|
+
var TeamModeConfigSchema = z46.object({
|
|
89035
|
+
enabled: z46.boolean().default(false),
|
|
89036
|
+
tmux_visualization: z46.boolean().default(false),
|
|
89037
|
+
max_parallel_members: z46.number().int().min(1).max(8).default(4),
|
|
89038
|
+
max_members: z46.number().int().min(1).max(8).default(8),
|
|
89039
|
+
max_messages_per_run: z46.number().int().min(1).default(1e4),
|
|
89040
|
+
max_wall_clock_minutes: z46.number().int().min(1).default(120),
|
|
89041
|
+
max_member_turns: z46.number().int().min(1).default(500),
|
|
89042
|
+
base_dir: z46.string().optional(),
|
|
89043
|
+
message_payload_max_bytes: z46.number().int().min(1024).default(32768),
|
|
89044
|
+
recipient_unread_max_bytes: z46.number().int().min(1024).default(262144),
|
|
89045
|
+
mailbox_poll_interval_ms: z46.number().int().min(500).default(3000)
|
|
88968
89046
|
});
|
|
88969
89047
|
// packages/omo-opencode/src/config/schema/skills.ts
|
|
88970
|
-
import { z as
|
|
88971
|
-
var SkillSourceSchema =
|
|
88972
|
-
|
|
88973
|
-
|
|
88974
|
-
path:
|
|
88975
|
-
recursive:
|
|
88976
|
-
glob:
|
|
89048
|
+
import { z as z47 } from "zod";
|
|
89049
|
+
var SkillSourceSchema = z47.union([
|
|
89050
|
+
z47.string(),
|
|
89051
|
+
z47.object({
|
|
89052
|
+
path: z47.string(),
|
|
89053
|
+
recursive: z47.boolean().optional(),
|
|
89054
|
+
glob: z47.string().optional()
|
|
88977
89055
|
})
|
|
88978
89056
|
]);
|
|
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:
|
|
89057
|
+
var SkillDefinitionSchema = z47.object({
|
|
89058
|
+
description: z47.string().optional(),
|
|
89059
|
+
template: z47.string().optional(),
|
|
89060
|
+
from: z47.string().optional(),
|
|
89061
|
+
model: z47.string().optional(),
|
|
89062
|
+
agent: z47.string().optional(),
|
|
89063
|
+
subtask: z47.boolean().optional(),
|
|
89064
|
+
"argument-hint": z47.string().optional(),
|
|
89065
|
+
license: z47.string().optional(),
|
|
89066
|
+
compatibility: z47.string().optional(),
|
|
89067
|
+
metadata: z47.record(z47.string(), z47.unknown()).optional(),
|
|
89068
|
+
"allowed-tools": z47.array(z47.string()).optional(),
|
|
89069
|
+
disable: z47.boolean().optional()
|
|
88992
89070
|
});
|
|
88993
|
-
var SkillEntrySchema =
|
|
88994
|
-
var SkillsConfigSchema =
|
|
88995
|
-
|
|
88996
|
-
|
|
88997
|
-
sources:
|
|
88998
|
-
enable:
|
|
88999
|
-
disable:
|
|
89071
|
+
var SkillEntrySchema = z47.union([z47.boolean(), SkillDefinitionSchema]);
|
|
89072
|
+
var SkillsConfigSchema = z47.union([
|
|
89073
|
+
z47.array(z47.string()),
|
|
89074
|
+
z47.object({
|
|
89075
|
+
sources: z47.array(SkillSourceSchema).optional(),
|
|
89076
|
+
enable: z47.array(z47.string()).optional(),
|
|
89077
|
+
disable: z47.array(z47.string()).optional()
|
|
89000
89078
|
}).catchall(SkillEntrySchema)
|
|
89001
89079
|
]);
|
|
89002
89080
|
|
|
89003
89081
|
// 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:
|
|
89082
|
+
import { z as z48 } from "zod";
|
|
89083
|
+
var SisyphusTasksConfigSchema = z48.object({
|
|
89084
|
+
storage_path: z48.string().optional(),
|
|
89085
|
+
task_list_id: z48.string().optional(),
|
|
89086
|
+
claude_code_compat: z48.boolean().default(false)
|
|
89009
89087
|
});
|
|
89010
|
-
var SisyphusConfigSchema =
|
|
89088
|
+
var SisyphusConfigSchema = z48.object({
|
|
89011
89089
|
tasks: SisyphusTasksConfigSchema.optional()
|
|
89012
89090
|
});
|
|
89013
89091
|
|
|
89014
89092
|
// 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:
|
|
89093
|
+
import { z as z49 } from "zod";
|
|
89094
|
+
var SisyphusAgentConfigSchema = z49.object({
|
|
89095
|
+
disabled: z49.boolean().optional(),
|
|
89096
|
+
default_builder_enabled: z49.boolean().optional(),
|
|
89097
|
+
planner_enabled: z49.boolean().optional(),
|
|
89098
|
+
replace_plan: z49.boolean().optional(),
|
|
89099
|
+
tdd: z49.boolean().default(true).optional()
|
|
89022
89100
|
});
|
|
89023
89101
|
|
|
89024
89102
|
// packages/omo-opencode/src/config/schema/tmux.ts
|
|
89025
89103
|
init_src2();
|
|
89026
|
-
import { z as
|
|
89027
|
-
var TmuxLayoutSchema =
|
|
89028
|
-
var TmuxIsolationSchema =
|
|
89029
|
-
var TmuxConfigSchema =
|
|
89030
|
-
enabled:
|
|
89104
|
+
import { z as z50 } from "zod";
|
|
89105
|
+
var TmuxLayoutSchema = z50.enum(TMUX_LAYOUT_VALUES);
|
|
89106
|
+
var TmuxIsolationSchema = z50.enum(TMUX_ISOLATION_VALUES);
|
|
89107
|
+
var TmuxConfigSchema = z50.object({
|
|
89108
|
+
enabled: z50.boolean().default(false),
|
|
89031
89109
|
layout: TmuxLayoutSchema.default("main-vertical"),
|
|
89032
|
-
main_pane_size:
|
|
89033
|
-
main_pane_min_width:
|
|
89034
|
-
agent_pane_min_width:
|
|
89110
|
+
main_pane_size: z50.number().min(20).max(80).default(60),
|
|
89111
|
+
main_pane_min_width: z50.number().min(40).default(120),
|
|
89112
|
+
agent_pane_min_width: z50.number().min(20).default(40),
|
|
89035
89113
|
isolation: TmuxIsolationSchema.default("inline")
|
|
89036
89114
|
});
|
|
89037
89115
|
|
|
89038
89116
|
// packages/omo-opencode/src/config/schema/tui.ts
|
|
89039
|
-
import { z as
|
|
89040
|
-
var TuiSidebarConfigSchema =
|
|
89041
|
-
enabled:
|
|
89117
|
+
import { z as z51 } from "zod";
|
|
89118
|
+
var TuiSidebarConfigSchema = z51.object({
|
|
89119
|
+
enabled: z51.boolean().default(true)
|
|
89042
89120
|
});
|
|
89043
|
-
var TuiConfigSchema =
|
|
89121
|
+
var TuiConfigSchema = z51.object({
|
|
89044
89122
|
sidebar: TuiSidebarConfigSchema.default({ enabled: true })
|
|
89045
89123
|
});
|
|
89046
89124
|
|
|
89047
89125
|
// packages/omo-opencode/src/config/schema/ulw-execute.ts
|
|
89048
|
-
import { z as
|
|
89049
|
-
var UlwExecuteConfigSchema =
|
|
89050
|
-
auto_commit:
|
|
89126
|
+
import { z as z52 } from "zod";
|
|
89127
|
+
var UlwExecuteConfigSchema = z52.object({
|
|
89128
|
+
auto_commit: z52.boolean().default(true)
|
|
89051
89129
|
});
|
|
89052
89130
|
|
|
89053
89131
|
// packages/omo-opencode/src/config/schema/websearch.ts
|
|
89054
|
-
import { z as
|
|
89055
|
-
var WebsearchProviderSchema =
|
|
89056
|
-
var WebsearchConfigSchema =
|
|
89132
|
+
import { z as z53 } from "zod";
|
|
89133
|
+
var WebsearchProviderSchema = z53.enum(["exa", "tavily"]);
|
|
89134
|
+
var WebsearchConfigSchema = z53.object({
|
|
89057
89135
|
provider: WebsearchProviderSchema.optional()
|
|
89058
89136
|
});
|
|
89059
89137
|
|
|
89060
89138
|
// 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:
|
|
89139
|
+
var OhMyOpenCodeConfigSchema = z54.object({
|
|
89140
|
+
$schema: z54.string().optional(),
|
|
89141
|
+
new_task_system_enabled: z54.boolean().optional(),
|
|
89142
|
+
default_run_agent: z54.string().optional(),
|
|
89143
|
+
agent_order: z54.array(z54.string().max(128)).max(64).optional(),
|
|
89066
89144
|
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:
|
|
89145
|
+
disabled_mcps: z54.array(AnyMcpNameSchema).optional(),
|
|
89146
|
+
disabled_agents: z54.array(z54.string()).optional(),
|
|
89147
|
+
disabled_skills: z54.array(z54.string()).optional(),
|
|
89148
|
+
disabled_hooks: z54.array(z54.string()).optional(),
|
|
89149
|
+
disabled_commands: z54.array(BuiltinCommandNameSchema).optional(),
|
|
89150
|
+
disabled_tools: z54.array(z54.string()).optional(),
|
|
89151
|
+
disabled_providers: z54.array(z54.string()).optional(),
|
|
89152
|
+
mcp_env_allowlist: z54.array(z54.string()).optional(),
|
|
89153
|
+
hashline_edit: z54.boolean().optional(),
|
|
89154
|
+
telemetry: z54.boolean().optional().describe("Enable or disable anonymous telemetry. Default: enabled when omitted. Set to false to disable."),
|
|
89155
|
+
model_fallback: z54.boolean().optional(),
|
|
89078
89156
|
agents: AgentOverridesSchema.optional(),
|
|
89079
89157
|
categories: CategoriesConfigSchema.optional(),
|
|
89080
89158
|
claude_code: ClaudeCodeConfigSchema.optional(),
|
|
89081
89159
|
sisyphus_agent: SisyphusAgentConfigSchema.optional(),
|
|
89082
89160
|
comment_checker: CommentCheckerConfigSchema.optional(),
|
|
89083
89161
|
experimental: ExperimentalConfigSchema.optional(),
|
|
89084
|
-
auto_update:
|
|
89162
|
+
auto_update: z54.boolean().optional(),
|
|
89085
89163
|
skills: SkillsConfigSchema.optional(),
|
|
89086
89164
|
goal: GoalConfigSchema.optional(),
|
|
89087
|
-
ralph_loop:
|
|
89088
|
-
runtime_fallback:
|
|
89165
|
+
ralph_loop: z54.record(z54.string(), z54.unknown()).optional(),
|
|
89166
|
+
runtime_fallback: z54.union([z54.boolean(), RuntimeFallbackConfigSchema]).optional(),
|
|
89089
89167
|
background_task: BackgroundTaskConfigSchema.optional(),
|
|
89090
89168
|
notification: NotificationConfigSchema.optional(),
|
|
89091
89169
|
model_capabilities: ModelCapabilitiesConfigSchema.optional(),
|
|
@@ -89108,7 +89186,7 @@ var OhMyOpenCodeConfigSchema = z53.object({
|
|
|
89108
89186
|
ulw_execute: UlwExecuteConfigSchema.optional(),
|
|
89109
89187
|
start_work: UlwExecuteConfigSchema.optional(),
|
|
89110
89188
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
89111
|
-
_migrations:
|
|
89189
|
+
_migrations: z54.array(z54.string()).optional()
|
|
89112
89190
|
});
|
|
89113
89191
|
// packages/omo-opencode/src/config/prune-plugin-view.ts
|
|
89114
89192
|
var validatePluginRecord = (record) => {
|
|
@@ -107837,11 +107915,11 @@ init_logger2();
|
|
|
107837
107915
|
init_src();
|
|
107838
107916
|
var TERMINAL_TOOL_STATUSES = new Set(["completed", "error"]);
|
|
107839
107917
|
var UNKNOWN_TOOL_STATUS = "unknown";
|
|
107840
|
-
function
|
|
107918
|
+
function toRecord4(value) {
|
|
107841
107919
|
return isRecord(value) ? value : null;
|
|
107842
107920
|
}
|
|
107843
107921
|
function getToolCallID(part) {
|
|
107844
|
-
const record =
|
|
107922
|
+
const record = toRecord4(part);
|
|
107845
107923
|
if (!record || record["type"] !== "tool") {
|
|
107846
107924
|
return null;
|
|
107847
107925
|
}
|
|
@@ -107849,7 +107927,7 @@ function getToolCallID(part) {
|
|
|
107849
107927
|
return typeof callID === "string" && callID.length > 0 ? callID : null;
|
|
107850
107928
|
}
|
|
107851
107929
|
function getToolStatus(part) {
|
|
107852
|
-
const state =
|
|
107930
|
+
const state = toRecord4(toRecord4(part)?.["state"]);
|
|
107853
107931
|
if (!state) {
|
|
107854
107932
|
return UNKNOWN_TOOL_STATUS;
|
|
107855
107933
|
}
|
|
@@ -107880,24 +107958,24 @@ function findUnpairedToolParts(parts) {
|
|
|
107880
107958
|
// packages/omo-opencode/src/hooks/tool-pair-validator/tool-result-repair.ts
|
|
107881
107959
|
var INTERRUPTED_TOOL_ERROR = "[Tool execution was interrupted before it produced output]";
|
|
107882
107960
|
function getMessageID(message) {
|
|
107883
|
-
const messageID =
|
|
107961
|
+
const messageID = toRecord4(message)?.["id"];
|
|
107884
107962
|
return typeof messageID === "string" ? messageID : undefined;
|
|
107885
107963
|
}
|
|
107886
107964
|
function getMessageSessionID(message) {
|
|
107887
|
-
const sessionID =
|
|
107965
|
+
const sessionID = toRecord4(message)?.["sessionID"];
|
|
107888
107966
|
return typeof sessionID === "string" ? sessionID : undefined;
|
|
107889
107967
|
}
|
|
107890
107968
|
function readStartTime(state) {
|
|
107891
|
-
const time =
|
|
107969
|
+
const time = toRecord4(state["time"]);
|
|
107892
107970
|
const start = time?.["start"];
|
|
107893
107971
|
return typeof start === "number" ? start : Date.now();
|
|
107894
107972
|
}
|
|
107895
107973
|
function settleToolPart(part) {
|
|
107896
|
-
const state =
|
|
107974
|
+
const state = toRecord4(toRecord4(part)?.["state"]);
|
|
107897
107975
|
if (!state) {
|
|
107898
107976
|
return false;
|
|
107899
107977
|
}
|
|
107900
|
-
const input =
|
|
107978
|
+
const input = toRecord4(state["input"]);
|
|
107901
107979
|
const start = readStartTime(state);
|
|
107902
107980
|
state["status"] = "error";
|
|
107903
107981
|
state["error"] = INTERRUPTED_TOOL_ERROR;
|
|
@@ -108422,35 +108500,35 @@ import { mkdirSync as mkdirSync18, readFileSync as readFileSync47, renameSync as
|
|
|
108422
108500
|
import { join as join86 } from "path";
|
|
108423
108501
|
|
|
108424
108502
|
// packages/omo-opencode/src/hooks/goal/types.ts
|
|
108425
|
-
import { z as
|
|
108503
|
+
import { z as z56 } from "zod";
|
|
108426
108504
|
var GOAL_STATUS_VALUES = ["active", "paused", "complete"];
|
|
108427
|
-
var GoalStatusSchema =
|
|
108428
|
-
var GoalSchema =
|
|
108429
|
-
id:
|
|
108430
|
-
sessionID:
|
|
108431
|
-
objective:
|
|
108505
|
+
var GoalStatusSchema = z56.enum(GOAL_STATUS_VALUES);
|
|
108506
|
+
var GoalSchema = z56.object({
|
|
108507
|
+
id: z56.string(),
|
|
108508
|
+
sessionID: z56.string(),
|
|
108509
|
+
objective: z56.string(),
|
|
108432
108510
|
status: GoalStatusSchema,
|
|
108433
|
-
tokensUsed:
|
|
108434
|
-
timeUsedSeconds:
|
|
108435
|
-
createdAt:
|
|
108436
|
-
updatedAt:
|
|
108437
|
-
lastStartedAt:
|
|
108438
|
-
completedAt:
|
|
108511
|
+
tokensUsed: z56.number().int().nonnegative(),
|
|
108512
|
+
timeUsedSeconds: z56.number().int().nonnegative(),
|
|
108513
|
+
createdAt: z56.number().int().nonnegative(),
|
|
108514
|
+
updatedAt: z56.number().int().nonnegative(),
|
|
108515
|
+
lastStartedAt: z56.number().int().nonnegative().optional(),
|
|
108516
|
+
completedAt: z56.number().int().nonnegative().optional()
|
|
108439
108517
|
});
|
|
108440
|
-
var GoalFileSchema =
|
|
108441
|
-
version:
|
|
108518
|
+
var GoalFileSchema = z56.object({
|
|
108519
|
+
version: z56.literal(1),
|
|
108442
108520
|
goal: GoalSchema.nullable()
|
|
108443
108521
|
});
|
|
108444
|
-
var GoalToolSnapshotSchema =
|
|
108445
|
-
sessionID:
|
|
108446
|
-
objective:
|
|
108522
|
+
var GoalToolSnapshotSchema = z56.object({
|
|
108523
|
+
sessionID: z56.string(),
|
|
108524
|
+
objective: z56.string(),
|
|
108447
108525
|
status: GoalStatusSchema,
|
|
108448
|
-
tokensUsed:
|
|
108449
|
-
timeUsedSeconds:
|
|
108450
|
-
createdAt:
|
|
108451
|
-
updatedAt:
|
|
108526
|
+
tokensUsed: z56.number().int().nonnegative(),
|
|
108527
|
+
timeUsedSeconds: z56.number().int().nonnegative(),
|
|
108528
|
+
createdAt: z56.number().int().nonnegative(),
|
|
108529
|
+
updatedAt: z56.number().int().nonnegative()
|
|
108452
108530
|
});
|
|
108453
|
-
var GoalToolResponseSchema =
|
|
108531
|
+
var GoalToolResponseSchema = z56.object({
|
|
108454
108532
|
goal: GoalToolSnapshotSchema.nullable()
|
|
108455
108533
|
});
|
|
108456
108534
|
|
|
@@ -110230,7 +110308,7 @@ function loadSharedSkillTemplate(skillName) {
|
|
|
110230
110308
|
// packages/skills-loader-core/src/features/builtin-skills/skills/frontend.ts
|
|
110231
110309
|
var frontendSkill = {
|
|
110232
110310
|
name: "frontend",
|
|
110233
|
-
description: "Builds, styles, and polishes web UI
|
|
110311
|
+
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
110312
|
template: loadSharedSkillTemplate("frontend")
|
|
110235
110313
|
};
|
|
110236
110314
|
// packages/skills-loader-core/src/features/builtin-skills/skills/git-master-skill-metadata.ts
|
|
@@ -125863,11 +125941,11 @@ function createMonitorStatusInjectorHook(monitorManager, config) {
|
|
|
125863
125941
|
import { resolve as resolve28 } from "path";
|
|
125864
125942
|
|
|
125865
125943
|
// node_modules/.bun/@opencode-ai+plugin@1.18.31+7445fc152a67980a/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
125866
|
-
import { z as
|
|
125944
|
+
import { z as z57 } from "zod";
|
|
125867
125945
|
function tool(input) {
|
|
125868
125946
|
return input;
|
|
125869
125947
|
}
|
|
125870
|
-
tool.schema =
|
|
125948
|
+
tool.schema = z57;
|
|
125871
125949
|
|
|
125872
125950
|
// packages/omo-opencode/src/shared/ripgrep-cli.ts
|
|
125873
125951
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
@@ -139679,55 +139757,55 @@ function isExplicitSyncRun(runInBackground) {
|
|
|
139679
139757
|
import { join as join121 } from "path";
|
|
139680
139758
|
|
|
139681
139759
|
// packages/omo-opencode/src/tools/task/types.ts
|
|
139682
|
-
import { z as
|
|
139683
|
-
var TaskStatusSchema =
|
|
139684
|
-
var TaskObjectSchema =
|
|
139685
|
-
id:
|
|
139686
|
-
subject:
|
|
139687
|
-
description:
|
|
139760
|
+
import { z as z58 } from "zod";
|
|
139761
|
+
var TaskStatusSchema = z58.enum(["pending", "in_progress", "completed", "deleted"]);
|
|
139762
|
+
var TaskObjectSchema = z58.object({
|
|
139763
|
+
id: z58.string(),
|
|
139764
|
+
subject: z58.string(),
|
|
139765
|
+
description: z58.string(),
|
|
139688
139766
|
status: TaskStatusSchema,
|
|
139689
|
-
activeForm:
|
|
139690
|
-
blocks:
|
|
139691
|
-
blockedBy:
|
|
139692
|
-
owner:
|
|
139693
|
-
metadata:
|
|
139694
|
-
repoURL:
|
|
139695
|
-
parentID:
|
|
139696
|
-
threadID:
|
|
139767
|
+
activeForm: z58.string().optional(),
|
|
139768
|
+
blocks: z58.array(z58.string()).default([]),
|
|
139769
|
+
blockedBy: z58.array(z58.string()).default([]),
|
|
139770
|
+
owner: z58.string().optional(),
|
|
139771
|
+
metadata: z58.record(z58.string(), z58.unknown()).optional(),
|
|
139772
|
+
repoURL: z58.string().optional(),
|
|
139773
|
+
parentID: z58.string().optional(),
|
|
139774
|
+
threadID: z58.string()
|
|
139697
139775
|
}).strict();
|
|
139698
|
-
var TaskCreateInputSchema =
|
|
139699
|
-
subject:
|
|
139700
|
-
description:
|
|
139701
|
-
activeForm:
|
|
139702
|
-
blocks:
|
|
139703
|
-
blockedBy:
|
|
139704
|
-
owner:
|
|
139705
|
-
metadata:
|
|
139706
|
-
repoURL:
|
|
139707
|
-
parentID:
|
|
139776
|
+
var TaskCreateInputSchema = z58.object({
|
|
139777
|
+
subject: z58.string(),
|
|
139778
|
+
description: z58.string().optional(),
|
|
139779
|
+
activeForm: z58.string().optional(),
|
|
139780
|
+
blocks: z58.array(z58.string()).optional(),
|
|
139781
|
+
blockedBy: z58.array(z58.string()).optional(),
|
|
139782
|
+
owner: z58.string().optional(),
|
|
139783
|
+
metadata: z58.record(z58.string(), z58.unknown()).optional(),
|
|
139784
|
+
repoURL: z58.string().optional(),
|
|
139785
|
+
parentID: z58.string().optional()
|
|
139708
139786
|
});
|
|
139709
|
-
var TaskListInputSchema =
|
|
139787
|
+
var TaskListInputSchema = z58.object({
|
|
139710
139788
|
status: TaskStatusSchema.optional(),
|
|
139711
|
-
parentID:
|
|
139789
|
+
parentID: z58.string().optional()
|
|
139712
139790
|
});
|
|
139713
|
-
var TaskGetInputSchema =
|
|
139714
|
-
id:
|
|
139791
|
+
var TaskGetInputSchema = z58.object({
|
|
139792
|
+
id: z58.string()
|
|
139715
139793
|
});
|
|
139716
|
-
var TaskUpdateInputSchema =
|
|
139717
|
-
id:
|
|
139718
|
-
subject:
|
|
139719
|
-
description:
|
|
139794
|
+
var TaskUpdateInputSchema = z58.object({
|
|
139795
|
+
id: z58.string(),
|
|
139796
|
+
subject: z58.string().optional(),
|
|
139797
|
+
description: z58.string().optional(),
|
|
139720
139798
|
status: TaskStatusSchema.optional(),
|
|
139721
|
-
activeForm:
|
|
139722
|
-
addBlocks:
|
|
139723
|
-
addBlockedBy:
|
|
139724
|
-
owner:
|
|
139725
|
-
metadata:
|
|
139726
|
-
repoURL:
|
|
139727
|
-
parentID:
|
|
139799
|
+
activeForm: z58.string().optional(),
|
|
139800
|
+
addBlocks: z58.array(z58.string()).optional(),
|
|
139801
|
+
addBlockedBy: z58.array(z58.string()).optional(),
|
|
139802
|
+
owner: z58.string().optional(),
|
|
139803
|
+
metadata: z58.record(z58.string(), z58.unknown()).optional(),
|
|
139804
|
+
repoURL: z58.string().optional(),
|
|
139805
|
+
parentID: z58.string().optional()
|
|
139728
139806
|
});
|
|
139729
|
-
var TaskDeleteInputSchema =
|
|
139730
|
-
id:
|
|
139807
|
+
var TaskDeleteInputSchema = z58.object({
|
|
139808
|
+
id: z58.string()
|
|
139731
139809
|
});
|
|
139732
139810
|
|
|
139733
139811
|
// packages/omo-opencode/src/features/claude-tasks/storage.ts
|
|
@@ -140628,7 +140706,7 @@ function createHashlineEditTool(ctx) {
|
|
|
140628
140706
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
140629
140707
|
import { randomUUID as randomUUID11 } from "crypto";
|
|
140630
140708
|
init_logger2();
|
|
140631
|
-
import { z as
|
|
140709
|
+
import { z as z59 } from "zod";
|
|
140632
140710
|
|
|
140633
140711
|
// packages/team-core/src/team-mailbox/send.ts
|
|
140634
140712
|
init_paths();
|
|
@@ -141209,18 +141287,18 @@ async function resolveTeamRuntimeDetails(teamRunId, sessionID, config, deps) {
|
|
|
141209
141287
|
|
|
141210
141288
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
141211
141289
|
var MESSAGE_TOOL_KINDS = ["message", "announcement"];
|
|
141212
|
-
var TeamReferenceArgsSchema =
|
|
141213
|
-
path:
|
|
141214
|
-
description:
|
|
141290
|
+
var TeamReferenceArgsSchema = z59.object({
|
|
141291
|
+
path: z59.string().min(1),
|
|
141292
|
+
description: z59.string().optional()
|
|
141215
141293
|
});
|
|
141216
|
-
var TeamSendMessageArgsSchema =
|
|
141217
|
-
teamRunId:
|
|
141218
|
-
to:
|
|
141219
|
-
body:
|
|
141220
|
-
kind:
|
|
141221
|
-
correlationId:
|
|
141222
|
-
summary:
|
|
141223
|
-
references:
|
|
141294
|
+
var TeamSendMessageArgsSchema = z59.object({
|
|
141295
|
+
teamRunId: z59.string().min(1),
|
|
141296
|
+
to: z59.string().min(1),
|
|
141297
|
+
body: z59.string(),
|
|
141298
|
+
kind: z59.enum(MESSAGE_TOOL_KINDS).optional(),
|
|
141299
|
+
correlationId: z59.preprocess((value) => value === "" ? undefined : value, z59.uuid().optional()),
|
|
141300
|
+
summary: z59.string().optional(),
|
|
141301
|
+
references: z59.array(TeamReferenceArgsSchema).optional()
|
|
141224
141302
|
});
|
|
141225
141303
|
function createTeamSendMessageTool(config, client, deps = defaultTeamSendMessageToolDeps) {
|
|
141226
141304
|
return tool({
|
|
@@ -150127,63 +150205,63 @@ function getLiteralValue(schema) {
|
|
|
150127
150205
|
}
|
|
150128
150206
|
|
|
150129
150207
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
150130
|
-
import * as
|
|
150208
|
+
import * as z60 from "zod/v4";
|
|
150131
150209
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
150132
150210
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
150133
150211
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
150134
150212
|
var JSONRPC_VERSION = "2.0";
|
|
150135
|
-
var AssertObjectSchema =
|
|
150136
|
-
var ProgressTokenSchema =
|
|
150137
|
-
var CursorSchema =
|
|
150138
|
-
var TaskCreationParamsSchema =
|
|
150139
|
-
ttl:
|
|
150140
|
-
pollInterval:
|
|
150213
|
+
var AssertObjectSchema = z60.custom((v) => v !== null && (typeof v === "object" || typeof v === "function"));
|
|
150214
|
+
var ProgressTokenSchema = z60.union([z60.string(), z60.number().int()]);
|
|
150215
|
+
var CursorSchema = z60.string();
|
|
150216
|
+
var TaskCreationParamsSchema = z60.looseObject({
|
|
150217
|
+
ttl: z60.number().optional(),
|
|
150218
|
+
pollInterval: z60.number().optional()
|
|
150141
150219
|
});
|
|
150142
|
-
var TaskMetadataSchema =
|
|
150143
|
-
ttl:
|
|
150220
|
+
var TaskMetadataSchema = z60.object({
|
|
150221
|
+
ttl: z60.number().optional()
|
|
150144
150222
|
});
|
|
150145
|
-
var RelatedTaskMetadataSchema =
|
|
150146
|
-
taskId:
|
|
150223
|
+
var RelatedTaskMetadataSchema = z60.object({
|
|
150224
|
+
taskId: z60.string()
|
|
150147
150225
|
});
|
|
150148
|
-
var RequestMetaSchema =
|
|
150226
|
+
var RequestMetaSchema = z60.looseObject({
|
|
150149
150227
|
progressToken: ProgressTokenSchema.optional(),
|
|
150150
150228
|
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
|
150151
150229
|
});
|
|
150152
|
-
var BaseRequestParamsSchema =
|
|
150230
|
+
var BaseRequestParamsSchema = z60.object({
|
|
150153
150231
|
_meta: RequestMetaSchema.optional()
|
|
150154
150232
|
});
|
|
150155
150233
|
var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150156
150234
|
task: TaskMetadataSchema.optional()
|
|
150157
150235
|
});
|
|
150158
150236
|
var isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success;
|
|
150159
|
-
var RequestSchema =
|
|
150160
|
-
method:
|
|
150237
|
+
var RequestSchema = z60.object({
|
|
150238
|
+
method: z60.string(),
|
|
150161
150239
|
params: BaseRequestParamsSchema.loose().optional()
|
|
150162
150240
|
});
|
|
150163
|
-
var NotificationsParamsSchema =
|
|
150241
|
+
var NotificationsParamsSchema = z60.object({
|
|
150164
150242
|
_meta: RequestMetaSchema.optional()
|
|
150165
150243
|
});
|
|
150166
|
-
var NotificationSchema =
|
|
150167
|
-
method:
|
|
150244
|
+
var NotificationSchema = z60.object({
|
|
150245
|
+
method: z60.string(),
|
|
150168
150246
|
params: NotificationsParamsSchema.loose().optional()
|
|
150169
150247
|
});
|
|
150170
|
-
var ResultSchema =
|
|
150248
|
+
var ResultSchema = z60.looseObject({
|
|
150171
150249
|
_meta: RequestMetaSchema.optional()
|
|
150172
150250
|
});
|
|
150173
|
-
var RequestIdSchema =
|
|
150174
|
-
var JSONRPCRequestSchema =
|
|
150175
|
-
jsonrpc:
|
|
150251
|
+
var RequestIdSchema = z60.union([z60.string(), z60.number().int()]);
|
|
150252
|
+
var JSONRPCRequestSchema = z60.object({
|
|
150253
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150176
150254
|
id: RequestIdSchema,
|
|
150177
150255
|
...RequestSchema.shape
|
|
150178
150256
|
}).strict();
|
|
150179
150257
|
var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
|
150180
|
-
var JSONRPCNotificationSchema =
|
|
150181
|
-
jsonrpc:
|
|
150258
|
+
var JSONRPCNotificationSchema = z60.object({
|
|
150259
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150182
150260
|
...NotificationSchema.shape
|
|
150183
150261
|
}).strict();
|
|
150184
150262
|
var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
|
150185
|
-
var JSONRPCResultResponseSchema =
|
|
150186
|
-
jsonrpc:
|
|
150263
|
+
var JSONRPCResultResponseSchema = z60.object({
|
|
150264
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150187
150265
|
id: RequestIdSchema,
|
|
150188
150266
|
result: ResultSchema
|
|
150189
150267
|
}).strict();
|
|
@@ -150199,153 +150277,153 @@ var ErrorCode;
|
|
|
150199
150277
|
ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError";
|
|
150200
150278
|
ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
|
|
150201
150279
|
})(ErrorCode || (ErrorCode = {}));
|
|
150202
|
-
var JSONRPCErrorResponseSchema =
|
|
150203
|
-
jsonrpc:
|
|
150280
|
+
var JSONRPCErrorResponseSchema = z60.object({
|
|
150281
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150204
150282
|
id: RequestIdSchema.optional(),
|
|
150205
|
-
error:
|
|
150206
|
-
code:
|
|
150207
|
-
message:
|
|
150208
|
-
data:
|
|
150283
|
+
error: z60.object({
|
|
150284
|
+
code: z60.number().int(),
|
|
150285
|
+
message: z60.string(),
|
|
150286
|
+
data: z60.unknown().optional()
|
|
150209
150287
|
})
|
|
150210
150288
|
}).strict();
|
|
150211
150289
|
var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
|
|
150212
|
-
var JSONRPCMessageSchema =
|
|
150290
|
+
var JSONRPCMessageSchema = z60.union([
|
|
150213
150291
|
JSONRPCRequestSchema,
|
|
150214
150292
|
JSONRPCNotificationSchema,
|
|
150215
150293
|
JSONRPCResultResponseSchema,
|
|
150216
150294
|
JSONRPCErrorResponseSchema
|
|
150217
150295
|
]);
|
|
150218
|
-
var JSONRPCResponseSchema =
|
|
150296
|
+
var JSONRPCResponseSchema = z60.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
|
150219
150297
|
var EmptyResultSchema = ResultSchema.strict();
|
|
150220
150298
|
var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150221
150299
|
requestId: RequestIdSchema.optional(),
|
|
150222
|
-
reason:
|
|
150300
|
+
reason: z60.string().optional()
|
|
150223
150301
|
});
|
|
150224
150302
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
150225
|
-
method:
|
|
150303
|
+
method: z60.literal("notifications/cancelled"),
|
|
150226
150304
|
params: CancelledNotificationParamsSchema
|
|
150227
150305
|
});
|
|
150228
|
-
var IconSchema =
|
|
150229
|
-
src:
|
|
150230
|
-
mimeType:
|
|
150231
|
-
sizes:
|
|
150232
|
-
theme:
|
|
150306
|
+
var IconSchema = z60.object({
|
|
150307
|
+
src: z60.string(),
|
|
150308
|
+
mimeType: z60.string().optional(),
|
|
150309
|
+
sizes: z60.array(z60.string()).optional(),
|
|
150310
|
+
theme: z60.enum(["light", "dark"]).optional()
|
|
150233
150311
|
});
|
|
150234
|
-
var IconsSchema =
|
|
150235
|
-
icons:
|
|
150312
|
+
var IconsSchema = z60.object({
|
|
150313
|
+
icons: z60.array(IconSchema).optional()
|
|
150236
150314
|
});
|
|
150237
|
-
var BaseMetadataSchema =
|
|
150238
|
-
name:
|
|
150239
|
-
title:
|
|
150315
|
+
var BaseMetadataSchema = z60.object({
|
|
150316
|
+
name: z60.string(),
|
|
150317
|
+
title: z60.string().optional()
|
|
150240
150318
|
});
|
|
150241
150319
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
150242
150320
|
...BaseMetadataSchema.shape,
|
|
150243
150321
|
...IconsSchema.shape,
|
|
150244
|
-
version:
|
|
150245
|
-
websiteUrl:
|
|
150246
|
-
description:
|
|
150322
|
+
version: z60.string(),
|
|
150323
|
+
websiteUrl: z60.string().optional(),
|
|
150324
|
+
description: z60.string().optional()
|
|
150247
150325
|
});
|
|
150248
|
-
var FormElicitationCapabilitySchema =
|
|
150249
|
-
applyDefaults:
|
|
150250
|
-
}),
|
|
150251
|
-
var ElicitationCapabilitySchema =
|
|
150326
|
+
var FormElicitationCapabilitySchema = z60.intersection(z60.object({
|
|
150327
|
+
applyDefaults: z60.boolean().optional()
|
|
150328
|
+
}), z60.record(z60.string(), z60.unknown()));
|
|
150329
|
+
var ElicitationCapabilitySchema = z60.preprocess((value) => {
|
|
150252
150330
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
150253
150331
|
if (Object.keys(value).length === 0) {
|
|
150254
150332
|
return { form: {} };
|
|
150255
150333
|
}
|
|
150256
150334
|
}
|
|
150257
150335
|
return value;
|
|
150258
|
-
},
|
|
150336
|
+
}, z60.intersection(z60.object({
|
|
150259
150337
|
form: FormElicitationCapabilitySchema.optional(),
|
|
150260
150338
|
url: AssertObjectSchema.optional()
|
|
150261
|
-
}),
|
|
150262
|
-
var ClientTasksCapabilitySchema =
|
|
150339
|
+
}), z60.record(z60.string(), z60.unknown()).optional()));
|
|
150340
|
+
var ClientTasksCapabilitySchema = z60.looseObject({
|
|
150263
150341
|
list: AssertObjectSchema.optional(),
|
|
150264
150342
|
cancel: AssertObjectSchema.optional(),
|
|
150265
|
-
requests:
|
|
150266
|
-
sampling:
|
|
150343
|
+
requests: z60.looseObject({
|
|
150344
|
+
sampling: z60.looseObject({
|
|
150267
150345
|
createMessage: AssertObjectSchema.optional()
|
|
150268
150346
|
}).optional(),
|
|
150269
|
-
elicitation:
|
|
150347
|
+
elicitation: z60.looseObject({
|
|
150270
150348
|
create: AssertObjectSchema.optional()
|
|
150271
150349
|
}).optional()
|
|
150272
150350
|
}).optional()
|
|
150273
150351
|
});
|
|
150274
|
-
var ServerTasksCapabilitySchema =
|
|
150352
|
+
var ServerTasksCapabilitySchema = z60.looseObject({
|
|
150275
150353
|
list: AssertObjectSchema.optional(),
|
|
150276
150354
|
cancel: AssertObjectSchema.optional(),
|
|
150277
|
-
requests:
|
|
150278
|
-
tools:
|
|
150355
|
+
requests: z60.looseObject({
|
|
150356
|
+
tools: z60.looseObject({
|
|
150279
150357
|
call: AssertObjectSchema.optional()
|
|
150280
150358
|
}).optional()
|
|
150281
150359
|
}).optional()
|
|
150282
150360
|
});
|
|
150283
|
-
var ClientCapabilitiesSchema =
|
|
150284
|
-
experimental:
|
|
150285
|
-
sampling:
|
|
150361
|
+
var ClientCapabilitiesSchema = z60.object({
|
|
150362
|
+
experimental: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150363
|
+
sampling: z60.object({
|
|
150286
150364
|
context: AssertObjectSchema.optional(),
|
|
150287
150365
|
tools: AssertObjectSchema.optional()
|
|
150288
150366
|
}).optional(),
|
|
150289
150367
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
150290
|
-
roots:
|
|
150291
|
-
listChanged:
|
|
150368
|
+
roots: z60.object({
|
|
150369
|
+
listChanged: z60.boolean().optional()
|
|
150292
150370
|
}).optional(),
|
|
150293
150371
|
tasks: ClientTasksCapabilitySchema.optional(),
|
|
150294
|
-
extensions:
|
|
150372
|
+
extensions: z60.record(z60.string(), AssertObjectSchema).optional()
|
|
150295
150373
|
});
|
|
150296
150374
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150297
|
-
protocolVersion:
|
|
150375
|
+
protocolVersion: z60.string(),
|
|
150298
150376
|
capabilities: ClientCapabilitiesSchema,
|
|
150299
150377
|
clientInfo: ImplementationSchema
|
|
150300
150378
|
});
|
|
150301
150379
|
var InitializeRequestSchema = RequestSchema.extend({
|
|
150302
|
-
method:
|
|
150380
|
+
method: z60.literal("initialize"),
|
|
150303
150381
|
params: InitializeRequestParamsSchema
|
|
150304
150382
|
});
|
|
150305
|
-
var ServerCapabilitiesSchema =
|
|
150306
|
-
experimental:
|
|
150383
|
+
var ServerCapabilitiesSchema = z60.object({
|
|
150384
|
+
experimental: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150307
150385
|
logging: AssertObjectSchema.optional(),
|
|
150308
150386
|
completions: AssertObjectSchema.optional(),
|
|
150309
|
-
prompts:
|
|
150310
|
-
listChanged:
|
|
150387
|
+
prompts: z60.object({
|
|
150388
|
+
listChanged: z60.boolean().optional()
|
|
150311
150389
|
}).optional(),
|
|
150312
|
-
resources:
|
|
150313
|
-
subscribe:
|
|
150314
|
-
listChanged:
|
|
150390
|
+
resources: z60.object({
|
|
150391
|
+
subscribe: z60.boolean().optional(),
|
|
150392
|
+
listChanged: z60.boolean().optional()
|
|
150315
150393
|
}).optional(),
|
|
150316
|
-
tools:
|
|
150317
|
-
listChanged:
|
|
150394
|
+
tools: z60.object({
|
|
150395
|
+
listChanged: z60.boolean().optional()
|
|
150318
150396
|
}).optional(),
|
|
150319
150397
|
tasks: ServerTasksCapabilitySchema.optional(),
|
|
150320
|
-
extensions:
|
|
150398
|
+
extensions: z60.record(z60.string(), AssertObjectSchema).optional()
|
|
150321
150399
|
});
|
|
150322
150400
|
var InitializeResultSchema = ResultSchema.extend({
|
|
150323
|
-
protocolVersion:
|
|
150401
|
+
protocolVersion: z60.string(),
|
|
150324
150402
|
capabilities: ServerCapabilitiesSchema,
|
|
150325
150403
|
serverInfo: ImplementationSchema,
|
|
150326
|
-
instructions:
|
|
150404
|
+
instructions: z60.string().optional()
|
|
150327
150405
|
});
|
|
150328
150406
|
var InitializedNotificationSchema = NotificationSchema.extend({
|
|
150329
|
-
method:
|
|
150407
|
+
method: z60.literal("notifications/initialized"),
|
|
150330
150408
|
params: NotificationsParamsSchema.optional()
|
|
150331
150409
|
});
|
|
150332
150410
|
var isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success;
|
|
150333
150411
|
var PingRequestSchema = RequestSchema.extend({
|
|
150334
|
-
method:
|
|
150412
|
+
method: z60.literal("ping"),
|
|
150335
150413
|
params: BaseRequestParamsSchema.optional()
|
|
150336
150414
|
});
|
|
150337
|
-
var ProgressSchema =
|
|
150338
|
-
progress:
|
|
150339
|
-
total:
|
|
150340
|
-
message:
|
|
150415
|
+
var ProgressSchema = z60.object({
|
|
150416
|
+
progress: z60.number(),
|
|
150417
|
+
total: z60.optional(z60.number()),
|
|
150418
|
+
message: z60.optional(z60.string())
|
|
150341
150419
|
});
|
|
150342
|
-
var ProgressNotificationParamsSchema =
|
|
150420
|
+
var ProgressNotificationParamsSchema = z60.object({
|
|
150343
150421
|
...NotificationsParamsSchema.shape,
|
|
150344
150422
|
...ProgressSchema.shape,
|
|
150345
150423
|
progressToken: ProgressTokenSchema
|
|
150346
150424
|
});
|
|
150347
150425
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
150348
|
-
method:
|
|
150426
|
+
method: z60.literal("notifications/progress"),
|
|
150349
150427
|
params: ProgressNotificationParamsSchema
|
|
150350
150428
|
});
|
|
150351
150429
|
var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
@@ -150357,60 +150435,60 @@ var PaginatedRequestSchema = RequestSchema.extend({
|
|
|
150357
150435
|
var PaginatedResultSchema = ResultSchema.extend({
|
|
150358
150436
|
nextCursor: CursorSchema.optional()
|
|
150359
150437
|
});
|
|
150360
|
-
var TaskStatusSchema2 =
|
|
150361
|
-
var TaskSchema2 =
|
|
150362
|
-
taskId:
|
|
150438
|
+
var TaskStatusSchema2 = z60.enum(["working", "input_required", "completed", "failed", "cancelled"]);
|
|
150439
|
+
var TaskSchema2 = z60.object({
|
|
150440
|
+
taskId: z60.string(),
|
|
150363
150441
|
status: TaskStatusSchema2,
|
|
150364
|
-
ttl:
|
|
150365
|
-
createdAt:
|
|
150366
|
-
lastUpdatedAt:
|
|
150367
|
-
pollInterval:
|
|
150368
|
-
statusMessage:
|
|
150442
|
+
ttl: z60.union([z60.number(), z60.null()]),
|
|
150443
|
+
createdAt: z60.string(),
|
|
150444
|
+
lastUpdatedAt: z60.string(),
|
|
150445
|
+
pollInterval: z60.optional(z60.number()),
|
|
150446
|
+
statusMessage: z60.optional(z60.string())
|
|
150369
150447
|
});
|
|
150370
150448
|
var CreateTaskResultSchema = ResultSchema.extend({
|
|
150371
150449
|
task: TaskSchema2
|
|
150372
150450
|
});
|
|
150373
150451
|
var TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema2);
|
|
150374
150452
|
var TaskStatusNotificationSchema = NotificationSchema.extend({
|
|
150375
|
-
method:
|
|
150453
|
+
method: z60.literal("notifications/tasks/status"),
|
|
150376
150454
|
params: TaskStatusNotificationParamsSchema
|
|
150377
150455
|
});
|
|
150378
150456
|
var GetTaskRequestSchema = RequestSchema.extend({
|
|
150379
|
-
method:
|
|
150457
|
+
method: z60.literal("tasks/get"),
|
|
150380
150458
|
params: BaseRequestParamsSchema.extend({
|
|
150381
|
-
taskId:
|
|
150459
|
+
taskId: z60.string()
|
|
150382
150460
|
})
|
|
150383
150461
|
});
|
|
150384
150462
|
var GetTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
150385
150463
|
var GetTaskPayloadRequestSchema = RequestSchema.extend({
|
|
150386
|
-
method:
|
|
150464
|
+
method: z60.literal("tasks/result"),
|
|
150387
150465
|
params: BaseRequestParamsSchema.extend({
|
|
150388
|
-
taskId:
|
|
150466
|
+
taskId: z60.string()
|
|
150389
150467
|
})
|
|
150390
150468
|
});
|
|
150391
150469
|
var GetTaskPayloadResultSchema = ResultSchema.loose();
|
|
150392
150470
|
var ListTasksRequestSchema = PaginatedRequestSchema.extend({
|
|
150393
|
-
method:
|
|
150471
|
+
method: z60.literal("tasks/list")
|
|
150394
150472
|
});
|
|
150395
150473
|
var ListTasksResultSchema = PaginatedResultSchema.extend({
|
|
150396
|
-
tasks:
|
|
150474
|
+
tasks: z60.array(TaskSchema2)
|
|
150397
150475
|
});
|
|
150398
150476
|
var CancelTaskRequestSchema = RequestSchema.extend({
|
|
150399
|
-
method:
|
|
150477
|
+
method: z60.literal("tasks/cancel"),
|
|
150400
150478
|
params: BaseRequestParamsSchema.extend({
|
|
150401
|
-
taskId:
|
|
150479
|
+
taskId: z60.string()
|
|
150402
150480
|
})
|
|
150403
150481
|
});
|
|
150404
150482
|
var CancelTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
150405
|
-
var ResourceContentsSchema =
|
|
150406
|
-
uri:
|
|
150407
|
-
mimeType:
|
|
150408
|
-
_meta:
|
|
150483
|
+
var ResourceContentsSchema = z60.object({
|
|
150484
|
+
uri: z60.string(),
|
|
150485
|
+
mimeType: z60.optional(z60.string()),
|
|
150486
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150409
150487
|
});
|
|
150410
150488
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
150411
|
-
text:
|
|
150489
|
+
text: z60.string()
|
|
150412
150490
|
});
|
|
150413
|
-
var Base64Schema =
|
|
150491
|
+
var Base64Schema = z60.string().refine((val) => {
|
|
150414
150492
|
try {
|
|
150415
150493
|
atob(val);
|
|
150416
150494
|
return true;
|
|
@@ -150421,447 +150499,447 @@ var Base64Schema = z59.string().refine((val) => {
|
|
|
150421
150499
|
var BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
150422
150500
|
blob: Base64Schema
|
|
150423
150501
|
});
|
|
150424
|
-
var RoleSchema =
|
|
150425
|
-
var AnnotationsSchema =
|
|
150426
|
-
audience:
|
|
150427
|
-
priority:
|
|
150428
|
-
lastModified:
|
|
150502
|
+
var RoleSchema = z60.enum(["user", "assistant"]);
|
|
150503
|
+
var AnnotationsSchema = z60.object({
|
|
150504
|
+
audience: z60.array(RoleSchema).optional(),
|
|
150505
|
+
priority: z60.number().min(0).max(1).optional(),
|
|
150506
|
+
lastModified: z60.iso.datetime({ offset: true }).optional()
|
|
150429
150507
|
});
|
|
150430
|
-
var ResourceSchema =
|
|
150508
|
+
var ResourceSchema = z60.object({
|
|
150431
150509
|
...BaseMetadataSchema.shape,
|
|
150432
150510
|
...IconsSchema.shape,
|
|
150433
|
-
uri:
|
|
150434
|
-
description:
|
|
150435
|
-
mimeType:
|
|
150436
|
-
size:
|
|
150511
|
+
uri: z60.string(),
|
|
150512
|
+
description: z60.optional(z60.string()),
|
|
150513
|
+
mimeType: z60.optional(z60.string()),
|
|
150514
|
+
size: z60.optional(z60.number()),
|
|
150437
150515
|
annotations: AnnotationsSchema.optional(),
|
|
150438
|
-
_meta:
|
|
150516
|
+
_meta: z60.optional(z60.looseObject({}))
|
|
150439
150517
|
});
|
|
150440
|
-
var ResourceTemplateSchema =
|
|
150518
|
+
var ResourceTemplateSchema = z60.object({
|
|
150441
150519
|
...BaseMetadataSchema.shape,
|
|
150442
150520
|
...IconsSchema.shape,
|
|
150443
|
-
uriTemplate:
|
|
150444
|
-
description:
|
|
150445
|
-
mimeType:
|
|
150521
|
+
uriTemplate: z60.string(),
|
|
150522
|
+
description: z60.optional(z60.string()),
|
|
150523
|
+
mimeType: z60.optional(z60.string()),
|
|
150446
150524
|
annotations: AnnotationsSchema.optional(),
|
|
150447
|
-
_meta:
|
|
150525
|
+
_meta: z60.optional(z60.looseObject({}))
|
|
150448
150526
|
});
|
|
150449
150527
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
150450
|
-
method:
|
|
150528
|
+
method: z60.literal("resources/list")
|
|
150451
150529
|
});
|
|
150452
150530
|
var ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
150453
|
-
resources:
|
|
150531
|
+
resources: z60.array(ResourceSchema)
|
|
150454
150532
|
});
|
|
150455
150533
|
var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
150456
|
-
method:
|
|
150534
|
+
method: z60.literal("resources/templates/list")
|
|
150457
150535
|
});
|
|
150458
150536
|
var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
150459
|
-
resourceTemplates:
|
|
150537
|
+
resourceTemplates: z60.array(ResourceTemplateSchema)
|
|
150460
150538
|
});
|
|
150461
150539
|
var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150462
|
-
uri:
|
|
150540
|
+
uri: z60.string()
|
|
150463
150541
|
});
|
|
150464
150542
|
var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
|
150465
150543
|
var ReadResourceRequestSchema = RequestSchema.extend({
|
|
150466
|
-
method:
|
|
150544
|
+
method: z60.literal("resources/read"),
|
|
150467
150545
|
params: ReadResourceRequestParamsSchema
|
|
150468
150546
|
});
|
|
150469
150547
|
var ReadResourceResultSchema = ResultSchema.extend({
|
|
150470
|
-
contents:
|
|
150548
|
+
contents: z60.array(z60.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
150471
150549
|
});
|
|
150472
150550
|
var ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
150473
|
-
method:
|
|
150551
|
+
method: z60.literal("notifications/resources/list_changed"),
|
|
150474
150552
|
params: NotificationsParamsSchema.optional()
|
|
150475
150553
|
});
|
|
150476
150554
|
var SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
150477
150555
|
var SubscribeRequestSchema = RequestSchema.extend({
|
|
150478
|
-
method:
|
|
150556
|
+
method: z60.literal("resources/subscribe"),
|
|
150479
150557
|
params: SubscribeRequestParamsSchema
|
|
150480
150558
|
});
|
|
150481
150559
|
var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
150482
150560
|
var UnsubscribeRequestSchema = RequestSchema.extend({
|
|
150483
|
-
method:
|
|
150561
|
+
method: z60.literal("resources/unsubscribe"),
|
|
150484
150562
|
params: UnsubscribeRequestParamsSchema
|
|
150485
150563
|
});
|
|
150486
150564
|
var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150487
|
-
uri:
|
|
150565
|
+
uri: z60.string()
|
|
150488
150566
|
});
|
|
150489
150567
|
var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
150490
|
-
method:
|
|
150568
|
+
method: z60.literal("notifications/resources/updated"),
|
|
150491
150569
|
params: ResourceUpdatedNotificationParamsSchema
|
|
150492
150570
|
});
|
|
150493
|
-
var PromptArgumentSchema =
|
|
150494
|
-
name:
|
|
150495
|
-
description:
|
|
150496
|
-
required:
|
|
150571
|
+
var PromptArgumentSchema = z60.object({
|
|
150572
|
+
name: z60.string(),
|
|
150573
|
+
description: z60.optional(z60.string()),
|
|
150574
|
+
required: z60.optional(z60.boolean())
|
|
150497
150575
|
});
|
|
150498
|
-
var PromptSchema =
|
|
150576
|
+
var PromptSchema = z60.object({
|
|
150499
150577
|
...BaseMetadataSchema.shape,
|
|
150500
150578
|
...IconsSchema.shape,
|
|
150501
|
-
description:
|
|
150502
|
-
arguments:
|
|
150503
|
-
_meta:
|
|
150579
|
+
description: z60.optional(z60.string()),
|
|
150580
|
+
arguments: z60.optional(z60.array(PromptArgumentSchema)),
|
|
150581
|
+
_meta: z60.optional(z60.looseObject({}))
|
|
150504
150582
|
});
|
|
150505
150583
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
150506
|
-
method:
|
|
150584
|
+
method: z60.literal("prompts/list")
|
|
150507
150585
|
});
|
|
150508
150586
|
var ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
150509
|
-
prompts:
|
|
150587
|
+
prompts: z60.array(PromptSchema)
|
|
150510
150588
|
});
|
|
150511
150589
|
var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150512
|
-
name:
|
|
150513
|
-
arguments:
|
|
150590
|
+
name: z60.string(),
|
|
150591
|
+
arguments: z60.record(z60.string(), z60.string()).optional()
|
|
150514
150592
|
});
|
|
150515
150593
|
var GetPromptRequestSchema = RequestSchema.extend({
|
|
150516
|
-
method:
|
|
150594
|
+
method: z60.literal("prompts/get"),
|
|
150517
150595
|
params: GetPromptRequestParamsSchema
|
|
150518
150596
|
});
|
|
150519
|
-
var TextContentSchema =
|
|
150520
|
-
type:
|
|
150521
|
-
text:
|
|
150597
|
+
var TextContentSchema = z60.object({
|
|
150598
|
+
type: z60.literal("text"),
|
|
150599
|
+
text: z60.string(),
|
|
150522
150600
|
annotations: AnnotationsSchema.optional(),
|
|
150523
|
-
_meta:
|
|
150601
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150524
150602
|
});
|
|
150525
|
-
var ImageContentSchema =
|
|
150526
|
-
type:
|
|
150603
|
+
var ImageContentSchema = z60.object({
|
|
150604
|
+
type: z60.literal("image"),
|
|
150527
150605
|
data: Base64Schema,
|
|
150528
|
-
mimeType:
|
|
150606
|
+
mimeType: z60.string(),
|
|
150529
150607
|
annotations: AnnotationsSchema.optional(),
|
|
150530
|
-
_meta:
|
|
150608
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150531
150609
|
});
|
|
150532
|
-
var AudioContentSchema =
|
|
150533
|
-
type:
|
|
150610
|
+
var AudioContentSchema = z60.object({
|
|
150611
|
+
type: z60.literal("audio"),
|
|
150534
150612
|
data: Base64Schema,
|
|
150535
|
-
mimeType:
|
|
150613
|
+
mimeType: z60.string(),
|
|
150536
150614
|
annotations: AnnotationsSchema.optional(),
|
|
150537
|
-
_meta:
|
|
150615
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150538
150616
|
});
|
|
150539
|
-
var ToolUseContentSchema =
|
|
150540
|
-
type:
|
|
150541
|
-
name:
|
|
150542
|
-
id:
|
|
150543
|
-
input:
|
|
150544
|
-
_meta:
|
|
150617
|
+
var ToolUseContentSchema = z60.object({
|
|
150618
|
+
type: z60.literal("tool_use"),
|
|
150619
|
+
name: z60.string(),
|
|
150620
|
+
id: z60.string(),
|
|
150621
|
+
input: z60.record(z60.string(), z60.unknown()),
|
|
150622
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150545
150623
|
});
|
|
150546
|
-
var EmbeddedResourceSchema =
|
|
150547
|
-
type:
|
|
150548
|
-
resource:
|
|
150624
|
+
var EmbeddedResourceSchema = z60.object({
|
|
150625
|
+
type: z60.literal("resource"),
|
|
150626
|
+
resource: z60.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
150549
150627
|
annotations: AnnotationsSchema.optional(),
|
|
150550
|
-
_meta:
|
|
150628
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150551
150629
|
});
|
|
150552
150630
|
var ResourceLinkSchema = ResourceSchema.extend({
|
|
150553
|
-
type:
|
|
150631
|
+
type: z60.literal("resource_link")
|
|
150554
150632
|
});
|
|
150555
|
-
var ContentBlockSchema =
|
|
150633
|
+
var ContentBlockSchema = z60.union([
|
|
150556
150634
|
TextContentSchema,
|
|
150557
150635
|
ImageContentSchema,
|
|
150558
150636
|
AudioContentSchema,
|
|
150559
150637
|
ResourceLinkSchema,
|
|
150560
150638
|
EmbeddedResourceSchema
|
|
150561
150639
|
]);
|
|
150562
|
-
var PromptMessageSchema =
|
|
150640
|
+
var PromptMessageSchema = z60.object({
|
|
150563
150641
|
role: RoleSchema,
|
|
150564
150642
|
content: ContentBlockSchema
|
|
150565
150643
|
});
|
|
150566
150644
|
var GetPromptResultSchema = ResultSchema.extend({
|
|
150567
|
-
description:
|
|
150568
|
-
messages:
|
|
150645
|
+
description: z60.string().optional(),
|
|
150646
|
+
messages: z60.array(PromptMessageSchema)
|
|
150569
150647
|
});
|
|
150570
150648
|
var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
150571
|
-
method:
|
|
150649
|
+
method: z60.literal("notifications/prompts/list_changed"),
|
|
150572
150650
|
params: NotificationsParamsSchema.optional()
|
|
150573
150651
|
});
|
|
150574
|
-
var ToolAnnotationsSchema =
|
|
150575
|
-
title:
|
|
150576
|
-
readOnlyHint:
|
|
150577
|
-
destructiveHint:
|
|
150578
|
-
idempotentHint:
|
|
150579
|
-
openWorldHint:
|
|
150652
|
+
var ToolAnnotationsSchema = z60.object({
|
|
150653
|
+
title: z60.string().optional(),
|
|
150654
|
+
readOnlyHint: z60.boolean().optional(),
|
|
150655
|
+
destructiveHint: z60.boolean().optional(),
|
|
150656
|
+
idempotentHint: z60.boolean().optional(),
|
|
150657
|
+
openWorldHint: z60.boolean().optional()
|
|
150580
150658
|
});
|
|
150581
|
-
var ToolExecutionSchema =
|
|
150582
|
-
taskSupport:
|
|
150659
|
+
var ToolExecutionSchema = z60.object({
|
|
150660
|
+
taskSupport: z60.enum(["required", "optional", "forbidden"]).optional()
|
|
150583
150661
|
});
|
|
150584
|
-
var ToolSchema =
|
|
150662
|
+
var ToolSchema = z60.object({
|
|
150585
150663
|
...BaseMetadataSchema.shape,
|
|
150586
150664
|
...IconsSchema.shape,
|
|
150587
|
-
description:
|
|
150588
|
-
inputSchema:
|
|
150589
|
-
type:
|
|
150590
|
-
properties:
|
|
150591
|
-
required:
|
|
150592
|
-
}).catchall(
|
|
150593
|
-
outputSchema:
|
|
150594
|
-
type:
|
|
150595
|
-
properties:
|
|
150596
|
-
required:
|
|
150597
|
-
}).catchall(
|
|
150665
|
+
description: z60.string().optional(),
|
|
150666
|
+
inputSchema: z60.object({
|
|
150667
|
+
type: z60.literal("object"),
|
|
150668
|
+
properties: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150669
|
+
required: z60.array(z60.string()).optional()
|
|
150670
|
+
}).catchall(z60.unknown()),
|
|
150671
|
+
outputSchema: z60.object({
|
|
150672
|
+
type: z60.literal("object"),
|
|
150673
|
+
properties: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150674
|
+
required: z60.array(z60.string()).optional()
|
|
150675
|
+
}).catchall(z60.unknown()).optional(),
|
|
150598
150676
|
annotations: ToolAnnotationsSchema.optional(),
|
|
150599
150677
|
execution: ToolExecutionSchema.optional(),
|
|
150600
|
-
_meta:
|
|
150678
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150601
150679
|
});
|
|
150602
150680
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
150603
|
-
method:
|
|
150681
|
+
method: z60.literal("tools/list")
|
|
150604
150682
|
});
|
|
150605
150683
|
var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
150606
|
-
tools:
|
|
150684
|
+
tools: z60.array(ToolSchema)
|
|
150607
150685
|
});
|
|
150608
150686
|
var CallToolResultSchema = ResultSchema.extend({
|
|
150609
|
-
content:
|
|
150610
|
-
structuredContent:
|
|
150611
|
-
isError:
|
|
150687
|
+
content: z60.array(ContentBlockSchema).default([]),
|
|
150688
|
+
structuredContent: z60.record(z60.string(), z60.unknown()).optional(),
|
|
150689
|
+
isError: z60.boolean().optional()
|
|
150612
150690
|
});
|
|
150613
150691
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
150614
|
-
toolResult:
|
|
150692
|
+
toolResult: z60.unknown()
|
|
150615
150693
|
}));
|
|
150616
150694
|
var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150617
|
-
name:
|
|
150618
|
-
arguments:
|
|
150695
|
+
name: z60.string(),
|
|
150696
|
+
arguments: z60.record(z60.string(), z60.unknown()).optional()
|
|
150619
150697
|
});
|
|
150620
150698
|
var CallToolRequestSchema = RequestSchema.extend({
|
|
150621
|
-
method:
|
|
150699
|
+
method: z60.literal("tools/call"),
|
|
150622
150700
|
params: CallToolRequestParamsSchema
|
|
150623
150701
|
});
|
|
150624
150702
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
150625
|
-
method:
|
|
150703
|
+
method: z60.literal("notifications/tools/list_changed"),
|
|
150626
150704
|
params: NotificationsParamsSchema.optional()
|
|
150627
150705
|
});
|
|
150628
|
-
var ListChangedOptionsBaseSchema =
|
|
150629
|
-
autoRefresh:
|
|
150630
|
-
debounceMs:
|
|
150706
|
+
var ListChangedOptionsBaseSchema = z60.object({
|
|
150707
|
+
autoRefresh: z60.boolean().default(true),
|
|
150708
|
+
debounceMs: z60.number().int().nonnegative().default(300)
|
|
150631
150709
|
});
|
|
150632
|
-
var LoggingLevelSchema =
|
|
150710
|
+
var LoggingLevelSchema = z60.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
150633
150711
|
var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150634
150712
|
level: LoggingLevelSchema
|
|
150635
150713
|
});
|
|
150636
150714
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
150637
|
-
method:
|
|
150715
|
+
method: z60.literal("logging/setLevel"),
|
|
150638
150716
|
params: SetLevelRequestParamsSchema
|
|
150639
150717
|
});
|
|
150640
150718
|
var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150641
150719
|
level: LoggingLevelSchema,
|
|
150642
|
-
logger:
|
|
150643
|
-
data:
|
|
150720
|
+
logger: z60.string().optional(),
|
|
150721
|
+
data: z60.unknown()
|
|
150644
150722
|
});
|
|
150645
150723
|
var LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
150646
|
-
method:
|
|
150724
|
+
method: z60.literal("notifications/message"),
|
|
150647
150725
|
params: LoggingMessageNotificationParamsSchema
|
|
150648
150726
|
});
|
|
150649
|
-
var ModelHintSchema =
|
|
150650
|
-
name:
|
|
150727
|
+
var ModelHintSchema = z60.object({
|
|
150728
|
+
name: z60.string().optional()
|
|
150651
150729
|
});
|
|
150652
|
-
var ModelPreferencesSchema =
|
|
150653
|
-
hints:
|
|
150654
|
-
costPriority:
|
|
150655
|
-
speedPriority:
|
|
150656
|
-
intelligencePriority:
|
|
150730
|
+
var ModelPreferencesSchema = z60.object({
|
|
150731
|
+
hints: z60.array(ModelHintSchema).optional(),
|
|
150732
|
+
costPriority: z60.number().min(0).max(1).optional(),
|
|
150733
|
+
speedPriority: z60.number().min(0).max(1).optional(),
|
|
150734
|
+
intelligencePriority: z60.number().min(0).max(1).optional()
|
|
150657
150735
|
});
|
|
150658
|
-
var ToolChoiceSchema =
|
|
150659
|
-
mode:
|
|
150736
|
+
var ToolChoiceSchema = z60.object({
|
|
150737
|
+
mode: z60.enum(["auto", "required", "none"]).optional()
|
|
150660
150738
|
});
|
|
150661
|
-
var ToolResultContentSchema =
|
|
150662
|
-
type:
|
|
150663
|
-
toolUseId:
|
|
150664
|
-
content:
|
|
150665
|
-
structuredContent:
|
|
150666
|
-
isError:
|
|
150667
|
-
_meta:
|
|
150739
|
+
var ToolResultContentSchema = z60.object({
|
|
150740
|
+
type: z60.literal("tool_result"),
|
|
150741
|
+
toolUseId: z60.string().describe("The unique identifier for the corresponding tool call."),
|
|
150742
|
+
content: z60.array(ContentBlockSchema).default([]),
|
|
150743
|
+
structuredContent: z60.object({}).loose().optional(),
|
|
150744
|
+
isError: z60.boolean().optional(),
|
|
150745
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150668
150746
|
});
|
|
150669
|
-
var SamplingContentSchema =
|
|
150670
|
-
var SamplingMessageContentBlockSchema =
|
|
150747
|
+
var SamplingContentSchema = z60.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]);
|
|
150748
|
+
var SamplingMessageContentBlockSchema = z60.discriminatedUnion("type", [
|
|
150671
150749
|
TextContentSchema,
|
|
150672
150750
|
ImageContentSchema,
|
|
150673
150751
|
AudioContentSchema,
|
|
150674
150752
|
ToolUseContentSchema,
|
|
150675
150753
|
ToolResultContentSchema
|
|
150676
150754
|
]);
|
|
150677
|
-
var SamplingMessageSchema =
|
|
150755
|
+
var SamplingMessageSchema = z60.object({
|
|
150678
150756
|
role: RoleSchema,
|
|
150679
|
-
content:
|
|
150680
|
-
_meta:
|
|
150757
|
+
content: z60.union([SamplingMessageContentBlockSchema, z60.array(SamplingMessageContentBlockSchema)]),
|
|
150758
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150681
150759
|
});
|
|
150682
150760
|
var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150683
|
-
messages:
|
|
150761
|
+
messages: z60.array(SamplingMessageSchema),
|
|
150684
150762
|
modelPreferences: ModelPreferencesSchema.optional(),
|
|
150685
|
-
systemPrompt:
|
|
150686
|
-
includeContext:
|
|
150687
|
-
temperature:
|
|
150688
|
-
maxTokens:
|
|
150689
|
-
stopSequences:
|
|
150763
|
+
systemPrompt: z60.string().optional(),
|
|
150764
|
+
includeContext: z60.enum(["none", "thisServer", "allServers"]).optional(),
|
|
150765
|
+
temperature: z60.number().optional(),
|
|
150766
|
+
maxTokens: z60.number().int(),
|
|
150767
|
+
stopSequences: z60.array(z60.string()).optional(),
|
|
150690
150768
|
metadata: AssertObjectSchema.optional(),
|
|
150691
|
-
tools:
|
|
150769
|
+
tools: z60.array(ToolSchema).optional(),
|
|
150692
150770
|
toolChoice: ToolChoiceSchema.optional()
|
|
150693
150771
|
});
|
|
150694
150772
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
150695
|
-
method:
|
|
150773
|
+
method: z60.literal("sampling/createMessage"),
|
|
150696
150774
|
params: CreateMessageRequestParamsSchema
|
|
150697
150775
|
});
|
|
150698
150776
|
var CreateMessageResultSchema = ResultSchema.extend({
|
|
150699
|
-
model:
|
|
150700
|
-
stopReason:
|
|
150777
|
+
model: z60.string(),
|
|
150778
|
+
stopReason: z60.optional(z60.enum(["endTurn", "stopSequence", "maxTokens"]).or(z60.string())),
|
|
150701
150779
|
role: RoleSchema,
|
|
150702
150780
|
content: SamplingContentSchema
|
|
150703
150781
|
});
|
|
150704
150782
|
var CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
150705
|
-
model:
|
|
150706
|
-
stopReason:
|
|
150783
|
+
model: z60.string(),
|
|
150784
|
+
stopReason: z60.optional(z60.enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(z60.string())),
|
|
150707
150785
|
role: RoleSchema,
|
|
150708
|
-
content:
|
|
150786
|
+
content: z60.union([SamplingMessageContentBlockSchema, z60.array(SamplingMessageContentBlockSchema)])
|
|
150709
150787
|
});
|
|
150710
|
-
var BooleanSchemaSchema =
|
|
150711
|
-
type:
|
|
150712
|
-
title:
|
|
150713
|
-
description:
|
|
150714
|
-
default:
|
|
150788
|
+
var BooleanSchemaSchema = z60.object({
|
|
150789
|
+
type: z60.literal("boolean"),
|
|
150790
|
+
title: z60.string().optional(),
|
|
150791
|
+
description: z60.string().optional(),
|
|
150792
|
+
default: z60.boolean().optional()
|
|
150715
150793
|
});
|
|
150716
|
-
var StringSchemaSchema =
|
|
150717
|
-
type:
|
|
150718
|
-
title:
|
|
150719
|
-
description:
|
|
150720
|
-
minLength:
|
|
150721
|
-
maxLength:
|
|
150722
|
-
format:
|
|
150723
|
-
default:
|
|
150794
|
+
var StringSchemaSchema = z60.object({
|
|
150795
|
+
type: z60.literal("string"),
|
|
150796
|
+
title: z60.string().optional(),
|
|
150797
|
+
description: z60.string().optional(),
|
|
150798
|
+
minLength: z60.number().optional(),
|
|
150799
|
+
maxLength: z60.number().optional(),
|
|
150800
|
+
format: z60.enum(["email", "uri", "date", "date-time"]).optional(),
|
|
150801
|
+
default: z60.string().optional()
|
|
150724
150802
|
});
|
|
150725
|
-
var NumberSchemaSchema =
|
|
150726
|
-
type:
|
|
150727
|
-
title:
|
|
150728
|
-
description:
|
|
150729
|
-
minimum:
|
|
150730
|
-
maximum:
|
|
150731
|
-
default:
|
|
150803
|
+
var NumberSchemaSchema = z60.object({
|
|
150804
|
+
type: z60.enum(["number", "integer"]),
|
|
150805
|
+
title: z60.string().optional(),
|
|
150806
|
+
description: z60.string().optional(),
|
|
150807
|
+
minimum: z60.number().optional(),
|
|
150808
|
+
maximum: z60.number().optional(),
|
|
150809
|
+
default: z60.number().optional()
|
|
150732
150810
|
});
|
|
150733
|
-
var UntitledSingleSelectEnumSchemaSchema =
|
|
150734
|
-
type:
|
|
150735
|
-
title:
|
|
150736
|
-
description:
|
|
150737
|
-
enum:
|
|
150738
|
-
default:
|
|
150811
|
+
var UntitledSingleSelectEnumSchemaSchema = z60.object({
|
|
150812
|
+
type: z60.literal("string"),
|
|
150813
|
+
title: z60.string().optional(),
|
|
150814
|
+
description: z60.string().optional(),
|
|
150815
|
+
enum: z60.array(z60.string()),
|
|
150816
|
+
default: z60.string().optional()
|
|
150739
150817
|
});
|
|
150740
|
-
var TitledSingleSelectEnumSchemaSchema =
|
|
150741
|
-
type:
|
|
150742
|
-
title:
|
|
150743
|
-
description:
|
|
150744
|
-
oneOf:
|
|
150745
|
-
const:
|
|
150746
|
-
title:
|
|
150818
|
+
var TitledSingleSelectEnumSchemaSchema = z60.object({
|
|
150819
|
+
type: z60.literal("string"),
|
|
150820
|
+
title: z60.string().optional(),
|
|
150821
|
+
description: z60.string().optional(),
|
|
150822
|
+
oneOf: z60.array(z60.object({
|
|
150823
|
+
const: z60.string(),
|
|
150824
|
+
title: z60.string()
|
|
150747
150825
|
})),
|
|
150748
|
-
default:
|
|
150826
|
+
default: z60.string().optional()
|
|
150749
150827
|
});
|
|
150750
|
-
var LegacyTitledEnumSchemaSchema =
|
|
150751
|
-
type:
|
|
150752
|
-
title:
|
|
150753
|
-
description:
|
|
150754
|
-
enum:
|
|
150755
|
-
enumNames:
|
|
150756
|
-
default:
|
|
150828
|
+
var LegacyTitledEnumSchemaSchema = z60.object({
|
|
150829
|
+
type: z60.literal("string"),
|
|
150830
|
+
title: z60.string().optional(),
|
|
150831
|
+
description: z60.string().optional(),
|
|
150832
|
+
enum: z60.array(z60.string()),
|
|
150833
|
+
enumNames: z60.array(z60.string()).optional(),
|
|
150834
|
+
default: z60.string().optional()
|
|
150757
150835
|
});
|
|
150758
|
-
var SingleSelectEnumSchemaSchema =
|
|
150759
|
-
var UntitledMultiSelectEnumSchemaSchema =
|
|
150760
|
-
type:
|
|
150761
|
-
title:
|
|
150762
|
-
description:
|
|
150763
|
-
minItems:
|
|
150764
|
-
maxItems:
|
|
150765
|
-
items:
|
|
150766
|
-
type:
|
|
150767
|
-
enum:
|
|
150836
|
+
var SingleSelectEnumSchemaSchema = z60.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
|
|
150837
|
+
var UntitledMultiSelectEnumSchemaSchema = z60.object({
|
|
150838
|
+
type: z60.literal("array"),
|
|
150839
|
+
title: z60.string().optional(),
|
|
150840
|
+
description: z60.string().optional(),
|
|
150841
|
+
minItems: z60.number().optional(),
|
|
150842
|
+
maxItems: z60.number().optional(),
|
|
150843
|
+
items: z60.object({
|
|
150844
|
+
type: z60.literal("string"),
|
|
150845
|
+
enum: z60.array(z60.string())
|
|
150768
150846
|
}),
|
|
150769
|
-
default:
|
|
150847
|
+
default: z60.array(z60.string()).optional()
|
|
150770
150848
|
});
|
|
150771
|
-
var TitledMultiSelectEnumSchemaSchema =
|
|
150772
|
-
type:
|
|
150773
|
-
title:
|
|
150774
|
-
description:
|
|
150775
|
-
minItems:
|
|
150776
|
-
maxItems:
|
|
150777
|
-
items:
|
|
150778
|
-
anyOf:
|
|
150779
|
-
const:
|
|
150780
|
-
title:
|
|
150849
|
+
var TitledMultiSelectEnumSchemaSchema = z60.object({
|
|
150850
|
+
type: z60.literal("array"),
|
|
150851
|
+
title: z60.string().optional(),
|
|
150852
|
+
description: z60.string().optional(),
|
|
150853
|
+
minItems: z60.number().optional(),
|
|
150854
|
+
maxItems: z60.number().optional(),
|
|
150855
|
+
items: z60.object({
|
|
150856
|
+
anyOf: z60.array(z60.object({
|
|
150857
|
+
const: z60.string(),
|
|
150858
|
+
title: z60.string()
|
|
150781
150859
|
}))
|
|
150782
150860
|
}),
|
|
150783
|
-
default:
|
|
150861
|
+
default: z60.array(z60.string()).optional()
|
|
150784
150862
|
});
|
|
150785
|
-
var MultiSelectEnumSchemaSchema =
|
|
150786
|
-
var EnumSchemaSchema =
|
|
150787
|
-
var PrimitiveSchemaDefinitionSchema =
|
|
150863
|
+
var MultiSelectEnumSchemaSchema = z60.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
|
|
150864
|
+
var EnumSchemaSchema = z60.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
|
|
150865
|
+
var PrimitiveSchemaDefinitionSchema = z60.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
|
|
150788
150866
|
var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150789
|
-
mode:
|
|
150790
|
-
message:
|
|
150791
|
-
requestedSchema:
|
|
150792
|
-
type:
|
|
150793
|
-
properties:
|
|
150794
|
-
required:
|
|
150867
|
+
mode: z60.literal("form").optional(),
|
|
150868
|
+
message: z60.string(),
|
|
150869
|
+
requestedSchema: z60.object({
|
|
150870
|
+
type: z60.literal("object"),
|
|
150871
|
+
properties: z60.record(z60.string(), PrimitiveSchemaDefinitionSchema),
|
|
150872
|
+
required: z60.array(z60.string()).optional()
|
|
150795
150873
|
})
|
|
150796
150874
|
});
|
|
150797
150875
|
var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150798
|
-
mode:
|
|
150799
|
-
message:
|
|
150800
|
-
elicitationId:
|
|
150801
|
-
url:
|
|
150876
|
+
mode: z60.literal("url"),
|
|
150877
|
+
message: z60.string(),
|
|
150878
|
+
elicitationId: z60.string(),
|
|
150879
|
+
url: z60.string().url()
|
|
150802
150880
|
});
|
|
150803
|
-
var ElicitRequestParamsSchema =
|
|
150881
|
+
var ElicitRequestParamsSchema = z60.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
|
|
150804
150882
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
150805
|
-
method:
|
|
150883
|
+
method: z60.literal("elicitation/create"),
|
|
150806
150884
|
params: ElicitRequestParamsSchema
|
|
150807
150885
|
});
|
|
150808
150886
|
var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150809
|
-
elicitationId:
|
|
150887
|
+
elicitationId: z60.string()
|
|
150810
150888
|
});
|
|
150811
150889
|
var ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
|
150812
|
-
method:
|
|
150890
|
+
method: z60.literal("notifications/elicitation/complete"),
|
|
150813
150891
|
params: ElicitationCompleteNotificationParamsSchema
|
|
150814
150892
|
});
|
|
150815
150893
|
var ElicitResultSchema = ResultSchema.extend({
|
|
150816
|
-
action:
|
|
150817
|
-
content:
|
|
150894
|
+
action: z60.enum(["accept", "decline", "cancel"]),
|
|
150895
|
+
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
150896
|
});
|
|
150819
|
-
var ResourceTemplateReferenceSchema =
|
|
150820
|
-
type:
|
|
150821
|
-
uri:
|
|
150897
|
+
var ResourceTemplateReferenceSchema = z60.object({
|
|
150898
|
+
type: z60.literal("ref/resource"),
|
|
150899
|
+
uri: z60.string()
|
|
150822
150900
|
});
|
|
150823
|
-
var PromptReferenceSchema =
|
|
150824
|
-
type:
|
|
150825
|
-
name:
|
|
150901
|
+
var PromptReferenceSchema = z60.object({
|
|
150902
|
+
type: z60.literal("ref/prompt"),
|
|
150903
|
+
name: z60.string()
|
|
150826
150904
|
});
|
|
150827
150905
|
var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150828
|
-
ref:
|
|
150829
|
-
argument:
|
|
150830
|
-
name:
|
|
150831
|
-
value:
|
|
150906
|
+
ref: z60.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
150907
|
+
argument: z60.object({
|
|
150908
|
+
name: z60.string(),
|
|
150909
|
+
value: z60.string()
|
|
150832
150910
|
}),
|
|
150833
|
-
context:
|
|
150834
|
-
arguments:
|
|
150911
|
+
context: z60.object({
|
|
150912
|
+
arguments: z60.record(z60.string(), z60.string()).optional()
|
|
150835
150913
|
}).optional()
|
|
150836
150914
|
});
|
|
150837
150915
|
var CompleteRequestSchema = RequestSchema.extend({
|
|
150838
|
-
method:
|
|
150916
|
+
method: z60.literal("completion/complete"),
|
|
150839
150917
|
params: CompleteRequestParamsSchema
|
|
150840
150918
|
});
|
|
150841
150919
|
var CompleteResultSchema = ResultSchema.extend({
|
|
150842
|
-
completion:
|
|
150843
|
-
values:
|
|
150844
|
-
total:
|
|
150845
|
-
hasMore:
|
|
150920
|
+
completion: z60.looseObject({
|
|
150921
|
+
values: z60.array(z60.string()).max(100),
|
|
150922
|
+
total: z60.optional(z60.number().int()),
|
|
150923
|
+
hasMore: z60.optional(z60.boolean())
|
|
150846
150924
|
})
|
|
150847
150925
|
});
|
|
150848
|
-
var RootSchema =
|
|
150849
|
-
uri:
|
|
150850
|
-
name:
|
|
150851
|
-
_meta:
|
|
150926
|
+
var RootSchema = z60.object({
|
|
150927
|
+
uri: z60.string().startsWith("file://"),
|
|
150928
|
+
name: z60.string().optional(),
|
|
150929
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150852
150930
|
});
|
|
150853
150931
|
var ListRootsRequestSchema = RequestSchema.extend({
|
|
150854
|
-
method:
|
|
150932
|
+
method: z60.literal("roots/list"),
|
|
150855
150933
|
params: BaseRequestParamsSchema.optional()
|
|
150856
150934
|
});
|
|
150857
150935
|
var ListRootsResultSchema = ResultSchema.extend({
|
|
150858
|
-
roots:
|
|
150936
|
+
roots: z60.array(RootSchema)
|
|
150859
150937
|
});
|
|
150860
150938
|
var RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
150861
|
-
method:
|
|
150939
|
+
method: z60.literal("notifications/roots/list_changed"),
|
|
150862
150940
|
params: NotificationsParamsSchema.optional()
|
|
150863
150941
|
});
|
|
150864
|
-
var ClientRequestSchema =
|
|
150942
|
+
var ClientRequestSchema = z60.union([
|
|
150865
150943
|
PingRequestSchema,
|
|
150866
150944
|
InitializeRequestSchema,
|
|
150867
150945
|
CompleteRequestSchema,
|
|
@@ -150880,14 +150958,14 @@ var ClientRequestSchema = z59.union([
|
|
|
150880
150958
|
ListTasksRequestSchema,
|
|
150881
150959
|
CancelTaskRequestSchema
|
|
150882
150960
|
]);
|
|
150883
|
-
var ClientNotificationSchema =
|
|
150961
|
+
var ClientNotificationSchema = z60.union([
|
|
150884
150962
|
CancelledNotificationSchema,
|
|
150885
150963
|
ProgressNotificationSchema,
|
|
150886
150964
|
InitializedNotificationSchema,
|
|
150887
150965
|
RootsListChangedNotificationSchema,
|
|
150888
150966
|
TaskStatusNotificationSchema
|
|
150889
150967
|
]);
|
|
150890
|
-
var ClientResultSchema =
|
|
150968
|
+
var ClientResultSchema = z60.union([
|
|
150891
150969
|
EmptyResultSchema,
|
|
150892
150970
|
CreateMessageResultSchema,
|
|
150893
150971
|
CreateMessageResultWithToolsSchema,
|
|
@@ -150897,7 +150975,7 @@ var ClientResultSchema = z59.union([
|
|
|
150897
150975
|
ListTasksResultSchema,
|
|
150898
150976
|
CreateTaskResultSchema
|
|
150899
150977
|
]);
|
|
150900
|
-
var ServerRequestSchema =
|
|
150978
|
+
var ServerRequestSchema = z60.union([
|
|
150901
150979
|
PingRequestSchema,
|
|
150902
150980
|
CreateMessageRequestSchema,
|
|
150903
150981
|
ElicitRequestSchema,
|
|
@@ -150907,7 +150985,7 @@ var ServerRequestSchema = z59.union([
|
|
|
150907
150985
|
ListTasksRequestSchema,
|
|
150908
150986
|
CancelTaskRequestSchema
|
|
150909
150987
|
]);
|
|
150910
|
-
var ServerNotificationSchema =
|
|
150988
|
+
var ServerNotificationSchema = z60.union([
|
|
150911
150989
|
CancelledNotificationSchema,
|
|
150912
150990
|
ProgressNotificationSchema,
|
|
150913
150991
|
LoggingMessageNotificationSchema,
|
|
@@ -150918,7 +150996,7 @@ var ServerNotificationSchema = z59.union([
|
|
|
150918
150996
|
TaskStatusNotificationSchema,
|
|
150919
150997
|
ElicitationCompleteNotificationSchema
|
|
150920
150998
|
]);
|
|
150921
|
-
var ServerResultSchema =
|
|
150999
|
+
var ServerResultSchema = z60.union([
|
|
150922
151000
|
EmptyResultSchema,
|
|
150923
151001
|
InitializeResultSchema,
|
|
150924
151002
|
CompleteResultSchema,
|
|
@@ -152680,151 +152758,151 @@ async function pkceChallenge(length) {
|
|
|
152680
152758
|
}
|
|
152681
152759
|
|
|
152682
152760
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
152683
|
-
import * as
|
|
152684
|
-
var SafeUrlSchema =
|
|
152761
|
+
import * as z61 from "zod/v4";
|
|
152762
|
+
var SafeUrlSchema = z61.url().superRefine((val, ctx) => {
|
|
152685
152763
|
if (!URL.canParse(val)) {
|
|
152686
152764
|
ctx.addIssue({
|
|
152687
|
-
code:
|
|
152765
|
+
code: z61.ZodIssueCode.custom,
|
|
152688
152766
|
message: "URL must be parseable",
|
|
152689
152767
|
fatal: true
|
|
152690
152768
|
});
|
|
152691
|
-
return
|
|
152769
|
+
return z61.NEVER;
|
|
152692
152770
|
}
|
|
152693
152771
|
}).refine((url) => {
|
|
152694
152772
|
const u = new URL(url);
|
|
152695
152773
|
return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
|
|
152696
152774
|
}, { 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:
|
|
152775
|
+
var OAuthProtectedResourceMetadataSchema = z61.looseObject({
|
|
152776
|
+
resource: z61.string().url(),
|
|
152777
|
+
authorization_servers: z61.array(SafeUrlSchema).optional(),
|
|
152778
|
+
jwks_uri: z61.string().url().optional(),
|
|
152779
|
+
scopes_supported: z61.array(z61.string()).optional(),
|
|
152780
|
+
bearer_methods_supported: z61.array(z61.string()).optional(),
|
|
152781
|
+
resource_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152782
|
+
resource_name: z61.string().optional(),
|
|
152783
|
+
resource_documentation: z61.string().optional(),
|
|
152784
|
+
resource_policy_uri: z61.string().url().optional(),
|
|
152785
|
+
resource_tos_uri: z61.string().url().optional(),
|
|
152786
|
+
tls_client_certificate_bound_access_tokens: z61.boolean().optional(),
|
|
152787
|
+
authorization_details_types_supported: z61.array(z61.string()).optional(),
|
|
152788
|
+
dpop_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152789
|
+
dpop_bound_access_tokens_required: z61.boolean().optional()
|
|
152712
152790
|
});
|
|
152713
|
-
var OAuthMetadataSchema =
|
|
152714
|
-
issuer:
|
|
152791
|
+
var OAuthMetadataSchema = z61.looseObject({
|
|
152792
|
+
issuer: z61.string(),
|
|
152715
152793
|
authorization_endpoint: SafeUrlSchema,
|
|
152716
152794
|
token_endpoint: SafeUrlSchema,
|
|
152717
152795
|
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:
|
|
152796
|
+
scopes_supported: z61.array(z61.string()).optional(),
|
|
152797
|
+
response_types_supported: z61.array(z61.string()),
|
|
152798
|
+
response_modes_supported: z61.array(z61.string()).optional(),
|
|
152799
|
+
grant_types_supported: z61.array(z61.string()).optional(),
|
|
152800
|
+
token_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152801
|
+
token_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152724
152802
|
service_documentation: SafeUrlSchema.optional(),
|
|
152725
152803
|
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:
|
|
152804
|
+
revocation_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152805
|
+
revocation_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152806
|
+
introspection_endpoint: z61.string().optional(),
|
|
152807
|
+
introspection_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152808
|
+
introspection_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152809
|
+
code_challenge_methods_supported: z61.array(z61.string()).optional(),
|
|
152810
|
+
client_id_metadata_document_supported: z61.boolean().optional()
|
|
152733
152811
|
});
|
|
152734
|
-
var OpenIdProviderMetadataSchema =
|
|
152735
|
-
issuer:
|
|
152812
|
+
var OpenIdProviderMetadataSchema = z61.looseObject({
|
|
152813
|
+
issuer: z61.string(),
|
|
152736
152814
|
authorization_endpoint: SafeUrlSchema,
|
|
152737
152815
|
token_endpoint: SafeUrlSchema,
|
|
152738
152816
|
userinfo_endpoint: SafeUrlSchema.optional(),
|
|
152739
152817
|
jwks_uri: SafeUrlSchema,
|
|
152740
152818
|
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:
|
|
152819
|
+
scopes_supported: z61.array(z61.string()).optional(),
|
|
152820
|
+
response_types_supported: z61.array(z61.string()),
|
|
152821
|
+
response_modes_supported: z61.array(z61.string()).optional(),
|
|
152822
|
+
grant_types_supported: z61.array(z61.string()).optional(),
|
|
152823
|
+
acr_values_supported: z61.array(z61.string()).optional(),
|
|
152824
|
+
subject_types_supported: z61.array(z61.string()),
|
|
152825
|
+
id_token_signing_alg_values_supported: z61.array(z61.string()),
|
|
152826
|
+
id_token_encryption_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152827
|
+
id_token_encryption_enc_values_supported: z61.array(z61.string()).optional(),
|
|
152828
|
+
userinfo_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152829
|
+
userinfo_encryption_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152830
|
+
userinfo_encryption_enc_values_supported: z61.array(z61.string()).optional(),
|
|
152831
|
+
request_object_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152832
|
+
request_object_encryption_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152833
|
+
request_object_encryption_enc_values_supported: z61.array(z61.string()).optional(),
|
|
152834
|
+
token_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152835
|
+
token_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152836
|
+
display_values_supported: z61.array(z61.string()).optional(),
|
|
152837
|
+
claim_types_supported: z61.array(z61.string()).optional(),
|
|
152838
|
+
claims_supported: z61.array(z61.string()).optional(),
|
|
152839
|
+
service_documentation: z61.string().optional(),
|
|
152840
|
+
claims_locales_supported: z61.array(z61.string()).optional(),
|
|
152841
|
+
ui_locales_supported: z61.array(z61.string()).optional(),
|
|
152842
|
+
claims_parameter_supported: z61.boolean().optional(),
|
|
152843
|
+
request_parameter_supported: z61.boolean().optional(),
|
|
152844
|
+
request_uri_parameter_supported: z61.boolean().optional(),
|
|
152845
|
+
require_request_uri_registration: z61.boolean().optional(),
|
|
152768
152846
|
op_policy_uri: SafeUrlSchema.optional(),
|
|
152769
152847
|
op_tos_uri: SafeUrlSchema.optional(),
|
|
152770
|
-
client_id_metadata_document_supported:
|
|
152848
|
+
client_id_metadata_document_supported: z61.boolean().optional()
|
|
152771
152849
|
});
|
|
152772
|
-
var OpenIdProviderDiscoveryMetadataSchema =
|
|
152850
|
+
var OpenIdProviderDiscoveryMetadataSchema = z61.object({
|
|
152773
152851
|
...OpenIdProviderMetadataSchema.shape,
|
|
152774
152852
|
...OAuthMetadataSchema.pick({
|
|
152775
152853
|
code_challenge_methods_supported: true
|
|
152776
152854
|
}).shape
|
|
152777
152855
|
});
|
|
152778
|
-
var OAuthTokensSchema =
|
|
152779
|
-
access_token:
|
|
152780
|
-
id_token:
|
|
152781
|
-
token_type:
|
|
152782
|
-
expires_in:
|
|
152783
|
-
scope:
|
|
152784
|
-
refresh_token:
|
|
152785
|
-
issuer:
|
|
152856
|
+
var OAuthTokensSchema = z61.object({
|
|
152857
|
+
access_token: z61.string(),
|
|
152858
|
+
id_token: z61.string().optional(),
|
|
152859
|
+
token_type: z61.string(),
|
|
152860
|
+
expires_in: z61.coerce.number().optional(),
|
|
152861
|
+
scope: z61.string().optional(),
|
|
152862
|
+
refresh_token: z61.string().optional(),
|
|
152863
|
+
issuer: z61.string().optional().catch(undefined)
|
|
152786
152864
|
}).strip();
|
|
152787
|
-
var OAuthErrorResponseSchema =
|
|
152788
|
-
error:
|
|
152789
|
-
error_description:
|
|
152790
|
-
error_uri:
|
|
152865
|
+
var OAuthErrorResponseSchema = z61.object({
|
|
152866
|
+
error: z61.string(),
|
|
152867
|
+
error_description: z61.string().optional(),
|
|
152868
|
+
error_uri: z61.string().optional()
|
|
152791
152869
|
});
|
|
152792
|
-
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(
|
|
152870
|
+
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z61.literal("").transform(() => {
|
|
152793
152871
|
return;
|
|
152794
152872
|
}));
|
|
152795
|
-
var OAuthClientMetadataSchema =
|
|
152796
|
-
redirect_uris:
|
|
152797
|
-
token_endpoint_auth_method:
|
|
152798
|
-
grant_types:
|
|
152799
|
-
response_types:
|
|
152800
|
-
client_name:
|
|
152873
|
+
var OAuthClientMetadataSchema = z61.object({
|
|
152874
|
+
redirect_uris: z61.array(SafeUrlSchema),
|
|
152875
|
+
token_endpoint_auth_method: z61.string().optional(),
|
|
152876
|
+
grant_types: z61.array(z61.string()).optional(),
|
|
152877
|
+
response_types: z61.array(z61.string()).optional(),
|
|
152878
|
+
client_name: z61.string().optional(),
|
|
152801
152879
|
client_uri: SafeUrlSchema.optional(),
|
|
152802
152880
|
logo_uri: OptionalSafeUrlSchema,
|
|
152803
|
-
scope:
|
|
152804
|
-
contacts:
|
|
152881
|
+
scope: z61.string().optional(),
|
|
152882
|
+
contacts: z61.array(z61.string()).optional(),
|
|
152805
152883
|
tos_uri: OptionalSafeUrlSchema,
|
|
152806
|
-
policy_uri:
|
|
152884
|
+
policy_uri: z61.string().optional(),
|
|
152807
152885
|
jwks_uri: SafeUrlSchema.optional(),
|
|
152808
|
-
jwks:
|
|
152809
|
-
software_id:
|
|
152810
|
-
software_version:
|
|
152811
|
-
software_statement:
|
|
152886
|
+
jwks: z61.any().optional(),
|
|
152887
|
+
software_id: z61.string().optional(),
|
|
152888
|
+
software_version: z61.string().optional(),
|
|
152889
|
+
software_statement: z61.string().optional()
|
|
152812
152890
|
}).strip();
|
|
152813
|
-
var OAuthClientInformationSchema =
|
|
152814
|
-
client_id:
|
|
152815
|
-
client_secret:
|
|
152816
|
-
client_id_issued_at:
|
|
152817
|
-
client_secret_expires_at:
|
|
152818
|
-
issuer:
|
|
152891
|
+
var OAuthClientInformationSchema = z61.object({
|
|
152892
|
+
client_id: z61.string(),
|
|
152893
|
+
client_secret: z61.string().optional(),
|
|
152894
|
+
client_id_issued_at: z61.number().optional(),
|
|
152895
|
+
client_secret_expires_at: z61.number().optional(),
|
|
152896
|
+
issuer: z61.string().optional().catch(undefined)
|
|
152819
152897
|
}).strip();
|
|
152820
152898
|
var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
152821
|
-
var OAuthClientRegistrationErrorSchema =
|
|
152822
|
-
error:
|
|
152823
|
-
error_description:
|
|
152899
|
+
var OAuthClientRegistrationErrorSchema = z61.object({
|
|
152900
|
+
error: z61.string(),
|
|
152901
|
+
error_description: z61.string().optional()
|
|
152824
152902
|
}).strip();
|
|
152825
|
-
var OAuthTokenRevocationRequestSchema =
|
|
152826
|
-
token:
|
|
152827
|
-
token_type_hint:
|
|
152903
|
+
var OAuthTokenRevocationRequestSchema = z61.object({
|
|
152904
|
+
token: z61.string(),
|
|
152905
|
+
token_type_hint: z61.string().optional()
|
|
152828
152906
|
}).strip();
|
|
152829
152907
|
|
|
152830
152908
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
|
|
@@ -155096,7 +155174,7 @@ function mirrorFilePath(projectDir) {
|
|
|
155096
155174
|
}
|
|
155097
155175
|
|
|
155098
155176
|
// packages/omo-opencode/src/features/tui-sidebar/snapshot-schema.ts
|
|
155099
|
-
import { z as
|
|
155177
|
+
import { z as z62 } from "zod";
|
|
155100
155178
|
var AGENT_STATUS_VALUES = [
|
|
155101
155179
|
"busy",
|
|
155102
155180
|
"idle",
|
|
@@ -155112,32 +155190,32 @@ var BACKGROUND_TASK_STATUS_VALUES = [
|
|
|
155112
155190
|
"cancelled",
|
|
155113
155191
|
"interrupt"
|
|
155114
155192
|
];
|
|
155115
|
-
var AgentRowSchema =
|
|
155116
|
-
name:
|
|
155117
|
-
status:
|
|
155193
|
+
var AgentRowSchema = z62.object({
|
|
155194
|
+
name: z62.string(),
|
|
155195
|
+
status: z62.enum(AGENT_STATUS_VALUES)
|
|
155118
155196
|
});
|
|
155119
|
-
var JobRowSchema =
|
|
155120
|
-
title:
|
|
155121
|
-
status:
|
|
155122
|
-
toolCalls:
|
|
155123
|
-
lastTool:
|
|
155197
|
+
var JobRowSchema = z62.object({
|
|
155198
|
+
title: z62.string(),
|
|
155199
|
+
status: z62.enum(BACKGROUND_TASK_STATUS_VALUES),
|
|
155200
|
+
toolCalls: z62.number().int().nonnegative().nullable(),
|
|
155201
|
+
lastTool: z62.string().nullable()
|
|
155124
155202
|
});
|
|
155125
|
-
var LoopLiveSchema =
|
|
155126
|
-
kind:
|
|
155127
|
-
goalsDone:
|
|
155128
|
-
goalsTotal:
|
|
155129
|
-
pass:
|
|
155130
|
-
fail:
|
|
155131
|
-
pending:
|
|
155132
|
-
blocked:
|
|
155133
|
-
activeGoal:
|
|
155203
|
+
var LoopLiveSchema = z62.object({
|
|
155204
|
+
kind: z62.literal("live"),
|
|
155205
|
+
goalsDone: z62.number().int().nonnegative(),
|
|
155206
|
+
goalsTotal: z62.number().int().nonnegative(),
|
|
155207
|
+
pass: z62.number().int().nonnegative(),
|
|
155208
|
+
fail: z62.number().int().nonnegative(),
|
|
155209
|
+
pending: z62.number().int().nonnegative(),
|
|
155210
|
+
blocked: z62.number().int().nonnegative(),
|
|
155211
|
+
activeGoal: z62.string().nullable()
|
|
155134
155212
|
});
|
|
155135
|
-
var TuiRuntimeSnapshotSchema =
|
|
155136
|
-
version:
|
|
155137
|
-
projectDir:
|
|
155138
|
-
updatedAt:
|
|
155139
|
-
activeAgents:
|
|
155140
|
-
jobBoard:
|
|
155213
|
+
var TuiRuntimeSnapshotSchema = z62.object({
|
|
155214
|
+
version: z62.literal(MIRROR_SCHEMA_VERSION),
|
|
155215
|
+
projectDir: z62.string(),
|
|
155216
|
+
updatedAt: z62.number(),
|
|
155217
|
+
activeAgents: z62.array(AgentRowSchema),
|
|
155218
|
+
jobBoard: z62.array(JobRowSchema),
|
|
155141
155219
|
loop: LoopLiveSchema.nullable()
|
|
155142
155220
|
});
|
|
155143
155221
|
|
|
@@ -155152,25 +155230,25 @@ function writeMirror(projectDir, snapshot) {
|
|
|
155152
155230
|
// packages/omo-opencode/src/features/tui-sidebar/loop-reader.ts
|
|
155153
155231
|
import { readdirSync as readdirSync31, readFileSync as readFileSync70, statSync as statSync15 } from "fs";
|
|
155154
155232
|
import { join as join131 } from "path";
|
|
155155
|
-
import { z as
|
|
155156
|
-
var CriterionSchema =
|
|
155157
|
-
status:
|
|
155233
|
+
import { z as z63 } from "zod";
|
|
155234
|
+
var CriterionSchema = z63.object({
|
|
155235
|
+
status: z63.string()
|
|
155158
155236
|
});
|
|
155159
|
-
var GoalBaseSchema =
|
|
155160
|
-
id:
|
|
155161
|
-
title:
|
|
155162
|
-
status:
|
|
155237
|
+
var GoalBaseSchema = z63.object({
|
|
155238
|
+
id: z63.string(),
|
|
155239
|
+
title: z63.string(),
|
|
155240
|
+
status: z63.string()
|
|
155163
155241
|
});
|
|
155164
|
-
var CurrentLoopSchema =
|
|
155165
|
-
version:
|
|
155166
|
-
activeGoalId:
|
|
155167
|
-
goals:
|
|
155168
|
-
successCriteria:
|
|
155242
|
+
var CurrentLoopSchema = z63.object({
|
|
155243
|
+
version: z63.literal(1),
|
|
155244
|
+
activeGoalId: z63.string().optional(),
|
|
155245
|
+
goals: z63.array(GoalBaseSchema.extend({
|
|
155246
|
+
successCriteria: z63.array(CriterionSchema)
|
|
155169
155247
|
}))
|
|
155170
155248
|
});
|
|
155171
|
-
var LegacyLoopSchema =
|
|
155172
|
-
goals:
|
|
155173
|
-
criteria:
|
|
155249
|
+
var LegacyLoopSchema = z63.object({
|
|
155250
|
+
goals: z63.array(GoalBaseSchema.extend({
|
|
155251
|
+
criteria: z63.array(CriterionSchema)
|
|
155174
155252
|
}))
|
|
155175
155253
|
});
|
|
155176
155254
|
function readActiveLoop(projectDir) {
|
|
@@ -171837,7 +171915,7 @@ var grep_app = {
|
|
|
171837
171915
|
import { existsSync as existsSync109, readFileSync as readFileSync77 } from "fs";
|
|
171838
171916
|
import { delimiter as delimiter2, dirname as dirname49, resolve as resolve38 } from "path";
|
|
171839
171917
|
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
171840
|
-
import { z as
|
|
171918
|
+
import { z as z64 } from "zod";
|
|
171841
171919
|
|
|
171842
171920
|
// packages/omo-opencode/src/mcp/cli-suffix.ts
|
|
171843
171921
|
function normalizeCliPath(path) {
|
|
@@ -171938,8 +172016,8 @@ var PROJECT_LSP_CONFIGS = [".opencode/lsp.json", ".omo/lsp.json", ".omo/lsp-clie
|
|
|
171938
172016
|
var DAEMON_PACKAGE_NAME = "@code-yeongyu/lsp-daemon";
|
|
171939
172017
|
var OMO_LSP_DAEMON_CLI = "OMO_LSP_DAEMON_CLI";
|
|
171940
172018
|
var OMO_LSP_DAEMON_VERSION = "OMO_LSP_DAEMON_VERSION";
|
|
171941
|
-
var DaemonPackageSchema =
|
|
171942
|
-
version:
|
|
172019
|
+
var DaemonPackageSchema = z64.object({
|
|
172020
|
+
version: z64.string().min(1)
|
|
171943
172021
|
});
|
|
171944
172022
|
var LSP_BOOTSTRAP_SCRIPT = [
|
|
171945
172023
|
"const { existsSync } = require('node:fs')",
|
|
@@ -172759,14 +172837,14 @@ function createTeamModeToolsRecord(args) {
|
|
|
172759
172837
|
// node_modules/.bun/@opencode-ai+sdk@1.18.31/node_modules/@opencode-ai/sdk/dist/v2/server.js
|
|
172760
172838
|
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1);
|
|
172761
172839
|
// packages/omo-opencode/src/plugin/native-skills.ts
|
|
172762
|
-
import { z as
|
|
172763
|
-
var NativeSkillEntrySchema =
|
|
172764
|
-
name:
|
|
172765
|
-
description:
|
|
172766
|
-
location:
|
|
172767
|
-
content:
|
|
172840
|
+
import { z as z65 } from "zod";
|
|
172841
|
+
var NativeSkillEntrySchema = z65.object({
|
|
172842
|
+
name: z65.string(),
|
|
172843
|
+
description: z65.string().default(""),
|
|
172844
|
+
location: z65.string(),
|
|
172845
|
+
content: z65.string()
|
|
172768
172846
|
});
|
|
172769
|
-
var NativeSkillEntriesSchema =
|
|
172847
|
+
var NativeSkillEntriesSchema = z65.array(NativeSkillEntrySchema);
|
|
172770
172848
|
function getObjectProperty(value, property) {
|
|
172771
172849
|
if (typeof value !== "object" || value === null)
|
|
172772
172850
|
return;
|
|
@@ -173917,7 +173995,7 @@ async function resolveParticipant2(teamRunId, sessionID, config, deps) {
|
|
|
173917
173995
|
}
|
|
173918
173996
|
|
|
173919
173997
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-inline-spec.ts
|
|
173920
|
-
import { z as
|
|
173998
|
+
import { z as z66 } from "zod";
|
|
173921
173999
|
init_types2();
|
|
173922
174000
|
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
174001
|
function omitEmptyStringArgs(rawArgs) {
|
|
@@ -173926,10 +174004,10 @@ function omitEmptyStringArgs(rawArgs) {
|
|
|
173926
174004
|
}
|
|
173927
174005
|
return Object.fromEntries(Object.entries(rawArgs).filter(([, value]) => value !== ""));
|
|
173928
174006
|
}
|
|
173929
|
-
var TeamCreateArgsSchema =
|
|
173930
|
-
teamName:
|
|
173931
|
-
inline_spec:
|
|
173932
|
-
leadSessionId:
|
|
174007
|
+
var TeamCreateArgsSchema = z66.preprocess(omitEmptyStringArgs, z66.object({
|
|
174008
|
+
teamName: z66.string().min(1).nullish(),
|
|
174009
|
+
inline_spec: z66.unknown().nullish(),
|
|
174010
|
+
leadSessionId: z66.string().nullish()
|
|
173933
174011
|
}).superRefine((value, ctx) => {
|
|
173934
174012
|
const optionCount = Number(value.teamName != null) + Number(value.inline_spec != null);
|
|
173935
174013
|
if (optionCount !== 1) {
|
|
@@ -174051,7 +174129,7 @@ function createTeamCreateTool(config, client, bgMgr, tmuxMgr, executorConfig, de
|
|
|
174051
174129
|
});
|
|
174052
174130
|
}
|
|
174053
174131
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
174054
|
-
import { z as
|
|
174132
|
+
import { z as z67 } from "zod";
|
|
174055
174133
|
// packages/omo-opencode/src/features/team-mode/team-runtime/shutdown.ts
|
|
174056
174134
|
init_store2();
|
|
174057
174135
|
init_shutdown_helpers();
|
|
@@ -174140,13 +174218,13 @@ async function rejectShutdown(teamRunId, memberName, rejectorName, reason, confi
|
|
|
174140
174218
|
|
|
174141
174219
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
174142
174220
|
init_store();
|
|
174143
|
-
var TeamDeleteArgsSchema =
|
|
174144
|
-
var TeamShutdownRequestArgsSchema =
|
|
174145
|
-
var TeamApproveShutdownArgsSchema =
|
|
174146
|
-
var TeamRejectShutdownArgsSchema =
|
|
174147
|
-
teamRunId:
|
|
174148
|
-
memberName:
|
|
174149
|
-
reason:
|
|
174221
|
+
var TeamDeleteArgsSchema = z67.object({ teamRunId: z67.string().min(1), force: z67.boolean().optional() });
|
|
174222
|
+
var TeamShutdownRequestArgsSchema = z67.object({ teamRunId: z67.string().min(1), targetMemberName: z67.string().min(1) });
|
|
174223
|
+
var TeamApproveShutdownArgsSchema = z67.object({ teamRunId: z67.string().min(1), memberName: z67.string().min(1) });
|
|
174224
|
+
var TeamRejectShutdownArgsSchema = z67.object({
|
|
174225
|
+
teamRunId: z67.string().min(1),
|
|
174226
|
+
memberName: z67.string().min(1),
|
|
174227
|
+
reason: z67.string().min(1)
|
|
174150
174228
|
});
|
|
174151
174229
|
var defaultTeamShutdownToolDeps = {
|
|
174152
174230
|
listActiveTeams,
|