@astralform/js 7.4.0 → 7.4.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.cts CHANGED
@@ -759,9 +759,11 @@ interface ChatStreamRequest {
759
759
  /**
760
760
  * Which project (GitHub repository, `owner/repo`) this task belongs to.
761
761
  *
762
- * Required on the FIRST turn of a conversation on a code-mode agent and
763
- * ignored afterwards a task is bound to one repository for life, so a
764
- * different repository means a new task. Chat-mode agents ignore it entirely.
762
+ * Required on the FIRST turn of a conversation on a code-mode agent, which
763
+ * binds it. A later turn may omit it or repeat the same value; a DIFFERENT
764
+ * value is refused (409), not ignored — a task is bound to one repository for
765
+ * life, so a different repository means a new task. Chat-mode agents ignore
766
+ * it entirely.
765
767
  * Astralform >= 0.70.0.
766
768
  */
767
769
  repository?: string;
@@ -1064,10 +1066,11 @@ interface SendOptions$1 extends ModelChoiceOptions {
1064
1066
  /**
1065
1067
  * The project this task belongs to (`owner/repo`), on a code-mode agent.
1066
1068
  *
1067
- * Send it on the turn that STARTS a task; the binding is write-once, so later
1068
- * turns can omit it (sending a different one is refused). A first turn without
1069
- * it on a code-mode agent is refused too the run needs a repository before it
1070
- * can hold a credential scoped to one. Astralform >= 0.70.0.
1069
+ * Send it on the turn that STARTS a task; the binding is write-once, so a
1070
+ * later turn may omit it or repeat the same value, and a DIFFERENT value is
1071
+ * refused (409) rather than ignored. A first turn without it on a code-mode
1072
+ * agent is refused too (400) — the run needs a repository before it can hold a
1073
+ * credential scoped to one. Astralform >= 0.70.0.
1071
1074
  */
1072
1075
  repository?: string;
1073
1076
  }
@@ -1816,6 +1819,17 @@ interface SendOptions extends ModelChoiceOptions {
1816
1819
  * goal objective the backend drives to completion. Omit for a normal turn.
1817
1820
  */
1818
1821
  goal?: string;
1822
+ /**
1823
+ * The project this task belongs to (`owner/repo`), on a code-mode agent.
1824
+ *
1825
+ * Write-once server-side, and the refusal is the part that matters: the FIRST
1826
+ * turn binds the task, a later turn may omit it or repeat the same value, and
1827
+ * a DIFFERENT value is refused (409) rather than ignored — silently acting on
1828
+ * the wrong repository is the failure that rule exists to prevent. A first
1829
+ * turn without it on a code-mode agent is refused too (400). Astralform
1830
+ * >= 0.70.0.
1831
+ */
1832
+ repository?: string;
1819
1833
  }
1820
1834
  type StreamManagerEvent = {
1821
1835
  type: "stateChange";
package/dist/index.d.ts CHANGED
@@ -759,9 +759,11 @@ interface ChatStreamRequest {
759
759
  /**
760
760
  * Which project (GitHub repository, `owner/repo`) this task belongs to.
761
761
  *
762
- * Required on the FIRST turn of a conversation on a code-mode agent and
763
- * ignored afterwards a task is bound to one repository for life, so a
764
- * different repository means a new task. Chat-mode agents ignore it entirely.
762
+ * Required on the FIRST turn of a conversation on a code-mode agent, which
763
+ * binds it. A later turn may omit it or repeat the same value; a DIFFERENT
764
+ * value is refused (409), not ignored — a task is bound to one repository for
765
+ * life, so a different repository means a new task. Chat-mode agents ignore
766
+ * it entirely.
765
767
  * Astralform >= 0.70.0.
766
768
  */
767
769
  repository?: string;
@@ -1064,10 +1066,11 @@ interface SendOptions$1 extends ModelChoiceOptions {
1064
1066
  /**
1065
1067
  * The project this task belongs to (`owner/repo`), on a code-mode agent.
1066
1068
  *
1067
- * Send it on the turn that STARTS a task; the binding is write-once, so later
1068
- * turns can omit it (sending a different one is refused). A first turn without
1069
- * it on a code-mode agent is refused too the run needs a repository before it
1070
- * can hold a credential scoped to one. Astralform >= 0.70.0.
1069
+ * Send it on the turn that STARTS a task; the binding is write-once, so a
1070
+ * later turn may omit it or repeat the same value, and a DIFFERENT value is
1071
+ * refused (409) rather than ignored. A first turn without it on a code-mode
1072
+ * agent is refused too (400) — the run needs a repository before it can hold a
1073
+ * credential scoped to one. Astralform >= 0.70.0.
1071
1074
  */
1072
1075
  repository?: string;
1073
1076
  }
@@ -1816,6 +1819,17 @@ interface SendOptions extends ModelChoiceOptions {
1816
1819
  * goal objective the backend drives to completion. Omit for a normal turn.
1817
1820
  */
1818
1821
  goal?: string;
1822
+ /**
1823
+ * The project this task belongs to (`owner/repo`), on a code-mode agent.
1824
+ *
1825
+ * Write-once server-side, and the refusal is the part that matters: the FIRST
1826
+ * turn binds the task, a later turn may omit it or repeat the same value, and
1827
+ * a DIFFERENT value is refused (409) rather than ignored — silently acting on
1828
+ * the wrong repository is the failure that rule exists to prevent. A first
1829
+ * turn without it on a code-mode agent is refused too (400). Astralform
1830
+ * >= 0.70.0.
1831
+ */
1832
+ repository?: string;
1819
1833
  }
1820
1834
  type StreamManagerEvent = {
1821
1835
  type: "stateChange";
package/dist/index.js CHANGED
@@ -2602,23 +2602,8 @@ var StreamManager = class {
2602
2602
  this.setState("streaming");
2603
2603
  try {
2604
2604
  await this.session.send(content, {
2605
- // Address the send explicitly. `ChatSession.send` otherwise falls back
2606
- // to `session.conversationId`, which LAGS this pointer: a restore
2607
- // assigns it synchronously but only reaches the next switch's own
2608
- // `loadConversation` an await later, so between the two the session
2609
- // still names the conversation the user left. The manager's pointer
2610
- // moved the moment the user clicked; it is the authority.
2611
- conversationId: target ?? void 0,
2612
- agentName: options?.agentName,
2613
- uploadIds: options?.uploadIds,
2614
- planMode: options?.planMode,
2615
- imageMode: options?.imageMode,
2616
- videoMode: options?.videoMode,
2617
- goal: options?.goal,
2618
- provider: options?.provider,
2619
- model: options?.model,
2620
- reasoningEffort: options?.reasoningEffort,
2621
- temperature: options?.temperature
2605
+ ...options,
2606
+ conversationId: target ?? void 0
2622
2607
  });
2623
2608
  } catch {
2624
2609
  }