@themoltnet/pi-extension 0.26.3 → 0.26.4

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.
Files changed (2) hide show
  1. package/dist/index.js +66 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1257,6 +1257,32 @@ var initiateTransfer = (options) => (options.client ?? client).post({
1257
1257
  }
1258
1258
  });
1259
1259
  /**
1260
+ * Delete multiple diary entries. Signed, unauthorized, and missing entries are skipped.
1261
+ */
1262
+ var batchDeleteDiaryEntries = (options) => (options.client ?? client).delete({
1263
+ security: [
1264
+ {
1265
+ scheme: "bearer",
1266
+ type: "http"
1267
+ },
1268
+ {
1269
+ name: "X-Moltnet-Session-Token",
1270
+ type: "apiKey"
1271
+ },
1272
+ {
1273
+ in: "cookie",
1274
+ name: "ory_kratos_session",
1275
+ type: "apiKey"
1276
+ }
1277
+ ],
1278
+ url: "/entries",
1279
+ ...options,
1280
+ headers: {
1281
+ "Content-Type": "application/json",
1282
+ ...options.headers
1283
+ }
1284
+ });
1285
+ /**
1260
1286
  * Delete a diary entry.
1261
1287
  */
1262
1288
  var deleteDiaryEntryById = (options) => (options.client ?? client).delete({
@@ -1866,6 +1892,32 @@ var findLatestRuntimeSlotForAttempt = (options) => (options.client ?? client).ge
1866
1892
  ...options
1867
1893
  });
1868
1894
  /**
1895
+ * Delete terminal tasks in bulk. Safe mode skips live, unauthorized, missing, and protected tasks.
1896
+ */
1897
+ var batchDeleteTasks = (options) => (options.client ?? client).delete({
1898
+ security: [
1899
+ {
1900
+ scheme: "bearer",
1901
+ type: "http"
1902
+ },
1903
+ {
1904
+ name: "X-Moltnet-Session-Token",
1905
+ type: "apiKey"
1906
+ },
1907
+ {
1908
+ in: "cookie",
1909
+ name: "ory_kratos_session",
1910
+ type: "apiKey"
1911
+ }
1912
+ ],
1913
+ url: "/tasks",
1914
+ ...options,
1915
+ headers: {
1916
+ "Content-Type": "application/json",
1917
+ ...options.headers
1918
+ }
1919
+ });
1920
+ /**
1869
1921
  * List tasks for a team with optional filters.
1870
1922
  */
1871
1923
  var listTasks = (options) => (options.client ?? client).get({
@@ -4661,6 +4713,13 @@ function createEntriesNamespace(context) {
4661
4713
  path: { entryId }
4662
4714
  }));
4663
4715
  },
4716
+ async deleteMany(body) {
4717
+ return unwrapResult(await batchDeleteDiaryEntries({
4718
+ client,
4719
+ auth,
4720
+ body
4721
+ }));
4722
+ },
4664
4723
  async search(body) {
4665
4724
  return unwrapResult(await searchDiary({
4666
4725
  client,
@@ -5140,6 +5199,13 @@ function createTasksNamespace(context) {
5140
5199
  body
5141
5200
  }));
5142
5201
  },
5202
+ async deleteMany(body) {
5203
+ return unwrapResult(await batchDeleteTasks({
5204
+ client,
5205
+ auth,
5206
+ body
5207
+ }));
5208
+ },
5143
5209
  async listAttempts(id) {
5144
5210
  return unwrapResult(await listTaskAttempts({
5145
5211
  client,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@themoltnet/pi-extension",
3
- "version": "0.26.3",
3
+ "version": "0.26.4",
4
4
  "type": "module",
5
5
  "description": "MoltNet pi extension — sandboxed tool execution in Gondolin VMs with MoltNet identity and persistent memory",
6
6
  "keywords": [
@@ -36,8 +36,8 @@
36
36
  "@earendil-works/gondolin": "^0.9.1",
37
37
  "@opentelemetry/api": "^1.9.0",
38
38
  "typebox": "^1.2.8",
39
- "@themoltnet/agent-runtime": "0.28.0",
40
- "@themoltnet/sdk": "0.109.0"
39
+ "@themoltnet/sdk": "0.110.0",
40
+ "@themoltnet/agent-runtime": "0.28.1"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@earendil-works/pi-coding-agent": ">=0.74.0",