@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
package/dist/index.cjs
CHANGED
|
@@ -5347,6 +5347,7 @@ __export(assistant_exports, {
|
|
|
5347
5347
|
buildRetrievalFullContextTool: () => buildRetrievalFullContextTool,
|
|
5348
5348
|
buildRetrievalTocTool: () => buildRetrievalTocTool,
|
|
5349
5349
|
filterSkills: () => filterSkills,
|
|
5350
|
+
listCommands: () => listCommands,
|
|
5350
5351
|
listSkills: () => listSkills,
|
|
5351
5352
|
parseSlashCommand: () => parseSlashCommand,
|
|
5352
5353
|
parseSlashTokenInProgress: () => parseSlashTokenInProgress,
|
|
@@ -5454,6 +5455,13 @@ async function listSkills(arbi, options) {
|
|
|
5454
5455
|
);
|
|
5455
5456
|
return result.skills;
|
|
5456
5457
|
}
|
|
5458
|
+
async function listCommands(arbi) {
|
|
5459
|
+
const result = requireData(
|
|
5460
|
+
await arbi.fetch.GET("/v1/assistant/commands", {}),
|
|
5461
|
+
"Failed to list commands"
|
|
5462
|
+
);
|
|
5463
|
+
return result.commands;
|
|
5464
|
+
}
|
|
5457
5465
|
function parseSlashCommand(input) {
|
|
5458
5466
|
const m2 = /^\s*\/([a-zA-Z0-9_-]+)(?:\s+([\s\S]*))?$/.exec(input);
|
|
5459
5467
|
if (!m2) return null;
|