@arbidocs/sdk 0.4.140 → 0.4.141
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-D3wxXCKl.d.cts → browser-DmkCooa-.d.cts} +39 -3
- package/dist/{browser-D3wxXCKl.d.ts → browser-DmkCooa-.d.ts} +39 -3
- package/dist/browser.cjs +29 -2
- 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 +29 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +31 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +30 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5625,13 +5625,15 @@ __export(assistant_exports, {
|
|
|
5625
5625
|
buildRetrievalTocTool: () => buildRetrievalTocTool,
|
|
5626
5626
|
cancelAssistantRun: () => cancelAssistantRun,
|
|
5627
5627
|
filterSkills: () => filterSkills,
|
|
5628
|
+
isSharedSkill: () => isSharedSkill,
|
|
5628
5629
|
listCommands: () => listCommands,
|
|
5629
5630
|
listSkills: () => listSkills,
|
|
5630
5631
|
parseSlashCommand: () => parseSlashCommand,
|
|
5631
5632
|
parseSlashTokenInProgress: () => parseSlashTokenInProgress,
|
|
5632
5633
|
queryAssistant: () => queryAssistant,
|
|
5633
5634
|
respondToAgent: () => respondToAgent,
|
|
5634
|
-
retrieve: () => retrieve
|
|
5635
|
+
retrieve: () => retrieve,
|
|
5636
|
+
uploadSkill: () => uploadSkill
|
|
5635
5637
|
});
|
|
5636
5638
|
function buildRetrievalChunkTool(docIds, searchMode) {
|
|
5637
5639
|
return {
|
|
@@ -5759,6 +5761,16 @@ async function listSkills(arbi, options) {
|
|
|
5759
5761
|
);
|
|
5760
5762
|
return result.skills;
|
|
5761
5763
|
}
|
|
5764
|
+
function isSharedSkill(skill) {
|
|
5765
|
+
return skill.is_owner !== false && skill.visibility === "global";
|
|
5766
|
+
}
|
|
5767
|
+
function uploadSkill(auth, slug, markdown, options) {
|
|
5768
|
+
return uploadFile(auth, new Blob([markdown], { type: "text/markdown" }), "SKILL.md", {
|
|
5769
|
+
folder: `skills/${slug}`,
|
|
5770
|
+
wpType: "skill",
|
|
5771
|
+
shared: options?.shared ?? false
|
|
5772
|
+
});
|
|
5773
|
+
}
|
|
5762
5774
|
async function listCommands(arbi) {
|
|
5763
5775
|
const result = requireData(
|
|
5764
5776
|
await arbi.fetch.GET("/v1/assistant/commands", {}),
|
|
@@ -5885,6 +5897,7 @@ __export(tags_exports, {
|
|
|
5885
5897
|
TAG_KINDS: () => TAG_KINDS,
|
|
5886
5898
|
createTag: () => createTag,
|
|
5887
5899
|
deleteTag: () => deleteTag,
|
|
5900
|
+
extractEntities: () => extractEntities,
|
|
5888
5901
|
getTagKind: () => getTagKind,
|
|
5889
5902
|
kindFieldWrites: () => kindFieldWrites,
|
|
5890
5903
|
listTagKinds: () => listTagKinds,
|
|
@@ -5963,6 +5976,18 @@ async function updateTag(arbi, tagId, change) {
|
|
|
5963
5976
|
"Failed to update tag"
|
|
5964
5977
|
);
|
|
5965
5978
|
}
|
|
5979
|
+
async function extractEntities(arbi, docIds, options = {}) {
|
|
5980
|
+
return requireData(
|
|
5981
|
+
await arbi.fetch.POST("/v1/tag/entities/extract", {
|
|
5982
|
+
body: {
|
|
5983
|
+
doc_ext_ids: docIds,
|
|
5984
|
+
overwrite: options.overwrite ?? false,
|
|
5985
|
+
...options.kinds ? { kinds: options.kinds } : {}
|
|
5986
|
+
}
|
|
5987
|
+
}),
|
|
5988
|
+
"Failed to extract people and organisations"
|
|
5989
|
+
);
|
|
5990
|
+
}
|
|
5966
5991
|
async function setTagValues(arbi, tagId, values) {
|
|
5967
5992
|
return updateTag(arbi, tagId, { field_values: values });
|
|
5968
5993
|
}
|
|
@@ -9653,7 +9678,9 @@ var Arbi = class {
|
|
|
9653
9678
|
delete: (tagId) => deleteTag(this.requireClient(), tagId),
|
|
9654
9679
|
update: (tagId, change) => updateTag(this.requireClient(), tagId, change),
|
|
9655
9680
|
/** Merge-patch a tag's values for its kind's fields (`null` clears one). */
|
|
9656
|
-
setValues: (tagId, values) => setTagValues(this.requireClient(), tagId, values)
|
|
9681
|
+
setValues: (tagId, values) => setTagValues(this.requireClient(), tagId, values),
|
|
9682
|
+
/** Link the people and organisations these documents name (runs in the background). */
|
|
9683
|
+
extractEntities: (docIds, options) => extractEntities(this.requireClient(), docIds, options)
|
|
9657
9684
|
};
|
|
9658
9685
|
// ── Tag kinds: the workspace's fields per kind (a table's columns) ─────
|
|
9659
9686
|
tagKinds = {
|
|
@@ -11152,6 +11179,7 @@ exports.getRawWorkspaceKey = getRawWorkspaceKey;
|
|
|
11152
11179
|
exports.health = health_exports;
|
|
11153
11180
|
exports.identityErrorCode = identityErrorCode;
|
|
11154
11181
|
exports.identityVerification = identity_exports;
|
|
11182
|
+
exports.isSharedSkill = isSharedSkill;
|
|
11155
11183
|
exports.listen = listen_exports;
|
|
11156
11184
|
exports.mail = mail_exports;
|
|
11157
11185
|
exports.mailNode = mail_node_exports;
|
|
@@ -11181,6 +11209,7 @@ exports.streamSSE = streamSSE;
|
|
|
11181
11209
|
exports.stripCitationMarkdown = stripCitationMarkdown;
|
|
11182
11210
|
exports.summarizeCitations = summarizeCitations;
|
|
11183
11211
|
exports.tags = tags_exports;
|
|
11212
|
+
exports.uploadSkill = uploadSkill;
|
|
11184
11213
|
exports.usdToGbp = usdToGbp;
|
|
11185
11214
|
exports.work = work_exports;
|
|
11186
11215
|
exports.workflowSteps = workflow_steps_exports;
|