@cadraos/sdk 0.3.8 → 0.3.10
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/board-host/index.d.cts +74 -6
- package/dist/board-host/index.d.ts +74 -6
- package/dist/board-host/server/index.d.cts +81 -6
- package/dist/board-host/server/index.d.ts +81 -6
- package/dist/chat/index.cjs +2 -47
- package/dist/chat/index.cjs.map +1 -1
- package/dist/chat/index.d.cts +8 -9
- package/dist/chat/index.d.ts +8 -9
- package/dist/chat/index.js +2 -47
- package/dist/chat/index.js.map +1 -1
- package/dist/index.cjs +0 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +0 -43
- package/dist/index.js.map +1 -1
- package/dist/kanban/engine/index.cjs +113 -31
- package/dist/kanban/engine/index.cjs.map +1 -1
- package/dist/kanban/engine/index.d.cts +112 -6
- package/dist/kanban/engine/index.d.ts +112 -6
- package/dist/kanban/engine/index.js +113 -31
- package/dist/kanban/engine/index.js.map +1 -1
- package/dist/kanban/index.cjs +807 -158
- package/dist/kanban/index.cjs.map +1 -1
- package/dist/kanban/index.d.cts +382 -11
- package/dist/kanban/index.d.ts +382 -11
- package/dist/kanban/index.js +802 -159
- package/dist/kanban/index.js.map +1 -1
- package/dist/teams/index.cjs +0 -43
- package/dist/teams/index.cjs.map +1 -1
- package/dist/teams/index.d.cts +7 -0
- package/dist/teams/index.d.ts +7 -0
- package/dist/teams/index.js +0 -43
- package/dist/teams/index.js.map +1 -1
- package/package.json +1 -1
package/dist/teams/index.d.cts
CHANGED
|
@@ -2705,6 +2705,13 @@ interface KanbanCard {
|
|
|
2705
2705
|
executionId?: string;
|
|
2706
2706
|
/** Summary of the card's current/last run, if any. */
|
|
2707
2707
|
run?: KanbanRunSummary;
|
|
2708
|
+
/**
|
|
2709
|
+
* When this card next becomes DUE on a scheduled lane (ISO string) — maps to
|
|
2710
|
+
* `agentic_card.next_due_at` (spec §3a / STORY-003/004). Drives the board's
|
|
2711
|
+
* ⧗ "due" chip: `next_due_at ≤ now` → due (the next sweep will pick it up).
|
|
2712
|
+
* OPTIONAL — absent → no due chip (today's render).
|
|
2713
|
+
*/
|
|
2714
|
+
nextDueAt?: string;
|
|
2708
2715
|
/** Who created the card. */
|
|
2709
2716
|
createdBy?: string;
|
|
2710
2717
|
/** When the card was created (ISO string). */
|
package/dist/teams/index.d.ts
CHANGED
|
@@ -2705,6 +2705,13 @@ interface KanbanCard {
|
|
|
2705
2705
|
executionId?: string;
|
|
2706
2706
|
/** Summary of the card's current/last run, if any. */
|
|
2707
2707
|
run?: KanbanRunSummary;
|
|
2708
|
+
/**
|
|
2709
|
+
* When this card next becomes DUE on a scheduled lane (ISO string) — maps to
|
|
2710
|
+
* `agentic_card.next_due_at` (spec §3a / STORY-003/004). Drives the board's
|
|
2711
|
+
* ⧗ "due" chip: `next_due_at ≤ now` → due (the next sweep will pick it up).
|
|
2712
|
+
* OPTIONAL — absent → no due chip (today's render).
|
|
2713
|
+
*/
|
|
2714
|
+
nextDueAt?: string;
|
|
2708
2715
|
/** Who created the card. */
|
|
2709
2716
|
createdBy?: string;
|
|
2710
2717
|
/** When the card was created (ISO string). */
|
package/dist/teams/index.js
CHANGED
|
@@ -669,15 +669,6 @@ var ExecutionStreamControllerImpl = class {
|
|
|
669
669
|
sseClient = null;
|
|
670
670
|
status = "connecting";
|
|
671
671
|
reconnectAttempts = 0;
|
|
672
|
-
// CAD-39 / webchat dual-plane create-connect race. `hasConnected` flips true on
|
|
673
|
-
// the first successful SSE open; `notFoundRetries` bounds retries of a 404
|
|
674
|
-
// encountered BEFORE we ever connect (the run row is persisted slightly AFTER
|
|
675
|
-
// the client opens the stream — the norm on the webchat path where msg-api owns
|
|
676
|
-
// the executionId and cadra persists the agent_executions row via an async
|
|
677
|
-
// worker callback). See handleConnectionError.
|
|
678
|
-
hasConnected = false;
|
|
679
|
-
notFoundRetries = 0;
|
|
680
|
-
maxConnectRaceRetries = 3;
|
|
681
672
|
seenEventIds = /* @__PURE__ */ new Set();
|
|
682
673
|
_lastEventId = null;
|
|
683
674
|
activityTimeoutId = null;
|
|
@@ -817,8 +808,6 @@ var ExecutionStreamControllerImpl = class {
|
|
|
817
808
|
if (connected) {
|
|
818
809
|
this.status = "connected";
|
|
819
810
|
this.reconnectAttempts = 0;
|
|
820
|
-
this.hasConnected = true;
|
|
821
|
-
this.notFoundRetries = 0;
|
|
822
811
|
this.resetActivityTimeout();
|
|
823
812
|
}
|
|
824
813
|
this.emit("connectionChange", { connected, usingFallback: false });
|
|
@@ -1108,38 +1097,6 @@ var ExecutionStreamControllerImpl = class {
|
|
|
1108
1097
|
return;
|
|
1109
1098
|
}
|
|
1110
1099
|
const msg = error instanceof Error ? error.message : String(error);
|
|
1111
|
-
const isNotFound = /\b404\b/.test(msg);
|
|
1112
|
-
const isAuthFailure = /\b40[13]\b/.test(msg) || /INVALID_API_KEY|INVALID_REQUEST/.test(msg);
|
|
1113
|
-
if (isNotFound && !isAuthFailure && !this.hasConnected) {
|
|
1114
|
-
if (this.notFoundRetries < this.maxConnectRaceRetries) {
|
|
1115
|
-
this.notFoundRetries++;
|
|
1116
|
-
this.status = "reconnecting";
|
|
1117
|
-
const delay = Math.min(
|
|
1118
|
-
this.config.reconnectBaseDelayMs * this.notFoundRetries,
|
|
1119
|
-
this.config.reconnectMaxDelayMs
|
|
1120
|
-
);
|
|
1121
|
-
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
1122
|
-
if (this.status === "closed") {
|
|
1123
|
-
return;
|
|
1124
|
-
}
|
|
1125
|
-
try {
|
|
1126
|
-
await this.connectSSE();
|
|
1127
|
-
} catch (retryError) {
|
|
1128
|
-
await this.handleConnectionError(retryError);
|
|
1129
|
-
}
|
|
1130
|
-
return;
|
|
1131
|
-
}
|
|
1132
|
-
if (this.pollingEnabled) {
|
|
1133
|
-
if (this.sseClient) {
|
|
1134
|
-
this.sseClient.disconnect();
|
|
1135
|
-
this.sseClient = null;
|
|
1136
|
-
}
|
|
1137
|
-
this.status = "fallback_polling";
|
|
1138
|
-
this.emit("connectionChange", { connected: false, usingFallback: true });
|
|
1139
|
-
this.startPolling();
|
|
1140
|
-
return;
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
1100
|
if (/\b4\d\d\b/.test(msg) || /INVALID_API_KEY|INVALID_REQUEST/.test(msg)) {
|
|
1144
1101
|
if (this.sseClient) {
|
|
1145
1102
|
this.sseClient.disconnect();
|