@astralform/js 4.0.0 → 4.1.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.d.cts CHANGED
@@ -638,6 +638,12 @@ interface ChatStreamRequest {
638
638
  upload_ids?: string[];
639
639
  agent_name?: string;
640
640
  plan_mode?: boolean;
641
+ /**
642
+ * Start a durable long-horizon goal for this run (goal mode). The backend mints
643
+ * an agent_goal from this text and drives the run under a budget until the
644
+ * objective is genuinely complete. A blank/omitted value runs a normal turn.
645
+ */
646
+ goal?: string;
641
647
  /**
642
648
  * Per-request model choice (client-side model selection), wire shape.
643
649
  * `provider` and `model` are paired; omit to reuse the thread's last model.
@@ -723,6 +729,12 @@ interface SendOptions$1 extends ModelChoiceOptions {
723
729
  uploadIds?: string[];
724
730
  agentName?: string;
725
731
  planMode?: boolean;
732
+ /**
733
+ * Start a durable long-horizon goal for this run (goal mode). The text becomes
734
+ * the goal's objective; the backend keeps the agent working under a budget until
735
+ * it's complete. Omit for a normal turn.
736
+ */
737
+ goal?: string;
726
738
  }
727
739
  /**
728
740
  * A selectable model for one of the team's connected providers, from
@@ -1141,6 +1153,11 @@ interface SendOptions extends ModelChoiceOptions {
1141
1153
  agentName?: string;
1142
1154
  uploadIds?: string[];
1143
1155
  planMode?: boolean;
1156
+ /**
1157
+ * Start a durable long-horizon goal for this run (goal mode) — the text is the
1158
+ * goal objective the backend drives to completion. Omit for a normal turn.
1159
+ */
1160
+ goal?: string;
1144
1161
  }
1145
1162
  type StreamManagerEvent = {
1146
1163
  type: "stateChange";
package/dist/index.d.ts CHANGED
@@ -638,6 +638,12 @@ interface ChatStreamRequest {
638
638
  upload_ids?: string[];
639
639
  agent_name?: string;
640
640
  plan_mode?: boolean;
641
+ /**
642
+ * Start a durable long-horizon goal for this run (goal mode). The backend mints
643
+ * an agent_goal from this text and drives the run under a budget until the
644
+ * objective is genuinely complete. A blank/omitted value runs a normal turn.
645
+ */
646
+ goal?: string;
641
647
  /**
642
648
  * Per-request model choice (client-side model selection), wire shape.
643
649
  * `provider` and `model` are paired; omit to reuse the thread's last model.
@@ -723,6 +729,12 @@ interface SendOptions$1 extends ModelChoiceOptions {
723
729
  uploadIds?: string[];
724
730
  agentName?: string;
725
731
  planMode?: boolean;
732
+ /**
733
+ * Start a durable long-horizon goal for this run (goal mode). The text becomes
734
+ * the goal's objective; the backend keeps the agent working under a budget until
735
+ * it's complete. Omit for a normal turn.
736
+ */
737
+ goal?: string;
726
738
  }
727
739
  /**
728
740
  * A selectable model for one of the team's connected providers, from
@@ -1141,6 +1153,11 @@ interface SendOptions extends ModelChoiceOptions {
1141
1153
  agentName?: string;
1142
1154
  uploadIds?: string[];
1143
1155
  planMode?: boolean;
1156
+ /**
1157
+ * Start a durable long-horizon goal for this run (goal mode) — the text is the
1158
+ * goal objective the backend drives to completion. Omit for a normal turn.
1159
+ */
1160
+ goal?: string;
1144
1161
  }
1145
1162
  type StreamManagerEvent = {
1146
1163
  type: "stateChange";
package/dist/index.js CHANGED
@@ -1302,6 +1302,7 @@ var ChatSession = class {
1302
1302
  upload_ids: options?.uploadIds,
1303
1303
  agent_name: options?.agentName,
1304
1304
  plan_mode: options?.planMode,
1305
+ goal: options?.goal,
1305
1306
  // Per-request model choice (client-side model selection).
1306
1307
  provider: options?.provider,
1307
1308
  model: options?.model,
@@ -1865,6 +1866,7 @@ var StreamManager = class {
1865
1866
  agentName: options?.agentName,
1866
1867
  uploadIds: options?.uploadIds,
1867
1868
  planMode: options?.planMode,
1869
+ goal: options?.goal,
1868
1870
  provider: options?.provider,
1869
1871
  model: options?.model,
1870
1872
  reasoningEffort: options?.reasoningEffort,