@arbidocs/sdk 0.3.101 → 0.3.102

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
@@ -1,5 +1,5 @@
1
- import { n as ConfigStore, l as CliConfig, m as CliCredentials, C as ChatSession, Z as SkippedFile, a2 as UploadResult, i as AuthHeaders, _ as UploadBatchResult, a1 as UploadOptions, $ as UploadDirectOptions, a0 as UploadDirectResult, X as SUPPORTED_EXTENSIONS, p as DmCryptoContext } from './browser-C59SStkH.cjs';
2
- export { a as AgentStepEvent, b as Arbi, c as ArbiApiError, d as ArbiError, f as ArbiOptions, g as ArtifactEvent, h as AuthContext, j as AuthenticatedClient, k as CitationSummary, o as ConnectOptions, D as DOC_TERMINAL_STATUSES, q as DocNameMap, r as DocumentListFields, s as DocumentListOrder, t as DocumentWaiter, u as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, v as ListPaginatedOptions, M as MessageLevel, w as MessageMetadataPayload, x as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, Q as QueryOptions, R as ReconnectOptions, y as ReconnectableWsConnection, z as ResolvedCitation, B as ResponseCompletedEvent, E as ResponseContentPartAddedEvent, G as ResponseCreatedEvent, H as ResponseFailedEvent, I as ResponseOutputItemAddedEvent, J as ResponseOutputItemDoneEvent, K as ResponseOutputTextDeltaEvent, N as ResponseOutputTextDoneEvent, S as ResponseUsage, T as SSEEvent, U as SSEStreamCallbacks, V as SSEStreamResult, W as SSEStreamStartData, Y as SkillSummary, a3 as UserInfo, a4 as UserInputRequestEvent, a5 as UserMessageEvent, a6 as WebSocketAuthError, a7 as WorkspaceContext, a8 as WsConnection, a9 as agentconfig, aa as assistant, ab as authenticatedFetch, ac as buildRetrievalChunkTool, ad as buildRetrievalFullContextTool, ae as buildRetrievalTocTool, af as connectWebSocket, ag as connectWithReconnect, ah as consumeSSEStream, ai as contacts, aj as conversations, ak as countCitations, al as createAuthenticatedClient, am as createDocumentWaiter, an as dm, ao as doctags, ap as documents, aq as files, ar as filterSkills, as as formatAgentStepLabel, at as formatFileSize, au as formatStreamSummary, av as formatUserName, aw as formatWorkspaceChoices, ax as formatWsMessage, ay as generateEncryptedWorkspaceKey, az as generateNewWorkspaceKey, aA as getErrorCode, aB as getErrorMessage, aC as getRawWorkspaceKey, aD as health, aE as parseSSEEvents, aF as parseSlashCommand, aG as parseSlashTokenInProgress, aH as performPasswordLogin, aI as performSigningKeyLogin, aJ as performSsoDeviceFlowLogin, aK as requireData, aL as requireOk, aM as resolveAuth, aN as resolveCitations, aO as resolveWorkspace, aP as responses, aQ as selectWorkspace, aR as selectWorkspaceById, aS as settings, aT as streamSSE, aU as stripCitationMarkdown, aV as summarizeCitations, aW as tags, aX as workspaces } from './browser-C59SStkH.cjs';
1
+ import { n as ConfigStore, l as CliConfig, m as CliCredentials, C as ChatSession, a2 as SkippedFile, aa as UploadResult, i as AuthHeaders, a6 as UploadBatchResult, a9 as UploadOptions, a7 as UploadDirectOptions, a8 as UploadDirectResult, a0 as SUPPORTED_EXTENSIONS, r as DmCryptoContext } from './browser-NpucdgQ1.cjs';
2
+ export { a as AgentStepEvent, b as Arbi, c as ArbiApiError, d as ArbiError, f as ArbiOptions, g as ArtifactEvent, h as AuthContext, j as AuthenticatedClient, k as CitationSummary, o as ConnectOptions, D as DOC_TERMINAL_STATUSES, s as DocNameMap, t as DocumentListFields, u as DocumentListOrder, v as DocumentWaiter, w as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, x as ListPaginatedOptions, B as MessageLevel, E as MessageMetadataPayload, G as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, Q as QueryOptions, R as ReconnectOptions, H as ReconnectableWsConnection, I as ResolvedCitation, J as ResponseCompletedEvent, K as ResponseContentPartAddedEvent, N as ResponseCreatedEvent, S as ResponseFailedEvent, T as ResponseOutputItemAddedEvent, U as ResponseOutputItemDoneEvent, V as ResponseOutputTextDeltaEvent, W as ResponseOutputTextDoneEvent, X as ResponseUsage, Y as SSEEvent, Z as SSEStreamCallbacks, _ as SSEStreamResult, $ as SSEStreamStartData, a1 as SkillSummary, ab as UserInfo, ac as UserInputRequestEvent, ad as UserMessageEvent, ae as WebSocketAuthError, af as WorkspaceContext, ag as WsConnection, ah as agentconfig, ai as assistant, aj as authenticatedFetch, ak as buildRetrievalChunkTool, al as buildRetrievalFullContextTool, am as buildRetrievalTocTool, an as connectWebSocket, ao as connectWithReconnect, ap as consumeSSEStream, aq as contacts, ar as conversations, as as countCitations, at as createAuthenticatedClient, au as createDocumentWaiter, av as dm, aw as doctags, ax as documents, ay as files, az as filterSkills, aA as formatAgentStepLabel, aB as formatFileSize, aC as formatStreamSummary, aD as formatUserName, aE as formatWorkspaceChoices, aF as formatWsMessage, aG as generateEncryptedWorkspaceKey, aH as generateNewWorkspaceKey, aI as getErrorCode, aJ as getErrorMessage, aK as getRawWorkspaceKey, aL as health, aN as parseSSEEvents, aO as parseSlashCommand, aP as parseSlashTokenInProgress, aQ as performPasswordLogin, aR as performSigningKeyLogin, aS as performSsoDeviceFlowLogin, aT as requireData, aU as requireOk, aV as resolveAuth, aW as resolveCitations, aX as resolveWorkspace, aY as responses, aZ as selectWorkspace, a_ as selectWorkspaceById, a$ as settings, b0 as streamSSE, b1 as stripCitationMarkdown, b2 as summarizeCitations, b3 as tags, b5 as workspaces } from './browser-NpucdgQ1.cjs';
3
3
  import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
4
4
 
5
5
  /**
@@ -372,19 +372,301 @@ declare namespace documentsNode {
372
372
  }
373
373
 
374
374
  /**
375
- * Agent operations — list, delete persistent agents.
375
+ * Agent operations — create, list, delete persistent agents, and read an agent's
376
+ * pinned config / workspace memberships. An agent is a real `agt-` user the server
377
+ * logs in on behalf of when a DM, email or scheduled task wakes it.
376
378
  */
377
379
 
378
380
  type UserResponse = components['schemas']['UserResponse'];
381
+ type CreateAgentResponse = components['schemas']['CreateAgentResponse'];
382
+ type AgentWorkspaceResponse = components['schemas']['AgentWorkspaceResponse'];
379
383
  declare function listAgents(arbi: ArbiClient): Promise<UserResponse[]>;
384
+ /**
385
+ * Create a persistent agent. Only `name` is accepted (alphanumeric, `_`/`-`).
386
+ * The keypair is server-generated; `signing_private_key` is returned ONCE.
387
+ * Pin a behaviour by saving a config with this agent's `agent_ext_id`.
388
+ */
389
+ declare function createAgent(arbi: ArbiClient, name: string): Promise<CreateAgentResponse>;
390
+ /** Read an agent's pinned configuration (its `settings.last_config`). */
391
+ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
392
+ Agents: {
393
+ ENABLED: boolean;
394
+ HUMAN_IN_THE_LOOP: boolean;
395
+ WEB_SEARCH_ENABLED: boolean;
396
+ RUN_CODE_ENABLED: boolean;
397
+ MCP_TOOLS: string[];
398
+ PLANNING_ENABLED: boolean;
399
+ DEEP_RESEARCH_ENABLED: boolean;
400
+ SUGGESTED_QUERIES: boolean;
401
+ ARTIFACTS_ENABLED: boolean;
402
+ VISION_ENABLED: boolean;
403
+ CONVERSATION_SEARCH_ENABLED: boolean;
404
+ PERSONAL_AGENT: boolean;
405
+ MEMORY_ENABLED: boolean;
406
+ PERSIST_LEARNINGS: boolean;
407
+ SKILLS_ENABLED: boolean;
408
+ SKILL_CREATION: boolean;
409
+ WORKSPACE_TOOLS_ENABLED: boolean;
410
+ ENABLED_SKILLS?: string[] | null | undefined;
411
+ MEMORY_CREATION: boolean;
412
+ GOALS_ENABLED: boolean;
413
+ GOAL_MAX_OUTER_LOOPS: number;
414
+ PERSONA: string;
415
+ AGENT_MODEL_NAME: string;
416
+ AGENT_API_TYPE: "local" | "remote";
417
+ LLM_AGENT_TEMPERATURE: number;
418
+ AGENT_MAX_TOKENS: number;
419
+ ENABLE_THINKING: boolean;
420
+ AGENT_STRICT_TOOL_CALLS: boolean;
421
+ AGENT_MAX_ITERATIONS: number;
422
+ AGENT_MAX_PARALLEL_TOOL_CALLS: number;
423
+ AGENT_HISTORY_CHAR_THRESHOLD: number;
424
+ AGENT_SYSTEM_PROMPT: string;
425
+ };
426
+ QueryLLM: {
427
+ API_TYPE: "local" | "remote";
428
+ ENABLE_THINKING: boolean;
429
+ MODEL_NAME: string;
430
+ SYSTEM_INSTRUCTION: string;
431
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
432
+ TEMPERATURE: number;
433
+ MAX_TOKENS: number;
434
+ };
435
+ ReviewLLM: {
436
+ API_TYPE: "local" | "remote";
437
+ ENABLE_THINKING: boolean;
438
+ MODEL_NAME: string;
439
+ SYSTEM_INSTRUCTION: string;
440
+ TEMPERATURE: number;
441
+ MAX_TOKENS: number;
442
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
443
+ };
444
+ EvaluatorLLM: {
445
+ API_TYPE: "local" | "remote";
446
+ ENABLE_THINKING: boolean;
447
+ MODEL_NAME: string;
448
+ SYSTEM_INSTRUCTION: string;
449
+ TEMPERATURE: number;
450
+ MAX_TOKENS: number;
451
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
452
+ };
453
+ TitleLLM: {
454
+ API_TYPE: "local" | "remote";
455
+ ENABLE_THINKING: boolean;
456
+ MODEL_NAME: string;
457
+ SYSTEM_INSTRUCTION: string;
458
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
459
+ TEMPERATURE: number;
460
+ MAX_TOKENS: number;
461
+ };
462
+ SummariseLLM: {
463
+ API_TYPE: "local" | "remote";
464
+ ENABLE_THINKING: boolean;
465
+ MODEL_NAME: string;
466
+ SYSTEM_INSTRUCTION: string;
467
+ TEMPERATURE: number;
468
+ MAX_TOKENS: number;
469
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
470
+ COMPACTION_THRESHOLD_TOKENS: number;
471
+ COMPACTION_KEEP_RECENT: number;
472
+ };
473
+ DoctagLLM: {
474
+ API_TYPE: "local" | "remote";
475
+ ENABLE_THINKING: boolean;
476
+ MODEL_NAME: string;
477
+ SYSTEM_INSTRUCTION: string;
478
+ MAX_TOKEN_CONTEXT_TO_ANSWER: number;
479
+ TEMPERATURE: number;
480
+ MAX_TOKENS: number;
481
+ MAX_CONCURRENT_DOCS: number;
482
+ AUTO_RENAME: boolean;
483
+ AUTO_RENAME_INSTRUCTION: string;
484
+ DEFAULT_METADATA_TAGS?: {
485
+ name: string;
486
+ instruction?: string | null | undefined;
487
+ tag_type?: {
488
+ type: "checkbox" | "text" | "number" | "select" | "search" | "date";
489
+ options: string[];
490
+ } | undefined;
491
+ }[] | undefined;
492
+ };
493
+ MemoryLLM: {
494
+ API_TYPE: "local" | "remote";
495
+ ENABLE_THINKING: boolean;
496
+ MODEL_NAME: string;
497
+ SYSTEM_INSTRUCTION: string;
498
+ TEMPERATURE: number;
499
+ MAX_TOKENS: number;
500
+ MAX_TOKEN_CONTEXT: number;
501
+ MAX_CONCURRENT: number;
502
+ };
503
+ PlanningLLM: {
504
+ API_TYPE: "local" | "remote";
505
+ ENABLE_THINKING: boolean;
506
+ MODEL_NAME: string;
507
+ SYSTEM_INSTRUCTION: string;
508
+ TEMPERATURE: number;
509
+ MAX_TOKENS: number;
510
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
511
+ APPROVAL_TIMEOUT: number;
512
+ };
513
+ FilterPlanLLM: {
514
+ API_TYPE: "local" | "remote";
515
+ ENABLE_THINKING: boolean;
516
+ MODEL_NAME: string;
517
+ SYSTEM_INSTRUCTION: string;
518
+ TEMPERATURE: number;
519
+ MAX_TOKENS: number;
520
+ };
521
+ VisionLLM: {
522
+ API_TYPE: "local" | "remote";
523
+ ENABLE_THINKING: boolean;
524
+ MODEL_NAME: string;
525
+ TEMPERATURE: number;
526
+ MAX_TOKENS: number;
527
+ MAX_PAGES_PER_CALL: number;
528
+ IMAGE_MAX_DIMENSION: number;
529
+ };
530
+ CodeAgent: {
531
+ API_TYPE: "local" | "remote";
532
+ ENABLE_THINKING: boolean;
533
+ MODEL_NAME: string;
534
+ SYSTEM_INSTRUCTION: string;
535
+ TEMPERATURE: number;
536
+ MAX_TOKENS: number;
537
+ MAX_ITERATIONS: number;
538
+ };
539
+ ModelCitation: {
540
+ SIM_THREASHOLD: number;
541
+ MIN_CHAR_SIZE_TO_ANSWER: number;
542
+ MAX_NUMB_CITATIONS: number;
543
+ CITATION_INSTRUCTION: string;
544
+ };
545
+ WebSearch: {
546
+ SAVE_SOURCES: boolean;
547
+ };
548
+ RunCode: {
549
+ IMAGE: string;
550
+ TIMEOUT_SECONDS: number;
551
+ MEMORY_LIMIT: string;
552
+ NETWORK: string;
553
+ };
554
+ Retriever: {
555
+ agent?: {
556
+ MIN_RETRIEVAL_SIM_SCORE: number;
557
+ KEYWORD_MIN_TERM_OVERLAP_RATIO: number;
558
+ MAX_DISTINCT_DOCUMENTS: number;
559
+ MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
560
+ GROUP_SIZE: number;
561
+ SEARCH_MODE: components["schemas"]["SearchMode"];
562
+ HYBRID_PREFETCH_LIMIT: number;
563
+ HYBRID_DENSE_WEIGHT: number;
564
+ HYBRID_SPARSE_WEIGHT: number;
565
+ } | undefined;
566
+ smart_search?: {
567
+ MIN_RETRIEVAL_SIM_SCORE: number;
568
+ KEYWORD_MIN_TERM_OVERLAP_RATIO: number;
569
+ MAX_DISTINCT_DOCUMENTS: number;
570
+ MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
571
+ GROUP_SIZE: number;
572
+ SEARCH_MODE: components["schemas"]["SearchMode"];
573
+ HYBRID_PREFETCH_LIMIT: number;
574
+ HYBRID_DENSE_WEIGHT: number;
575
+ HYBRID_SPARSE_WEIGHT: number;
576
+ } | undefined;
577
+ };
578
+ Reranker: {
579
+ agent?: {
580
+ MIN_SCORE: number;
581
+ MAX_NUMB_OF_CHUNKS: number;
582
+ } | undefined;
583
+ smart_search?: {
584
+ MIN_SCORE: number;
585
+ MAX_NUMB_OF_CHUNKS: number;
586
+ } | undefined;
587
+ MAX_CONCURRENT_REQUESTS: number;
588
+ MODEL_NAME: string;
589
+ API_TYPE: "local" | "remote";
590
+ RETRIEVAL_INSTRUCTION: string;
591
+ };
592
+ Parser: {
593
+ SKIP_DUPLICATES: boolean;
594
+ };
595
+ Chunker: {
596
+ MAX_CHUNK_TOKENS: number;
597
+ TOKENIZER_NAME: string;
598
+ };
599
+ Embedder: {
600
+ MODEL_NAME: string;
601
+ API_TYPE: "local" | "remote";
602
+ BATCH_SIZE: number;
603
+ MAX_CONCURRENT_REQUESTS: number;
604
+ DOCUMENT_PREFIX: string;
605
+ QUERY_PREFIX: string;
606
+ };
607
+ KeywordEmbedder: {
608
+ DIMENSION_SPACE: number;
609
+ FILTER_STOPWORDS: boolean;
610
+ BM25_K1: number;
611
+ BM25_B: number;
612
+ BM25_AVGDL: number;
613
+ CJK_NGRAM_SIZE: number;
614
+ NORMALIZE_TRADITIONAL_TO_SIMPLIFIED: boolean;
615
+ };
616
+ } | {
617
+ Agents: {
618
+ ENABLED: boolean;
619
+ HUMAN_IN_THE_LOOP: boolean;
620
+ WEB_SEARCH_ENABLED: boolean;
621
+ RUN_CODE_ENABLED: boolean;
622
+ MCP_TOOLS: string[];
623
+ PLANNING_ENABLED: boolean;
624
+ DEEP_RESEARCH_ENABLED: boolean;
625
+ SUGGESTED_QUERIES: boolean;
626
+ ARTIFACTS_ENABLED: boolean;
627
+ VISION_ENABLED: boolean;
628
+ CONVERSATION_SEARCH_ENABLED: boolean;
629
+ MEMORY_ENABLED: boolean;
630
+ PERSIST_LEARNINGS: boolean;
631
+ SKILLS_ENABLED: boolean;
632
+ WORKSPACE_TOOLS_ENABLED: boolean;
633
+ ENABLED_SKILLS?: string[] | null | undefined;
634
+ GOALS_ENABLED: boolean;
635
+ GOAL_MAX_OUTER_LOOPS: number;
636
+ PERSONA: string;
637
+ AGENT_MODEL_NAME: string;
638
+ ENABLE_THINKING: boolean;
639
+ AGENT_MAX_ITERATIONS: number;
640
+ };
641
+ DoctagLLM: {
642
+ AUTO_RENAME: boolean;
643
+ AUTO_RENAME_INSTRUCTION: string;
644
+ DEFAULT_METADATA_TAGS?: {
645
+ name: string;
646
+ instruction?: string | null | undefined;
647
+ tag_type?: {
648
+ type: "checkbox" | "text" | "number" | "select" | "search" | "date";
649
+ options: string[];
650
+ } | undefined;
651
+ }[] | undefined;
652
+ };
653
+ Parser: {
654
+ SKIP_DUPLICATES: boolean;
655
+ };
656
+ }>;
657
+ /** List the workspaces an agent is a member of. */
658
+ declare function listAgentWorkspaces(arbi: ArbiClient, agentExtId: string): Promise<AgentWorkspaceResponse[]>;
380
659
  declare function deleteAgents(arbi: ArbiClient, agentExtIds: string[]): Promise<{
381
660
  [x: string]: unknown;
382
661
  }>;
383
662
 
663
+ declare const agents_createAgent: typeof createAgent;
384
664
  declare const agents_deleteAgents: typeof deleteAgents;
665
+ declare const agents_getAgentConfig: typeof getAgentConfig;
666
+ declare const agents_listAgentWorkspaces: typeof listAgentWorkspaces;
385
667
  declare const agents_listAgents: typeof listAgents;
386
668
  declare namespace agents {
387
- export { agents_deleteAgents as deleteAgents, agents_listAgents as listAgents };
669
+ export { agents_createAgent as createAgent, agents_deleteAgents as deleteAgents, agents_getAgentConfig as getAgentConfig, agents_listAgentWorkspaces as listAgentWorkspaces, agents_listAgents as listAgents };
388
670
  }
389
671
 
390
672
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { n as ConfigStore, l as CliConfig, m as CliCredentials, C as ChatSession, Z as SkippedFile, a2 as UploadResult, i as AuthHeaders, _ as UploadBatchResult, a1 as UploadOptions, $ as UploadDirectOptions, a0 as UploadDirectResult, X as SUPPORTED_EXTENSIONS, p as DmCryptoContext } from './browser-C59SStkH.js';
2
- export { a as AgentStepEvent, b as Arbi, c as ArbiApiError, d as ArbiError, f as ArbiOptions, g as ArtifactEvent, h as AuthContext, j as AuthenticatedClient, k as CitationSummary, o as ConnectOptions, D as DOC_TERMINAL_STATUSES, q as DocNameMap, r as DocumentListFields, s as DocumentListOrder, t as DocumentWaiter, u as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, v as ListPaginatedOptions, M as MessageLevel, w as MessageMetadataPayload, x as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, Q as QueryOptions, R as ReconnectOptions, y as ReconnectableWsConnection, z as ResolvedCitation, B as ResponseCompletedEvent, E as ResponseContentPartAddedEvent, G as ResponseCreatedEvent, H as ResponseFailedEvent, I as ResponseOutputItemAddedEvent, J as ResponseOutputItemDoneEvent, K as ResponseOutputTextDeltaEvent, N as ResponseOutputTextDoneEvent, S as ResponseUsage, T as SSEEvent, U as SSEStreamCallbacks, V as SSEStreamResult, W as SSEStreamStartData, Y as SkillSummary, a3 as UserInfo, a4 as UserInputRequestEvent, a5 as UserMessageEvent, a6 as WebSocketAuthError, a7 as WorkspaceContext, a8 as WsConnection, a9 as agentconfig, aa as assistant, ab as authenticatedFetch, ac as buildRetrievalChunkTool, ad as buildRetrievalFullContextTool, ae as buildRetrievalTocTool, af as connectWebSocket, ag as connectWithReconnect, ah as consumeSSEStream, ai as contacts, aj as conversations, ak as countCitations, al as createAuthenticatedClient, am as createDocumentWaiter, an as dm, ao as doctags, ap as documents, aq as files, ar as filterSkills, as as formatAgentStepLabel, at as formatFileSize, au as formatStreamSummary, av as formatUserName, aw as formatWorkspaceChoices, ax as formatWsMessage, ay as generateEncryptedWorkspaceKey, az as generateNewWorkspaceKey, aA as getErrorCode, aB as getErrorMessage, aC as getRawWorkspaceKey, aD as health, aE as parseSSEEvents, aF as parseSlashCommand, aG as parseSlashTokenInProgress, aH as performPasswordLogin, aI as performSigningKeyLogin, aJ as performSsoDeviceFlowLogin, aK as requireData, aL as requireOk, aM as resolveAuth, aN as resolveCitations, aO as resolveWorkspace, aP as responses, aQ as selectWorkspace, aR as selectWorkspaceById, aS as settings, aT as streamSSE, aU as stripCitationMarkdown, aV as summarizeCitations, aW as tags, aX as workspaces } from './browser-C59SStkH.js';
1
+ import { n as ConfigStore, l as CliConfig, m as CliCredentials, C as ChatSession, a2 as SkippedFile, aa as UploadResult, i as AuthHeaders, a6 as UploadBatchResult, a9 as UploadOptions, a7 as UploadDirectOptions, a8 as UploadDirectResult, a0 as SUPPORTED_EXTENSIONS, r as DmCryptoContext } from './browser-NpucdgQ1.js';
2
+ export { a as AgentStepEvent, b as Arbi, c as ArbiApiError, d as ArbiError, f as ArbiOptions, g as ArtifactEvent, h as AuthContext, j as AuthenticatedClient, k as CitationSummary, o as ConnectOptions, D as DOC_TERMINAL_STATUSES, s as DocNameMap, t as DocumentListFields, u as DocumentListOrder, v as DocumentWaiter, w as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, x as ListPaginatedOptions, B as MessageLevel, E as MessageMetadataPayload, G as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, Q as QueryOptions, R as ReconnectOptions, H as ReconnectableWsConnection, I as ResolvedCitation, J as ResponseCompletedEvent, K as ResponseContentPartAddedEvent, N as ResponseCreatedEvent, S as ResponseFailedEvent, T as ResponseOutputItemAddedEvent, U as ResponseOutputItemDoneEvent, V as ResponseOutputTextDeltaEvent, W as ResponseOutputTextDoneEvent, X as ResponseUsage, Y as SSEEvent, Z as SSEStreamCallbacks, _ as SSEStreamResult, $ as SSEStreamStartData, a1 as SkillSummary, ab as UserInfo, ac as UserInputRequestEvent, ad as UserMessageEvent, ae as WebSocketAuthError, af as WorkspaceContext, ag as WsConnection, ah as agentconfig, ai as assistant, aj as authenticatedFetch, ak as buildRetrievalChunkTool, al as buildRetrievalFullContextTool, am as buildRetrievalTocTool, an as connectWebSocket, ao as connectWithReconnect, ap as consumeSSEStream, aq as contacts, ar as conversations, as as countCitations, at as createAuthenticatedClient, au as createDocumentWaiter, av as dm, aw as doctags, ax as documents, ay as files, az as filterSkills, aA as formatAgentStepLabel, aB as formatFileSize, aC as formatStreamSummary, aD as formatUserName, aE as formatWorkspaceChoices, aF as formatWsMessage, aG as generateEncryptedWorkspaceKey, aH as generateNewWorkspaceKey, aI as getErrorCode, aJ as getErrorMessage, aK as getRawWorkspaceKey, aL as health, aN as parseSSEEvents, aO as parseSlashCommand, aP as parseSlashTokenInProgress, aQ as performPasswordLogin, aR as performSigningKeyLogin, aS as performSsoDeviceFlowLogin, aT as requireData, aU as requireOk, aV as resolveAuth, aW as resolveCitations, aX as resolveWorkspace, aY as responses, aZ as selectWorkspace, a_ as selectWorkspaceById, a$ as settings, b0 as streamSSE, b1 as stripCitationMarkdown, b2 as summarizeCitations, b3 as tags, b5 as workspaces } from './browser-NpucdgQ1.js';
3
3
  import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
4
4
 
5
5
  /**
@@ -372,19 +372,301 @@ declare namespace documentsNode {
372
372
  }
373
373
 
374
374
  /**
375
- * Agent operations — list, delete persistent agents.
375
+ * Agent operations — create, list, delete persistent agents, and read an agent's
376
+ * pinned config / workspace memberships. An agent is a real `agt-` user the server
377
+ * logs in on behalf of when a DM, email or scheduled task wakes it.
376
378
  */
377
379
 
378
380
  type UserResponse = components['schemas']['UserResponse'];
381
+ type CreateAgentResponse = components['schemas']['CreateAgentResponse'];
382
+ type AgentWorkspaceResponse = components['schemas']['AgentWorkspaceResponse'];
379
383
  declare function listAgents(arbi: ArbiClient): Promise<UserResponse[]>;
384
+ /**
385
+ * Create a persistent agent. Only `name` is accepted (alphanumeric, `_`/`-`).
386
+ * The keypair is server-generated; `signing_private_key` is returned ONCE.
387
+ * Pin a behaviour by saving a config with this agent's `agent_ext_id`.
388
+ */
389
+ declare function createAgent(arbi: ArbiClient, name: string): Promise<CreateAgentResponse>;
390
+ /** Read an agent's pinned configuration (its `settings.last_config`). */
391
+ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
392
+ Agents: {
393
+ ENABLED: boolean;
394
+ HUMAN_IN_THE_LOOP: boolean;
395
+ WEB_SEARCH_ENABLED: boolean;
396
+ RUN_CODE_ENABLED: boolean;
397
+ MCP_TOOLS: string[];
398
+ PLANNING_ENABLED: boolean;
399
+ DEEP_RESEARCH_ENABLED: boolean;
400
+ SUGGESTED_QUERIES: boolean;
401
+ ARTIFACTS_ENABLED: boolean;
402
+ VISION_ENABLED: boolean;
403
+ CONVERSATION_SEARCH_ENABLED: boolean;
404
+ PERSONAL_AGENT: boolean;
405
+ MEMORY_ENABLED: boolean;
406
+ PERSIST_LEARNINGS: boolean;
407
+ SKILLS_ENABLED: boolean;
408
+ SKILL_CREATION: boolean;
409
+ WORKSPACE_TOOLS_ENABLED: boolean;
410
+ ENABLED_SKILLS?: string[] | null | undefined;
411
+ MEMORY_CREATION: boolean;
412
+ GOALS_ENABLED: boolean;
413
+ GOAL_MAX_OUTER_LOOPS: number;
414
+ PERSONA: string;
415
+ AGENT_MODEL_NAME: string;
416
+ AGENT_API_TYPE: "local" | "remote";
417
+ LLM_AGENT_TEMPERATURE: number;
418
+ AGENT_MAX_TOKENS: number;
419
+ ENABLE_THINKING: boolean;
420
+ AGENT_STRICT_TOOL_CALLS: boolean;
421
+ AGENT_MAX_ITERATIONS: number;
422
+ AGENT_MAX_PARALLEL_TOOL_CALLS: number;
423
+ AGENT_HISTORY_CHAR_THRESHOLD: number;
424
+ AGENT_SYSTEM_PROMPT: string;
425
+ };
426
+ QueryLLM: {
427
+ API_TYPE: "local" | "remote";
428
+ ENABLE_THINKING: boolean;
429
+ MODEL_NAME: string;
430
+ SYSTEM_INSTRUCTION: string;
431
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
432
+ TEMPERATURE: number;
433
+ MAX_TOKENS: number;
434
+ };
435
+ ReviewLLM: {
436
+ API_TYPE: "local" | "remote";
437
+ ENABLE_THINKING: boolean;
438
+ MODEL_NAME: string;
439
+ SYSTEM_INSTRUCTION: string;
440
+ TEMPERATURE: number;
441
+ MAX_TOKENS: number;
442
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
443
+ };
444
+ EvaluatorLLM: {
445
+ API_TYPE: "local" | "remote";
446
+ ENABLE_THINKING: boolean;
447
+ MODEL_NAME: string;
448
+ SYSTEM_INSTRUCTION: string;
449
+ TEMPERATURE: number;
450
+ MAX_TOKENS: number;
451
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
452
+ };
453
+ TitleLLM: {
454
+ API_TYPE: "local" | "remote";
455
+ ENABLE_THINKING: boolean;
456
+ MODEL_NAME: string;
457
+ SYSTEM_INSTRUCTION: string;
458
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
459
+ TEMPERATURE: number;
460
+ MAX_TOKENS: number;
461
+ };
462
+ SummariseLLM: {
463
+ API_TYPE: "local" | "remote";
464
+ ENABLE_THINKING: boolean;
465
+ MODEL_NAME: string;
466
+ SYSTEM_INSTRUCTION: string;
467
+ TEMPERATURE: number;
468
+ MAX_TOKENS: number;
469
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
470
+ COMPACTION_THRESHOLD_TOKENS: number;
471
+ COMPACTION_KEEP_RECENT: number;
472
+ };
473
+ DoctagLLM: {
474
+ API_TYPE: "local" | "remote";
475
+ ENABLE_THINKING: boolean;
476
+ MODEL_NAME: string;
477
+ SYSTEM_INSTRUCTION: string;
478
+ MAX_TOKEN_CONTEXT_TO_ANSWER: number;
479
+ TEMPERATURE: number;
480
+ MAX_TOKENS: number;
481
+ MAX_CONCURRENT_DOCS: number;
482
+ AUTO_RENAME: boolean;
483
+ AUTO_RENAME_INSTRUCTION: string;
484
+ DEFAULT_METADATA_TAGS?: {
485
+ name: string;
486
+ instruction?: string | null | undefined;
487
+ tag_type?: {
488
+ type: "checkbox" | "text" | "number" | "select" | "search" | "date";
489
+ options: string[];
490
+ } | undefined;
491
+ }[] | undefined;
492
+ };
493
+ MemoryLLM: {
494
+ API_TYPE: "local" | "remote";
495
+ ENABLE_THINKING: boolean;
496
+ MODEL_NAME: string;
497
+ SYSTEM_INSTRUCTION: string;
498
+ TEMPERATURE: number;
499
+ MAX_TOKENS: number;
500
+ MAX_TOKEN_CONTEXT: number;
501
+ MAX_CONCURRENT: number;
502
+ };
503
+ PlanningLLM: {
504
+ API_TYPE: "local" | "remote";
505
+ ENABLE_THINKING: boolean;
506
+ MODEL_NAME: string;
507
+ SYSTEM_INSTRUCTION: string;
508
+ TEMPERATURE: number;
509
+ MAX_TOKENS: number;
510
+ MAX_TOKEN_SIZE_TO_ANSWER: number;
511
+ APPROVAL_TIMEOUT: number;
512
+ };
513
+ FilterPlanLLM: {
514
+ API_TYPE: "local" | "remote";
515
+ ENABLE_THINKING: boolean;
516
+ MODEL_NAME: string;
517
+ SYSTEM_INSTRUCTION: string;
518
+ TEMPERATURE: number;
519
+ MAX_TOKENS: number;
520
+ };
521
+ VisionLLM: {
522
+ API_TYPE: "local" | "remote";
523
+ ENABLE_THINKING: boolean;
524
+ MODEL_NAME: string;
525
+ TEMPERATURE: number;
526
+ MAX_TOKENS: number;
527
+ MAX_PAGES_PER_CALL: number;
528
+ IMAGE_MAX_DIMENSION: number;
529
+ };
530
+ CodeAgent: {
531
+ API_TYPE: "local" | "remote";
532
+ ENABLE_THINKING: boolean;
533
+ MODEL_NAME: string;
534
+ SYSTEM_INSTRUCTION: string;
535
+ TEMPERATURE: number;
536
+ MAX_TOKENS: number;
537
+ MAX_ITERATIONS: number;
538
+ };
539
+ ModelCitation: {
540
+ SIM_THREASHOLD: number;
541
+ MIN_CHAR_SIZE_TO_ANSWER: number;
542
+ MAX_NUMB_CITATIONS: number;
543
+ CITATION_INSTRUCTION: string;
544
+ };
545
+ WebSearch: {
546
+ SAVE_SOURCES: boolean;
547
+ };
548
+ RunCode: {
549
+ IMAGE: string;
550
+ TIMEOUT_SECONDS: number;
551
+ MEMORY_LIMIT: string;
552
+ NETWORK: string;
553
+ };
554
+ Retriever: {
555
+ agent?: {
556
+ MIN_RETRIEVAL_SIM_SCORE: number;
557
+ KEYWORD_MIN_TERM_OVERLAP_RATIO: number;
558
+ MAX_DISTINCT_DOCUMENTS: number;
559
+ MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
560
+ GROUP_SIZE: number;
561
+ SEARCH_MODE: components["schemas"]["SearchMode"];
562
+ HYBRID_PREFETCH_LIMIT: number;
563
+ HYBRID_DENSE_WEIGHT: number;
564
+ HYBRID_SPARSE_WEIGHT: number;
565
+ } | undefined;
566
+ smart_search?: {
567
+ MIN_RETRIEVAL_SIM_SCORE: number;
568
+ KEYWORD_MIN_TERM_OVERLAP_RATIO: number;
569
+ MAX_DISTINCT_DOCUMENTS: number;
570
+ MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
571
+ GROUP_SIZE: number;
572
+ SEARCH_MODE: components["schemas"]["SearchMode"];
573
+ HYBRID_PREFETCH_LIMIT: number;
574
+ HYBRID_DENSE_WEIGHT: number;
575
+ HYBRID_SPARSE_WEIGHT: number;
576
+ } | undefined;
577
+ };
578
+ Reranker: {
579
+ agent?: {
580
+ MIN_SCORE: number;
581
+ MAX_NUMB_OF_CHUNKS: number;
582
+ } | undefined;
583
+ smart_search?: {
584
+ MIN_SCORE: number;
585
+ MAX_NUMB_OF_CHUNKS: number;
586
+ } | undefined;
587
+ MAX_CONCURRENT_REQUESTS: number;
588
+ MODEL_NAME: string;
589
+ API_TYPE: "local" | "remote";
590
+ RETRIEVAL_INSTRUCTION: string;
591
+ };
592
+ Parser: {
593
+ SKIP_DUPLICATES: boolean;
594
+ };
595
+ Chunker: {
596
+ MAX_CHUNK_TOKENS: number;
597
+ TOKENIZER_NAME: string;
598
+ };
599
+ Embedder: {
600
+ MODEL_NAME: string;
601
+ API_TYPE: "local" | "remote";
602
+ BATCH_SIZE: number;
603
+ MAX_CONCURRENT_REQUESTS: number;
604
+ DOCUMENT_PREFIX: string;
605
+ QUERY_PREFIX: string;
606
+ };
607
+ KeywordEmbedder: {
608
+ DIMENSION_SPACE: number;
609
+ FILTER_STOPWORDS: boolean;
610
+ BM25_K1: number;
611
+ BM25_B: number;
612
+ BM25_AVGDL: number;
613
+ CJK_NGRAM_SIZE: number;
614
+ NORMALIZE_TRADITIONAL_TO_SIMPLIFIED: boolean;
615
+ };
616
+ } | {
617
+ Agents: {
618
+ ENABLED: boolean;
619
+ HUMAN_IN_THE_LOOP: boolean;
620
+ WEB_SEARCH_ENABLED: boolean;
621
+ RUN_CODE_ENABLED: boolean;
622
+ MCP_TOOLS: string[];
623
+ PLANNING_ENABLED: boolean;
624
+ DEEP_RESEARCH_ENABLED: boolean;
625
+ SUGGESTED_QUERIES: boolean;
626
+ ARTIFACTS_ENABLED: boolean;
627
+ VISION_ENABLED: boolean;
628
+ CONVERSATION_SEARCH_ENABLED: boolean;
629
+ MEMORY_ENABLED: boolean;
630
+ PERSIST_LEARNINGS: boolean;
631
+ SKILLS_ENABLED: boolean;
632
+ WORKSPACE_TOOLS_ENABLED: boolean;
633
+ ENABLED_SKILLS?: string[] | null | undefined;
634
+ GOALS_ENABLED: boolean;
635
+ GOAL_MAX_OUTER_LOOPS: number;
636
+ PERSONA: string;
637
+ AGENT_MODEL_NAME: string;
638
+ ENABLE_THINKING: boolean;
639
+ AGENT_MAX_ITERATIONS: number;
640
+ };
641
+ DoctagLLM: {
642
+ AUTO_RENAME: boolean;
643
+ AUTO_RENAME_INSTRUCTION: string;
644
+ DEFAULT_METADATA_TAGS?: {
645
+ name: string;
646
+ instruction?: string | null | undefined;
647
+ tag_type?: {
648
+ type: "checkbox" | "text" | "number" | "select" | "search" | "date";
649
+ options: string[];
650
+ } | undefined;
651
+ }[] | undefined;
652
+ };
653
+ Parser: {
654
+ SKIP_DUPLICATES: boolean;
655
+ };
656
+ }>;
657
+ /** List the workspaces an agent is a member of. */
658
+ declare function listAgentWorkspaces(arbi: ArbiClient, agentExtId: string): Promise<AgentWorkspaceResponse[]>;
380
659
  declare function deleteAgents(arbi: ArbiClient, agentExtIds: string[]): Promise<{
381
660
  [x: string]: unknown;
382
661
  }>;
383
662
 
663
+ declare const agents_createAgent: typeof createAgent;
384
664
  declare const agents_deleteAgents: typeof deleteAgents;
665
+ declare const agents_getAgentConfig: typeof getAgentConfig;
666
+ declare const agents_listAgentWorkspaces: typeof listAgentWorkspaces;
385
667
  declare const agents_listAgents: typeof listAgents;
386
668
  declare namespace agents {
387
- export { agents_deleteAgents as deleteAgents, agents_listAgents as listAgents };
669
+ export { agents_createAgent as createAgent, agents_deleteAgents as deleteAgents, agents_getAgentConfig as getAgentConfig, agents_listAgentWorkspaces as listAgentWorkspaces, agents_listAgents as listAgents };
388
670
  }
389
671
 
390
672
  /**