@arbidocs/sdk 0.3.145 → 0.3.146
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-BgkwIgWN.d.cts → browser-Z9m6Vrzw.d.cts} +45 -45
- package/dist/{browser-BgkwIgWN.d.ts → browser-Z9m6Vrzw.d.ts} +45 -45
- package/dist/browser.cjs +33 -33
- 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 +33 -33
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +33 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6130,22 +6130,22 @@ async function runTask(arbi, taskId) {
|
|
|
6130
6130
|
);
|
|
6131
6131
|
}
|
|
6132
6132
|
|
|
6133
|
-
// src/operations/
|
|
6134
|
-
var
|
|
6135
|
-
__export(
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6133
|
+
// src/operations/facts.ts
|
|
6134
|
+
var facts_exports = {};
|
|
6135
|
+
__export(facts_exports, {
|
|
6136
|
+
createFact: () => createFact,
|
|
6137
|
+
deleteFact: () => deleteFact,
|
|
6138
|
+
listFacts: () => listFacts,
|
|
6139
|
+
remindFact: () => remindFact,
|
|
6140
|
+
searchFacts: () => searchFacts,
|
|
6141
|
+
updateFact: () => updateFact
|
|
6142
6142
|
});
|
|
6143
|
-
async function
|
|
6144
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
6143
|
+
async function createFact(arbi, body) {
|
|
6144
|
+
return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
|
|
6145
6145
|
}
|
|
6146
|
-
async function
|
|
6146
|
+
async function listFacts(arbi, options) {
|
|
6147
6147
|
return requireData(
|
|
6148
|
-
await arbi.fetch.GET("/v1/
|
|
6148
|
+
await arbi.fetch.GET("/v1/facts/list", {
|
|
6149
6149
|
params: {
|
|
6150
6150
|
query: {
|
|
6151
6151
|
pinned_only: options?.pinnedOnly ?? false,
|
|
@@ -6158,28 +6158,28 @@ async function listNotes(arbi, options) {
|
|
|
6158
6158
|
"Failed to list notes"
|
|
6159
6159
|
);
|
|
6160
6160
|
}
|
|
6161
|
-
async function
|
|
6162
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
6161
|
+
async function searchFacts(arbi, body) {
|
|
6162
|
+
return requireData(await arbi.fetch.POST("/v1/facts/search", { body }), "Failed to search notes");
|
|
6163
6163
|
}
|
|
6164
|
-
async function
|
|
6164
|
+
async function updateFact(arbi, factId, body) {
|
|
6165
6165
|
return requireData(
|
|
6166
|
-
await arbi.fetch.PATCH("/v1/
|
|
6167
|
-
params: { path: {
|
|
6166
|
+
await arbi.fetch.PATCH("/v1/facts/{fact_ext_id}", {
|
|
6167
|
+
params: { path: { fact_ext_id: factId } },
|
|
6168
6168
|
body
|
|
6169
6169
|
}),
|
|
6170
6170
|
"Failed to update note"
|
|
6171
6171
|
);
|
|
6172
6172
|
}
|
|
6173
|
-
async function
|
|
6174
|
-
const { error } = await arbi.fetch.DELETE("/v1/
|
|
6175
|
-
params: { path: {
|
|
6173
|
+
async function deleteFact(arbi, factId) {
|
|
6174
|
+
const { error } = await arbi.fetch.DELETE("/v1/facts/{fact_ext_id}", {
|
|
6175
|
+
params: { path: { fact_ext_id: factId } }
|
|
6176
6176
|
});
|
|
6177
6177
|
if (error) throw new Error("Failed to delete note");
|
|
6178
6178
|
}
|
|
6179
|
-
async function
|
|
6179
|
+
async function remindFact(arbi, factId, options = {}) {
|
|
6180
6180
|
return requireData(
|
|
6181
|
-
await arbi.fetch.POST("/v1/
|
|
6182
|
-
params: { path: {
|
|
6181
|
+
await arbi.fetch.POST("/v1/facts/{fact_ext_id}/remind", {
|
|
6182
|
+
params: { path: { fact_ext_id: factId } },
|
|
6183
6183
|
body: {
|
|
6184
6184
|
remind_at: options.remindAt ?? null,
|
|
6185
6185
|
lead_minutes: options.leadMinutes ?? null
|
|
@@ -6665,18 +6665,18 @@ var Arbi = class {
|
|
|
6665
6665
|
delete: (taskId) => deleteTask(this.requireClient(), taskId),
|
|
6666
6666
|
run: (taskId) => runTask(this.requireClient(), taskId)
|
|
6667
6667
|
};
|
|
6668
|
-
// ── Workspace
|
|
6669
|
-
|
|
6670
|
-
create: (body) =>
|
|
6668
|
+
// ── Workspace facts ─────────────────────────────────────────────────
|
|
6669
|
+
facts = {
|
|
6670
|
+
create: (body) => createFact(this.requireClient(), body),
|
|
6671
6671
|
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6672
6672
|
* ordered by when they happened. */
|
|
6673
|
-
list: (options) =>
|
|
6674
|
-
search: (body) =>
|
|
6675
|
-
update: (
|
|
6676
|
-
delete: (
|
|
6673
|
+
list: (options) => listFacts(this.requireClient(), options),
|
|
6674
|
+
search: (body) => searchFacts(this.requireClient(), body),
|
|
6675
|
+
update: (factId, body) => updateFact(this.requireClient(), factId, body),
|
|
6676
|
+
delete: (factId) => deleteFact(this.requireClient(), factId),
|
|
6677
6677
|
/** One-off reminder on a dated note: an explicit `remindAt`, or
|
|
6678
6678
|
* `leadMinutes` before its date. */
|
|
6679
|
-
remind: (
|
|
6679
|
+
remind: (factId, options = {}) => remindFact(this.requireClient(), factId, options)
|
|
6680
6680
|
};
|
|
6681
6681
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6682
6682
|
sessions = {
|
|
@@ -7854,6 +7854,7 @@ exports.dm = dm_exports;
|
|
|
7854
7854
|
exports.doctags = doctags_exports;
|
|
7855
7855
|
exports.documents = documents_exports;
|
|
7856
7856
|
exports.documentsNode = documents_node_exports;
|
|
7857
|
+
exports.facts = facts_exports;
|
|
7857
7858
|
exports.files = files_exports;
|
|
7858
7859
|
exports.filterSkills = filterSkills;
|
|
7859
7860
|
exports.formatAgentStepLabel = formatAgentStepLabel;
|
|
@@ -7870,7 +7871,6 @@ exports.getErrorMessage = getErrorMessage;
|
|
|
7870
7871
|
exports.getRawWorkspaceKey = getRawWorkspaceKey;
|
|
7871
7872
|
exports.health = health_exports;
|
|
7872
7873
|
exports.listen = listen_exports;
|
|
7873
|
-
exports.notes = notes_exports;
|
|
7874
7874
|
exports.parseSSEEvents = parseSSEEvents;
|
|
7875
7875
|
exports.parseSlashCommand = parseSlashCommand;
|
|
7876
7876
|
exports.parseSlashTokenInProgress = parseSlashTokenInProgress;
|