@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 +13 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -23
- package/dist/index.d.ts +56 -23
- package/dist/index.js +13 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -389,15 +389,16 @@ function isApiKeyConfig(config) {
|
|
|
389
389
|
}
|
|
390
390
|
var AstralformClient = class {
|
|
391
391
|
constructor(config) {
|
|
392
|
-
// ---
|
|
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
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
*
|
|
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`)
|
|
699
|
-
*
|
|
700
|
-
*
|
|
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,
|
|
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
|
-
|
|
2657
|
-
|
|
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
|
}
|