oh-my-opencode 3.1.2 → 3.1.4

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.
@@ -0,0 +1,47 @@
1
+ import { z } from "zod";
2
+ export declare const TaskStatusSchema: z.ZodEnum<{
3
+ pending: "pending";
4
+ in_progress: "in_progress";
5
+ completed: "completed";
6
+ }>;
7
+ export type TaskStatus = z.infer<typeof TaskStatusSchema>;
8
+ export declare const TaskSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ subject: z.ZodString;
11
+ description: z.ZodString;
12
+ activeForm: z.ZodOptional<z.ZodString>;
13
+ owner: z.ZodOptional<z.ZodString>;
14
+ status: z.ZodEnum<{
15
+ pending: "pending";
16
+ in_progress: "in_progress";
17
+ completed: "completed";
18
+ }>;
19
+ blocks: z.ZodArray<z.ZodString>;
20
+ blockedBy: z.ZodArray<z.ZodString>;
21
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
+ }, z.core.$strip>;
23
+ export type Task = z.infer<typeof TaskSchema>;
24
+ export declare const TaskCreateInputSchema: z.ZodObject<{
25
+ subject: z.ZodString;
26
+ description: z.ZodString;
27
+ activeForm: z.ZodOptional<z.ZodString>;
28
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
+ }, z.core.$strip>;
30
+ export type TaskCreateInput = z.infer<typeof TaskCreateInputSchema>;
31
+ export declare const TaskUpdateInputSchema: z.ZodObject<{
32
+ taskId: z.ZodString;
33
+ subject: z.ZodOptional<z.ZodString>;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ activeForm: z.ZodOptional<z.ZodString>;
36
+ status: z.ZodOptional<z.ZodEnum<{
37
+ pending: "pending";
38
+ in_progress: "in_progress";
39
+ completed: "completed";
40
+ deleted: "deleted";
41
+ }>>;
42
+ addBlocks: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ addBlockedBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
+ owner: z.ZodOptional<z.ZodString>;
45
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
46
+ }, z.core.$strip>;
47
+ export type TaskUpdateInput = z.infer<typeof TaskUpdateInputSchema>;
@@ -0,0 +1 @@
1
+ export {};
@@ -30,3 +30,4 @@ export { createStartWorkHook } from "./start-work";
30
30
  export { createAtlasHook } from "./atlas";
31
31
  export { createDelegateTaskRetryHook } from "./delegate-task-retry";
32
32
  export { createQuestionLabelTruncatorHook } from "./question-label-truncator";
33
+ export { createSubagentQuestionBlockerHook } from "./subagent-question-blocker";
@@ -1,5 +1,10 @@
1
1
  export declare const CODE_BLOCK_PATTERN: RegExp;
2
2
  export declare const INLINE_CODE_PATTERN: RegExp;
3
+ /**
4
+ * Determines if the agent is a planner-type agent.
5
+ * Planner agents should NOT be told to call plan agent (they ARE the planner).
6
+ */
7
+ export declare function isPlannerAgent(agentName?: string): boolean;
3
8
  /**
4
9
  * Generates the ultrawork message based on agent context.
5
10
  * Planner agents get context-gathering focused instructions.
@@ -0,0 +1,2 @@
1
+ import type { Hooks } from "@opencode-ai/plugin";
2
+ export declare function createSubagentQuestionBlockerHook(): Hooks;