@vibes.diy/api-types 14.3.334 → 14.3.335

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/app.d.ts CHANGED
@@ -1160,6 +1160,13 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
1160
1160
  repaired: string[];
1161
1161
  attempts: number;
1162
1162
  } | undefined;
1163
+ publishHold?: {
1164
+ findings: {
1165
+ file: string;
1166
+ line: number;
1167
+ message: string;
1168
+ }[];
1169
+ } | undefined;
1163
1170
  savedBy?: "agent" | "person" | undefined;
1164
1171
  } | {
1165
1172
  blockId: string;
package/chat.d.ts CHANGED
@@ -2442,6 +2442,13 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2442
2442
  repaired: string[];
2443
2443
  attempts: number;
2444
2444
  } | undefined;
2445
+ publishHold?: {
2446
+ findings: {
2447
+ file: string;
2448
+ line: number;
2449
+ message: string;
2450
+ }[];
2451
+ } | undefined;
2445
2452
  savedBy?: "agent" | "person" | undefined;
2446
2453
  } | {
2447
2454
  blockId: string;
@@ -3180,6 +3187,13 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3180
3187
  repaired: string[];
3181
3188
  attempts: number;
3182
3189
  } | undefined;
3190
+ publishHold?: {
3191
+ findings: {
3192
+ file: string;
3193
+ line: number;
3194
+ message: string;
3195
+ }[];
3196
+ } | undefined;
3183
3197
  savedBy?: "agent" | "person" | undefined;
3184
3198
  } | {
3185
3199
  blockId: string;
@@ -3939,6 +3953,13 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3939
3953
  repaired: string[];
3940
3954
  attempts: number;
3941
3955
  } | undefined;
3956
+ publishHold?: {
3957
+ findings: {
3958
+ file: string;
3959
+ line: number;
3960
+ message: string;
3961
+ }[];
3962
+ } | undefined;
3942
3963
  savedBy?: "agent" | "person" | undefined;
3943
3964
  } | {
3944
3965
  blockId: string;
@@ -4701,6 +4722,13 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4701
4722
  repaired: string[];
4702
4723
  attempts: number;
4703
4724
  } | undefined;
4725
+ publishHold?: {
4726
+ findings: {
4727
+ file: string;
4728
+ line: number;
4729
+ message: string;
4730
+ }[];
4731
+ } | undefined;
4704
4732
  savedBy?: "agent" | "person" | undefined;
4705
4733
  } | {
4706
4734
  blockId: string;
@@ -5475,6 +5503,13 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5475
5503
  repaired: string[];
5476
5504
  attempts: number;
5477
5505
  } | undefined;
5506
+ publishHold?: {
5507
+ findings: {
5508
+ file: string;
5509
+ line: number;
5510
+ message: string;
5511
+ }[];
5512
+ } | undefined;
5478
5513
  savedBy?: "agent" | "person" | undefined;
5479
5514
  } | {
5480
5515
  blockId: string;
package/index.d.ts CHANGED
@@ -79,6 +79,7 @@ export * from "./credits-copy.js";
79
79
  export * from "./asset.js";
80
80
  export * from "./asset-extensions.js";
81
81
  export * from "./report.js";
82
+ export * from "./report-activity-engaged.js";
82
83
  export * from "./home-feed.js";
83
84
  export * from "./related-vibes.js";
84
85
  export * from "./agent-discussion-entry.js";
package/index.js CHANGED
@@ -78,6 +78,7 @@ export * from "./credits-copy.js";
78
78
  export * from "./asset.js";
79
79
  export * from "./asset-extensions.js";
80
80
  export * from "./report.js";
81
+ export * from "./report-activity-engaged.js";
81
82
  export * from "./home-feed.js";
82
83
  export * from "./related-vibes.js";
83
84
  export * from "./agent-discussion-entry.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "14.3.334",
3
+ "version": "14.3.335",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -25,9 +25,9 @@
25
25
  "dependencies": {
26
26
  "@adviser/cement": "~0.5.37",
27
27
  "@cloudflare/workers-types": "~5.20261101.1",
28
- "@vibes.diy/call-ai-v2": "14.3.334",
29
- "@vibes.diy/identity": "14.3.334",
30
- "@vibes.diy/vibe-types": "14.3.334",
28
+ "@vibes.diy/call-ai-v2": "14.3.335",
29
+ "@vibes.diy/identity": "14.3.335",
30
+ "@vibes.diy/vibe-types": "14.3.335",
31
31
  "arktype": "~2.2.9"
32
32
  },
33
33
  "repository": {
@@ -0,0 +1,10 @@
1
+ import type { ResReportActivityOwnerRow } from "./report.js";
2
+ export declare const ENGAGED_MIN_ACTIVE_DAYS = 2;
3
+ export declare const ENGAGED_MIN_APPS = 2;
4
+ export declare const ENGAGED_MIN_SESSION_MINUTES_EXCLUSIVE = 15;
5
+ export declare const ENGAGED_MIN_CODE_CHANGES = 5;
6
+ export declare function isEngagedActivityRow(args: {
7
+ readonly row: Pick<ResReportActivityOwnerRow, "guest" | "activeDays" | "firstSeen" | "previousActiveDay" | "sessionMinutes" | "apps">;
8
+ readonly day: string;
9
+ readonly ignoreStaffWriters: boolean;
10
+ }): boolean;
@@ -0,0 +1,27 @@
1
+ export const ENGAGED_MIN_ACTIVE_DAYS = 2;
2
+ export const ENGAGED_MIN_APPS = 2;
3
+ export const ENGAGED_MIN_SESSION_MINUTES_EXCLUSIVE = 15;
4
+ export const ENGAGED_MIN_CODE_CHANGES = 5;
5
+ export function isEngagedActivityRow(args) {
6
+ const { row, day, ignoreStaffWriters } = args;
7
+ if (row.guest !== true)
8
+ return true;
9
+ if (row.previousActiveDay !== undefined && row.previousActiveDay < day)
10
+ return true;
11
+ if (row.firstSeen !== undefined && row.firstSeen.slice(0, 10) < day)
12
+ return true;
13
+ if (row.activeDays >= ENGAGED_MIN_ACTIVE_DAYS)
14
+ return true;
15
+ if (row.apps.length >= ENGAGED_MIN_APPS)
16
+ return true;
17
+ if ((row.sessionMinutes ?? 0) > ENGAGED_MIN_SESSION_MINUTES_EXCLUSIVE)
18
+ return true;
19
+ let codeChanges = 0;
20
+ for (const app of row.apps) {
21
+ const writers = ignoreStaffWriters ? app.otherWriters.filter((w) => w.staff === false) : app.otherWriters;
22
+ if (writers.length > 0)
23
+ return true;
24
+ codeChanges += app.codeChanges;
25
+ }
26
+ return codeChanges >= ENGAGED_MIN_CODE_CHANGES;
27
+ }