@arbidocs/sdk 0.3.110 → 0.3.112

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.
@@ -1271,6 +1271,21 @@ type SkillSummary = components['schemas']['SkillSummaryResponse'];
1271
1271
  declare function listSkills(arbi: ArbiClient, options?: {
1272
1272
  includeHidden?: boolean;
1273
1273
  }): Promise<SkillSummary[]>;
1274
+ /** A built-in slash command as exposed by ``GET /v1/assistant/commands``.
1275
+ * These are shipped commands (``/image``, ``/compact``, …) from the backend
1276
+ * command registry — distinct from dynamic user-authored skills. */
1277
+ type CommandDescriptor = components['schemas']['CommandDescriptorResponse'];
1278
+ /**
1279
+ * List the built-in slash commands the caller can invoke (``/image``,
1280
+ * ``/compact``, ``/goal``, ``/pa``, …), respecting per-user gates
1281
+ * (``show_pa_mode`` / ``GOALS_ENABLED``).
1282
+ *
1283
+ * These come from the backend command registry — the single source of truth
1284
+ * shared with the dispatcher — so clients no longer hardcode the list. Merge
1285
+ * with {@link listSkills} to build a complete slash menu (built-ins + dynamic
1286
+ * user-authored skills).
1287
+ */
1288
+ declare function listCommands(arbi: ArbiClient): Promise<CommandDescriptor[]>;
1274
1289
  /** Parsed slash-command shape, regardless of frontend. */
1275
1290
  interface ParsedSlashCommand {
1276
1291
  /** The lowercased token immediately after ``/``. */
@@ -1325,6 +1340,7 @@ declare function filterSkills<T extends {
1325
1340
  type assistant_AssistantQueryOptions = AssistantQueryOptions;
1326
1341
  type assistant_Chunk = Chunk;
1327
1342
  type assistant_ChunkMetadata = ChunkMetadata;
1343
+ type assistant_CommandDescriptor = CommandDescriptor;
1328
1344
  type assistant_ParsedSlashCommand = ParsedSlashCommand;
1329
1345
  type assistant_RetrieveOptions = RetrieveOptions;
1330
1346
  type assistant_RetrieveResult = RetrieveResult;
@@ -1333,6 +1349,7 @@ declare const assistant_buildRetrievalChunkTool: typeof buildRetrievalChunkTool;
1333
1349
  declare const assistant_buildRetrievalFullContextTool: typeof buildRetrievalFullContextTool;
1334
1350
  declare const assistant_buildRetrievalTocTool: typeof buildRetrievalTocTool;
1335
1351
  declare const assistant_filterSkills: typeof filterSkills;
1352
+ declare const assistant_listCommands: typeof listCommands;
1336
1353
  declare const assistant_listSkills: typeof listSkills;
1337
1354
  declare const assistant_parseSlashCommand: typeof parseSlashCommand;
1338
1355
  declare const assistant_parseSlashTokenInProgress: typeof parseSlashTokenInProgress;
@@ -1340,7 +1357,7 @@ declare const assistant_queryAssistant: typeof queryAssistant;
1340
1357
  declare const assistant_respondToAgent: typeof respondToAgent;
1341
1358
  declare const assistant_retrieve: typeof retrieve;
1342
1359
  declare namespace assistant {
1343
- export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_filterSkills as filterSkills, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
1360
+ export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
1344
1361
  }
1345
1362
 
1346
1363
  /**
@@ -2935,6 +2952,9 @@ declare class Arbi {
2935
2952
  TEMPERATURE: number;
2936
2953
  MAX_TOKENS: number;
2937
2954
  MAX_TOKEN_SIZE_TO_ANSWER: number;
2955
+ MAX_CHUNKS_PER_EVAL_CALL: number;
2956
+ MAX_CONCURRENT_EVAL_BATCHES: number;
2957
+ EVAL_BATCH_TIMEOUT_S: number;
2938
2958
  };
2939
2959
  TitleLLM: {
2940
2960
  API_TYPE: "local" | "remote";
@@ -3361,6 +3381,9 @@ declare class Arbi {
3361
3381
  TEMPERATURE: number;
3362
3382
  MAX_TOKENS: number;
3363
3383
  MAX_TOKEN_SIZE_TO_ANSWER: number;
3384
+ MAX_CHUNKS_PER_EVAL_CALL: number;
3385
+ MAX_CONCURRENT_EVAL_BATCHES: number;
3386
+ EVAL_BATCH_TIMEOUT_S: number;
3364
3387
  };
3365
3388
  TitleLLM: {
3366
3389
  API_TYPE: "local" | "remote";
@@ -4898,6 +4921,9 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
4898
4921
  TEMPERATURE: number;
4899
4922
  MAX_TOKENS: number;
4900
4923
  MAX_TOKEN_SIZE_TO_ANSWER: number;
4924
+ MAX_CHUNKS_PER_EVAL_CALL: number;
4925
+ MAX_CONCURRENT_EVAL_BATCHES: number;
4926
+ EVAL_BATCH_TIMEOUT_S: number;
4901
4927
  };
4902
4928
  TitleLLM: {
4903
4929
  API_TYPE: "local" | "remote";
@@ -5254,4 +5280,4 @@ declare namespace responses {
5254
5280
  export { type responses_SubmitBackgroundQueryOptions as SubmitBackgroundQueryOptions, responses_extractResponseText as extractResponseText, responses_getResponse as getResponse, responses_submitBackgroundQuery as submitBackgroundQuery };
5255
5281
  }
5256
5282
 
5257
- export { type SSEStreamStartData as $, type AgentStepDeltaEvent as A, type MessageLevel as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type MessageMetadataPayload$1 as E, type FormattedWsMessage as F, type MessageQueuedEvent as G, type ReconnectableWsConnection as H, type ResolvedCitation as I, type ResponseCompletedEvent as J, type ResponseContentPartAddedEvent as K, type ListAllOptions as L, type MemoryResponse as M, type ResponseCreatedEvent as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type QueryOptions as Q, type ReconnectOptions as R, type ResponseFailedEvent as S, type ResponseOutputItemAddedEvent as T, type ResponseOutputItemDoneEvent as U, type ResponseOutputTextDeltaEvent as V, type ResponseOutputTextDoneEvent as W, type ResponseUsage as X, type SSEEvent as Y, type SSEStreamCallbacks as Z, type SSEStreamResult as _, type AgentStepEvent as a, settings as a$, SUPPORTED_EXTENSIONS as a0, type SkillSummary as a1, type SkippedFile as a2, type TaskResponse as a3, type UpdateMemoryRequest as a4, type UpdateTaskRequest as a5, type UploadBatchResult as a6, type UploadDirectOptions as a7, type UploadDirectResult as a8, type UploadOptions as a9, formatAgentStepLabel as aA, formatFileSize as aB, formatStreamSummary as aC, formatUserName as aD, formatWorkspaceChoices as aE, formatWsMessage as aF, generateEncryptedWorkspaceKey as aG, generateNewWorkspaceKey as aH, getErrorCode as aI, getErrorMessage as aJ, getRawWorkspaceKey as aK, health as aL, memory as aM, parseSSEEvents as aN, parseSlashCommand as aO, parseSlashTokenInProgress as aP, performPasswordLogin as aQ, performSigningKeyLogin as aR, performSsoDeviceFlowLogin as aS, requireData as aT, requireOk as aU, resolveAuth as aV, resolveCitations as aW, resolveWorkspace as aX, responses as aY, selectWorkspace as aZ, selectWorkspaceById as a_, type UploadResult as aa, type UserInfo as ab, type UserInputRequestEvent as ac, type UserMessageEvent as ad, WebSocketAuthError as ae, type WorkspaceContext as af, type WsConnection as ag, agentconfig as ah, assistant as ai, authenticatedFetch as aj, buildRetrievalChunkTool as ak, buildRetrievalFullContextTool as al, buildRetrievalTocTool as am, connectWebSocket as an, connectWithReconnect as ao, consumeSSEStream as ap, contacts as aq, conversations as ar, countCitations as as, createAuthenticatedClient as at, createDocumentWaiter as au, dm as av, doctags as aw, documents as ax, files as ay, filterSkills as az, Arbi as b, streamSSE as b0, stripCitationMarkdown as b1, summarizeCitations as b2, tags as b3, tasks as b4, workspaces as b5, ArbiApiError as c, ArbiError as d, type ArbiErrorEvent as e, type ArbiOptions as f, type ArtifactEvent as g, type AuthContext as h, type AuthHeaders as i, type AuthenticatedClient as j, type CitationSummary as k, type CliConfig as l, type CliCredentials as m, type ConfigStore as n, type ConnectOptions as o, type CreateMemoryRequest as p, type CreateTaskRequest as q, type DmCryptoContext as r, type DocNameMap as s, type DocumentListFields as t, type DocumentListOrder as u, type DocumentWaiter as v, type DocumentWaiterOptions as w, type ListPaginatedOptions as x, type MemorySearchRequest as y, type MemorySearchResponse as z };
5283
+ export { type SSEStreamResult as $, type AgentStepDeltaEvent as A, type MemorySearchResponse as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type MessageLevel as E, type FormattedWsMessage as F, type MessageMetadataPayload$1 as G, type MessageQueuedEvent as H, type ReconnectableWsConnection as I, type ResolvedCitation as J, type ResponseCompletedEvent as K, type ListAllOptions as L, type MemoryResponse as M, type ResponseContentPartAddedEvent as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type QueryOptions as Q, type ReconnectOptions as R, type ResponseCreatedEvent as S, type ResponseFailedEvent as T, type ResponseOutputItemAddedEvent as U, type ResponseOutputItemDoneEvent as V, type ResponseOutputTextDeltaEvent as W, type ResponseOutputTextDoneEvent as X, type ResponseUsage as Y, type SSEEvent as Z, type SSEStreamCallbacks as _, type AgentStepEvent as a, selectWorkspaceById as a$, type SSEStreamStartData as a0, SUPPORTED_EXTENSIONS as a1, type SkillSummary as a2, type SkippedFile as a3, type TaskResponse as a4, type UpdateMemoryRequest as a5, type UpdateTaskRequest as a6, type UploadBatchResult as a7, type UploadDirectOptions as a8, type UploadDirectResult as a9, filterSkills as aA, formatAgentStepLabel as aB, formatFileSize as aC, formatStreamSummary as aD, formatUserName as aE, formatWorkspaceChoices as aF, formatWsMessage as aG, generateEncryptedWorkspaceKey as aH, generateNewWorkspaceKey as aI, getErrorCode as aJ, getErrorMessage as aK, getRawWorkspaceKey as aL, health as aM, memory as aN, parseSSEEvents as aO, parseSlashCommand as aP, parseSlashTokenInProgress as aQ, performPasswordLogin as aR, performSigningKeyLogin as aS, performSsoDeviceFlowLogin as aT, requireData as aU, requireOk as aV, resolveAuth as aW, resolveCitations as aX, resolveWorkspace as aY, responses as aZ, selectWorkspace as a_, type UploadOptions as aa, type UploadResult as ab, type UserInfo as ac, type UserInputRequestEvent as ad, type UserMessageEvent as ae, WebSocketAuthError as af, type WorkspaceContext as ag, type WsConnection as ah, agentconfig as ai, assistant as aj, authenticatedFetch as ak, buildRetrievalChunkTool as al, buildRetrievalFullContextTool as am, buildRetrievalTocTool as an, connectWebSocket as ao, connectWithReconnect as ap, consumeSSEStream as aq, contacts as ar, conversations as as, countCitations as at, createAuthenticatedClient as au, createDocumentWaiter as av, dm as aw, doctags as ax, documents as ay, files as az, Arbi as b, settings as b0, streamSSE as b1, stripCitationMarkdown as b2, summarizeCitations as b3, tags as b4, tasks as b5, workspaces as b6, ArbiApiError as c, ArbiError as d, type ArbiErrorEvent as e, type ArbiOptions as f, type ArtifactEvent as g, type AuthContext as h, type AuthHeaders as i, type AuthenticatedClient as j, type CitationSummary as k, type CliConfig as l, type CliCredentials as m, type CommandDescriptor as n, type ConfigStore as o, type ConnectOptions as p, type CreateMemoryRequest as q, type CreateTaskRequest as r, type DmCryptoContext as s, type DocNameMap as t, type DocumentListFields as u, type DocumentListOrder as v, type DocumentWaiter as w, type DocumentWaiterOptions as x, type ListPaginatedOptions as y, type MemorySearchRequest as z };
@@ -1271,6 +1271,21 @@ type SkillSummary = components['schemas']['SkillSummaryResponse'];
1271
1271
  declare function listSkills(arbi: ArbiClient, options?: {
1272
1272
  includeHidden?: boolean;
1273
1273
  }): Promise<SkillSummary[]>;
1274
+ /** A built-in slash command as exposed by ``GET /v1/assistant/commands``.
1275
+ * These are shipped commands (``/image``, ``/compact``, …) from the backend
1276
+ * command registry — distinct from dynamic user-authored skills. */
1277
+ type CommandDescriptor = components['schemas']['CommandDescriptorResponse'];
1278
+ /**
1279
+ * List the built-in slash commands the caller can invoke (``/image``,
1280
+ * ``/compact``, ``/goal``, ``/pa``, …), respecting per-user gates
1281
+ * (``show_pa_mode`` / ``GOALS_ENABLED``).
1282
+ *
1283
+ * These come from the backend command registry — the single source of truth
1284
+ * shared with the dispatcher — so clients no longer hardcode the list. Merge
1285
+ * with {@link listSkills} to build a complete slash menu (built-ins + dynamic
1286
+ * user-authored skills).
1287
+ */
1288
+ declare function listCommands(arbi: ArbiClient): Promise<CommandDescriptor[]>;
1274
1289
  /** Parsed slash-command shape, regardless of frontend. */
1275
1290
  interface ParsedSlashCommand {
1276
1291
  /** The lowercased token immediately after ``/``. */
@@ -1325,6 +1340,7 @@ declare function filterSkills<T extends {
1325
1340
  type assistant_AssistantQueryOptions = AssistantQueryOptions;
1326
1341
  type assistant_Chunk = Chunk;
1327
1342
  type assistant_ChunkMetadata = ChunkMetadata;
1343
+ type assistant_CommandDescriptor = CommandDescriptor;
1328
1344
  type assistant_ParsedSlashCommand = ParsedSlashCommand;
1329
1345
  type assistant_RetrieveOptions = RetrieveOptions;
1330
1346
  type assistant_RetrieveResult = RetrieveResult;
@@ -1333,6 +1349,7 @@ declare const assistant_buildRetrievalChunkTool: typeof buildRetrievalChunkTool;
1333
1349
  declare const assistant_buildRetrievalFullContextTool: typeof buildRetrievalFullContextTool;
1334
1350
  declare const assistant_buildRetrievalTocTool: typeof buildRetrievalTocTool;
1335
1351
  declare const assistant_filterSkills: typeof filterSkills;
1352
+ declare const assistant_listCommands: typeof listCommands;
1336
1353
  declare const assistant_listSkills: typeof listSkills;
1337
1354
  declare const assistant_parseSlashCommand: typeof parseSlashCommand;
1338
1355
  declare const assistant_parseSlashTokenInProgress: typeof parseSlashTokenInProgress;
@@ -1340,7 +1357,7 @@ declare const assistant_queryAssistant: typeof queryAssistant;
1340
1357
  declare const assistant_respondToAgent: typeof respondToAgent;
1341
1358
  declare const assistant_retrieve: typeof retrieve;
1342
1359
  declare namespace assistant {
1343
- export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_filterSkills as filterSkills, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
1360
+ export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
1344
1361
  }
1345
1362
 
1346
1363
  /**
@@ -2935,6 +2952,9 @@ declare class Arbi {
2935
2952
  TEMPERATURE: number;
2936
2953
  MAX_TOKENS: number;
2937
2954
  MAX_TOKEN_SIZE_TO_ANSWER: number;
2955
+ MAX_CHUNKS_PER_EVAL_CALL: number;
2956
+ MAX_CONCURRENT_EVAL_BATCHES: number;
2957
+ EVAL_BATCH_TIMEOUT_S: number;
2938
2958
  };
2939
2959
  TitleLLM: {
2940
2960
  API_TYPE: "local" | "remote";
@@ -3361,6 +3381,9 @@ declare class Arbi {
3361
3381
  TEMPERATURE: number;
3362
3382
  MAX_TOKENS: number;
3363
3383
  MAX_TOKEN_SIZE_TO_ANSWER: number;
3384
+ MAX_CHUNKS_PER_EVAL_CALL: number;
3385
+ MAX_CONCURRENT_EVAL_BATCHES: number;
3386
+ EVAL_BATCH_TIMEOUT_S: number;
3364
3387
  };
3365
3388
  TitleLLM: {
3366
3389
  API_TYPE: "local" | "remote";
@@ -4898,6 +4921,9 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
4898
4921
  TEMPERATURE: number;
4899
4922
  MAX_TOKENS: number;
4900
4923
  MAX_TOKEN_SIZE_TO_ANSWER: number;
4924
+ MAX_CHUNKS_PER_EVAL_CALL: number;
4925
+ MAX_CONCURRENT_EVAL_BATCHES: number;
4926
+ EVAL_BATCH_TIMEOUT_S: number;
4901
4927
  };
4902
4928
  TitleLLM: {
4903
4929
  API_TYPE: "local" | "remote";
@@ -5254,4 +5280,4 @@ declare namespace responses {
5254
5280
  export { type responses_SubmitBackgroundQueryOptions as SubmitBackgroundQueryOptions, responses_extractResponseText as extractResponseText, responses_getResponse as getResponse, responses_submitBackgroundQuery as submitBackgroundQuery };
5255
5281
  }
5256
5282
 
5257
- export { type SSEStreamStartData as $, type AgentStepDeltaEvent as A, type MessageLevel as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type MessageMetadataPayload$1 as E, type FormattedWsMessage as F, type MessageQueuedEvent as G, type ReconnectableWsConnection as H, type ResolvedCitation as I, type ResponseCompletedEvent as J, type ResponseContentPartAddedEvent as K, type ListAllOptions as L, type MemoryResponse as M, type ResponseCreatedEvent as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type QueryOptions as Q, type ReconnectOptions as R, type ResponseFailedEvent as S, type ResponseOutputItemAddedEvent as T, type ResponseOutputItemDoneEvent as U, type ResponseOutputTextDeltaEvent as V, type ResponseOutputTextDoneEvent as W, type ResponseUsage as X, type SSEEvent as Y, type SSEStreamCallbacks as Z, type SSEStreamResult as _, type AgentStepEvent as a, settings as a$, SUPPORTED_EXTENSIONS as a0, type SkillSummary as a1, type SkippedFile as a2, type TaskResponse as a3, type UpdateMemoryRequest as a4, type UpdateTaskRequest as a5, type UploadBatchResult as a6, type UploadDirectOptions as a7, type UploadDirectResult as a8, type UploadOptions as a9, formatAgentStepLabel as aA, formatFileSize as aB, formatStreamSummary as aC, formatUserName as aD, formatWorkspaceChoices as aE, formatWsMessage as aF, generateEncryptedWorkspaceKey as aG, generateNewWorkspaceKey as aH, getErrorCode as aI, getErrorMessage as aJ, getRawWorkspaceKey as aK, health as aL, memory as aM, parseSSEEvents as aN, parseSlashCommand as aO, parseSlashTokenInProgress as aP, performPasswordLogin as aQ, performSigningKeyLogin as aR, performSsoDeviceFlowLogin as aS, requireData as aT, requireOk as aU, resolveAuth as aV, resolveCitations as aW, resolveWorkspace as aX, responses as aY, selectWorkspace as aZ, selectWorkspaceById as a_, type UploadResult as aa, type UserInfo as ab, type UserInputRequestEvent as ac, type UserMessageEvent as ad, WebSocketAuthError as ae, type WorkspaceContext as af, type WsConnection as ag, agentconfig as ah, assistant as ai, authenticatedFetch as aj, buildRetrievalChunkTool as ak, buildRetrievalFullContextTool as al, buildRetrievalTocTool as am, connectWebSocket as an, connectWithReconnect as ao, consumeSSEStream as ap, contacts as aq, conversations as ar, countCitations as as, createAuthenticatedClient as at, createDocumentWaiter as au, dm as av, doctags as aw, documents as ax, files as ay, filterSkills as az, Arbi as b, streamSSE as b0, stripCitationMarkdown as b1, summarizeCitations as b2, tags as b3, tasks as b4, workspaces as b5, ArbiApiError as c, ArbiError as d, type ArbiErrorEvent as e, type ArbiOptions as f, type ArtifactEvent as g, type AuthContext as h, type AuthHeaders as i, type AuthenticatedClient as j, type CitationSummary as k, type CliConfig as l, type CliCredentials as m, type ConfigStore as n, type ConnectOptions as o, type CreateMemoryRequest as p, type CreateTaskRequest as q, type DmCryptoContext as r, type DocNameMap as s, type DocumentListFields as t, type DocumentListOrder as u, type DocumentWaiter as v, type DocumentWaiterOptions as w, type ListPaginatedOptions as x, type MemorySearchRequest as y, type MemorySearchResponse as z };
5283
+ export { type SSEStreamResult as $, type AgentStepDeltaEvent as A, type MemorySearchResponse as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type MessageLevel as E, type FormattedWsMessage as F, type MessageMetadataPayload$1 as G, type MessageQueuedEvent as H, type ReconnectableWsConnection as I, type ResolvedCitation as J, type ResponseCompletedEvent as K, type ListAllOptions as L, type MemoryResponse as M, type ResponseContentPartAddedEvent as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type QueryOptions as Q, type ReconnectOptions as R, type ResponseCreatedEvent as S, type ResponseFailedEvent as T, type ResponseOutputItemAddedEvent as U, type ResponseOutputItemDoneEvent as V, type ResponseOutputTextDeltaEvent as W, type ResponseOutputTextDoneEvent as X, type ResponseUsage as Y, type SSEEvent as Z, type SSEStreamCallbacks as _, type AgentStepEvent as a, selectWorkspaceById as a$, type SSEStreamStartData as a0, SUPPORTED_EXTENSIONS as a1, type SkillSummary as a2, type SkippedFile as a3, type TaskResponse as a4, type UpdateMemoryRequest as a5, type UpdateTaskRequest as a6, type UploadBatchResult as a7, type UploadDirectOptions as a8, type UploadDirectResult as a9, filterSkills as aA, formatAgentStepLabel as aB, formatFileSize as aC, formatStreamSummary as aD, formatUserName as aE, formatWorkspaceChoices as aF, formatWsMessage as aG, generateEncryptedWorkspaceKey as aH, generateNewWorkspaceKey as aI, getErrorCode as aJ, getErrorMessage as aK, getRawWorkspaceKey as aL, health as aM, memory as aN, parseSSEEvents as aO, parseSlashCommand as aP, parseSlashTokenInProgress as aQ, performPasswordLogin as aR, performSigningKeyLogin as aS, performSsoDeviceFlowLogin as aT, requireData as aU, requireOk as aV, resolveAuth as aW, resolveCitations as aX, resolveWorkspace as aY, responses as aZ, selectWorkspace as a_, type UploadOptions as aa, type UploadResult as ab, type UserInfo as ac, type UserInputRequestEvent as ad, type UserMessageEvent as ae, WebSocketAuthError as af, type WorkspaceContext as ag, type WsConnection as ah, agentconfig as ai, assistant as aj, authenticatedFetch as ak, buildRetrievalChunkTool as al, buildRetrievalFullContextTool as am, buildRetrievalTocTool as an, connectWebSocket as ao, connectWithReconnect as ap, consumeSSEStream as aq, contacts as ar, conversations as as, countCitations as at, createAuthenticatedClient as au, createDocumentWaiter as av, dm as aw, doctags as ax, documents as ay, files as az, Arbi as b, settings as b0, streamSSE as b1, stripCitationMarkdown as b2, summarizeCitations as b3, tags as b4, tasks as b5, workspaces as b6, ArbiApiError as c, ArbiError as d, type ArbiErrorEvent as e, type ArbiOptions as f, type ArtifactEvent as g, type AuthContext as h, type AuthHeaders as i, type AuthenticatedClient as j, type CitationSummary as k, type CliConfig as l, type CliCredentials as m, type CommandDescriptor as n, type ConfigStore as o, type ConnectOptions as p, type CreateMemoryRequest as q, type CreateTaskRequest as r, type DmCryptoContext as s, type DocNameMap as t, type DocumentListFields as u, type DocumentListOrder as v, type DocumentWaiter as w, type DocumentWaiterOptions as x, type ListPaginatedOptions as y, type MemorySearchRequest as z };
package/dist/browser.cjs CHANGED
@@ -4802,6 +4802,7 @@ __export(assistant_exports, {
4802
4802
  buildRetrievalFullContextTool: () => buildRetrievalFullContextTool,
4803
4803
  buildRetrievalTocTool: () => buildRetrievalTocTool,
4804
4804
  filterSkills: () => filterSkills,
4805
+ listCommands: () => listCommands,
4805
4806
  listSkills: () => listSkills,
4806
4807
  parseSlashCommand: () => parseSlashCommand,
4807
4808
  parseSlashTokenInProgress: () => parseSlashTokenInProgress,
@@ -4909,6 +4910,13 @@ async function listSkills(arbi, options) {
4909
4910
  );
4910
4911
  return result.skills;
4911
4912
  }
4913
+ async function listCommands(arbi) {
4914
+ const result = requireData(
4915
+ await arbi.fetch.GET("/v1/assistant/commands", {}),
4916
+ "Failed to list commands"
4917
+ );
4918
+ return result.commands;
4919
+ }
4912
4920
  function parseSlashCommand(input) {
4913
4921
  const m2 = /^\s*\/([a-zA-Z0-9_-]+)(?:\s+([\s\S]*))?$/.exec(input);
4914
4922
  if (!m2) return null;