@kmmao/happy-wire 0.16.3 → 0.17.0

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/index.cjs CHANGED
@@ -1458,7 +1458,11 @@ const CreateTaskBodySchema = z__namespace.object({
1458
1458
  // "anthropic" or AiBackendProfile.profileKey for the account. Optional:
1459
1459
  // when omitted the server falls back to Project.supervisorConfig.defaultProfileId
1460
1460
  // via the unified runtimeProfileResolver (feature-flagged).
1461
- profileId: z__namespace.string().optional()
1461
+ profileId: z__namespace.string().optional(),
1462
+ // When true, the CLI creates a dedicated git worktree at execution time
1463
+ // instead of the App creating one upfront. Enables isolation for cron/webhook
1464
+ // triggered tasks as well as manual tasks (wire 0.17.0+).
1465
+ worktreeIsolation: z__namespace.boolean().optional()
1462
1466
  });
1463
1467
  const TaskTriggerDataSchema = z__namespace.object({
1464
1468
  type: z__namespace.literal("task-trigger"),
@@ -1485,7 +1489,11 @@ const TaskTriggerDataSchema = z__namespace.object({
1485
1489
  // backward compatibility; starting from wire 0.14.0 + server unified resolver
1486
1490
  // these are always populated for scheduled/webhook/manual tasks.
1487
1491
  profileId: z__namespace.string().optional(),
1488
- runtimeProfile: ResolvedRuntimeProfileSchema.optional()
1492
+ runtimeProfile: ResolvedRuntimeProfileSchema.optional(),
1493
+ // When true, the CLI creates a dedicated git worktree from `directory` at
1494
+ // execution time rather than running directly in `directory`. Optional for
1495
+ // backward compatibility (wire 0.17.0+).
1496
+ worktreeIsolation: z__namespace.boolean().optional()
1489
1497
  });
1490
1498
  const TaskOutcomeSchema = z__namespace.enum([
1491
1499
  "completed",
package/dist/index.d.cts CHANGED
@@ -1570,8 +1570,8 @@ declare const AutomationPrioritySchema: z.ZodEnum<{
1570
1570
  }>;
1571
1571
  type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
1572
1572
  declare const AutomationJobKindSchema: z.ZodEnum<{
1573
- supervisor: "supervisor";
1574
1573
  webhook: "webhook";
1574
+ supervisor: "supervisor";
1575
1575
  agent_loop: "agent_loop";
1576
1576
  task: "task";
1577
1577
  }>;
@@ -1588,8 +1588,8 @@ type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
1588
1588
  declare const AutomationJobSummarySchema: z.ZodObject<{
1589
1589
  id: z.ZodString;
1590
1590
  kind: z.ZodEnum<{
1591
- supervisor: "supervisor";
1592
1591
  webhook: "webhook";
1592
+ supervisor: "supervisor";
1593
1593
  agent_loop: "agent_loop";
1594
1594
  task: "task";
1595
1595
  }>;
@@ -1751,8 +1751,8 @@ declare const AutomationStateSchema: z.ZodObject<{
1751
1751
  recentJobs: z.ZodArray<z.ZodObject<{
1752
1752
  id: z.ZodString;
1753
1753
  kind: z.ZodEnum<{
1754
- supervisor: "supervisor";
1755
1754
  webhook: "webhook";
1755
+ supervisor: "supervisor";
1756
1756
  agent_loop: "agent_loop";
1757
1757
  task: "task";
1758
1758
  }>;
@@ -1993,8 +1993,8 @@ declare const DaemonStateSchema: z.ZodObject<{
1993
1993
  recentJobs: z.ZodArray<z.ZodObject<{
1994
1994
  id: z.ZodString;
1995
1995
  kind: z.ZodEnum<{
1996
- supervisor: "supervisor";
1997
1996
  webhook: "webhook";
1997
+ supervisor: "supervisor";
1998
1998
  agent_loop: "agent_loop";
1999
1999
  task: "task";
2000
2000
  }>;
@@ -2162,8 +2162,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2162
2162
  }>;
2163
2163
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2164
2164
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2165
- session: "session";
2166
2165
  user: "user";
2166
+ session: "session";
2167
2167
  supervisor: "supervisor";
2168
2168
  }>;
2169
2169
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
@@ -2196,8 +2196,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2196
2196
  repo_map: "repo_map";
2197
2197
  }>;
2198
2198
  contributorType: z.ZodEnum<{
2199
- session: "session";
2200
2199
  user: "user";
2200
+ session: "session";
2201
2201
  supervisor: "supervisor";
2202
2202
  }>;
2203
2203
  action: z.ZodEnum<{
@@ -2534,9 +2534,9 @@ declare const TaskStatusSchema: z.ZodEnum<{
2534
2534
  }>;
2535
2535
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
2536
2536
  declare const TaskTriggerTypeSchema: z.ZodEnum<{
2537
- webhook: "webhook";
2538
2537
  manual: "manual";
2539
2538
  cron: "cron";
2539
+ webhook: "webhook";
2540
2540
  }>;
2541
2541
  type TaskTriggerType = z.infer<typeof TaskTriggerTypeSchema>;
2542
2542
  declare const TaskSummarySchema: z.ZodObject<{
@@ -2557,9 +2557,9 @@ declare const TaskSummarySchema: z.ZodObject<{
2557
2557
  dispatching: "dispatching";
2558
2558
  }>;
2559
2559
  triggerType: z.ZodEnum<{
2560
- webhook: "webhook";
2561
2560
  manual: "manual";
2562
2561
  cron: "cron";
2562
+ webhook: "webhook";
2563
2563
  }>;
2564
2564
  triggerRef: z.ZodOptional<z.ZodString>;
2565
2565
  attempt: z.ZodNumber;
@@ -2586,6 +2586,7 @@ declare const CreateTaskBodySchema: z.ZodObject<{
2586
2586
  maxAttempts: z.ZodDefault<z.ZodNumber>;
2587
2587
  skillIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2588
2588
  profileId: z.ZodOptional<z.ZodString>;
2589
+ worktreeIsolation: z.ZodOptional<z.ZodBoolean>;
2589
2590
  }, z.core.$strip>;
2590
2591
  type CreateTaskBody = z.infer<typeof CreateTaskBodySchema>;
2591
2592
  declare const TaskTriggerDataSchema: z.ZodObject<{
@@ -2651,6 +2652,7 @@ declare const TaskTriggerDataSchema: z.ZodObject<{
2651
2652
  }>>;
2652
2653
  defaultModelMode: z.ZodOptional<z.ZodString>;
2653
2654
  }, z.core.$strip>>;
2655
+ worktreeIsolation: z.ZodOptional<z.ZodBoolean>;
2654
2656
  }, z.core.$strip>;
2655
2657
  type TaskTriggerData = z.infer<typeof TaskTriggerDataSchema>;
2656
2658
  declare const TaskOutcomeSchema: z.ZodEnum<{
package/dist/index.d.mts CHANGED
@@ -1570,8 +1570,8 @@ declare const AutomationPrioritySchema: z.ZodEnum<{
1570
1570
  }>;
1571
1571
  type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
1572
1572
  declare const AutomationJobKindSchema: z.ZodEnum<{
1573
- supervisor: "supervisor";
1574
1573
  webhook: "webhook";
1574
+ supervisor: "supervisor";
1575
1575
  agent_loop: "agent_loop";
1576
1576
  task: "task";
1577
1577
  }>;
@@ -1588,8 +1588,8 @@ type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
1588
1588
  declare const AutomationJobSummarySchema: z.ZodObject<{
1589
1589
  id: z.ZodString;
1590
1590
  kind: z.ZodEnum<{
1591
- supervisor: "supervisor";
1592
1591
  webhook: "webhook";
1592
+ supervisor: "supervisor";
1593
1593
  agent_loop: "agent_loop";
1594
1594
  task: "task";
1595
1595
  }>;
@@ -1751,8 +1751,8 @@ declare const AutomationStateSchema: z.ZodObject<{
1751
1751
  recentJobs: z.ZodArray<z.ZodObject<{
1752
1752
  id: z.ZodString;
1753
1753
  kind: z.ZodEnum<{
1754
- supervisor: "supervisor";
1755
1754
  webhook: "webhook";
1755
+ supervisor: "supervisor";
1756
1756
  agent_loop: "agent_loop";
1757
1757
  task: "task";
1758
1758
  }>;
@@ -1993,8 +1993,8 @@ declare const DaemonStateSchema: z.ZodObject<{
1993
1993
  recentJobs: z.ZodArray<z.ZodObject<{
1994
1994
  id: z.ZodString;
1995
1995
  kind: z.ZodEnum<{
1996
- supervisor: "supervisor";
1997
1996
  webhook: "webhook";
1997
+ supervisor: "supervisor";
1998
1998
  agent_loop: "agent_loop";
1999
1999
  task: "task";
2000
2000
  }>;
@@ -2162,8 +2162,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2162
2162
  }>;
2163
2163
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2164
2164
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2165
- session: "session";
2166
2165
  user: "user";
2166
+ session: "session";
2167
2167
  supervisor: "supervisor";
2168
2168
  }>;
2169
2169
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
@@ -2196,8 +2196,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2196
2196
  repo_map: "repo_map";
2197
2197
  }>;
2198
2198
  contributorType: z.ZodEnum<{
2199
- session: "session";
2200
2199
  user: "user";
2200
+ session: "session";
2201
2201
  supervisor: "supervisor";
2202
2202
  }>;
2203
2203
  action: z.ZodEnum<{
@@ -2534,9 +2534,9 @@ declare const TaskStatusSchema: z.ZodEnum<{
2534
2534
  }>;
2535
2535
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
2536
2536
  declare const TaskTriggerTypeSchema: z.ZodEnum<{
2537
- webhook: "webhook";
2538
2537
  manual: "manual";
2539
2538
  cron: "cron";
2539
+ webhook: "webhook";
2540
2540
  }>;
2541
2541
  type TaskTriggerType = z.infer<typeof TaskTriggerTypeSchema>;
2542
2542
  declare const TaskSummarySchema: z.ZodObject<{
@@ -2557,9 +2557,9 @@ declare const TaskSummarySchema: z.ZodObject<{
2557
2557
  dispatching: "dispatching";
2558
2558
  }>;
2559
2559
  triggerType: z.ZodEnum<{
2560
- webhook: "webhook";
2561
2560
  manual: "manual";
2562
2561
  cron: "cron";
2562
+ webhook: "webhook";
2563
2563
  }>;
2564
2564
  triggerRef: z.ZodOptional<z.ZodString>;
2565
2565
  attempt: z.ZodNumber;
@@ -2586,6 +2586,7 @@ declare const CreateTaskBodySchema: z.ZodObject<{
2586
2586
  maxAttempts: z.ZodDefault<z.ZodNumber>;
2587
2587
  skillIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2588
2588
  profileId: z.ZodOptional<z.ZodString>;
2589
+ worktreeIsolation: z.ZodOptional<z.ZodBoolean>;
2589
2590
  }, z.core.$strip>;
2590
2591
  type CreateTaskBody = z.infer<typeof CreateTaskBodySchema>;
2591
2592
  declare const TaskTriggerDataSchema: z.ZodObject<{
@@ -2651,6 +2652,7 @@ declare const TaskTriggerDataSchema: z.ZodObject<{
2651
2652
  }>>;
2652
2653
  defaultModelMode: z.ZodOptional<z.ZodString>;
2653
2654
  }, z.core.$strip>>;
2655
+ worktreeIsolation: z.ZodOptional<z.ZodBoolean>;
2654
2656
  }, z.core.$strip>;
2655
2657
  type TaskTriggerData = z.infer<typeof TaskTriggerDataSchema>;
2656
2658
  declare const TaskOutcomeSchema: z.ZodEnum<{
package/dist/index.mjs CHANGED
@@ -1438,7 +1438,11 @@ const CreateTaskBodySchema = z.object({
1438
1438
  // "anthropic" or AiBackendProfile.profileKey for the account. Optional:
1439
1439
  // when omitted the server falls back to Project.supervisorConfig.defaultProfileId
1440
1440
  // via the unified runtimeProfileResolver (feature-flagged).
1441
- profileId: z.string().optional()
1441
+ profileId: z.string().optional(),
1442
+ // When true, the CLI creates a dedicated git worktree at execution time
1443
+ // instead of the App creating one upfront. Enables isolation for cron/webhook
1444
+ // triggered tasks as well as manual tasks (wire 0.17.0+).
1445
+ worktreeIsolation: z.boolean().optional()
1442
1446
  });
1443
1447
  const TaskTriggerDataSchema = z.object({
1444
1448
  type: z.literal("task-trigger"),
@@ -1465,7 +1469,11 @@ const TaskTriggerDataSchema = z.object({
1465
1469
  // backward compatibility; starting from wire 0.14.0 + server unified resolver
1466
1470
  // these are always populated for scheduled/webhook/manual tasks.
1467
1471
  profileId: z.string().optional(),
1468
- runtimeProfile: ResolvedRuntimeProfileSchema.optional()
1472
+ runtimeProfile: ResolvedRuntimeProfileSchema.optional(),
1473
+ // When true, the CLI creates a dedicated git worktree from `directory` at
1474
+ // execution time rather than running directly in `directory`. Optional for
1475
+ // backward compatibility (wire 0.17.0+).
1476
+ worktreeIsolation: z.boolean().optional()
1469
1477
  });
1470
1478
  const TaskOutcomeSchema = z.enum([
1471
1479
  "completed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmmao/happy-wire",
3
- "version": "0.16.3",
3
+ "version": "0.17.0",
4
4
  "description": "Shared message wire types and Zod schemas for Happy clients and services",
5
5
  "author": "kmmao",
6
6
  "license": "MIT",