@astralform/js 7.4.0 → 7.5.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.cjs CHANGED
@@ -389,15 +389,16 @@ function isApiKeyConfig(config) {
389
389
  }
390
390
  var AstralformClient = class {
391
391
  constructor(config) {
392
- // --- Code mode: the app user's projects ---
392
+ // --- Projects: the repositories this app user works with ---
393
393
  /**
394
394
  * The projects (GitHub repositories) this app user works with, and what they
395
395
  * may add.
396
396
  *
397
- * A project list is per app user within a code-mode agent: the developer
398
- * connects the workspace's GitHub account, and each user curates their own
399
- * list from what that connection covers. Every method 404s on a chat-mode
400
- * agent, so the surface is invisible rather than empty there.
397
+ * A project list is per app user: the developer connects the workspace's GitHub
398
+ * account, and each user curates their own list from what that connection
399
+ * covers. There is no agent-level gate an agent with no GitHub lists nothing,
400
+ * reports `not_installed` from `available()`, and refuses `add()`. Read
401
+ * {@link AgentInfo.codeProjectsEnabled} to decide whether to show the surface.
401
402
  */
402
403
  this.code = {
403
404
  projects: {
@@ -695,9 +696,10 @@ var AstralformClient = class {
695
696
  /**
696
697
  * A page of conversations, newest-updated first.
697
698
  *
698
- * `options.repository` narrows to one project's tasks (`owner/repo`) on a
699
- * code-mode agent — the same paging applies within the filter, so a client
700
- * showing tasks per project pages each project separately.
699
+ * `options.repository` narrows to one project's tasks (`owner/repo`) the same
700
+ * paging applies within the filter, so a client showing tasks per project pages
701
+ * each project separately. Tasks that named no repository fall outside every
702
+ * such filter; list them with no filter at all.
701
703
  */
702
704
  async getConversations(limit = 50, offset = 0, options) {
703
705
  const safeLimit = Math.max(1, Math.min(200, Math.floor(Number(limit))));
@@ -1798,7 +1800,7 @@ var ChatSession = class {
1798
1800
  image_mode: options?.imageMode,
1799
1801
  video_mode: options?.videoMode,
1800
1802
  goal: options?.goal,
1801
- // The project this task belongs to, on a code-mode agent. Write-once
1803
+ // The project this task belongs to, when it has one. Write-once
1802
1804
  // server-side: sent on every turn, honoured on the first.
1803
1805
  repository: options?.repository,
1804
1806
  // Per-request model choice (client-side model selection).
@@ -2653,23 +2655,8 @@ var StreamManager = class {
2653
2655
  this.setState("streaming");
2654
2656
  try {
2655
2657
  await this.session.send(content, {
2656
- // Address the send explicitly. `ChatSession.send` otherwise falls back
2657
- // to `session.conversationId`, which LAGS this pointer: a restore
2658
- // assigns it synchronously but only reaches the next switch's own
2659
- // `loadConversation` an await later, so between the two the session
2660
- // still names the conversation the user left. The manager's pointer
2661
- // moved the moment the user clicked; it is the authority.
2662
- conversationId: target ?? void 0,
2663
- agentName: options?.agentName,
2664
- uploadIds: options?.uploadIds,
2665
- planMode: options?.planMode,
2666
- imageMode: options?.imageMode,
2667
- videoMode: options?.videoMode,
2668
- goal: options?.goal,
2669
- provider: options?.provider,
2670
- model: options?.model,
2671
- reasoningEffort: options?.reasoningEffort,
2672
- temperature: options?.temperature
2658
+ ...options,
2659
+ conversationId: target ?? void 0
2673
2660
  });
2674
2661
  } catch {
2675
2662
  }