@m6d/cortex 0.12.0 → 0.12.1

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.d.ts CHANGED
@@ -79,6 +79,7 @@ declare const runFinishedEventSchema: z.ZodObject<{
79
79
  stopped: "stopped";
80
80
  parent_cancelled: "parent_cancelled";
81
81
  lost: "lost";
82
+ output_limit: "output_limit";
82
83
  }>>;
83
84
  result: z.ZodUnknown;
84
85
  waits: z.ZodArray<z.ZodObject<{
@@ -1358,6 +1359,7 @@ declare const runRecordSchema: z.ZodObject<{
1358
1359
  stopped: "stopped";
1359
1360
  parent_cancelled: "parent_cancelled";
1360
1361
  lost: "lost";
1362
+ output_limit: "output_limit";
1361
1363
  }>>;
1362
1364
  result: z.ZodUnknown;
1363
1365
  waits: z.ZodArray<z.ZodObject<{
@@ -1455,6 +1457,7 @@ declare const fireAnswerSchema: z.ZodUnion<readonly [
1455
1457
  stopped: "stopped";
1456
1458
  parent_cancelled: "parent_cancelled";
1457
1459
  lost: "lost";
1460
+ output_limit: "output_limit";
1458
1461
  }>>;
1459
1462
  result: z.ZodUnknown;
1460
1463
  waits: z.ZodArray<z.ZodObject<{
@@ -1523,7 +1526,7 @@ export declare function createTriggerClient(config: TriggerClientConfig): {
1523
1526
  kind: "turn" | "subagent" | "tool";
1524
1527
  subagentRunId: string | null;
1525
1528
  status: "completed" | "cancelled" | "failed" | "running" | "waiting";
1526
- reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | null;
1529
+ reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | "output_limit" | null;
1527
1530
  result: unknown;
1528
1531
  waits: {
1529
1532
  kind: "approval" | "client_tool";
@@ -1565,7 +1568,7 @@ export declare function createTriggerClient(config: TriggerClientConfig): {
1565
1568
  kind: "turn" | "subagent" | "tool";
1566
1569
  subagentRunId: string | null;
1567
1570
  status: "completed" | "cancelled" | "failed" | "running" | "waiting";
1568
- reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | null;
1571
+ reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | "output_limit" | null;
1569
1572
  result: unknown;
1570
1573
  waits: {
1571
1574
  kind: "approval" | "client_tool";
@@ -1597,7 +1600,7 @@ export declare function createTriggerClient(config: TriggerClientConfig): {
1597
1600
  kind: "turn" | "subagent" | "tool";
1598
1601
  subagentRunId: string | null;
1599
1602
  status: "completed" | "cancelled" | "failed" | "running" | "waiting";
1600
- reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | null;
1603
+ reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | "output_limit" | null;
1601
1604
  result: unknown;
1602
1605
  waits: {
1603
1606
  kind: "approval" | "client_tool";
@@ -1621,7 +1624,7 @@ export declare function createTriggerClient(config: TriggerClientConfig): {
1621
1624
  kind: "turn" | "subagent" | "tool";
1622
1625
  subagentRunId: string | null;
1623
1626
  status: "completed" | "cancelled" | "failed" | "running" | "waiting";
1624
- reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | null;
1627
+ reason: "timeout" | "cancelled" | "no_output" | "invalid_output" | "stopped" | "parent_cancelled" | "lost" | "output_limit" | null;
1625
1628
  result: unknown;
1626
1629
  waits: {
1627
1630
  kind: "approval" | "client_tool";
@@ -5316,7 +5319,7 @@ export type ManagementProcedures = {
5316
5319
  id: string;
5317
5320
  kind: "turn" | "subagent" | "tool";
5318
5321
  status: "running" | "waiting" | "completed" | "failed" | "cancelled";
5319
- reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
5322
+ reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | "output_limit" | null;
5320
5323
  createdAt: string;
5321
5324
  finishedAt: string | null;
5322
5325
  source: "user" | "trigger" | "schedule" | "run" | null;
@@ -5492,7 +5495,7 @@ export type ManagementProcedures = {
5492
5495
  id: string;
5493
5496
  kind: "turn" | "subagent" | "tool";
5494
5497
  status: "running" | "waiting" | "completed" | "failed" | "cancelled";
5495
- reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
5498
+ reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | "output_limit" | null;
5496
5499
  createdAt: string;
5497
5500
  finishedAt: string | null;
5498
5501
  source: "user" | "trigger" | "schedule" | "run" | null;
@@ -7671,7 +7674,7 @@ export type ManagementProcedures = {
7671
7674
  kind: "turn" | "subagent" | "tool";
7672
7675
  subagentRunId: string | null;
7673
7676
  status: "running" | "waiting" | "completed" | "failed" | "cancelled";
7674
- reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
7677
+ reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | "output_limit" | null;
7675
7678
  result: unknown;
7676
7679
  waits: Array<{
7677
7680
  kind: "approval" | "client_tool";
@@ -7755,7 +7758,7 @@ export type ManagementProcedures = {
7755
7758
  kind: "turn" | "subagent" | "tool";
7756
7759
  subagentRunId: string | null;
7757
7760
  status: "running" | "waiting" | "completed" | "failed" | "cancelled";
7758
- reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | null;
7761
+ reason: "no_output" | "invalid_output" | "stopped" | "cancelled" | "parent_cancelled" | "lost" | "timeout" | "output_limit" | null;
7759
7762
  result: unknown;
7760
7763
  waits: Array<{
7761
7764
  kind: "approval" | "client_tool";
package/dist/index.js CHANGED
@@ -13424,7 +13424,8 @@ var RUN_REASONS = [
13424
13424
  "cancelled",
13425
13425
  "parent_cancelled",
13426
13426
  "lost",
13427
- "timeout"
13427
+ "timeout",
13428
+ "output_limit"
13428
13429
  ];
13429
13430
  var INPUT_DELIVERIES = ["prompt", "steer", "followUp", "answer", "note"];
13430
13431
  var INPUT_REFUSALS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m6d/cortex",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Cortex for TypeScript backends: serve the server protocol and dataset hosts, fire triggers, and call the management API",
5
5
  "license": "MIT",
6
6
  "type": "module",