oh-my-opencode 5.0.0-beta.4 → 5.0.0-beta.6
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 +496 -377
- package/dist/cli-node/index.js +496 -377
- package/dist/index.js +1136 -1104
- package/dist/skills/coding-agent-sessions/SKILL.md +3 -2
- package/dist/skills/coding-agent-sessions/references/all-platforms.md +1 -1
- package/dist/skills/coding-agent-sessions/references/senpi.md +4 -4
- package/dist/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
- package/dist/tui.js +20 -1
- package/package.json +15 -14
- package/packages/lsp-core/src/lsp/client-wrapper.test.ts +60 -7
- package/packages/lsp-core/src/lsp/client-wrapper.ts +69 -16
- package/packages/lsp-core/src/lsp/workspace-edit-adversarial.test.ts +20 -1
- package/packages/lsp-core/src/tools/diagnostics.ts +3 -3
- package/packages/lsp-core/src/tools/navigation.ts +4 -2
- package/packages/lsp-core/src/tools/rename.ts +4 -2
- package/packages/lsp-core/src/tools/symbols.ts +1 -1
- package/packages/lsp-daemon/dist/cli.js +83 -29
- package/packages/lsp-daemon/dist/client.js +76 -22
- package/packages/lsp-daemon/dist/index.js +81 -27
- package/packages/lsp-tools-mcp/dist/cli.js +76 -22
- package/packages/lsp-tools-mcp/dist/mcp.js +76 -22
- package/packages/lsp-tools-mcp/dist/tools.js +76 -22
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- 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/codegraph/dist/cli.js +14 -1
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +14 -1
- package/packages/omo-codex/plugin/components/codegraph/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 +83 -29
- 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/start-work-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/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 +24 -12
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +24 -12
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
- 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-codegraph-init-guidance.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/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-checking-codegraph-bootstrap.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-start-work-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-checking-start-work-continuation.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 +13 -13
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/SKILL.md +3 -2
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/all-platforms.md +1 -1
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/senpi.md +4 -4
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +39 -16
- package/packages/shared-skills/skills/coding-agent-sessions/SKILL.md +3 -2
- package/packages/shared-skills/skills/coding-agent-sessions/references/all-platforms.md +1 -1
- package/packages/shared-skills/skills/coding-agent-sessions/references/senpi.md +4 -4
- package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
package/dist/index.js
CHANGED
|
@@ -5759,8 +5759,21 @@ var init_team = __esm(() => {
|
|
|
5759
5759
|
OmoTeamsConfigLayerSchema = z10.record(z10.string(), OmoTeamSpecLayerSchema);
|
|
5760
5760
|
});
|
|
5761
5761
|
|
|
5762
|
-
// packages/omo-config-core/src/schema/
|
|
5762
|
+
// packages/omo-config-core/src/schema/telemetry.ts
|
|
5763
5763
|
import * as z11 from "zod";
|
|
5764
|
+
var OmoTelemetrySettingsShape, OmoTelemetrySettingsLayerSchema, OmoTelemetrySettingsSchema;
|
|
5765
|
+
var init_telemetry = __esm(() => {
|
|
5766
|
+
OmoTelemetrySettingsShape = {
|
|
5767
|
+
enabled: z11.boolean()
|
|
5768
|
+
};
|
|
5769
|
+
OmoTelemetrySettingsLayerSchema = z11.object(OmoTelemetrySettingsShape).partial().strict();
|
|
5770
|
+
OmoTelemetrySettingsSchema = OmoTelemetrySettingsLayerSchema.extend({
|
|
5771
|
+
enabled: z11.boolean().default(true)
|
|
5772
|
+
}).strict();
|
|
5773
|
+
});
|
|
5774
|
+
|
|
5775
|
+
// packages/omo-config-core/src/schema/config.ts
|
|
5776
|
+
import * as z12 from "zod";
|
|
5764
5777
|
var OmoOpenCodeHarnessConfigSchema, OmoTypedHarnessConfigSchema, OmoConfigProfileSchema, OmoConfigSchema, OmoConfigLayerSchema;
|
|
5765
5778
|
var init_config = __esm(() => {
|
|
5766
5779
|
init_agent();
|
|
@@ -5770,17 +5783,19 @@ var init_config = __esm(() => {
|
|
|
5770
5783
|
init_model_catalog();
|
|
5771
5784
|
init_task();
|
|
5772
5785
|
init_team();
|
|
5773
|
-
|
|
5774
|
-
|
|
5786
|
+
init_telemetry();
|
|
5787
|
+
OmoOpenCodeHarnessConfigSchema = z12.record(z12.string(), z12.unknown());
|
|
5788
|
+
OmoTypedHarnessConfigSchema = z12.object({
|
|
5775
5789
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5776
5790
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5777
5791
|
codegraph: OmoCodegraphSettingsLayerSchema.optional(),
|
|
5778
5792
|
task: OmoTaskSettingsLayerSchema.optional(),
|
|
5779
5793
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
5780
5794
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
5781
|
-
memory: OmoMemorySettingsLayerSchema.optional()
|
|
5795
|
+
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
5796
|
+
telemetry: OmoTelemetrySettingsLayerSchema.optional()
|
|
5782
5797
|
}).strict();
|
|
5783
|
-
OmoConfigProfileSchema =
|
|
5798
|
+
OmoConfigProfileSchema = z12.object({
|
|
5784
5799
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5785
5800
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5786
5801
|
codegraph: OmoCodegraphSettingsLayerSchema.optional(),
|
|
@@ -5788,12 +5803,13 @@ var init_config = __esm(() => {
|
|
|
5788
5803
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
5789
5804
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
5790
5805
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
5806
|
+
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
5791
5807
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
5792
5808
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
5793
5809
|
"[codex]": OmoTypedHarnessConfigSchema.optional()
|
|
5794
5810
|
}).strict();
|
|
5795
|
-
OmoConfigSchema =
|
|
5796
|
-
$schema:
|
|
5811
|
+
OmoConfigSchema = z12.object({
|
|
5812
|
+
$schema: z12.string().optional(),
|
|
5797
5813
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5798
5814
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5799
5815
|
codegraph: OmoCodegraphSettingsSchema.optional(),
|
|
@@ -5801,15 +5817,16 @@ var init_config = __esm(() => {
|
|
|
5801
5817
|
teams: OmoTeamsConfigSchema.optional(),
|
|
5802
5818
|
models: OmoModelCatalogSchema.optional(),
|
|
5803
5819
|
memory: OmoMemorySettingsSchema.optional(),
|
|
5820
|
+
telemetry: OmoTelemetrySettingsSchema.optional(),
|
|
5804
5821
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
5805
5822
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
5806
5823
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
5807
|
-
profiles:
|
|
5808
|
-
_migrations:
|
|
5809
|
-
legacy_migrations:
|
|
5824
|
+
profiles: z12.record(z12.string(), OmoConfigProfileSchema).default({}),
|
|
5825
|
+
_migrations: z12.array(z12.string()).optional(),
|
|
5826
|
+
legacy_migrations: z12.record(z12.string(), z12.unknown()).optional()
|
|
5810
5827
|
}).strict();
|
|
5811
|
-
OmoConfigLayerSchema =
|
|
5812
|
-
$schema:
|
|
5828
|
+
OmoConfigLayerSchema = z12.object({
|
|
5829
|
+
$schema: z12.string().optional(),
|
|
5813
5830
|
categories: OmoCategoriesConfigSchema.optional(),
|
|
5814
5831
|
agents: OmoAgentsConfigSchema.optional(),
|
|
5815
5832
|
codegraph: OmoCodegraphSettingsLayerSchema.optional(),
|
|
@@ -5817,12 +5834,13 @@ var init_config = __esm(() => {
|
|
|
5817
5834
|
teams: OmoTeamsConfigLayerSchema.optional(),
|
|
5818
5835
|
models: OmoModelCatalogLayerSchema.optional(),
|
|
5819
5836
|
memory: OmoMemorySettingsLayerSchema.optional(),
|
|
5837
|
+
telemetry: OmoTelemetrySettingsLayerSchema.optional(),
|
|
5820
5838
|
"[opencode]": OmoOpenCodeHarnessConfigSchema.optional(),
|
|
5821
5839
|
"[senpi]": OmoTypedHarnessConfigSchema.optional(),
|
|
5822
5840
|
"[codex]": OmoTypedHarnessConfigSchema.optional(),
|
|
5823
|
-
profiles:
|
|
5824
|
-
_migrations:
|
|
5825
|
-
legacy_migrations:
|
|
5841
|
+
profiles: z12.record(z12.string(), OmoConfigProfileSchema).optional(),
|
|
5842
|
+
_migrations: z12.array(z12.string()).optional(),
|
|
5843
|
+
legacy_migrations: z12.record(z12.string(), z12.unknown()).optional()
|
|
5826
5844
|
}).strict();
|
|
5827
5845
|
});
|
|
5828
5846
|
|
|
@@ -5839,6 +5857,7 @@ var init_schema = __esm(() => {
|
|
|
5839
5857
|
init_model_ref();
|
|
5840
5858
|
init_task();
|
|
5841
5859
|
init_team();
|
|
5860
|
+
init_telemetry();
|
|
5842
5861
|
});
|
|
5843
5862
|
|
|
5844
5863
|
// packages/omo-config-core/src/loader/merge.ts
|
|
@@ -16170,7 +16189,7 @@ var init_member_parser = __esm(() => {
|
|
|
16170
16189
|
});
|
|
16171
16190
|
|
|
16172
16191
|
// packages/team-core/src/types.ts
|
|
16173
|
-
import * as
|
|
16192
|
+
import * as z50 from "zod";
|
|
16174
16193
|
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;
|
|
16175
16194
|
var init_types5 = __esm(() => {
|
|
16176
16195
|
init_member_parser();
|
|
@@ -16191,40 +16210,40 @@ var init_types5 = __esm(() => {
|
|
|
16191
16210
|
"failed",
|
|
16192
16211
|
"orphaned"
|
|
16193
16212
|
];
|
|
16194
|
-
MemberBaseSchema =
|
|
16195
|
-
name:
|
|
16196
|
-
cwd:
|
|
16197
|
-
worktreePath:
|
|
16198
|
-
task_summary:
|
|
16199
|
-
subscriptions:
|
|
16200
|
-
backendType:
|
|
16201
|
-
color:
|
|
16202
|
-
isActive:
|
|
16213
|
+
MemberBaseSchema = z50.object({
|
|
16214
|
+
name: z50.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
16215
|
+
cwd: z50.string().optional(),
|
|
16216
|
+
worktreePath: z50.string().optional(),
|
|
16217
|
+
task_summary: z50.string().max(80).optional(),
|
|
16218
|
+
subscriptions: z50.array(z50.string()).optional(),
|
|
16219
|
+
backendType: z50.enum(["in-process", "tmux"]).default("in-process"),
|
|
16220
|
+
color: z50.string().optional(),
|
|
16221
|
+
isActive: z50.boolean().default(true)
|
|
16203
16222
|
}).strict();
|
|
16204
16223
|
CategoryMemberSchema = MemberBaseSchema.extend({
|
|
16205
|
-
kind:
|
|
16206
|
-
category:
|
|
16207
|
-
prompt:
|
|
16224
|
+
kind: z50.literal("category"),
|
|
16225
|
+
category: z50.string().min(1),
|
|
16226
|
+
prompt: z50.string().min(1)
|
|
16208
16227
|
});
|
|
16209
16228
|
SubagentMemberSchema = MemberBaseSchema.extend({
|
|
16210
|
-
kind:
|
|
16211
|
-
subagent_type:
|
|
16212
|
-
prompt:
|
|
16229
|
+
kind: z50.literal("subagent_type"),
|
|
16230
|
+
subagent_type: z50.string().min(1),
|
|
16231
|
+
prompt: z50.string().optional()
|
|
16213
16232
|
});
|
|
16214
|
-
MemberSchema =
|
|
16215
|
-
TeamReferenceSchema =
|
|
16216
|
-
path:
|
|
16217
|
-
description:
|
|
16233
|
+
MemberSchema = z50.discriminatedUnion("kind", [CategoryMemberSchema, SubagentMemberSchema]);
|
|
16234
|
+
TeamReferenceSchema = z50.object({
|
|
16235
|
+
path: z50.string(),
|
|
16236
|
+
description: z50.string().optional()
|
|
16218
16237
|
}).strict();
|
|
16219
|
-
TeamSpecSchema =
|
|
16220
|
-
version:
|
|
16221
|
-
name:
|
|
16222
|
-
description:
|
|
16223
|
-
createdAt:
|
|
16224
|
-
leadAgentId:
|
|
16225
|
-
teamAllowedPaths:
|
|
16226
|
-
sessionPermission:
|
|
16227
|
-
members:
|
|
16238
|
+
TeamSpecSchema = z50.object({
|
|
16239
|
+
version: z50.literal(1).default(1),
|
|
16240
|
+
name: z50.string().min(1).regex(/^[a-z0-9-]+$/),
|
|
16241
|
+
description: z50.string().optional(),
|
|
16242
|
+
createdAt: z50.number().int().positive().default(() => Date.now()),
|
|
16243
|
+
leadAgentId: z50.string().optional(),
|
|
16244
|
+
teamAllowedPaths: z50.array(z50.string()).optional(),
|
|
16245
|
+
sessionPermission: z50.string().optional(),
|
|
16246
|
+
members: z50.array(MemberSchema).min(1).max(8)
|
|
16228
16247
|
}).superRefine((teamSpec, ctx) => {
|
|
16229
16248
|
if (teamSpec.leadAgentId === undefined && teamSpec.members.length > 1) {
|
|
16230
16249
|
ctx.addIssue({
|
|
@@ -16246,95 +16265,95 @@ var init_types5 = __esm(() => {
|
|
|
16246
16265
|
leadAgentId: firstMember.name
|
|
16247
16266
|
};
|
|
16248
16267
|
});
|
|
16249
|
-
MessageSchema =
|
|
16250
|
-
version:
|
|
16251
|
-
messageId:
|
|
16252
|
-
from:
|
|
16253
|
-
to:
|
|
16254
|
-
kind:
|
|
16255
|
-
body:
|
|
16256
|
-
summary:
|
|
16257
|
-
references:
|
|
16258
|
-
timestamp:
|
|
16259
|
-
correlationId:
|
|
16260
|
-
color:
|
|
16268
|
+
MessageSchema = z50.object({
|
|
16269
|
+
version: z50.literal(1),
|
|
16270
|
+
messageId: z50.string().uuid(),
|
|
16271
|
+
from: z50.string(),
|
|
16272
|
+
to: z50.string(),
|
|
16273
|
+
kind: z50.enum(MESSAGE_KINDS),
|
|
16274
|
+
body: z50.string().max(32 * 1024),
|
|
16275
|
+
summary: z50.string().optional(),
|
|
16276
|
+
references: z50.array(TeamReferenceSchema).optional(),
|
|
16277
|
+
timestamp: z50.number().int().positive(),
|
|
16278
|
+
correlationId: z50.string().uuid().optional(),
|
|
16279
|
+
color: z50.string().optional()
|
|
16261
16280
|
});
|
|
16262
|
-
TaskSchema =
|
|
16263
|
-
version:
|
|
16264
|
-
id:
|
|
16265
|
-
subject:
|
|
16266
|
-
description:
|
|
16267
|
-
activeForm:
|
|
16268
|
-
status:
|
|
16269
|
-
owner:
|
|
16270
|
-
blocks:
|
|
16271
|
-
blockedBy:
|
|
16272
|
-
metadata:
|
|
16273
|
-
createdAt:
|
|
16274
|
-
updatedAt:
|
|
16275
|
-
claimedAt:
|
|
16281
|
+
TaskSchema = z50.object({
|
|
16282
|
+
version: z50.literal(1),
|
|
16283
|
+
id: z50.string(),
|
|
16284
|
+
subject: z50.string(),
|
|
16285
|
+
description: z50.string(),
|
|
16286
|
+
activeForm: z50.string().optional(),
|
|
16287
|
+
status: z50.enum(TASK_STATUSES),
|
|
16288
|
+
owner: z50.string().optional(),
|
|
16289
|
+
blocks: z50.array(z50.string()).default([]),
|
|
16290
|
+
blockedBy: z50.array(z50.string()).default([]),
|
|
16291
|
+
metadata: z50.record(z50.string(), z50.unknown()).optional(),
|
|
16292
|
+
createdAt: z50.number().int().positive(),
|
|
16293
|
+
updatedAt: z50.number().int().positive(),
|
|
16294
|
+
claimedAt: z50.number().int().positive().optional()
|
|
16276
16295
|
});
|
|
16277
|
-
RuntimeStateMemberModelSchema =
|
|
16278
|
-
providerID:
|
|
16279
|
-
modelID:
|
|
16280
|
-
variant:
|
|
16281
|
-
reasoningEffort:
|
|
16282
|
-
temperature:
|
|
16283
|
-
top_p:
|
|
16284
|
-
maxTokens:
|
|
16285
|
-
thinking:
|
|
16286
|
-
type:
|
|
16287
|
-
budgetTokens:
|
|
16296
|
+
RuntimeStateMemberModelSchema = z50.object({
|
|
16297
|
+
providerID: z50.string(),
|
|
16298
|
+
modelID: z50.string(),
|
|
16299
|
+
variant: z50.string().optional(),
|
|
16300
|
+
reasoningEffort: z50.string().optional(),
|
|
16301
|
+
temperature: z50.number().optional(),
|
|
16302
|
+
top_p: z50.number().optional(),
|
|
16303
|
+
maxTokens: z50.number().optional(),
|
|
16304
|
+
thinking: z50.object({
|
|
16305
|
+
type: z50.enum(["enabled", "disabled"]),
|
|
16306
|
+
budgetTokens: z50.number().int().positive().optional()
|
|
16288
16307
|
}).optional()
|
|
16289
16308
|
}).strict();
|
|
16290
|
-
RuntimeStateMemberSchema =
|
|
16291
|
-
name:
|
|
16292
|
-
sessionId:
|
|
16293
|
-
tmuxPaneId:
|
|
16294
|
-
tmuxGridPaneId:
|
|
16295
|
-
agentType:
|
|
16296
|
-
subagent_type:
|
|
16297
|
-
category:
|
|
16309
|
+
RuntimeStateMemberSchema = z50.object({
|
|
16310
|
+
name: z50.string(),
|
|
16311
|
+
sessionId: z50.string().optional(),
|
|
16312
|
+
tmuxPaneId: z50.string().optional(),
|
|
16313
|
+
tmuxGridPaneId: z50.string().optional(),
|
|
16314
|
+
agentType: z50.enum(["leader", "general-purpose"]),
|
|
16315
|
+
subagent_type: z50.string().optional(),
|
|
16316
|
+
category: z50.string().optional(),
|
|
16298
16317
|
model: RuntimeStateMemberModelSchema.optional(),
|
|
16299
|
-
status:
|
|
16300
|
-
color:
|
|
16301
|
-
worktreePath:
|
|
16302
|
-
lastInjectedTurnMarker:
|
|
16303
|
-
pendingInjectedMessageIds:
|
|
16318
|
+
status: z50.enum(["pending", "running", "idle", "errored", "completed", "shutdown_approved"]),
|
|
16319
|
+
color: z50.string().optional(),
|
|
16320
|
+
worktreePath: z50.string().optional(),
|
|
16321
|
+
lastInjectedTurnMarker: z50.string().optional(),
|
|
16322
|
+
pendingInjectedMessageIds: z50.array(z50.string()).default([])
|
|
16304
16323
|
}).strict();
|
|
16305
|
-
RuntimeBoundsSchema =
|
|
16306
|
-
maxMembers:
|
|
16307
|
-
maxParallelMembers:
|
|
16308
|
-
maxMessagesPerRun:
|
|
16309
|
-
maxWallClockMinutes:
|
|
16310
|
-
maxMemberTurns:
|
|
16324
|
+
RuntimeBoundsSchema = z50.object({
|
|
16325
|
+
maxMembers: z50.number().int().default(8),
|
|
16326
|
+
maxParallelMembers: z50.number().int().default(4),
|
|
16327
|
+
maxMessagesPerRun: z50.number().int().default(1e4),
|
|
16328
|
+
maxWallClockMinutes: z50.number().int().default(120),
|
|
16329
|
+
maxMemberTurns: z50.number().int().default(500)
|
|
16311
16330
|
}).strict();
|
|
16312
|
-
ShutdownRequestSchema =
|
|
16313
|
-
memberId:
|
|
16314
|
-
requesterName:
|
|
16315
|
-
requestedAt:
|
|
16316
|
-
approvedAt:
|
|
16317
|
-
rejectedReason:
|
|
16318
|
-
rejectedAt:
|
|
16331
|
+
ShutdownRequestSchema = z50.object({
|
|
16332
|
+
memberId: z50.string(),
|
|
16333
|
+
requesterName: z50.string(),
|
|
16334
|
+
requestedAt: z50.number().int().positive(),
|
|
16335
|
+
approvedAt: z50.number().int().positive().optional(),
|
|
16336
|
+
rejectedReason: z50.string().optional(),
|
|
16337
|
+
rejectedAt: z50.number().int().positive().optional()
|
|
16319
16338
|
}).strict();
|
|
16320
|
-
RuntimeStateTmuxLayoutSchema =
|
|
16321
|
-
ownedSession:
|
|
16322
|
-
targetSessionId:
|
|
16323
|
-
focusWindowId:
|
|
16324
|
-
gridWindowId:
|
|
16325
|
-
paneIds:
|
|
16339
|
+
RuntimeStateTmuxLayoutSchema = z50.object({
|
|
16340
|
+
ownedSession: z50.boolean(),
|
|
16341
|
+
targetSessionId: z50.string(),
|
|
16342
|
+
focusWindowId: z50.string().optional(),
|
|
16343
|
+
gridWindowId: z50.string().optional(),
|
|
16344
|
+
paneIds: z50.array(z50.string()).optional()
|
|
16326
16345
|
}).strict();
|
|
16327
|
-
RuntimeStateSchema =
|
|
16328
|
-
version:
|
|
16329
|
-
teamRunId:
|
|
16330
|
-
teamName:
|
|
16331
|
-
specSource:
|
|
16332
|
-
createdAt:
|
|
16333
|
-
status:
|
|
16334
|
-
leadSessionId:
|
|
16346
|
+
RuntimeStateSchema = z50.object({
|
|
16347
|
+
version: z50.literal(1),
|
|
16348
|
+
teamRunId: z50.string().uuid(),
|
|
16349
|
+
teamName: z50.string(),
|
|
16350
|
+
specSource: z50.enum(["project", "user"]),
|
|
16351
|
+
createdAt: z50.number().int().positive(),
|
|
16352
|
+
status: z50.enum(RUNTIME_STATUSES),
|
|
16353
|
+
leadSessionId: z50.string().optional(),
|
|
16335
16354
|
tmuxLayout: RuntimeStateTmuxLayoutSchema.optional(),
|
|
16336
|
-
members:
|
|
16337
|
-
shutdownRequests:
|
|
16355
|
+
members: z50.array(RuntimeStateMemberSchema),
|
|
16356
|
+
shutdownRequests: z50.array(ShutdownRequestSchema).default([]),
|
|
16338
16357
|
bounds: RuntimeBoundsSchema
|
|
16339
16358
|
});
|
|
16340
16359
|
AGENT_ELIGIBILITY_REGISTRY = {
|
|
@@ -27122,8 +27141,8 @@ function findUnknownKeyPaths(schema2, value) {
|
|
|
27122
27141
|
}
|
|
27123
27142
|
|
|
27124
27143
|
// packages/omo-opencode/src/config/schema/agent-names.ts
|
|
27125
|
-
import { z as
|
|
27126
|
-
var BuiltinAgentNameSchema =
|
|
27144
|
+
import { z as z13 } from "zod";
|
|
27145
|
+
var BuiltinAgentNameSchema = z13.enum([
|
|
27127
27146
|
"sisyphus",
|
|
27128
27147
|
"hephaestus",
|
|
27129
27148
|
"prometheus",
|
|
@@ -27136,7 +27155,7 @@ var BuiltinAgentNameSchema = z12.enum([
|
|
|
27136
27155
|
"atlas",
|
|
27137
27156
|
"sisyphus-junior"
|
|
27138
27157
|
]);
|
|
27139
|
-
var BuiltinSkillNameSchema =
|
|
27158
|
+
var BuiltinSkillNameSchema = z13.enum([
|
|
27140
27159
|
"playwright",
|
|
27141
27160
|
"agent-browser",
|
|
27142
27161
|
"dev-browser",
|
|
@@ -27151,7 +27170,7 @@ var BuiltinSkillNameSchema = z12.enum([
|
|
|
27151
27170
|
"visual-qa",
|
|
27152
27171
|
"team-mode"
|
|
27153
27172
|
]);
|
|
27154
|
-
var OverridableAgentNameSchema =
|
|
27173
|
+
var OverridableAgentNameSchema = z13.enum([
|
|
27155
27174
|
"build",
|
|
27156
27175
|
"plan",
|
|
27157
27176
|
"sisyphus",
|
|
@@ -27169,42 +27188,42 @@ var OverridableAgentNameSchema = z12.enum([
|
|
|
27169
27188
|
]);
|
|
27170
27189
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
27171
27190
|
init_src();
|
|
27172
|
-
import { z as
|
|
27191
|
+
import { z as z16 } from "zod";
|
|
27173
27192
|
|
|
27174
27193
|
// packages/omo-opencode/src/config/schema/fallback-models.ts
|
|
27175
27194
|
init_src();
|
|
27176
|
-
import { z as
|
|
27177
|
-
var FallbackModelObjectSchema =
|
|
27178
|
-
model:
|
|
27195
|
+
import { z as z14 } from "zod";
|
|
27196
|
+
var FallbackModelObjectSchema = z14.object({
|
|
27197
|
+
model: z14.string(),
|
|
27179
27198
|
reasoning: OmoReasoningSchema.optional(),
|
|
27180
|
-
variant:
|
|
27181
|
-
reasoningEffort:
|
|
27182
|
-
temperature:
|
|
27183
|
-
top_p:
|
|
27184
|
-
maxTokens:
|
|
27185
|
-
thinking:
|
|
27186
|
-
type:
|
|
27187
|
-
budgetTokens:
|
|
27199
|
+
variant: z14.string().optional(),
|
|
27200
|
+
reasoningEffort: z14.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
27201
|
+
temperature: z14.number().min(0).max(2).optional(),
|
|
27202
|
+
top_p: z14.number().min(0).max(1).optional(),
|
|
27203
|
+
maxTokens: z14.number().optional(),
|
|
27204
|
+
thinking: z14.object({
|
|
27205
|
+
type: z14.enum(["enabled", "disabled"]),
|
|
27206
|
+
budgetTokens: z14.number().optional()
|
|
27188
27207
|
}).optional()
|
|
27189
27208
|
});
|
|
27190
|
-
var FallbackModelStringArraySchema =
|
|
27191
|
-
var FallbackModelObjectArraySchema =
|
|
27192
|
-
var FallbackModelMixedArraySchema =
|
|
27193
|
-
var FallbackModelsSchema =
|
|
27194
|
-
|
|
27209
|
+
var FallbackModelStringArraySchema = z14.array(z14.string());
|
|
27210
|
+
var FallbackModelObjectArraySchema = z14.array(FallbackModelObjectSchema);
|
|
27211
|
+
var FallbackModelMixedArraySchema = z14.array(z14.union([z14.string(), FallbackModelObjectSchema]));
|
|
27212
|
+
var FallbackModelsSchema = z14.union([
|
|
27213
|
+
z14.string(),
|
|
27195
27214
|
FallbackModelStringArraySchema,
|
|
27196
27215
|
FallbackModelObjectArraySchema,
|
|
27197
27216
|
FallbackModelMixedArraySchema
|
|
27198
27217
|
]);
|
|
27199
27218
|
|
|
27200
27219
|
// packages/omo-opencode/src/config/schema/internal/permission.ts
|
|
27201
|
-
import { z as
|
|
27202
|
-
var PermissionValueSchema =
|
|
27203
|
-
var BashPermissionSchema =
|
|
27220
|
+
import { z as z15 } from "zod";
|
|
27221
|
+
var PermissionValueSchema = z15.enum(["ask", "allow", "deny"]);
|
|
27222
|
+
var BashPermissionSchema = z15.union([
|
|
27204
27223
|
PermissionValueSchema,
|
|
27205
|
-
|
|
27224
|
+
z15.record(z15.string(), PermissionValueSchema)
|
|
27206
27225
|
]);
|
|
27207
|
-
var AgentPermissionSchema =
|
|
27226
|
+
var AgentPermissionSchema = z15.object({
|
|
27208
27227
|
edit: PermissionValueSchema.optional(),
|
|
27209
27228
|
bash: BashPermissionSchema.optional(),
|
|
27210
27229
|
webfetch: PermissionValueSchema.optional(),
|
|
@@ -27214,50 +27233,50 @@ var AgentPermissionSchema = z14.object({
|
|
|
27214
27233
|
}).catchall(PermissionValueSchema.optional());
|
|
27215
27234
|
|
|
27216
27235
|
// packages/omo-opencode/src/config/schema/agent-overrides.ts
|
|
27217
|
-
var AgentOverrideConfigSchema =
|
|
27218
|
-
model:
|
|
27219
|
-
models:
|
|
27236
|
+
var AgentOverrideConfigSchema = z16.object({
|
|
27237
|
+
model: z16.string().optional(),
|
|
27238
|
+
models: z16.array(z16.union([z16.string(), FallbackModelObjectSchema])).optional(),
|
|
27220
27239
|
fallback_models: FallbackModelsSchema.optional(),
|
|
27221
27240
|
reasoning: OmoReasoningSchema.optional(),
|
|
27222
|
-
variant:
|
|
27223
|
-
category:
|
|
27224
|
-
skills:
|
|
27225
|
-
temperature:
|
|
27226
|
-
top_p:
|
|
27227
|
-
prompt:
|
|
27228
|
-
prompt_append:
|
|
27229
|
-
tools:
|
|
27230
|
-
disable:
|
|
27231
|
-
description:
|
|
27232
|
-
mode:
|
|
27233
|
-
color:
|
|
27234
|
-
displayName:
|
|
27241
|
+
variant: z16.string().optional(),
|
|
27242
|
+
category: z16.string().optional(),
|
|
27243
|
+
skills: z16.array(z16.string()).optional(),
|
|
27244
|
+
temperature: z16.number().min(0).max(2).optional(),
|
|
27245
|
+
top_p: z16.number().min(0).max(1).optional(),
|
|
27246
|
+
prompt: z16.string().optional(),
|
|
27247
|
+
prompt_append: z16.string().optional(),
|
|
27248
|
+
tools: z16.record(z16.string(), z16.boolean()).optional(),
|
|
27249
|
+
disable: z16.boolean().optional(),
|
|
27250
|
+
description: z16.string().optional(),
|
|
27251
|
+
mode: z16.enum(["subagent", "primary", "all"]).optional(),
|
|
27252
|
+
color: z16.string().regex(/^#[0-9A-Fa-f]{6}$/).optional(),
|
|
27253
|
+
displayName: z16.string().optional(),
|
|
27235
27254
|
permission: AgentPermissionSchema.optional(),
|
|
27236
|
-
maxTokens:
|
|
27237
|
-
thinking:
|
|
27238
|
-
type:
|
|
27239
|
-
budgetTokens:
|
|
27255
|
+
maxTokens: z16.number().optional(),
|
|
27256
|
+
thinking: z16.object({
|
|
27257
|
+
type: z16.enum(["enabled", "disabled"]),
|
|
27258
|
+
budgetTokens: z16.number().optional()
|
|
27240
27259
|
}).optional(),
|
|
27241
|
-
reasoningEffort:
|
|
27242
|
-
textVerbosity:
|
|
27243
|
-
providerOptions:
|
|
27244
|
-
ultrawork:
|
|
27245
|
-
model:
|
|
27260
|
+
reasoningEffort: z16.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
27261
|
+
textVerbosity: z16.enum(["low", "medium", "high"]).optional(),
|
|
27262
|
+
providerOptions: z16.record(z16.string(), z16.unknown()).optional(),
|
|
27263
|
+
ultrawork: z16.object({
|
|
27264
|
+
model: z16.string().optional(),
|
|
27246
27265
|
reasoning: OmoReasoningSchema.optional(),
|
|
27247
|
-
variant:
|
|
27266
|
+
variant: z16.string().optional()
|
|
27248
27267
|
}).optional(),
|
|
27249
|
-
compaction:
|
|
27250
|
-
model:
|
|
27268
|
+
compaction: z16.object({
|
|
27269
|
+
model: z16.string().optional(),
|
|
27251
27270
|
reasoning: OmoReasoningSchema.optional(),
|
|
27252
|
-
variant:
|
|
27271
|
+
variant: z16.string().optional()
|
|
27253
27272
|
}).optional()
|
|
27254
27273
|
});
|
|
27255
|
-
var AgentOverridesSchema =
|
|
27274
|
+
var AgentOverridesSchema = z16.object({
|
|
27256
27275
|
build: AgentOverrideConfigSchema.optional(),
|
|
27257
27276
|
plan: AgentOverrideConfigSchema.optional(),
|
|
27258
27277
|
sisyphus: AgentOverrideConfigSchema.optional(),
|
|
27259
27278
|
hephaestus: AgentOverrideConfigSchema.extend({
|
|
27260
|
-
allow_non_gpt_model:
|
|
27279
|
+
allow_non_gpt_model: z16.boolean().optional()
|
|
27261
27280
|
}).optional(),
|
|
27262
27281
|
"sisyphus-junior": AgentOverrideConfigSchema.optional(),
|
|
27263
27282
|
"OpenCode-Builder": AgentOverrideConfigSchema.optional(),
|
|
@@ -27271,72 +27290,72 @@ var AgentOverridesSchema = z15.object({
|
|
|
27271
27290
|
atlas: AgentOverrideConfigSchema.optional()
|
|
27272
27291
|
}).catchall(AgentOverrideConfigSchema.optional());
|
|
27273
27292
|
// packages/omo-opencode/src/config/schema/babysitting.ts
|
|
27274
|
-
import { z as
|
|
27275
|
-
var BabysittingConfigSchema =
|
|
27276
|
-
timeout_ms:
|
|
27293
|
+
import { z as z17 } from "zod";
|
|
27294
|
+
var BabysittingConfigSchema = z17.object({
|
|
27295
|
+
timeout_ms: z17.number().default(120000)
|
|
27277
27296
|
});
|
|
27278
27297
|
// packages/omo-opencode/src/config/schema/background-task.ts
|
|
27279
|
-
import { z as
|
|
27280
|
-
var CircuitBreakerConfigSchema =
|
|
27281
|
-
enabled:
|
|
27282
|
-
maxToolCalls:
|
|
27283
|
-
consecutiveThreshold:
|
|
27298
|
+
import { z as z18 } from "zod";
|
|
27299
|
+
var CircuitBreakerConfigSchema = z18.object({
|
|
27300
|
+
enabled: z18.boolean().optional(),
|
|
27301
|
+
maxToolCalls: z18.number().int().min(10).optional(),
|
|
27302
|
+
consecutiveThreshold: z18.number().int().min(5).optional()
|
|
27284
27303
|
});
|
|
27285
|
-
var BackgroundTaskConfigSchema =
|
|
27286
|
-
defaultConcurrency:
|
|
27287
|
-
providerConcurrency:
|
|
27288
|
-
modelConcurrency:
|
|
27289
|
-
maxDepth:
|
|
27290
|
-
staleTimeoutMs:
|
|
27291
|
-
messageStalenessTimeoutMs:
|
|
27292
|
-
taskTtlMs:
|
|
27293
|
-
sessionGoneTimeoutMs:
|
|
27294
|
-
taskCleanupDelayMs:
|
|
27295
|
-
syncPollTimeoutMs:
|
|
27296
|
-
maxToolCalls:
|
|
27304
|
+
var BackgroundTaskConfigSchema = z18.object({
|
|
27305
|
+
defaultConcurrency: z18.number().min(1).optional(),
|
|
27306
|
+
providerConcurrency: z18.record(z18.string(), z18.number().min(0)).optional(),
|
|
27307
|
+
modelConcurrency: z18.record(z18.string(), z18.number().min(0)).optional(),
|
|
27308
|
+
maxDepth: z18.number().int().min(1).optional(),
|
|
27309
|
+
staleTimeoutMs: z18.number().min(60000).optional(),
|
|
27310
|
+
messageStalenessTimeoutMs: z18.number().min(60000).optional(),
|
|
27311
|
+
taskTtlMs: z18.number().min(300000).optional(),
|
|
27312
|
+
sessionGoneTimeoutMs: z18.number().min(1e4).optional(),
|
|
27313
|
+
taskCleanupDelayMs: z18.number().min(60000).optional(),
|
|
27314
|
+
syncPollTimeoutMs: z18.number().min(60000).optional(),
|
|
27315
|
+
maxToolCalls: z18.number().int().min(10).optional(),
|
|
27297
27316
|
circuitBreaker: CircuitBreakerConfigSchema.optional()
|
|
27298
27317
|
});
|
|
27299
27318
|
// packages/omo-opencode/src/config/schema/browser-automation.ts
|
|
27300
|
-
import { z as
|
|
27301
|
-
var BrowserAutomationProviderSchema =
|
|
27319
|
+
import { z as z19 } from "zod";
|
|
27320
|
+
var BrowserAutomationProviderSchema = z19.enum([
|
|
27302
27321
|
"playwright",
|
|
27303
27322
|
"agent-browser",
|
|
27304
27323
|
"dev-browser",
|
|
27305
27324
|
"playwright-cli"
|
|
27306
27325
|
]);
|
|
27307
|
-
var BrowserAutomationConfigSchema =
|
|
27326
|
+
var BrowserAutomationConfigSchema = z19.object({
|
|
27308
27327
|
provider: BrowserAutomationProviderSchema.default("playwright"),
|
|
27309
|
-
playwright_mcp_args:
|
|
27328
|
+
playwright_mcp_args: z19.array(z19.string()).optional()
|
|
27310
27329
|
});
|
|
27311
27330
|
// packages/omo-opencode/src/config/schema/categories.ts
|
|
27312
27331
|
init_src();
|
|
27313
|
-
import { z as
|
|
27314
|
-
var CategoryConfigSchema =
|
|
27315
|
-
description:
|
|
27316
|
-
model:
|
|
27317
|
-
models:
|
|
27332
|
+
import { z as z20 } from "zod";
|
|
27333
|
+
var CategoryConfigSchema = z20.object({
|
|
27334
|
+
description: z20.string().optional(),
|
|
27335
|
+
model: z20.string().optional(),
|
|
27336
|
+
models: z20.array(z20.union([z20.string(), FallbackModelObjectSchema])).optional(),
|
|
27318
27337
|
fallback_models: FallbackModelsSchema.optional(),
|
|
27319
27338
|
reasoning: OmoReasoningSchema.optional(),
|
|
27320
|
-
variant:
|
|
27321
|
-
temperature:
|
|
27322
|
-
top_p:
|
|
27323
|
-
max_tokens:
|
|
27324
|
-
provider_options:
|
|
27325
|
-
maxTokens:
|
|
27326
|
-
thinking:
|
|
27327
|
-
type:
|
|
27328
|
-
budgetTokens:
|
|
27339
|
+
variant: z20.string().optional(),
|
|
27340
|
+
temperature: z20.number().min(0).max(2).optional(),
|
|
27341
|
+
top_p: z20.number().min(0).max(1).optional(),
|
|
27342
|
+
max_tokens: z20.number().int().positive().optional(),
|
|
27343
|
+
provider_options: z20.record(z20.string(), z20.unknown()).optional(),
|
|
27344
|
+
maxTokens: z20.number().optional(),
|
|
27345
|
+
thinking: z20.object({
|
|
27346
|
+
type: z20.enum(["enabled", "disabled"]),
|
|
27347
|
+
budgetTokens: z20.number().optional()
|
|
27329
27348
|
}).optional(),
|
|
27330
|
-
reasoningEffort:
|
|
27331
|
-
textVerbosity:
|
|
27332
|
-
tools:
|
|
27333
|
-
prompt_append:
|
|
27334
|
-
max_prompt_tokens:
|
|
27335
|
-
is_unstable_agent:
|
|
27336
|
-
disable:
|
|
27337
|
-
warn_unavailable:
|
|
27349
|
+
reasoningEffort: z20.enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
27350
|
+
textVerbosity: z20.enum(["low", "medium", "high"]).optional(),
|
|
27351
|
+
tools: z20.record(z20.string(), z20.boolean()).optional(),
|
|
27352
|
+
prompt_append: z20.string().optional(),
|
|
27353
|
+
max_prompt_tokens: z20.number().int().positive().optional(),
|
|
27354
|
+
is_unstable_agent: z20.boolean().optional(),
|
|
27355
|
+
disable: z20.boolean().optional(),
|
|
27356
|
+
warn_unavailable: z20.boolean().optional()
|
|
27338
27357
|
});
|
|
27339
|
-
var BuiltinCategoryNameSchema =
|
|
27358
|
+
var BuiltinCategoryNameSchema = z20.enum([
|
|
27340
27359
|
"visual-engineering",
|
|
27341
27360
|
"ultrabrain",
|
|
27342
27361
|
"deep",
|
|
@@ -27346,41 +27365,41 @@ var BuiltinCategoryNameSchema = z19.enum([
|
|
|
27346
27365
|
"unspecified-high",
|
|
27347
27366
|
"writing"
|
|
27348
27367
|
]);
|
|
27349
|
-
var CategoriesConfigSchema =
|
|
27368
|
+
var CategoriesConfigSchema = z20.record(z20.string(), CategoryConfigSchema);
|
|
27350
27369
|
// packages/omo-opencode/src/config/schema/claude-code.ts
|
|
27351
|
-
import { z as
|
|
27352
|
-
var ClaudeCodeConfigSchema =
|
|
27353
|
-
mcp:
|
|
27354
|
-
commands:
|
|
27355
|
-
skills:
|
|
27356
|
-
agents:
|
|
27357
|
-
hooks:
|
|
27358
|
-
plugins:
|
|
27359
|
-
plugins_override:
|
|
27360
|
-
anthropic_provider:
|
|
27370
|
+
import { z as z21 } from "zod";
|
|
27371
|
+
var ClaudeCodeConfigSchema = z21.object({
|
|
27372
|
+
mcp: z21.boolean().optional(),
|
|
27373
|
+
commands: z21.boolean().optional(),
|
|
27374
|
+
skills: z21.boolean().optional(),
|
|
27375
|
+
agents: z21.boolean().optional(),
|
|
27376
|
+
hooks: z21.boolean().optional(),
|
|
27377
|
+
plugins: z21.boolean().optional(),
|
|
27378
|
+
plugins_override: z21.record(z21.string(), z21.boolean()).optional(),
|
|
27379
|
+
anthropic_provider: z21.string().trim().min(1).refine((v) => !v.includes("/"), {
|
|
27361
27380
|
message: "anthropic_provider must be a provider name without '/'"
|
|
27362
27381
|
}).optional()
|
|
27363
27382
|
});
|
|
27364
27383
|
// packages/omo-opencode/src/config/schema/codegraph.ts
|
|
27365
|
-
import { z as
|
|
27366
|
-
var CodegraphConfigSchema =
|
|
27367
|
-
auto_init:
|
|
27368
|
-
auto_provision:
|
|
27369
|
-
daemon:
|
|
27370
|
-
enabled:
|
|
27371
|
-
excluded_roots:
|
|
27372
|
-
install_dir:
|
|
27373
|
-
telemetry:
|
|
27374
|
-
watch_debounce_ms:
|
|
27384
|
+
import { z as z22 } from "zod";
|
|
27385
|
+
var CodegraphConfigSchema = z22.object({
|
|
27386
|
+
auto_init: z22.boolean().default(true),
|
|
27387
|
+
auto_provision: z22.boolean().default(true),
|
|
27388
|
+
daemon: z22.boolean().default(true),
|
|
27389
|
+
enabled: z22.boolean().default(true),
|
|
27390
|
+
excluded_roots: z22.array(z22.string()).optional(),
|
|
27391
|
+
install_dir: z22.string().optional(),
|
|
27392
|
+
telemetry: z22.boolean().optional(),
|
|
27393
|
+
watch_debounce_ms: z22.number().nonnegative().optional()
|
|
27375
27394
|
});
|
|
27376
27395
|
// packages/omo-opencode/src/config/schema/comment-checker.ts
|
|
27377
|
-
import { z as
|
|
27378
|
-
var CommentCheckerConfigSchema =
|
|
27379
|
-
custom_prompt:
|
|
27396
|
+
import { z as z23 } from "zod";
|
|
27397
|
+
var CommentCheckerConfigSchema = z23.object({
|
|
27398
|
+
custom_prompt: z23.string().optional()
|
|
27380
27399
|
});
|
|
27381
27400
|
// packages/omo-opencode/src/config/schema/commands.ts
|
|
27382
|
-
import { z as
|
|
27383
|
-
var BuiltinCommandNameSchema =
|
|
27401
|
+
import { z as z24 } from "zod";
|
|
27402
|
+
var BuiltinCommandNameSchema = z24.enum([
|
|
27384
27403
|
"goal",
|
|
27385
27404
|
"refactor",
|
|
27386
27405
|
"start-work",
|
|
@@ -27389,21 +27408,21 @@ var BuiltinCommandNameSchema = z23.enum([
|
|
|
27389
27408
|
"hyperplan"
|
|
27390
27409
|
]);
|
|
27391
27410
|
// packages/omo-opencode/src/config/schema/default-mode.ts
|
|
27392
|
-
import { z as
|
|
27393
|
-
var DefaultModeConfigSchema =
|
|
27394
|
-
ultrawork:
|
|
27395
|
-
goal:
|
|
27411
|
+
import { z as z25 } from "zod";
|
|
27412
|
+
var DefaultModeConfigSchema = z25.object({
|
|
27413
|
+
ultrawork: z25.boolean().default(false),
|
|
27414
|
+
goal: z25.boolean().default(false)
|
|
27396
27415
|
});
|
|
27397
27416
|
// packages/omo-opencode/src/config/schema/dynamic-context-pruning.ts
|
|
27398
|
-
import { z as
|
|
27399
|
-
var DynamicContextPruningConfigSchema =
|
|
27400
|
-
enabled:
|
|
27401
|
-
notification:
|
|
27402
|
-
turn_protection:
|
|
27403
|
-
enabled:
|
|
27404
|
-
turns:
|
|
27417
|
+
import { z as z26 } from "zod";
|
|
27418
|
+
var DynamicContextPruningConfigSchema = z26.object({
|
|
27419
|
+
enabled: z26.boolean().default(false),
|
|
27420
|
+
notification: z26.enum(["off", "minimal", "detailed"]).default("detailed"),
|
|
27421
|
+
turn_protection: z26.object({
|
|
27422
|
+
enabled: z26.boolean().default(true),
|
|
27423
|
+
turns: z26.number().min(1).max(10).default(3)
|
|
27405
27424
|
}).optional(),
|
|
27406
|
-
protected_tools:
|
|
27425
|
+
protected_tools: z26.array(z26.string()).default([
|
|
27407
27426
|
"task",
|
|
27408
27427
|
"todowrite",
|
|
27409
27428
|
"todoread",
|
|
@@ -27412,45 +27431,45 @@ var DynamicContextPruningConfigSchema = z25.object({
|
|
|
27412
27431
|
"session_write",
|
|
27413
27432
|
"session_search"
|
|
27414
27433
|
]),
|
|
27415
|
-
strategies:
|
|
27416
|
-
deduplication:
|
|
27417
|
-
enabled:
|
|
27434
|
+
strategies: z26.object({
|
|
27435
|
+
deduplication: z26.object({
|
|
27436
|
+
enabled: z26.boolean().default(true)
|
|
27418
27437
|
}).optional(),
|
|
27419
|
-
supersede_writes:
|
|
27420
|
-
enabled:
|
|
27421
|
-
aggressive:
|
|
27438
|
+
supersede_writes: z26.object({
|
|
27439
|
+
enabled: z26.boolean().default(true),
|
|
27440
|
+
aggressive: z26.boolean().default(false)
|
|
27422
27441
|
}).optional(),
|
|
27423
|
-
purge_errors:
|
|
27424
|
-
enabled:
|
|
27425
|
-
turns:
|
|
27442
|
+
purge_errors: z26.object({
|
|
27443
|
+
enabled: z26.boolean().default(true),
|
|
27444
|
+
turns: z26.number().min(1).max(20).default(5)
|
|
27426
27445
|
}).optional()
|
|
27427
27446
|
}).optional()
|
|
27428
27447
|
});
|
|
27429
27448
|
// packages/omo-opencode/src/config/schema/experimental.ts
|
|
27430
|
-
import { z as
|
|
27431
|
-
var ExperimentalConfigSchema =
|
|
27432
|
-
aggressive_truncation:
|
|
27433
|
-
preemptive_compaction:
|
|
27434
|
-
truncate_all_tool_outputs:
|
|
27449
|
+
import { z as z27 } from "zod";
|
|
27450
|
+
var ExperimentalConfigSchema = z27.object({
|
|
27451
|
+
aggressive_truncation: z27.boolean().optional(),
|
|
27452
|
+
preemptive_compaction: z27.boolean().optional(),
|
|
27453
|
+
truncate_all_tool_outputs: z27.boolean().optional(),
|
|
27435
27454
|
dynamic_context_pruning: DynamicContextPruningConfigSchema.optional(),
|
|
27436
|
-
task_system:
|
|
27437
|
-
plugin_load_timeout_ms:
|
|
27438
|
-
safe_hook_creation:
|
|
27439
|
-
disable_omo_env:
|
|
27440
|
-
hashline_edit:
|
|
27441
|
-
model_fallback_title:
|
|
27442
|
-
max_tools:
|
|
27443
|
-
disable_live_parent_wake_routing:
|
|
27455
|
+
task_system: z27.boolean().optional(),
|
|
27456
|
+
plugin_load_timeout_ms: z27.number().min(1000).optional(),
|
|
27457
|
+
safe_hook_creation: z27.boolean().optional(),
|
|
27458
|
+
disable_omo_env: z27.boolean().optional(),
|
|
27459
|
+
hashline_edit: z27.boolean().optional(),
|
|
27460
|
+
model_fallback_title: z27.boolean().optional(),
|
|
27461
|
+
max_tools: z27.number().int().min(1).optional(),
|
|
27462
|
+
disable_live_parent_wake_routing: z27.boolean().optional()
|
|
27444
27463
|
});
|
|
27445
27464
|
// packages/omo-opencode/src/config/schema/goal.ts
|
|
27446
|
-
import { z as
|
|
27447
|
-
var GoalConfigSchema =
|
|
27448
|
-
enabled:
|
|
27449
|
-
auto_start:
|
|
27450
|
-
default_max_iterations:
|
|
27465
|
+
import { z as z28 } from "zod";
|
|
27466
|
+
var GoalConfigSchema = z28.object({
|
|
27467
|
+
enabled: z28.boolean().default(false),
|
|
27468
|
+
auto_start: z28.boolean().default(false),
|
|
27469
|
+
default_max_iterations: z28.number().min(1).max(1000).default(100)
|
|
27451
27470
|
});
|
|
27452
27471
|
// packages/skills-loader-core/src/config/git-env-prefix.ts
|
|
27453
|
-
import { z as
|
|
27472
|
+
import { z as z29 } from "zod";
|
|
27454
27473
|
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_-]*)*$/;
|
|
27455
27474
|
var GIT_ENV_PREFIX_VALIDATION_MESSAGE = 'git_env_prefix must be empty or use shell-safe env assignments like "GIT_MASTER=1"';
|
|
27456
27475
|
function isValidGitEnvPrefix(value) {
|
|
@@ -27465,17 +27484,17 @@ function assertValidGitEnvPrefix(value) {
|
|
|
27465
27484
|
}
|
|
27466
27485
|
return value;
|
|
27467
27486
|
}
|
|
27468
|
-
var GitEnvPrefixSchema =
|
|
27487
|
+
var GitEnvPrefixSchema = z29.string().refine(isValidGitEnvPrefix, { message: GIT_ENV_PREFIX_VALIDATION_MESSAGE }).default("GIT_MASTER=1");
|
|
27469
27488
|
// packages/omo-opencode/src/config/schema/git-master.ts
|
|
27470
|
-
import { z as
|
|
27471
|
-
var GitMasterConfigSchema =
|
|
27472
|
-
commit_footer:
|
|
27473
|
-
include_co_authored_by:
|
|
27489
|
+
import { z as z30 } from "zod";
|
|
27490
|
+
var GitMasterConfigSchema = z30.object({
|
|
27491
|
+
commit_footer: z30.union([z30.boolean(), z30.string()]).default(true),
|
|
27492
|
+
include_co_authored_by: z30.boolean().default(true),
|
|
27474
27493
|
git_env_prefix: GitEnvPrefixSchema
|
|
27475
27494
|
});
|
|
27476
27495
|
// packages/omo-opencode/src/config/schema/hooks.ts
|
|
27477
|
-
import { z as
|
|
27478
|
-
var HookNameSchema =
|
|
27496
|
+
import { z as z31 } from "zod";
|
|
27497
|
+
var HookNameSchema = z31.enum([
|
|
27479
27498
|
"todo-continuation-enforcer",
|
|
27480
27499
|
"session-notification",
|
|
27481
27500
|
"comment-checker",
|
|
@@ -27534,240 +27553,240 @@ var HookNameSchema = z30.enum([
|
|
|
27534
27553
|
"legacy-plugin-toast"
|
|
27535
27554
|
]);
|
|
27536
27555
|
// packages/omo-opencode/src/config/schema/i18n.ts
|
|
27537
|
-
import { z as
|
|
27538
|
-
var I18nConfigSchema =
|
|
27539
|
-
locale:
|
|
27556
|
+
import { z as z32 } from "zod";
|
|
27557
|
+
var I18nConfigSchema = z32.object({
|
|
27558
|
+
locale: z32.string().optional()
|
|
27540
27559
|
});
|
|
27541
27560
|
// packages/omo-opencode/src/config/schema/keyword-detector.ts
|
|
27542
|
-
import { z as
|
|
27543
|
-
var KeywordTypeSchema =
|
|
27544
|
-
var KeywordDetectorConfigSchema =
|
|
27545
|
-
enabled_expansions:
|
|
27546
|
-
disabled_keywords:
|
|
27561
|
+
import { z as z33 } from "zod";
|
|
27562
|
+
var KeywordTypeSchema = z33.enum(["ultrawork", "team", "hyperplan", "hyperplan-ultrawork"]);
|
|
27563
|
+
var KeywordDetectorConfigSchema = z33.object({
|
|
27564
|
+
enabled_expansions: z33.array(KeywordTypeSchema).optional(),
|
|
27565
|
+
disabled_keywords: z33.array(KeywordTypeSchema).optional()
|
|
27547
27566
|
});
|
|
27548
27567
|
// packages/omo-opencode/src/config/schema/model-capabilities.ts
|
|
27549
|
-
import { z as
|
|
27550
|
-
var ModelCapabilitiesConfigSchema =
|
|
27551
|
-
enabled:
|
|
27552
|
-
auto_refresh_on_start:
|
|
27553
|
-
refresh_timeout_ms:
|
|
27554
|
-
source_url:
|
|
27568
|
+
import { z as z34 } from "zod";
|
|
27569
|
+
var ModelCapabilitiesConfigSchema = z34.object({
|
|
27570
|
+
enabled: z34.boolean().optional(),
|
|
27571
|
+
auto_refresh_on_start: z34.boolean().optional(),
|
|
27572
|
+
refresh_timeout_ms: z34.number().int().positive().optional(),
|
|
27573
|
+
source_url: z34.string().url().optional()
|
|
27555
27574
|
});
|
|
27556
27575
|
// packages/omo-opencode/src/config/schema/notification.ts
|
|
27557
|
-
import { z as
|
|
27558
|
-
var NotificationConfigSchema =
|
|
27559
|
-
force_enable:
|
|
27576
|
+
import { z as z35 } from "zod";
|
|
27577
|
+
var NotificationConfigSchema = z35.object({
|
|
27578
|
+
force_enable: z35.boolean().optional()
|
|
27560
27579
|
});
|
|
27561
27580
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
27562
|
-
import { z as
|
|
27581
|
+
import { z as z49 } from "zod";
|
|
27563
27582
|
|
|
27564
27583
|
// packages/omo-opencode/src/mcp/types.ts
|
|
27565
|
-
import { z as
|
|
27566
|
-
var McpNameSchema =
|
|
27567
|
-
var AnyMcpNameSchema =
|
|
27584
|
+
import { z as z36 } from "zod";
|
|
27585
|
+
var McpNameSchema = z36.enum(["websearch", "context7", "grep_app", "lsp", "codegraph"]);
|
|
27586
|
+
var AnyMcpNameSchema = z36.string().min(1);
|
|
27568
27587
|
|
|
27569
27588
|
// packages/omo-opencode/src/config/schema/agent-definitions.ts
|
|
27570
|
-
import { z as
|
|
27571
|
-
var AgentDefinitionPathSchema =
|
|
27572
|
-
var AgentDefinitionsConfigSchema =
|
|
27589
|
+
import { z as z37 } from "zod";
|
|
27590
|
+
var AgentDefinitionPathSchema = z37.string().min(1);
|
|
27591
|
+
var AgentDefinitionsConfigSchema = z37.array(AgentDefinitionPathSchema).optional();
|
|
27573
27592
|
|
|
27574
27593
|
// packages/omo-opencode/src/config/schema/openclaw.ts
|
|
27575
|
-
import { z as
|
|
27576
|
-
var OpenClawGatewaySchema =
|
|
27577
|
-
type:
|
|
27578
|
-
url:
|
|
27579
|
-
method:
|
|
27580
|
-
headers:
|
|
27581
|
-
command:
|
|
27582
|
-
timeout:
|
|
27594
|
+
import { z as z38 } from "zod";
|
|
27595
|
+
var OpenClawGatewaySchema = z38.object({
|
|
27596
|
+
type: z38.enum(["http", "command"]).default("http"),
|
|
27597
|
+
url: z38.string().optional(),
|
|
27598
|
+
method: z38.string().default("POST"),
|
|
27599
|
+
headers: z38.record(z38.string(), z38.string()).optional(),
|
|
27600
|
+
command: z38.string().optional(),
|
|
27601
|
+
timeout: z38.number().optional()
|
|
27583
27602
|
});
|
|
27584
|
-
var OpenClawHookSchema =
|
|
27585
|
-
enabled:
|
|
27586
|
-
gateway:
|
|
27587
|
-
instruction:
|
|
27603
|
+
var OpenClawHookSchema = z38.object({
|
|
27604
|
+
enabled: z38.boolean().default(true),
|
|
27605
|
+
gateway: z38.string(),
|
|
27606
|
+
instruction: z38.string()
|
|
27588
27607
|
});
|
|
27589
|
-
var OpenClawReplyListenerConfigSchema =
|
|
27590
|
-
discordBotToken:
|
|
27591
|
-
discordChannelId:
|
|
27592
|
-
discordMention:
|
|
27593
|
-
authorizedDiscordUserIds:
|
|
27594
|
-
telegramBotToken:
|
|
27595
|
-
telegramChatId:
|
|
27596
|
-
pollIntervalMs:
|
|
27597
|
-
rateLimitPerMinute:
|
|
27598
|
-
maxMessageLength:
|
|
27599
|
-
includePrefix:
|
|
27608
|
+
var OpenClawReplyListenerConfigSchema = z38.object({
|
|
27609
|
+
discordBotToken: z38.string().optional(),
|
|
27610
|
+
discordChannelId: z38.string().optional(),
|
|
27611
|
+
discordMention: z38.string().optional(),
|
|
27612
|
+
authorizedDiscordUserIds: z38.array(z38.string()).default([]),
|
|
27613
|
+
telegramBotToken: z38.string().optional(),
|
|
27614
|
+
telegramChatId: z38.string().optional(),
|
|
27615
|
+
pollIntervalMs: z38.number().default(3000),
|
|
27616
|
+
rateLimitPerMinute: z38.number().default(10),
|
|
27617
|
+
maxMessageLength: z38.number().default(500),
|
|
27618
|
+
includePrefix: z38.boolean().default(true)
|
|
27600
27619
|
});
|
|
27601
|
-
var OpenClawConfigSchema =
|
|
27602
|
-
enabled:
|
|
27603
|
-
gateways:
|
|
27604
|
-
hooks:
|
|
27620
|
+
var OpenClawConfigSchema = z38.object({
|
|
27621
|
+
enabled: z38.boolean().default(false),
|
|
27622
|
+
gateways: z38.record(z38.string(), OpenClawGatewaySchema).default({}),
|
|
27623
|
+
hooks: z38.record(z38.string(), OpenClawHookSchema).default({}),
|
|
27605
27624
|
replyListener: OpenClawReplyListenerConfigSchema.optional()
|
|
27606
27625
|
});
|
|
27607
27626
|
|
|
27608
27627
|
// packages/omo-opencode/src/config/schema/monitor.ts
|
|
27609
|
-
import { z as
|
|
27610
|
-
var MonitorConfigSchema =
|
|
27611
|
-
enabled:
|
|
27612
|
-
live_mode_enabled:
|
|
27613
|
-
allowed_commands:
|
|
27614
|
-
max_monitors_per_session:
|
|
27615
|
-
max_runtime_ms:
|
|
27616
|
-
batch_max_lines:
|
|
27617
|
-
batch_max_bytes:
|
|
27618
|
-
flush_interval_ms:
|
|
27619
|
-
ring_max_lines:
|
|
27620
|
-
line_max_bytes:
|
|
27621
|
-
pattern_max_length:
|
|
27628
|
+
import { z as z39 } from "zod";
|
|
27629
|
+
var MonitorConfigSchema = z39.object({
|
|
27630
|
+
enabled: z39.boolean().default(false),
|
|
27631
|
+
live_mode_enabled: z39.boolean().default(false),
|
|
27632
|
+
allowed_commands: z39.array(z39.string()).optional(),
|
|
27633
|
+
max_monitors_per_session: z39.number().int().min(1).max(16).default(3),
|
|
27634
|
+
max_runtime_ms: z39.number().int().min(1000).default(1800000),
|
|
27635
|
+
batch_max_lines: z39.number().int().min(1).default(50),
|
|
27636
|
+
batch_max_bytes: z39.number().int().min(1024).default(16384),
|
|
27637
|
+
flush_interval_ms: z39.number().int().min(250).default(1000),
|
|
27638
|
+
ring_max_lines: z39.number().int().min(1).default(1000),
|
|
27639
|
+
line_max_bytes: z39.number().int().min(256).default(8192),
|
|
27640
|
+
pattern_max_length: z39.number().int().min(1).default(512)
|
|
27622
27641
|
});
|
|
27623
27642
|
|
|
27624
27643
|
// packages/omo-opencode/src/config/schema/runtime-fallback.ts
|
|
27625
|
-
import { z as
|
|
27626
|
-
var RuntimeFallbackConfigSchema =
|
|
27627
|
-
enabled:
|
|
27628
|
-
retry_on_errors:
|
|
27629
|
-
max_fallback_attempts:
|
|
27630
|
-
cooldown_seconds:
|
|
27631
|
-
timeout_seconds:
|
|
27632
|
-
notify_on_fallback:
|
|
27633
|
-
restore_primary_after_cooldown:
|
|
27644
|
+
import { z as z40 } from "zod";
|
|
27645
|
+
var RuntimeFallbackConfigSchema = z40.object({
|
|
27646
|
+
enabled: z40.boolean().optional(),
|
|
27647
|
+
retry_on_errors: z40.array(z40.number()).optional(),
|
|
27648
|
+
max_fallback_attempts: z40.number().min(1).max(20).optional(),
|
|
27649
|
+
cooldown_seconds: z40.number().min(0).optional(),
|
|
27650
|
+
timeout_seconds: z40.number().min(0).optional(),
|
|
27651
|
+
notify_on_fallback: z40.boolean().optional(),
|
|
27652
|
+
restore_primary_after_cooldown: z40.boolean().optional()
|
|
27634
27653
|
});
|
|
27635
27654
|
|
|
27636
27655
|
// packages/team-core/src/config.ts
|
|
27637
|
-
import * as
|
|
27638
|
-
var TeamModeConfigSchema =
|
|
27639
|
-
enabled:
|
|
27640
|
-
tmux_visualization:
|
|
27641
|
-
max_parallel_members:
|
|
27642
|
-
max_members:
|
|
27643
|
-
max_messages_per_run:
|
|
27644
|
-
max_wall_clock_minutes:
|
|
27645
|
-
max_member_turns:
|
|
27646
|
-
base_dir:
|
|
27647
|
-
message_payload_max_bytes:
|
|
27648
|
-
recipient_unread_max_bytes:
|
|
27649
|
-
mailbox_poll_interval_ms:
|
|
27656
|
+
import * as z41 from "zod";
|
|
27657
|
+
var TeamModeConfigSchema = z41.object({
|
|
27658
|
+
enabled: z41.boolean().default(false),
|
|
27659
|
+
tmux_visualization: z41.boolean().default(false),
|
|
27660
|
+
max_parallel_members: z41.number().int().min(1).max(8).default(4),
|
|
27661
|
+
max_members: z41.number().int().min(1).max(8).default(8),
|
|
27662
|
+
max_messages_per_run: z41.number().int().min(1).default(1e4),
|
|
27663
|
+
max_wall_clock_minutes: z41.number().int().min(1).default(120),
|
|
27664
|
+
max_member_turns: z41.number().int().min(1).default(500),
|
|
27665
|
+
base_dir: z41.string().optional(),
|
|
27666
|
+
message_payload_max_bytes: z41.number().int().min(1024).default(32768),
|
|
27667
|
+
recipient_unread_max_bytes: z41.number().int().min(1024).default(262144),
|
|
27668
|
+
mailbox_poll_interval_ms: z41.number().int().min(500).default(3000)
|
|
27650
27669
|
});
|
|
27651
27670
|
// packages/omo-opencode/src/config/schema/skills.ts
|
|
27652
|
-
import { z as
|
|
27653
|
-
var SkillSourceSchema =
|
|
27654
|
-
|
|
27655
|
-
|
|
27656
|
-
path:
|
|
27657
|
-
recursive:
|
|
27658
|
-
glob:
|
|
27671
|
+
import { z as z42 } from "zod";
|
|
27672
|
+
var SkillSourceSchema = z42.union([
|
|
27673
|
+
z42.string(),
|
|
27674
|
+
z42.object({
|
|
27675
|
+
path: z42.string(),
|
|
27676
|
+
recursive: z42.boolean().optional(),
|
|
27677
|
+
glob: z42.string().optional()
|
|
27659
27678
|
})
|
|
27660
27679
|
]);
|
|
27661
|
-
var SkillDefinitionSchema =
|
|
27662
|
-
description:
|
|
27663
|
-
template:
|
|
27664
|
-
from:
|
|
27665
|
-
model:
|
|
27666
|
-
agent:
|
|
27667
|
-
subtask:
|
|
27668
|
-
"argument-hint":
|
|
27669
|
-
license:
|
|
27670
|
-
compatibility:
|
|
27671
|
-
metadata:
|
|
27672
|
-
"allowed-tools":
|
|
27673
|
-
disable:
|
|
27680
|
+
var SkillDefinitionSchema = z42.object({
|
|
27681
|
+
description: z42.string().optional(),
|
|
27682
|
+
template: z42.string().optional(),
|
|
27683
|
+
from: z42.string().optional(),
|
|
27684
|
+
model: z42.string().optional(),
|
|
27685
|
+
agent: z42.string().optional(),
|
|
27686
|
+
subtask: z42.boolean().optional(),
|
|
27687
|
+
"argument-hint": z42.string().optional(),
|
|
27688
|
+
license: z42.string().optional(),
|
|
27689
|
+
compatibility: z42.string().optional(),
|
|
27690
|
+
metadata: z42.record(z42.string(), z42.unknown()).optional(),
|
|
27691
|
+
"allowed-tools": z42.array(z42.string()).optional(),
|
|
27692
|
+
disable: z42.boolean().optional()
|
|
27674
27693
|
});
|
|
27675
|
-
var SkillEntrySchema =
|
|
27676
|
-
var SkillsConfigSchema =
|
|
27677
|
-
|
|
27678
|
-
|
|
27679
|
-
sources:
|
|
27680
|
-
enable:
|
|
27681
|
-
disable:
|
|
27694
|
+
var SkillEntrySchema = z42.union([z42.boolean(), SkillDefinitionSchema]);
|
|
27695
|
+
var SkillsConfigSchema = z42.union([
|
|
27696
|
+
z42.array(z42.string()),
|
|
27697
|
+
z42.object({
|
|
27698
|
+
sources: z42.array(SkillSourceSchema).optional(),
|
|
27699
|
+
enable: z42.array(z42.string()).optional(),
|
|
27700
|
+
disable: z42.array(z42.string()).optional()
|
|
27682
27701
|
}).catchall(SkillEntrySchema)
|
|
27683
27702
|
]);
|
|
27684
27703
|
|
|
27685
27704
|
// packages/omo-opencode/src/config/schema/sisyphus.ts
|
|
27686
|
-
import { z as
|
|
27687
|
-
var SisyphusTasksConfigSchema =
|
|
27688
|
-
storage_path:
|
|
27689
|
-
task_list_id:
|
|
27690
|
-
claude_code_compat:
|
|
27705
|
+
import { z as z43 } from "zod";
|
|
27706
|
+
var SisyphusTasksConfigSchema = z43.object({
|
|
27707
|
+
storage_path: z43.string().optional(),
|
|
27708
|
+
task_list_id: z43.string().optional(),
|
|
27709
|
+
claude_code_compat: z43.boolean().default(false)
|
|
27691
27710
|
});
|
|
27692
|
-
var SisyphusConfigSchema =
|
|
27711
|
+
var SisyphusConfigSchema = z43.object({
|
|
27693
27712
|
tasks: SisyphusTasksConfigSchema.optional()
|
|
27694
27713
|
});
|
|
27695
27714
|
|
|
27696
27715
|
// packages/omo-opencode/src/config/schema/sisyphus-agent.ts
|
|
27697
|
-
import { z as
|
|
27698
|
-
var SisyphusAgentConfigSchema =
|
|
27699
|
-
disabled:
|
|
27700
|
-
default_builder_enabled:
|
|
27701
|
-
planner_enabled:
|
|
27702
|
-
replace_plan:
|
|
27703
|
-
tdd:
|
|
27716
|
+
import { z as z44 } from "zod";
|
|
27717
|
+
var SisyphusAgentConfigSchema = z44.object({
|
|
27718
|
+
disabled: z44.boolean().optional(),
|
|
27719
|
+
default_builder_enabled: z44.boolean().optional(),
|
|
27720
|
+
planner_enabled: z44.boolean().optional(),
|
|
27721
|
+
replace_plan: z44.boolean().optional(),
|
|
27722
|
+
tdd: z44.boolean().default(true).optional()
|
|
27704
27723
|
});
|
|
27705
27724
|
|
|
27706
27725
|
// packages/omo-opencode/src/config/schema/tmux.ts
|
|
27707
27726
|
init_src3();
|
|
27708
|
-
import { z as
|
|
27709
|
-
var TmuxLayoutSchema =
|
|
27710
|
-
var TmuxIsolationSchema =
|
|
27711
|
-
var TmuxConfigSchema =
|
|
27712
|
-
enabled:
|
|
27727
|
+
import { z as z45 } from "zod";
|
|
27728
|
+
var TmuxLayoutSchema = z45.enum(TMUX_LAYOUT_VALUES);
|
|
27729
|
+
var TmuxIsolationSchema = z45.enum(TMUX_ISOLATION_VALUES);
|
|
27730
|
+
var TmuxConfigSchema = z45.object({
|
|
27731
|
+
enabled: z45.boolean().default(false),
|
|
27713
27732
|
layout: TmuxLayoutSchema.default("main-vertical"),
|
|
27714
|
-
main_pane_size:
|
|
27715
|
-
main_pane_min_width:
|
|
27716
|
-
agent_pane_min_width:
|
|
27733
|
+
main_pane_size: z45.number().min(20).max(80).default(60),
|
|
27734
|
+
main_pane_min_width: z45.number().min(40).default(120),
|
|
27735
|
+
agent_pane_min_width: z45.number().min(20).default(40),
|
|
27717
27736
|
isolation: TmuxIsolationSchema.default("inline")
|
|
27718
27737
|
});
|
|
27719
27738
|
|
|
27720
27739
|
// packages/omo-opencode/src/config/schema/tui.ts
|
|
27721
|
-
import { z as
|
|
27722
|
-
var TuiSidebarConfigSchema =
|
|
27723
|
-
enabled:
|
|
27740
|
+
import { z as z46 } from "zod";
|
|
27741
|
+
var TuiSidebarConfigSchema = z46.object({
|
|
27742
|
+
enabled: z46.boolean().default(true)
|
|
27724
27743
|
});
|
|
27725
|
-
var TuiConfigSchema =
|
|
27744
|
+
var TuiConfigSchema = z46.object({
|
|
27726
27745
|
sidebar: TuiSidebarConfigSchema.default({ enabled: true })
|
|
27727
27746
|
});
|
|
27728
27747
|
|
|
27729
27748
|
// packages/omo-opencode/src/config/schema/start-work.ts
|
|
27730
|
-
import { z as
|
|
27731
|
-
var StartWorkConfigSchema =
|
|
27732
|
-
auto_commit:
|
|
27749
|
+
import { z as z47 } from "zod";
|
|
27750
|
+
var StartWorkConfigSchema = z47.object({
|
|
27751
|
+
auto_commit: z47.boolean().default(true)
|
|
27733
27752
|
});
|
|
27734
27753
|
|
|
27735
27754
|
// packages/omo-opencode/src/config/schema/websearch.ts
|
|
27736
|
-
import { z as
|
|
27737
|
-
var WebsearchProviderSchema =
|
|
27738
|
-
var WebsearchConfigSchema =
|
|
27755
|
+
import { z as z48 } from "zod";
|
|
27756
|
+
var WebsearchProviderSchema = z48.enum(["exa", "tavily"]);
|
|
27757
|
+
var WebsearchConfigSchema = z48.object({
|
|
27739
27758
|
provider: WebsearchProviderSchema.optional()
|
|
27740
27759
|
});
|
|
27741
27760
|
|
|
27742
27761
|
// packages/omo-opencode/src/config/schema/oh-my-opencode-config.ts
|
|
27743
|
-
var OhMyOpenCodeConfigSchema =
|
|
27744
|
-
$schema:
|
|
27745
|
-
new_task_system_enabled:
|
|
27746
|
-
default_run_agent:
|
|
27747
|
-
agent_order:
|
|
27762
|
+
var OhMyOpenCodeConfigSchema = z49.object({
|
|
27763
|
+
$schema: z49.string().optional(),
|
|
27764
|
+
new_task_system_enabled: z49.boolean().optional(),
|
|
27765
|
+
default_run_agent: z49.string().optional(),
|
|
27766
|
+
agent_order: z49.array(z49.string().max(128)).max(64).optional(),
|
|
27748
27767
|
agent_definitions: AgentDefinitionsConfigSchema,
|
|
27749
|
-
disabled_mcps:
|
|
27750
|
-
disabled_agents:
|
|
27751
|
-
disabled_skills:
|
|
27752
|
-
disabled_hooks:
|
|
27753
|
-
disabled_commands:
|
|
27754
|
-
disabled_tools:
|
|
27755
|
-
disabled_providers:
|
|
27756
|
-
mcp_env_allowlist:
|
|
27757
|
-
hashline_edit:
|
|
27758
|
-
telemetry:
|
|
27759
|
-
model_fallback:
|
|
27768
|
+
disabled_mcps: z49.array(AnyMcpNameSchema).optional(),
|
|
27769
|
+
disabled_agents: z49.array(z49.string()).optional(),
|
|
27770
|
+
disabled_skills: z49.array(z49.string()).optional(),
|
|
27771
|
+
disabled_hooks: z49.array(z49.string()).optional(),
|
|
27772
|
+
disabled_commands: z49.array(BuiltinCommandNameSchema).optional(),
|
|
27773
|
+
disabled_tools: z49.array(z49.string()).optional(),
|
|
27774
|
+
disabled_providers: z49.array(z49.string()).optional(),
|
|
27775
|
+
mcp_env_allowlist: z49.array(z49.string()).optional(),
|
|
27776
|
+
hashline_edit: z49.boolean().optional(),
|
|
27777
|
+
telemetry: z49.boolean().optional().describe("Enable or disable anonymous telemetry. Default: enabled when omitted. Set to false to disable. Independent of codegraph.telemetry."),
|
|
27778
|
+
model_fallback: z49.boolean().optional(),
|
|
27760
27779
|
agents: AgentOverridesSchema.optional(),
|
|
27761
27780
|
categories: CategoriesConfigSchema.optional(),
|
|
27762
27781
|
claude_code: ClaudeCodeConfigSchema.optional(),
|
|
27763
27782
|
sisyphus_agent: SisyphusAgentConfigSchema.optional(),
|
|
27764
27783
|
comment_checker: CommentCheckerConfigSchema.optional(),
|
|
27765
27784
|
experimental: ExperimentalConfigSchema.optional(),
|
|
27766
|
-
auto_update:
|
|
27785
|
+
auto_update: z49.boolean().optional(),
|
|
27767
27786
|
skills: SkillsConfigSchema.optional(),
|
|
27768
27787
|
goal: GoalConfigSchema.optional(),
|
|
27769
|
-
ralph_loop:
|
|
27770
|
-
runtime_fallback:
|
|
27788
|
+
ralph_loop: z49.record(z49.string(), z49.unknown()).optional(),
|
|
27789
|
+
runtime_fallback: z49.union([z49.boolean(), RuntimeFallbackConfigSchema]).optional(),
|
|
27771
27790
|
background_task: BackgroundTaskConfigSchema.optional(),
|
|
27772
27791
|
notification: NotificationConfigSchema.optional(),
|
|
27773
27792
|
model_capabilities: ModelCapabilitiesConfigSchema.optional(),
|
|
@@ -27790,7 +27809,7 @@ var OhMyOpenCodeConfigSchema = z48.object({
|
|
|
27790
27809
|
sisyphus: SisyphusConfigSchema.optional(),
|
|
27791
27810
|
start_work: StartWorkConfigSchema.optional(),
|
|
27792
27811
|
default_mode: DefaultModeConfigSchema.optional(),
|
|
27793
|
-
_migrations:
|
|
27812
|
+
_migrations: z49.array(z49.string()).optional()
|
|
27794
27813
|
});
|
|
27795
27814
|
// packages/omo-opencode/src/config/validate.ts
|
|
27796
27815
|
function shortPath(configPath) {
|
|
@@ -85415,7 +85434,7 @@ var getUrl = ({ baseUrl, path: path7, query, querySerializer, url: _url }) => {
|
|
|
85415
85434
|
};
|
|
85416
85435
|
|
|
85417
85436
|
// node_modules/.bun/@opencode-ai+sdk@1.15.13/node_modules/@opencode-ai/sdk/dist/gen/client/utils.gen.js
|
|
85418
|
-
var createQuerySerializer = ({ allowReserved, array: array7, object:
|
|
85437
|
+
var createQuerySerializer = ({ allowReserved, array: array7, object: object13 } = {}) => {
|
|
85419
85438
|
const querySerializer = (queryParams) => {
|
|
85420
85439
|
const search = [];
|
|
85421
85440
|
if (queryParams && typeof queryParams === "object") {
|
|
@@ -85442,7 +85461,7 @@ var createQuerySerializer = ({ allowReserved, array: array7, object: object12 }
|
|
|
85442
85461
|
name,
|
|
85443
85462
|
style: "deepObject",
|
|
85444
85463
|
value,
|
|
85445
|
-
...
|
|
85464
|
+
...object13
|
|
85446
85465
|
});
|
|
85447
85466
|
if (serializedObject)
|
|
85448
85467
|
search.push(serializedObject);
|
|
@@ -98552,7 +98571,7 @@ function getCachedVersion(options = {}) {
|
|
|
98552
98571
|
// package.json
|
|
98553
98572
|
var package_default = {
|
|
98554
98573
|
name: "oh-my-opencode",
|
|
98555
|
-
version: "5.0.0-beta.
|
|
98574
|
+
version: "5.0.0-beta.6",
|
|
98556
98575
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
98557
98576
|
main: "./dist/index.js",
|
|
98558
98577
|
types: "dist/index.d.ts",
|
|
@@ -98732,7 +98751,7 @@ var package_default = {
|
|
|
98732
98751
|
zod: "^4.4.3"
|
|
98733
98752
|
},
|
|
98734
98753
|
devDependencies: {
|
|
98735
|
-
"@code-yeongyu/senpi": "2026.8.11",
|
|
98754
|
+
"@code-yeongyu/senpi": "2026.8.11-4",
|
|
98736
98755
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
98737
98756
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
98738
98757
|
"@oh-my-opencode/boulder-state": "workspace:*",
|
|
@@ -98748,6 +98767,7 @@ var package_default = {
|
|
|
98748
98767
|
"@oh-my-opencode/model-core": "workspace:*",
|
|
98749
98768
|
"@oh-my-opencode/omo-codex": "workspace:*",
|
|
98750
98769
|
"@oh-my-opencode/omo-config-core": "workspace:*",
|
|
98770
|
+
"@oh-my-opencode/omo-opencode": "workspace:*",
|
|
98751
98771
|
"@oh-my-opencode/omo-senpi": "workspace:*",
|
|
98752
98772
|
"@oh-my-opencode/openclaw-core": "workspace:*",
|
|
98753
98773
|
"@oh-my-opencode/pi-goal": "workspace:*",
|
|
@@ -98772,18 +98792,18 @@ var package_default = {
|
|
|
98772
98792
|
typescript: "^7.0.2"
|
|
98773
98793
|
},
|
|
98774
98794
|
optionalDependencies: {
|
|
98775
|
-
"oh-my-opencode-darwin-arm64": "5.0.0-beta.
|
|
98776
|
-
"oh-my-opencode-darwin-x64": "5.0.0-beta.
|
|
98777
|
-
"oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.
|
|
98778
|
-
"oh-my-opencode-linux-arm64": "5.0.0-beta.
|
|
98779
|
-
"oh-my-opencode-linux-arm64-musl": "5.0.0-beta.
|
|
98780
|
-
"oh-my-opencode-linux-x64": "5.0.0-beta.
|
|
98781
|
-
"oh-my-opencode-linux-x64-baseline": "5.0.0-beta.
|
|
98782
|
-
"oh-my-opencode-linux-x64-musl": "5.0.0-beta.
|
|
98783
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.
|
|
98784
|
-
"oh-my-opencode-windows-arm64": "5.0.0-beta.
|
|
98785
|
-
"oh-my-opencode-windows-x64": "5.0.0-beta.
|
|
98786
|
-
"oh-my-opencode-windows-x64-baseline": "5.0.0-beta.
|
|
98795
|
+
"oh-my-opencode-darwin-arm64": "5.0.0-beta.6",
|
|
98796
|
+
"oh-my-opencode-darwin-x64": "5.0.0-beta.6",
|
|
98797
|
+
"oh-my-opencode-darwin-x64-baseline": "5.0.0-beta.6",
|
|
98798
|
+
"oh-my-opencode-linux-arm64": "5.0.0-beta.6",
|
|
98799
|
+
"oh-my-opencode-linux-arm64-musl": "5.0.0-beta.6",
|
|
98800
|
+
"oh-my-opencode-linux-x64": "5.0.0-beta.6",
|
|
98801
|
+
"oh-my-opencode-linux-x64-baseline": "5.0.0-beta.6",
|
|
98802
|
+
"oh-my-opencode-linux-x64-musl": "5.0.0-beta.6",
|
|
98803
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.0.0-beta.6",
|
|
98804
|
+
"oh-my-opencode-windows-arm64": "5.0.0-beta.6",
|
|
98805
|
+
"oh-my-opencode-windows-x64": "5.0.0-beta.6",
|
|
98806
|
+
"oh-my-opencode-windows-x64-baseline": "5.0.0-beta.6"
|
|
98787
98807
|
},
|
|
98788
98808
|
overrides: {
|
|
98789
98809
|
"@earendil-works/pi-agent-core": "0.80.3",
|
|
@@ -107439,35 +107459,35 @@ import { mkdirSync as mkdirSync19, readFileSync as readFileSync49, renameSync as
|
|
|
107439
107459
|
import { join as join95 } from "path";
|
|
107440
107460
|
|
|
107441
107461
|
// packages/omo-opencode/src/hooks/goal/types.ts
|
|
107442
|
-
import { z as
|
|
107462
|
+
import { z as z51 } from "zod";
|
|
107443
107463
|
var GOAL_STATUS_VALUES = ["active", "paused", "complete"];
|
|
107444
|
-
var GoalStatusSchema =
|
|
107445
|
-
var GoalSchema =
|
|
107446
|
-
id:
|
|
107447
|
-
sessionID:
|
|
107448
|
-
objective:
|
|
107464
|
+
var GoalStatusSchema = z51.enum(GOAL_STATUS_VALUES);
|
|
107465
|
+
var GoalSchema = z51.object({
|
|
107466
|
+
id: z51.string(),
|
|
107467
|
+
sessionID: z51.string(),
|
|
107468
|
+
objective: z51.string(),
|
|
107449
107469
|
status: GoalStatusSchema,
|
|
107450
|
-
tokensUsed:
|
|
107451
|
-
timeUsedSeconds:
|
|
107452
|
-
createdAt:
|
|
107453
|
-
updatedAt:
|
|
107454
|
-
lastStartedAt:
|
|
107455
|
-
completedAt:
|
|
107470
|
+
tokensUsed: z51.number().int().nonnegative(),
|
|
107471
|
+
timeUsedSeconds: z51.number().int().nonnegative(),
|
|
107472
|
+
createdAt: z51.number().int().nonnegative(),
|
|
107473
|
+
updatedAt: z51.number().int().nonnegative(),
|
|
107474
|
+
lastStartedAt: z51.number().int().nonnegative().optional(),
|
|
107475
|
+
completedAt: z51.number().int().nonnegative().optional()
|
|
107456
107476
|
});
|
|
107457
|
-
var GoalFileSchema =
|
|
107458
|
-
version:
|
|
107477
|
+
var GoalFileSchema = z51.object({
|
|
107478
|
+
version: z51.literal(1),
|
|
107459
107479
|
goal: GoalSchema.nullable()
|
|
107460
107480
|
});
|
|
107461
|
-
var GoalToolSnapshotSchema =
|
|
107462
|
-
sessionID:
|
|
107463
|
-
objective:
|
|
107481
|
+
var GoalToolSnapshotSchema = z51.object({
|
|
107482
|
+
sessionID: z51.string(),
|
|
107483
|
+
objective: z51.string(),
|
|
107464
107484
|
status: GoalStatusSchema,
|
|
107465
|
-
tokensUsed:
|
|
107466
|
-
timeUsedSeconds:
|
|
107467
|
-
createdAt:
|
|
107468
|
-
updatedAt:
|
|
107485
|
+
tokensUsed: z51.number().int().nonnegative(),
|
|
107486
|
+
timeUsedSeconds: z51.number().int().nonnegative(),
|
|
107487
|
+
createdAt: z51.number().int().nonnegative(),
|
|
107488
|
+
updatedAt: z51.number().int().nonnegative()
|
|
107469
107489
|
});
|
|
107470
|
-
var GoalToolResponseSchema =
|
|
107490
|
+
var GoalToolResponseSchema = z51.object({
|
|
107471
107491
|
goal: GoalToolSnapshotSchema.nullable()
|
|
107472
107492
|
});
|
|
107473
107493
|
|
|
@@ -124674,11 +124694,11 @@ function createMonitorStatusInjectorHook(monitorManager, config3) {
|
|
|
124674
124694
|
import { resolve as resolve34 } from "path";
|
|
124675
124695
|
|
|
124676
124696
|
// node_modules/.bun/@opencode-ai+plugin@1.15.13+e69f701e64847596/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
124677
|
-
import { z as
|
|
124697
|
+
import { z as z52 } from "zod";
|
|
124678
124698
|
function tool(input) {
|
|
124679
124699
|
return input;
|
|
124680
124700
|
}
|
|
124681
|
-
tool.schema =
|
|
124701
|
+
tool.schema = z52;
|
|
124682
124702
|
|
|
124683
124703
|
// packages/omo-opencode/src/shared/ripgrep-cli.ts
|
|
124684
124704
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
@@ -133632,55 +133652,55 @@ function isExplicitSyncRun(runInBackground) {
|
|
|
133632
133652
|
import { join as join127 } from "path";
|
|
133633
133653
|
|
|
133634
133654
|
// packages/omo-opencode/src/tools/task/types.ts
|
|
133635
|
-
import { z as
|
|
133636
|
-
var TaskStatusSchema =
|
|
133637
|
-
var TaskObjectSchema =
|
|
133638
|
-
id:
|
|
133639
|
-
subject:
|
|
133640
|
-
description:
|
|
133655
|
+
import { z as z53 } from "zod";
|
|
133656
|
+
var TaskStatusSchema = z53.enum(["pending", "in_progress", "completed", "deleted"]);
|
|
133657
|
+
var TaskObjectSchema = z53.object({
|
|
133658
|
+
id: z53.string(),
|
|
133659
|
+
subject: z53.string(),
|
|
133660
|
+
description: z53.string(),
|
|
133641
133661
|
status: TaskStatusSchema,
|
|
133642
|
-
activeForm:
|
|
133643
|
-
blocks:
|
|
133644
|
-
blockedBy:
|
|
133645
|
-
owner:
|
|
133646
|
-
metadata:
|
|
133647
|
-
repoURL:
|
|
133648
|
-
parentID:
|
|
133649
|
-
threadID:
|
|
133662
|
+
activeForm: z53.string().optional(),
|
|
133663
|
+
blocks: z53.array(z53.string()).default([]),
|
|
133664
|
+
blockedBy: z53.array(z53.string()).default([]),
|
|
133665
|
+
owner: z53.string().optional(),
|
|
133666
|
+
metadata: z53.record(z53.string(), z53.unknown()).optional(),
|
|
133667
|
+
repoURL: z53.string().optional(),
|
|
133668
|
+
parentID: z53.string().optional(),
|
|
133669
|
+
threadID: z53.string()
|
|
133650
133670
|
}).strict();
|
|
133651
|
-
var TaskCreateInputSchema =
|
|
133652
|
-
subject:
|
|
133653
|
-
description:
|
|
133654
|
-
activeForm:
|
|
133655
|
-
blocks:
|
|
133656
|
-
blockedBy:
|
|
133657
|
-
owner:
|
|
133658
|
-
metadata:
|
|
133659
|
-
repoURL:
|
|
133660
|
-
parentID:
|
|
133671
|
+
var TaskCreateInputSchema = z53.object({
|
|
133672
|
+
subject: z53.string(),
|
|
133673
|
+
description: z53.string().optional(),
|
|
133674
|
+
activeForm: z53.string().optional(),
|
|
133675
|
+
blocks: z53.array(z53.string()).optional(),
|
|
133676
|
+
blockedBy: z53.array(z53.string()).optional(),
|
|
133677
|
+
owner: z53.string().optional(),
|
|
133678
|
+
metadata: z53.record(z53.string(), z53.unknown()).optional(),
|
|
133679
|
+
repoURL: z53.string().optional(),
|
|
133680
|
+
parentID: z53.string().optional()
|
|
133661
133681
|
});
|
|
133662
|
-
var TaskListInputSchema =
|
|
133682
|
+
var TaskListInputSchema = z53.object({
|
|
133663
133683
|
status: TaskStatusSchema.optional(),
|
|
133664
|
-
parentID:
|
|
133684
|
+
parentID: z53.string().optional()
|
|
133665
133685
|
});
|
|
133666
|
-
var TaskGetInputSchema =
|
|
133667
|
-
id:
|
|
133686
|
+
var TaskGetInputSchema = z53.object({
|
|
133687
|
+
id: z53.string()
|
|
133668
133688
|
});
|
|
133669
|
-
var TaskUpdateInputSchema =
|
|
133670
|
-
id:
|
|
133671
|
-
subject:
|
|
133672
|
-
description:
|
|
133689
|
+
var TaskUpdateInputSchema = z53.object({
|
|
133690
|
+
id: z53.string(),
|
|
133691
|
+
subject: z53.string().optional(),
|
|
133692
|
+
description: z53.string().optional(),
|
|
133673
133693
|
status: TaskStatusSchema.optional(),
|
|
133674
|
-
activeForm:
|
|
133675
|
-
addBlocks:
|
|
133676
|
-
addBlockedBy:
|
|
133677
|
-
owner:
|
|
133678
|
-
metadata:
|
|
133679
|
-
repoURL:
|
|
133680
|
-
parentID:
|
|
133694
|
+
activeForm: z53.string().optional(),
|
|
133695
|
+
addBlocks: z53.array(z53.string()).optional(),
|
|
133696
|
+
addBlockedBy: z53.array(z53.string()).optional(),
|
|
133697
|
+
owner: z53.string().optional(),
|
|
133698
|
+
metadata: z53.record(z53.string(), z53.unknown()).optional(),
|
|
133699
|
+
repoURL: z53.string().optional(),
|
|
133700
|
+
parentID: z53.string().optional()
|
|
133681
133701
|
});
|
|
133682
|
-
var TaskDeleteInputSchema =
|
|
133683
|
-
id:
|
|
133702
|
+
var TaskDeleteInputSchema = z53.object({
|
|
133703
|
+
id: z53.string()
|
|
133684
133704
|
});
|
|
133685
133705
|
|
|
133686
133706
|
// packages/omo-opencode/src/features/claude-tasks/storage.ts
|
|
@@ -134526,7 +134546,7 @@ function createHashlineEditTool(ctx) {
|
|
|
134526
134546
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
134527
134547
|
import { randomUUID as randomUUID10 } from "crypto";
|
|
134528
134548
|
init_logger2();
|
|
134529
|
-
import { z as
|
|
134549
|
+
import { z as z54 } from "zod";
|
|
134530
134550
|
|
|
134531
134551
|
// packages/team-core/src/team-mailbox/send.ts
|
|
134532
134552
|
init_paths3();
|
|
@@ -135053,18 +135073,18 @@ async function resolveTeamRuntimeDetails(teamRunId, sessionID, config3, deps) {
|
|
|
135053
135073
|
|
|
135054
135074
|
// packages/omo-opencode/src/features/team-mode/tools/messaging.ts
|
|
135055
135075
|
var MESSAGE_TOOL_KINDS = ["message", "announcement"];
|
|
135056
|
-
var TeamReferenceArgsSchema =
|
|
135057
|
-
path:
|
|
135058
|
-
description:
|
|
135076
|
+
var TeamReferenceArgsSchema = z54.object({
|
|
135077
|
+
path: z54.string().min(1),
|
|
135078
|
+
description: z54.string().optional()
|
|
135059
135079
|
});
|
|
135060
|
-
var TeamSendMessageArgsSchema =
|
|
135061
|
-
teamRunId:
|
|
135062
|
-
to:
|
|
135063
|
-
body:
|
|
135064
|
-
kind:
|
|
135065
|
-
correlationId:
|
|
135066
|
-
summary:
|
|
135067
|
-
references:
|
|
135080
|
+
var TeamSendMessageArgsSchema = z54.object({
|
|
135081
|
+
teamRunId: z54.string().min(1),
|
|
135082
|
+
to: z54.string().min(1),
|
|
135083
|
+
body: z54.string(),
|
|
135084
|
+
kind: z54.enum(MESSAGE_TOOL_KINDS).optional(),
|
|
135085
|
+
correlationId: z54.preprocess((value) => value === "" ? undefined : value, z54.uuid().optional()),
|
|
135086
|
+
summary: z54.string().optional(),
|
|
135087
|
+
references: z54.array(TeamReferenceArgsSchema).optional()
|
|
135068
135088
|
});
|
|
135069
135089
|
function createTeamSendMessageTool(config3, client3, deps = defaultTeamSendMessageToolDeps) {
|
|
135070
135090
|
return tool({
|
|
@@ -143379,63 +143399,63 @@ function getLiteralValue(schema2) {
|
|
|
143379
143399
|
}
|
|
143380
143400
|
|
|
143381
143401
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
143382
|
-
import * as
|
|
143402
|
+
import * as z55 from "zod/v4";
|
|
143383
143403
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
143384
143404
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
143385
143405
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
143386
143406
|
var JSONRPC_VERSION = "2.0";
|
|
143387
|
-
var AssertObjectSchema =
|
|
143388
|
-
var ProgressTokenSchema =
|
|
143389
|
-
var CursorSchema =
|
|
143390
|
-
var TaskCreationParamsSchema =
|
|
143391
|
-
ttl:
|
|
143392
|
-
pollInterval:
|
|
143407
|
+
var AssertObjectSchema = z55.custom((v) => v !== null && (typeof v === "object" || typeof v === "function"));
|
|
143408
|
+
var ProgressTokenSchema = z55.union([z55.string(), z55.number().int()]);
|
|
143409
|
+
var CursorSchema = z55.string();
|
|
143410
|
+
var TaskCreationParamsSchema = z55.looseObject({
|
|
143411
|
+
ttl: z55.number().optional(),
|
|
143412
|
+
pollInterval: z55.number().optional()
|
|
143393
143413
|
});
|
|
143394
|
-
var TaskMetadataSchema =
|
|
143395
|
-
ttl:
|
|
143414
|
+
var TaskMetadataSchema = z55.object({
|
|
143415
|
+
ttl: z55.number().optional()
|
|
143396
143416
|
});
|
|
143397
|
-
var RelatedTaskMetadataSchema =
|
|
143398
|
-
taskId:
|
|
143417
|
+
var RelatedTaskMetadataSchema = z55.object({
|
|
143418
|
+
taskId: z55.string()
|
|
143399
143419
|
});
|
|
143400
|
-
var RequestMetaSchema =
|
|
143420
|
+
var RequestMetaSchema = z55.looseObject({
|
|
143401
143421
|
progressToken: ProgressTokenSchema.optional(),
|
|
143402
143422
|
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
|
143403
143423
|
});
|
|
143404
|
-
var BaseRequestParamsSchema =
|
|
143424
|
+
var BaseRequestParamsSchema = z55.object({
|
|
143405
143425
|
_meta: RequestMetaSchema.optional()
|
|
143406
143426
|
});
|
|
143407
143427
|
var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143408
143428
|
task: TaskMetadataSchema.optional()
|
|
143409
143429
|
});
|
|
143410
143430
|
var isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success;
|
|
143411
|
-
var RequestSchema =
|
|
143412
|
-
method:
|
|
143431
|
+
var RequestSchema = z55.object({
|
|
143432
|
+
method: z55.string(),
|
|
143413
143433
|
params: BaseRequestParamsSchema.loose().optional()
|
|
143414
143434
|
});
|
|
143415
|
-
var NotificationsParamsSchema =
|
|
143435
|
+
var NotificationsParamsSchema = z55.object({
|
|
143416
143436
|
_meta: RequestMetaSchema.optional()
|
|
143417
143437
|
});
|
|
143418
|
-
var NotificationSchema =
|
|
143419
|
-
method:
|
|
143438
|
+
var NotificationSchema = z55.object({
|
|
143439
|
+
method: z55.string(),
|
|
143420
143440
|
params: NotificationsParamsSchema.loose().optional()
|
|
143421
143441
|
});
|
|
143422
|
-
var ResultSchema =
|
|
143442
|
+
var ResultSchema = z55.looseObject({
|
|
143423
143443
|
_meta: RequestMetaSchema.optional()
|
|
143424
143444
|
});
|
|
143425
|
-
var RequestIdSchema =
|
|
143426
|
-
var JSONRPCRequestSchema =
|
|
143427
|
-
jsonrpc:
|
|
143445
|
+
var RequestIdSchema = z55.union([z55.string(), z55.number().int()]);
|
|
143446
|
+
var JSONRPCRequestSchema = z55.object({
|
|
143447
|
+
jsonrpc: z55.literal(JSONRPC_VERSION),
|
|
143428
143448
|
id: RequestIdSchema,
|
|
143429
143449
|
...RequestSchema.shape
|
|
143430
143450
|
}).strict();
|
|
143431
143451
|
var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
|
143432
|
-
var JSONRPCNotificationSchema =
|
|
143433
|
-
jsonrpc:
|
|
143452
|
+
var JSONRPCNotificationSchema = z55.object({
|
|
143453
|
+
jsonrpc: z55.literal(JSONRPC_VERSION),
|
|
143434
143454
|
...NotificationSchema.shape
|
|
143435
143455
|
}).strict();
|
|
143436
143456
|
var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
|
143437
|
-
var JSONRPCResultResponseSchema =
|
|
143438
|
-
jsonrpc:
|
|
143457
|
+
var JSONRPCResultResponseSchema = z55.object({
|
|
143458
|
+
jsonrpc: z55.literal(JSONRPC_VERSION),
|
|
143439
143459
|
id: RequestIdSchema,
|
|
143440
143460
|
result: ResultSchema
|
|
143441
143461
|
}).strict();
|
|
@@ -143451,153 +143471,153 @@ var ErrorCode;
|
|
|
143451
143471
|
ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
|
|
143452
143472
|
ErrorCode2[ErrorCode2["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
|
|
143453
143473
|
})(ErrorCode || (ErrorCode = {}));
|
|
143454
|
-
var JSONRPCErrorResponseSchema =
|
|
143455
|
-
jsonrpc:
|
|
143474
|
+
var JSONRPCErrorResponseSchema = z55.object({
|
|
143475
|
+
jsonrpc: z55.literal(JSONRPC_VERSION),
|
|
143456
143476
|
id: RequestIdSchema.optional(),
|
|
143457
|
-
error:
|
|
143458
|
-
code:
|
|
143459
|
-
message:
|
|
143460
|
-
data:
|
|
143477
|
+
error: z55.object({
|
|
143478
|
+
code: z55.number().int(),
|
|
143479
|
+
message: z55.string(),
|
|
143480
|
+
data: z55.unknown().optional()
|
|
143461
143481
|
})
|
|
143462
143482
|
}).strict();
|
|
143463
143483
|
var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
|
|
143464
|
-
var JSONRPCMessageSchema =
|
|
143484
|
+
var JSONRPCMessageSchema = z55.union([
|
|
143465
143485
|
JSONRPCRequestSchema,
|
|
143466
143486
|
JSONRPCNotificationSchema,
|
|
143467
143487
|
JSONRPCResultResponseSchema,
|
|
143468
143488
|
JSONRPCErrorResponseSchema
|
|
143469
143489
|
]);
|
|
143470
|
-
var JSONRPCResponseSchema =
|
|
143490
|
+
var JSONRPCResponseSchema = z55.union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
|
143471
143491
|
var EmptyResultSchema = ResultSchema.strict();
|
|
143472
143492
|
var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
143473
143493
|
requestId: RequestIdSchema.optional(),
|
|
143474
|
-
reason:
|
|
143494
|
+
reason: z55.string().optional()
|
|
143475
143495
|
});
|
|
143476
143496
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
143477
|
-
method:
|
|
143497
|
+
method: z55.literal("notifications/cancelled"),
|
|
143478
143498
|
params: CancelledNotificationParamsSchema
|
|
143479
143499
|
});
|
|
143480
|
-
var IconSchema =
|
|
143481
|
-
src:
|
|
143482
|
-
mimeType:
|
|
143483
|
-
sizes:
|
|
143484
|
-
theme:
|
|
143500
|
+
var IconSchema = z55.object({
|
|
143501
|
+
src: z55.string(),
|
|
143502
|
+
mimeType: z55.string().optional(),
|
|
143503
|
+
sizes: z55.array(z55.string()).optional(),
|
|
143504
|
+
theme: z55.enum(["light", "dark"]).optional()
|
|
143485
143505
|
});
|
|
143486
|
-
var IconsSchema =
|
|
143487
|
-
icons:
|
|
143506
|
+
var IconsSchema = z55.object({
|
|
143507
|
+
icons: z55.array(IconSchema).optional()
|
|
143488
143508
|
});
|
|
143489
|
-
var BaseMetadataSchema =
|
|
143490
|
-
name:
|
|
143491
|
-
title:
|
|
143509
|
+
var BaseMetadataSchema = z55.object({
|
|
143510
|
+
name: z55.string(),
|
|
143511
|
+
title: z55.string().optional()
|
|
143492
143512
|
});
|
|
143493
143513
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
143494
143514
|
...BaseMetadataSchema.shape,
|
|
143495
143515
|
...IconsSchema.shape,
|
|
143496
|
-
version:
|
|
143497
|
-
websiteUrl:
|
|
143498
|
-
description:
|
|
143516
|
+
version: z55.string(),
|
|
143517
|
+
websiteUrl: z55.string().optional(),
|
|
143518
|
+
description: z55.string().optional()
|
|
143499
143519
|
});
|
|
143500
|
-
var FormElicitationCapabilitySchema =
|
|
143501
|
-
applyDefaults:
|
|
143502
|
-
}),
|
|
143503
|
-
var ElicitationCapabilitySchema =
|
|
143520
|
+
var FormElicitationCapabilitySchema = z55.intersection(z55.object({
|
|
143521
|
+
applyDefaults: z55.boolean().optional()
|
|
143522
|
+
}), z55.record(z55.string(), z55.unknown()));
|
|
143523
|
+
var ElicitationCapabilitySchema = z55.preprocess((value) => {
|
|
143504
143524
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
143505
143525
|
if (Object.keys(value).length === 0) {
|
|
143506
143526
|
return { form: {} };
|
|
143507
143527
|
}
|
|
143508
143528
|
}
|
|
143509
143529
|
return value;
|
|
143510
|
-
},
|
|
143530
|
+
}, z55.intersection(z55.object({
|
|
143511
143531
|
form: FormElicitationCapabilitySchema.optional(),
|
|
143512
143532
|
url: AssertObjectSchema.optional()
|
|
143513
|
-
}),
|
|
143514
|
-
var ClientTasksCapabilitySchema =
|
|
143533
|
+
}), z55.record(z55.string(), z55.unknown()).optional()));
|
|
143534
|
+
var ClientTasksCapabilitySchema = z55.looseObject({
|
|
143515
143535
|
list: AssertObjectSchema.optional(),
|
|
143516
143536
|
cancel: AssertObjectSchema.optional(),
|
|
143517
|
-
requests:
|
|
143518
|
-
sampling:
|
|
143537
|
+
requests: z55.looseObject({
|
|
143538
|
+
sampling: z55.looseObject({
|
|
143519
143539
|
createMessage: AssertObjectSchema.optional()
|
|
143520
143540
|
}).optional(),
|
|
143521
|
-
elicitation:
|
|
143541
|
+
elicitation: z55.looseObject({
|
|
143522
143542
|
create: AssertObjectSchema.optional()
|
|
143523
143543
|
}).optional()
|
|
143524
143544
|
}).optional()
|
|
143525
143545
|
});
|
|
143526
|
-
var ServerTasksCapabilitySchema =
|
|
143546
|
+
var ServerTasksCapabilitySchema = z55.looseObject({
|
|
143527
143547
|
list: AssertObjectSchema.optional(),
|
|
143528
143548
|
cancel: AssertObjectSchema.optional(),
|
|
143529
|
-
requests:
|
|
143530
|
-
tools:
|
|
143549
|
+
requests: z55.looseObject({
|
|
143550
|
+
tools: z55.looseObject({
|
|
143531
143551
|
call: AssertObjectSchema.optional()
|
|
143532
143552
|
}).optional()
|
|
143533
143553
|
}).optional()
|
|
143534
143554
|
});
|
|
143535
|
-
var ClientCapabilitiesSchema =
|
|
143536
|
-
experimental:
|
|
143537
|
-
sampling:
|
|
143555
|
+
var ClientCapabilitiesSchema = z55.object({
|
|
143556
|
+
experimental: z55.record(z55.string(), AssertObjectSchema).optional(),
|
|
143557
|
+
sampling: z55.object({
|
|
143538
143558
|
context: AssertObjectSchema.optional(),
|
|
143539
143559
|
tools: AssertObjectSchema.optional()
|
|
143540
143560
|
}).optional(),
|
|
143541
143561
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
143542
|
-
roots:
|
|
143543
|
-
listChanged:
|
|
143562
|
+
roots: z55.object({
|
|
143563
|
+
listChanged: z55.boolean().optional()
|
|
143544
143564
|
}).optional(),
|
|
143545
143565
|
tasks: ClientTasksCapabilitySchema.optional(),
|
|
143546
|
-
extensions:
|
|
143566
|
+
extensions: z55.record(z55.string(), AssertObjectSchema).optional()
|
|
143547
143567
|
});
|
|
143548
143568
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143549
|
-
protocolVersion:
|
|
143569
|
+
protocolVersion: z55.string(),
|
|
143550
143570
|
capabilities: ClientCapabilitiesSchema,
|
|
143551
143571
|
clientInfo: ImplementationSchema
|
|
143552
143572
|
});
|
|
143553
143573
|
var InitializeRequestSchema = RequestSchema.extend({
|
|
143554
|
-
method:
|
|
143574
|
+
method: z55.literal("initialize"),
|
|
143555
143575
|
params: InitializeRequestParamsSchema
|
|
143556
143576
|
});
|
|
143557
|
-
var ServerCapabilitiesSchema =
|
|
143558
|
-
experimental:
|
|
143577
|
+
var ServerCapabilitiesSchema = z55.object({
|
|
143578
|
+
experimental: z55.record(z55.string(), AssertObjectSchema).optional(),
|
|
143559
143579
|
logging: AssertObjectSchema.optional(),
|
|
143560
143580
|
completions: AssertObjectSchema.optional(),
|
|
143561
|
-
prompts:
|
|
143562
|
-
listChanged:
|
|
143581
|
+
prompts: z55.object({
|
|
143582
|
+
listChanged: z55.boolean().optional()
|
|
143563
143583
|
}).optional(),
|
|
143564
|
-
resources:
|
|
143565
|
-
subscribe:
|
|
143566
|
-
listChanged:
|
|
143584
|
+
resources: z55.object({
|
|
143585
|
+
subscribe: z55.boolean().optional(),
|
|
143586
|
+
listChanged: z55.boolean().optional()
|
|
143567
143587
|
}).optional(),
|
|
143568
|
-
tools:
|
|
143569
|
-
listChanged:
|
|
143588
|
+
tools: z55.object({
|
|
143589
|
+
listChanged: z55.boolean().optional()
|
|
143570
143590
|
}).optional(),
|
|
143571
143591
|
tasks: ServerTasksCapabilitySchema.optional(),
|
|
143572
|
-
extensions:
|
|
143592
|
+
extensions: z55.record(z55.string(), AssertObjectSchema).optional()
|
|
143573
143593
|
});
|
|
143574
143594
|
var InitializeResultSchema = ResultSchema.extend({
|
|
143575
|
-
protocolVersion:
|
|
143595
|
+
protocolVersion: z55.string(),
|
|
143576
143596
|
capabilities: ServerCapabilitiesSchema,
|
|
143577
143597
|
serverInfo: ImplementationSchema,
|
|
143578
|
-
instructions:
|
|
143598
|
+
instructions: z55.string().optional()
|
|
143579
143599
|
});
|
|
143580
143600
|
var InitializedNotificationSchema = NotificationSchema.extend({
|
|
143581
|
-
method:
|
|
143601
|
+
method: z55.literal("notifications/initialized"),
|
|
143582
143602
|
params: NotificationsParamsSchema.optional()
|
|
143583
143603
|
});
|
|
143584
143604
|
var isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success;
|
|
143585
143605
|
var PingRequestSchema = RequestSchema.extend({
|
|
143586
|
-
method:
|
|
143606
|
+
method: z55.literal("ping"),
|
|
143587
143607
|
params: BaseRequestParamsSchema.optional()
|
|
143588
143608
|
});
|
|
143589
|
-
var ProgressSchema =
|
|
143590
|
-
progress:
|
|
143591
|
-
total:
|
|
143592
|
-
message:
|
|
143609
|
+
var ProgressSchema = z55.object({
|
|
143610
|
+
progress: z55.number(),
|
|
143611
|
+
total: z55.optional(z55.number()),
|
|
143612
|
+
message: z55.optional(z55.string())
|
|
143593
143613
|
});
|
|
143594
|
-
var ProgressNotificationParamsSchema =
|
|
143614
|
+
var ProgressNotificationParamsSchema = z55.object({
|
|
143595
143615
|
...NotificationsParamsSchema.shape,
|
|
143596
143616
|
...ProgressSchema.shape,
|
|
143597
143617
|
progressToken: ProgressTokenSchema
|
|
143598
143618
|
});
|
|
143599
143619
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
143600
|
-
method:
|
|
143620
|
+
method: z55.literal("notifications/progress"),
|
|
143601
143621
|
params: ProgressNotificationParamsSchema
|
|
143602
143622
|
});
|
|
143603
143623
|
var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
@@ -143609,60 +143629,60 @@ var PaginatedRequestSchema = RequestSchema.extend({
|
|
|
143609
143629
|
var PaginatedResultSchema = ResultSchema.extend({
|
|
143610
143630
|
nextCursor: CursorSchema.optional()
|
|
143611
143631
|
});
|
|
143612
|
-
var TaskStatusSchema2 =
|
|
143613
|
-
var TaskSchema2 =
|
|
143614
|
-
taskId:
|
|
143632
|
+
var TaskStatusSchema2 = z55.enum(["working", "input_required", "completed", "failed", "cancelled"]);
|
|
143633
|
+
var TaskSchema2 = z55.object({
|
|
143634
|
+
taskId: z55.string(),
|
|
143615
143635
|
status: TaskStatusSchema2,
|
|
143616
|
-
ttl:
|
|
143617
|
-
createdAt:
|
|
143618
|
-
lastUpdatedAt:
|
|
143619
|
-
pollInterval:
|
|
143620
|
-
statusMessage:
|
|
143636
|
+
ttl: z55.union([z55.number(), z55.null()]),
|
|
143637
|
+
createdAt: z55.string(),
|
|
143638
|
+
lastUpdatedAt: z55.string(),
|
|
143639
|
+
pollInterval: z55.optional(z55.number()),
|
|
143640
|
+
statusMessage: z55.optional(z55.string())
|
|
143621
143641
|
});
|
|
143622
143642
|
var CreateTaskResultSchema = ResultSchema.extend({
|
|
143623
143643
|
task: TaskSchema2
|
|
143624
143644
|
});
|
|
143625
143645
|
var TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema2);
|
|
143626
143646
|
var TaskStatusNotificationSchema = NotificationSchema.extend({
|
|
143627
|
-
method:
|
|
143647
|
+
method: z55.literal("notifications/tasks/status"),
|
|
143628
143648
|
params: TaskStatusNotificationParamsSchema
|
|
143629
143649
|
});
|
|
143630
143650
|
var GetTaskRequestSchema = RequestSchema.extend({
|
|
143631
|
-
method:
|
|
143651
|
+
method: z55.literal("tasks/get"),
|
|
143632
143652
|
params: BaseRequestParamsSchema.extend({
|
|
143633
|
-
taskId:
|
|
143653
|
+
taskId: z55.string()
|
|
143634
143654
|
})
|
|
143635
143655
|
});
|
|
143636
143656
|
var GetTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
143637
143657
|
var GetTaskPayloadRequestSchema = RequestSchema.extend({
|
|
143638
|
-
method:
|
|
143658
|
+
method: z55.literal("tasks/result"),
|
|
143639
143659
|
params: BaseRequestParamsSchema.extend({
|
|
143640
|
-
taskId:
|
|
143660
|
+
taskId: z55.string()
|
|
143641
143661
|
})
|
|
143642
143662
|
});
|
|
143643
143663
|
var GetTaskPayloadResultSchema = ResultSchema.loose();
|
|
143644
143664
|
var ListTasksRequestSchema = PaginatedRequestSchema.extend({
|
|
143645
|
-
method:
|
|
143665
|
+
method: z55.literal("tasks/list")
|
|
143646
143666
|
});
|
|
143647
143667
|
var ListTasksResultSchema = PaginatedResultSchema.extend({
|
|
143648
|
-
tasks:
|
|
143668
|
+
tasks: z55.array(TaskSchema2)
|
|
143649
143669
|
});
|
|
143650
143670
|
var CancelTaskRequestSchema = RequestSchema.extend({
|
|
143651
|
-
method:
|
|
143671
|
+
method: z55.literal("tasks/cancel"),
|
|
143652
143672
|
params: BaseRequestParamsSchema.extend({
|
|
143653
|
-
taskId:
|
|
143673
|
+
taskId: z55.string()
|
|
143654
143674
|
})
|
|
143655
143675
|
});
|
|
143656
143676
|
var CancelTaskResultSchema = ResultSchema.merge(TaskSchema2);
|
|
143657
|
-
var ResourceContentsSchema =
|
|
143658
|
-
uri:
|
|
143659
|
-
mimeType:
|
|
143660
|
-
_meta:
|
|
143677
|
+
var ResourceContentsSchema = z55.object({
|
|
143678
|
+
uri: z55.string(),
|
|
143679
|
+
mimeType: z55.optional(z55.string()),
|
|
143680
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143661
143681
|
});
|
|
143662
143682
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
143663
|
-
text:
|
|
143683
|
+
text: z55.string()
|
|
143664
143684
|
});
|
|
143665
|
-
var Base64Schema =
|
|
143685
|
+
var Base64Schema = z55.string().refine((val) => {
|
|
143666
143686
|
try {
|
|
143667
143687
|
atob(val);
|
|
143668
143688
|
return true;
|
|
@@ -143673,447 +143693,447 @@ var Base64Schema = z54.string().refine((val) => {
|
|
|
143673
143693
|
var BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
143674
143694
|
blob: Base64Schema
|
|
143675
143695
|
});
|
|
143676
|
-
var RoleSchema =
|
|
143677
|
-
var AnnotationsSchema =
|
|
143678
|
-
audience:
|
|
143679
|
-
priority:
|
|
143680
|
-
lastModified:
|
|
143696
|
+
var RoleSchema = z55.enum(["user", "assistant"]);
|
|
143697
|
+
var AnnotationsSchema = z55.object({
|
|
143698
|
+
audience: z55.array(RoleSchema).optional(),
|
|
143699
|
+
priority: z55.number().min(0).max(1).optional(),
|
|
143700
|
+
lastModified: z55.iso.datetime({ offset: true }).optional()
|
|
143681
143701
|
});
|
|
143682
|
-
var ResourceSchema =
|
|
143702
|
+
var ResourceSchema = z55.object({
|
|
143683
143703
|
...BaseMetadataSchema.shape,
|
|
143684
143704
|
...IconsSchema.shape,
|
|
143685
|
-
uri:
|
|
143686
|
-
description:
|
|
143687
|
-
mimeType:
|
|
143688
|
-
size:
|
|
143705
|
+
uri: z55.string(),
|
|
143706
|
+
description: z55.optional(z55.string()),
|
|
143707
|
+
mimeType: z55.optional(z55.string()),
|
|
143708
|
+
size: z55.optional(z55.number()),
|
|
143689
143709
|
annotations: AnnotationsSchema.optional(),
|
|
143690
|
-
_meta:
|
|
143710
|
+
_meta: z55.optional(z55.looseObject({}))
|
|
143691
143711
|
});
|
|
143692
|
-
var ResourceTemplateSchema =
|
|
143712
|
+
var ResourceTemplateSchema = z55.object({
|
|
143693
143713
|
...BaseMetadataSchema.shape,
|
|
143694
143714
|
...IconsSchema.shape,
|
|
143695
|
-
uriTemplate:
|
|
143696
|
-
description:
|
|
143697
|
-
mimeType:
|
|
143715
|
+
uriTemplate: z55.string(),
|
|
143716
|
+
description: z55.optional(z55.string()),
|
|
143717
|
+
mimeType: z55.optional(z55.string()),
|
|
143698
143718
|
annotations: AnnotationsSchema.optional(),
|
|
143699
|
-
_meta:
|
|
143719
|
+
_meta: z55.optional(z55.looseObject({}))
|
|
143700
143720
|
});
|
|
143701
143721
|
var ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
143702
|
-
method:
|
|
143722
|
+
method: z55.literal("resources/list")
|
|
143703
143723
|
});
|
|
143704
143724
|
var ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
143705
|
-
resources:
|
|
143725
|
+
resources: z55.array(ResourceSchema)
|
|
143706
143726
|
});
|
|
143707
143727
|
var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
143708
|
-
method:
|
|
143728
|
+
method: z55.literal("resources/templates/list")
|
|
143709
143729
|
});
|
|
143710
143730
|
var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
143711
|
-
resourceTemplates:
|
|
143731
|
+
resourceTemplates: z55.array(ResourceTemplateSchema)
|
|
143712
143732
|
});
|
|
143713
143733
|
var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143714
|
-
uri:
|
|
143734
|
+
uri: z55.string()
|
|
143715
143735
|
});
|
|
143716
143736
|
var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
|
143717
143737
|
var ReadResourceRequestSchema = RequestSchema.extend({
|
|
143718
|
-
method:
|
|
143738
|
+
method: z55.literal("resources/read"),
|
|
143719
143739
|
params: ReadResourceRequestParamsSchema
|
|
143720
143740
|
});
|
|
143721
143741
|
var ReadResourceResultSchema = ResultSchema.extend({
|
|
143722
|
-
contents:
|
|
143742
|
+
contents: z55.array(z55.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
143723
143743
|
});
|
|
143724
143744
|
var ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
143725
|
-
method:
|
|
143745
|
+
method: z55.literal("notifications/resources/list_changed"),
|
|
143726
143746
|
params: NotificationsParamsSchema.optional()
|
|
143727
143747
|
});
|
|
143728
143748
|
var SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
143729
143749
|
var SubscribeRequestSchema = RequestSchema.extend({
|
|
143730
|
-
method:
|
|
143750
|
+
method: z55.literal("resources/subscribe"),
|
|
143731
143751
|
params: SubscribeRequestParamsSchema
|
|
143732
143752
|
});
|
|
143733
143753
|
var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
143734
143754
|
var UnsubscribeRequestSchema = RequestSchema.extend({
|
|
143735
|
-
method:
|
|
143755
|
+
method: z55.literal("resources/unsubscribe"),
|
|
143736
143756
|
params: UnsubscribeRequestParamsSchema
|
|
143737
143757
|
});
|
|
143738
143758
|
var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
143739
|
-
uri:
|
|
143759
|
+
uri: z55.string()
|
|
143740
143760
|
});
|
|
143741
143761
|
var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
143742
|
-
method:
|
|
143762
|
+
method: z55.literal("notifications/resources/updated"),
|
|
143743
143763
|
params: ResourceUpdatedNotificationParamsSchema
|
|
143744
143764
|
});
|
|
143745
|
-
var PromptArgumentSchema =
|
|
143746
|
-
name:
|
|
143747
|
-
description:
|
|
143748
|
-
required:
|
|
143765
|
+
var PromptArgumentSchema = z55.object({
|
|
143766
|
+
name: z55.string(),
|
|
143767
|
+
description: z55.optional(z55.string()),
|
|
143768
|
+
required: z55.optional(z55.boolean())
|
|
143749
143769
|
});
|
|
143750
|
-
var PromptSchema =
|
|
143770
|
+
var PromptSchema = z55.object({
|
|
143751
143771
|
...BaseMetadataSchema.shape,
|
|
143752
143772
|
...IconsSchema.shape,
|
|
143753
|
-
description:
|
|
143754
|
-
arguments:
|
|
143755
|
-
_meta:
|
|
143773
|
+
description: z55.optional(z55.string()),
|
|
143774
|
+
arguments: z55.optional(z55.array(PromptArgumentSchema)),
|
|
143775
|
+
_meta: z55.optional(z55.looseObject({}))
|
|
143756
143776
|
});
|
|
143757
143777
|
var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
143758
|
-
method:
|
|
143778
|
+
method: z55.literal("prompts/list")
|
|
143759
143779
|
});
|
|
143760
143780
|
var ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
143761
|
-
prompts:
|
|
143781
|
+
prompts: z55.array(PromptSchema)
|
|
143762
143782
|
});
|
|
143763
143783
|
var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143764
|
-
name:
|
|
143765
|
-
arguments:
|
|
143784
|
+
name: z55.string(),
|
|
143785
|
+
arguments: z55.record(z55.string(), z55.string()).optional()
|
|
143766
143786
|
});
|
|
143767
143787
|
var GetPromptRequestSchema = RequestSchema.extend({
|
|
143768
|
-
method:
|
|
143788
|
+
method: z55.literal("prompts/get"),
|
|
143769
143789
|
params: GetPromptRequestParamsSchema
|
|
143770
143790
|
});
|
|
143771
|
-
var TextContentSchema =
|
|
143772
|
-
type:
|
|
143773
|
-
text:
|
|
143791
|
+
var TextContentSchema = z55.object({
|
|
143792
|
+
type: z55.literal("text"),
|
|
143793
|
+
text: z55.string(),
|
|
143774
143794
|
annotations: AnnotationsSchema.optional(),
|
|
143775
|
-
_meta:
|
|
143795
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143776
143796
|
});
|
|
143777
|
-
var ImageContentSchema =
|
|
143778
|
-
type:
|
|
143797
|
+
var ImageContentSchema = z55.object({
|
|
143798
|
+
type: z55.literal("image"),
|
|
143779
143799
|
data: Base64Schema,
|
|
143780
|
-
mimeType:
|
|
143800
|
+
mimeType: z55.string(),
|
|
143781
143801
|
annotations: AnnotationsSchema.optional(),
|
|
143782
|
-
_meta:
|
|
143802
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143783
143803
|
});
|
|
143784
|
-
var AudioContentSchema =
|
|
143785
|
-
type:
|
|
143804
|
+
var AudioContentSchema = z55.object({
|
|
143805
|
+
type: z55.literal("audio"),
|
|
143786
143806
|
data: Base64Schema,
|
|
143787
|
-
mimeType:
|
|
143807
|
+
mimeType: z55.string(),
|
|
143788
143808
|
annotations: AnnotationsSchema.optional(),
|
|
143789
|
-
_meta:
|
|
143809
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143790
143810
|
});
|
|
143791
|
-
var ToolUseContentSchema =
|
|
143792
|
-
type:
|
|
143793
|
-
name:
|
|
143794
|
-
id:
|
|
143795
|
-
input:
|
|
143796
|
-
_meta:
|
|
143811
|
+
var ToolUseContentSchema = z55.object({
|
|
143812
|
+
type: z55.literal("tool_use"),
|
|
143813
|
+
name: z55.string(),
|
|
143814
|
+
id: z55.string(),
|
|
143815
|
+
input: z55.record(z55.string(), z55.unknown()),
|
|
143816
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143797
143817
|
});
|
|
143798
|
-
var EmbeddedResourceSchema =
|
|
143799
|
-
type:
|
|
143800
|
-
resource:
|
|
143818
|
+
var EmbeddedResourceSchema = z55.object({
|
|
143819
|
+
type: z55.literal("resource"),
|
|
143820
|
+
resource: z55.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
143801
143821
|
annotations: AnnotationsSchema.optional(),
|
|
143802
|
-
_meta:
|
|
143822
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143803
143823
|
});
|
|
143804
143824
|
var ResourceLinkSchema = ResourceSchema.extend({
|
|
143805
|
-
type:
|
|
143825
|
+
type: z55.literal("resource_link")
|
|
143806
143826
|
});
|
|
143807
|
-
var ContentBlockSchema =
|
|
143827
|
+
var ContentBlockSchema = z55.union([
|
|
143808
143828
|
TextContentSchema,
|
|
143809
143829
|
ImageContentSchema,
|
|
143810
143830
|
AudioContentSchema,
|
|
143811
143831
|
ResourceLinkSchema,
|
|
143812
143832
|
EmbeddedResourceSchema
|
|
143813
143833
|
]);
|
|
143814
|
-
var PromptMessageSchema =
|
|
143834
|
+
var PromptMessageSchema = z55.object({
|
|
143815
143835
|
role: RoleSchema,
|
|
143816
143836
|
content: ContentBlockSchema
|
|
143817
143837
|
});
|
|
143818
143838
|
var GetPromptResultSchema = ResultSchema.extend({
|
|
143819
|
-
description:
|
|
143820
|
-
messages:
|
|
143839
|
+
description: z55.string().optional(),
|
|
143840
|
+
messages: z55.array(PromptMessageSchema)
|
|
143821
143841
|
});
|
|
143822
143842
|
var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
143823
|
-
method:
|
|
143843
|
+
method: z55.literal("notifications/prompts/list_changed"),
|
|
143824
143844
|
params: NotificationsParamsSchema.optional()
|
|
143825
143845
|
});
|
|
143826
|
-
var ToolAnnotationsSchema =
|
|
143827
|
-
title:
|
|
143828
|
-
readOnlyHint:
|
|
143829
|
-
destructiveHint:
|
|
143830
|
-
idempotentHint:
|
|
143831
|
-
openWorldHint:
|
|
143846
|
+
var ToolAnnotationsSchema = z55.object({
|
|
143847
|
+
title: z55.string().optional(),
|
|
143848
|
+
readOnlyHint: z55.boolean().optional(),
|
|
143849
|
+
destructiveHint: z55.boolean().optional(),
|
|
143850
|
+
idempotentHint: z55.boolean().optional(),
|
|
143851
|
+
openWorldHint: z55.boolean().optional()
|
|
143832
143852
|
});
|
|
143833
|
-
var ToolExecutionSchema =
|
|
143834
|
-
taskSupport:
|
|
143853
|
+
var ToolExecutionSchema = z55.object({
|
|
143854
|
+
taskSupport: z55.enum(["required", "optional", "forbidden"]).optional()
|
|
143835
143855
|
});
|
|
143836
|
-
var ToolSchema =
|
|
143856
|
+
var ToolSchema = z55.object({
|
|
143837
143857
|
...BaseMetadataSchema.shape,
|
|
143838
143858
|
...IconsSchema.shape,
|
|
143839
|
-
description:
|
|
143840
|
-
inputSchema:
|
|
143841
|
-
type:
|
|
143842
|
-
properties:
|
|
143843
|
-
required:
|
|
143844
|
-
}).catchall(
|
|
143845
|
-
outputSchema:
|
|
143846
|
-
type:
|
|
143847
|
-
properties:
|
|
143848
|
-
required:
|
|
143849
|
-
}).catchall(
|
|
143859
|
+
description: z55.string().optional(),
|
|
143860
|
+
inputSchema: z55.object({
|
|
143861
|
+
type: z55.literal("object"),
|
|
143862
|
+
properties: z55.record(z55.string(), AssertObjectSchema).optional(),
|
|
143863
|
+
required: z55.array(z55.string()).optional()
|
|
143864
|
+
}).catchall(z55.unknown()),
|
|
143865
|
+
outputSchema: z55.object({
|
|
143866
|
+
type: z55.literal("object"),
|
|
143867
|
+
properties: z55.record(z55.string(), AssertObjectSchema).optional(),
|
|
143868
|
+
required: z55.array(z55.string()).optional()
|
|
143869
|
+
}).catchall(z55.unknown()).optional(),
|
|
143850
143870
|
annotations: ToolAnnotationsSchema.optional(),
|
|
143851
143871
|
execution: ToolExecutionSchema.optional(),
|
|
143852
|
-
_meta:
|
|
143872
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143853
143873
|
});
|
|
143854
143874
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
143855
|
-
method:
|
|
143875
|
+
method: z55.literal("tools/list")
|
|
143856
143876
|
});
|
|
143857
143877
|
var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
143858
|
-
tools:
|
|
143878
|
+
tools: z55.array(ToolSchema)
|
|
143859
143879
|
});
|
|
143860
143880
|
var CallToolResultSchema = ResultSchema.extend({
|
|
143861
|
-
content:
|
|
143862
|
-
structuredContent:
|
|
143863
|
-
isError:
|
|
143881
|
+
content: z55.array(ContentBlockSchema).default([]),
|
|
143882
|
+
structuredContent: z55.record(z55.string(), z55.unknown()).optional(),
|
|
143883
|
+
isError: z55.boolean().optional()
|
|
143864
143884
|
});
|
|
143865
143885
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
143866
|
-
toolResult:
|
|
143886
|
+
toolResult: z55.unknown()
|
|
143867
143887
|
}));
|
|
143868
143888
|
var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
143869
|
-
name:
|
|
143870
|
-
arguments:
|
|
143889
|
+
name: z55.string(),
|
|
143890
|
+
arguments: z55.record(z55.string(), z55.unknown()).optional()
|
|
143871
143891
|
});
|
|
143872
143892
|
var CallToolRequestSchema = RequestSchema.extend({
|
|
143873
|
-
method:
|
|
143893
|
+
method: z55.literal("tools/call"),
|
|
143874
143894
|
params: CallToolRequestParamsSchema
|
|
143875
143895
|
});
|
|
143876
143896
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
143877
|
-
method:
|
|
143897
|
+
method: z55.literal("notifications/tools/list_changed"),
|
|
143878
143898
|
params: NotificationsParamsSchema.optional()
|
|
143879
143899
|
});
|
|
143880
|
-
var ListChangedOptionsBaseSchema =
|
|
143881
|
-
autoRefresh:
|
|
143882
|
-
debounceMs:
|
|
143900
|
+
var ListChangedOptionsBaseSchema = z55.object({
|
|
143901
|
+
autoRefresh: z55.boolean().default(true),
|
|
143902
|
+
debounceMs: z55.number().int().nonnegative().default(300)
|
|
143883
143903
|
});
|
|
143884
|
-
var LoggingLevelSchema =
|
|
143904
|
+
var LoggingLevelSchema = z55.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
143885
143905
|
var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
143886
143906
|
level: LoggingLevelSchema
|
|
143887
143907
|
});
|
|
143888
143908
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
143889
|
-
method:
|
|
143909
|
+
method: z55.literal("logging/setLevel"),
|
|
143890
143910
|
params: SetLevelRequestParamsSchema
|
|
143891
143911
|
});
|
|
143892
143912
|
var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
143893
143913
|
level: LoggingLevelSchema,
|
|
143894
|
-
logger:
|
|
143895
|
-
data:
|
|
143914
|
+
logger: z55.string().optional(),
|
|
143915
|
+
data: z55.unknown()
|
|
143896
143916
|
});
|
|
143897
143917
|
var LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
143898
|
-
method:
|
|
143918
|
+
method: z55.literal("notifications/message"),
|
|
143899
143919
|
params: LoggingMessageNotificationParamsSchema
|
|
143900
143920
|
});
|
|
143901
|
-
var ModelHintSchema =
|
|
143902
|
-
name:
|
|
143921
|
+
var ModelHintSchema = z55.object({
|
|
143922
|
+
name: z55.string().optional()
|
|
143903
143923
|
});
|
|
143904
|
-
var ModelPreferencesSchema =
|
|
143905
|
-
hints:
|
|
143906
|
-
costPriority:
|
|
143907
|
-
speedPriority:
|
|
143908
|
-
intelligencePriority:
|
|
143924
|
+
var ModelPreferencesSchema = z55.object({
|
|
143925
|
+
hints: z55.array(ModelHintSchema).optional(),
|
|
143926
|
+
costPriority: z55.number().min(0).max(1).optional(),
|
|
143927
|
+
speedPriority: z55.number().min(0).max(1).optional(),
|
|
143928
|
+
intelligencePriority: z55.number().min(0).max(1).optional()
|
|
143909
143929
|
});
|
|
143910
|
-
var ToolChoiceSchema =
|
|
143911
|
-
mode:
|
|
143930
|
+
var ToolChoiceSchema = z55.object({
|
|
143931
|
+
mode: z55.enum(["auto", "required", "none"]).optional()
|
|
143912
143932
|
});
|
|
143913
|
-
var ToolResultContentSchema =
|
|
143914
|
-
type:
|
|
143915
|
-
toolUseId:
|
|
143916
|
-
content:
|
|
143917
|
-
structuredContent:
|
|
143918
|
-
isError:
|
|
143919
|
-
_meta:
|
|
143933
|
+
var ToolResultContentSchema = z55.object({
|
|
143934
|
+
type: z55.literal("tool_result"),
|
|
143935
|
+
toolUseId: z55.string().describe("The unique identifier for the corresponding tool call."),
|
|
143936
|
+
content: z55.array(ContentBlockSchema).default([]),
|
|
143937
|
+
structuredContent: z55.object({}).loose().optional(),
|
|
143938
|
+
isError: z55.boolean().optional(),
|
|
143939
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143920
143940
|
});
|
|
143921
|
-
var SamplingContentSchema =
|
|
143922
|
-
var SamplingMessageContentBlockSchema =
|
|
143941
|
+
var SamplingContentSchema = z55.discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]);
|
|
143942
|
+
var SamplingMessageContentBlockSchema = z55.discriminatedUnion("type", [
|
|
143923
143943
|
TextContentSchema,
|
|
143924
143944
|
ImageContentSchema,
|
|
143925
143945
|
AudioContentSchema,
|
|
143926
143946
|
ToolUseContentSchema,
|
|
143927
143947
|
ToolResultContentSchema
|
|
143928
143948
|
]);
|
|
143929
|
-
var SamplingMessageSchema =
|
|
143949
|
+
var SamplingMessageSchema = z55.object({
|
|
143930
143950
|
role: RoleSchema,
|
|
143931
|
-
content:
|
|
143932
|
-
_meta:
|
|
143951
|
+
content: z55.union([SamplingMessageContentBlockSchema, z55.array(SamplingMessageContentBlockSchema)]),
|
|
143952
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
143933
143953
|
});
|
|
143934
143954
|
var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
143935
|
-
messages:
|
|
143955
|
+
messages: z55.array(SamplingMessageSchema),
|
|
143936
143956
|
modelPreferences: ModelPreferencesSchema.optional(),
|
|
143937
|
-
systemPrompt:
|
|
143938
|
-
includeContext:
|
|
143939
|
-
temperature:
|
|
143940
|
-
maxTokens:
|
|
143941
|
-
stopSequences:
|
|
143957
|
+
systemPrompt: z55.string().optional(),
|
|
143958
|
+
includeContext: z55.enum(["none", "thisServer", "allServers"]).optional(),
|
|
143959
|
+
temperature: z55.number().optional(),
|
|
143960
|
+
maxTokens: z55.number().int(),
|
|
143961
|
+
stopSequences: z55.array(z55.string()).optional(),
|
|
143942
143962
|
metadata: AssertObjectSchema.optional(),
|
|
143943
|
-
tools:
|
|
143963
|
+
tools: z55.array(ToolSchema).optional(),
|
|
143944
143964
|
toolChoice: ToolChoiceSchema.optional()
|
|
143945
143965
|
});
|
|
143946
143966
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
143947
|
-
method:
|
|
143967
|
+
method: z55.literal("sampling/createMessage"),
|
|
143948
143968
|
params: CreateMessageRequestParamsSchema
|
|
143949
143969
|
});
|
|
143950
143970
|
var CreateMessageResultSchema = ResultSchema.extend({
|
|
143951
|
-
model:
|
|
143952
|
-
stopReason:
|
|
143971
|
+
model: z55.string(),
|
|
143972
|
+
stopReason: z55.optional(z55.enum(["endTurn", "stopSequence", "maxTokens"]).or(z55.string())),
|
|
143953
143973
|
role: RoleSchema,
|
|
143954
143974
|
content: SamplingContentSchema
|
|
143955
143975
|
});
|
|
143956
143976
|
var CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
143957
|
-
model:
|
|
143958
|
-
stopReason:
|
|
143977
|
+
model: z55.string(),
|
|
143978
|
+
stopReason: z55.optional(z55.enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(z55.string())),
|
|
143959
143979
|
role: RoleSchema,
|
|
143960
|
-
content:
|
|
143980
|
+
content: z55.union([SamplingMessageContentBlockSchema, z55.array(SamplingMessageContentBlockSchema)])
|
|
143961
143981
|
});
|
|
143962
|
-
var BooleanSchemaSchema =
|
|
143963
|
-
type:
|
|
143964
|
-
title:
|
|
143965
|
-
description:
|
|
143966
|
-
default:
|
|
143982
|
+
var BooleanSchemaSchema = z55.object({
|
|
143983
|
+
type: z55.literal("boolean"),
|
|
143984
|
+
title: z55.string().optional(),
|
|
143985
|
+
description: z55.string().optional(),
|
|
143986
|
+
default: z55.boolean().optional()
|
|
143967
143987
|
});
|
|
143968
|
-
var StringSchemaSchema =
|
|
143969
|
-
type:
|
|
143970
|
-
title:
|
|
143971
|
-
description:
|
|
143972
|
-
minLength:
|
|
143973
|
-
maxLength:
|
|
143974
|
-
format:
|
|
143975
|
-
default:
|
|
143988
|
+
var StringSchemaSchema = z55.object({
|
|
143989
|
+
type: z55.literal("string"),
|
|
143990
|
+
title: z55.string().optional(),
|
|
143991
|
+
description: z55.string().optional(),
|
|
143992
|
+
minLength: z55.number().optional(),
|
|
143993
|
+
maxLength: z55.number().optional(),
|
|
143994
|
+
format: z55.enum(["email", "uri", "date", "date-time"]).optional(),
|
|
143995
|
+
default: z55.string().optional()
|
|
143976
143996
|
});
|
|
143977
|
-
var NumberSchemaSchema =
|
|
143978
|
-
type:
|
|
143979
|
-
title:
|
|
143980
|
-
description:
|
|
143981
|
-
minimum:
|
|
143982
|
-
maximum:
|
|
143983
|
-
default:
|
|
143997
|
+
var NumberSchemaSchema = z55.object({
|
|
143998
|
+
type: z55.enum(["number", "integer"]),
|
|
143999
|
+
title: z55.string().optional(),
|
|
144000
|
+
description: z55.string().optional(),
|
|
144001
|
+
minimum: z55.number().optional(),
|
|
144002
|
+
maximum: z55.number().optional(),
|
|
144003
|
+
default: z55.number().optional()
|
|
143984
144004
|
});
|
|
143985
|
-
var UntitledSingleSelectEnumSchemaSchema =
|
|
143986
|
-
type:
|
|
143987
|
-
title:
|
|
143988
|
-
description:
|
|
143989
|
-
enum:
|
|
143990
|
-
default:
|
|
144005
|
+
var UntitledSingleSelectEnumSchemaSchema = z55.object({
|
|
144006
|
+
type: z55.literal("string"),
|
|
144007
|
+
title: z55.string().optional(),
|
|
144008
|
+
description: z55.string().optional(),
|
|
144009
|
+
enum: z55.array(z55.string()),
|
|
144010
|
+
default: z55.string().optional()
|
|
143991
144011
|
});
|
|
143992
|
-
var TitledSingleSelectEnumSchemaSchema =
|
|
143993
|
-
type:
|
|
143994
|
-
title:
|
|
143995
|
-
description:
|
|
143996
|
-
oneOf:
|
|
143997
|
-
const:
|
|
143998
|
-
title:
|
|
144012
|
+
var TitledSingleSelectEnumSchemaSchema = z55.object({
|
|
144013
|
+
type: z55.literal("string"),
|
|
144014
|
+
title: z55.string().optional(),
|
|
144015
|
+
description: z55.string().optional(),
|
|
144016
|
+
oneOf: z55.array(z55.object({
|
|
144017
|
+
const: z55.string(),
|
|
144018
|
+
title: z55.string()
|
|
143999
144019
|
})),
|
|
144000
|
-
default:
|
|
144020
|
+
default: z55.string().optional()
|
|
144001
144021
|
});
|
|
144002
|
-
var LegacyTitledEnumSchemaSchema =
|
|
144003
|
-
type:
|
|
144004
|
-
title:
|
|
144005
|
-
description:
|
|
144006
|
-
enum:
|
|
144007
|
-
enumNames:
|
|
144008
|
-
default:
|
|
144022
|
+
var LegacyTitledEnumSchemaSchema = z55.object({
|
|
144023
|
+
type: z55.literal("string"),
|
|
144024
|
+
title: z55.string().optional(),
|
|
144025
|
+
description: z55.string().optional(),
|
|
144026
|
+
enum: z55.array(z55.string()),
|
|
144027
|
+
enumNames: z55.array(z55.string()).optional(),
|
|
144028
|
+
default: z55.string().optional()
|
|
144009
144029
|
});
|
|
144010
|
-
var SingleSelectEnumSchemaSchema =
|
|
144011
|
-
var UntitledMultiSelectEnumSchemaSchema =
|
|
144012
|
-
type:
|
|
144013
|
-
title:
|
|
144014
|
-
description:
|
|
144015
|
-
minItems:
|
|
144016
|
-
maxItems:
|
|
144017
|
-
items:
|
|
144018
|
-
type:
|
|
144019
|
-
enum:
|
|
144030
|
+
var SingleSelectEnumSchemaSchema = z55.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
|
|
144031
|
+
var UntitledMultiSelectEnumSchemaSchema = z55.object({
|
|
144032
|
+
type: z55.literal("array"),
|
|
144033
|
+
title: z55.string().optional(),
|
|
144034
|
+
description: z55.string().optional(),
|
|
144035
|
+
minItems: z55.number().optional(),
|
|
144036
|
+
maxItems: z55.number().optional(),
|
|
144037
|
+
items: z55.object({
|
|
144038
|
+
type: z55.literal("string"),
|
|
144039
|
+
enum: z55.array(z55.string())
|
|
144020
144040
|
}),
|
|
144021
|
-
default:
|
|
144041
|
+
default: z55.array(z55.string()).optional()
|
|
144022
144042
|
});
|
|
144023
|
-
var TitledMultiSelectEnumSchemaSchema =
|
|
144024
|
-
type:
|
|
144025
|
-
title:
|
|
144026
|
-
description:
|
|
144027
|
-
minItems:
|
|
144028
|
-
maxItems:
|
|
144029
|
-
items:
|
|
144030
|
-
anyOf:
|
|
144031
|
-
const:
|
|
144032
|
-
title:
|
|
144043
|
+
var TitledMultiSelectEnumSchemaSchema = z55.object({
|
|
144044
|
+
type: z55.literal("array"),
|
|
144045
|
+
title: z55.string().optional(),
|
|
144046
|
+
description: z55.string().optional(),
|
|
144047
|
+
minItems: z55.number().optional(),
|
|
144048
|
+
maxItems: z55.number().optional(),
|
|
144049
|
+
items: z55.object({
|
|
144050
|
+
anyOf: z55.array(z55.object({
|
|
144051
|
+
const: z55.string(),
|
|
144052
|
+
title: z55.string()
|
|
144033
144053
|
}))
|
|
144034
144054
|
}),
|
|
144035
|
-
default:
|
|
144055
|
+
default: z55.array(z55.string()).optional()
|
|
144036
144056
|
});
|
|
144037
|
-
var MultiSelectEnumSchemaSchema =
|
|
144038
|
-
var EnumSchemaSchema =
|
|
144039
|
-
var PrimitiveSchemaDefinitionSchema =
|
|
144057
|
+
var MultiSelectEnumSchemaSchema = z55.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
|
|
144058
|
+
var EnumSchemaSchema = z55.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
|
|
144059
|
+
var PrimitiveSchemaDefinitionSchema = z55.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
|
|
144040
144060
|
var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
144041
|
-
mode:
|
|
144042
|
-
message:
|
|
144043
|
-
requestedSchema:
|
|
144044
|
-
type:
|
|
144045
|
-
properties:
|
|
144046
|
-
required:
|
|
144061
|
+
mode: z55.literal("form").optional(),
|
|
144062
|
+
message: z55.string(),
|
|
144063
|
+
requestedSchema: z55.object({
|
|
144064
|
+
type: z55.literal("object"),
|
|
144065
|
+
properties: z55.record(z55.string(), PrimitiveSchemaDefinitionSchema),
|
|
144066
|
+
required: z55.array(z55.string()).optional()
|
|
144047
144067
|
})
|
|
144048
144068
|
});
|
|
144049
144069
|
var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
144050
|
-
mode:
|
|
144051
|
-
message:
|
|
144052
|
-
elicitationId:
|
|
144053
|
-
url:
|
|
144070
|
+
mode: z55.literal("url"),
|
|
144071
|
+
message: z55.string(),
|
|
144072
|
+
elicitationId: z55.string(),
|
|
144073
|
+
url: z55.string().url()
|
|
144054
144074
|
});
|
|
144055
|
-
var ElicitRequestParamsSchema =
|
|
144075
|
+
var ElicitRequestParamsSchema = z55.union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
|
|
144056
144076
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
144057
|
-
method:
|
|
144077
|
+
method: z55.literal("elicitation/create"),
|
|
144058
144078
|
params: ElicitRequestParamsSchema
|
|
144059
144079
|
});
|
|
144060
144080
|
var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
144061
|
-
elicitationId:
|
|
144081
|
+
elicitationId: z55.string()
|
|
144062
144082
|
});
|
|
144063
144083
|
var ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
|
144064
|
-
method:
|
|
144084
|
+
method: z55.literal("notifications/elicitation/complete"),
|
|
144065
144085
|
params: ElicitationCompleteNotificationParamsSchema
|
|
144066
144086
|
});
|
|
144067
144087
|
var ElicitResultSchema = ResultSchema.extend({
|
|
144068
|
-
action:
|
|
144069
|
-
content:
|
|
144088
|
+
action: z55.enum(["accept", "decline", "cancel"]),
|
|
144089
|
+
content: z55.preprocess((val) => val === null ? undefined : val, z55.record(z55.string(), z55.union([z55.string(), z55.number(), z55.boolean(), z55.array(z55.string())])).optional())
|
|
144070
144090
|
});
|
|
144071
|
-
var ResourceTemplateReferenceSchema =
|
|
144072
|
-
type:
|
|
144073
|
-
uri:
|
|
144091
|
+
var ResourceTemplateReferenceSchema = z55.object({
|
|
144092
|
+
type: z55.literal("ref/resource"),
|
|
144093
|
+
uri: z55.string()
|
|
144074
144094
|
});
|
|
144075
|
-
var PromptReferenceSchema =
|
|
144076
|
-
type:
|
|
144077
|
-
name:
|
|
144095
|
+
var PromptReferenceSchema = z55.object({
|
|
144096
|
+
type: z55.literal("ref/prompt"),
|
|
144097
|
+
name: z55.string()
|
|
144078
144098
|
});
|
|
144079
144099
|
var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
144080
|
-
ref:
|
|
144081
|
-
argument:
|
|
144082
|
-
name:
|
|
144083
|
-
value:
|
|
144100
|
+
ref: z55.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
144101
|
+
argument: z55.object({
|
|
144102
|
+
name: z55.string(),
|
|
144103
|
+
value: z55.string()
|
|
144084
144104
|
}),
|
|
144085
|
-
context:
|
|
144086
|
-
arguments:
|
|
144105
|
+
context: z55.object({
|
|
144106
|
+
arguments: z55.record(z55.string(), z55.string()).optional()
|
|
144087
144107
|
}).optional()
|
|
144088
144108
|
});
|
|
144089
144109
|
var CompleteRequestSchema = RequestSchema.extend({
|
|
144090
|
-
method:
|
|
144110
|
+
method: z55.literal("completion/complete"),
|
|
144091
144111
|
params: CompleteRequestParamsSchema
|
|
144092
144112
|
});
|
|
144093
144113
|
var CompleteResultSchema = ResultSchema.extend({
|
|
144094
|
-
completion:
|
|
144095
|
-
values:
|
|
144096
|
-
total:
|
|
144097
|
-
hasMore:
|
|
144114
|
+
completion: z55.looseObject({
|
|
144115
|
+
values: z55.array(z55.string()).max(100),
|
|
144116
|
+
total: z55.optional(z55.number().int()),
|
|
144117
|
+
hasMore: z55.optional(z55.boolean())
|
|
144098
144118
|
})
|
|
144099
144119
|
});
|
|
144100
|
-
var RootSchema =
|
|
144101
|
-
uri:
|
|
144102
|
-
name:
|
|
144103
|
-
_meta:
|
|
144120
|
+
var RootSchema = z55.object({
|
|
144121
|
+
uri: z55.string().startsWith("file://"),
|
|
144122
|
+
name: z55.string().optional(),
|
|
144123
|
+
_meta: z55.record(z55.string(), z55.unknown()).optional()
|
|
144104
144124
|
});
|
|
144105
144125
|
var ListRootsRequestSchema = RequestSchema.extend({
|
|
144106
|
-
method:
|
|
144126
|
+
method: z55.literal("roots/list"),
|
|
144107
144127
|
params: BaseRequestParamsSchema.optional()
|
|
144108
144128
|
});
|
|
144109
144129
|
var ListRootsResultSchema = ResultSchema.extend({
|
|
144110
|
-
roots:
|
|
144130
|
+
roots: z55.array(RootSchema)
|
|
144111
144131
|
});
|
|
144112
144132
|
var RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
144113
|
-
method:
|
|
144133
|
+
method: z55.literal("notifications/roots/list_changed"),
|
|
144114
144134
|
params: NotificationsParamsSchema.optional()
|
|
144115
144135
|
});
|
|
144116
|
-
var ClientRequestSchema =
|
|
144136
|
+
var ClientRequestSchema = z55.union([
|
|
144117
144137
|
PingRequestSchema,
|
|
144118
144138
|
InitializeRequestSchema,
|
|
144119
144139
|
CompleteRequestSchema,
|
|
@@ -144132,14 +144152,14 @@ var ClientRequestSchema = z54.union([
|
|
|
144132
144152
|
ListTasksRequestSchema,
|
|
144133
144153
|
CancelTaskRequestSchema
|
|
144134
144154
|
]);
|
|
144135
|
-
var ClientNotificationSchema =
|
|
144155
|
+
var ClientNotificationSchema = z55.union([
|
|
144136
144156
|
CancelledNotificationSchema,
|
|
144137
144157
|
ProgressNotificationSchema,
|
|
144138
144158
|
InitializedNotificationSchema,
|
|
144139
144159
|
RootsListChangedNotificationSchema,
|
|
144140
144160
|
TaskStatusNotificationSchema
|
|
144141
144161
|
]);
|
|
144142
|
-
var ClientResultSchema =
|
|
144162
|
+
var ClientResultSchema = z55.union([
|
|
144143
144163
|
EmptyResultSchema,
|
|
144144
144164
|
CreateMessageResultSchema,
|
|
144145
144165
|
CreateMessageResultWithToolsSchema,
|
|
@@ -144149,7 +144169,7 @@ var ClientResultSchema = z54.union([
|
|
|
144149
144169
|
ListTasksResultSchema,
|
|
144150
144170
|
CreateTaskResultSchema
|
|
144151
144171
|
]);
|
|
144152
|
-
var ServerRequestSchema =
|
|
144172
|
+
var ServerRequestSchema = z55.union([
|
|
144153
144173
|
PingRequestSchema,
|
|
144154
144174
|
CreateMessageRequestSchema,
|
|
144155
144175
|
ElicitRequestSchema,
|
|
@@ -144159,7 +144179,7 @@ var ServerRequestSchema = z54.union([
|
|
|
144159
144179
|
ListTasksRequestSchema,
|
|
144160
144180
|
CancelTaskRequestSchema
|
|
144161
144181
|
]);
|
|
144162
|
-
var ServerNotificationSchema =
|
|
144182
|
+
var ServerNotificationSchema = z55.union([
|
|
144163
144183
|
CancelledNotificationSchema,
|
|
144164
144184
|
ProgressNotificationSchema,
|
|
144165
144185
|
LoggingMessageNotificationSchema,
|
|
@@ -144170,7 +144190,7 @@ var ServerNotificationSchema = z54.union([
|
|
|
144170
144190
|
TaskStatusNotificationSchema,
|
|
144171
144191
|
ElicitationCompleteNotificationSchema
|
|
144172
144192
|
]);
|
|
144173
|
-
var ServerResultSchema =
|
|
144193
|
+
var ServerResultSchema = z55.union([
|
|
144174
144194
|
EmptyResultSchema,
|
|
144175
144195
|
InitializeResultSchema,
|
|
144176
144196
|
CompleteResultSchema,
|
|
@@ -145782,149 +145802,149 @@ async function pkceChallenge(length) {
|
|
|
145782
145802
|
}
|
|
145783
145803
|
|
|
145784
145804
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
145785
|
-
import * as
|
|
145786
|
-
var SafeUrlSchema =
|
|
145805
|
+
import * as z56 from "zod/v4";
|
|
145806
|
+
var SafeUrlSchema = z56.url().superRefine((val, ctx) => {
|
|
145787
145807
|
if (!URL.canParse(val)) {
|
|
145788
145808
|
ctx.addIssue({
|
|
145789
|
-
code:
|
|
145809
|
+
code: z56.ZodIssueCode.custom,
|
|
145790
145810
|
message: "URL must be parseable",
|
|
145791
145811
|
fatal: true
|
|
145792
145812
|
});
|
|
145793
|
-
return
|
|
145813
|
+
return z56.NEVER;
|
|
145794
145814
|
}
|
|
145795
145815
|
}).refine((url2) => {
|
|
145796
145816
|
const u = new URL(url2);
|
|
145797
145817
|
return u.protocol !== "javascript:" && u.protocol !== "data:" && u.protocol !== "vbscript:";
|
|
145798
145818
|
}, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
|
|
145799
|
-
var OAuthProtectedResourceMetadataSchema =
|
|
145800
|
-
resource:
|
|
145801
|
-
authorization_servers:
|
|
145802
|
-
jwks_uri:
|
|
145803
|
-
scopes_supported:
|
|
145804
|
-
bearer_methods_supported:
|
|
145805
|
-
resource_signing_alg_values_supported:
|
|
145806
|
-
resource_name:
|
|
145807
|
-
resource_documentation:
|
|
145808
|
-
resource_policy_uri:
|
|
145809
|
-
resource_tos_uri:
|
|
145810
|
-
tls_client_certificate_bound_access_tokens:
|
|
145811
|
-
authorization_details_types_supported:
|
|
145812
|
-
dpop_signing_alg_values_supported:
|
|
145813
|
-
dpop_bound_access_tokens_required:
|
|
145819
|
+
var OAuthProtectedResourceMetadataSchema = z56.looseObject({
|
|
145820
|
+
resource: z56.string().url(),
|
|
145821
|
+
authorization_servers: z56.array(SafeUrlSchema).optional(),
|
|
145822
|
+
jwks_uri: z56.string().url().optional(),
|
|
145823
|
+
scopes_supported: z56.array(z56.string()).optional(),
|
|
145824
|
+
bearer_methods_supported: z56.array(z56.string()).optional(),
|
|
145825
|
+
resource_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145826
|
+
resource_name: z56.string().optional(),
|
|
145827
|
+
resource_documentation: z56.string().optional(),
|
|
145828
|
+
resource_policy_uri: z56.string().url().optional(),
|
|
145829
|
+
resource_tos_uri: z56.string().url().optional(),
|
|
145830
|
+
tls_client_certificate_bound_access_tokens: z56.boolean().optional(),
|
|
145831
|
+
authorization_details_types_supported: z56.array(z56.string()).optional(),
|
|
145832
|
+
dpop_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145833
|
+
dpop_bound_access_tokens_required: z56.boolean().optional()
|
|
145814
145834
|
});
|
|
145815
|
-
var OAuthMetadataSchema =
|
|
145816
|
-
issuer:
|
|
145835
|
+
var OAuthMetadataSchema = z56.looseObject({
|
|
145836
|
+
issuer: z56.string(),
|
|
145817
145837
|
authorization_endpoint: SafeUrlSchema,
|
|
145818
145838
|
token_endpoint: SafeUrlSchema,
|
|
145819
145839
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
145820
|
-
scopes_supported:
|
|
145821
|
-
response_types_supported:
|
|
145822
|
-
response_modes_supported:
|
|
145823
|
-
grant_types_supported:
|
|
145824
|
-
token_endpoint_auth_methods_supported:
|
|
145825
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
145840
|
+
scopes_supported: z56.array(z56.string()).optional(),
|
|
145841
|
+
response_types_supported: z56.array(z56.string()),
|
|
145842
|
+
response_modes_supported: z56.array(z56.string()).optional(),
|
|
145843
|
+
grant_types_supported: z56.array(z56.string()).optional(),
|
|
145844
|
+
token_endpoint_auth_methods_supported: z56.array(z56.string()).optional(),
|
|
145845
|
+
token_endpoint_auth_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145826
145846
|
service_documentation: SafeUrlSchema.optional(),
|
|
145827
145847
|
revocation_endpoint: SafeUrlSchema.optional(),
|
|
145828
|
-
revocation_endpoint_auth_methods_supported:
|
|
145829
|
-
revocation_endpoint_auth_signing_alg_values_supported:
|
|
145830
|
-
introspection_endpoint:
|
|
145831
|
-
introspection_endpoint_auth_methods_supported:
|
|
145832
|
-
introspection_endpoint_auth_signing_alg_values_supported:
|
|
145833
|
-
code_challenge_methods_supported:
|
|
145834
|
-
client_id_metadata_document_supported:
|
|
145848
|
+
revocation_endpoint_auth_methods_supported: z56.array(z56.string()).optional(),
|
|
145849
|
+
revocation_endpoint_auth_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145850
|
+
introspection_endpoint: z56.string().optional(),
|
|
145851
|
+
introspection_endpoint_auth_methods_supported: z56.array(z56.string()).optional(),
|
|
145852
|
+
introspection_endpoint_auth_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145853
|
+
code_challenge_methods_supported: z56.array(z56.string()).optional(),
|
|
145854
|
+
client_id_metadata_document_supported: z56.boolean().optional()
|
|
145835
145855
|
});
|
|
145836
|
-
var OpenIdProviderMetadataSchema =
|
|
145837
|
-
issuer:
|
|
145856
|
+
var OpenIdProviderMetadataSchema = z56.looseObject({
|
|
145857
|
+
issuer: z56.string(),
|
|
145838
145858
|
authorization_endpoint: SafeUrlSchema,
|
|
145839
145859
|
token_endpoint: SafeUrlSchema,
|
|
145840
145860
|
userinfo_endpoint: SafeUrlSchema.optional(),
|
|
145841
145861
|
jwks_uri: SafeUrlSchema,
|
|
145842
145862
|
registration_endpoint: SafeUrlSchema.optional(),
|
|
145843
|
-
scopes_supported:
|
|
145844
|
-
response_types_supported:
|
|
145845
|
-
response_modes_supported:
|
|
145846
|
-
grant_types_supported:
|
|
145847
|
-
acr_values_supported:
|
|
145848
|
-
subject_types_supported:
|
|
145849
|
-
id_token_signing_alg_values_supported:
|
|
145850
|
-
id_token_encryption_alg_values_supported:
|
|
145851
|
-
id_token_encryption_enc_values_supported:
|
|
145852
|
-
userinfo_signing_alg_values_supported:
|
|
145853
|
-
userinfo_encryption_alg_values_supported:
|
|
145854
|
-
userinfo_encryption_enc_values_supported:
|
|
145855
|
-
request_object_signing_alg_values_supported:
|
|
145856
|
-
request_object_encryption_alg_values_supported:
|
|
145857
|
-
request_object_encryption_enc_values_supported:
|
|
145858
|
-
token_endpoint_auth_methods_supported:
|
|
145859
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
145860
|
-
display_values_supported:
|
|
145861
|
-
claim_types_supported:
|
|
145862
|
-
claims_supported:
|
|
145863
|
-
service_documentation:
|
|
145864
|
-
claims_locales_supported:
|
|
145865
|
-
ui_locales_supported:
|
|
145866
|
-
claims_parameter_supported:
|
|
145867
|
-
request_parameter_supported:
|
|
145868
|
-
request_uri_parameter_supported:
|
|
145869
|
-
require_request_uri_registration:
|
|
145863
|
+
scopes_supported: z56.array(z56.string()).optional(),
|
|
145864
|
+
response_types_supported: z56.array(z56.string()),
|
|
145865
|
+
response_modes_supported: z56.array(z56.string()).optional(),
|
|
145866
|
+
grant_types_supported: z56.array(z56.string()).optional(),
|
|
145867
|
+
acr_values_supported: z56.array(z56.string()).optional(),
|
|
145868
|
+
subject_types_supported: z56.array(z56.string()),
|
|
145869
|
+
id_token_signing_alg_values_supported: z56.array(z56.string()),
|
|
145870
|
+
id_token_encryption_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145871
|
+
id_token_encryption_enc_values_supported: z56.array(z56.string()).optional(),
|
|
145872
|
+
userinfo_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145873
|
+
userinfo_encryption_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145874
|
+
userinfo_encryption_enc_values_supported: z56.array(z56.string()).optional(),
|
|
145875
|
+
request_object_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145876
|
+
request_object_encryption_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145877
|
+
request_object_encryption_enc_values_supported: z56.array(z56.string()).optional(),
|
|
145878
|
+
token_endpoint_auth_methods_supported: z56.array(z56.string()).optional(),
|
|
145879
|
+
token_endpoint_auth_signing_alg_values_supported: z56.array(z56.string()).optional(),
|
|
145880
|
+
display_values_supported: z56.array(z56.string()).optional(),
|
|
145881
|
+
claim_types_supported: z56.array(z56.string()).optional(),
|
|
145882
|
+
claims_supported: z56.array(z56.string()).optional(),
|
|
145883
|
+
service_documentation: z56.string().optional(),
|
|
145884
|
+
claims_locales_supported: z56.array(z56.string()).optional(),
|
|
145885
|
+
ui_locales_supported: z56.array(z56.string()).optional(),
|
|
145886
|
+
claims_parameter_supported: z56.boolean().optional(),
|
|
145887
|
+
request_parameter_supported: z56.boolean().optional(),
|
|
145888
|
+
request_uri_parameter_supported: z56.boolean().optional(),
|
|
145889
|
+
require_request_uri_registration: z56.boolean().optional(),
|
|
145870
145890
|
op_policy_uri: SafeUrlSchema.optional(),
|
|
145871
145891
|
op_tos_uri: SafeUrlSchema.optional(),
|
|
145872
|
-
client_id_metadata_document_supported:
|
|
145892
|
+
client_id_metadata_document_supported: z56.boolean().optional()
|
|
145873
145893
|
});
|
|
145874
|
-
var OpenIdProviderDiscoveryMetadataSchema =
|
|
145894
|
+
var OpenIdProviderDiscoveryMetadataSchema = z56.object({
|
|
145875
145895
|
...OpenIdProviderMetadataSchema.shape,
|
|
145876
145896
|
...OAuthMetadataSchema.pick({
|
|
145877
145897
|
code_challenge_methods_supported: true
|
|
145878
145898
|
}).shape
|
|
145879
145899
|
});
|
|
145880
|
-
var OAuthTokensSchema =
|
|
145881
|
-
access_token:
|
|
145882
|
-
id_token:
|
|
145883
|
-
token_type:
|
|
145884
|
-
expires_in:
|
|
145885
|
-
scope:
|
|
145886
|
-
refresh_token:
|
|
145900
|
+
var OAuthTokensSchema = z56.object({
|
|
145901
|
+
access_token: z56.string(),
|
|
145902
|
+
id_token: z56.string().optional(),
|
|
145903
|
+
token_type: z56.string(),
|
|
145904
|
+
expires_in: z56.coerce.number().optional(),
|
|
145905
|
+
scope: z56.string().optional(),
|
|
145906
|
+
refresh_token: z56.string().optional()
|
|
145887
145907
|
}).strip();
|
|
145888
|
-
var OAuthErrorResponseSchema =
|
|
145889
|
-
error:
|
|
145890
|
-
error_description:
|
|
145891
|
-
error_uri:
|
|
145908
|
+
var OAuthErrorResponseSchema = z56.object({
|
|
145909
|
+
error: z56.string(),
|
|
145910
|
+
error_description: z56.string().optional(),
|
|
145911
|
+
error_uri: z56.string().optional()
|
|
145892
145912
|
});
|
|
145893
|
-
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(
|
|
145913
|
+
var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(z56.literal("").transform(() => {
|
|
145894
145914
|
return;
|
|
145895
145915
|
}));
|
|
145896
|
-
var OAuthClientMetadataSchema =
|
|
145897
|
-
redirect_uris:
|
|
145898
|
-
token_endpoint_auth_method:
|
|
145899
|
-
grant_types:
|
|
145900
|
-
response_types:
|
|
145901
|
-
client_name:
|
|
145916
|
+
var OAuthClientMetadataSchema = z56.object({
|
|
145917
|
+
redirect_uris: z56.array(SafeUrlSchema),
|
|
145918
|
+
token_endpoint_auth_method: z56.string().optional(),
|
|
145919
|
+
grant_types: z56.array(z56.string()).optional(),
|
|
145920
|
+
response_types: z56.array(z56.string()).optional(),
|
|
145921
|
+
client_name: z56.string().optional(),
|
|
145902
145922
|
client_uri: SafeUrlSchema.optional(),
|
|
145903
145923
|
logo_uri: OptionalSafeUrlSchema,
|
|
145904
|
-
scope:
|
|
145905
|
-
contacts:
|
|
145924
|
+
scope: z56.string().optional(),
|
|
145925
|
+
contacts: z56.array(z56.string()).optional(),
|
|
145906
145926
|
tos_uri: OptionalSafeUrlSchema,
|
|
145907
|
-
policy_uri:
|
|
145927
|
+
policy_uri: z56.string().optional(),
|
|
145908
145928
|
jwks_uri: SafeUrlSchema.optional(),
|
|
145909
|
-
jwks:
|
|
145910
|
-
software_id:
|
|
145911
|
-
software_version:
|
|
145912
|
-
software_statement:
|
|
145929
|
+
jwks: z56.any().optional(),
|
|
145930
|
+
software_id: z56.string().optional(),
|
|
145931
|
+
software_version: z56.string().optional(),
|
|
145932
|
+
software_statement: z56.string().optional()
|
|
145913
145933
|
}).strip();
|
|
145914
|
-
var OAuthClientInformationSchema =
|
|
145915
|
-
client_id:
|
|
145916
|
-
client_secret:
|
|
145917
|
-
client_id_issued_at:
|
|
145918
|
-
client_secret_expires_at:
|
|
145934
|
+
var OAuthClientInformationSchema = z56.object({
|
|
145935
|
+
client_id: z56.string(),
|
|
145936
|
+
client_secret: z56.string().optional(),
|
|
145937
|
+
client_id_issued_at: z56.number().optional(),
|
|
145938
|
+
client_secret_expires_at: z56.number().optional()
|
|
145919
145939
|
}).strip();
|
|
145920
145940
|
var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
|
|
145921
|
-
var OAuthClientRegistrationErrorSchema =
|
|
145922
|
-
error:
|
|
145923
|
-
error_description:
|
|
145941
|
+
var OAuthClientRegistrationErrorSchema = z56.object({
|
|
145942
|
+
error: z56.string(),
|
|
145943
|
+
error_description: z56.string().optional()
|
|
145924
145944
|
}).strip();
|
|
145925
|
-
var OAuthTokenRevocationRequestSchema =
|
|
145926
|
-
token:
|
|
145927
|
-
token_type_hint:
|
|
145945
|
+
var OAuthTokenRevocationRequestSchema = z56.object({
|
|
145946
|
+
token: z56.string(),
|
|
145947
|
+
token_type_hint: z56.string().optional()
|
|
145928
145948
|
}).strip();
|
|
145929
145949
|
|
|
145930
145950
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.30.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
|
|
@@ -148136,7 +148156,7 @@ function mirrorFilePath(projectDir) {
|
|
|
148136
148156
|
}
|
|
148137
148157
|
|
|
148138
148158
|
// packages/omo-opencode/src/features/tui-sidebar/snapshot-schema.ts
|
|
148139
|
-
import { z as
|
|
148159
|
+
import { z as z57 } from "zod";
|
|
148140
148160
|
var AGENT_STATUS_VALUES = [
|
|
148141
148161
|
"busy",
|
|
148142
148162
|
"idle",
|
|
@@ -148152,32 +148172,32 @@ var BACKGROUND_TASK_STATUS_VALUES = [
|
|
|
148152
148172
|
"cancelled",
|
|
148153
148173
|
"interrupt"
|
|
148154
148174
|
];
|
|
148155
|
-
var AgentRowSchema =
|
|
148156
|
-
name:
|
|
148157
|
-
status:
|
|
148175
|
+
var AgentRowSchema = z57.object({
|
|
148176
|
+
name: z57.string(),
|
|
148177
|
+
status: z57.enum(AGENT_STATUS_VALUES)
|
|
148158
148178
|
});
|
|
148159
|
-
var JobRowSchema =
|
|
148160
|
-
title:
|
|
148161
|
-
status:
|
|
148162
|
-
toolCalls:
|
|
148163
|
-
lastTool:
|
|
148179
|
+
var JobRowSchema = z57.object({
|
|
148180
|
+
title: z57.string(),
|
|
148181
|
+
status: z57.enum(BACKGROUND_TASK_STATUS_VALUES),
|
|
148182
|
+
toolCalls: z57.number().int().nonnegative().nullable(),
|
|
148183
|
+
lastTool: z57.string().nullable()
|
|
148164
148184
|
});
|
|
148165
|
-
var LoopLiveSchema =
|
|
148166
|
-
kind:
|
|
148167
|
-
goalsDone:
|
|
148168
|
-
goalsTotal:
|
|
148169
|
-
pass:
|
|
148170
|
-
fail:
|
|
148171
|
-
pending:
|
|
148172
|
-
blocked:
|
|
148173
|
-
activeGoal:
|
|
148185
|
+
var LoopLiveSchema = z57.object({
|
|
148186
|
+
kind: z57.literal("live"),
|
|
148187
|
+
goalsDone: z57.number().int().nonnegative(),
|
|
148188
|
+
goalsTotal: z57.number().int().nonnegative(),
|
|
148189
|
+
pass: z57.number().int().nonnegative(),
|
|
148190
|
+
fail: z57.number().int().nonnegative(),
|
|
148191
|
+
pending: z57.number().int().nonnegative(),
|
|
148192
|
+
blocked: z57.number().int().nonnegative(),
|
|
148193
|
+
activeGoal: z57.string().nullable()
|
|
148174
148194
|
});
|
|
148175
|
-
var TuiRuntimeSnapshotSchema =
|
|
148176
|
-
version:
|
|
148177
|
-
projectDir:
|
|
148178
|
-
updatedAt:
|
|
148179
|
-
activeAgents:
|
|
148180
|
-
jobBoard:
|
|
148195
|
+
var TuiRuntimeSnapshotSchema = z57.object({
|
|
148196
|
+
version: z57.literal(MIRROR_SCHEMA_VERSION),
|
|
148197
|
+
projectDir: z57.string(),
|
|
148198
|
+
updatedAt: z57.number(),
|
|
148199
|
+
activeAgents: z57.array(AgentRowSchema),
|
|
148200
|
+
jobBoard: z57.array(JobRowSchema),
|
|
148181
148201
|
loop: LoopLiveSchema.nullable()
|
|
148182
148202
|
});
|
|
148183
148203
|
|
|
@@ -148192,25 +148212,25 @@ function writeMirror(projectDir, snapshot) {
|
|
|
148192
148212
|
// packages/omo-opencode/src/features/tui-sidebar/loop-reader.ts
|
|
148193
148213
|
import { readdirSync as readdirSync32, readFileSync as readFileSync71, statSync as statSync14 } from "fs";
|
|
148194
148214
|
import { join as join137 } from "path";
|
|
148195
|
-
import { z as
|
|
148196
|
-
var CriterionSchema =
|
|
148197
|
-
status:
|
|
148215
|
+
import { z as z58 } from "zod";
|
|
148216
|
+
var CriterionSchema = z58.object({
|
|
148217
|
+
status: z58.string()
|
|
148198
148218
|
});
|
|
148199
|
-
var GoalBaseSchema =
|
|
148200
|
-
id:
|
|
148201
|
-
title:
|
|
148202
|
-
status:
|
|
148219
|
+
var GoalBaseSchema = z58.object({
|
|
148220
|
+
id: z58.string(),
|
|
148221
|
+
title: z58.string(),
|
|
148222
|
+
status: z58.string()
|
|
148203
148223
|
});
|
|
148204
|
-
var CurrentLoopSchema =
|
|
148205
|
-
version:
|
|
148206
|
-
activeGoalId:
|
|
148207
|
-
goals:
|
|
148208
|
-
successCriteria:
|
|
148224
|
+
var CurrentLoopSchema = z58.object({
|
|
148225
|
+
version: z58.literal(1),
|
|
148226
|
+
activeGoalId: z58.string().optional(),
|
|
148227
|
+
goals: z58.array(GoalBaseSchema.extend({
|
|
148228
|
+
successCriteria: z58.array(CriterionSchema)
|
|
148209
148229
|
}))
|
|
148210
148230
|
});
|
|
148211
|
-
var LegacyLoopSchema =
|
|
148212
|
-
goals:
|
|
148213
|
-
criteria:
|
|
148231
|
+
var LegacyLoopSchema = z58.object({
|
|
148232
|
+
goals: z58.array(GoalBaseSchema.extend({
|
|
148233
|
+
criteria: z58.array(CriterionSchema)
|
|
148214
148234
|
}))
|
|
148215
148235
|
});
|
|
148216
148236
|
function readActiveLoop(projectDir) {
|
|
@@ -163226,7 +163246,7 @@ function createCodegraphMcpConfig(options = {}) {
|
|
|
163226
163246
|
import { existsSync as existsSync115, readFileSync as readFileSync78 } from "fs";
|
|
163227
163247
|
import { delimiter as delimiter2, dirname as dirname50, resolve as resolve44 } from "path";
|
|
163228
163248
|
import { fileURLToPath as fileURLToPath8 } from "url";
|
|
163229
|
-
import { z as
|
|
163249
|
+
import { z as z59 } from "zod";
|
|
163230
163250
|
|
|
163231
163251
|
// packages/omo-opencode/src/mcp/cli-suffix.ts
|
|
163232
163252
|
function normalizeCliPath(path21) {
|
|
@@ -163292,8 +163312,8 @@ var PROJECT_LSP_CONFIGS = [".opencode/lsp.json", ".omo/lsp.json", ".omo/lsp-clie
|
|
|
163292
163312
|
var DAEMON_PACKAGE_NAME = "@code-yeongyu/lsp-daemon";
|
|
163293
163313
|
var OMO_LSP_DAEMON_CLI = "OMO_LSP_DAEMON_CLI";
|
|
163294
163314
|
var OMO_LSP_DAEMON_VERSION = "OMO_LSP_DAEMON_VERSION";
|
|
163295
|
-
var DaemonPackageSchema =
|
|
163296
|
-
version:
|
|
163315
|
+
var DaemonPackageSchema = z59.object({
|
|
163316
|
+
version: z59.string().min(1)
|
|
163297
163317
|
});
|
|
163298
163318
|
var LSP_BOOTSTRAP_SCRIPT = [
|
|
163299
163319
|
"const { existsSync } = require('node:fs')",
|
|
@@ -167558,14 +167578,14 @@ class OpencodeClient2 extends HeyApiClient {
|
|
|
167558
167578
|
// node_modules/.bun/@opencode-ai+sdk@1.15.13/node_modules/@opencode-ai/sdk/dist/v2/server.js
|
|
167559
167579
|
var import_cross_spawn3 = __toESM(require_cross_spawn(), 1);
|
|
167560
167580
|
// packages/omo-opencode/src/plugin/native-skills.ts
|
|
167561
|
-
import { z as
|
|
167562
|
-
var NativeSkillEntrySchema =
|
|
167563
|
-
name:
|
|
167564
|
-
description:
|
|
167565
|
-
location:
|
|
167566
|
-
content:
|
|
167581
|
+
import { z as z60 } from "zod";
|
|
167582
|
+
var NativeSkillEntrySchema = z60.object({
|
|
167583
|
+
name: z60.string(),
|
|
167584
|
+
description: z60.string().default(""),
|
|
167585
|
+
location: z60.string(),
|
|
167586
|
+
content: z60.string()
|
|
167567
167587
|
});
|
|
167568
|
-
var NativeSkillEntriesSchema =
|
|
167588
|
+
var NativeSkillEntriesSchema = z60.array(NativeSkillEntrySchema);
|
|
167569
167589
|
function getObjectProperty(value, property) {
|
|
167570
167590
|
if (typeof value !== "object" || value === null)
|
|
167571
167591
|
return;
|
|
@@ -168710,7 +168730,7 @@ async function resolveParticipant2(teamRunId, sessionID, config3, deps) {
|
|
|
168710
168730
|
}
|
|
168711
168731
|
|
|
168712
168732
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-inline-spec.ts
|
|
168713
|
-
import { z as
|
|
168733
|
+
import { z as z61 } from "zod";
|
|
168714
168734
|
init_types5();
|
|
168715
168735
|
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." }] } }).';
|
|
168716
168736
|
function omitEmptyStringArgs(rawArgs) {
|
|
@@ -168719,10 +168739,10 @@ function omitEmptyStringArgs(rawArgs) {
|
|
|
168719
168739
|
}
|
|
168720
168740
|
return Object.fromEntries(Object.entries(rawArgs).filter(([, value]) => value !== ""));
|
|
168721
168741
|
}
|
|
168722
|
-
var TeamCreateArgsSchema =
|
|
168723
|
-
teamName:
|
|
168724
|
-
inline_spec:
|
|
168725
|
-
leadSessionId:
|
|
168742
|
+
var TeamCreateArgsSchema = z61.preprocess(omitEmptyStringArgs, z61.object({
|
|
168743
|
+
teamName: z61.string().min(1).nullish(),
|
|
168744
|
+
inline_spec: z61.unknown().nullish(),
|
|
168745
|
+
leadSessionId: z61.string().nullish()
|
|
168726
168746
|
}).superRefine((value, ctx) => {
|
|
168727
168747
|
const optionCount = Number(value.teamName != null) + Number(value.inline_spec != null);
|
|
168728
168748
|
if (optionCount !== 1) {
|
|
@@ -168843,7 +168863,7 @@ function createTeamCreateTool(config3, client5, bgMgr, tmuxMgr, executorConfig,
|
|
|
168843
168863
|
});
|
|
168844
168864
|
}
|
|
168845
168865
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
168846
|
-
import { z as
|
|
168866
|
+
import { z as z62 } from "zod";
|
|
168847
168867
|
// packages/omo-opencode/src/features/team-mode/team-runtime/shutdown.ts
|
|
168848
168868
|
init_store3();
|
|
168849
168869
|
init_shutdown_helpers();
|
|
@@ -168932,13 +168952,13 @@ async function rejectShutdown(teamRunId, memberName, rejectorName, reason, confi
|
|
|
168932
168952
|
|
|
168933
168953
|
// packages/omo-opencode/src/features/team-mode/tools/lifecycle-shutdown-tools.ts
|
|
168934
168954
|
init_store2();
|
|
168935
|
-
var TeamDeleteArgsSchema =
|
|
168936
|
-
var TeamShutdownRequestArgsSchema =
|
|
168937
|
-
var TeamApproveShutdownArgsSchema =
|
|
168938
|
-
var TeamRejectShutdownArgsSchema =
|
|
168939
|
-
teamRunId:
|
|
168940
|
-
memberName:
|
|
168941
|
-
reason:
|
|
168955
|
+
var TeamDeleteArgsSchema = z62.object({ teamRunId: z62.string().min(1), force: z62.boolean().optional() });
|
|
168956
|
+
var TeamShutdownRequestArgsSchema = z62.object({ teamRunId: z62.string().min(1), targetMemberName: z62.string().min(1) });
|
|
168957
|
+
var TeamApproveShutdownArgsSchema = z62.object({ teamRunId: z62.string().min(1), memberName: z62.string().min(1) });
|
|
168958
|
+
var TeamRejectShutdownArgsSchema = z62.object({
|
|
168959
|
+
teamRunId: z62.string().min(1),
|
|
168960
|
+
memberName: z62.string().min(1),
|
|
168961
|
+
reason: z62.string().min(1)
|
|
168942
168962
|
});
|
|
168943
168963
|
var defaultTeamShutdownToolDeps = {
|
|
168944
168964
|
listActiveTeams,
|
|
@@ -172774,6 +172794,7 @@ function writePostHogActivityState(stateDir, nextState, diagnostics) {
|
|
|
172774
172794
|
// packages/telemetry-core/src/constants.ts
|
|
172775
172795
|
var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com";
|
|
172776
172796
|
var DEFAULT_POSTHOG_API_KEY = "phc_CFJhj5HyvA62QPhvyaUCtaq23aUfznnijg5VaaGkNk74";
|
|
172797
|
+
var UNCONFIGURED_POSTHOG_API_KEY = "phc_REPLACE_ME_OMO_NATIVE";
|
|
172777
172798
|
|
|
172778
172799
|
// packages/telemetry-core/src/env.ts
|
|
172779
172800
|
var TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
|
|
@@ -172795,6 +172816,9 @@ function shouldDisableTelemetry(input) {
|
|
|
172795
172816
|
const env2 = input.env ?? process.env;
|
|
172796
172817
|
const globalPrefix = input.globalEnvPrefix ?? "OMO";
|
|
172797
172818
|
const prefixes = Array.from(new Set([globalPrefix, input.productEnvPrefix]));
|
|
172819
|
+
if (isDisableFlag(env2["DO_NOT_TRACK"])) {
|
|
172820
|
+
return true;
|
|
172821
|
+
}
|
|
172798
172822
|
for (const prefix of prefixes) {
|
|
172799
172823
|
if (isDisableFlag(env2[`${prefix}_DISABLE_POSTHOG`])) {
|
|
172800
172824
|
return true;
|
|
@@ -172808,18 +172832,15 @@ function shouldDisableTelemetry(input) {
|
|
|
172808
172832
|
function getTelemetryApiKey(env2 = process.env, defaultApiKey = DEFAULT_POSTHOG_API_KEY) {
|
|
172809
172833
|
return env2["POSTHOG_API_KEY"]?.trim() ?? defaultApiKey;
|
|
172810
172834
|
}
|
|
172811
|
-
function
|
|
172812
|
-
|
|
172835
|
+
function isConfiguredTelemetryApiKey(apiKey) {
|
|
172836
|
+
const normalized = apiKey.trim();
|
|
172837
|
+
return normalized.length > 0 && normalized !== UNCONFIGURED_POSTHOG_API_KEY;
|
|
172813
172838
|
}
|
|
172814
|
-
|
|
172815
|
-
|
|
172816
|
-
import { createHash as createHash9 } from "crypto";
|
|
172817
|
-
import os6 from "os";
|
|
172818
|
-
function getDefaultTelemetryOsProvider() {
|
|
172819
|
-
return os6;
|
|
172839
|
+
function hasTelemetryApiKey(env2, defaultApiKey) {
|
|
172840
|
+
return isConfiguredTelemetryApiKey(getTelemetryApiKey(env2, defaultApiKey));
|
|
172820
172841
|
}
|
|
172821
|
-
function
|
|
172822
|
-
return
|
|
172842
|
+
function getTelemetryHost(env2 = process.env, defaultHost = DEFAULT_POSTHOG_HOST) {
|
|
172843
|
+
return env2["POSTHOG_HOST"]?.trim() || defaultHost;
|
|
172823
172844
|
}
|
|
172824
172845
|
|
|
172825
172846
|
// node_modules/.bun/posthog-node@5.35.12/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
@@ -174145,7 +174166,7 @@ var FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/
|
|
|
174145
174166
|
var nodeStackLineParser = (line, platform2) => {
|
|
174146
174167
|
const lineMatch = line.match(FULL_MATCH);
|
|
174147
174168
|
if (lineMatch) {
|
|
174148
|
-
let
|
|
174169
|
+
let object19;
|
|
174149
174170
|
let method;
|
|
174150
174171
|
let functionName;
|
|
174151
174172
|
let typeName;
|
|
@@ -174156,18 +174177,18 @@ var nodeStackLineParser = (line, platform2) => {
|
|
|
174156
174177
|
if (functionName[methodStart - 1] === ".")
|
|
174157
174178
|
methodStart--;
|
|
174158
174179
|
if (methodStart > 0) {
|
|
174159
|
-
|
|
174180
|
+
object19 = functionName.slice(0, methodStart);
|
|
174160
174181
|
method = functionName.slice(methodStart + 1);
|
|
174161
|
-
const objectEnd =
|
|
174182
|
+
const objectEnd = object19.indexOf(".Module");
|
|
174162
174183
|
if (objectEnd > 0) {
|
|
174163
174184
|
functionName = functionName.slice(objectEnd + 1);
|
|
174164
|
-
|
|
174185
|
+
object19 = object19.slice(0, objectEnd);
|
|
174165
174186
|
}
|
|
174166
174187
|
}
|
|
174167
174188
|
typeName = undefined;
|
|
174168
174189
|
}
|
|
174169
174190
|
if (method) {
|
|
174170
|
-
typeName =
|
|
174191
|
+
typeName = object19;
|
|
174171
174192
|
methodName = method;
|
|
174172
174193
|
}
|
|
174173
174194
|
if (method === "<anonymous>") {
|
|
@@ -177989,6 +178010,16 @@ class PostHog extends PostHogBackendClient {
|
|
|
177989
178010
|
}
|
|
177990
178011
|
}
|
|
177991
178012
|
|
|
178013
|
+
// packages/telemetry-core/src/machine-id.ts
|
|
178014
|
+
import { createHash as createHash9 } from "crypto";
|
|
178015
|
+
import os6 from "os";
|
|
178016
|
+
function getDefaultTelemetryOsProvider() {
|
|
178017
|
+
return os6;
|
|
178018
|
+
}
|
|
178019
|
+
function getTelemetryDistinctId(machineIdPrefix, osProvider = getDefaultTelemetryOsProvider()) {
|
|
178020
|
+
return createHash9("sha256").update(`${machineIdPrefix}${osProvider.hostname()}`).digest("hex");
|
|
178021
|
+
}
|
|
178022
|
+
|
|
177992
178023
|
// packages/telemetry-core/src/posthog-client.ts
|
|
177993
178024
|
var NO_OP_CLIENT = {
|
|
177994
178025
|
enabled: false,
|
|
@@ -178023,7 +178054,7 @@ function createDefaultPostHogTransport(apiKey, options) {
|
|
|
178023
178054
|
}
|
|
178024
178055
|
function isTelemetryClientEnabled(input) {
|
|
178025
178056
|
const env2 = input.env ?? process.env;
|
|
178026
|
-
return !shouldDisableTelemetry({ env: env2, productEnvPrefix: input.product.productEnvPrefix }) &&
|
|
178057
|
+
return !shouldDisableTelemetry({ env: env2, productEnvPrefix: input.product.productEnvPrefix }) && hasTelemetryApiKey(env2, input.product.defaultApiKey);
|
|
178027
178058
|
}
|
|
178028
178059
|
function createTelemetryClient(input) {
|
|
178029
178060
|
if (!isTelemetryClientEnabled(input)) {
|
|
@@ -178089,7 +178120,8 @@ function createTransport(input) {
|
|
|
178089
178120
|
flushAt: 1,
|
|
178090
178121
|
flushInterval: 0,
|
|
178091
178122
|
host: getTelemetryHost(env2, input.product.defaultHost),
|
|
178092
|
-
disableGeoip: false
|
|
178123
|
+
disableGeoip: input.product.disableGeoip ?? false,
|
|
178124
|
+
...input.product.transportOptions
|
|
178093
178125
|
});
|
|
178094
178126
|
} catch (error) {
|
|
178095
178127
|
input.diagnostics?.({
|