oh-my-opencode 5.1.38 → 5.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +229 -187
- package/dist/cli-node/index.js +229 -187
- package/dist/index.js +1559 -1528
- 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/git-master/SKILL.md +1 -1
- package/dist/skills/ulw-plan/SKILL.md +1 -1
- package/dist/skills/ulw-plan/references/full-workflow.md +5 -4
- 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 +51 -22
- package/package.json +15 -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 +24 -2
- 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/dist/cli.js +157 -151
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +157 -151
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +5 -4
- 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/git-master/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +5 -4
- 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 +195 -168
- 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/git-master/SKILL.md +1 -1
- package/packages/shared-skills/skills/ulw-plan/SKILL.md +1 -1
- package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +5 -4
- 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";
|
|
@@ -84955,14 +84955,20 @@ var OmoComputerSettingsSchema = OmoComputerSettingsLayerSchema;
|
|
|
84955
84955
|
|
|
84956
84956
|
// packages/omo-config-core/src/schema/git-master.ts
|
|
84957
84957
|
import * as z6 from "zod";
|
|
84958
|
+
var GIT_ENV_ASSIGNMENT_PATTERN = /^(?:[A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)(?: [A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)*$/;
|
|
84959
|
+
var GitEnvPrefixSchema = z6.string().refine((value) => value === "" || GIT_ENV_ASSIGNMENT_PATTERN.test(value), {
|
|
84960
|
+
message: 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"'
|
|
84961
|
+
});
|
|
84958
84962
|
var OmoGitMasterSettingsShape = {
|
|
84959
84963
|
commit_footer: z6.union([z6.boolean(), z6.string()]),
|
|
84960
|
-
include_co_authored_by: z6.boolean()
|
|
84964
|
+
include_co_authored_by: z6.boolean(),
|
|
84965
|
+
git_env_prefix: GitEnvPrefixSchema
|
|
84961
84966
|
};
|
|
84962
84967
|
var OmoGitMasterSettingsLayerSchema = z6.object(OmoGitMasterSettingsShape).partial().strict();
|
|
84963
84968
|
var OmoGitMasterSettingsSchema = OmoGitMasterSettingsLayerSchema.extend({
|
|
84964
84969
|
commit_footer: z6.union([z6.boolean(), z6.string()]).default(false),
|
|
84965
|
-
include_co_authored_by: z6.boolean().default(false)
|
|
84970
|
+
include_co_authored_by: z6.boolean().default(false),
|
|
84971
|
+
git_env_prefix: GitEnvPrefixSchema.default("GIT_MASTER=1")
|
|
84966
84972
|
}).strict();
|
|
84967
84973
|
|
|
84968
84974
|
// packages/omo-config-core/src/schema/harness.ts
|
|
@@ -84974,160 +84980,177 @@ var OMO_CONFIG_LEGACY_HARNESS_ALIASES = { senpi: "native" };
|
|
|
84974
84980
|
var OMO_CONFIG_LEGACY_HARNESS_IDS = Object.keys(OMO_CONFIG_LEGACY_HARNESS_ALIASES);
|
|
84975
84981
|
|
|
84976
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
|
|
84977
84986
|
import * as z8 from "zod";
|
|
84978
|
-
var
|
|
84979
|
-
|
|
84980
|
-
|
|
84987
|
+
var OMO_MEMORY_AGREEMENTS_DEFAULTS = { enabled: true, needs_human_threshold: 3, max_items: 64 };
|
|
84988
|
+
var OmoMemoryAgreementsSchema = z8.object({
|
|
84989
|
+
enabled: z8.boolean().default(OMO_MEMORY_AGREEMENTS_DEFAULTS.enabled),
|
|
84990
|
+
needs_human_threshold: z8.number().int().min(1).default(OMO_MEMORY_AGREEMENTS_DEFAULTS.needs_human_threshold),
|
|
84991
|
+
max_items: z8.number().int().min(8).max(256).default(OMO_MEMORY_AGREEMENTS_DEFAULTS.max_items)
|
|
84992
|
+
}).strict();
|
|
84993
|
+
var OmoMemoryAgreementsLayerSchema = z8.object({
|
|
84994
|
+
enabled: z8.boolean().optional(),
|
|
84995
|
+
needs_human_threshold: z8.number().int().min(1).optional(),
|
|
84996
|
+
max_items: z8.number().int().min(8).max(256).optional()
|
|
84997
|
+
}).strict();
|
|
84998
|
+
|
|
84999
|
+
// packages/omo-config-core/src/schema/memory.ts
|
|
85000
|
+
var OmoMemoryReflectionTriggerSchema = z9.object({
|
|
85001
|
+
step_count: z9.number().int().nonnegative().default(25),
|
|
85002
|
+
on_compaction: z9.boolean().default(true)
|
|
84981
85003
|
}).strict();
|
|
84982
|
-
var OmoMemoryReflectionSchema =
|
|
84983
|
-
enabled:
|
|
85004
|
+
var OmoMemoryReflectionSchema = z9.object({
|
|
85005
|
+
enabled: z9.boolean().default(true),
|
|
84984
85006
|
trigger: OmoMemoryReflectionTriggerSchema.default({ step_count: 25, on_compaction: true }),
|
|
84985
|
-
merge:
|
|
84986
|
-
category:
|
|
84987
|
-
timeout_minutes:
|
|
84988
|
-
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")
|
|
84989
85011
|
}).strict();
|
|
84990
|
-
var OmoMemorySyncSchema =
|
|
84991
|
-
remote:
|
|
84992
|
-
enabled:
|
|
85012
|
+
var OmoMemorySyncSchema = z9.object({
|
|
85013
|
+
remote: z9.string().min(1).optional(),
|
|
85014
|
+
enabled: z9.boolean().default(true)
|
|
84993
85015
|
}).strict();
|
|
84994
|
-
var OmoMemorySearchSchema =
|
|
84995
|
-
enabled:
|
|
85016
|
+
var OmoMemorySearchSchema = z9.object({
|
|
85017
|
+
enabled: z9.boolean().default(true)
|
|
84996
85018
|
}).strict();
|
|
84997
|
-
var OmoMemoryRecallEventCapsSchema =
|
|
84998
|
-
tool_args:
|
|
84999
|
-
result_head:
|
|
85000
|
-
assistant:
|
|
85001
|
-
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)
|
|
85002
85024
|
}).strict();
|
|
85003
|
-
var OmoMemoryRecallSchema =
|
|
85004
|
-
enabled:
|
|
85005
|
-
max_items:
|
|
85006
|
-
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"),
|
|
85007
85029
|
event_caps: OmoMemoryRecallEventCapsSchema.default({ tool_args: 400, result_head: 600, assistant: 1500, prompt: 4000 }),
|
|
85008
|
-
sidecar_max_tokens:
|
|
85009
|
-
max_concurrent_wakes:
|
|
85010
|
-
tool_budget:
|
|
85011
|
-
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)
|
|
85012
85034
|
}).strict();
|
|
85013
|
-
var OmoMemoryNudgeSchema =
|
|
85014
|
-
enabled:
|
|
85015
|
-
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)
|
|
85016
85038
|
}).strict();
|
|
85017
|
-
var OmoMemoryFactsSchema =
|
|
85018
|
-
enabled:
|
|
85019
|
-
debounce_settles:
|
|
85020
|
-
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()
|
|
85021
85043
|
}).strict();
|
|
85022
|
-
var OmoMemoryDreamSchema =
|
|
85023
|
-
enabled:
|
|
85024
|
-
idle_minutes:
|
|
85025
|
-
min_hours_between:
|
|
85026
|
-
shutdown_launch:
|
|
85027
|
-
auto_select_max:
|
|
85028
|
-
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)
|
|
85029
85051
|
}).strict();
|
|
85030
|
-
var OmoMemoryPeopleSchema =
|
|
85031
|
-
enabled:
|
|
85032
|
-
max_entries:
|
|
85033
|
-
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)
|
|
85034
85056
|
}).strict();
|
|
85035
|
-
var OmoMemorySoulSchema =
|
|
85036
|
-
edit_notice:
|
|
85057
|
+
var OmoMemorySoulSchema = z9.object({
|
|
85058
|
+
edit_notice: z9.boolean().default(true)
|
|
85037
85059
|
}).strict();
|
|
85038
|
-
var OmoMemoryWriteNoticeSchema =
|
|
85039
|
-
enabled:
|
|
85060
|
+
var OmoMemoryWriteNoticeSchema = z9.object({
|
|
85061
|
+
enabled: z9.boolean().default(true)
|
|
85040
85062
|
}).strict();
|
|
85041
|
-
var OmoMemoryReflectionTriggerLayerSchema =
|
|
85042
|
-
step_count:
|
|
85043
|
-
on_compaction:
|
|
85063
|
+
var OmoMemoryReflectionTriggerLayerSchema = z9.object({
|
|
85064
|
+
step_count: z9.number().int().nonnegative().optional(),
|
|
85065
|
+
on_compaction: z9.boolean().optional()
|
|
85044
85066
|
}).strict();
|
|
85045
|
-
var OmoMemoryReflectionLayerSchema =
|
|
85046
|
-
enabled:
|
|
85067
|
+
var OmoMemoryReflectionLayerSchema = z9.object({
|
|
85068
|
+
enabled: z9.boolean().optional(),
|
|
85047
85069
|
trigger: OmoMemoryReflectionTriggerLayerSchema.optional(),
|
|
85048
|
-
merge:
|
|
85049
|
-
category:
|
|
85050
|
-
timeout_minutes:
|
|
85051
|
-
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()
|
|
85052
85074
|
}).strict();
|
|
85053
|
-
var OmoMemorySyncLayerSchema =
|
|
85054
|
-
remote:
|
|
85055
|
-
enabled:
|
|
85075
|
+
var OmoMemorySyncLayerSchema = z9.object({
|
|
85076
|
+
remote: z9.string().min(1).optional(),
|
|
85077
|
+
enabled: z9.boolean().optional()
|
|
85056
85078
|
}).strict();
|
|
85057
|
-
var OmoMemorySearchLayerSchema =
|
|
85058
|
-
enabled:
|
|
85079
|
+
var OmoMemorySearchLayerSchema = z9.object({
|
|
85080
|
+
enabled: z9.boolean().optional()
|
|
85059
85081
|
}).strict();
|
|
85060
|
-
var OmoMemoryRecallEventCapsLayerSchema =
|
|
85061
|
-
tool_args:
|
|
85062
|
-
result_head:
|
|
85063
|
-
assistant:
|
|
85064
|
-
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()
|
|
85065
85087
|
}).strict();
|
|
85066
|
-
var OmoMemoryRecallLayerSchema =
|
|
85067
|
-
enabled:
|
|
85068
|
-
max_items:
|
|
85069
|
-
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(),
|
|
85070
85092
|
event_caps: OmoMemoryRecallEventCapsLayerSchema.optional(),
|
|
85071
|
-
sidecar_max_tokens:
|
|
85072
|
-
max_concurrent_wakes:
|
|
85073
|
-
tool_budget:
|
|
85074
|
-
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()
|
|
85075
85097
|
}).strict();
|
|
85076
|
-
var OmoMemoryNudgeLayerSchema =
|
|
85077
|
-
enabled:
|
|
85078
|
-
every_user_turns:
|
|
85098
|
+
var OmoMemoryNudgeLayerSchema = z9.object({
|
|
85099
|
+
enabled: z9.boolean().optional(),
|
|
85100
|
+
every_user_turns: z9.number().int().min(1).optional()
|
|
85079
85101
|
}).strict();
|
|
85080
|
-
var OmoMemoryFactsLayerSchema =
|
|
85081
|
-
enabled:
|
|
85082
|
-
debounce_settles:
|
|
85083
|
-
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()
|
|
85084
85106
|
}).strict();
|
|
85085
|
-
var OmoMemoryDreamLayerSchema =
|
|
85086
|
-
enabled:
|
|
85087
|
-
idle_minutes:
|
|
85088
|
-
min_hours_between:
|
|
85089
|
-
shutdown_launch:
|
|
85090
|
-
auto_select_max:
|
|
85091
|
-
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()
|
|
85092
85114
|
}).strict();
|
|
85093
|
-
var OmoMemoryPeopleLayerSchema =
|
|
85094
|
-
enabled:
|
|
85095
|
-
max_entries:
|
|
85096
|
-
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()
|
|
85097
85119
|
}).strict();
|
|
85098
|
-
var OmoMemorySoulLayerSchema =
|
|
85099
|
-
edit_notice:
|
|
85120
|
+
var OmoMemorySoulLayerSchema = z9.object({
|
|
85121
|
+
edit_notice: z9.boolean().optional()
|
|
85100
85122
|
}).strict();
|
|
85101
|
-
var OmoMemoryWriteNoticeLayerSchema =
|
|
85102
|
-
enabled:
|
|
85123
|
+
var OmoMemoryWriteNoticeLayerSchema = z9.object({
|
|
85124
|
+
enabled: z9.boolean().optional()
|
|
85103
85125
|
}).strict();
|
|
85104
|
-
var OmoMemoryProjectionSchema =
|
|
85105
|
-
max_entries_per_directory:
|
|
85106
|
-
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)
|
|
85107
85129
|
}).strict();
|
|
85108
|
-
var OmoMemoryProjectionLayerSchema =
|
|
85109
|
-
max_entries_per_directory:
|
|
85110
|
-
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()
|
|
85111
85133
|
}).strict();
|
|
85112
|
-
var OmoMemoryAgentOverridesSchema =
|
|
85113
|
-
enabled:
|
|
85114
|
-
agent:
|
|
85134
|
+
var OmoMemoryAgentOverridesSchema = z9.object({
|
|
85135
|
+
enabled: z9.boolean().optional(),
|
|
85136
|
+
agent: z9.string().min(1).optional(),
|
|
85115
85137
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
85116
85138
|
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
85117
85139
|
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
85118
85140
|
dream: OmoMemoryDreamLayerSchema.optional(),
|
|
85119
85141
|
people: OmoMemoryPeopleLayerSchema.optional(),
|
|
85142
|
+
agreements: OmoMemoryAgreementsLayerSchema.optional(),
|
|
85120
85143
|
soul: OmoMemorySoulLayerSchema.optional(),
|
|
85121
85144
|
write_notice: OmoMemoryWriteNoticeLayerSchema.optional(),
|
|
85122
85145
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
85123
85146
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
85124
85147
|
recall: OmoMemoryRecallLayerSchema.optional(),
|
|
85125
85148
|
projection: OmoMemoryProjectionLayerSchema.optional(),
|
|
85126
|
-
compile_warn_tokens:
|
|
85149
|
+
compile_warn_tokens: z9.number().int().positive().optional()
|
|
85127
85150
|
}).strict();
|
|
85128
|
-
var OmoMemorySettingsSchema =
|
|
85129
|
-
enabled:
|
|
85130
|
-
agent:
|
|
85151
|
+
var OmoMemorySettingsSchema = z9.object({
|
|
85152
|
+
enabled: z9.boolean().default(true),
|
|
85153
|
+
agent: z9.string().min(1).default("auto"),
|
|
85131
85154
|
reflection: OmoMemoryReflectionSchema.default({
|
|
85132
85155
|
enabled: true,
|
|
85133
85156
|
trigger: { step_count: 25, on_compaction: true },
|
|
@@ -85147,6 +85170,7 @@ var OmoMemorySettingsSchema = z8.object({
|
|
|
85147
85170
|
auto_select_max_chars: 150000
|
|
85148
85171
|
}),
|
|
85149
85172
|
people: OmoMemoryPeopleSchema.default({ enabled: true, max_entries: 40, max_entry_chars: 200 }),
|
|
85173
|
+
agreements: OmoMemoryAgreementsSchema.default(OMO_MEMORY_AGREEMENTS_DEFAULTS),
|
|
85150
85174
|
soul: OmoMemorySoulSchema.default({ edit_notice: true }),
|
|
85151
85175
|
write_notice: OmoMemoryWriteNoticeSchema.default({ enabled: true }),
|
|
85152
85176
|
sync: OmoMemorySyncSchema.default({ enabled: true }),
|
|
@@ -85162,100 +85186,101 @@ var OmoMemorySettingsSchema = z8.object({
|
|
|
85162
85186
|
query_expansion: false
|
|
85163
85187
|
}),
|
|
85164
85188
|
projection: OmoMemoryProjectionSchema.default({ max_entries_per_directory: 40, max_bytes: 24576 }),
|
|
85165
|
-
compile_warn_tokens:
|
|
85166
|
-
agents:
|
|
85189
|
+
compile_warn_tokens: z9.number().int().positive().default(30000),
|
|
85190
|
+
agents: z9.record(z9.string(), OmoMemoryAgentOverridesSchema).default({})
|
|
85167
85191
|
}).strict();
|
|
85168
|
-
var OmoMemorySettingsLayerSchema =
|
|
85169
|
-
enabled:
|
|
85170
|
-
agent:
|
|
85192
|
+
var OmoMemorySettingsLayerSchema = z9.object({
|
|
85193
|
+
enabled: z9.boolean().optional(),
|
|
85194
|
+
agent: z9.string().min(1).optional(),
|
|
85171
85195
|
reflection: OmoMemoryReflectionLayerSchema.optional(),
|
|
85172
85196
|
nudge: OmoMemoryNudgeLayerSchema.optional(),
|
|
85173
85197
|
facts: OmoMemoryFactsLayerSchema.optional(),
|
|
85174
85198
|
dream: OmoMemoryDreamLayerSchema.optional(),
|
|
85175
85199
|
people: OmoMemoryPeopleLayerSchema.optional(),
|
|
85200
|
+
agreements: OmoMemoryAgreementsLayerSchema.optional(),
|
|
85176
85201
|
soul: OmoMemorySoulLayerSchema.optional(),
|
|
85177
85202
|
write_notice: OmoMemoryWriteNoticeLayerSchema.optional(),
|
|
85178
85203
|
sync: OmoMemorySyncLayerSchema.optional(),
|
|
85179
85204
|
search: OmoMemorySearchLayerSchema.optional(),
|
|
85180
85205
|
recall: OmoMemoryRecallLayerSchema.optional(),
|
|
85181
85206
|
projection: OmoMemoryProjectionLayerSchema.optional(),
|
|
85182
|
-
compile_warn_tokens:
|
|
85183
|
-
agents:
|
|
85207
|
+
compile_warn_tokens: z9.number().int().positive().optional(),
|
|
85208
|
+
agents: z9.record(z9.string(), OmoMemoryAgentOverridesSchema).optional()
|
|
85184
85209
|
}).strict();
|
|
85185
85210
|
|
|
85186
85211
|
// packages/omo-config-core/src/schema/model-catalog.ts
|
|
85187
|
-
import * as
|
|
85212
|
+
import * as z10 from "zod";
|
|
85188
85213
|
function isRecord8(value) {
|
|
85189
85214
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
85190
85215
|
}
|
|
85191
|
-
var OmoModelCatalogEntryInputSchema =
|
|
85192
|
-
model:
|
|
85216
|
+
var OmoModelCatalogEntryInputSchema = z10.object({
|
|
85217
|
+
model: z10.string(),
|
|
85193
85218
|
reasoning: OmoReasoningSchema.optional(),
|
|
85194
|
-
variant:
|
|
85219
|
+
variant: z10.string().optional(),
|
|
85195
85220
|
reasoningEffort: OmoReasoningEffortSchema.optional()
|
|
85196
85221
|
}).strict();
|
|
85197
|
-
var OmoModelCatalogEntrySchema =
|
|
85198
|
-
var OmoModelCatalogSchema =
|
|
85222
|
+
var OmoModelCatalogEntrySchema = z10.preprocess((value) => isRecord8(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryInputSchema);
|
|
85223
|
+
var OmoModelCatalogSchema = z10.record(z10.string(), OmoModelCatalogEntrySchema);
|
|
85199
85224
|
var OmoModelCatalogEntryLayerInputSchema = OmoModelCatalogEntryInputSchema.partial();
|
|
85200
|
-
var OmoModelCatalogEntryLayerSchema =
|
|
85201
|
-
var OmoModelCatalogLayerSchema =
|
|
85225
|
+
var OmoModelCatalogEntryLayerSchema = z10.preprocess((value) => isRecord8(value) ? normalizeLegacyModelFields(value) : value, OmoModelCatalogEntryLayerInputSchema);
|
|
85226
|
+
var OmoModelCatalogLayerSchema = z10.record(z10.string(), OmoModelCatalogEntryLayerSchema);
|
|
85202
85227
|
|
|
85203
85228
|
// packages/omo-config-core/src/schema/model-profile.ts
|
|
85204
|
-
import * as
|
|
85229
|
+
import * as z11 from "zod";
|
|
85205
85230
|
function isRecord9(value) {
|
|
85206
85231
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
85207
85232
|
}
|
|
85208
|
-
var OmoModelProfileInputSchema =
|
|
85209
|
-
display_name:
|
|
85210
|
-
family:
|
|
85211
|
-
tier:
|
|
85212
|
-
models:
|
|
85233
|
+
var OmoModelProfileInputSchema = z11.object({
|
|
85234
|
+
display_name: z11.string().optional(),
|
|
85235
|
+
family: z11.enum(["daily", "geeky"]).optional(),
|
|
85236
|
+
tier: z11.enum(["normal", "heavy"]).optional(),
|
|
85237
|
+
models: z11.array(z11.union([z11.string(), OmoFallbackModelObjectSchema])).optional()
|
|
85213
85238
|
}).strict();
|
|
85214
|
-
var OmoModelProfileSchema =
|
|
85215
|
-
var OmoModelProfilesSchema =
|
|
85239
|
+
var OmoModelProfileSchema = z11.preprocess((value) => isRecord9(value) ? normalizeLegacyModelFields(value) : value, OmoModelProfileInputSchema);
|
|
85240
|
+
var OmoModelProfilesSchema = z11.record(z11.string(), OmoModelProfileSchema);
|
|
85216
85241
|
var OmoModelProfileLayerInputSchema = OmoModelProfileInputSchema.partial();
|
|
85217
|
-
var OmoModelProfileLayerSchema =
|
|
85218
|
-
var OmoModelProfilesLayerSchema =
|
|
85242
|
+
var OmoModelProfileLayerSchema = z11.preprocess((value) => isRecord9(value) ? normalizeLegacyModelFields(value) : value, OmoModelProfileLayerInputSchema);
|
|
85243
|
+
var OmoModelProfilesLayerSchema = z11.record(z11.string(), OmoModelProfileLayerSchema);
|
|
85219
85244
|
|
|
85220
85245
|
// packages/omo-config-core/src/schema/side-panel.ts
|
|
85221
|
-
import * as
|
|
85222
|
-
var OmoSidePanelWidthSchema =
|
|
85246
|
+
import * as z12 from "zod";
|
|
85247
|
+
var OmoSidePanelWidthSchema = z12.union([z12.number().int().min(24).max(160), z12.string().regex(/^(?:1\d|[2-4]\d|50)%$/)]);
|
|
85223
85248
|
var OmoSidePanelSectionsShape = {
|
|
85224
|
-
session:
|
|
85225
|
-
goal:
|
|
85226
|
-
context:
|
|
85227
|
-
usage:
|
|
85228
|
-
agents:
|
|
85229
|
-
tools:
|
|
85230
|
-
files:
|
|
85231
|
-
memory:
|
|
85249
|
+
session: z12.boolean(),
|
|
85250
|
+
goal: z12.boolean(),
|
|
85251
|
+
context: z12.boolean(),
|
|
85252
|
+
usage: z12.boolean(),
|
|
85253
|
+
agents: z12.boolean(),
|
|
85254
|
+
tools: z12.boolean(),
|
|
85255
|
+
files: z12.boolean(),
|
|
85256
|
+
memory: z12.boolean()
|
|
85232
85257
|
};
|
|
85233
|
-
var OmoSidePanelSectionsLayerSchema =
|
|
85258
|
+
var OmoSidePanelSectionsLayerSchema = z12.object(OmoSidePanelSectionsShape).partial().strict();
|
|
85234
85259
|
var OmoSidePanelSectionsSchema = OmoSidePanelSectionsLayerSchema.extend({
|
|
85235
|
-
session:
|
|
85236
|
-
goal:
|
|
85237
|
-
context:
|
|
85238
|
-
usage:
|
|
85239
|
-
agents:
|
|
85240
|
-
tools:
|
|
85241
|
-
files:
|
|
85242
|
-
memory:
|
|
85260
|
+
session: z12.boolean().default(true),
|
|
85261
|
+
goal: z12.boolean().default(true),
|
|
85262
|
+
context: z12.boolean().default(true),
|
|
85263
|
+
usage: z12.boolean().default(false),
|
|
85264
|
+
agents: z12.boolean().default(true),
|
|
85265
|
+
tools: z12.boolean().default(true),
|
|
85266
|
+
files: z12.boolean().default(true),
|
|
85267
|
+
memory: z12.boolean().default(true)
|
|
85243
85268
|
}).strict();
|
|
85244
85269
|
var OmoSidePanelSettingsShape = {
|
|
85245
|
-
enabled:
|
|
85270
|
+
enabled: z12.boolean(),
|
|
85246
85271
|
width: OmoSidePanelWidthSchema,
|
|
85247
|
-
min_columns:
|
|
85248
|
-
clickable:
|
|
85249
|
-
usage_poll_seconds:
|
|
85272
|
+
min_columns: z12.number().int().min(60).max(400),
|
|
85273
|
+
clickable: z12.boolean(),
|
|
85274
|
+
usage_poll_seconds: z12.number().int().min(60).max(3600),
|
|
85250
85275
|
sections: OmoSidePanelSectionsLayerSchema
|
|
85251
85276
|
};
|
|
85252
|
-
var OmoSidePanelSettingsLayerSchema =
|
|
85277
|
+
var OmoSidePanelSettingsLayerSchema = z12.object(OmoSidePanelSettingsShape).partial().strict();
|
|
85253
85278
|
var OmoSidePanelSettingsSchema = OmoSidePanelSettingsLayerSchema.extend({
|
|
85254
|
-
enabled:
|
|
85279
|
+
enabled: z12.boolean().default(false),
|
|
85255
85280
|
width: OmoSidePanelWidthSchema.default("26%"),
|
|
85256
|
-
min_columns:
|
|
85257
|
-
clickable:
|
|
85258
|
-
usage_poll_seconds:
|
|
85281
|
+
min_columns: z12.number().int().min(60).max(400).default(120),
|
|
85282
|
+
clickable: z12.boolean().default(true),
|
|
85283
|
+
usage_poll_seconds: z12.number().int().min(60).max(3600).default(150),
|
|
85259
85284
|
sections: OmoSidePanelSectionsSchema.default({
|
|
85260
85285
|
session: true,
|
|
85261
85286
|
goal: true,
|
|
@@ -85270,23 +85295,23 @@ var OmoSidePanelSettingsSchema = OmoSidePanelSettingsLayerSchema.extend({
|
|
|
85270
85295
|
|
|
85271
85296
|
// packages/omo-config-core/src/schema/task.ts
|
|
85272
85297
|
import { availableParallelism } from "os";
|
|
85273
|
-
import * as
|
|
85298
|
+
import * as z13 from "zod";
|
|
85274
85299
|
var DEFAULT_RESIDENCY_MAX_CHILDREN = "unlimited";
|
|
85275
|
-
var ResidencyMaxChildrenInputSchema =
|
|
85276
|
-
var OmoTaskWaitSchema =
|
|
85277
|
-
min_ms:
|
|
85278
|
-
default_ms:
|
|
85279
|
-
max_ms:
|
|
85300
|
+
var ResidencyMaxChildrenInputSchema = z13.union([z13.number().int().nonnegative(), z13.literal("unlimited")]);
|
|
85301
|
+
var OmoTaskWaitSchema = z13.object({
|
|
85302
|
+
min_ms: z13.number().int().positive().default(5000),
|
|
85303
|
+
default_ms: z13.number().int().positive().default(60000),
|
|
85304
|
+
max_ms: z13.number().int().positive().default(600000)
|
|
85280
85305
|
}).strict();
|
|
85281
|
-
var OmoTaskTeamSettingsSchema =
|
|
85282
|
-
max_members:
|
|
85283
|
-
max_parallel_members:
|
|
85284
|
-
max_wall_clock_minutes:
|
|
85306
|
+
var OmoTaskTeamSettingsSchema = z13.object({
|
|
85307
|
+
max_members: z13.number().int().min(1).max(8).default(8),
|
|
85308
|
+
max_parallel_members: z13.number().int().min(1).max(8).default(4),
|
|
85309
|
+
max_wall_clock_minutes: z13.number().int().positive().default(120)
|
|
85285
85310
|
}).strict();
|
|
85286
|
-
var OmoTaskWarningsSchema =
|
|
85287
|
-
unavailable_categories:
|
|
85311
|
+
var OmoTaskWarningsSchema = z13.object({
|
|
85312
|
+
unavailable_categories: z13.boolean().default(true)
|
|
85288
85313
|
}).strict();
|
|
85289
|
-
var IsolationBackendKindSchema =
|
|
85314
|
+
var IsolationBackendKindSchema = z13.enum([
|
|
85290
85315
|
"auto",
|
|
85291
85316
|
"apfs",
|
|
85292
85317
|
"btrfs",
|
|
@@ -85296,49 +85321,49 @@ var IsolationBackendKindSchema = z12.enum([
|
|
|
85296
85321
|
"block-clone",
|
|
85297
85322
|
"rcopy"
|
|
85298
85323
|
]);
|
|
85299
|
-
var OmoTaskIsolationSchema =
|
|
85300
|
-
enabled:
|
|
85324
|
+
var OmoTaskIsolationSchema = z13.object({
|
|
85325
|
+
enabled: z13.boolean().default(false),
|
|
85301
85326
|
backend: IsolationBackendKindSchema.default("auto"),
|
|
85302
|
-
apply:
|
|
85303
|
-
merge:
|
|
85304
|
-
commits:
|
|
85327
|
+
apply: z13.boolean().default(true),
|
|
85328
|
+
merge: z13.enum(["patch", "branch"]).default("patch"),
|
|
85329
|
+
commits: z13.enum(["generic", "ai"]).default("generic")
|
|
85305
85330
|
}).strict();
|
|
85306
85331
|
var isolationDefaults = OmoTaskIsolationSchema.parse({});
|
|
85307
|
-
var OmoTaskIsolationLayerSchema =
|
|
85308
|
-
enabled:
|
|
85332
|
+
var OmoTaskIsolationLayerSchema = z13.object({
|
|
85333
|
+
enabled: z13.boolean().optional(),
|
|
85309
85334
|
backend: IsolationBackendKindSchema.optional(),
|
|
85310
|
-
apply:
|
|
85311
|
-
merge:
|
|
85312
|
-
commits:
|
|
85335
|
+
apply: z13.boolean().optional(),
|
|
85336
|
+
merge: z13.enum(["patch", "branch"]).optional(),
|
|
85337
|
+
commits: z13.enum(["generic", "ai"]).optional()
|
|
85313
85338
|
}).strict();
|
|
85314
|
-
var OmoTaskDagSettingsSchema =
|
|
85315
|
-
max_nodes_per_run:
|
|
85316
|
-
max_runs_per_session:
|
|
85317
|
-
subscriber_ring:
|
|
85318
|
-
heartbeat_ms:
|
|
85319
|
-
history_default_limit:
|
|
85320
|
-
history_max_limit:
|
|
85321
|
-
retention_days:
|
|
85322
|
-
max_prompt_bytes:
|
|
85339
|
+
var OmoTaskDagSettingsSchema = z13.object({
|
|
85340
|
+
max_nodes_per_run: z13.number().int().positive().default(64),
|
|
85341
|
+
max_runs_per_session: z13.number().int().positive().default(16),
|
|
85342
|
+
subscriber_ring: z13.number().int().positive().default(1000),
|
|
85343
|
+
heartbeat_ms: z13.number().int().positive().default(15000),
|
|
85344
|
+
history_default_limit: z13.number().int().positive().default(256),
|
|
85345
|
+
history_max_limit: z13.number().int().positive().default(1000),
|
|
85346
|
+
retention_days: z13.number().int().positive().default(7),
|
|
85347
|
+
max_prompt_bytes: z13.number().int().positive().default(262144)
|
|
85323
85348
|
}).strict();
|
|
85324
|
-
var OmoTaskSettingsSchema =
|
|
85349
|
+
var OmoTaskSettingsSchema = z13.object({
|
|
85325
85350
|
isolation: OmoTaskIsolationSchema.default(isolationDefaults),
|
|
85326
|
-
default_execution_mode:
|
|
85327
|
-
process_runner:
|
|
85328
|
-
host_engine_policy:
|
|
85329
|
-
host_idle_exit_ms:
|
|
85330
|
-
host_shard_prewarm:
|
|
85331
|
-
default_concurrency:
|
|
85332
|
-
global_concurrency:
|
|
85333
|
-
provider_concurrency:
|
|
85334
|
-
model_concurrency:
|
|
85335
|
-
max_depth:
|
|
85351
|
+
default_execution_mode: z13.enum(["auto", "in-process", "process"]).default("auto"),
|
|
85352
|
+
process_runner: z13.enum(["host", "child-process"]).default("host"),
|
|
85353
|
+
host_engine_policy: z13.enum(["upgrade", "fallback"]).default("upgrade"),
|
|
85354
|
+
host_idle_exit_ms: z13.number().int().positive().optional(),
|
|
85355
|
+
host_shard_prewarm: z13.enum(["off", "first-turn", "session-start"]).default("first-turn"),
|
|
85356
|
+
default_concurrency: z13.number().int().nonnegative().default(5),
|
|
85357
|
+
global_concurrency: z13.number().int().nonnegative().default(8),
|
|
85358
|
+
provider_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85359
|
+
model_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85360
|
+
max_depth: z13.number().int().nonnegative().default(1),
|
|
85336
85361
|
residency_max_children: ResidencyMaxChildrenInputSchema.default(DEFAULT_RESIDENCY_MAX_CHILDREN),
|
|
85337
|
-
resident_idle_timeout_ms:
|
|
85338
|
-
ttl_ms:
|
|
85339
|
-
state_dir:
|
|
85340
|
-
reattach_on_reconcile:
|
|
85341
|
-
resume_children:
|
|
85362
|
+
resident_idle_timeout_ms: z13.number().int().positive().max(Number.MAX_SAFE_INTEGER).default(900000),
|
|
85363
|
+
ttl_ms: z13.number().int().positive().default(86400000),
|
|
85364
|
+
state_dir: z13.string().optional(),
|
|
85365
|
+
reattach_on_reconcile: z13.boolean().optional(),
|
|
85366
|
+
resume_children: z13.boolean().default(true),
|
|
85342
85367
|
warnings: OmoTaskWarningsSchema.default({ unavailable_categories: true }),
|
|
85343
85368
|
wait: OmoTaskWaitSchema.default({ min_ms: 5000, default_ms: 60000, max_ms: 600000 }),
|
|
85344
85369
|
team: OmoTaskTeamSettingsSchema.default({
|
|
@@ -85348,54 +85373,54 @@ var OmoTaskSettingsSchema = z12.object({
|
|
|
85348
85373
|
}),
|
|
85349
85374
|
dag: OmoTaskDagSettingsSchema.optional()
|
|
85350
85375
|
}).strict();
|
|
85351
|
-
var OmoTaskDagSettingsLayerSchema =
|
|
85352
|
-
max_nodes_per_run:
|
|
85353
|
-
max_runs_per_session:
|
|
85354
|
-
subscriber_ring:
|
|
85355
|
-
heartbeat_ms:
|
|
85356
|
-
history_default_limit:
|
|
85357
|
-
history_max_limit:
|
|
85358
|
-
retention_days:
|
|
85359
|
-
max_prompt_bytes:
|
|
85376
|
+
var OmoTaskDagSettingsLayerSchema = z13.object({
|
|
85377
|
+
max_nodes_per_run: z13.number().int().positive().optional(),
|
|
85378
|
+
max_runs_per_session: z13.number().int().positive().optional(),
|
|
85379
|
+
subscriber_ring: z13.number().int().positive().optional(),
|
|
85380
|
+
heartbeat_ms: z13.number().int().positive().optional(),
|
|
85381
|
+
history_default_limit: z13.number().int().positive().optional(),
|
|
85382
|
+
history_max_limit: z13.number().int().positive().optional(),
|
|
85383
|
+
retention_days: z13.number().int().positive().optional(),
|
|
85384
|
+
max_prompt_bytes: z13.number().int().positive().optional()
|
|
85360
85385
|
}).strict();
|
|
85361
|
-
var OmoTaskWaitLayerSchema =
|
|
85362
|
-
min_ms:
|
|
85363
|
-
default_ms:
|
|
85364
|
-
max_ms:
|
|
85386
|
+
var OmoTaskWaitLayerSchema = z13.object({
|
|
85387
|
+
min_ms: z13.number().int().positive().optional(),
|
|
85388
|
+
default_ms: z13.number().int().positive().optional(),
|
|
85389
|
+
max_ms: z13.number().int().positive().optional()
|
|
85365
85390
|
}).strict();
|
|
85366
|
-
var OmoTaskTeamSettingsLayerSchema =
|
|
85367
|
-
max_members:
|
|
85368
|
-
max_parallel_members:
|
|
85369
|
-
max_wall_clock_minutes:
|
|
85391
|
+
var OmoTaskTeamSettingsLayerSchema = z13.object({
|
|
85392
|
+
max_members: z13.number().int().min(1).max(8).optional(),
|
|
85393
|
+
max_parallel_members: z13.number().int().min(1).max(8).optional(),
|
|
85394
|
+
max_wall_clock_minutes: z13.number().int().positive().optional()
|
|
85370
85395
|
}).strict();
|
|
85371
|
-
var OmoTaskWarningsLayerSchema =
|
|
85372
|
-
unavailable_categories:
|
|
85396
|
+
var OmoTaskWarningsLayerSchema = z13.object({
|
|
85397
|
+
unavailable_categories: z13.boolean().optional()
|
|
85373
85398
|
}).strict();
|
|
85374
|
-
var OmoTaskSettingsLayerSchema =
|
|
85399
|
+
var OmoTaskSettingsLayerSchema = z13.object({
|
|
85375
85400
|
isolation: OmoTaskIsolationLayerSchema.optional(),
|
|
85376
|
-
default_execution_mode:
|
|
85377
|
-
process_runner:
|
|
85378
|
-
host_engine_policy:
|
|
85379
|
-
host_idle_exit_ms:
|
|
85380
|
-
host_shard_prewarm:
|
|
85381
|
-
default_concurrency:
|
|
85382
|
-
global_concurrency:
|
|
85383
|
-
provider_concurrency:
|
|
85384
|
-
model_concurrency:
|
|
85385
|
-
max_depth:
|
|
85401
|
+
default_execution_mode: z13.enum(["auto", "in-process", "process"]).optional(),
|
|
85402
|
+
process_runner: z13.enum(["host", "child-process"]).optional(),
|
|
85403
|
+
host_engine_policy: z13.enum(["upgrade", "fallback"]).optional(),
|
|
85404
|
+
host_idle_exit_ms: z13.number().int().positive().optional(),
|
|
85405
|
+
host_shard_prewarm: z13.enum(["off", "first-turn", "session-start"]).optional(),
|
|
85406
|
+
default_concurrency: z13.number().int().nonnegative().optional(),
|
|
85407
|
+
global_concurrency: z13.number().int().nonnegative().optional(),
|
|
85408
|
+
provider_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85409
|
+
model_concurrency: z13.record(z13.string(), z13.number().int().nonnegative()).optional(),
|
|
85410
|
+
max_depth: z13.number().int().nonnegative().optional(),
|
|
85386
85411
|
residency_max_children: ResidencyMaxChildrenInputSchema.optional(),
|
|
85387
|
-
resident_idle_timeout_ms:
|
|
85388
|
-
ttl_ms:
|
|
85389
|
-
state_dir:
|
|
85390
|
-
reattach_on_reconcile:
|
|
85391
|
-
resume_children:
|
|
85412
|
+
resident_idle_timeout_ms: z13.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),
|
|
85413
|
+
ttl_ms: z13.number().int().positive().optional(),
|
|
85414
|
+
state_dir: z13.string().optional(),
|
|
85415
|
+
reattach_on_reconcile: z13.boolean().optional(),
|
|
85416
|
+
resume_children: z13.boolean().optional(),
|
|
85392
85417
|
warnings: OmoTaskWarningsLayerSchema.optional(),
|
|
85393
85418
|
wait: OmoTaskWaitLayerSchema.optional(),
|
|
85394
85419
|
team: OmoTaskTeamSettingsLayerSchema.optional(),
|
|
85395
85420
|
dag: OmoTaskDagSettingsLayerSchema.optional()
|
|
85396
85421
|
}).strict();
|
|
85397
85422
|
function resolveOmoTaskSettings(input, resolveParallelism = availableParallelism) {
|
|
85398
|
-
const record =
|
|
85423
|
+
const record = z13.record(z13.string(), z13.unknown()).parse(input);
|
|
85399
85424
|
return OmoTaskSettingsSchema.parse({
|
|
85400
85425
|
...record,
|
|
85401
85426
|
residency_max_children: record["residency_max_children"] ?? DEFAULT_RESIDENCY_MAX_CHILDREN,
|
|
@@ -85404,39 +85429,39 @@ function resolveOmoTaskSettings(input, resolveParallelism = availableParallelism
|
|
|
85404
85429
|
}
|
|
85405
85430
|
|
|
85406
85431
|
// packages/omo-config-core/src/schema/team.ts
|
|
85407
|
-
import * as
|
|
85408
|
-
var OmoTeamMemberBaseSchema =
|
|
85409
|
-
name:
|
|
85410
|
-
cwd:
|
|
85411
|
-
worktreePath:
|
|
85412
|
-
subscriptions:
|
|
85413
|
-
backendType:
|
|
85414
|
-
color:
|
|
85415
|
-
isActive:
|
|
85432
|
+
import * as z14 from "zod";
|
|
85433
|
+
var OmoTeamMemberBaseSchema = z14.object({
|
|
85434
|
+
name: z14.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
85435
|
+
cwd: z14.string().optional(),
|
|
85436
|
+
worktreePath: z14.string().optional(),
|
|
85437
|
+
subscriptions: z14.array(z14.string()).optional(),
|
|
85438
|
+
backendType: z14.enum(["in-process", "tmux"]).default("in-process"),
|
|
85439
|
+
color: z14.string().optional(),
|
|
85440
|
+
isActive: z14.boolean().default(true)
|
|
85416
85441
|
}).strict();
|
|
85417
85442
|
var OmoTeamCategoryMemberSchema = OmoTeamMemberBaseSchema.extend({
|
|
85418
|
-
kind:
|
|
85419
|
-
category:
|
|
85420
|
-
prompt:
|
|
85443
|
+
kind: z14.literal("category"),
|
|
85444
|
+
category: z14.string().min(1),
|
|
85445
|
+
prompt: z14.string().min(1)
|
|
85421
85446
|
});
|
|
85422
85447
|
var OmoTeamSubagentMemberSchema = OmoTeamMemberBaseSchema.extend({
|
|
85423
|
-
kind:
|
|
85424
|
-
subagent_type:
|
|
85425
|
-
prompt:
|
|
85448
|
+
kind: z14.literal("subagent_type"),
|
|
85449
|
+
subagent_type: z14.string().min(1),
|
|
85450
|
+
prompt: z14.string().optional()
|
|
85426
85451
|
});
|
|
85427
|
-
var OmoTeamMemberSchema =
|
|
85452
|
+
var OmoTeamMemberSchema = z14.discriminatedUnion("kind", [
|
|
85428
85453
|
OmoTeamCategoryMemberSchema,
|
|
85429
85454
|
OmoTeamSubagentMemberSchema
|
|
85430
85455
|
]);
|
|
85431
|
-
var OmoTeamSpecBaseSchema =
|
|
85432
|
-
version:
|
|
85433
|
-
name:
|
|
85434
|
-
description:
|
|
85435
|
-
createdAt:
|
|
85436
|
-
leadAgentId:
|
|
85437
|
-
teamAllowedPaths:
|
|
85438
|
-
sessionPermission:
|
|
85439
|
-
members:
|
|
85456
|
+
var OmoTeamSpecBaseSchema = z14.object({
|
|
85457
|
+
version: z14.literal(1).default(1),
|
|
85458
|
+
name: z14.string().min(1).regex(/^[a-z0-9-]+$/).optional(),
|
|
85459
|
+
description: z14.string().optional(),
|
|
85460
|
+
createdAt: z14.number().int().positive().optional(),
|
|
85461
|
+
leadAgentId: z14.string().optional(),
|
|
85462
|
+
teamAllowedPaths: z14.array(z14.string()).optional(),
|
|
85463
|
+
sessionPermission: z14.string().optional(),
|
|
85464
|
+
members: z14.array(OmoTeamMemberSchema).min(1).max(8)
|
|
85440
85465
|
}).strict();
|
|
85441
85466
|
var OmoTeamSpecSchema = OmoTeamSpecBaseSchema.superRefine((teamSpec, ctx) => {
|
|
85442
85467
|
if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
|
|
@@ -85448,43 +85473,43 @@ var OmoTeamSpecSchema = OmoTeamSpecBaseSchema.superRefine((teamSpec, ctx) => {
|
|
|
85448
85473
|
}
|
|
85449
85474
|
});
|
|
85450
85475
|
var OmoTeamSpecLayerSchema = OmoTeamSpecBaseSchema.partial();
|
|
85451
|
-
var OmoTeamsConfigSchema =
|
|
85452
|
-
var OmoTeamsConfigLayerSchema =
|
|
85476
|
+
var OmoTeamsConfigSchema = z14.record(z14.string(), OmoTeamSpecSchema);
|
|
85477
|
+
var OmoTeamsConfigLayerSchema = z14.record(z14.string(), OmoTeamSpecLayerSchema);
|
|
85453
85478
|
|
|
85454
85479
|
// packages/omo-config-core/src/schema/telemetry.ts
|
|
85455
|
-
import * as
|
|
85480
|
+
import * as z15 from "zod";
|
|
85456
85481
|
var OmoTelemetrySettingsShape = {
|
|
85457
|
-
enabled:
|
|
85482
|
+
enabled: z15.boolean()
|
|
85458
85483
|
};
|
|
85459
|
-
var OmoTelemetrySettingsLayerSchema =
|
|
85484
|
+
var OmoTelemetrySettingsLayerSchema = z15.object(OmoTelemetrySettingsShape).partial().strict();
|
|
85460
85485
|
var OmoTelemetrySettingsSchema = OmoTelemetrySettingsLayerSchema.extend({
|
|
85461
|
-
enabled:
|
|
85486
|
+
enabled: z15.boolean().default(true)
|
|
85462
85487
|
}).strict();
|
|
85463
85488
|
|
|
85464
85489
|
// packages/omo-config-core/src/schema/format-on-mutation.ts
|
|
85465
|
-
import * as
|
|
85466
|
-
var mode =
|
|
85467
|
-
var languages =
|
|
85468
|
-
var OmoFormatOnMutationLayerSchema =
|
|
85490
|
+
import * as z16 from "zod";
|
|
85491
|
+
var mode = z16.enum(["off", "best-effort", "required"]);
|
|
85492
|
+
var languages = z16.record(z16.string(), z16.boolean()).optional();
|
|
85493
|
+
var OmoFormatOnMutationLayerSchema = z16.object({
|
|
85469
85494
|
mode: mode.optional(),
|
|
85470
85495
|
languages,
|
|
85471
|
-
maxFileBytes:
|
|
85472
|
-
timeoutMs:
|
|
85496
|
+
maxFileBytes: z16.number().int().positive().optional(),
|
|
85497
|
+
timeoutMs: z16.number().int().positive().optional()
|
|
85473
85498
|
}).strict();
|
|
85474
85499
|
var OmoFormatOnMutationSchema = OmoFormatOnMutationLayerSchema.extend({
|
|
85475
85500
|
mode: mode.default("best-effort"),
|
|
85476
|
-
maxFileBytes:
|
|
85477
|
-
timeoutMs:
|
|
85501
|
+
maxFileBytes: z16.number().int().positive().default(1048576),
|
|
85502
|
+
timeoutMs: z16.number().int().positive().default(3000)
|
|
85478
85503
|
}).strict();
|
|
85479
85504
|
|
|
85480
85505
|
// packages/omo-config-core/src/schema/gateway.ts
|
|
85481
|
-
import * as
|
|
85482
|
-
var OmoGatewaySectionSchema =
|
|
85506
|
+
import * as z17 from "zod";
|
|
85507
|
+
var OmoGatewaySectionSchema = z17.record(z17.string(), z17.unknown()).describe("Chat-surface gateway settings, owned and validated by a separately installed gateway package. omo accepts the key and never reads it.");
|
|
85483
85508
|
|
|
85484
85509
|
// packages/omo-config-core/src/schema/config.ts
|
|
85485
|
-
var OmoOpenCodeHarnessConfigSchema =
|
|
85486
|
-
var OmoDisabledSkillsSchema =
|
|
85487
|
-
var OmoTypedHarnessConfigSchema =
|
|
85510
|
+
var OmoOpenCodeHarnessConfigSchema = z18.record(z18.string(), z18.unknown());
|
|
85511
|
+
var OmoDisabledSkillsSchema = z18.array(z18.string());
|
|
85512
|
+
var OmoTypedHarnessConfigSchema = z18.object({
|
|
85488
85513
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
85489
85514
|
gateway: OmoGatewaySectionSchema.optional(),
|
|
85490
85515
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
@@ -85494,14 +85519,14 @@ var OmoTypedHarnessConfigSchema = z17.object({
|
|
|
85494
85519
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
85495
85520
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
85496
85521
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
85497
|
-
model_profile:
|
|
85522
|
+
model_profile: z18.string().optional(),
|
|
85498
85523
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
85499
85524
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
85500
85525
|
side_panel: OmoSidePanelSettingsLayerSchema.optional(),
|
|
85501
85526
|
computer: OmoComputerSettingsLayerSchema.optional(),
|
|
85502
85527
|
disabled_skills: OmoDisabledSkillsSchema.optional()
|
|
85503
85528
|
}).strict();
|
|
85504
|
-
var OmoConfigProfileSchema =
|
|
85529
|
+
var OmoConfigProfileSchema = z18.object({
|
|
85505
85530
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
85506
85531
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
85507
85532
|
agents: OmoAgentsConfigSchema.optional(),
|
|
@@ -85510,7 +85535,7 @@ var OmoConfigProfileSchema = z17.object({
|
|
|
85510
85535
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
85511
85536
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
85512
85537
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
85513
|
-
model_profile:
|
|
85538
|
+
model_profile: z18.string().optional(),
|
|
85514
85539
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
85515
85540
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
85516
85541
|
side_panel: OmoSidePanelSettingsLayerSchema.optional(),
|
|
@@ -85521,10 +85546,10 @@ var OmoConfigProfileSchema = z17.object({
|
|
|
85521
85546
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
85522
85547
|
"[codex]": OmoTypedHarnessConfigSchema.optional()
|
|
85523
85548
|
}).strict();
|
|
85524
|
-
var OmoConfigSchema =
|
|
85549
|
+
var OmoConfigSchema = z18.object({
|
|
85525
85550
|
formatOnMutation: OmoFormatOnMutationSchema.optional(),
|
|
85526
85551
|
gateway: OmoGatewaySectionSchema.optional(),
|
|
85527
|
-
$schema:
|
|
85552
|
+
$schema: z18.string().optional(),
|
|
85528
85553
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
85529
85554
|
agents: OmoAgentsConfigSchema.optional(),
|
|
85530
85555
|
git_master: OmoGitMasterSettingsSchema.optional(),
|
|
@@ -85532,7 +85557,7 @@ var OmoConfigSchema = z17.object({
|
|
|
85532
85557
|
teams: OmoTeamsConfigSchema.optional(),
|
|
85533
85558
|
models: OmoModelCatalogSchema.optional(),
|
|
85534
85559
|
model_profiles: OmoModelProfilesSchema.optional(),
|
|
85535
|
-
model_profile:
|
|
85560
|
+
model_profile: z18.string().optional(),
|
|
85536
85561
|
memory: OmoMemorySettingsSchema.optional(),
|
|
85537
85562
|
telemetry: OmoTelemetrySettingsSchema.optional(),
|
|
85538
85563
|
side_panel: OmoSidePanelSettingsSchema.optional(),
|
|
@@ -85542,14 +85567,14 @@ var OmoConfigSchema = z17.object({
|
|
|
85542
85567
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
85543
85568
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
85544
85569
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
85545
|
-
profiles:
|
|
85546
|
-
_migrations:
|
|
85547
|
-
legacy_migrations:
|
|
85570
|
+
profiles: z18.record(z18.string(), OmoConfigProfileSchema).default({}),
|
|
85571
|
+
_migrations: z18.array(z18.string()).optional(),
|
|
85572
|
+
legacy_migrations: z18.record(z18.string(), z18.unknown()).optional()
|
|
85548
85573
|
}).strict();
|
|
85549
|
-
var OmoConfigLayerSchema =
|
|
85574
|
+
var OmoConfigLayerSchema = z18.object({
|
|
85550
85575
|
formatOnMutation: OmoFormatOnMutationLayerSchema.optional(),
|
|
85551
85576
|
gateway: OmoGatewaySectionSchema.optional(),
|
|
85552
|
-
$schema:
|
|
85577
|
+
$schema: z18.string().optional(),
|
|
85553
85578
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
85554
85579
|
agents: OmoAgentsConfigSchema.optional(),
|
|
85555
85580
|
git_master: OmoGitMasterSettingsLayerSchema.optional(),
|
|
@@ -85557,7 +85582,7 @@ var OmoConfigLayerSchema = z17.object({
|
|
|
85557
85582
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
85558
85583
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
85559
85584
|
model_profiles: OmoModelProfilesLayerSchema.optional(),
|
|
85560
|
-
model_profile:
|
|
85585
|
+
model_profile: z18.string().optional(),
|
|
85561
85586
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
85562
85587
|
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
85563
85588
|
side_panel: OmoSidePanelSettingsLayerSchema.optional(),
|
|
@@ -85567,9 +85592,9 @@ var OmoConfigLayerSchema = z17.object({
|
|
|
85567
85592
|
"[native]": OmoTypedHarnessConfigSchema.optional(),
|
|
85568
85593
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
85569
85594
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
85570
|
-
profiles:
|
|
85571
|
-
_migrations:
|
|
85572
|
-
legacy_migrations:
|
|
85595
|
+
profiles: z18.record(z18.string(), OmoConfigProfileSchema).optional(),
|
|
85596
|
+
_migrations: z18.array(z18.string()).optional(),
|
|
85597
|
+
legacy_migrations: z18.record(z18.string(), z18.unknown()).optional()
|
|
85573
85598
|
}).strict();
|
|
85574
85599
|
|
|
85575
85600
|
// packages/omo-config-core/src/schema/legacy-category-names.ts
|
|
@@ -87797,7 +87822,7 @@ init_src();
|
|
|
87797
87822
|
// package.json
|
|
87798
87823
|
var package_default = {
|
|
87799
87824
|
name: "oh-my-opencode",
|
|
87800
|
-
version: "5.1.
|
|
87825
|
+
version: "5.1.41",
|
|
87801
87826
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
87802
87827
|
main: "./dist/index.js",
|
|
87803
87828
|
types: "dist/index.d.ts",
|
|
@@ -87974,7 +87999,7 @@ var package_default = {
|
|
|
87974
87999
|
},
|
|
87975
88000
|
devDependencies: {
|
|
87976
88001
|
"@clack/prompts": "^1.8.1",
|
|
87977
|
-
"@code-yeongyu/senpi": "2026.10.
|
|
88002
|
+
"@code-yeongyu/senpi": "2026.10.21-1",
|
|
87978
88003
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
87979
88004
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
87980
88005
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -88015,6 +88040,7 @@ var package_default = {
|
|
|
88015
88040
|
"@opentui/core": "^0.5.11",
|
|
88016
88041
|
"@opentui/keymap": "^0.5.11",
|
|
88017
88042
|
"@types/js-yaml": "^4.0.9",
|
|
88043
|
+
"@types/node": "26.6.2",
|
|
88018
88044
|
"@types/picomatch": "^4.0.3",
|
|
88019
88045
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
88020
88046
|
"@typescript/typescript6": "6.0.2",
|
|
@@ -88034,18 +88060,18 @@ var package_default = {
|
|
|
88034
88060
|
typescript: "^7.0.2"
|
|
88035
88061
|
},
|
|
88036
88062
|
optionalDependencies: {
|
|
88037
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
88038
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
88039
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
88040
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
88041
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
88042
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
88043
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
88044
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
88045
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
88046
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
88047
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
88048
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
88063
|
+
"oh-my-opencode-darwin-arm64": "5.1.41",
|
|
88064
|
+
"oh-my-opencode-darwin-x64": "5.1.41",
|
|
88065
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.41",
|
|
88066
|
+
"oh-my-opencode-linux-arm64": "5.1.41",
|
|
88067
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.41",
|
|
88068
|
+
"oh-my-opencode-linux-x64": "5.1.41",
|
|
88069
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.41",
|
|
88070
|
+
"oh-my-opencode-linux-x64-musl": "5.1.41",
|
|
88071
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.41",
|
|
88072
|
+
"oh-my-opencode-windows-arm64": "5.1.41",
|
|
88073
|
+
"oh-my-opencode-windows-x64": "5.1.41",
|
|
88074
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.41"
|
|
88049
88075
|
},
|
|
88050
88076
|
overrides: {
|
|
88051
88077
|
hono: "^4.13.8",
|
|
@@ -88447,8 +88473,8 @@ function findUnknownKeyPaths(schema, value) {
|
|
|
88447
88473
|
}
|
|
88448
88474
|
|
|
88449
88475
|
// packages/omo-opencode/src/config/schema/agent-names.ts
|
|
88450
|
-
import { z as
|
|
88451
|
-
var BuiltinAgentNameSchema =
|
|
88476
|
+
import { z as z19 } from "zod";
|
|
88477
|
+
var BuiltinAgentNameSchema = z19.enum([
|
|
88452
88478
|
"sisyphus",
|
|
88453
88479
|
"hephaestus",
|
|
88454
88480
|
"prometheus",
|
|
@@ -88461,7 +88487,7 @@ var BuiltinAgentNameSchema = z18.enum([
|
|
|
88461
88487
|
"atlas",
|
|
88462
88488
|
"sisyphus-junior"
|
|
88463
88489
|
]);
|
|
88464
|
-
var BuiltinSkillNameSchema =
|
|
88490
|
+
var BuiltinSkillNameSchema = z19.enum([
|
|
88465
88491
|
"playwright",
|
|
88466
88492
|
"dev-browser",
|
|
88467
88493
|
"frontend",
|
|
@@ -88475,7 +88501,7 @@ var BuiltinSkillNameSchema = z18.enum([
|
|
|
88475
88501
|
"visual-qa",
|
|
88476
88502
|
"team-mode"
|
|
88477
88503
|
]);
|
|
88478
|
-
var OverridableAgentNameSchema =
|
|
88504
|
+
var OverridableAgentNameSchema = z19.enum([
|
|
88479
88505
|
"build",
|
|
88480
88506
|
"plan",
|
|
88481
88507
|
"sisyphus",
|
|
@@ -88492,41 +88518,41 @@ var OverridableAgentNameSchema = z18.enum([
|
|
|
88492
88518
|
"atlas"
|
|
88493
88519
|
]);
|
|
88494
88520
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
88495
|
-
import { z as
|
|
88521
|
+
import { z as z22 } from "zod";
|
|
88496
88522
|
|
|
88497
88523
|
// packages/omo-opencode/src/config/schema/fallback-models.ts
|
|
88498
|
-
import { z as
|
|
88499
|
-
var FallbackModelObjectSchema =
|
|
88500
|
-
model:
|
|
88524
|
+
import { z as z20 } from "zod";
|
|
88525
|
+
var FallbackModelObjectSchema = z20.object({
|
|
88526
|
+
model: z20.string(),
|
|
88501
88527
|
reasoning: OmoReasoningSchema.optional(),
|
|
88502
|
-
variant:
|
|
88503
|
-
reasoningEffort:
|
|
88504
|
-
temperature:
|
|
88505
|
-
top_p:
|
|
88506
|
-
maxTokens:
|
|
88507
|
-
thinking:
|
|
88508
|
-
type:
|
|
88509
|
-
budgetTokens:
|
|
88528
|
+
variant: z20.string().optional(),
|
|
88529
|
+
reasoningEffort: z20.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
88530
|
+
temperature: z20.number().min(0).max(2).optional(),
|
|
88531
|
+
top_p: z20.number().min(0).max(1).optional(),
|
|
88532
|
+
maxTokens: z20.number().optional(),
|
|
88533
|
+
thinking: z20.object({
|
|
88534
|
+
type: z20.enum(["enabled", "disabled"]),
|
|
88535
|
+
budgetTokens: z20.number().optional()
|
|
88510
88536
|
}).optional()
|
|
88511
88537
|
});
|
|
88512
|
-
var FallbackModelStringArraySchema =
|
|
88513
|
-
var FallbackModelObjectArraySchema =
|
|
88514
|
-
var FallbackModelMixedArraySchema =
|
|
88515
|
-
var FallbackModelsSchema =
|
|
88516
|
-
|
|
88538
|
+
var FallbackModelStringArraySchema = z20.array(z20.string());
|
|
88539
|
+
var FallbackModelObjectArraySchema = z20.array(FallbackModelObjectSchema);
|
|
88540
|
+
var FallbackModelMixedArraySchema = z20.array(z20.union([z20.string(), FallbackModelObjectSchema]));
|
|
88541
|
+
var FallbackModelsSchema = z20.union([
|
|
88542
|
+
z20.string(),
|
|
88517
88543
|
FallbackModelStringArraySchema,
|
|
88518
88544
|
FallbackModelObjectArraySchema,
|
|
88519
88545
|
FallbackModelMixedArraySchema
|
|
88520
88546
|
]);
|
|
88521
88547
|
|
|
88522
88548
|
// packages/omo-opencode/src/config/schema/internal/permission.ts
|
|
88523
|
-
import { z as
|
|
88524
|
-
var PermissionValueSchema2 =
|
|
88525
|
-
var BashPermissionSchema2 =
|
|
88549
|
+
import { z as z21 } from "zod";
|
|
88550
|
+
var PermissionValueSchema2 = z21.enum(["ask", "allow", "deny"]);
|
|
88551
|
+
var BashPermissionSchema2 = z21.union([
|
|
88526
88552
|
PermissionValueSchema2,
|
|
88527
|
-
|
|
88553
|
+
z21.record(z21.string(), PermissionValueSchema2)
|
|
88528
88554
|
]);
|
|
88529
|
-
var AgentPermissionSchema =
|
|
88555
|
+
var AgentPermissionSchema = z21.object({
|
|
88530
88556
|
edit: PermissionValueSchema2.optional(),
|
|
88531
88557
|
bash: BashPermissionSchema2.optional(),
|
|
88532
88558
|
webfetch: PermissionValueSchema2.optional(),
|
|
@@ -88536,50 +88562,50 @@ var AgentPermissionSchema = z20.object({
|
|
|
88536
88562
|
}).catchall(PermissionValueSchema2.optional());
|
|
88537
88563
|
|
|
88538
88564
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
88539
|
-
var AgentOverrideConfigSchema =
|
|
88540
|
-
model:
|
|
88541
|
-
models:
|
|
88565
|
+
var AgentOverrideConfigSchema = z22.object({
|
|
88566
|
+
model: z22.string().optional(),
|
|
88567
|
+
models: z22.array(z22.union([z22.string(), FallbackModelObjectSchema])).optional(),
|
|
88542
88568
|
fallback_models: FallbackModelsSchema.optional(),
|
|
88543
88569
|
reasoning: OmoReasoningSchema.optional(),
|
|
88544
|
-
variant:
|
|
88545
|
-
category:
|
|
88546
|
-
skills:
|
|
88547
|
-
temperature:
|
|
88548
|
-
top_p:
|
|
88549
|
-
prompt:
|
|
88550
|
-
prompt_append:
|
|
88551
|
-
tools:
|
|
88552
|
-
disable:
|
|
88553
|
-
description:
|
|
88554
|
-
mode:
|
|
88555
|
-
color:
|
|
88556
|
-
displayName:
|
|
88570
|
+
variant: z22.string().optional(),
|
|
88571
|
+
category: z22.string().optional(),
|
|
88572
|
+
skills: z22.array(z22.string()).optional(),
|
|
88573
|
+
temperature: z22.number().min(0).max(2).optional(),
|
|
88574
|
+
top_p: z22.number().min(0).max(1).optional(),
|
|
88575
|
+
prompt: z22.string().optional(),
|
|
88576
|
+
prompt_append: z22.string().optional(),
|
|
88577
|
+
tools: z22.record(z22.string(), z22.boolean()).optional(),
|
|
88578
|
+
disable: z22.boolean().optional(),
|
|
88579
|
+
description: z22.string().optional(),
|
|
88580
|
+
mode: z22.enum(["subagent", "primary", "all"]).optional(),
|
|
88581
|
+
color: z22.string().regex(/^#[0-9A-Fa-f]{6}$/).optional(),
|
|
88582
|
+
displayName: z22.string().optional(),
|
|
88557
88583
|
permission: AgentPermissionSchema.optional(),
|
|
88558
|
-
maxTokens:
|
|
88559
|
-
thinking:
|
|
88560
|
-
type:
|
|
88561
|
-
budgetTokens:
|
|
88584
|
+
maxTokens: z22.number().optional(),
|
|
88585
|
+
thinking: z22.object({
|
|
88586
|
+
type: z22.enum(["enabled", "disabled"]),
|
|
88587
|
+
budgetTokens: z22.number().optional()
|
|
88562
88588
|
}).optional(),
|
|
88563
|
-
reasoningEffort:
|
|
88564
|
-
textVerbosity:
|
|
88565
|
-
providerOptions:
|
|
88566
|
-
ultrawork:
|
|
88567
|
-
model:
|
|
88589
|
+
reasoningEffort: z22.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
88590
|
+
textVerbosity: z22.enum(["low", "medium", "high"]).optional(),
|
|
88591
|
+
providerOptions: z22.record(z22.string(), z22.unknown()).optional(),
|
|
88592
|
+
ultrawork: z22.object({
|
|
88593
|
+
model: z22.string().optional(),
|
|
88568
88594
|
reasoning: OmoReasoningSchema.optional(),
|
|
88569
|
-
variant:
|
|
88595
|
+
variant: z22.string().optional()
|
|
88570
88596
|
}).optional(),
|
|
88571
|
-
compaction:
|
|
88572
|
-
model:
|
|
88597
|
+
compaction: z22.object({
|
|
88598
|
+
model: z22.string().optional(),
|
|
88573
88599
|
reasoning: OmoReasoningSchema.optional(),
|
|
88574
|
-
variant:
|
|
88600
|
+
variant: z22.string().optional()
|
|
88575
88601
|
}).optional()
|
|
88576
88602
|
});
|
|
88577
|
-
var AgentOverridesSchema =
|
|
88603
|
+
var AgentOverridesSchema = z22.object({
|
|
88578
88604
|
build: AgentOverrideConfigSchema.optional(),
|
|
88579
88605
|
plan: AgentOverrideConfigSchema.optional(),
|
|
88580
88606
|
sisyphus: AgentOverrideConfigSchema.optional(),
|
|
88581
88607
|
hephaestus: AgentOverrideConfigSchema.extend({
|
|
88582
|
-
allow_non_gpt_model:
|
|
88608
|
+
allow_non_gpt_model: z22.boolean().optional()
|
|
88583
88609
|
}).optional(),
|
|
88584
88610
|
"sisyphus-junior": AgentOverrideConfigSchema.optional(),
|
|
88585
88611
|
"OpenCode-Builder": AgentOverrideConfigSchema.optional(),
|
|
@@ -88593,73 +88619,73 @@ var AgentOverridesSchema = z21.object({
|
|
|
88593
88619
|
atlas: AgentOverrideConfigSchema.optional()
|
|
88594
88620
|
}).catchall(AgentOverrideConfigSchema.optional());
|
|
88595
88621
|
// packages/omo-opencode/src/config/schema/babysitting.ts
|
|
88596
|
-
import { z as
|
|
88597
|
-
var BabysittingConfigSchema =
|
|
88598
|
-
timeout_ms:
|
|
88622
|
+
import { z as z23 } from "zod";
|
|
88623
|
+
var BabysittingConfigSchema = z23.object({
|
|
88624
|
+
timeout_ms: z23.number().default(120000)
|
|
88599
88625
|
});
|
|
88600
88626
|
// packages/omo-opencode/src/config/schema/background-task.ts
|
|
88601
|
-
import { z as
|
|
88602
|
-
var CircuitBreakerConfigSchema =
|
|
88603
|
-
enabled:
|
|
88604
|
-
maxToolCalls:
|
|
88605
|
-
consecutiveThreshold:
|
|
88627
|
+
import { z as z24 } from "zod";
|
|
88628
|
+
var CircuitBreakerConfigSchema = z24.object({
|
|
88629
|
+
enabled: z24.boolean().optional(),
|
|
88630
|
+
maxToolCalls: z24.number().int().min(10).optional(),
|
|
88631
|
+
consecutiveThreshold: z24.number().int().min(5).optional()
|
|
88606
88632
|
});
|
|
88607
|
-
var BackgroundTaskConfigSchema =
|
|
88608
|
-
defaultConcurrency:
|
|
88609
|
-
providerConcurrency:
|
|
88610
|
-
modelConcurrency:
|
|
88611
|
-
maxDepth:
|
|
88612
|
-
maxLiveDescendantsPerRoot:
|
|
88613
|
-
staleTimeoutMs:
|
|
88614
|
-
messageStalenessTimeoutMs:
|
|
88615
|
-
taskTtlMs:
|
|
88616
|
-
sessionGoneTimeoutMs:
|
|
88617
|
-
taskCleanupDelayMs:
|
|
88618
|
-
syncPollTimeoutMs:
|
|
88619
|
-
maxToolCalls:
|
|
88633
|
+
var BackgroundTaskConfigSchema = z24.object({
|
|
88634
|
+
defaultConcurrency: z24.number().min(0).optional(),
|
|
88635
|
+
providerConcurrency: z24.record(z24.string(), z24.number().min(0)).optional(),
|
|
88636
|
+
modelConcurrency: z24.record(z24.string(), z24.number().min(0)).optional(),
|
|
88637
|
+
maxDepth: z24.number().int().min(1).optional(),
|
|
88638
|
+
maxLiveDescendantsPerRoot: z24.number().int().min(0).optional(),
|
|
88639
|
+
staleTimeoutMs: z24.number().min(60000).optional(),
|
|
88640
|
+
messageStalenessTimeoutMs: z24.number().min(60000).optional(),
|
|
88641
|
+
taskTtlMs: z24.number().min(300000).optional(),
|
|
88642
|
+
sessionGoneTimeoutMs: z24.number().min(1e4).optional(),
|
|
88643
|
+
taskCleanupDelayMs: z24.number().min(60000).optional(),
|
|
88644
|
+
syncPollTimeoutMs: z24.number().min(60000).optional(),
|
|
88645
|
+
maxToolCalls: z24.number().int().min(10).optional(),
|
|
88620
88646
|
circuitBreaker: CircuitBreakerConfigSchema.optional()
|
|
88621
88647
|
});
|
|
88622
88648
|
// packages/omo-opencode/src/config/schema/browser-automation.ts
|
|
88623
|
-
import { z as
|
|
88624
|
-
var BrowserAutomationProviderSchema =
|
|
88649
|
+
import { z as z25 } from "zod";
|
|
88650
|
+
var BrowserAutomationProviderSchema = z25.enum([
|
|
88625
88651
|
"playwright",
|
|
88626
88652
|
"dev-browser",
|
|
88627
88653
|
"playwright-cli"
|
|
88628
88654
|
], {
|
|
88629
88655
|
error: (issue) => `Browser provider ${JSON.stringify(issue.input)} is no longer supported; use the built-in browser path: Bun.WebView / playwright-core scripts`
|
|
88630
88656
|
});
|
|
88631
|
-
var BrowserAutomationConfigSchema =
|
|
88657
|
+
var BrowserAutomationConfigSchema = z25.object({
|
|
88632
88658
|
provider: BrowserAutomationProviderSchema.default("playwright"),
|
|
88633
|
-
playwright_mcp_args:
|
|
88659
|
+
playwright_mcp_args: z25.array(z25.string()).optional()
|
|
88634
88660
|
});
|
|
88635
88661
|
// packages/omo-opencode/src/config/schema/categories.ts
|
|
88636
|
-
import { z as
|
|
88637
|
-
var CategoryConfigSchema =
|
|
88638
|
-
description:
|
|
88639
|
-
model:
|
|
88640
|
-
models:
|
|
88662
|
+
import { z as z26 } from "zod";
|
|
88663
|
+
var CategoryConfigSchema = z26.object({
|
|
88664
|
+
description: z26.string().optional(),
|
|
88665
|
+
model: z26.string().optional(),
|
|
88666
|
+
models: z26.array(z26.union([z26.string(), FallbackModelObjectSchema])).optional(),
|
|
88641
88667
|
fallback_models: FallbackModelsSchema.optional(),
|
|
88642
88668
|
reasoning: OmoReasoningSchema.optional(),
|
|
88643
|
-
variant:
|
|
88644
|
-
temperature:
|
|
88645
|
-
top_p:
|
|
88646
|
-
max_tokens:
|
|
88647
|
-
provider_options:
|
|
88648
|
-
maxTokens:
|
|
88649
|
-
thinking:
|
|
88650
|
-
type:
|
|
88651
|
-
budgetTokens:
|
|
88669
|
+
variant: z26.string().optional(),
|
|
88670
|
+
temperature: z26.number().min(0).max(2).optional(),
|
|
88671
|
+
top_p: z26.number().min(0).max(1).optional(),
|
|
88672
|
+
max_tokens: z26.number().int().positive().optional(),
|
|
88673
|
+
provider_options: z26.record(z26.string(), z26.unknown()).optional(),
|
|
88674
|
+
maxTokens: z26.number().optional(),
|
|
88675
|
+
thinking: z26.object({
|
|
88676
|
+
type: z26.enum(["enabled", "disabled"]),
|
|
88677
|
+
budgetTokens: z26.number().optional()
|
|
88652
88678
|
}).optional(),
|
|
88653
|
-
reasoningEffort:
|
|
88654
|
-
textVerbosity:
|
|
88655
|
-
tools:
|
|
88656
|
-
prompt_append:
|
|
88657
|
-
max_prompt_tokens:
|
|
88658
|
-
is_unstable_agent:
|
|
88659
|
-
disable:
|
|
88660
|
-
warn_unavailable:
|
|
88679
|
+
reasoningEffort: z26.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
88680
|
+
textVerbosity: z26.enum(["low", "medium", "high"]).optional(),
|
|
88681
|
+
tools: z26.record(z26.string(), z26.boolean()).optional(),
|
|
88682
|
+
prompt_append: z26.string().optional(),
|
|
88683
|
+
max_prompt_tokens: z26.number().int().positive().optional(),
|
|
88684
|
+
is_unstable_agent: z26.boolean().optional(),
|
|
88685
|
+
disable: z26.boolean().optional(),
|
|
88686
|
+
warn_unavailable: z26.boolean().optional()
|
|
88661
88687
|
});
|
|
88662
|
-
var BuiltinCategoryNameSchema =
|
|
88688
|
+
var BuiltinCategoryNameSchema = z26.enum([
|
|
88663
88689
|
"visual-engineering",
|
|
88664
88690
|
"ultrabrain",
|
|
88665
88691
|
"deep",
|
|
@@ -88669,29 +88695,29 @@ var BuiltinCategoryNameSchema = z25.enum([
|
|
|
88669
88695
|
"unspecified-high",
|
|
88670
88696
|
"writing"
|
|
88671
88697
|
]);
|
|
88672
|
-
var CategoriesConfigSchema =
|
|
88698
|
+
var CategoriesConfigSchema = z26.record(z26.string(), CategoryConfigSchema);
|
|
88673
88699
|
// packages/omo-opencode/src/config/schema/claude-code.ts
|
|
88674
|
-
import { z as
|
|
88675
|
-
var ClaudeCodeConfigSchema =
|
|
88676
|
-
mcp:
|
|
88677
|
-
commands:
|
|
88678
|
-
skills:
|
|
88679
|
-
agents:
|
|
88680
|
-
hooks:
|
|
88681
|
-
plugins:
|
|
88682
|
-
plugins_override:
|
|
88683
|
-
anthropic_provider:
|
|
88700
|
+
import { z as z27 } from "zod";
|
|
88701
|
+
var ClaudeCodeConfigSchema = z27.object({
|
|
88702
|
+
mcp: z27.boolean().optional(),
|
|
88703
|
+
commands: z27.boolean().optional(),
|
|
88704
|
+
skills: z27.boolean().optional(),
|
|
88705
|
+
agents: z27.boolean().optional(),
|
|
88706
|
+
hooks: z27.boolean().optional(),
|
|
88707
|
+
plugins: z27.boolean().optional(),
|
|
88708
|
+
plugins_override: z27.record(z27.string(), z27.boolean()).optional(),
|
|
88709
|
+
anthropic_provider: z27.string().trim().min(1).refine((v) => !v.includes("/"), {
|
|
88684
88710
|
message: "anthropic_provider must be a provider name without '/'"
|
|
88685
88711
|
}).optional()
|
|
88686
88712
|
});
|
|
88687
88713
|
// packages/omo-opencode/src/config/schema/comment-checker.ts
|
|
88688
|
-
import { z as
|
|
88689
|
-
var CommentCheckerConfigSchema =
|
|
88690
|
-
custom_prompt:
|
|
88714
|
+
import { z as z28 } from "zod";
|
|
88715
|
+
var CommentCheckerConfigSchema = z28.object({
|
|
88716
|
+
custom_prompt: z28.string().optional()
|
|
88691
88717
|
});
|
|
88692
88718
|
// packages/omo-opencode/src/config/schema/commands.ts
|
|
88693
|
-
import { z as
|
|
88694
|
-
var BuiltinCommandNameSchema =
|
|
88719
|
+
import { z as z29 } from "zod";
|
|
88720
|
+
var BuiltinCommandNameSchema = z29.enum([
|
|
88695
88721
|
"goal",
|
|
88696
88722
|
"refactor",
|
|
88697
88723
|
"ulw-execute",
|
|
@@ -88700,21 +88726,21 @@ var BuiltinCommandNameSchema = z28.enum([
|
|
|
88700
88726
|
"hyperplan"
|
|
88701
88727
|
]);
|
|
88702
88728
|
// packages/omo-opencode/src/config/schema/default-mode.ts
|
|
88703
|
-
import { z as
|
|
88704
|
-
var DefaultModeConfigSchema =
|
|
88705
|
-
ultrawork:
|
|
88706
|
-
goal:
|
|
88729
|
+
import { z as z30 } from "zod";
|
|
88730
|
+
var DefaultModeConfigSchema = z30.object({
|
|
88731
|
+
ultrawork: z30.boolean().default(false),
|
|
88732
|
+
goal: z30.boolean().default(false)
|
|
88707
88733
|
});
|
|
88708
88734
|
// packages/omo-opencode/src/config/schema/dynamic-context-pruning.ts
|
|
88709
|
-
import { z as
|
|
88710
|
-
var DynamicContextPruningConfigSchema =
|
|
88711
|
-
enabled:
|
|
88712
|
-
notification:
|
|
88713
|
-
turn_protection:
|
|
88714
|
-
enabled:
|
|
88715
|
-
turns:
|
|
88735
|
+
import { z as z31 } from "zod";
|
|
88736
|
+
var DynamicContextPruningConfigSchema = z31.object({
|
|
88737
|
+
enabled: z31.boolean().default(false),
|
|
88738
|
+
notification: z31.enum(["off", "minimal", "detailed"]).default("detailed"),
|
|
88739
|
+
turn_protection: z31.object({
|
|
88740
|
+
enabled: z31.boolean().default(true),
|
|
88741
|
+
turns: z31.number().min(1).max(10).default(3)
|
|
88716
88742
|
}).optional(),
|
|
88717
|
-
protected_tools:
|
|
88743
|
+
protected_tools: z31.array(z31.string()).default([
|
|
88718
88744
|
"task",
|
|
88719
88745
|
"todowrite",
|
|
88720
88746
|
"todoread",
|
|
@@ -88723,52 +88749,52 @@ var DynamicContextPruningConfigSchema = z30.object({
|
|
|
88723
88749
|
"session_write",
|
|
88724
88750
|
"session_search"
|
|
88725
88751
|
]),
|
|
88726
|
-
strategies:
|
|
88727
|
-
deduplication:
|
|
88728
|
-
enabled:
|
|
88752
|
+
strategies: z31.object({
|
|
88753
|
+
deduplication: z31.object({
|
|
88754
|
+
enabled: z31.boolean().default(true)
|
|
88729
88755
|
}).optional(),
|
|
88730
|
-
supersede_writes:
|
|
88731
|
-
enabled:
|
|
88732
|
-
aggressive:
|
|
88756
|
+
supersede_writes: z31.object({
|
|
88757
|
+
enabled: z31.boolean().default(true),
|
|
88758
|
+
aggressive: z31.boolean().default(false)
|
|
88733
88759
|
}).optional(),
|
|
88734
|
-
purge_errors:
|
|
88735
|
-
enabled:
|
|
88736
|
-
turns:
|
|
88760
|
+
purge_errors: z31.object({
|
|
88761
|
+
enabled: z31.boolean().default(true),
|
|
88762
|
+
turns: z31.number().min(1).max(20).default(5)
|
|
88737
88763
|
}).optional()
|
|
88738
88764
|
}).optional()
|
|
88739
88765
|
});
|
|
88740
88766
|
// packages/omo-opencode/src/config/schema/experimental.ts
|
|
88741
|
-
import { z as
|
|
88742
|
-
var ExperimentalConfigSchema =
|
|
88743
|
-
aggressive_truncation:
|
|
88744
|
-
preemptive_compaction:
|
|
88745
|
-
truncate_all_tool_outputs:
|
|
88767
|
+
import { z as z32 } from "zod";
|
|
88768
|
+
var ExperimentalConfigSchema = z32.object({
|
|
88769
|
+
aggressive_truncation: z32.boolean().optional(),
|
|
88770
|
+
preemptive_compaction: z32.boolean().optional(),
|
|
88771
|
+
truncate_all_tool_outputs: z32.boolean().optional(),
|
|
88746
88772
|
dynamic_context_pruning: DynamicContextPruningConfigSchema.optional(),
|
|
88747
|
-
task_system:
|
|
88748
|
-
plugin_load_timeout_ms:
|
|
88749
|
-
safe_hook_creation:
|
|
88750
|
-
disable_omo_env:
|
|
88751
|
-
hashline_edit:
|
|
88752
|
-
model_fallback_title:
|
|
88753
|
-
max_tools:
|
|
88754
|
-
disable_live_parent_wake_routing:
|
|
88773
|
+
task_system: z32.boolean().optional(),
|
|
88774
|
+
plugin_load_timeout_ms: z32.number().min(1000).optional(),
|
|
88775
|
+
safe_hook_creation: z32.boolean().optional(),
|
|
88776
|
+
disable_omo_env: z32.boolean().optional(),
|
|
88777
|
+
hashline_edit: z32.boolean().optional(),
|
|
88778
|
+
model_fallback_title: z32.boolean().optional(),
|
|
88779
|
+
max_tools: z32.number().int().min(1).optional(),
|
|
88780
|
+
disable_live_parent_wake_routing: z32.boolean().optional()
|
|
88755
88781
|
});
|
|
88756
88782
|
// packages/omo-opencode/src/config/schema/goal.ts
|
|
88757
|
-
import { z as
|
|
88758
|
-
var GoalConfigSchema =
|
|
88759
|
-
enabled:
|
|
88760
|
-
auto_start:
|
|
88761
|
-
default_max_iterations:
|
|
88783
|
+
import { z as z33 } from "zod";
|
|
88784
|
+
var GoalConfigSchema = z33.object({
|
|
88785
|
+
enabled: z33.boolean().default(false),
|
|
88786
|
+
auto_start: z33.boolean().default(false),
|
|
88787
|
+
default_max_iterations: z33.number().min(1).max(1000).default(100)
|
|
88762
88788
|
});
|
|
88763
88789
|
// packages/skills-loader-core/src/config/git-env-prefix.ts
|
|
88764
|
-
import { z as
|
|
88765
|
-
var
|
|
88790
|
+
import { z as z34 } from "zod";
|
|
88791
|
+
var GIT_ENV_ASSIGNMENT_PATTERN2 = /^(?:[A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)(?: [A-Za-z_][A-Za-z0-9_]*=[A-Za-z0-9_-]*)*$/;
|
|
88766
88792
|
var GIT_ENV_PREFIX_VALIDATION_MESSAGE = 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"';
|
|
88767
88793
|
function isValidGitEnvPrefix(value) {
|
|
88768
88794
|
if (value === "") {
|
|
88769
88795
|
return true;
|
|
88770
88796
|
}
|
|
88771
|
-
return
|
|
88797
|
+
return GIT_ENV_ASSIGNMENT_PATTERN2.test(value);
|
|
88772
88798
|
}
|
|
88773
88799
|
function assertValidGitEnvPrefix(value) {
|
|
88774
88800
|
if (!isValidGitEnvPrefix(value)) {
|
|
@@ -88776,17 +88802,17 @@ function assertValidGitEnvPrefix(value) {
|
|
|
88776
88802
|
}
|
|
88777
88803
|
return value;
|
|
88778
88804
|
}
|
|
88779
|
-
var
|
|
88805
|
+
var GitEnvPrefixSchema2 = z34.string().refine(isValidGitEnvPrefix, { message: GIT_ENV_PREFIX_VALIDATION_MESSAGE }).default("GIT_MASTER=1");
|
|
88780
88806
|
// packages/omo-opencode/src/config/schema/git-master.ts
|
|
88781
|
-
import { z as
|
|
88782
|
-
var GitMasterConfigSchema =
|
|
88783
|
-
commit_footer:
|
|
88784
|
-
include_co_authored_by:
|
|
88785
|
-
git_env_prefix:
|
|
88807
|
+
import { z as z35 } from "zod";
|
|
88808
|
+
var GitMasterConfigSchema = z35.object({
|
|
88809
|
+
commit_footer: z35.union([z35.boolean(), z35.string()]).default(false),
|
|
88810
|
+
include_co_authored_by: z35.boolean().default(false),
|
|
88811
|
+
git_env_prefix: GitEnvPrefixSchema2
|
|
88786
88812
|
});
|
|
88787
88813
|
// packages/omo-opencode/src/config/schema/hooks.ts
|
|
88788
|
-
import { z as
|
|
88789
|
-
var HookNameSchema =
|
|
88814
|
+
import { z as z36 } from "zod";
|
|
88815
|
+
var HookNameSchema = z36.enum([
|
|
88790
88816
|
"todo-continuation-enforcer",
|
|
88791
88817
|
"session-notification",
|
|
88792
88818
|
"comment-checker",
|
|
@@ -88845,240 +88871,240 @@ var HookNameSchema = z35.enum([
|
|
|
88845
88871
|
"native-edition-nudge"
|
|
88846
88872
|
]);
|
|
88847
88873
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
88848
|
-
import { z as
|
|
88849
|
-
var I18nConfigSchema =
|
|
88850
|
-
locale:
|
|
88874
|
+
import { z as z37 } from "zod";
|
|
88875
|
+
var I18nConfigSchema = z37.object({
|
|
88876
|
+
locale: z37.string().optional()
|
|
88851
88877
|
});
|
|
88852
88878
|
// packages/omo-opencode/src/config/schema/keyword-detector.ts
|
|
88853
|
-
import { z as
|
|
88854
|
-
var KeywordTypeSchema =
|
|
88855
|
-
var KeywordDetectorConfigSchema =
|
|
88856
|
-
enabled_expansions:
|
|
88857
|
-
disabled_keywords:
|
|
88879
|
+
import { z as z38 } from "zod";
|
|
88880
|
+
var KeywordTypeSchema = z38.enum(["ultrawork", "team", "hyperplan", "hyperplan-ultrawork"]);
|
|
88881
|
+
var KeywordDetectorConfigSchema = z38.object({
|
|
88882
|
+
enabled_expansions: z38.array(KeywordTypeSchema).optional(),
|
|
88883
|
+
disabled_keywords: z38.array(KeywordTypeSchema).optional()
|
|
88858
88884
|
});
|
|
88859
88885
|
// packages/omo-opencode/src/config/schema/model-capabilities.ts
|
|
88860
|
-
import { z as
|
|
88861
|
-
var ModelCapabilitiesConfigSchema =
|
|
88862
|
-
enabled:
|
|
88863
|
-
auto_refresh_on_start:
|
|
88864
|
-
refresh_timeout_ms:
|
|
88865
|
-
source_url:
|
|
88886
|
+
import { z as z39 } from "zod";
|
|
88887
|
+
var ModelCapabilitiesConfigSchema = z39.object({
|
|
88888
|
+
enabled: z39.boolean().optional(),
|
|
88889
|
+
auto_refresh_on_start: z39.boolean().optional(),
|
|
88890
|
+
refresh_timeout_ms: z39.number().int().positive().optional(),
|
|
88891
|
+
source_url: z39.string().url().optional()
|
|
88866
88892
|
});
|
|
88867
88893
|
// packages/omo-opencode/src/config/schema/notification.ts
|
|
88868
|
-
import { z as
|
|
88869
|
-
var NotificationConfigSchema =
|
|
88870
|
-
force_enable:
|
|
88894
|
+
import { z as z40 } from "zod";
|
|
88895
|
+
var NotificationConfigSchema = z40.object({
|
|
88896
|
+
force_enable: z40.boolean().optional()
|
|
88871
88897
|
});
|
|
88872
88898
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
88873
|
-
import { z as
|
|
88899
|
+
import { z as z54 } from "zod";
|
|
88874
88900
|
|
|
88875
88901
|
// packages/omo-opencode/src/mcp/types.ts
|
|
88876
|
-
import { z as
|
|
88877
|
-
var McpNameSchema =
|
|
88878
|
-
var AnyMcpNameSchema =
|
|
88902
|
+
import { z as z41 } from "zod";
|
|
88903
|
+
var McpNameSchema = z41.enum(["websearch", "context7", "grep_app", "lsp"]);
|
|
88904
|
+
var AnyMcpNameSchema = z41.string().min(1);
|
|
88879
88905
|
|
|
88880
88906
|
// packages/omo-opencode/src/config/schema/agent-definitions.ts
|
|
88881
|
-
import { z as
|
|
88882
|
-
var AgentDefinitionPathSchema =
|
|
88883
|
-
var AgentDefinitionsConfigSchema =
|
|
88907
|
+
import { z as z42 } from "zod";
|
|
88908
|
+
var AgentDefinitionPathSchema = z42.string().min(1);
|
|
88909
|
+
var AgentDefinitionsConfigSchema = z42.array(AgentDefinitionPathSchema).optional();
|
|
88884
88910
|
|
|
88885
88911
|
// packages/omo-opencode/src/config/schema/openclaw.ts
|
|
88886
|
-
import { z as
|
|
88887
|
-
var OpenClawGatewaySchema =
|
|
88888
|
-
type:
|
|
88889
|
-
url:
|
|
88890
|
-
method:
|
|
88891
|
-
headers:
|
|
88892
|
-
command:
|
|
88893
|
-
timeout:
|
|
88912
|
+
import { z as z43 } from "zod";
|
|
88913
|
+
var OpenClawGatewaySchema = z43.object({
|
|
88914
|
+
type: z43.enum(["http", "command"]).default("http"),
|
|
88915
|
+
url: z43.string().optional(),
|
|
88916
|
+
method: z43.string().default("POST"),
|
|
88917
|
+
headers: z43.record(z43.string(), z43.string()).optional(),
|
|
88918
|
+
command: z43.string().optional(),
|
|
88919
|
+
timeout: z43.number().optional()
|
|
88894
88920
|
});
|
|
88895
|
-
var OpenClawHookSchema =
|
|
88896
|
-
enabled:
|
|
88897
|
-
gateway:
|
|
88898
|
-
instruction:
|
|
88921
|
+
var OpenClawHookSchema = z43.object({
|
|
88922
|
+
enabled: z43.boolean().default(true),
|
|
88923
|
+
gateway: z43.string(),
|
|
88924
|
+
instruction: z43.string()
|
|
88899
88925
|
});
|
|
88900
|
-
var OpenClawReplyListenerConfigSchema =
|
|
88901
|
-
discordBotToken:
|
|
88902
|
-
discordChannelId:
|
|
88903
|
-
discordMention:
|
|
88904
|
-
authorizedDiscordUserIds:
|
|
88905
|
-
telegramBotToken:
|
|
88906
|
-
telegramChatId:
|
|
88907
|
-
pollIntervalMs:
|
|
88908
|
-
rateLimitPerMinute:
|
|
88909
|
-
maxMessageLength:
|
|
88910
|
-
includePrefix:
|
|
88926
|
+
var OpenClawReplyListenerConfigSchema = z43.object({
|
|
88927
|
+
discordBotToken: z43.string().optional(),
|
|
88928
|
+
discordChannelId: z43.string().optional(),
|
|
88929
|
+
discordMention: z43.string().optional(),
|
|
88930
|
+
authorizedDiscordUserIds: z43.array(z43.string()).default([]),
|
|
88931
|
+
telegramBotToken: z43.string().optional(),
|
|
88932
|
+
telegramChatId: z43.string().optional(),
|
|
88933
|
+
pollIntervalMs: z43.number().default(3000),
|
|
88934
|
+
rateLimitPerMinute: z43.number().default(10),
|
|
88935
|
+
maxMessageLength: z43.number().default(500),
|
|
88936
|
+
includePrefix: z43.boolean().default(true)
|
|
88911
88937
|
});
|
|
88912
|
-
var OpenClawConfigSchema =
|
|
88913
|
-
enabled:
|
|
88914
|
-
gateways:
|
|
88915
|
-
hooks:
|
|
88938
|
+
var OpenClawConfigSchema = z43.object({
|
|
88939
|
+
enabled: z43.boolean().default(false),
|
|
88940
|
+
gateways: z43.record(z43.string(), OpenClawGatewaySchema).default({}),
|
|
88941
|
+
hooks: z43.record(z43.string(), OpenClawHookSchema).default({}),
|
|
88916
88942
|
replyListener: OpenClawReplyListenerConfigSchema.optional()
|
|
88917
88943
|
});
|
|
88918
88944
|
|
|
88919
88945
|
// packages/omo-opencode/src/config/schema/monitor.ts
|
|
88920
|
-
import { z as
|
|
88921
|
-
var MonitorConfigSchema =
|
|
88922
|
-
enabled:
|
|
88923
|
-
live_mode_enabled:
|
|
88924
|
-
allowed_commands:
|
|
88925
|
-
max_monitors_per_session:
|
|
88926
|
-
max_runtime_ms:
|
|
88927
|
-
batch_max_lines:
|
|
88928
|
-
batch_max_bytes:
|
|
88929
|
-
flush_interval_ms:
|
|
88930
|
-
ring_max_lines:
|
|
88931
|
-
line_max_bytes:
|
|
88932
|
-
pattern_max_length:
|
|
88946
|
+
import { z as z44 } from "zod";
|
|
88947
|
+
var MonitorConfigSchema = z44.object({
|
|
88948
|
+
enabled: z44.boolean().default(false),
|
|
88949
|
+
live_mode_enabled: z44.boolean().default(false),
|
|
88950
|
+
allowed_commands: z44.array(z44.string()).optional(),
|
|
88951
|
+
max_monitors_per_session: z44.number().int().min(1).max(16).default(3),
|
|
88952
|
+
max_runtime_ms: z44.number().int().min(1000).default(1800000),
|
|
88953
|
+
batch_max_lines: z44.number().int().min(1).default(50),
|
|
88954
|
+
batch_max_bytes: z44.number().int().min(1024).default(16384),
|
|
88955
|
+
flush_interval_ms: z44.number().int().min(250).default(1000),
|
|
88956
|
+
ring_max_lines: z44.number().int().min(1).default(1000),
|
|
88957
|
+
line_max_bytes: z44.number().int().min(256).default(8192),
|
|
88958
|
+
pattern_max_length: z44.number().int().min(1).default(512)
|
|
88933
88959
|
});
|
|
88934
88960
|
|
|
88935
88961
|
// packages/omo-opencode/src/config/schema/runtime-fallback.ts
|
|
88936
|
-
import { z as
|
|
88937
|
-
var RuntimeFallbackConfigSchema =
|
|
88938
|
-
enabled:
|
|
88939
|
-
retry_on_errors:
|
|
88940
|
-
max_fallback_attempts:
|
|
88941
|
-
cooldown_seconds:
|
|
88942
|
-
timeout_seconds:
|
|
88943
|
-
notify_on_fallback:
|
|
88944
|
-
restore_primary_after_cooldown:
|
|
88962
|
+
import { z as z45 } from "zod";
|
|
88963
|
+
var RuntimeFallbackConfigSchema = z45.object({
|
|
88964
|
+
enabled: z45.boolean().optional(),
|
|
88965
|
+
retry_on_errors: z45.array(z45.number()).optional(),
|
|
88966
|
+
max_fallback_attempts: z45.number().min(1).max(20).optional(),
|
|
88967
|
+
cooldown_seconds: z45.number().min(0).optional(),
|
|
88968
|
+
timeout_seconds: z45.number().min(0).optional(),
|
|
88969
|
+
notify_on_fallback: z45.boolean().optional(),
|
|
88970
|
+
restore_primary_after_cooldown: z45.boolean().optional()
|
|
88945
88971
|
});
|
|
88946
88972
|
|
|
88947
88973
|
// packages/team-core/src/config.ts
|
|
88948
|
-
import * as
|
|
88949
|
-
var TeamModeConfigSchema =
|
|
88950
|
-
enabled:
|
|
88951
|
-
tmux_visualization:
|
|
88952
|
-
max_parallel_members:
|
|
88953
|
-
max_members:
|
|
88954
|
-
max_messages_per_run:
|
|
88955
|
-
max_wall_clock_minutes:
|
|
88956
|
-
max_member_turns:
|
|
88957
|
-
base_dir:
|
|
88958
|
-
message_payload_max_bytes:
|
|
88959
|
-
recipient_unread_max_bytes:
|
|
88960
|
-
mailbox_poll_interval_ms:
|
|
88974
|
+
import * as z46 from "zod";
|
|
88975
|
+
var TeamModeConfigSchema = z46.object({
|
|
88976
|
+
enabled: z46.boolean().default(false),
|
|
88977
|
+
tmux_visualization: z46.boolean().default(false),
|
|
88978
|
+
max_parallel_members: z46.number().int().min(1).max(8).default(4),
|
|
88979
|
+
max_members: z46.number().int().min(1).max(8).default(8),
|
|
88980
|
+
max_messages_per_run: z46.number().int().min(1).default(1e4),
|
|
88981
|
+
max_wall_clock_minutes: z46.number().int().min(1).default(120),
|
|
88982
|
+
max_member_turns: z46.number().int().min(1).default(500),
|
|
88983
|
+
base_dir: z46.string().optional(),
|
|
88984
|
+
message_payload_max_bytes: z46.number().int().min(1024).default(32768),
|
|
88985
|
+
recipient_unread_max_bytes: z46.number().int().min(1024).default(262144),
|
|
88986
|
+
mailbox_poll_interval_ms: z46.number().int().min(500).default(3000)
|
|
88961
88987
|
});
|
|
88962
88988
|
// packages/omo-opencode/src/config/schema/skills.ts
|
|
88963
|
-
import { z as
|
|
88964
|
-
var SkillSourceSchema =
|
|
88965
|
-
|
|
88966
|
-
|
|
88967
|
-
path:
|
|
88968
|
-
recursive:
|
|
88969
|
-
glob:
|
|
88989
|
+
import { z as z47 } from "zod";
|
|
88990
|
+
var SkillSourceSchema = z47.union([
|
|
88991
|
+
z47.string(),
|
|
88992
|
+
z47.object({
|
|
88993
|
+
path: z47.string(),
|
|
88994
|
+
recursive: z47.boolean().optional(),
|
|
88995
|
+
glob: z47.string().optional()
|
|
88970
88996
|
})
|
|
88971
88997
|
]);
|
|
88972
|
-
var SkillDefinitionSchema =
|
|
88973
|
-
description:
|
|
88974
|
-
template:
|
|
88975
|
-
from:
|
|
88976
|
-
model:
|
|
88977
|
-
agent:
|
|
88978
|
-
subtask:
|
|
88979
|
-
"argument-hint":
|
|
88980
|
-
license:
|
|
88981
|
-
compatibility:
|
|
88982
|
-
metadata:
|
|
88983
|
-
"allowed-tools":
|
|
88984
|
-
disable:
|
|
88998
|
+
var SkillDefinitionSchema = z47.object({
|
|
88999
|
+
description: z47.string().optional(),
|
|
89000
|
+
template: z47.string().optional(),
|
|
89001
|
+
from: z47.string().optional(),
|
|
89002
|
+
model: z47.string().optional(),
|
|
89003
|
+
agent: z47.string().optional(),
|
|
89004
|
+
subtask: z47.boolean().optional(),
|
|
89005
|
+
"argument-hint": z47.string().optional(),
|
|
89006
|
+
license: z47.string().optional(),
|
|
89007
|
+
compatibility: z47.string().optional(),
|
|
89008
|
+
metadata: z47.record(z47.string(), z47.unknown()).optional(),
|
|
89009
|
+
"allowed-tools": z47.array(z47.string()).optional(),
|
|
89010
|
+
disable: z47.boolean().optional()
|
|
88985
89011
|
});
|
|
88986
|
-
var SkillEntrySchema =
|
|
88987
|
-
var SkillsConfigSchema =
|
|
88988
|
-
|
|
88989
|
-
|
|
88990
|
-
sources:
|
|
88991
|
-
enable:
|
|
88992
|
-
disable:
|
|
89012
|
+
var SkillEntrySchema = z47.union([z47.boolean(), SkillDefinitionSchema]);
|
|
89013
|
+
var SkillsConfigSchema = z47.union([
|
|
89014
|
+
z47.array(z47.string()),
|
|
89015
|
+
z47.object({
|
|
89016
|
+
sources: z47.array(SkillSourceSchema).optional(),
|
|
89017
|
+
enable: z47.array(z47.string()).optional(),
|
|
89018
|
+
disable: z47.array(z47.string()).optional()
|
|
88993
89019
|
}).catchall(SkillEntrySchema)
|
|
88994
89020
|
]);
|
|
88995
89021
|
|
|
88996
89022
|
// packages/omo-opencode/src/config/schema/sisyphus.ts
|
|
88997
|
-
import { z as
|
|
88998
|
-
var SisyphusTasksConfigSchema =
|
|
88999
|
-
storage_path:
|
|
89000
|
-
task_list_id:
|
|
89001
|
-
claude_code_compat:
|
|
89023
|
+
import { z as z48 } from "zod";
|
|
89024
|
+
var SisyphusTasksConfigSchema = z48.object({
|
|
89025
|
+
storage_path: z48.string().optional(),
|
|
89026
|
+
task_list_id: z48.string().optional(),
|
|
89027
|
+
claude_code_compat: z48.boolean().default(false)
|
|
89002
89028
|
});
|
|
89003
|
-
var SisyphusConfigSchema =
|
|
89029
|
+
var SisyphusConfigSchema = z48.object({
|
|
89004
89030
|
tasks: SisyphusTasksConfigSchema.optional()
|
|
89005
89031
|
});
|
|
89006
89032
|
|
|
89007
89033
|
// packages/omo-opencode/src/config/schema/sisyphus-agent.ts
|
|
89008
|
-
import { z as
|
|
89009
|
-
var SisyphusAgentConfigSchema =
|
|
89010
|
-
disabled:
|
|
89011
|
-
default_builder_enabled:
|
|
89012
|
-
planner_enabled:
|
|
89013
|
-
replace_plan:
|
|
89014
|
-
tdd:
|
|
89034
|
+
import { z as z49 } from "zod";
|
|
89035
|
+
var SisyphusAgentConfigSchema = z49.object({
|
|
89036
|
+
disabled: z49.boolean().optional(),
|
|
89037
|
+
default_builder_enabled: z49.boolean().optional(),
|
|
89038
|
+
planner_enabled: z49.boolean().optional(),
|
|
89039
|
+
replace_plan: z49.boolean().optional(),
|
|
89040
|
+
tdd: z49.boolean().default(true).optional()
|
|
89015
89041
|
});
|
|
89016
89042
|
|
|
89017
89043
|
// packages/omo-opencode/src/config/schema/tmux.ts
|
|
89018
89044
|
init_src2();
|
|
89019
|
-
import { z as
|
|
89020
|
-
var TmuxLayoutSchema =
|
|
89021
|
-
var TmuxIsolationSchema =
|
|
89022
|
-
var TmuxConfigSchema =
|
|
89023
|
-
enabled:
|
|
89045
|
+
import { z as z50 } from "zod";
|
|
89046
|
+
var TmuxLayoutSchema = z50.enum(TMUX_LAYOUT_VALUES);
|
|
89047
|
+
var TmuxIsolationSchema = z50.enum(TMUX_ISOLATION_VALUES);
|
|
89048
|
+
var TmuxConfigSchema = z50.object({
|
|
89049
|
+
enabled: z50.boolean().default(false),
|
|
89024
89050
|
layout: TmuxLayoutSchema.default("main-vertical"),
|
|
89025
|
-
main_pane_size:
|
|
89026
|
-
main_pane_min_width:
|
|
89027
|
-
agent_pane_min_width:
|
|
89051
|
+
main_pane_size: z50.number().min(20).max(80).default(60),
|
|
89052
|
+
main_pane_min_width: z50.number().min(40).default(120),
|
|
89053
|
+
agent_pane_min_width: z50.number().min(20).default(40),
|
|
89028
89054
|
isolation: TmuxIsolationSchema.default("inline")
|
|
89029
89055
|
});
|
|
89030
89056
|
|
|
89031
89057
|
// packages/omo-opencode/src/config/schema/tui.ts
|
|
89032
|
-
import { z as
|
|
89033
|
-
var TuiSidebarConfigSchema =
|
|
89034
|
-
enabled:
|
|
89058
|
+
import { z as z51 } from "zod";
|
|
89059
|
+
var TuiSidebarConfigSchema = z51.object({
|
|
89060
|
+
enabled: z51.boolean().default(true)
|
|
89035
89061
|
});
|
|
89036
|
-
var TuiConfigSchema =
|
|
89062
|
+
var TuiConfigSchema = z51.object({
|
|
89037
89063
|
sidebar: TuiSidebarConfigSchema.default({ enabled: true })
|
|
89038
89064
|
});
|
|
89039
89065
|
|
|
89040
89066
|
// packages/omo-opencode/src/config/schema/ulw-execute.ts
|
|
89041
|
-
import { z as
|
|
89042
|
-
var UlwExecuteConfigSchema =
|
|
89043
|
-
auto_commit:
|
|
89067
|
+
import { z as z52 } from "zod";
|
|
89068
|
+
var UlwExecuteConfigSchema = z52.object({
|
|
89069
|
+
auto_commit: z52.boolean().default(true)
|
|
89044
89070
|
});
|
|
89045
89071
|
|
|
89046
89072
|
// packages/omo-opencode/src/config/schema/websearch.ts
|
|
89047
|
-
import { z as
|
|
89048
|
-
var WebsearchProviderSchema =
|
|
89049
|
-
var WebsearchConfigSchema =
|
|
89073
|
+
import { z as z53 } from "zod";
|
|
89074
|
+
var WebsearchProviderSchema = z53.enum(["exa", "tavily"]);
|
|
89075
|
+
var WebsearchConfigSchema = z53.object({
|
|
89050
89076
|
provider: WebsearchProviderSchema.optional()
|
|
89051
89077
|
});
|
|
89052
89078
|
|
|
89053
89079
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
89054
|
-
var OhMyOpenCodeConfigSchema =
|
|
89055
|
-
$schema:
|
|
89056
|
-
new_task_system_enabled:
|
|
89057
|
-
default_run_agent:
|
|
89058
|
-
agent_order:
|
|
89080
|
+
var OhMyOpenCodeConfigSchema = z54.object({
|
|
89081
|
+
$schema: z54.string().optional(),
|
|
89082
|
+
new_task_system_enabled: z54.boolean().optional(),
|
|
89083
|
+
default_run_agent: z54.string().optional(),
|
|
89084
|
+
agent_order: z54.array(z54.string().max(128)).max(64).optional(),
|
|
89059
89085
|
agent_definitions: AgentDefinitionsConfigSchema,
|
|
89060
|
-
disabled_mcps:
|
|
89061
|
-
disabled_agents:
|
|
89062
|
-
disabled_skills:
|
|
89063
|
-
disabled_hooks:
|
|
89064
|
-
disabled_commands:
|
|
89065
|
-
disabled_tools:
|
|
89066
|
-
disabled_providers:
|
|
89067
|
-
mcp_env_allowlist:
|
|
89068
|
-
hashline_edit:
|
|
89069
|
-
telemetry:
|
|
89070
|
-
model_fallback:
|
|
89086
|
+
disabled_mcps: z54.array(AnyMcpNameSchema).optional(),
|
|
89087
|
+
disabled_agents: z54.array(z54.string()).optional(),
|
|
89088
|
+
disabled_skills: z54.array(z54.string()).optional(),
|
|
89089
|
+
disabled_hooks: z54.array(z54.string()).optional(),
|
|
89090
|
+
disabled_commands: z54.array(BuiltinCommandNameSchema).optional(),
|
|
89091
|
+
disabled_tools: z54.array(z54.string()).optional(),
|
|
89092
|
+
disabled_providers: z54.array(z54.string()).optional(),
|
|
89093
|
+
mcp_env_allowlist: z54.array(z54.string()).optional(),
|
|
89094
|
+
hashline_edit: z54.boolean().optional(),
|
|
89095
|
+
telemetry: z54.boolean().optional().describe("Enable or disable anonymous telemetry. Default: enabled when omitted. Set to false to disable."),
|
|
89096
|
+
model_fallback: z54.boolean().optional(),
|
|
89071
89097
|
agents: AgentOverridesSchema.optional(),
|
|
89072
89098
|
categories: CategoriesConfigSchema.optional(),
|
|
89073
89099
|
claude_code: ClaudeCodeConfigSchema.optional(),
|
|
89074
89100
|
sisyphus_agent: SisyphusAgentConfigSchema.optional(),
|
|
89075
89101
|
comment_checker: CommentCheckerConfigSchema.optional(),
|
|
89076
89102
|
experimental: ExperimentalConfigSchema.optional(),
|
|
89077
|
-
auto_update:
|
|
89103
|
+
auto_update: z54.boolean().optional(),
|
|
89078
89104
|
skills: SkillsConfigSchema.optional(),
|
|
89079
89105
|
goal: GoalConfigSchema.optional(),
|
|
89080
|
-
ralph_loop:
|
|
89081
|
-
runtime_fallback:
|
|
89106
|
+
ralph_loop: z54.record(z54.string(), z54.unknown()).optional(),
|
|
89107
|
+
runtime_fallback: z54.union([z54.boolean(), RuntimeFallbackConfigSchema]).optional(),
|
|
89082
89108
|
background_task: BackgroundTaskConfigSchema.optional(),
|
|
89083
89109
|
notification: NotificationConfigSchema.optional(),
|
|
89084
89110
|
model_capabilities: ModelCapabilitiesConfigSchema.optional(),
|
|
@@ -89101,7 +89127,7 @@ var OhMyOpenCodeConfigSchema = z53.object({
|
|
|
89101
89127
|
ulw_execute: UlwExecuteConfigSchema.optional(),
|
|
89102
89128
|
start_work: UlwExecuteConfigSchema.optional(),
|
|
89103
89129
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
89104
|
-
_migrations:
|
|
89130
|
+
_migrations: z54.array(z54.string()).optional()
|
|
89105
89131
|
});
|
|
89106
89132
|
// packages/omo-opencode/src/config/prune-plugin-view.ts
|
|
89107
89133
|
var validatePluginRecord = (record) => {
|
|
@@ -108415,35 +108441,35 @@ import { mkdirSync as mkdirSync18, readFileSync as readFileSync47, renameSync as
|
|
|
108415
108441
|
import { join as join86 } from "path";
|
|
108416
108442
|
|
|
108417
108443
|
// packages/omo-opencode/src/hooks/goal/types.ts
|
|
108418
|
-
import { z as
|
|
108444
|
+
import { z as z56 } from "zod";
|
|
108419
108445
|
var GOAL_STATUS_VALUES = ["active", "paused", "complete"];
|
|
108420
|
-
var GoalStatusSchema =
|
|
108421
|
-
var GoalSchema =
|
|
108422
|
-
id:
|
|
108423
|
-
sessionID:
|
|
108424
|
-
objective:
|
|
108446
|
+
var GoalStatusSchema = z56.enum(GOAL_STATUS_VALUES);
|
|
108447
|
+
var GoalSchema = z56.object({
|
|
108448
|
+
id: z56.string(),
|
|
108449
|
+
sessionID: z56.string(),
|
|
108450
|
+
objective: z56.string(),
|
|
108425
108451
|
status: GoalStatusSchema,
|
|
108426
|
-
tokensUsed:
|
|
108427
|
-
timeUsedSeconds:
|
|
108428
|
-
createdAt:
|
|
108429
|
-
updatedAt:
|
|
108430
|
-
lastStartedAt:
|
|
108431
|
-
completedAt:
|
|
108452
|
+
tokensUsed: z56.number().int().nonnegative(),
|
|
108453
|
+
timeUsedSeconds: z56.number().int().nonnegative(),
|
|
108454
|
+
createdAt: z56.number().int().nonnegative(),
|
|
108455
|
+
updatedAt: z56.number().int().nonnegative(),
|
|
108456
|
+
lastStartedAt: z56.number().int().nonnegative().optional(),
|
|
108457
|
+
completedAt: z56.number().int().nonnegative().optional()
|
|
108432
108458
|
});
|
|
108433
|
-
var GoalFileSchema =
|
|
108434
|
-
version:
|
|
108459
|
+
var GoalFileSchema = z56.object({
|
|
108460
|
+
version: z56.literal(1),
|
|
108435
108461
|
goal: GoalSchema.nullable()
|
|
108436
108462
|
});
|
|
108437
|
-
var GoalToolSnapshotSchema =
|
|
108438
|
-
sessionID:
|
|
108439
|
-
objective:
|
|
108463
|
+
var GoalToolSnapshotSchema = z56.object({
|
|
108464
|
+
sessionID: z56.string(),
|
|
108465
|
+
objective: z56.string(),
|
|
108440
108466
|
status: GoalStatusSchema,
|
|
108441
|
-
tokensUsed:
|
|
108442
|
-
timeUsedSeconds:
|
|
108443
|
-
createdAt:
|
|
108444
|
-
updatedAt:
|
|
108467
|
+
tokensUsed: z56.number().int().nonnegative(),
|
|
108468
|
+
timeUsedSeconds: z56.number().int().nonnegative(),
|
|
108469
|
+
createdAt: z56.number().int().nonnegative(),
|
|
108470
|
+
updatedAt: z56.number().int().nonnegative()
|
|
108445
108471
|
});
|
|
108446
|
-
var GoalToolResponseSchema =
|
|
108472
|
+
var GoalToolResponseSchema = z56.object({
|
|
108447
108473
|
goal: GoalToolSnapshotSchema.nullable()
|
|
108448
108474
|
});
|
|
108449
108475
|
|
|
@@ -110223,7 +110249,7 @@ function loadSharedSkillTemplate(skillName) {
|
|
|
110223
110249
|
// packages/skills-loader-core/src/features/builtin-skills/skills/frontend.ts
|
|
110224
110250
|
var frontendSkill = {
|
|
110225
110251
|
name: "frontend",
|
|
110226
|
-
description: "Builds, styles, and polishes web UI
|
|
110252
|
+
description: "Builds, styles, and polishes anything drawn with HTML, CSS, or SVG: web UI, pages, components, HTML reports rendered to PDF or print, figures, PNG/SVG diagrams, slides, and images for Notion or Slack. Use for any styling, layout, animation, or visual-quality task, or when asked to make something look or feel a certain way.",
|
|
110227
110253
|
template: loadSharedSkillTemplate("frontend")
|
|
110228
110254
|
};
|
|
110229
110255
|
// packages/skills-loader-core/src/features/builtin-skills/skills/git-master-skill-metadata.ts
|
|
@@ -125856,11 +125882,11 @@ function createMonitorStatusInjectorHook(monitorManager, config) {
|
|
|
125856
125882
|
import { resolve as resolve28 } from "path";
|
|
125857
125883
|
|
|
125858
125884
|
// node_modules/.bun/@opencode-ai+plugin@1.18.31+7445fc152a67980a/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
125859
|
-
import { z as
|
|
125885
|
+
import { z as z57 } from "zod";
|
|
125860
125886
|
function tool(input) {
|
|
125861
125887
|
return input;
|
|
125862
125888
|
}
|
|
125863
|
-
tool.schema =
|
|
125889
|
+
tool.schema = z57;
|
|
125864
125890
|
|
|
125865
125891
|
// packages/omo-opencode/src/shared/ripgrep-cli.ts
|
|
125866
125892
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
@@ -139672,55 +139698,55 @@ function isExplicitSyncRun(runInBackground) {
|
|
|
139672
139698
|
import { join as join121 } from "path";
|
|
139673
139699
|
|
|
139674
139700
|
// packages/omo-opencode/src/tools/task/types.ts
|
|
139675
|
-
import { z as
|
|
139676
|
-
var TaskStatusSchema =
|
|
139677
|
-
var TaskObjectSchema =
|
|
139678
|
-
id:
|
|
139679
|
-
subject:
|
|
139680
|
-
description:
|
|
139701
|
+
import { z as z58 } from "zod";
|
|
139702
|
+
var TaskStatusSchema = z58.enum(["pending", "in_progress", "completed", "deleted"]);
|
|
139703
|
+
var TaskObjectSchema = z58.object({
|
|
139704
|
+
id: z58.string(),
|
|
139705
|
+
subject: z58.string(),
|
|
139706
|
+
description: z58.string(),
|
|
139681
139707
|
status: TaskStatusSchema,
|
|
139682
|
-
activeForm:
|
|
139683
|
-
blocks:
|
|
139684
|
-
blockedBy:
|
|
139685
|
-
owner:
|
|
139686
|
-
metadata:
|
|
139687
|
-
repoURL:
|
|
139688
|
-
parentID:
|
|
139689
|
-
threadID:
|
|
139708
|
+
activeForm: z58.string().optional(),
|
|
139709
|
+
blocks: z58.array(z58.string()).default([]),
|
|
139710
|
+
blockedBy: z58.array(z58.string()).default([]),
|
|
139711
|
+
owner: z58.string().optional(),
|
|
139712
|
+
metadata: z58.record(z58.string(), z58.unknown()).optional(),
|
|
139713
|
+
repoURL: z58.string().optional(),
|
|
139714
|
+
parentID: z58.string().optional(),
|
|
139715
|
+
threadID: z58.string()
|
|
139690
139716
|
}).strict();
|
|
139691
|
-
var TaskCreateInputSchema =
|
|
139692
|
-
subject:
|
|
139693
|
-
description:
|
|
139694
|
-
activeForm:
|
|
139695
|
-
blocks:
|
|
139696
|
-
blockedBy:
|
|
139697
|
-
owner:
|
|
139698
|
-
metadata:
|
|
139699
|
-
repoURL:
|
|
139700
|
-
parentID:
|
|
139717
|
+
var TaskCreateInputSchema = z58.object({
|
|
139718
|
+
subject: z58.string(),
|
|
139719
|
+
description: z58.string().optional(),
|
|
139720
|
+
activeForm: z58.string().optional(),
|
|
139721
|
+
blocks: z58.array(z58.string()).optional(),
|
|
139722
|
+
blockedBy: z58.array(z58.string()).optional(),
|
|
139723
|
+
owner: z58.string().optional(),
|
|
139724
|
+
metadata: z58.record(z58.string(), z58.unknown()).optional(),
|
|
139725
|
+
repoURL: z58.string().optional(),
|
|
139726
|
+
parentID: z58.string().optional()
|
|
139701
139727
|
});
|
|
139702
|
-
var TaskListInputSchema =
|
|
139728
|
+
var TaskListInputSchema = z58.object({
|
|
139703
139729
|
status: TaskStatusSchema.optional(),
|
|
139704
|
-
parentID:
|
|
139730
|
+
parentID: z58.string().optional()
|
|
139705
139731
|
});
|
|
139706
|
-
var TaskGetInputSchema =
|
|
139707
|
-
id:
|
|
139732
|
+
var TaskGetInputSchema = z58.object({
|
|
139733
|
+
id: z58.string()
|
|
139708
139734
|
});
|
|
139709
|
-
var TaskUpdateInputSchema =
|
|
139710
|
-
id:
|
|
139711
|
-
subject:
|
|
139712
|
-
description:
|
|
139735
|
+
var TaskUpdateInputSchema = z58.object({
|
|
139736
|
+
id: z58.string(),
|
|
139737
|
+
subject: z58.string().optional(),
|
|
139738
|
+
description: z58.string().optional(),
|
|
139713
139739
|
status: TaskStatusSchema.optional(),
|
|
139714
|
-
activeForm:
|
|
139715
|
-
addBlocks:
|
|
139716
|
-
addBlockedBy:
|
|
139717
|
-
owner:
|
|
139718
|
-
metadata:
|
|
139719
|
-
repoURL:
|
|
139720
|
-
parentID:
|
|
139740
|
+
activeForm: z58.string().optional(),
|
|
139741
|
+
addBlocks: z58.array(z58.string()).optional(),
|
|
139742
|
+
addBlockedBy: z58.array(z58.string()).optional(),
|
|
139743
|
+
owner: z58.string().optional(),
|
|
139744
|
+
metadata: z58.record(z58.string(), z58.unknown()).optional(),
|
|
139745
|
+
repoURL: z58.string().optional(),
|
|
139746
|
+
parentID: z58.string().optional()
|
|
139721
139747
|
});
|
|
139722
|
-
var TaskDeleteInputSchema =
|
|
139723
|
-
id:
|
|
139748
|
+
var TaskDeleteInputSchema = z58.object({
|
|
139749
|
+
id: z58.string()
|
|
139724
139750
|
});
|
|
139725
139751
|
|
|
139726
139752
|
// packages/omo-opencode/src/features/claude-tasks/storage.ts
|
|
@@ -140621,7 +140647,7 @@ function createHashlineEditTool(ctx) {
|
|
|
140621
140647
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
140622
140648
|
import { randomUUID as randomUUID11 } from "crypto";
|
|
140623
140649
|
init_logger2();
|
|
140624
|
-
import { z as
|
|
140650
|
+
import { z as z59 } from "zod";
|
|
140625
140651
|
|
|
140626
140652
|
// packages/team-core/src/team-mailbox/send.ts
|
|
140627
140653
|
init_paths();
|
|
@@ -141202,18 +141228,18 @@ async function resolveTeamRuntimeDetails(teamRunId, sessionID, config, deps) {
|
|
|
141202
141228
|
|
|
141203
141229
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
141204
141230
|
var MESSAGE_TOOL_KINDS = ["message", "announcement"];
|
|
141205
|
-
var TeamReferenceArgsSchema =
|
|
141206
|
-
path:
|
|
141207
|
-
description:
|
|
141231
|
+
var TeamReferenceArgsSchema = z59.object({
|
|
141232
|
+
path: z59.string().min(1),
|
|
141233
|
+
description: z59.string().optional()
|
|
141208
141234
|
});
|
|
141209
|
-
var TeamSendMessageArgsSchema =
|
|
141210
|
-
teamRunId:
|
|
141211
|
-
to:
|
|
141212
|
-
body:
|
|
141213
|
-
kind:
|
|
141214
|
-
correlationId:
|
|
141215
|
-
summary:
|
|
141216
|
-
references:
|
|
141235
|
+
var TeamSendMessageArgsSchema = z59.object({
|
|
141236
|
+
teamRunId: z59.string().min(1),
|
|
141237
|
+
to: z59.string().min(1),
|
|
141238
|
+
body: z59.string(),
|
|
141239
|
+
kind: z59.enum(MESSAGE_TOOL_KINDS).optional(),
|
|
141240
|
+
correlationId: z59.preprocess((value) => value === "" ? undefined : value, z59.uuid().optional()),
|
|
141241
|
+
summary: z59.string().optional(),
|
|
141242
|
+
references: z59.array(TeamReferenceArgsSchema).optional()
|
|
141217
141243
|
});
|
|
141218
141244
|
function createTeamSendMessageTool(config, client, deps = defaultTeamSendMessageToolDeps) {
|
|
141219
141245
|
return tool({
|
|
@@ -150120,63 +150146,63 @@ function getLiteralValue(schema) {
|
|
|
150120
150146
|
}
|
|
150121
150147
|
|
|
150122
150148
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
150123
|
-
import * as
|
|
150149
|
+
import * as z60 from "zod/v4";
|
|
150124
150150
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
150125
150151
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
150126
150152
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
150127
150153
|
var JSONRPC_VERSION = "2.0";
|
|
150128
|
-
var AssertObjectSchema =
|
|
150129
|
-
var ProgressTokenSchema =
|
|
150130
|
-
var CursorSchema =
|
|
150131
|
-
var TaskCreationParamsSchema =
|
|
150132
|
-
ttl:
|
|
150133
|
-
pollInterval:
|
|
150154
|
+
var AssertObjectSchema = z60.custom((v) => v !== null && (typeof v === "object" || typeof v === "function"));
|
|
150155
|
+
var ProgressTokenSchema = z60.union([z60.string(), z60.number().int()]);
|
|
150156
|
+
var CursorSchema = z60.string();
|
|
150157
|
+
var TaskCreationParamsSchema = z60.looseObject({
|
|
150158
|
+
ttl: z60.number().optional(),
|
|
150159
|
+
pollInterval: z60.number().optional()
|
|
150134
150160
|
});
|
|
150135
|
-
var TaskMetadataSchema =
|
|
150136
|
-
ttl:
|
|
150161
|
+
var TaskMetadataSchema = z60.object({
|
|
150162
|
+
ttl: z60.number().optional()
|
|
150137
150163
|
});
|
|
150138
|
-
var RelatedTaskMetadataSchema =
|
|
150139
|
-
taskId:
|
|
150164
|
+
var RelatedTaskMetadataSchema = z60.object({
|
|
150165
|
+
taskId: z60.string()
|
|
150140
150166
|
});
|
|
150141
|
-
var RequestMetaSchema =
|
|
150167
|
+
var RequestMetaSchema = z60.looseObject({
|
|
150142
150168
|
progressToken: ProgressTokenSchema.optional(),
|
|
150143
150169
|
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
|
150144
150170
|
});
|
|
150145
|
-
var BaseRequestParamsSchema =
|
|
150171
|
+
var BaseRequestParamsSchema = z60.object({
|
|
150146
150172
|
_meta: RequestMetaSchema.optional()
|
|
150147
150173
|
});
|
|
150148
150174
|
var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150149
150175
|
task: TaskMetadataSchema.optional()
|
|
150150
150176
|
});
|
|
150151
150177
|
var isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success;
|
|
150152
|
-
var RequestSchema =
|
|
150153
|
-
method:
|
|
150178
|
+
var RequestSchema = z60.object({
|
|
150179
|
+
method: z60.string(),
|
|
150154
150180
|
params: BaseRequestParamsSchema.loose().optional()
|
|
150155
150181
|
});
|
|
150156
|
-
var NotificationsParamsSchema =
|
|
150182
|
+
var NotificationsParamsSchema = z60.object({
|
|
150157
150183
|
_meta: RequestMetaSchema.optional()
|
|
150158
150184
|
});
|
|
150159
|
-
var NotificationSchema =
|
|
150160
|
-
method:
|
|
150185
|
+
var NotificationSchema = z60.object({
|
|
150186
|
+
method: z60.string(),
|
|
150161
150187
|
params: NotificationsParamsSchema.loose().optional()
|
|
150162
150188
|
});
|
|
150163
|
-
var ResultSchema =
|
|
150189
|
+
var ResultSchema = z60.looseObject({
|
|
150164
150190
|
_meta: RequestMetaSchema.optional()
|
|
150165
150191
|
});
|
|
150166
|
-
var RequestIdSchema =
|
|
150167
|
-
var JSONRPCRequestSchema =
|
|
150168
|
-
jsonrpc:
|
|
150192
|
+
var RequestIdSchema = z60.union([z60.string(), z60.number().int()]);
|
|
150193
|
+
var JSONRPCRequestSchema = z60.object({
|
|
150194
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150169
150195
|
id: RequestIdSchema,
|
|
150170
150196
|
...RequestSchema.shape
|
|
150171
150197
|
}).strict();
|
|
150172
150198
|
var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
|
150173
|
-
var JSONRPCNotificationSchema =
|
|
150174
|
-
jsonrpc:
|
|
150199
|
+
var JSONRPCNotificationSchema = z60.object({
|
|
150200
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150175
150201
|
...NotificationSchema.shape
|
|
150176
150202
|
}).strict();
|
|
150177
150203
|
var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
|
150178
|
-
var JSONRPCResultResponseSchema =
|
|
150179
|
-
jsonrpc:
|
|
150204
|
+
var JSONRPCResultResponseSchema = z60.object({
|
|
150205
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150180
150206
|
id: RequestIdSchema,
|
|
150181
150207
|
result: ResultSchema
|
|
150182
150208
|
}).strict();
|
|
@@ -150192,153 +150218,153 @@ var ErrorCode;
|
|
|
150192
150218
|
ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError";
|
|
150193
150219
|
ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
|
|
150194
150220
|
})(ErrorCode || (ErrorCode = {}));
|
|
150195
|
-
var JSONRPCErrorResponseSchema =
|
|
150196
|
-
jsonrpc:
|
|
150221
|
+
var JSONRPCErrorResponseSchema = z60.object({
|
|
150222
|
+
jsonrpc: z60.literal(JSONRPC_VERSION),
|
|
150197
150223
|
id: RequestIdSchema.optional(),
|
|
150198
|
-
error:
|
|
150199
|
-
code:
|
|
150200
|
-
message:
|
|
150201
|
-
data:
|
|
150224
|
+
error: z60.object({
|
|
150225
|
+
code: z60.number().int(),
|
|
150226
|
+
message: z60.string(),
|
|
150227
|
+
data: z60.unknown().optional()
|
|
150202
150228
|
})
|
|
150203
150229
|
}).strict();
|
|
150204
150230
|
var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
|
|
150205
|
-
var JSONRPCMessageSchema =
|
|
150231
|
+
var JSONRPCMessageSchema = z60.union([
|
|
150206
150232
|
JSONRPCRequestSchema,
|
|
150207
150233
|
JSONRPCNotificationSchema,
|
|
150208
150234
|
JSONRPCResultResponseSchema,
|
|
150209
150235
|
JSONRPCErrorResponseSchema
|
|
150210
150236
|
]);
|
|
150211
|
-
var JSONRPCResponseSchema =
|
|
150237
|
+
var JSONRPCResponseSchema = z60.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
|
150212
150238
|
var EmptyResultSchema = ResultSchema.strict();
|
|
150213
150239
|
var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150214
150240
|
requestId: RequestIdSchema.optional(),
|
|
150215
|
-
reason:
|
|
150241
|
+
reason: z60.string().optional()
|
|
150216
150242
|
});
|
|
150217
150243
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
150218
|
-
method:
|
|
150244
|
+
method: z60.literal("notifications/cancelled"),
|
|
150219
150245
|
params: CancelledNotificationParamsSchema
|
|
150220
150246
|
});
|
|
150221
|
-
var IconSchema =
|
|
150222
|
-
src:
|
|
150223
|
-
mimeType:
|
|
150224
|
-
sizes:
|
|
150225
|
-
theme:
|
|
150247
|
+
var IconSchema = z60.object({
|
|
150248
|
+
src: z60.string(),
|
|
150249
|
+
mimeType: z60.string().optional(),
|
|
150250
|
+
sizes: z60.array(z60.string()).optional(),
|
|
150251
|
+
theme: z60.enum(["light", "dark"]).optional()
|
|
150226
150252
|
});
|
|
150227
|
-
var IconsSchema =
|
|
150228
|
-
icons:
|
|
150253
|
+
var IconsSchema = z60.object({
|
|
150254
|
+
icons: z60.array(IconSchema).optional()
|
|
150229
150255
|
});
|
|
150230
|
-
var BaseMetadataSchema =
|
|
150231
|
-
name:
|
|
150232
|
-
title:
|
|
150256
|
+
var BaseMetadataSchema = z60.object({
|
|
150257
|
+
name: z60.string(),
|
|
150258
|
+
title: z60.string().optional()
|
|
150233
150259
|
});
|
|
150234
150260
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
150235
150261
|
...BaseMetadataSchema.shape,
|
|
150236
150262
|
...IconsSchema.shape,
|
|
150237
|
-
version:
|
|
150238
|
-
websiteUrl:
|
|
150239
|
-
description:
|
|
150263
|
+
version: z60.string(),
|
|
150264
|
+
websiteUrl: z60.string().optional(),
|
|
150265
|
+
description: z60.string().optional()
|
|
150240
150266
|
});
|
|
150241
|
-
var FormElicitationCapabilitySchema =
|
|
150242
|
-
applyDefaults:
|
|
150243
|
-
}),
|
|
150244
|
-
var ElicitationCapabilitySchema =
|
|
150267
|
+
var FormElicitationCapabilitySchema = z60.intersection(z60.object({
|
|
150268
|
+
applyDefaults: z60.boolean().optional()
|
|
150269
|
+
}), z60.record(z60.string(), z60.unknown()));
|
|
150270
|
+
var ElicitationCapabilitySchema = z60.preprocess((value) => {
|
|
150245
150271
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
150246
150272
|
if (Object.keys(value).length === 0) {
|
|
150247
150273
|
return { form: {} };
|
|
150248
150274
|
}
|
|
150249
150275
|
}
|
|
150250
150276
|
return value;
|
|
150251
|
-
},
|
|
150277
|
+
}, z60.intersection(z60.object({
|
|
150252
150278
|
form: FormElicitationCapabilitySchema.optional(),
|
|
150253
150279
|
url: AssertObjectSchema.optional()
|
|
150254
|
-
}),
|
|
150255
|
-
var ClientTasksCapabilitySchema =
|
|
150280
|
+
}), z60.record(z60.string(), z60.unknown()).optional()));
|
|
150281
|
+
var ClientTasksCapabilitySchema = z60.looseObject({
|
|
150256
150282
|
list: AssertObjectSchema.optional(),
|
|
150257
150283
|
cancel: AssertObjectSchema.optional(),
|
|
150258
|
-
requests:
|
|
150259
|
-
sampling:
|
|
150284
|
+
requests: z60.looseObject({
|
|
150285
|
+
sampling: z60.looseObject({
|
|
150260
150286
|
createMessage: AssertObjectSchema.optional()
|
|
150261
150287
|
}).optional(),
|
|
150262
|
-
elicitation:
|
|
150288
|
+
elicitation: z60.looseObject({
|
|
150263
150289
|
create: AssertObjectSchema.optional()
|
|
150264
150290
|
}).optional()
|
|
150265
150291
|
}).optional()
|
|
150266
150292
|
});
|
|
150267
|
-
var ServerTasksCapabilitySchema =
|
|
150293
|
+
var ServerTasksCapabilitySchema = z60.looseObject({
|
|
150268
150294
|
list: AssertObjectSchema.optional(),
|
|
150269
150295
|
cancel: AssertObjectSchema.optional(),
|
|
150270
|
-
requests:
|
|
150271
|
-
tools:
|
|
150296
|
+
requests: z60.looseObject({
|
|
150297
|
+
tools: z60.looseObject({
|
|
150272
150298
|
call: AssertObjectSchema.optional()
|
|
150273
150299
|
}).optional()
|
|
150274
150300
|
}).optional()
|
|
150275
150301
|
});
|
|
150276
|
-
var ClientCapabilitiesSchema =
|
|
150277
|
-
experimental:
|
|
150278
|
-
sampling:
|
|
150302
|
+
var ClientCapabilitiesSchema = z60.object({
|
|
150303
|
+
experimental: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150304
|
+
sampling: z60.object({
|
|
150279
150305
|
context: AssertObjectSchema.optional(),
|
|
150280
150306
|
tools: AssertObjectSchema.optional()
|
|
150281
150307
|
}).optional(),
|
|
150282
150308
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
150283
|
-
roots:
|
|
150284
|
-
listChanged:
|
|
150309
|
+
roots: z60.object({
|
|
150310
|
+
listChanged: z60.boolean().optional()
|
|
150285
150311
|
}).optional(),
|
|
150286
150312
|
tasks: ClientTasksCapabilitySchema.optional(),
|
|
150287
|
-
extensions:
|
|
150313
|
+
extensions: z60.record(z60.string(), AssertObjectSchema).optional()
|
|
150288
150314
|
});
|
|
150289
150315
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150290
|
-
protocolVersion:
|
|
150316
|
+
protocolVersion: z60.string(),
|
|
150291
150317
|
capabilities: ClientCapabilitiesSchema,
|
|
150292
150318
|
clientInfo: ImplementationSchema
|
|
150293
150319
|
});
|
|
150294
150320
|
var InitializeRequestSchema = RequestSchema.extend({
|
|
150295
|
-
method:
|
|
150321
|
+
method: z60.literal("initialize"),
|
|
150296
150322
|
params: InitializeRequestParamsSchema
|
|
150297
150323
|
});
|
|
150298
|
-
var ServerCapabilitiesSchema =
|
|
150299
|
-
experimental:
|
|
150324
|
+
var ServerCapabilitiesSchema = z60.object({
|
|
150325
|
+
experimental: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150300
150326
|
logging: AssertObjectSchema.optional(),
|
|
150301
150327
|
completions: AssertObjectSchema.optional(),
|
|
150302
|
-
prompts:
|
|
150303
|
-
listChanged:
|
|
150328
|
+
prompts: z60.object({
|
|
150329
|
+
listChanged: z60.boolean().optional()
|
|
150304
150330
|
}).optional(),
|
|
150305
|
-
resources:
|
|
150306
|
-
subscribe:
|
|
150307
|
-
listChanged:
|
|
150331
|
+
resources: z60.object({
|
|
150332
|
+
subscribe: z60.boolean().optional(),
|
|
150333
|
+
listChanged: z60.boolean().optional()
|
|
150308
150334
|
}).optional(),
|
|
150309
|
-
tools:
|
|
150310
|
-
listChanged:
|
|
150335
|
+
tools: z60.object({
|
|
150336
|
+
listChanged: z60.boolean().optional()
|
|
150311
150337
|
}).optional(),
|
|
150312
150338
|
tasks: ServerTasksCapabilitySchema.optional(),
|
|
150313
|
-
extensions:
|
|
150339
|
+
extensions: z60.record(z60.string(), AssertObjectSchema).optional()
|
|
150314
150340
|
});
|
|
150315
150341
|
var InitializeResultSchema = ResultSchema.extend({
|
|
150316
|
-
protocolVersion:
|
|
150342
|
+
protocolVersion: z60.string(),
|
|
150317
150343
|
capabilities: ServerCapabilitiesSchema,
|
|
150318
150344
|
serverInfo: ImplementationSchema,
|
|
150319
|
-
instructions:
|
|
150345
|
+
instructions: z60.string().optional()
|
|
150320
150346
|
});
|
|
150321
150347
|
var InitializedNotificationSchema = NotificationSchema.extend({
|
|
150322
|
-
method:
|
|
150348
|
+
method: z60.literal("notifications/initialized"),
|
|
150323
150349
|
params: NotificationsParamsSchema.optional()
|
|
150324
150350
|
});
|
|
150325
150351
|
var isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success;
|
|
150326
150352
|
var PingRequestSchema = RequestSchema.extend({
|
|
150327
|
-
method:
|
|
150353
|
+
method: z60.literal("ping"),
|
|
150328
150354
|
params: BaseRequestParamsSchema.optional()
|
|
150329
150355
|
});
|
|
150330
|
-
var ProgressSchema =
|
|
150331
|
-
progress:
|
|
150332
|
-
total:
|
|
150333
|
-
message:
|
|
150356
|
+
var ProgressSchema = z60.object({
|
|
150357
|
+
progress: z60.number(),
|
|
150358
|
+
total: z60.optional(z60.number()),
|
|
150359
|
+
message: z60.optional(z60.string())
|
|
150334
150360
|
});
|
|
150335
|
-
var ProgressNotificationParamsSchema =
|
|
150361
|
+
var ProgressNotificationParamsSchema = z60.object({
|
|
150336
150362
|
...NotificationsParamsSchema.shape,
|
|
150337
150363
|
...ProgressSchema.shape,
|
|
150338
150364
|
progressToken: ProgressTokenSchema
|
|
150339
150365
|
});
|
|
150340
150366
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
150341
|
-
method:
|
|
150367
|
+
method: z60.literal("notifications/progress"),
|
|
150342
150368
|
params: ProgressNotificationParamsSchema
|
|
150343
150369
|
});
|
|
150344
150370
|
var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
@@ -150350,60 +150376,60 @@ var PaginatedRequestSchema = RequestSchema.extend({
|
|
|
150350
150376
|
var PaginatedResultSchema = ResultSchema.extend({
|
|
150351
150377
|
nextCursor: CursorSchema.optional()
|
|
150352
150378
|
});
|
|
150353
|
-
var TaskStatusSchema2 =
|
|
150354
|
-
var TaskSchema2 =
|
|
150355
|
-
taskId:
|
|
150379
|
+
var TaskStatusSchema2 = z60.enum(["working", "input_required", "completed", "failed", "cancelled"]);
|
|
150380
|
+
var TaskSchema2 = z60.object({
|
|
150381
|
+
taskId: z60.string(),
|
|
150356
150382
|
status: TaskStatusSchema2,
|
|
150357
|
-
ttl:
|
|
150358
|
-
createdAt:
|
|
150359
|
-
lastUpdatedAt:
|
|
150360
|
-
pollInterval:
|
|
150361
|
-
statusMessage:
|
|
150383
|
+
ttl: z60.union([z60.number(), z60.null()]),
|
|
150384
|
+
createdAt: z60.string(),
|
|
150385
|
+
lastUpdatedAt: z60.string(),
|
|
150386
|
+
pollInterval: z60.optional(z60.number()),
|
|
150387
|
+
statusMessage: z60.optional(z60.string())
|
|
150362
150388
|
});
|
|
150363
150389
|
var CreateTaskResultSchema = ResultSchema.extend({
|
|
150364
150390
|
task: TaskSchema2
|
|
150365
150391
|
});
|
|
150366
150392
|
var TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema2);
|
|
150367
150393
|
var TaskStatusNotificationSchema = NotificationSchema.extend({
|
|
150368
|
-
method:
|
|
150394
|
+
method: z60.literal("notifications/tasks/status"),
|
|
150369
150395
|
params: TaskStatusNotificationParamsSchema
|
|
150370
150396
|
});
|
|
150371
150397
|
var GetTaskRequestSchema = RequestSchema.extend({
|
|
150372
|
-
method:
|
|
150398
|
+
method: z60.literal("tasks/get"),
|
|
150373
150399
|
params: BaseRequestParamsSchema.extend({
|
|
150374
|
-
taskId:
|
|
150400
|
+
taskId: z60.string()
|
|
150375
150401
|
})
|
|
150376
150402
|
});
|
|
150377
150403
|
var GetTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
150378
150404
|
var GetTaskPayloadRequestSchema = RequestSchema.extend({
|
|
150379
|
-
method:
|
|
150405
|
+
method: z60.literal("tasks/result"),
|
|
150380
150406
|
params: BaseRequestParamsSchema.extend({
|
|
150381
|
-
taskId:
|
|
150407
|
+
taskId: z60.string()
|
|
150382
150408
|
})
|
|
150383
150409
|
});
|
|
150384
150410
|
var GetTaskPayloadResultSchema = ResultSchema.loose();
|
|
150385
150411
|
var ListTasksRequestSchema = PaginatedRequestSchema.extend({
|
|
150386
|
-
method:
|
|
150412
|
+
method: z60.literal("tasks/list")
|
|
150387
150413
|
});
|
|
150388
150414
|
var ListTasksResultSchema = PaginatedResultSchema.extend({
|
|
150389
|
-
tasks:
|
|
150415
|
+
tasks: z60.array(TaskSchema2)
|
|
150390
150416
|
});
|
|
150391
150417
|
var CancelTaskRequestSchema = RequestSchema.extend({
|
|
150392
|
-
method:
|
|
150418
|
+
method: z60.literal("tasks/cancel"),
|
|
150393
150419
|
params: BaseRequestParamsSchema.extend({
|
|
150394
|
-
taskId:
|
|
150420
|
+
taskId: z60.string()
|
|
150395
150421
|
})
|
|
150396
150422
|
});
|
|
150397
150423
|
var CancelTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
150398
|
-
var ResourceContentsSchema =
|
|
150399
|
-
uri:
|
|
150400
|
-
mimeType:
|
|
150401
|
-
_meta:
|
|
150424
|
+
var ResourceContentsSchema = z60.object({
|
|
150425
|
+
uri: z60.string(),
|
|
150426
|
+
mimeType: z60.optional(z60.string()),
|
|
150427
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150402
150428
|
});
|
|
150403
150429
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
150404
|
-
text:
|
|
150430
|
+
text: z60.string()
|
|
150405
150431
|
});
|
|
150406
|
-
var Base64Schema =
|
|
150432
|
+
var Base64Schema = z60.string().refine((val) => {
|
|
150407
150433
|
try {
|
|
150408
150434
|
atob(val);
|
|
150409
150435
|
return true;
|
|
@@ -150414,447 +150440,447 @@ var Base64Schema = z59.string().refine((val) => {
|
|
|
150414
150440
|
var BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
150415
150441
|
blob: Base64Schema
|
|
150416
150442
|
});
|
|
150417
|
-
var RoleSchema =
|
|
150418
|
-
var AnnotationsSchema =
|
|
150419
|
-
audience:
|
|
150420
|
-
priority:
|
|
150421
|
-
lastModified:
|
|
150443
|
+
var RoleSchema = z60.enum(["user", "assistant"]);
|
|
150444
|
+
var AnnotationsSchema = z60.object({
|
|
150445
|
+
audience: z60.array(RoleSchema).optional(),
|
|
150446
|
+
priority: z60.number().min(0).max(1).optional(),
|
|
150447
|
+
lastModified: z60.iso.datetime({ offset: true }).optional()
|
|
150422
150448
|
});
|
|
150423
|
-
var ResourceSchema =
|
|
150449
|
+
var ResourceSchema = z60.object({
|
|
150424
150450
|
...BaseMetadataSchema.shape,
|
|
150425
150451
|
...IconsSchema.shape,
|
|
150426
|
-
uri:
|
|
150427
|
-
description:
|
|
150428
|
-
mimeType:
|
|
150429
|
-
size:
|
|
150452
|
+
uri: z60.string(),
|
|
150453
|
+
description: z60.optional(z60.string()),
|
|
150454
|
+
mimeType: z60.optional(z60.string()),
|
|
150455
|
+
size: z60.optional(z60.number()),
|
|
150430
150456
|
annotations: AnnotationsSchema.optional(),
|
|
150431
|
-
_meta:
|
|
150457
|
+
_meta: z60.optional(z60.looseObject({}))
|
|
150432
150458
|
});
|
|
150433
|
-
var ResourceTemplateSchema =
|
|
150459
|
+
var ResourceTemplateSchema = z60.object({
|
|
150434
150460
|
...BaseMetadataSchema.shape,
|
|
150435
150461
|
...IconsSchema.shape,
|
|
150436
|
-
uriTemplate:
|
|
150437
|
-
description:
|
|
150438
|
-
mimeType:
|
|
150462
|
+
uriTemplate: z60.string(),
|
|
150463
|
+
description: z60.optional(z60.string()),
|
|
150464
|
+
mimeType: z60.optional(z60.string()),
|
|
150439
150465
|
annotations: AnnotationsSchema.optional(),
|
|
150440
|
-
_meta:
|
|
150466
|
+
_meta: z60.optional(z60.looseObject({}))
|
|
150441
150467
|
});
|
|
150442
150468
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
150443
|
-
method:
|
|
150469
|
+
method: z60.literal("resources/list")
|
|
150444
150470
|
});
|
|
150445
150471
|
var ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
150446
|
-
resources:
|
|
150472
|
+
resources: z60.array(ResourceSchema)
|
|
150447
150473
|
});
|
|
150448
150474
|
var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
150449
|
-
method:
|
|
150475
|
+
method: z60.literal("resources/templates/list")
|
|
150450
150476
|
});
|
|
150451
150477
|
var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
150452
|
-
resourceTemplates:
|
|
150478
|
+
resourceTemplates: z60.array(ResourceTemplateSchema)
|
|
150453
150479
|
});
|
|
150454
150480
|
var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150455
|
-
uri:
|
|
150481
|
+
uri: z60.string()
|
|
150456
150482
|
});
|
|
150457
150483
|
var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
|
150458
150484
|
var ReadResourceRequestSchema = RequestSchema.extend({
|
|
150459
|
-
method:
|
|
150485
|
+
method: z60.literal("resources/read"),
|
|
150460
150486
|
params: ReadResourceRequestParamsSchema
|
|
150461
150487
|
});
|
|
150462
150488
|
var ReadResourceResultSchema = ResultSchema.extend({
|
|
150463
|
-
contents:
|
|
150489
|
+
contents: z60.array(z60.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
150464
150490
|
});
|
|
150465
150491
|
var ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
150466
|
-
method:
|
|
150492
|
+
method: z60.literal("notifications/resources/list_changed"),
|
|
150467
150493
|
params: NotificationsParamsSchema.optional()
|
|
150468
150494
|
});
|
|
150469
150495
|
var SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
150470
150496
|
var SubscribeRequestSchema = RequestSchema.extend({
|
|
150471
|
-
method:
|
|
150497
|
+
method: z60.literal("resources/subscribe"),
|
|
150472
150498
|
params: SubscribeRequestParamsSchema
|
|
150473
150499
|
});
|
|
150474
150500
|
var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
150475
150501
|
var UnsubscribeRequestSchema = RequestSchema.extend({
|
|
150476
|
-
method:
|
|
150502
|
+
method: z60.literal("resources/unsubscribe"),
|
|
150477
150503
|
params: UnsubscribeRequestParamsSchema
|
|
150478
150504
|
});
|
|
150479
150505
|
var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150480
|
-
uri:
|
|
150506
|
+
uri: z60.string()
|
|
150481
150507
|
});
|
|
150482
150508
|
var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
150483
|
-
method:
|
|
150509
|
+
method: z60.literal("notifications/resources/updated"),
|
|
150484
150510
|
params: ResourceUpdatedNotificationParamsSchema
|
|
150485
150511
|
});
|
|
150486
|
-
var PromptArgumentSchema =
|
|
150487
|
-
name:
|
|
150488
|
-
description:
|
|
150489
|
-
required:
|
|
150512
|
+
var PromptArgumentSchema = z60.object({
|
|
150513
|
+
name: z60.string(),
|
|
150514
|
+
description: z60.optional(z60.string()),
|
|
150515
|
+
required: z60.optional(z60.boolean())
|
|
150490
150516
|
});
|
|
150491
|
-
var PromptSchema =
|
|
150517
|
+
var PromptSchema = z60.object({
|
|
150492
150518
|
...BaseMetadataSchema.shape,
|
|
150493
150519
|
...IconsSchema.shape,
|
|
150494
|
-
description:
|
|
150495
|
-
arguments:
|
|
150496
|
-
_meta:
|
|
150520
|
+
description: z60.optional(z60.string()),
|
|
150521
|
+
arguments: z60.optional(z60.array(PromptArgumentSchema)),
|
|
150522
|
+
_meta: z60.optional(z60.looseObject({}))
|
|
150497
150523
|
});
|
|
150498
150524
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
150499
|
-
method:
|
|
150525
|
+
method: z60.literal("prompts/list")
|
|
150500
150526
|
});
|
|
150501
150527
|
var ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
150502
|
-
prompts:
|
|
150528
|
+
prompts: z60.array(PromptSchema)
|
|
150503
150529
|
});
|
|
150504
150530
|
var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150505
|
-
name:
|
|
150506
|
-
arguments:
|
|
150531
|
+
name: z60.string(),
|
|
150532
|
+
arguments: z60.record(z60.string(), z60.string()).optional()
|
|
150507
150533
|
});
|
|
150508
150534
|
var GetPromptRequestSchema = RequestSchema.extend({
|
|
150509
|
-
method:
|
|
150535
|
+
method: z60.literal("prompts/get"),
|
|
150510
150536
|
params: GetPromptRequestParamsSchema
|
|
150511
150537
|
});
|
|
150512
|
-
var TextContentSchema =
|
|
150513
|
-
type:
|
|
150514
|
-
text:
|
|
150538
|
+
var TextContentSchema = z60.object({
|
|
150539
|
+
type: z60.literal("text"),
|
|
150540
|
+
text: z60.string(),
|
|
150515
150541
|
annotations: AnnotationsSchema.optional(),
|
|
150516
|
-
_meta:
|
|
150542
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150517
150543
|
});
|
|
150518
|
-
var ImageContentSchema =
|
|
150519
|
-
type:
|
|
150544
|
+
var ImageContentSchema = z60.object({
|
|
150545
|
+
type: z60.literal("image"),
|
|
150520
150546
|
data: Base64Schema,
|
|
150521
|
-
mimeType:
|
|
150547
|
+
mimeType: z60.string(),
|
|
150522
150548
|
annotations: AnnotationsSchema.optional(),
|
|
150523
|
-
_meta:
|
|
150549
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150524
150550
|
});
|
|
150525
|
-
var AudioContentSchema =
|
|
150526
|
-
type:
|
|
150551
|
+
var AudioContentSchema = z60.object({
|
|
150552
|
+
type: z60.literal("audio"),
|
|
150527
150553
|
data: Base64Schema,
|
|
150528
|
-
mimeType:
|
|
150554
|
+
mimeType: z60.string(),
|
|
150529
150555
|
annotations: AnnotationsSchema.optional(),
|
|
150530
|
-
_meta:
|
|
150556
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150531
150557
|
});
|
|
150532
|
-
var ToolUseContentSchema =
|
|
150533
|
-
type:
|
|
150534
|
-
name:
|
|
150535
|
-
id:
|
|
150536
|
-
input:
|
|
150537
|
-
_meta:
|
|
150558
|
+
var ToolUseContentSchema = z60.object({
|
|
150559
|
+
type: z60.literal("tool_use"),
|
|
150560
|
+
name: z60.string(),
|
|
150561
|
+
id: z60.string(),
|
|
150562
|
+
input: z60.record(z60.string(), z60.unknown()),
|
|
150563
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150538
150564
|
});
|
|
150539
|
-
var EmbeddedResourceSchema =
|
|
150540
|
-
type:
|
|
150541
|
-
resource:
|
|
150565
|
+
var EmbeddedResourceSchema = z60.object({
|
|
150566
|
+
type: z60.literal("resource"),
|
|
150567
|
+
resource: z60.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
150542
150568
|
annotations: AnnotationsSchema.optional(),
|
|
150543
|
-
_meta:
|
|
150569
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150544
150570
|
});
|
|
150545
150571
|
var ResourceLinkSchema = ResourceSchema.extend({
|
|
150546
|
-
type:
|
|
150572
|
+
type: z60.literal("resource_link")
|
|
150547
150573
|
});
|
|
150548
|
-
var ContentBlockSchema =
|
|
150574
|
+
var ContentBlockSchema = z60.union([
|
|
150549
150575
|
TextContentSchema,
|
|
150550
150576
|
ImageContentSchema,
|
|
150551
150577
|
AudioContentSchema,
|
|
150552
150578
|
ResourceLinkSchema,
|
|
150553
150579
|
EmbeddedResourceSchema
|
|
150554
150580
|
]);
|
|
150555
|
-
var PromptMessageSchema =
|
|
150581
|
+
var PromptMessageSchema = z60.object({
|
|
150556
150582
|
role: RoleSchema,
|
|
150557
150583
|
content: ContentBlockSchema
|
|
150558
150584
|
});
|
|
150559
150585
|
var GetPromptResultSchema = ResultSchema.extend({
|
|
150560
|
-
description:
|
|
150561
|
-
messages:
|
|
150586
|
+
description: z60.string().optional(),
|
|
150587
|
+
messages: z60.array(PromptMessageSchema)
|
|
150562
150588
|
});
|
|
150563
150589
|
var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
150564
|
-
method:
|
|
150590
|
+
method: z60.literal("notifications/prompts/list_changed"),
|
|
150565
150591
|
params: NotificationsParamsSchema.optional()
|
|
150566
150592
|
});
|
|
150567
|
-
var ToolAnnotationsSchema =
|
|
150568
|
-
title:
|
|
150569
|
-
readOnlyHint:
|
|
150570
|
-
destructiveHint:
|
|
150571
|
-
idempotentHint:
|
|
150572
|
-
openWorldHint:
|
|
150593
|
+
var ToolAnnotationsSchema = z60.object({
|
|
150594
|
+
title: z60.string().optional(),
|
|
150595
|
+
readOnlyHint: z60.boolean().optional(),
|
|
150596
|
+
destructiveHint: z60.boolean().optional(),
|
|
150597
|
+
idempotentHint: z60.boolean().optional(),
|
|
150598
|
+
openWorldHint: z60.boolean().optional()
|
|
150573
150599
|
});
|
|
150574
|
-
var ToolExecutionSchema =
|
|
150575
|
-
taskSupport:
|
|
150600
|
+
var ToolExecutionSchema = z60.object({
|
|
150601
|
+
taskSupport: z60.enum(["required", "optional", "forbidden"]).optional()
|
|
150576
150602
|
});
|
|
150577
|
-
var ToolSchema =
|
|
150603
|
+
var ToolSchema = z60.object({
|
|
150578
150604
|
...BaseMetadataSchema.shape,
|
|
150579
150605
|
...IconsSchema.shape,
|
|
150580
|
-
description:
|
|
150581
|
-
inputSchema:
|
|
150582
|
-
type:
|
|
150583
|
-
properties:
|
|
150584
|
-
required:
|
|
150585
|
-
}).catchall(
|
|
150586
|
-
outputSchema:
|
|
150587
|
-
type:
|
|
150588
|
-
properties:
|
|
150589
|
-
required:
|
|
150590
|
-
}).catchall(
|
|
150606
|
+
description: z60.string().optional(),
|
|
150607
|
+
inputSchema: z60.object({
|
|
150608
|
+
type: z60.literal("object"),
|
|
150609
|
+
properties: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150610
|
+
required: z60.array(z60.string()).optional()
|
|
150611
|
+
}).catchall(z60.unknown()),
|
|
150612
|
+
outputSchema: z60.object({
|
|
150613
|
+
type: z60.literal("object"),
|
|
150614
|
+
properties: z60.record(z60.string(), AssertObjectSchema).optional(),
|
|
150615
|
+
required: z60.array(z60.string()).optional()
|
|
150616
|
+
}).catchall(z60.unknown()).optional(),
|
|
150591
150617
|
annotations: ToolAnnotationsSchema.optional(),
|
|
150592
150618
|
execution: ToolExecutionSchema.optional(),
|
|
150593
|
-
_meta:
|
|
150619
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150594
150620
|
});
|
|
150595
150621
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
150596
|
-
method:
|
|
150622
|
+
method: z60.literal("tools/list")
|
|
150597
150623
|
});
|
|
150598
150624
|
var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
150599
|
-
tools:
|
|
150625
|
+
tools: z60.array(ToolSchema)
|
|
150600
150626
|
});
|
|
150601
150627
|
var CallToolResultSchema = ResultSchema.extend({
|
|
150602
|
-
content:
|
|
150603
|
-
structuredContent:
|
|
150604
|
-
isError:
|
|
150628
|
+
content: z60.array(ContentBlockSchema).default([]),
|
|
150629
|
+
structuredContent: z60.record(z60.string(), z60.unknown()).optional(),
|
|
150630
|
+
isError: z60.boolean().optional()
|
|
150605
150631
|
});
|
|
150606
150632
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
150607
|
-
toolResult:
|
|
150633
|
+
toolResult: z60.unknown()
|
|
150608
150634
|
}));
|
|
150609
150635
|
var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150610
|
-
name:
|
|
150611
|
-
arguments:
|
|
150636
|
+
name: z60.string(),
|
|
150637
|
+
arguments: z60.record(z60.string(), z60.unknown()).optional()
|
|
150612
150638
|
});
|
|
150613
150639
|
var CallToolRequestSchema = RequestSchema.extend({
|
|
150614
|
-
method:
|
|
150640
|
+
method: z60.literal("tools/call"),
|
|
150615
150641
|
params: CallToolRequestParamsSchema
|
|
150616
150642
|
});
|
|
150617
150643
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
150618
|
-
method:
|
|
150644
|
+
method: z60.literal("notifications/tools/list_changed"),
|
|
150619
150645
|
params: NotificationsParamsSchema.optional()
|
|
150620
150646
|
});
|
|
150621
|
-
var ListChangedOptionsBaseSchema =
|
|
150622
|
-
autoRefresh:
|
|
150623
|
-
debounceMs:
|
|
150647
|
+
var ListChangedOptionsBaseSchema = z60.object({
|
|
150648
|
+
autoRefresh: z60.boolean().default(true),
|
|
150649
|
+
debounceMs: z60.number().int().nonnegative().default(300)
|
|
150624
150650
|
});
|
|
150625
|
-
var LoggingLevelSchema =
|
|
150651
|
+
var LoggingLevelSchema = z60.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
150626
150652
|
var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150627
150653
|
level: LoggingLevelSchema
|
|
150628
150654
|
});
|
|
150629
150655
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
150630
|
-
method:
|
|
150656
|
+
method: z60.literal("logging/setLevel"),
|
|
150631
150657
|
params: SetLevelRequestParamsSchema
|
|
150632
150658
|
});
|
|
150633
150659
|
var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150634
150660
|
level: LoggingLevelSchema,
|
|
150635
|
-
logger:
|
|
150636
|
-
data:
|
|
150661
|
+
logger: z60.string().optional(),
|
|
150662
|
+
data: z60.unknown()
|
|
150637
150663
|
});
|
|
150638
150664
|
var LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
150639
|
-
method:
|
|
150665
|
+
method: z60.literal("notifications/message"),
|
|
150640
150666
|
params: LoggingMessageNotificationParamsSchema
|
|
150641
150667
|
});
|
|
150642
|
-
var ModelHintSchema =
|
|
150643
|
-
name:
|
|
150668
|
+
var ModelHintSchema = z60.object({
|
|
150669
|
+
name: z60.string().optional()
|
|
150644
150670
|
});
|
|
150645
|
-
var ModelPreferencesSchema =
|
|
150646
|
-
hints:
|
|
150647
|
-
costPriority:
|
|
150648
|
-
speedPriority:
|
|
150649
|
-
intelligencePriority:
|
|
150671
|
+
var ModelPreferencesSchema = z60.object({
|
|
150672
|
+
hints: z60.array(ModelHintSchema).optional(),
|
|
150673
|
+
costPriority: z60.number().min(0).max(1).optional(),
|
|
150674
|
+
speedPriority: z60.number().min(0).max(1).optional(),
|
|
150675
|
+
intelligencePriority: z60.number().min(0).max(1).optional()
|
|
150650
150676
|
});
|
|
150651
|
-
var ToolChoiceSchema =
|
|
150652
|
-
mode:
|
|
150677
|
+
var ToolChoiceSchema = z60.object({
|
|
150678
|
+
mode: z60.enum(["auto", "required", "none"]).optional()
|
|
150653
150679
|
});
|
|
150654
|
-
var ToolResultContentSchema =
|
|
150655
|
-
type:
|
|
150656
|
-
toolUseId:
|
|
150657
|
-
content:
|
|
150658
|
-
structuredContent:
|
|
150659
|
-
isError:
|
|
150660
|
-
_meta:
|
|
150680
|
+
var ToolResultContentSchema = z60.object({
|
|
150681
|
+
type: z60.literal("tool_result"),
|
|
150682
|
+
toolUseId: z60.string().describe("The unique identifier for the corresponding tool call."),
|
|
150683
|
+
content: z60.array(ContentBlockSchema).default([]),
|
|
150684
|
+
structuredContent: z60.object({}).loose().optional(),
|
|
150685
|
+
isError: z60.boolean().optional(),
|
|
150686
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150661
150687
|
});
|
|
150662
|
-
var SamplingContentSchema =
|
|
150663
|
-
var SamplingMessageContentBlockSchema =
|
|
150688
|
+
var SamplingContentSchema = z60.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]);
|
|
150689
|
+
var SamplingMessageContentBlockSchema = z60.discriminatedUnion("type", [
|
|
150664
150690
|
TextContentSchema,
|
|
150665
150691
|
ImageContentSchema,
|
|
150666
150692
|
AudioContentSchema,
|
|
150667
150693
|
ToolUseContentSchema,
|
|
150668
150694
|
ToolResultContentSchema
|
|
150669
150695
|
]);
|
|
150670
|
-
var SamplingMessageSchema =
|
|
150696
|
+
var SamplingMessageSchema = z60.object({
|
|
150671
150697
|
role: RoleSchema,
|
|
150672
|
-
content:
|
|
150673
|
-
_meta:
|
|
150698
|
+
content: z60.union([SamplingMessageContentBlockSchema, z60.array(SamplingMessageContentBlockSchema)]),
|
|
150699
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150674
150700
|
});
|
|
150675
150701
|
var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150676
|
-
messages:
|
|
150702
|
+
messages: z60.array(SamplingMessageSchema),
|
|
150677
150703
|
modelPreferences: ModelPreferencesSchema.optional(),
|
|
150678
|
-
systemPrompt:
|
|
150679
|
-
includeContext:
|
|
150680
|
-
temperature:
|
|
150681
|
-
maxTokens:
|
|
150682
|
-
stopSequences:
|
|
150704
|
+
systemPrompt: z60.string().optional(),
|
|
150705
|
+
includeContext: z60.enum(["none", "thisServer", "allServers"]).optional(),
|
|
150706
|
+
temperature: z60.number().optional(),
|
|
150707
|
+
maxTokens: z60.number().int(),
|
|
150708
|
+
stopSequences: z60.array(z60.string()).optional(),
|
|
150683
150709
|
metadata: AssertObjectSchema.optional(),
|
|
150684
|
-
tools:
|
|
150710
|
+
tools: z60.array(ToolSchema).optional(),
|
|
150685
150711
|
toolChoice: ToolChoiceSchema.optional()
|
|
150686
150712
|
});
|
|
150687
150713
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
150688
|
-
method:
|
|
150714
|
+
method: z60.literal("sampling/createMessage"),
|
|
150689
150715
|
params: CreateMessageRequestParamsSchema
|
|
150690
150716
|
});
|
|
150691
150717
|
var CreateMessageResultSchema = ResultSchema.extend({
|
|
150692
|
-
model:
|
|
150693
|
-
stopReason:
|
|
150718
|
+
model: z60.string(),
|
|
150719
|
+
stopReason: z60.optional(z60.enum(["endTurn", "stopSequence", "maxTokens"]).or(z60.string())),
|
|
150694
150720
|
role: RoleSchema,
|
|
150695
150721
|
content: SamplingContentSchema
|
|
150696
150722
|
});
|
|
150697
150723
|
var CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
150698
|
-
model:
|
|
150699
|
-
stopReason:
|
|
150724
|
+
model: z60.string(),
|
|
150725
|
+
stopReason: z60.optional(z60.enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(z60.string())),
|
|
150700
150726
|
role: RoleSchema,
|
|
150701
|
-
content:
|
|
150727
|
+
content: z60.union([SamplingMessageContentBlockSchema, z60.array(SamplingMessageContentBlockSchema)])
|
|
150702
150728
|
});
|
|
150703
|
-
var BooleanSchemaSchema =
|
|
150704
|
-
type:
|
|
150705
|
-
title:
|
|
150706
|
-
description:
|
|
150707
|
-
default:
|
|
150729
|
+
var BooleanSchemaSchema = z60.object({
|
|
150730
|
+
type: z60.literal("boolean"),
|
|
150731
|
+
title: z60.string().optional(),
|
|
150732
|
+
description: z60.string().optional(),
|
|
150733
|
+
default: z60.boolean().optional()
|
|
150708
150734
|
});
|
|
150709
|
-
var StringSchemaSchema =
|
|
150710
|
-
type:
|
|
150711
|
-
title:
|
|
150712
|
-
description:
|
|
150713
|
-
minLength:
|
|
150714
|
-
maxLength:
|
|
150715
|
-
format:
|
|
150716
|
-
default:
|
|
150735
|
+
var StringSchemaSchema = z60.object({
|
|
150736
|
+
type: z60.literal("string"),
|
|
150737
|
+
title: z60.string().optional(),
|
|
150738
|
+
description: z60.string().optional(),
|
|
150739
|
+
minLength: z60.number().optional(),
|
|
150740
|
+
maxLength: z60.number().optional(),
|
|
150741
|
+
format: z60.enum(["email", "uri", "date", "date-time"]).optional(),
|
|
150742
|
+
default: z60.string().optional()
|
|
150717
150743
|
});
|
|
150718
|
-
var NumberSchemaSchema =
|
|
150719
|
-
type:
|
|
150720
|
-
title:
|
|
150721
|
-
description:
|
|
150722
|
-
minimum:
|
|
150723
|
-
maximum:
|
|
150724
|
-
default:
|
|
150744
|
+
var NumberSchemaSchema = z60.object({
|
|
150745
|
+
type: z60.enum(["number", "integer"]),
|
|
150746
|
+
title: z60.string().optional(),
|
|
150747
|
+
description: z60.string().optional(),
|
|
150748
|
+
minimum: z60.number().optional(),
|
|
150749
|
+
maximum: z60.number().optional(),
|
|
150750
|
+
default: z60.number().optional()
|
|
150725
150751
|
});
|
|
150726
|
-
var UntitledSingleSelectEnumSchemaSchema =
|
|
150727
|
-
type:
|
|
150728
|
-
title:
|
|
150729
|
-
description:
|
|
150730
|
-
enum:
|
|
150731
|
-
default:
|
|
150752
|
+
var UntitledSingleSelectEnumSchemaSchema = z60.object({
|
|
150753
|
+
type: z60.literal("string"),
|
|
150754
|
+
title: z60.string().optional(),
|
|
150755
|
+
description: z60.string().optional(),
|
|
150756
|
+
enum: z60.array(z60.string()),
|
|
150757
|
+
default: z60.string().optional()
|
|
150732
150758
|
});
|
|
150733
|
-
var TitledSingleSelectEnumSchemaSchema =
|
|
150734
|
-
type:
|
|
150735
|
-
title:
|
|
150736
|
-
description:
|
|
150737
|
-
oneOf:
|
|
150738
|
-
const:
|
|
150739
|
-
title:
|
|
150759
|
+
var TitledSingleSelectEnumSchemaSchema = z60.object({
|
|
150760
|
+
type: z60.literal("string"),
|
|
150761
|
+
title: z60.string().optional(),
|
|
150762
|
+
description: z60.string().optional(),
|
|
150763
|
+
oneOf: z60.array(z60.object({
|
|
150764
|
+
const: z60.string(),
|
|
150765
|
+
title: z60.string()
|
|
150740
150766
|
})),
|
|
150741
|
-
default:
|
|
150767
|
+
default: z60.string().optional()
|
|
150742
150768
|
});
|
|
150743
|
-
var LegacyTitledEnumSchemaSchema =
|
|
150744
|
-
type:
|
|
150745
|
-
title:
|
|
150746
|
-
description:
|
|
150747
|
-
enum:
|
|
150748
|
-
enumNames:
|
|
150749
|
-
default:
|
|
150769
|
+
var LegacyTitledEnumSchemaSchema = z60.object({
|
|
150770
|
+
type: z60.literal("string"),
|
|
150771
|
+
title: z60.string().optional(),
|
|
150772
|
+
description: z60.string().optional(),
|
|
150773
|
+
enum: z60.array(z60.string()),
|
|
150774
|
+
enumNames: z60.array(z60.string()).optional(),
|
|
150775
|
+
default: z60.string().optional()
|
|
150750
150776
|
});
|
|
150751
|
-
var SingleSelectEnumSchemaSchema =
|
|
150752
|
-
var UntitledMultiSelectEnumSchemaSchema =
|
|
150753
|
-
type:
|
|
150754
|
-
title:
|
|
150755
|
-
description:
|
|
150756
|
-
minItems:
|
|
150757
|
-
maxItems:
|
|
150758
|
-
items:
|
|
150759
|
-
type:
|
|
150760
|
-
enum:
|
|
150777
|
+
var SingleSelectEnumSchemaSchema = z60.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
|
|
150778
|
+
var UntitledMultiSelectEnumSchemaSchema = z60.object({
|
|
150779
|
+
type: z60.literal("array"),
|
|
150780
|
+
title: z60.string().optional(),
|
|
150781
|
+
description: z60.string().optional(),
|
|
150782
|
+
minItems: z60.number().optional(),
|
|
150783
|
+
maxItems: z60.number().optional(),
|
|
150784
|
+
items: z60.object({
|
|
150785
|
+
type: z60.literal("string"),
|
|
150786
|
+
enum: z60.array(z60.string())
|
|
150761
150787
|
}),
|
|
150762
|
-
default:
|
|
150788
|
+
default: z60.array(z60.string()).optional()
|
|
150763
150789
|
});
|
|
150764
|
-
var TitledMultiSelectEnumSchemaSchema =
|
|
150765
|
-
type:
|
|
150766
|
-
title:
|
|
150767
|
-
description:
|
|
150768
|
-
minItems:
|
|
150769
|
-
maxItems:
|
|
150770
|
-
items:
|
|
150771
|
-
anyOf:
|
|
150772
|
-
const:
|
|
150773
|
-
title:
|
|
150790
|
+
var TitledMultiSelectEnumSchemaSchema = z60.object({
|
|
150791
|
+
type: z60.literal("array"),
|
|
150792
|
+
title: z60.string().optional(),
|
|
150793
|
+
description: z60.string().optional(),
|
|
150794
|
+
minItems: z60.number().optional(),
|
|
150795
|
+
maxItems: z60.number().optional(),
|
|
150796
|
+
items: z60.object({
|
|
150797
|
+
anyOf: z60.array(z60.object({
|
|
150798
|
+
const: z60.string(),
|
|
150799
|
+
title: z60.string()
|
|
150774
150800
|
}))
|
|
150775
150801
|
}),
|
|
150776
|
-
default:
|
|
150802
|
+
default: z60.array(z60.string()).optional()
|
|
150777
150803
|
});
|
|
150778
|
-
var MultiSelectEnumSchemaSchema =
|
|
150779
|
-
var EnumSchemaSchema =
|
|
150780
|
-
var PrimitiveSchemaDefinitionSchema =
|
|
150804
|
+
var MultiSelectEnumSchemaSchema = z60.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
|
|
150805
|
+
var EnumSchemaSchema = z60.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
|
|
150806
|
+
var PrimitiveSchemaDefinitionSchema = z60.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
|
|
150781
150807
|
var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150782
|
-
mode:
|
|
150783
|
-
message:
|
|
150784
|
-
requestedSchema:
|
|
150785
|
-
type:
|
|
150786
|
-
properties:
|
|
150787
|
-
required:
|
|
150808
|
+
mode: z60.literal("form").optional(),
|
|
150809
|
+
message: z60.string(),
|
|
150810
|
+
requestedSchema: z60.object({
|
|
150811
|
+
type: z60.literal("object"),
|
|
150812
|
+
properties: z60.record(z60.string(), PrimitiveSchemaDefinitionSchema),
|
|
150813
|
+
required: z60.array(z60.string()).optional()
|
|
150788
150814
|
})
|
|
150789
150815
|
});
|
|
150790
150816
|
var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
150791
|
-
mode:
|
|
150792
|
-
message:
|
|
150793
|
-
elicitationId:
|
|
150794
|
-
url:
|
|
150817
|
+
mode: z60.literal("url"),
|
|
150818
|
+
message: z60.string(),
|
|
150819
|
+
elicitationId: z60.string(),
|
|
150820
|
+
url: z60.string().url()
|
|
150795
150821
|
});
|
|
150796
|
-
var ElicitRequestParamsSchema =
|
|
150822
|
+
var ElicitRequestParamsSchema = z60.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
|
|
150797
150823
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
150798
|
-
method:
|
|
150824
|
+
method: z60.literal("elicitation/create"),
|
|
150799
150825
|
params: ElicitRequestParamsSchema
|
|
150800
150826
|
});
|
|
150801
150827
|
var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
150802
|
-
elicitationId:
|
|
150828
|
+
elicitationId: z60.string()
|
|
150803
150829
|
});
|
|
150804
150830
|
var ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
|
150805
|
-
method:
|
|
150831
|
+
method: z60.literal("notifications/elicitation/complete"),
|
|
150806
150832
|
params: ElicitationCompleteNotificationParamsSchema
|
|
150807
150833
|
});
|
|
150808
150834
|
var ElicitResultSchema = ResultSchema.extend({
|
|
150809
|
-
action:
|
|
150810
|
-
content:
|
|
150835
|
+
action: z60.enum(["accept", "decline", "cancel"]),
|
|
150836
|
+
content: z60.preprocess((val) => val === null ? undefined : val, z60.record(z60.string(), z60.union([z60.string(), z60.number(), z60.boolean(), z60.array(z60.string())])).optional())
|
|
150811
150837
|
});
|
|
150812
|
-
var ResourceTemplateReferenceSchema =
|
|
150813
|
-
type:
|
|
150814
|
-
uri:
|
|
150838
|
+
var ResourceTemplateReferenceSchema = z60.object({
|
|
150839
|
+
type: z60.literal("ref/resource"),
|
|
150840
|
+
uri: z60.string()
|
|
150815
150841
|
});
|
|
150816
|
-
var PromptReferenceSchema =
|
|
150817
|
-
type:
|
|
150818
|
-
name:
|
|
150842
|
+
var PromptReferenceSchema = z60.object({
|
|
150843
|
+
type: z60.literal("ref/prompt"),
|
|
150844
|
+
name: z60.string()
|
|
150819
150845
|
});
|
|
150820
150846
|
var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
150821
|
-
ref:
|
|
150822
|
-
argument:
|
|
150823
|
-
name:
|
|
150824
|
-
value:
|
|
150847
|
+
ref: z60.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
150848
|
+
argument: z60.object({
|
|
150849
|
+
name: z60.string(),
|
|
150850
|
+
value: z60.string()
|
|
150825
150851
|
}),
|
|
150826
|
-
context:
|
|
150827
|
-
arguments:
|
|
150852
|
+
context: z60.object({
|
|
150853
|
+
arguments: z60.record(z60.string(), z60.string()).optional()
|
|
150828
150854
|
}).optional()
|
|
150829
150855
|
});
|
|
150830
150856
|
var CompleteRequestSchema = RequestSchema.extend({
|
|
150831
|
-
method:
|
|
150857
|
+
method: z60.literal("completion/complete"),
|
|
150832
150858
|
params: CompleteRequestParamsSchema
|
|
150833
150859
|
});
|
|
150834
150860
|
var CompleteResultSchema = ResultSchema.extend({
|
|
150835
|
-
completion:
|
|
150836
|
-
values:
|
|
150837
|
-
total:
|
|
150838
|
-
hasMore:
|
|
150861
|
+
completion: z60.looseObject({
|
|
150862
|
+
values: z60.array(z60.string()).max(100),
|
|
150863
|
+
total: z60.optional(z60.number().int()),
|
|
150864
|
+
hasMore: z60.optional(z60.boolean())
|
|
150839
150865
|
})
|
|
150840
150866
|
});
|
|
150841
|
-
var RootSchema =
|
|
150842
|
-
uri:
|
|
150843
|
-
name:
|
|
150844
|
-
_meta:
|
|
150867
|
+
var RootSchema = z60.object({
|
|
150868
|
+
uri: z60.string().startsWith("file://"),
|
|
150869
|
+
name: z60.string().optional(),
|
|
150870
|
+
_meta: z60.record(z60.string(), z60.unknown()).optional()
|
|
150845
150871
|
});
|
|
150846
150872
|
var ListRootsRequestSchema = RequestSchema.extend({
|
|
150847
|
-
method:
|
|
150873
|
+
method: z60.literal("roots/list"),
|
|
150848
150874
|
params: BaseRequestParamsSchema.optional()
|
|
150849
150875
|
});
|
|
150850
150876
|
var ListRootsResultSchema = ResultSchema.extend({
|
|
150851
|
-
roots:
|
|
150877
|
+
roots: z60.array(RootSchema)
|
|
150852
150878
|
});
|
|
150853
150879
|
var RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
150854
|
-
method:
|
|
150880
|
+
method: z60.literal("notifications/roots/list_changed"),
|
|
150855
150881
|
params: NotificationsParamsSchema.optional()
|
|
150856
150882
|
});
|
|
150857
|
-
var ClientRequestSchema =
|
|
150883
|
+
var ClientRequestSchema = z60.union([
|
|
150858
150884
|
PingRequestSchema,
|
|
150859
150885
|
InitializeRequestSchema,
|
|
150860
150886
|
CompleteRequestSchema,
|
|
@@ -150873,14 +150899,14 @@ var ClientRequestSchema = z59.union([
|
|
|
150873
150899
|
ListTasksRequestSchema,
|
|
150874
150900
|
CancelTaskRequestSchema
|
|
150875
150901
|
]);
|
|
150876
|
-
var ClientNotificationSchema =
|
|
150902
|
+
var ClientNotificationSchema = z60.union([
|
|
150877
150903
|
CancelledNotificationSchema,
|
|
150878
150904
|
ProgressNotificationSchema,
|
|
150879
150905
|
InitializedNotificationSchema,
|
|
150880
150906
|
RootsListChangedNotificationSchema,
|
|
150881
150907
|
TaskStatusNotificationSchema
|
|
150882
150908
|
]);
|
|
150883
|
-
var ClientResultSchema =
|
|
150909
|
+
var ClientResultSchema = z60.union([
|
|
150884
150910
|
EmptyResultSchema,
|
|
150885
150911
|
CreateMessageResultSchema,
|
|
150886
150912
|
CreateMessageResultWithToolsSchema,
|
|
@@ -150890,7 +150916,7 @@ var ClientResultSchema = z59.union([
|
|
|
150890
150916
|
ListTasksResultSchema,
|
|
150891
150917
|
CreateTaskResultSchema
|
|
150892
150918
|
]);
|
|
150893
|
-
var ServerRequestSchema =
|
|
150919
|
+
var ServerRequestSchema = z60.union([
|
|
150894
150920
|
PingRequestSchema,
|
|
150895
150921
|
CreateMessageRequestSchema,
|
|
150896
150922
|
ElicitRequestSchema,
|
|
@@ -150900,7 +150926,7 @@ var ServerRequestSchema = z59.union([
|
|
|
150900
150926
|
ListTasksRequestSchema,
|
|
150901
150927
|
CancelTaskRequestSchema
|
|
150902
150928
|
]);
|
|
150903
|
-
var ServerNotificationSchema =
|
|
150929
|
+
var ServerNotificationSchema = z60.union([
|
|
150904
150930
|
CancelledNotificationSchema,
|
|
150905
150931
|
ProgressNotificationSchema,
|
|
150906
150932
|
LoggingMessageNotificationSchema,
|
|
@@ -150911,7 +150937,7 @@ var ServerNotificationSchema = z59.union([
|
|
|
150911
150937
|
TaskStatusNotificationSchema,
|
|
150912
150938
|
ElicitationCompleteNotificationSchema
|
|
150913
150939
|
]);
|
|
150914
|
-
var ServerResultSchema =
|
|
150940
|
+
var ServerResultSchema = z60.union([
|
|
150915
150941
|
EmptyResultSchema,
|
|
150916
150942
|
InitializeResultSchema,
|
|
150917
150943
|
CompleteResultSchema,
|
|
@@ -152673,151 +152699,151 @@ async function pkceChallenge(length) {
|
|
|
152673
152699
|
}
|
|
152674
152700
|
|
|
152675
152701
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
152676
|
-
import * as
|
|
152677
|
-
var SafeUrlSchema =
|
|
152702
|
+
import * as z61 from "zod/v4";
|
|
152703
|
+
var SafeUrlSchema = z61.url().superRefine((val, ctx) => {
|
|
152678
152704
|
if (!URL.canParse(val)) {
|
|
152679
152705
|
ctx.addIssue({
|
|
152680
|
-
code:
|
|
152706
|
+
code: z61.ZodIssueCode.custom,
|
|
152681
152707
|
message: "URL must be parseable",
|
|
152682
152708
|
fatal: true
|
|
152683
152709
|
});
|
|
152684
|
-
return
|
|
152710
|
+
return z61.NEVER;
|
|
152685
152711
|
}
|
|
152686
152712
|
}).refine((url) => {
|
|
152687
152713
|
const u = new URL(url);
|
|
152688
152714
|
return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
|
|
152689
152715
|
}, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
|
|
152690
|
-
var OAuthProtectedResourceMetadataSchema =
|
|
152691
|
-
resource:
|
|
152692
|
-
authorization_servers:
|
|
152693
|
-
jwks_uri:
|
|
152694
|
-
scopes_supported:
|
|
152695
|
-
bearer_methods_supported:
|
|
152696
|
-
resource_signing_alg_values_supported:
|
|
152697
|
-
resource_name:
|
|
152698
|
-
resource_documentation:
|
|
152699
|
-
resource_policy_uri:
|
|
152700
|
-
resource_tos_uri:
|
|
152701
|
-
tls_client_certificate_bound_access_tokens:
|
|
152702
|
-
authorization_details_types_supported:
|
|
152703
|
-
dpop_signing_alg_values_supported:
|
|
152704
|
-
dpop_bound_access_tokens_required:
|
|
152716
|
+
var OAuthProtectedResourceMetadataSchema = z61.looseObject({
|
|
152717
|
+
resource: z61.string().url(),
|
|
152718
|
+
authorization_servers: z61.array(SafeUrlSchema).optional(),
|
|
152719
|
+
jwks_uri: z61.string().url().optional(),
|
|
152720
|
+
scopes_supported: z61.array(z61.string()).optional(),
|
|
152721
|
+
bearer_methods_supported: z61.array(z61.string()).optional(),
|
|
152722
|
+
resource_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152723
|
+
resource_name: z61.string().optional(),
|
|
152724
|
+
resource_documentation: z61.string().optional(),
|
|
152725
|
+
resource_policy_uri: z61.string().url().optional(),
|
|
152726
|
+
resource_tos_uri: z61.string().url().optional(),
|
|
152727
|
+
tls_client_certificate_bound_access_tokens: z61.boolean().optional(),
|
|
152728
|
+
authorization_details_types_supported: z61.array(z61.string()).optional(),
|
|
152729
|
+
dpop_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152730
|
+
dpop_bound_access_tokens_required: z61.boolean().optional()
|
|
152705
152731
|
});
|
|
152706
|
-
var OAuthMetadataSchema =
|
|
152707
|
-
issuer:
|
|
152732
|
+
var OAuthMetadataSchema = z61.looseObject({
|
|
152733
|
+
issuer: z61.string(),
|
|
152708
152734
|
authorization_endpoint: SafeUrlSchema,
|
|
152709
152735
|
token_endpoint: SafeUrlSchema,
|
|
152710
152736
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
152711
|
-
scopes_supported:
|
|
152712
|
-
response_types_supported:
|
|
152713
|
-
response_modes_supported:
|
|
152714
|
-
grant_types_supported:
|
|
152715
|
-
token_endpoint_auth_methods_supported:
|
|
152716
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
152737
|
+
scopes_supported: z61.array(z61.string()).optional(),
|
|
152738
|
+
response_types_supported: z61.array(z61.string()),
|
|
152739
|
+
response_modes_supported: z61.array(z61.string()).optional(),
|
|
152740
|
+
grant_types_supported: z61.array(z61.string()).optional(),
|
|
152741
|
+
token_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152742
|
+
token_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152717
152743
|
service_documentation: SafeUrlSchema.optional(),
|
|
152718
152744
|
revocation_endpoint: SafeUrlSchema.optional(),
|
|
152719
|
-
revocation_endpoint_auth_methods_supported:
|
|
152720
|
-
revocation_endpoint_auth_signing_alg_values_supported:
|
|
152721
|
-
introspection_endpoint:
|
|
152722
|
-
introspection_endpoint_auth_methods_supported:
|
|
152723
|
-
introspection_endpoint_auth_signing_alg_values_supported:
|
|
152724
|
-
code_challenge_methods_supported:
|
|
152725
|
-
client_id_metadata_document_supported:
|
|
152745
|
+
revocation_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152746
|
+
revocation_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152747
|
+
introspection_endpoint: z61.string().optional(),
|
|
152748
|
+
introspection_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152749
|
+
introspection_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152750
|
+
code_challenge_methods_supported: z61.array(z61.string()).optional(),
|
|
152751
|
+
client_id_metadata_document_supported: z61.boolean().optional()
|
|
152726
152752
|
});
|
|
152727
|
-
var OpenIdProviderMetadataSchema =
|
|
152728
|
-
issuer:
|
|
152753
|
+
var OpenIdProviderMetadataSchema = z61.looseObject({
|
|
152754
|
+
issuer: z61.string(),
|
|
152729
152755
|
authorization_endpoint: SafeUrlSchema,
|
|
152730
152756
|
token_endpoint: SafeUrlSchema,
|
|
152731
152757
|
userinfo_endpoint: SafeUrlSchema.optional(),
|
|
152732
152758
|
jwks_uri: SafeUrlSchema,
|
|
152733
152759
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
152734
|
-
scopes_supported:
|
|
152735
|
-
response_types_supported:
|
|
152736
|
-
response_modes_supported:
|
|
152737
|
-
grant_types_supported:
|
|
152738
|
-
acr_values_supported:
|
|
152739
|
-
subject_types_supported:
|
|
152740
|
-
id_token_signing_alg_values_supported:
|
|
152741
|
-
id_token_encryption_alg_values_supported:
|
|
152742
|
-
id_token_encryption_enc_values_supported:
|
|
152743
|
-
userinfo_signing_alg_values_supported:
|
|
152744
|
-
userinfo_encryption_alg_values_supported:
|
|
152745
|
-
userinfo_encryption_enc_values_supported:
|
|
152746
|
-
request_object_signing_alg_values_supported:
|
|
152747
|
-
request_object_encryption_alg_values_supported:
|
|
152748
|
-
request_object_encryption_enc_values_supported:
|
|
152749
|
-
token_endpoint_auth_methods_supported:
|
|
152750
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
152751
|
-
display_values_supported:
|
|
152752
|
-
claim_types_supported:
|
|
152753
|
-
claims_supported:
|
|
152754
|
-
service_documentation:
|
|
152755
|
-
claims_locales_supported:
|
|
152756
|
-
ui_locales_supported:
|
|
152757
|
-
claims_parameter_supported:
|
|
152758
|
-
request_parameter_supported:
|
|
152759
|
-
request_uri_parameter_supported:
|
|
152760
|
-
require_request_uri_registration:
|
|
152760
|
+
scopes_supported: z61.array(z61.string()).optional(),
|
|
152761
|
+
response_types_supported: z61.array(z61.string()),
|
|
152762
|
+
response_modes_supported: z61.array(z61.string()).optional(),
|
|
152763
|
+
grant_types_supported: z61.array(z61.string()).optional(),
|
|
152764
|
+
acr_values_supported: z61.array(z61.string()).optional(),
|
|
152765
|
+
subject_types_supported: z61.array(z61.string()),
|
|
152766
|
+
id_token_signing_alg_values_supported: z61.array(z61.string()),
|
|
152767
|
+
id_token_encryption_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152768
|
+
id_token_encryption_enc_values_supported: z61.array(z61.string()).optional(),
|
|
152769
|
+
userinfo_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152770
|
+
userinfo_encryption_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152771
|
+
userinfo_encryption_enc_values_supported: z61.array(z61.string()).optional(),
|
|
152772
|
+
request_object_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152773
|
+
request_object_encryption_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152774
|
+
request_object_encryption_enc_values_supported: z61.array(z61.string()).optional(),
|
|
152775
|
+
token_endpoint_auth_methods_supported: z61.array(z61.string()).optional(),
|
|
152776
|
+
token_endpoint_auth_signing_alg_values_supported: z61.array(z61.string()).optional(),
|
|
152777
|
+
display_values_supported: z61.array(z61.string()).optional(),
|
|
152778
|
+
claim_types_supported: z61.array(z61.string()).optional(),
|
|
152779
|
+
claims_supported: z61.array(z61.string()).optional(),
|
|
152780
|
+
service_documentation: z61.string().optional(),
|
|
152781
|
+
claims_locales_supported: z61.array(z61.string()).optional(),
|
|
152782
|
+
ui_locales_supported: z61.array(z61.string()).optional(),
|
|
152783
|
+
claims_parameter_supported: z61.boolean().optional(),
|
|
152784
|
+
request_parameter_supported: z61.boolean().optional(),
|
|
152785
|
+
request_uri_parameter_supported: z61.boolean().optional(),
|
|
152786
|
+
require_request_uri_registration: z61.boolean().optional(),
|
|
152761
152787
|
op_policy_uri: SafeUrlSchema.optional(),
|
|
152762
152788
|
op_tos_uri: SafeUrlSchema.optional(),
|
|
152763
|
-
client_id_metadata_document_supported:
|
|
152789
|
+
client_id_metadata_document_supported: z61.boolean().optional()
|
|
152764
152790
|
});
|
|
152765
|
-
var OpenIdProviderDiscoveryMetadataSchema =
|
|
152791
|
+
var OpenIdProviderDiscoveryMetadataSchema = z61.object({
|
|
152766
152792
|
...OpenIdProviderMetadataSchema.shape,
|
|
152767
152793
|
...OAuthMetadataSchema.pick({
|
|
152768
152794
|
code_challenge_methods_supported: true
|
|
152769
152795
|
}).shape
|
|
152770
152796
|
});
|
|
152771
|
-
var OAuthTokensSchema =
|
|
152772
|
-
access_token:
|
|
152773
|
-
id_token:
|
|
152774
|
-
token_type:
|
|
152775
|
-
expires_in:
|
|
152776
|
-
scope:
|
|
152777
|
-
refresh_token:
|
|
152778
|
-
issuer:
|
|
152797
|
+
var OAuthTokensSchema = z61.object({
|
|
152798
|
+
access_token: z61.string(),
|
|
152799
|
+
id_token: z61.string().optional(),
|
|
152800
|
+
token_type: z61.string(),
|
|
152801
|
+
expires_in: z61.coerce.number().optional(),
|
|
152802
|
+
scope: z61.string().optional(),
|
|
152803
|
+
refresh_token: z61.string().optional(),
|
|
152804
|
+
issuer: z61.string().optional().catch(undefined)
|
|
152779
152805
|
}).strip();
|
|
152780
|
-
var OAuthErrorResponseSchema =
|
|
152781
|
-
error:
|
|
152782
|
-
error_description:
|
|
152783
|
-
error_uri:
|
|
152806
|
+
var OAuthErrorResponseSchema = z61.object({
|
|
152807
|
+
error: z61.string(),
|
|
152808
|
+
error_description: z61.string().optional(),
|
|
152809
|
+
error_uri: z61.string().optional()
|
|
152784
152810
|
});
|
|
152785
|
-
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(
|
|
152811
|
+
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z61.literal("").transform(() => {
|
|
152786
152812
|
return;
|
|
152787
152813
|
}));
|
|
152788
|
-
var OAuthClientMetadataSchema =
|
|
152789
|
-
redirect_uris:
|
|
152790
|
-
token_endpoint_auth_method:
|
|
152791
|
-
grant_types:
|
|
152792
|
-
response_types:
|
|
152793
|
-
client_name:
|
|
152814
|
+
var OAuthClientMetadataSchema = z61.object({
|
|
152815
|
+
redirect_uris: z61.array(SafeUrlSchema),
|
|
152816
|
+
token_endpoint_auth_method: z61.string().optional(),
|
|
152817
|
+
grant_types: z61.array(z61.string()).optional(),
|
|
152818
|
+
response_types: z61.array(z61.string()).optional(),
|
|
152819
|
+
client_name: z61.string().optional(),
|
|
152794
152820
|
client_uri: SafeUrlSchema.optional(),
|
|
152795
152821
|
logo_uri: OptionalSafeUrlSchema,
|
|
152796
|
-
scope:
|
|
152797
|
-
contacts:
|
|
152822
|
+
scope: z61.string().optional(),
|
|
152823
|
+
contacts: z61.array(z61.string()).optional(),
|
|
152798
152824
|
tos_uri: OptionalSafeUrlSchema,
|
|
152799
|
-
policy_uri:
|
|
152825
|
+
policy_uri: z61.string().optional(),
|
|
152800
152826
|
jwks_uri: SafeUrlSchema.optional(),
|
|
152801
|
-
jwks:
|
|
152802
|
-
software_id:
|
|
152803
|
-
software_version:
|
|
152804
|
-
software_statement:
|
|
152827
|
+
jwks: z61.any().optional(),
|
|
152828
|
+
software_id: z61.string().optional(),
|
|
152829
|
+
software_version: z61.string().optional(),
|
|
152830
|
+
software_statement: z61.string().optional()
|
|
152805
152831
|
}).strip();
|
|
152806
|
-
var OAuthClientInformationSchema =
|
|
152807
|
-
client_id:
|
|
152808
|
-
client_secret:
|
|
152809
|
-
client_id_issued_at:
|
|
152810
|
-
client_secret_expires_at:
|
|
152811
|
-
issuer:
|
|
152832
|
+
var OAuthClientInformationSchema = z61.object({
|
|
152833
|
+
client_id: z61.string(),
|
|
152834
|
+
client_secret: z61.string().optional(),
|
|
152835
|
+
client_id_issued_at: z61.number().optional(),
|
|
152836
|
+
client_secret_expires_at: z61.number().optional(),
|
|
152837
|
+
issuer: z61.string().optional().catch(undefined)
|
|
152812
152838
|
}).strip();
|
|
152813
152839
|
var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
152814
|
-
var OAuthClientRegistrationErrorSchema =
|
|
152815
|
-
error:
|
|
152816
|
-
error_description:
|
|
152840
|
+
var OAuthClientRegistrationErrorSchema = z61.object({
|
|
152841
|
+
error: z61.string(),
|
|
152842
|
+
error_description: z61.string().optional()
|
|
152817
152843
|
}).strip();
|
|
152818
|
-
var OAuthTokenRevocationRequestSchema =
|
|
152819
|
-
token:
|
|
152820
|
-
token_type_hint:
|
|
152844
|
+
var OAuthTokenRevocationRequestSchema = z61.object({
|
|
152845
|
+
token: z61.string(),
|
|
152846
|
+
token_type_hint: z61.string().optional()
|
|
152821
152847
|
}).strip();
|
|
152822
152848
|
|
|
152823
152849
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.32.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
|
|
@@ -155089,7 +155115,7 @@ function mirrorFilePath(projectDir) {
|
|
|
155089
155115
|
}
|
|
155090
155116
|
|
|
155091
155117
|
// packages/omo-opencode/src/features/tui-sidebar/snapshot-schema.ts
|
|
155092
|
-
import { z as
|
|
155118
|
+
import { z as z62 } from "zod";
|
|
155093
155119
|
var AGENT_STATUS_VALUES = [
|
|
155094
155120
|
"busy",
|
|
155095
155121
|
"idle",
|
|
@@ -155105,32 +155131,32 @@ var BACKGROUND_TASK_STATUS_VALUES = [
|
|
|
155105
155131
|
"cancelled",
|
|
155106
155132
|
"interrupt"
|
|
155107
155133
|
];
|
|
155108
|
-
var AgentRowSchema =
|
|
155109
|
-
name:
|
|
155110
|
-
status:
|
|
155134
|
+
var AgentRowSchema = z62.object({
|
|
155135
|
+
name: z62.string(),
|
|
155136
|
+
status: z62.enum(AGENT_STATUS_VALUES)
|
|
155111
155137
|
});
|
|
155112
|
-
var JobRowSchema =
|
|
155113
|
-
title:
|
|
155114
|
-
status:
|
|
155115
|
-
toolCalls:
|
|
155116
|
-
lastTool:
|
|
155138
|
+
var JobRowSchema = z62.object({
|
|
155139
|
+
title: z62.string(),
|
|
155140
|
+
status: z62.enum(BACKGROUND_TASK_STATUS_VALUES),
|
|
155141
|
+
toolCalls: z62.number().int().nonnegative().nullable(),
|
|
155142
|
+
lastTool: z62.string().nullable()
|
|
155117
155143
|
});
|
|
155118
|
-
var LoopLiveSchema =
|
|
155119
|
-
kind:
|
|
155120
|
-
goalsDone:
|
|
155121
|
-
goalsTotal:
|
|
155122
|
-
pass:
|
|
155123
|
-
fail:
|
|
155124
|
-
pending:
|
|
155125
|
-
blocked:
|
|
155126
|
-
activeGoal:
|
|
155144
|
+
var LoopLiveSchema = z62.object({
|
|
155145
|
+
kind: z62.literal("live"),
|
|
155146
|
+
goalsDone: z62.number().int().nonnegative(),
|
|
155147
|
+
goalsTotal: z62.number().int().nonnegative(),
|
|
155148
|
+
pass: z62.number().int().nonnegative(),
|
|
155149
|
+
fail: z62.number().int().nonnegative(),
|
|
155150
|
+
pending: z62.number().int().nonnegative(),
|
|
155151
|
+
blocked: z62.number().int().nonnegative(),
|
|
155152
|
+
activeGoal: z62.string().nullable()
|
|
155127
155153
|
});
|
|
155128
|
-
var TuiRuntimeSnapshotSchema =
|
|
155129
|
-
version:
|
|
155130
|
-
projectDir:
|
|
155131
|
-
updatedAt:
|
|
155132
|
-
activeAgents:
|
|
155133
|
-
jobBoard:
|
|
155154
|
+
var TuiRuntimeSnapshotSchema = z62.object({
|
|
155155
|
+
version: z62.literal(MIRROR_SCHEMA_VERSION),
|
|
155156
|
+
projectDir: z62.string(),
|
|
155157
|
+
updatedAt: z62.number(),
|
|
155158
|
+
activeAgents: z62.array(AgentRowSchema),
|
|
155159
|
+
jobBoard: z62.array(JobRowSchema),
|
|
155134
155160
|
loop: LoopLiveSchema.nullable()
|
|
155135
155161
|
});
|
|
155136
155162
|
|
|
@@ -155145,25 +155171,25 @@ function writeMirror(projectDir, snapshot) {
|
|
|
155145
155171
|
// packages/omo-opencode/src/features/tui-sidebar/loop-reader.ts
|
|
155146
155172
|
import { readdirSync as readdirSync31, readFileSync as readFileSync70, statSync as statSync15 } from "fs";
|
|
155147
155173
|
import { join as join131 } from "path";
|
|
155148
|
-
import { z as
|
|
155149
|
-
var CriterionSchema =
|
|
155150
|
-
status:
|
|
155174
|
+
import { z as z63 } from "zod";
|
|
155175
|
+
var CriterionSchema = z63.object({
|
|
155176
|
+
status: z63.string()
|
|
155151
155177
|
});
|
|
155152
|
-
var GoalBaseSchema =
|
|
155153
|
-
id:
|
|
155154
|
-
title:
|
|
155155
|
-
status:
|
|
155178
|
+
var GoalBaseSchema = z63.object({
|
|
155179
|
+
id: z63.string(),
|
|
155180
|
+
title: z63.string(),
|
|
155181
|
+
status: z63.string()
|
|
155156
155182
|
});
|
|
155157
|
-
var CurrentLoopSchema =
|
|
155158
|
-
version:
|
|
155159
|
-
activeGoalId:
|
|
155160
|
-
goals:
|
|
155161
|
-
successCriteria:
|
|
155183
|
+
var CurrentLoopSchema = z63.object({
|
|
155184
|
+
version: z63.literal(1),
|
|
155185
|
+
activeGoalId: z63.string().optional(),
|
|
155186
|
+
goals: z63.array(GoalBaseSchema.extend({
|
|
155187
|
+
successCriteria: z63.array(CriterionSchema)
|
|
155162
155188
|
}))
|
|
155163
155189
|
});
|
|
155164
|
-
var LegacyLoopSchema =
|
|
155165
|
-
goals:
|
|
155166
|
-
criteria:
|
|
155190
|
+
var LegacyLoopSchema = z63.object({
|
|
155191
|
+
goals: z63.array(GoalBaseSchema.extend({
|
|
155192
|
+
criteria: z63.array(CriterionSchema)
|
|
155167
155193
|
}))
|
|
155168
155194
|
});
|
|
155169
155195
|
function readActiveLoop(projectDir) {
|
|
@@ -171830,7 +171856,7 @@ var grep_app = {
|
|
|
171830
171856
|
import { existsSync as existsSync109, readFileSync as readFileSync77 } from "fs";
|
|
171831
171857
|
import { delimiter as delimiter2, dirname as dirname49, resolve as resolve38 } from "path";
|
|
171832
171858
|
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
171833
|
-
import { z as
|
|
171859
|
+
import { z as z64 } from "zod";
|
|
171834
171860
|
|
|
171835
171861
|
// packages/omo-opencode/src/mcp/cli-suffix.ts
|
|
171836
171862
|
function normalizeCliPath(path) {
|
|
@@ -171931,8 +171957,8 @@ var PROJECT_LSP_CONFIGS = [".opencode/lsp.json", ".omo/lsp.json", ".omo/lsp-clie
|
|
|
171931
171957
|
var DAEMON_PACKAGE_NAME = "@code-yeongyu/lsp-daemon";
|
|
171932
171958
|
var OMO_LSP_DAEMON_CLI = "OMO_LSP_DAEMON_CLI";
|
|
171933
171959
|
var OMO_LSP_DAEMON_VERSION = "OMO_LSP_DAEMON_VERSION";
|
|
171934
|
-
var DaemonPackageSchema =
|
|
171935
|
-
version:
|
|
171960
|
+
var DaemonPackageSchema = z64.object({
|
|
171961
|
+
version: z64.string().min(1)
|
|
171936
171962
|
});
|
|
171937
171963
|
var LSP_BOOTSTRAP_SCRIPT = [
|
|
171938
171964
|
"const { existsSync } = require('node:fs')",
|
|
@@ -172752,14 +172778,14 @@ function createTeamModeToolsRecord(args) {
|
|
|
172752
172778
|
// node_modules/.bun/@opencode-ai+sdk@1.18.31/node_modules/@opencode-ai/sdk/dist/v2/server.js
|
|
172753
172779
|
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1);
|
|
172754
172780
|
// packages/omo-opencode/src/plugin/native-skills.ts
|
|
172755
|
-
import { z as
|
|
172756
|
-
var NativeSkillEntrySchema =
|
|
172757
|
-
name:
|
|
172758
|
-
description:
|
|
172759
|
-
location:
|
|
172760
|
-
content:
|
|
172781
|
+
import { z as z65 } from "zod";
|
|
172782
|
+
var NativeSkillEntrySchema = z65.object({
|
|
172783
|
+
name: z65.string(),
|
|
172784
|
+
description: z65.string().default(""),
|
|
172785
|
+
location: z65.string(),
|
|
172786
|
+
content: z65.string()
|
|
172761
172787
|
});
|
|
172762
|
-
var NativeSkillEntriesSchema =
|
|
172788
|
+
var NativeSkillEntriesSchema = z65.array(NativeSkillEntrySchema);
|
|
172763
172789
|
function getObjectProperty(value, property) {
|
|
172764
172790
|
if (typeof value !== "object" || value === null)
|
|
172765
172791
|
return;
|
|
@@ -173910,7 +173936,7 @@ async function resolveParticipant2(teamRunId, sessionID, config, deps) {
|
|
|
173910
173936
|
}
|
|
173911
173937
|
|
|
173912
173938
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-inline-spec.ts
|
|
173913
|
-
import { z as
|
|
173939
|
+
import { z as z66 } from "zod";
|
|
173914
173940
|
init_types2();
|
|
173915
173941
|
var TEAM_CREATE_USAGE = 'team_create requires exactly one of teamName or inline_spec. Use team_create({ teamName: "existing-team" }) or team_create({ inline_spec: { name: "team-name", members: [{ name: "worker", category: "quick", prompt: "Do the assigned work." }] } }).';
|
|
173916
173942
|
function omitEmptyStringArgs(rawArgs) {
|
|
@@ -173919,10 +173945,10 @@ function omitEmptyStringArgs(rawArgs) {
|
|
|
173919
173945
|
}
|
|
173920
173946
|
return Object.fromEntries(Object.entries(rawArgs).filter(([, value]) => value !== ""));
|
|
173921
173947
|
}
|
|
173922
|
-
var TeamCreateArgsSchema =
|
|
173923
|
-
teamName:
|
|
173924
|
-
inline_spec:
|
|
173925
|
-
leadSessionId:
|
|
173948
|
+
var TeamCreateArgsSchema = z66.preprocess(omitEmptyStringArgs, z66.object({
|
|
173949
|
+
teamName: z66.string().min(1).nullish(),
|
|
173950
|
+
inline_spec: z66.unknown().nullish(),
|
|
173951
|
+
leadSessionId: z66.string().nullish()
|
|
173926
173952
|
}).superRefine((value, ctx) => {
|
|
173927
173953
|
const optionCount = Number(value.teamName != null) + Number(value.inline_spec != null);
|
|
173928
173954
|
if (optionCount !== 1) {
|
|
@@ -174044,7 +174070,7 @@ function createTeamCreateTool(config, client, bgMgr, tmuxMgr, executorConfig, de
|
|
|
174044
174070
|
});
|
|
174045
174071
|
}
|
|
174046
174072
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
174047
|
-
import { z as
|
|
174073
|
+
import { z as z67 } from "zod";
|
|
174048
174074
|
// packages/omo-opencode/src/features/team-mode/team-runtime/shutdown.ts
|
|
174049
174075
|
init_store2();
|
|
174050
174076
|
init_shutdown_helpers();
|
|
@@ -174133,13 +174159,13 @@ async function rejectShutdown(teamRunId, memberName, rejectorName, reason, confi
|
|
|
174133
174159
|
|
|
174134
174160
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
174135
174161
|
init_store();
|
|
174136
|
-
var TeamDeleteArgsSchema =
|
|
174137
|
-
var TeamShutdownRequestArgsSchema =
|
|
174138
|
-
var TeamApproveShutdownArgsSchema =
|
|
174139
|
-
var TeamRejectShutdownArgsSchema =
|
|
174140
|
-
teamRunId:
|
|
174141
|
-
memberName:
|
|
174142
|
-
reason:
|
|
174162
|
+
var TeamDeleteArgsSchema = z67.object({ teamRunId: z67.string().min(1), force: z67.boolean().optional() });
|
|
174163
|
+
var TeamShutdownRequestArgsSchema = z67.object({ teamRunId: z67.string().min(1), targetMemberName: z67.string().min(1) });
|
|
174164
|
+
var TeamApproveShutdownArgsSchema = z67.object({ teamRunId: z67.string().min(1), memberName: z67.string().min(1) });
|
|
174165
|
+
var TeamRejectShutdownArgsSchema = z67.object({
|
|
174166
|
+
teamRunId: z67.string().min(1),
|
|
174167
|
+
memberName: z67.string().min(1),
|
|
174168
|
+
reason: z67.string().min(1)
|
|
174143
174169
|
});
|
|
174144
174170
|
var defaultTeamShutdownToolDeps = {
|
|
174145
174171
|
listActiveTeams,
|
|
@@ -178794,6 +178820,157 @@ function getTelemetryHost(env = process.env, defaultHost = DEFAULT_POSTHOG_HOST)
|
|
|
178794
178820
|
return env["POSTHOG_HOST"]?.trim() || defaultHost;
|
|
178795
178821
|
}
|
|
178796
178822
|
|
|
178823
|
+
// packages/telemetry-core/src/machine-id.ts
|
|
178824
|
+
import { createHash as createHash8 } from "crypto";
|
|
178825
|
+
import os6 from "os";
|
|
178826
|
+
function getDefaultTelemetryOsProvider() {
|
|
178827
|
+
return os6;
|
|
178828
|
+
}
|
|
178829
|
+
function getTelemetryDistinctId(machineIdPrefix, osProvider = getDefaultTelemetryOsProvider()) {
|
|
178830
|
+
return createHash8("sha256").update(`${machineIdPrefix}${osProvider.hostname()}`).digest("hex");
|
|
178831
|
+
}
|
|
178832
|
+
|
|
178833
|
+
// packages/telemetry-core/src/injected-client.ts
|
|
178834
|
+
var NO_OP_CLIENT = {
|
|
178835
|
+
enabled: false,
|
|
178836
|
+
trackActive: () => {
|
|
178837
|
+
return;
|
|
178838
|
+
},
|
|
178839
|
+
flush: async () => {
|
|
178840
|
+
return;
|
|
178841
|
+
},
|
|
178842
|
+
shutdown: async () => {
|
|
178843
|
+
return;
|
|
178844
|
+
}
|
|
178845
|
+
};
|
|
178846
|
+
function isTelemetryClientEnabled(input) {
|
|
178847
|
+
const env = input.env ?? process.env;
|
|
178848
|
+
return !shouldDisableTelemetry({ env, productEnvPrefix: input.product.productEnvPrefix }) && hasTelemetryApiKey(env, input.product.defaultApiKey);
|
|
178849
|
+
}
|
|
178850
|
+
function createTelemetryClient(input) {
|
|
178851
|
+
if (!isTelemetryClientEnabled(input)) {
|
|
178852
|
+
return NO_OP_CLIENT;
|
|
178853
|
+
}
|
|
178854
|
+
const transport = createTransport(input);
|
|
178855
|
+
if (transport === null) {
|
|
178856
|
+
return NO_OP_CLIENT;
|
|
178857
|
+
}
|
|
178858
|
+
const sharedProperties = getSharedProperties(input);
|
|
178859
|
+
return {
|
|
178860
|
+
enabled: true,
|
|
178861
|
+
trackActive: ({ dayUTC, distinctId, reason }) => {
|
|
178862
|
+
try {
|
|
178863
|
+
transport.capture({
|
|
178864
|
+
distinctId,
|
|
178865
|
+
event: input.product.eventName,
|
|
178866
|
+
properties: {
|
|
178867
|
+
...sharedProperties,
|
|
178868
|
+
$process_person_profile: false,
|
|
178869
|
+
day_utc: dayUTC,
|
|
178870
|
+
reason
|
|
178871
|
+
}
|
|
178872
|
+
});
|
|
178873
|
+
} catch (error) {
|
|
178874
|
+
input.diagnostics?.({
|
|
178875
|
+
event: "telemetry_capture_failed",
|
|
178876
|
+
source: input.source,
|
|
178877
|
+
error,
|
|
178878
|
+
errorKind: error instanceof Error ? "error" : "non_error"
|
|
178879
|
+
});
|
|
178880
|
+
}
|
|
178881
|
+
},
|
|
178882
|
+
flush: async () => {
|
|
178883
|
+
if (transport.flush === undefined) {
|
|
178884
|
+
return;
|
|
178885
|
+
}
|
|
178886
|
+
await transport.flush();
|
|
178887
|
+
},
|
|
178888
|
+
shutdown: async () => {
|
|
178889
|
+
try {
|
|
178890
|
+
await transport.shutdown();
|
|
178891
|
+
} catch (error) {
|
|
178892
|
+
input.diagnostics?.({
|
|
178893
|
+
event: "telemetry_shutdown_failed",
|
|
178894
|
+
source: input.source,
|
|
178895
|
+
error,
|
|
178896
|
+
errorKind: error instanceof Error ? "error" : "non_error"
|
|
178897
|
+
});
|
|
178898
|
+
}
|
|
178899
|
+
}
|
|
178900
|
+
};
|
|
178901
|
+
}
|
|
178902
|
+
function createTransport(input) {
|
|
178903
|
+
const env = input.env ?? process.env;
|
|
178904
|
+
const factory = input.transportFactory;
|
|
178905
|
+
try {
|
|
178906
|
+
return factory(getTelemetryApiKey(env, input.product.defaultApiKey), {
|
|
178907
|
+
enableExceptionAutocapture: false,
|
|
178908
|
+
enableLocalEvaluation: false,
|
|
178909
|
+
strictLocalEvaluation: true,
|
|
178910
|
+
disableRemoteConfig: true,
|
|
178911
|
+
flushAt: 1,
|
|
178912
|
+
flushInterval: 0,
|
|
178913
|
+
host: getTelemetryHost(env, input.product.defaultHost),
|
|
178914
|
+
disableGeoip: input.product.disableGeoip ?? false,
|
|
178915
|
+
...input.product.transportOptions
|
|
178916
|
+
});
|
|
178917
|
+
} catch (error) {
|
|
178918
|
+
input.diagnostics?.({
|
|
178919
|
+
event: "telemetry_posthog_init_failed",
|
|
178920
|
+
source: input.source,
|
|
178921
|
+
error,
|
|
178922
|
+
errorKind: error instanceof Error ? "error" : "non_error"
|
|
178923
|
+
});
|
|
178924
|
+
return null;
|
|
178925
|
+
}
|
|
178926
|
+
}
|
|
178927
|
+
function getSharedProperties(input) {
|
|
178928
|
+
const osProvider = input.osProvider ?? getDefaultTelemetryOsProvider();
|
|
178929
|
+
const cpuInfo = getSafeCpuInfo(osProvider, input);
|
|
178930
|
+
return {
|
|
178931
|
+
platform: input.product.platform,
|
|
178932
|
+
product_name: input.product.productName,
|
|
178933
|
+
package_name: input.product.packageName,
|
|
178934
|
+
package_version: input.product.packageVersion,
|
|
178935
|
+
runtime: "bun",
|
|
178936
|
+
runtime_version: process.versions.bun ?? process.version,
|
|
178937
|
+
source: input.source,
|
|
178938
|
+
$os: osProvider.platform(),
|
|
178939
|
+
$os_version: osProvider.release(),
|
|
178940
|
+
os_arch: osProvider.arch(),
|
|
178941
|
+
os_type: osProvider.type(),
|
|
178942
|
+
cpu_count: cpuInfo.count,
|
|
178943
|
+
cpu_model: cpuInfo.model,
|
|
178944
|
+
total_memory_gb: Math.round(osProvider.totalmem() / 1024 / 1024 / 1024),
|
|
178945
|
+
locale: Intl.DateTimeFormat().resolvedOptions().locale,
|
|
178946
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
178947
|
+
shell: process.env.SHELL,
|
|
178948
|
+
ci: Boolean(process.env.CI),
|
|
178949
|
+
terminal: process.env.TERM_PROGRAM,
|
|
178950
|
+
...input.product.additionalProperties
|
|
178951
|
+
};
|
|
178952
|
+
}
|
|
178953
|
+
function getSafeCpuInfo(osProvider, input) {
|
|
178954
|
+
try {
|
|
178955
|
+
const cpuInfo = osProvider.cpus();
|
|
178956
|
+
return {
|
|
178957
|
+
count: cpuInfo.length,
|
|
178958
|
+
model: cpuInfo[0]?.model
|
|
178959
|
+
};
|
|
178960
|
+
} catch (error) {
|
|
178961
|
+
input.diagnostics?.({
|
|
178962
|
+
event: "telemetry_cpu_info_unavailable",
|
|
178963
|
+
source: "shared",
|
|
178964
|
+
error,
|
|
178965
|
+
errorKind: error instanceof Error ? "error" : "non_error"
|
|
178966
|
+
});
|
|
178967
|
+
return {
|
|
178968
|
+
count: 0,
|
|
178969
|
+
model: undefined
|
|
178970
|
+
};
|
|
178971
|
+
}
|
|
178972
|
+
}
|
|
178973
|
+
|
|
178797
178974
|
// node_modules/.bun/posthog-node@5.52.4/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
178798
178975
|
import { dirname as dirname51, posix as posix12, sep as sep4 } from "path";
|
|
178799
178976
|
function createModulerModifier() {
|
|
@@ -187860,30 +188037,7 @@ class PostHog extends PostHogBackendClient {
|
|
|
187860
188037
|
}
|
|
187861
188038
|
}
|
|
187862
188039
|
|
|
187863
|
-
// packages/telemetry-core/src/
|
|
187864
|
-
import { createHash as createHash8 } from "crypto";
|
|
187865
|
-
import os6 from "os";
|
|
187866
|
-
function getDefaultTelemetryOsProvider() {
|
|
187867
|
-
return os6;
|
|
187868
|
-
}
|
|
187869
|
-
function getTelemetryDistinctId(machineIdPrefix, osProvider = getDefaultTelemetryOsProvider()) {
|
|
187870
|
-
return createHash8("sha256").update(`${machineIdPrefix}${osProvider.hostname()}`).digest("hex");
|
|
187871
|
-
}
|
|
187872
|
-
|
|
187873
|
-
// packages/telemetry-core/src/posthog-client.ts
|
|
187874
|
-
var NO_OP_CLIENT = {
|
|
187875
|
-
enabled: false,
|
|
187876
|
-
trackActive: () => {
|
|
187877
|
-
return;
|
|
187878
|
-
},
|
|
187879
|
-
flush: async () => {
|
|
187880
|
-
return;
|
|
187881
|
-
},
|
|
187882
|
-
shutdown: async () => {
|
|
187883
|
-
return;
|
|
187884
|
-
}
|
|
187885
|
-
};
|
|
187886
|
-
|
|
188040
|
+
// packages/telemetry-core/src/posthog-transport.ts
|
|
187887
188041
|
class PostHogTelemetryTransport {
|
|
187888
188042
|
#client;
|
|
187889
188043
|
constructor(apiKey, options) {
|
|
@@ -187902,132 +188056,9 @@ class PostHogTelemetryTransport {
|
|
|
187902
188056
|
function createDefaultPostHogTransport(apiKey, options) {
|
|
187903
188057
|
return new PostHogTelemetryTransport(apiKey, options);
|
|
187904
188058
|
}
|
|
187905
|
-
|
|
187906
|
-
|
|
187907
|
-
return
|
|
187908
|
-
}
|
|
187909
|
-
function createTelemetryClient(input) {
|
|
187910
|
-
if (!isTelemetryClientEnabled(input)) {
|
|
187911
|
-
return NO_OP_CLIENT;
|
|
187912
|
-
}
|
|
187913
|
-
const transport = createTransport(input);
|
|
187914
|
-
if (transport === null) {
|
|
187915
|
-
return NO_OP_CLIENT;
|
|
187916
|
-
}
|
|
187917
|
-
const sharedProperties = getSharedProperties(input);
|
|
187918
|
-
return {
|
|
187919
|
-
enabled: true,
|
|
187920
|
-
trackActive: ({ dayUTC, distinctId, reason }) => {
|
|
187921
|
-
try {
|
|
187922
|
-
transport.capture({
|
|
187923
|
-
distinctId,
|
|
187924
|
-
event: input.product.eventName,
|
|
187925
|
-
properties: {
|
|
187926
|
-
...sharedProperties,
|
|
187927
|
-
$process_person_profile: false,
|
|
187928
|
-
day_utc: dayUTC,
|
|
187929
|
-
reason
|
|
187930
|
-
}
|
|
187931
|
-
});
|
|
187932
|
-
} catch (error) {
|
|
187933
|
-
input.diagnostics?.({
|
|
187934
|
-
event: "telemetry_capture_failed",
|
|
187935
|
-
source: input.source,
|
|
187936
|
-
error,
|
|
187937
|
-
errorKind: error instanceof Error ? "error" : "non_error"
|
|
187938
|
-
});
|
|
187939
|
-
}
|
|
187940
|
-
},
|
|
187941
|
-
flush: async () => {
|
|
187942
|
-
if (transport.flush === undefined) {
|
|
187943
|
-
return;
|
|
187944
|
-
}
|
|
187945
|
-
await transport.flush();
|
|
187946
|
-
},
|
|
187947
|
-
shutdown: async () => {
|
|
187948
|
-
try {
|
|
187949
|
-
await transport.shutdown();
|
|
187950
|
-
} catch (error) {
|
|
187951
|
-
input.diagnostics?.({
|
|
187952
|
-
event: "telemetry_shutdown_failed",
|
|
187953
|
-
source: input.source,
|
|
187954
|
-
error,
|
|
187955
|
-
errorKind: error instanceof Error ? "error" : "non_error"
|
|
187956
|
-
});
|
|
187957
|
-
}
|
|
187958
|
-
}
|
|
187959
|
-
};
|
|
187960
|
-
}
|
|
187961
|
-
function createTransport(input) {
|
|
187962
|
-
const env = input.env ?? process.env;
|
|
187963
|
-
const factory = input.transportFactory ?? createDefaultPostHogTransport;
|
|
187964
|
-
try {
|
|
187965
|
-
return factory(getTelemetryApiKey(env, input.product.defaultApiKey), {
|
|
187966
|
-
enableExceptionAutocapture: false,
|
|
187967
|
-
enableLocalEvaluation: false,
|
|
187968
|
-
strictLocalEvaluation: true,
|
|
187969
|
-
disableRemoteConfig: true,
|
|
187970
|
-
flushAt: 1,
|
|
187971
|
-
flushInterval: 0,
|
|
187972
|
-
host: getTelemetryHost(env, input.product.defaultHost),
|
|
187973
|
-
disableGeoip: input.product.disableGeoip ?? false,
|
|
187974
|
-
...input.product.transportOptions
|
|
187975
|
-
});
|
|
187976
|
-
} catch (error) {
|
|
187977
|
-
input.diagnostics?.({
|
|
187978
|
-
event: "telemetry_posthog_init_failed",
|
|
187979
|
-
source: input.source,
|
|
187980
|
-
error,
|
|
187981
|
-
errorKind: error instanceof Error ? "error" : "non_error"
|
|
187982
|
-
});
|
|
187983
|
-
return null;
|
|
187984
|
-
}
|
|
187985
|
-
}
|
|
187986
|
-
function getSharedProperties(input) {
|
|
187987
|
-
const osProvider = input.osProvider ?? getDefaultTelemetryOsProvider();
|
|
187988
|
-
const cpuInfo = getSafeCpuInfo(osProvider, input);
|
|
187989
|
-
return {
|
|
187990
|
-
platform: input.product.platform,
|
|
187991
|
-
product_name: input.product.productName,
|
|
187992
|
-
package_name: input.product.packageName,
|
|
187993
|
-
package_version: input.product.packageVersion,
|
|
187994
|
-
runtime: "bun",
|
|
187995
|
-
runtime_version: process.versions.bun ?? process.version,
|
|
187996
|
-
source: input.source,
|
|
187997
|
-
$os: osProvider.platform(),
|
|
187998
|
-
$os_version: osProvider.release(),
|
|
187999
|
-
os_arch: osProvider.arch(),
|
|
188000
|
-
os_type: osProvider.type(),
|
|
188001
|
-
cpu_count: cpuInfo.count,
|
|
188002
|
-
cpu_model: cpuInfo.model,
|
|
188003
|
-
total_memory_gb: Math.round(osProvider.totalmem() / 1024 / 1024 / 1024),
|
|
188004
|
-
locale: Intl.DateTimeFormat().resolvedOptions().locale,
|
|
188005
|
-
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
188006
|
-
shell: process.env.SHELL,
|
|
188007
|
-
ci: Boolean(process.env.CI),
|
|
188008
|
-
terminal: process.env.TERM_PROGRAM,
|
|
188009
|
-
...input.product.additionalProperties
|
|
188010
|
-
};
|
|
188011
|
-
}
|
|
188012
|
-
function getSafeCpuInfo(osProvider, input) {
|
|
188013
|
-
try {
|
|
188014
|
-
const cpuInfo = osProvider.cpus();
|
|
188015
|
-
return {
|
|
188016
|
-
count: cpuInfo.length,
|
|
188017
|
-
model: cpuInfo[0]?.model
|
|
188018
|
-
};
|
|
188019
|
-
} catch (error) {
|
|
188020
|
-
input.diagnostics?.({
|
|
188021
|
-
event: "telemetry_cpu_info_unavailable",
|
|
188022
|
-
source: "shared",
|
|
188023
|
-
error,
|
|
188024
|
-
errorKind: error instanceof Error ? "error" : "non_error"
|
|
188025
|
-
});
|
|
188026
|
-
return {
|
|
188027
|
-
count: 0,
|
|
188028
|
-
model: undefined
|
|
188029
|
-
};
|
|
188030
|
-
}
|
|
188059
|
+
// packages/telemetry-core/src/posthog-client.ts
|
|
188060
|
+
function createTelemetryClient2(input) {
|
|
188061
|
+
return createTelemetryClient({ ...input, transportFactory: input.transportFactory ?? createDefaultPostHogTransport });
|
|
188031
188062
|
}
|
|
188032
188063
|
|
|
188033
188064
|
// packages/omo-opencode/src/shared/posthog-activity-state.ts
|
|
@@ -188154,7 +188185,7 @@ function createPostHogClient(source, options = {}) {
|
|
|
188154
188185
|
if (shouldDisablePostHog(env, options.configEnabled)) {
|
|
188155
188186
|
return NO_OP_POSTHOG;
|
|
188156
188187
|
}
|
|
188157
|
-
const client =
|
|
188188
|
+
const client = createTelemetryClient2({
|
|
188158
188189
|
diagnostics: logTelemetryDiagnostic,
|
|
188159
188190
|
env: createCoreCompatibleTelemetryEnv(env),
|
|
188160
188191
|
osProvider: resolveOsProvider(),
|