@arbidocs/sdk 0.3.57 → 0.3.59
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/{browser-CGVC2mgM.d.cts → browser-pMy_ZH9T.d.cts} +20 -16
- package/dist/{browser-CGVC2mgM.d.ts → browser-pMy_ZH9T.d.ts} +20 -16
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/index.cjs +26 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +26 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2441,6 +2441,7 @@ declare class Arbi {
|
|
|
2441
2441
|
last_config?: string | null | undefined;
|
|
2442
2442
|
pinned_workspaces: string[];
|
|
2443
2443
|
pinned_templates: string[];
|
|
2444
|
+
pinned_skills: string[];
|
|
2444
2445
|
tableviews: {
|
|
2445
2446
|
workspace: string;
|
|
2446
2447
|
name: string;
|
|
@@ -2495,6 +2496,7 @@ declare class Arbi {
|
|
|
2495
2496
|
MEMORY_ENABLED: boolean;
|
|
2496
2497
|
SKILLS_ENABLED: boolean;
|
|
2497
2498
|
SKILL_CREATION: boolean;
|
|
2499
|
+
MEMORY_CREATION: boolean;
|
|
2498
2500
|
REVIEW_ENABLED: boolean;
|
|
2499
2501
|
PERSONA: string;
|
|
2500
2502
|
AGENT_MODEL_NAME: string;
|
|
@@ -2512,7 +2514,7 @@ declare class Arbi {
|
|
|
2512
2514
|
ENABLE_THINKING: boolean;
|
|
2513
2515
|
MODEL_NAME: string;
|
|
2514
2516
|
SYSTEM_INSTRUCTION: string;
|
|
2515
|
-
|
|
2517
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2516
2518
|
TEMPERATURE: number;
|
|
2517
2519
|
MAX_TOKENS: number;
|
|
2518
2520
|
};
|
|
@@ -2523,7 +2525,7 @@ declare class Arbi {
|
|
|
2523
2525
|
SYSTEM_INSTRUCTION: string;
|
|
2524
2526
|
TEMPERATURE: number;
|
|
2525
2527
|
MAX_TOKENS: number;
|
|
2526
|
-
|
|
2528
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2527
2529
|
};
|
|
2528
2530
|
EvaluatorLLM: {
|
|
2529
2531
|
API_TYPE: "local" | "remote";
|
|
@@ -2532,14 +2534,14 @@ declare class Arbi {
|
|
|
2532
2534
|
SYSTEM_INSTRUCTION: string;
|
|
2533
2535
|
TEMPERATURE: number;
|
|
2534
2536
|
MAX_TOKENS: number;
|
|
2535
|
-
|
|
2537
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2536
2538
|
};
|
|
2537
2539
|
TitleLLM: {
|
|
2538
2540
|
API_TYPE: "local" | "remote";
|
|
2539
2541
|
ENABLE_THINKING: boolean;
|
|
2540
2542
|
MODEL_NAME: string;
|
|
2541
2543
|
SYSTEM_INSTRUCTION: string;
|
|
2542
|
-
|
|
2544
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2543
2545
|
TEMPERATURE: number;
|
|
2544
2546
|
MAX_TOKENS: number;
|
|
2545
2547
|
};
|
|
@@ -2550,7 +2552,7 @@ declare class Arbi {
|
|
|
2550
2552
|
SYSTEM_INSTRUCTION: string;
|
|
2551
2553
|
TEMPERATURE: number;
|
|
2552
2554
|
MAX_TOKENS: number;
|
|
2553
|
-
|
|
2555
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2554
2556
|
COMPACTION_THRESHOLD_TOKENS: number;
|
|
2555
2557
|
COMPACTION_KEEP_RECENT: number;
|
|
2556
2558
|
};
|
|
@@ -2559,7 +2561,7 @@ declare class Arbi {
|
|
|
2559
2561
|
ENABLE_THINKING: boolean;
|
|
2560
2562
|
MODEL_NAME: string;
|
|
2561
2563
|
SYSTEM_INSTRUCTION: string;
|
|
2562
|
-
|
|
2564
|
+
MAX_TOKEN_CONTEXT_TO_ANSWER: number;
|
|
2563
2565
|
TEMPERATURE: number;
|
|
2564
2566
|
MAX_TOKENS: number;
|
|
2565
2567
|
MAX_CONCURRENT_DOCS: number;
|
|
@@ -2581,7 +2583,7 @@ declare class Arbi {
|
|
|
2581
2583
|
SYSTEM_INSTRUCTION: string;
|
|
2582
2584
|
TEMPERATURE: number;
|
|
2583
2585
|
MAX_TOKENS: number;
|
|
2584
|
-
|
|
2586
|
+
MAX_TOKEN_CONTEXT: number;
|
|
2585
2587
|
MAX_CONCURRENT: number;
|
|
2586
2588
|
};
|
|
2587
2589
|
PlanningLLM: {
|
|
@@ -2591,7 +2593,7 @@ declare class Arbi {
|
|
|
2591
2593
|
SYSTEM_INSTRUCTION: string;
|
|
2592
2594
|
TEMPERATURE: number;
|
|
2593
2595
|
MAX_TOKENS: number;
|
|
2594
|
-
|
|
2596
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2595
2597
|
APPROVAL_TIMEOUT: number;
|
|
2596
2598
|
};
|
|
2597
2599
|
FilterPlanLLM: {
|
|
@@ -3747,6 +3749,7 @@ declare function getSettings(arbi: ArbiClient): Promise<{
|
|
|
3747
3749
|
last_config?: string | null | undefined;
|
|
3748
3750
|
pinned_workspaces: string[];
|
|
3749
3751
|
pinned_templates: string[];
|
|
3752
|
+
pinned_skills: string[];
|
|
3750
3753
|
tableviews: {
|
|
3751
3754
|
workspace: string;
|
|
3752
3755
|
name: string;
|
|
@@ -3811,6 +3814,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3811
3814
|
MEMORY_ENABLED: boolean;
|
|
3812
3815
|
SKILLS_ENABLED: boolean;
|
|
3813
3816
|
SKILL_CREATION: boolean;
|
|
3817
|
+
MEMORY_CREATION: boolean;
|
|
3814
3818
|
REVIEW_ENABLED: boolean;
|
|
3815
3819
|
PERSONA: string;
|
|
3816
3820
|
AGENT_MODEL_NAME: string;
|
|
@@ -3828,7 +3832,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3828
3832
|
ENABLE_THINKING: boolean;
|
|
3829
3833
|
MODEL_NAME: string;
|
|
3830
3834
|
SYSTEM_INSTRUCTION: string;
|
|
3831
|
-
|
|
3835
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3832
3836
|
TEMPERATURE: number;
|
|
3833
3837
|
MAX_TOKENS: number;
|
|
3834
3838
|
};
|
|
@@ -3839,7 +3843,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3839
3843
|
SYSTEM_INSTRUCTION: string;
|
|
3840
3844
|
TEMPERATURE: number;
|
|
3841
3845
|
MAX_TOKENS: number;
|
|
3842
|
-
|
|
3846
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3843
3847
|
};
|
|
3844
3848
|
EvaluatorLLM: {
|
|
3845
3849
|
API_TYPE: "local" | "remote";
|
|
@@ -3848,14 +3852,14 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3848
3852
|
SYSTEM_INSTRUCTION: string;
|
|
3849
3853
|
TEMPERATURE: number;
|
|
3850
3854
|
MAX_TOKENS: number;
|
|
3851
|
-
|
|
3855
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3852
3856
|
};
|
|
3853
3857
|
TitleLLM: {
|
|
3854
3858
|
API_TYPE: "local" | "remote";
|
|
3855
3859
|
ENABLE_THINKING: boolean;
|
|
3856
3860
|
MODEL_NAME: string;
|
|
3857
3861
|
SYSTEM_INSTRUCTION: string;
|
|
3858
|
-
|
|
3862
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3859
3863
|
TEMPERATURE: number;
|
|
3860
3864
|
MAX_TOKENS: number;
|
|
3861
3865
|
};
|
|
@@ -3866,7 +3870,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3866
3870
|
SYSTEM_INSTRUCTION: string;
|
|
3867
3871
|
TEMPERATURE: number;
|
|
3868
3872
|
MAX_TOKENS: number;
|
|
3869
|
-
|
|
3873
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3870
3874
|
COMPACTION_THRESHOLD_TOKENS: number;
|
|
3871
3875
|
COMPACTION_KEEP_RECENT: number;
|
|
3872
3876
|
};
|
|
@@ -3875,7 +3879,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3875
3879
|
ENABLE_THINKING: boolean;
|
|
3876
3880
|
MODEL_NAME: string;
|
|
3877
3881
|
SYSTEM_INSTRUCTION: string;
|
|
3878
|
-
|
|
3882
|
+
MAX_TOKEN_CONTEXT_TO_ANSWER: number;
|
|
3879
3883
|
TEMPERATURE: number;
|
|
3880
3884
|
MAX_TOKENS: number;
|
|
3881
3885
|
MAX_CONCURRENT_DOCS: number;
|
|
@@ -3897,7 +3901,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3897
3901
|
SYSTEM_INSTRUCTION: string;
|
|
3898
3902
|
TEMPERATURE: number;
|
|
3899
3903
|
MAX_TOKENS: number;
|
|
3900
|
-
|
|
3904
|
+
MAX_TOKEN_CONTEXT: number;
|
|
3901
3905
|
MAX_CONCURRENT: number;
|
|
3902
3906
|
};
|
|
3903
3907
|
PlanningLLM: {
|
|
@@ -3907,7 +3911,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3907
3911
|
SYSTEM_INSTRUCTION: string;
|
|
3908
3912
|
TEMPERATURE: number;
|
|
3909
3913
|
MAX_TOKENS: number;
|
|
3910
|
-
|
|
3914
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3911
3915
|
APPROVAL_TIMEOUT: number;
|
|
3912
3916
|
};
|
|
3913
3917
|
FilterPlanLLM: {
|
|
@@ -2441,6 +2441,7 @@ declare class Arbi {
|
|
|
2441
2441
|
last_config?: string | null | undefined;
|
|
2442
2442
|
pinned_workspaces: string[];
|
|
2443
2443
|
pinned_templates: string[];
|
|
2444
|
+
pinned_skills: string[];
|
|
2444
2445
|
tableviews: {
|
|
2445
2446
|
workspace: string;
|
|
2446
2447
|
name: string;
|
|
@@ -2495,6 +2496,7 @@ declare class Arbi {
|
|
|
2495
2496
|
MEMORY_ENABLED: boolean;
|
|
2496
2497
|
SKILLS_ENABLED: boolean;
|
|
2497
2498
|
SKILL_CREATION: boolean;
|
|
2499
|
+
MEMORY_CREATION: boolean;
|
|
2498
2500
|
REVIEW_ENABLED: boolean;
|
|
2499
2501
|
PERSONA: string;
|
|
2500
2502
|
AGENT_MODEL_NAME: string;
|
|
@@ -2512,7 +2514,7 @@ declare class Arbi {
|
|
|
2512
2514
|
ENABLE_THINKING: boolean;
|
|
2513
2515
|
MODEL_NAME: string;
|
|
2514
2516
|
SYSTEM_INSTRUCTION: string;
|
|
2515
|
-
|
|
2517
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2516
2518
|
TEMPERATURE: number;
|
|
2517
2519
|
MAX_TOKENS: number;
|
|
2518
2520
|
};
|
|
@@ -2523,7 +2525,7 @@ declare class Arbi {
|
|
|
2523
2525
|
SYSTEM_INSTRUCTION: string;
|
|
2524
2526
|
TEMPERATURE: number;
|
|
2525
2527
|
MAX_TOKENS: number;
|
|
2526
|
-
|
|
2528
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2527
2529
|
};
|
|
2528
2530
|
EvaluatorLLM: {
|
|
2529
2531
|
API_TYPE: "local" | "remote";
|
|
@@ -2532,14 +2534,14 @@ declare class Arbi {
|
|
|
2532
2534
|
SYSTEM_INSTRUCTION: string;
|
|
2533
2535
|
TEMPERATURE: number;
|
|
2534
2536
|
MAX_TOKENS: number;
|
|
2535
|
-
|
|
2537
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2536
2538
|
};
|
|
2537
2539
|
TitleLLM: {
|
|
2538
2540
|
API_TYPE: "local" | "remote";
|
|
2539
2541
|
ENABLE_THINKING: boolean;
|
|
2540
2542
|
MODEL_NAME: string;
|
|
2541
2543
|
SYSTEM_INSTRUCTION: string;
|
|
2542
|
-
|
|
2544
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2543
2545
|
TEMPERATURE: number;
|
|
2544
2546
|
MAX_TOKENS: number;
|
|
2545
2547
|
};
|
|
@@ -2550,7 +2552,7 @@ declare class Arbi {
|
|
|
2550
2552
|
SYSTEM_INSTRUCTION: string;
|
|
2551
2553
|
TEMPERATURE: number;
|
|
2552
2554
|
MAX_TOKENS: number;
|
|
2553
|
-
|
|
2555
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2554
2556
|
COMPACTION_THRESHOLD_TOKENS: number;
|
|
2555
2557
|
COMPACTION_KEEP_RECENT: number;
|
|
2556
2558
|
};
|
|
@@ -2559,7 +2561,7 @@ declare class Arbi {
|
|
|
2559
2561
|
ENABLE_THINKING: boolean;
|
|
2560
2562
|
MODEL_NAME: string;
|
|
2561
2563
|
SYSTEM_INSTRUCTION: string;
|
|
2562
|
-
|
|
2564
|
+
MAX_TOKEN_CONTEXT_TO_ANSWER: number;
|
|
2563
2565
|
TEMPERATURE: number;
|
|
2564
2566
|
MAX_TOKENS: number;
|
|
2565
2567
|
MAX_CONCURRENT_DOCS: number;
|
|
@@ -2581,7 +2583,7 @@ declare class Arbi {
|
|
|
2581
2583
|
SYSTEM_INSTRUCTION: string;
|
|
2582
2584
|
TEMPERATURE: number;
|
|
2583
2585
|
MAX_TOKENS: number;
|
|
2584
|
-
|
|
2586
|
+
MAX_TOKEN_CONTEXT: number;
|
|
2585
2587
|
MAX_CONCURRENT: number;
|
|
2586
2588
|
};
|
|
2587
2589
|
PlanningLLM: {
|
|
@@ -2591,7 +2593,7 @@ declare class Arbi {
|
|
|
2591
2593
|
SYSTEM_INSTRUCTION: string;
|
|
2592
2594
|
TEMPERATURE: number;
|
|
2593
2595
|
MAX_TOKENS: number;
|
|
2594
|
-
|
|
2596
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
2595
2597
|
APPROVAL_TIMEOUT: number;
|
|
2596
2598
|
};
|
|
2597
2599
|
FilterPlanLLM: {
|
|
@@ -3747,6 +3749,7 @@ declare function getSettings(arbi: ArbiClient): Promise<{
|
|
|
3747
3749
|
last_config?: string | null | undefined;
|
|
3748
3750
|
pinned_workspaces: string[];
|
|
3749
3751
|
pinned_templates: string[];
|
|
3752
|
+
pinned_skills: string[];
|
|
3750
3753
|
tableviews: {
|
|
3751
3754
|
workspace: string;
|
|
3752
3755
|
name: string;
|
|
@@ -3811,6 +3814,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3811
3814
|
MEMORY_ENABLED: boolean;
|
|
3812
3815
|
SKILLS_ENABLED: boolean;
|
|
3813
3816
|
SKILL_CREATION: boolean;
|
|
3817
|
+
MEMORY_CREATION: boolean;
|
|
3814
3818
|
REVIEW_ENABLED: boolean;
|
|
3815
3819
|
PERSONA: string;
|
|
3816
3820
|
AGENT_MODEL_NAME: string;
|
|
@@ -3828,7 +3832,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3828
3832
|
ENABLE_THINKING: boolean;
|
|
3829
3833
|
MODEL_NAME: string;
|
|
3830
3834
|
SYSTEM_INSTRUCTION: string;
|
|
3831
|
-
|
|
3835
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3832
3836
|
TEMPERATURE: number;
|
|
3833
3837
|
MAX_TOKENS: number;
|
|
3834
3838
|
};
|
|
@@ -3839,7 +3843,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3839
3843
|
SYSTEM_INSTRUCTION: string;
|
|
3840
3844
|
TEMPERATURE: number;
|
|
3841
3845
|
MAX_TOKENS: number;
|
|
3842
|
-
|
|
3846
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3843
3847
|
};
|
|
3844
3848
|
EvaluatorLLM: {
|
|
3845
3849
|
API_TYPE: "local" | "remote";
|
|
@@ -3848,14 +3852,14 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3848
3852
|
SYSTEM_INSTRUCTION: string;
|
|
3849
3853
|
TEMPERATURE: number;
|
|
3850
3854
|
MAX_TOKENS: number;
|
|
3851
|
-
|
|
3855
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3852
3856
|
};
|
|
3853
3857
|
TitleLLM: {
|
|
3854
3858
|
API_TYPE: "local" | "remote";
|
|
3855
3859
|
ENABLE_THINKING: boolean;
|
|
3856
3860
|
MODEL_NAME: string;
|
|
3857
3861
|
SYSTEM_INSTRUCTION: string;
|
|
3858
|
-
|
|
3862
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3859
3863
|
TEMPERATURE: number;
|
|
3860
3864
|
MAX_TOKENS: number;
|
|
3861
3865
|
};
|
|
@@ -3866,7 +3870,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3866
3870
|
SYSTEM_INSTRUCTION: string;
|
|
3867
3871
|
TEMPERATURE: number;
|
|
3868
3872
|
MAX_TOKENS: number;
|
|
3869
|
-
|
|
3873
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3870
3874
|
COMPACTION_THRESHOLD_TOKENS: number;
|
|
3871
3875
|
COMPACTION_KEEP_RECENT: number;
|
|
3872
3876
|
};
|
|
@@ -3875,7 +3879,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3875
3879
|
ENABLE_THINKING: boolean;
|
|
3876
3880
|
MODEL_NAME: string;
|
|
3877
3881
|
SYSTEM_INSTRUCTION: string;
|
|
3878
|
-
|
|
3882
|
+
MAX_TOKEN_CONTEXT_TO_ANSWER: number;
|
|
3879
3883
|
TEMPERATURE: number;
|
|
3880
3884
|
MAX_TOKENS: number;
|
|
3881
3885
|
MAX_CONCURRENT_DOCS: number;
|
|
@@ -3897,7 +3901,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3897
3901
|
SYSTEM_INSTRUCTION: string;
|
|
3898
3902
|
TEMPERATURE: number;
|
|
3899
3903
|
MAX_TOKENS: number;
|
|
3900
|
-
|
|
3904
|
+
MAX_TOKEN_CONTEXT: number;
|
|
3901
3905
|
MAX_CONCURRENT: number;
|
|
3902
3906
|
};
|
|
3903
3907
|
PlanningLLM: {
|
|
@@ -3907,7 +3911,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3907
3911
|
SYSTEM_INSTRUCTION: string;
|
|
3908
3912
|
TEMPERATURE: number;
|
|
3909
3913
|
MAX_TOKENS: number;
|
|
3910
|
-
|
|
3914
|
+
MAX_TOKEN_SIZE_TO_ANSWER: number;
|
|
3911
3915
|
APPROVAL_TIMEOUT: number;
|
|
3912
3916
|
};
|
|
3913
3917
|
FilterPlanLLM: {
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { i as AgentStepEvent, j as Arbi, k as ArbiApiError, l as ArbiError, aP as ArbiErrorEvent, m as ArbiOptions, n as ArtifactEvent, o as AuthContext, A as AuthHeaders, p as AuthenticatedClient, c as ChatSession, q as CitationSummary, a as CliConfig, b as CliCredentials, C as ConfigStore, r as ConnectOptions, y as MessageMetadataPayload, z as MessageQueuedEvent, O as OutputTokensDetails, Q as QueryOptions, R as ReconnectOptions, B as ReconnectableWsConnection, E as ResolvedCitation, G as ResponseCompletedEvent, H as ResponseContentPartAddedEvent, I as ResponseCreatedEvent, J as ResponseFailedEvent, K as ResponseOutputItemAddedEvent, N as ResponseOutputItemDoneEvent, P as ResponseOutputTextDeltaEvent, T as ResponseOutputTextDoneEvent, V as ResponseUsage, W as SSEEvent, X as SSEStreamCallbacks, Y as SSEStreamResult, Z as SSEStreamStartData, _ as UserInfo, $ as UserInputRequestEvent, a0 as UserMessageEvent, a1 as WorkspaceContext, a2 as WsConnection, a3 as agentconfig, a4 as assistant, a5 as authenticatedFetch, a6 as buildRetrievalChunkTool, a7 as buildRetrievalFullContextTool, a8 as buildRetrievalTocTool, a9 as connectWebSocket, aa as connectWithReconnect, ab as consumeSSEStream, ac as contacts, ad as conversations, ae as countCitations, af as createAuthenticatedClient, ah as dm, ai as doctags, aj as documents, ak as files, al as formatAgentStepLabel, am as formatFileSize, ao as formatUserName, ap as formatWorkspaceChoices, au as getErrorMessage, av as getRawWorkspaceKey, aw as health, ax as parseSSEEvents, ay as performPasswordLogin, aB as requireData, aC as requireOk, aD as resolveAuth, aE as resolveCitations, aF as resolveWorkspace, aG as responses, aH as selectWorkspace, aI as selectWorkspaceById, aJ as settings, aK as streamSSE, aL as stripCitationMarkdown, aM as summarizeCitations, aN as tags, aO as workspaces } from './browser-
|
|
1
|
+
export { i as AgentStepEvent, j as Arbi, k as ArbiApiError, l as ArbiError, aP as ArbiErrorEvent, m as ArbiOptions, n as ArtifactEvent, o as AuthContext, A as AuthHeaders, p as AuthenticatedClient, c as ChatSession, q as CitationSummary, a as CliConfig, b as CliCredentials, C as ConfigStore, r as ConnectOptions, y as MessageMetadataPayload, z as MessageQueuedEvent, O as OutputTokensDetails, Q as QueryOptions, R as ReconnectOptions, B as ReconnectableWsConnection, E as ResolvedCitation, G as ResponseCompletedEvent, H as ResponseContentPartAddedEvent, I as ResponseCreatedEvent, J as ResponseFailedEvent, K as ResponseOutputItemAddedEvent, N as ResponseOutputItemDoneEvent, P as ResponseOutputTextDeltaEvent, T as ResponseOutputTextDoneEvent, V as ResponseUsage, W as SSEEvent, X as SSEStreamCallbacks, Y as SSEStreamResult, Z as SSEStreamStartData, _ as UserInfo, $ as UserInputRequestEvent, a0 as UserMessageEvent, a1 as WorkspaceContext, a2 as WsConnection, a3 as agentconfig, a4 as assistant, a5 as authenticatedFetch, a6 as buildRetrievalChunkTool, a7 as buildRetrievalFullContextTool, a8 as buildRetrievalTocTool, a9 as connectWebSocket, aa as connectWithReconnect, ab as consumeSSEStream, ac as contacts, ad as conversations, ae as countCitations, af as createAuthenticatedClient, ah as dm, ai as doctags, aj as documents, ak as files, al as formatAgentStepLabel, am as formatFileSize, ao as formatUserName, ap as formatWorkspaceChoices, au as getErrorMessage, av as getRawWorkspaceKey, aw as health, ax as parseSSEEvents, ay as performPasswordLogin, aB as requireData, aC as requireOk, aD as resolveAuth, aE as resolveCitations, aF as resolveWorkspace, aG as responses, aH as selectWorkspace, aI as selectWorkspaceById, aJ as settings, aK as streamSSE, aL as stripCitationMarkdown, aM as summarizeCitations, aN as tags, aO as workspaces } from './browser-pMy_ZH9T.cjs';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { i as AgentStepEvent, j as Arbi, k as ArbiApiError, l as ArbiError, aP as ArbiErrorEvent, m as ArbiOptions, n as ArtifactEvent, o as AuthContext, A as AuthHeaders, p as AuthenticatedClient, c as ChatSession, q as CitationSummary, a as CliConfig, b as CliCredentials, C as ConfigStore, r as ConnectOptions, y as MessageMetadataPayload, z as MessageQueuedEvent, O as OutputTokensDetails, Q as QueryOptions, R as ReconnectOptions, B as ReconnectableWsConnection, E as ResolvedCitation, G as ResponseCompletedEvent, H as ResponseContentPartAddedEvent, I as ResponseCreatedEvent, J as ResponseFailedEvent, K as ResponseOutputItemAddedEvent, N as ResponseOutputItemDoneEvent, P as ResponseOutputTextDeltaEvent, T as ResponseOutputTextDoneEvent, V as ResponseUsage, W as SSEEvent, X as SSEStreamCallbacks, Y as SSEStreamResult, Z as SSEStreamStartData, _ as UserInfo, $ as UserInputRequestEvent, a0 as UserMessageEvent, a1 as WorkspaceContext, a2 as WsConnection, a3 as agentconfig, a4 as assistant, a5 as authenticatedFetch, a6 as buildRetrievalChunkTool, a7 as buildRetrievalFullContextTool, a8 as buildRetrievalTocTool, a9 as connectWebSocket, aa as connectWithReconnect, ab as consumeSSEStream, ac as contacts, ad as conversations, ae as countCitations, af as createAuthenticatedClient, ah as dm, ai as doctags, aj as documents, ak as files, al as formatAgentStepLabel, am as formatFileSize, ao as formatUserName, ap as formatWorkspaceChoices, au as getErrorMessage, av as getRawWorkspaceKey, aw as health, ax as parseSSEEvents, ay as performPasswordLogin, aB as requireData, aC as requireOk, aD as resolveAuth, aE as resolveCitations, aF as resolveWorkspace, aG as responses, aH as selectWorkspace, aI as selectWorkspaceById, aJ as settings, aK as streamSSE, aL as stripCitationMarkdown, aM as summarizeCitations, aN as tags, aO as workspaces } from './browser-
|
|
1
|
+
export { i as AgentStepEvent, j as Arbi, k as ArbiApiError, l as ArbiError, aP as ArbiErrorEvent, m as ArbiOptions, n as ArtifactEvent, o as AuthContext, A as AuthHeaders, p as AuthenticatedClient, c as ChatSession, q as CitationSummary, a as CliConfig, b as CliCredentials, C as ConfigStore, r as ConnectOptions, y as MessageMetadataPayload, z as MessageQueuedEvent, O as OutputTokensDetails, Q as QueryOptions, R as ReconnectOptions, B as ReconnectableWsConnection, E as ResolvedCitation, G as ResponseCompletedEvent, H as ResponseContentPartAddedEvent, I as ResponseCreatedEvent, J as ResponseFailedEvent, K as ResponseOutputItemAddedEvent, N as ResponseOutputItemDoneEvent, P as ResponseOutputTextDeltaEvent, T as ResponseOutputTextDoneEvent, V as ResponseUsage, W as SSEEvent, X as SSEStreamCallbacks, Y as SSEStreamResult, Z as SSEStreamStartData, _ as UserInfo, $ as UserInputRequestEvent, a0 as UserMessageEvent, a1 as WorkspaceContext, a2 as WsConnection, a3 as agentconfig, a4 as assistant, a5 as authenticatedFetch, a6 as buildRetrievalChunkTool, a7 as buildRetrievalFullContextTool, a8 as buildRetrievalTocTool, a9 as connectWebSocket, aa as connectWithReconnect, ab as consumeSSEStream, ac as contacts, ad as conversations, ae as countCitations, af as createAuthenticatedClient, ah as dm, ai as doctags, aj as documents, ak as files, al as formatAgentStepLabel, am as formatFileSize, ao as formatUserName, ap as formatWorkspaceChoices, au as getErrorMessage, av as getRawWorkspaceKey, aw as health, ax as parseSSEEvents, ay as performPasswordLogin, aB as requireData, aC as requireOk, aD as resolveAuth, aE as resolveCitations, aF as resolveWorkspace, aG as responses, aH as selectWorkspace, aI as selectWorkspaceById, aJ as settings, aK as streamSSE, aL as stripCitationMarkdown, aM as summarizeCitations, aN as tags, aO as workspaces } from './browser-pMy_ZH9T.js';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/index.cjs
CHANGED
|
@@ -6957,11 +6957,13 @@ var OpenClawOrchestrator = class {
|
|
|
6957
6957
|
agentId;
|
|
6958
6958
|
sessionKey;
|
|
6959
6959
|
timeoutMs;
|
|
6960
|
+
spawnHome;
|
|
6960
6961
|
constructor(options) {
|
|
6961
6962
|
this.binaryPath = options.binaryPath ?? "openclaw";
|
|
6962
6963
|
this.agentId = options.agentId ?? "arbi";
|
|
6963
|
-
this.sessionKey = `arbi
|
|
6964
|
+
this.sessionKey = `arbi-${options.sessionId}`.replace(/[^a-zA-Z0-9_-]/g, "-");
|
|
6964
6965
|
this.timeoutMs = options.timeoutMs ?? 3e5;
|
|
6966
|
+
this.spawnHome = options.spawnHome;
|
|
6965
6967
|
}
|
|
6966
6968
|
async prompt(prompt) {
|
|
6967
6969
|
return this.spawnOpenClaw(prompt);
|
|
@@ -6981,7 +6983,8 @@ var OpenClawOrchestrator = class {
|
|
|
6981
6983
|
"--json"
|
|
6982
6984
|
];
|
|
6983
6985
|
const child = child_process.spawn(this.binaryPath, args, {
|
|
6984
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
6986
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
6987
|
+
env: this.spawnHome ? { ...process.env, HOME: this.spawnHome } : process.env
|
|
6985
6988
|
});
|
|
6986
6989
|
let stdout = "";
|
|
6987
6990
|
let stderr = "";
|
|
@@ -7005,12 +7008,17 @@ var OpenClawOrchestrator = class {
|
|
|
7005
7008
|
}
|
|
7006
7009
|
try {
|
|
7007
7010
|
const json = JSON.parse(stdout);
|
|
7008
|
-
const payloads = json?.result?.payloads ?? [];
|
|
7011
|
+
const payloads = json?.payloads ?? json?.result?.payloads ?? [];
|
|
7009
7012
|
const texts = payloads.map((p2) => p2.text ?? "").filter(Boolean);
|
|
7010
7013
|
if (texts.length > 0) {
|
|
7011
7014
|
resolve2(texts.join("\n"));
|
|
7012
7015
|
return;
|
|
7013
7016
|
}
|
|
7017
|
+
const finalText = json?.meta?.systemPromptReport?.finalAssistantVisibleText ?? json?.meta?.systemPromptReport?.finalAssistantRawText;
|
|
7018
|
+
if (typeof finalText === "string" && finalText.trim()) {
|
|
7019
|
+
resolve2(finalText.trim());
|
|
7020
|
+
return;
|
|
7021
|
+
}
|
|
7014
7022
|
resolve2(stdout.trim());
|
|
7015
7023
|
} catch {
|
|
7016
7024
|
resolve2(stdout.trim());
|
|
@@ -7082,6 +7090,21 @@ async function startDmListener(options) {
|
|
|
7082
7090
|
logError("Failed to send encrypted reply", err);
|
|
7083
7091
|
}
|
|
7084
7092
|
};
|
|
7093
|
+
try {
|
|
7094
|
+
const unreadFromParent = (await listDMs(arbi)).filter(
|
|
7095
|
+
(n2) => n2.type === "user_message" && n2.read === false && n2.sender?.external_id === parentExtId
|
|
7096
|
+
);
|
|
7097
|
+
if (unreadFromParent.length > 0) {
|
|
7098
|
+
log(`Backfilling ${unreadFromParent.length} unread DM(s) from parent`);
|
|
7099
|
+
for (const n2 of unreadFromParent) {
|
|
7100
|
+
await handleNotification(n2).catch(
|
|
7101
|
+
(err) => logError("Backfill handler error", err)
|
|
7102
|
+
);
|
|
7103
|
+
}
|
|
7104
|
+
}
|
|
7105
|
+
} catch (err) {
|
|
7106
|
+
logError("Failed to backfill unread DMs", err);
|
|
7107
|
+
}
|
|
7085
7108
|
const ws = await connectWithReconnect({
|
|
7086
7109
|
baseUrl,
|
|
7087
7110
|
accessToken,
|