@tickernelz/paperclip-pro 2026.1002.2 → 2026.1002.3

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.js CHANGED
@@ -17561,7 +17561,7 @@ var init_execution_projection = __esm({
17561
17561
 
17562
17562
  // ../packages/shared/src/types/pixels-office.ts
17563
17563
  import { z as z65 } from "zod";
17564
- var pixelsOfficeTaskStatusSchema, pixelsOfficeAgentStatusSchema, pixelsOfficeRunStatusSchema, pixelsOfficeSeatAssignmentSchema, pixelsOfficeSeatAssignmentsSchema;
17564
+ var pixelsOfficeTaskStatusSchema, pixelsOfficeAgentStatusSchema, pixelsOfficeRunStatusSchema, pixelsOfficeCollaborationKindSchema, PIXELS_OFFICE_TIMELINE_MAX_WINDOW_MS, pixelsOfficeTimelineEventKindSchema, pixelsOfficeTimelineQuerySchema, pixelsOfficeSeatAssignmentSchema, pixelsOfficeSeatAssignmentsSchema;
17565
17565
  var init_pixels_office = __esm({
17566
17566
  "../packages/shared/src/types/pixels-office.ts"() {
17567
17567
  "use strict";
@@ -17569,6 +17569,24 @@ var init_pixels_office = __esm({
17569
17569
  pixelsOfficeTaskStatusSchema = z65.enum(ISSUE_STATUSES);
17570
17570
  pixelsOfficeAgentStatusSchema = z65.enum(AGENT_STATUSES);
17571
17571
  pixelsOfficeRunStatusSchema = z65.enum(["queued", "running"]);
17572
+ pixelsOfficeCollaborationKindSchema = z65.enum(["interaction", "delegation"]);
17573
+ PIXELS_OFFICE_TIMELINE_MAX_WINDOW_MS = 24 * 60 * 60 * 1e3;
17574
+ pixelsOfficeTimelineEventKindSchema = z65.enum([
17575
+ "run_started",
17576
+ "run_finished",
17577
+ "issue_status",
17578
+ "interaction",
17579
+ "approval",
17580
+ "routine",
17581
+ "budget"
17582
+ ]);
17583
+ pixelsOfficeTimelineQuerySchema = z65.object({
17584
+ from: z65.string().datetime(),
17585
+ to: z65.string().datetime(),
17586
+ cursor: z65.string().min(1).max(200).optional()
17587
+ }).strict().refine((query) => Date.parse(query.to) > Date.parse(query.from), { message: "to must be after from" }).refine((query) => Date.parse(query.to) - Date.parse(query.from) <= PIXELS_OFFICE_TIMELINE_MAX_WINDOW_MS, {
17588
+ message: "Timeline window cannot exceed 24 hours"
17589
+ });
17572
17590
  pixelsOfficeSeatAssignmentSchema = z65.object({
17573
17591
  agentId: z65.string().guid(),
17574
17592
  characterIndex: z65.number().int().min(0),
@@ -20334,6 +20352,14 @@ var init_heartbeat_runs = __esm({
20334
20352
  table.agentId,
20335
20353
  table.startedAt
20336
20354
  ),
20355
+ companyStartedAtIdx: index8("heartbeat_runs_company_started_at_idx").on(
20356
+ table.companyId,
20357
+ table.startedAt
20358
+ ),
20359
+ companyFinishedAtIdx: index8("heartbeat_runs_company_finished_at_idx").on(
20360
+ table.companyId,
20361
+ table.finishedAt
20362
+ ),
20337
20363
  companyResponsibleUserIdx: index8("heartbeat_runs_company_responsible_user_idx").on(
20338
20364
  table.companyId,
20339
20365
  table.responsibleUserId,