@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.
- package/dist/{browser-DgApY8QV.d.cts → browser-B5b3SDW6.d.cts} +28 -2
- package/dist/{browser-DgApY8QV.d.ts → browser-B5b3SDW6.d.ts} +28 -2
- package/dist/browser.cjs +8 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +8 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
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
|
|
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;
|