@kosuke-ai/kosuke 1.0.145 → 1.0.147

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.147
4
+
5
+ - Add `sensei threads archive <threadId>` and `sensei threads unarchive <threadId>`: archive one of your Sensei Threads and bring it back, from your API key or your own Sensei. `sensei threads list --states archived` lists the ones you archived.
6
+
7
+ ## 1.0.146
8
+
9
+ - `projects merge-agent rate get` counts `daily` in the calendar days of your own timezone, as the web app now does, unless you pass `--tz`; the answer names the zone as `timeZone`. Before, days were always UTC days.
10
+
3
11
  ## 1.0.145
4
12
 
5
13
  - Accept people-nearby as a system cron in user settings.
@@ -233,131 +233,133 @@ import { operation as o231 } from './sensei/repository-cards-create.js';
233
233
  import { operation as o232 } from './sensei/sessions-assessments-create.js';
234
234
  import { operation as o233 } from './sensei/sessions-facts-get.js';
235
235
  import { operation as o234 } from './sensei/suggestions-create.js';
236
- import { operation as o235 } from './sensei/threads-close.js';
237
- import { operation as o236 } from './sensei/threads-create.js';
238
- import { operation as o237 } from './sensei/threads-get.js';
239
- import { operation as o238 } from './sensei/threads-list.js';
240
- import { operation as o239 } from './sensei/threads-move.js';
241
- import { operation as o240 } from './sensei/threads-notes-get.js';
242
- import { operation as o241 } from './sensei/threads-notes-send.js';
243
- import { operation as o242 } from './sensei/threads-search.js';
244
- import { operation as o243 } from './sensei/threads-split.js';
245
- import { operation as o244 } from './sensei/tickets-merge.js';
246
- import { operation as o245 } from './sensei/watch-reads-finish.js';
247
- import { operation as o246 } from './sensei/widgets-get.js';
248
- import { operation as o247 } from './sensei/writing-get.js';
249
- import { operation as o248 } from './sensei/writing-set.js';
250
- import { operation as o249 } from './sensei/writing-samples-create.js';
251
- import { operation as o250 } from './sessions/app-stack-start.js';
252
- import { operation as o251 } from './sessions/create.js';
253
- import { operation as o252 } from './sessions/delete.js';
254
- import { operation as o253 } from './sessions/desktop-control-set.js';
255
- import { operation as o254 } from './sessions/desktop-get.js';
256
- import { operation as o255 } from './sessions/desktop-start.js';
257
- import { operation as o256 } from './sessions/diff-comments-create.js';
258
- import { operation as o257 } from './sessions/diff-comments-delete.js';
259
- import { operation as o258 } from './sessions/diff-comments-list.js';
260
- import { operation as o259 } from './sessions/diff-comments-update.js';
261
- import { operation as o260 } from './sessions/diff-commits-list.js';
262
- import { operation as o261 } from './sessions/diff-files-list.js';
263
- import { operation as o262 } from './sessions/diff-patch-get.js';
264
- import { operation as o263 } from './sessions/env-sync.js';
265
- import { operation as o264 } from './sessions/files-attach.js';
266
- import { operation as o265 } from './sessions/files-get.js';
267
- import { operation as o266 } from './sessions/files-list.js';
268
- import { operation as o267 } from './sessions/get.js';
269
- import { operation as o268 } from './sessions/git-state-get.js';
270
- import { operation as o269 } from './sessions/go-ahead-delete.js';
271
- import { operation as o270 } from './sessions/go-ahead-set.js';
272
- import { operation as o271 } from './sessions/jobs-cancel.js';
273
- import { operation as o272 } from './sessions/jobs-get.js';
274
- import { operation as o273 } from './sessions/jobs-list.js';
275
- import { operation as o274 } from './sessions/labels-set.js';
276
- import { operation as o275 } from './sessions/labels-update.js';
277
- import { operation as o276 } from './sessions/list.js';
278
- import { operation as o277 } from './sessions/list--all.js';
279
- import { operation as o278 } from './sessions/mark-read.js';
280
- import { operation as o279 } from './sessions/messages-get.js';
281
- import { operation as o280 } from './sessions/messages-list.js';
282
- import { operation as o281 } from './sessions/prompt-update.js';
283
- import { operation as o282 } from './sessions/qa-runs-finish.js';
284
- import { operation as o283 } from './sessions/qa-runs-fixes-create.js';
285
- import { operation as o284 } from './sessions/qa-runs-get.js';
286
- import { operation as o285 } from './sessions/qa-runs-results-create.js';
287
- import { operation as o286 } from './sessions/qa-runs-start.js';
288
- import { operation as o287 } from './sessions/qa-runs-stop.js';
289
- import { operation as o288 } from './sessions/qa-set.js';
290
- import { operation as o289 } from './sessions/queue-delete.js';
291
- import { operation as o290 } from './sessions/queue-list.js';
292
- import { operation as o291 } from './sessions/queue-move.js';
293
- import { operation as o292 } from './sessions/queue-resume.js';
294
- import { operation as o293 } from './sessions/queue-send.js';
295
- import { operation as o294 } from './sessions/queue-steer.js';
296
- import { operation as o295 } from './sessions/queue-update.js';
297
- import { operation as o296 } from './sessions/review-set.js';
298
- import { operation as o297 } from './sessions/runtime-commands-run.js';
299
- import { operation as o298 } from './sessions/sandbox-files-get.js';
300
- import { operation as o299 } from './sessions/sandbox-files-list.js';
301
- import { operation as o300 } from './sessions/sandbox-files-set.js';
302
- import { operation as o301 } from './sessions/search.js';
303
- import { operation as o302 } from './sessions/send.js';
304
- import { operation as o303 } from './sessions/start.js';
305
- import { operation as o304 } from './sessions/steer.js';
306
- import { operation as o305 } from './sessions/update.js';
307
- import { operation as o306 } from './skills/create.js';
308
- import { operation as o307 } from './skills/create--personal.js';
309
- import { operation as o308 } from './skills/delete.js';
310
- import { operation as o309 } from './skills/delete--personal.js';
311
- import { operation as o310 } from './skills/get.js';
312
- import { operation as o311 } from './skills/get--personal.js';
313
- import { operation as o312 } from './skills/list.js';
314
- import { operation as o313 } from './skills/list--personal.js';
315
- import { operation as o314 } from './skills/update.js';
316
- import { operation as o315 } from './skills/update--personal.js';
317
- import { operation as o316 } from './tasks/create.js';
318
- import { operation as o317 } from './tasks/create--personal.js';
319
- import { operation as o318 } from './tasks/delete.js';
320
- import { operation as o319 } from './tasks/delete--personal.js';
321
- import { operation as o320 } from './tasks/get.js';
322
- import { operation as o321 } from './tasks/get--personal.js';
323
- import { operation as o322 } from './tasks/labels-list.js';
324
- import { operation as o323 } from './tasks/list.js';
325
- import { operation as o324 } from './tasks/list--all.js';
326
- import { operation as o325 } from './tasks/list--personal.js';
327
- import { operation as o326 } from './tasks/move.js';
328
- import { operation as o327 } from './tasks/move--personal.js';
329
- import { operation as o328 } from './tasks/project-set.js';
330
- import { operation as o329 } from './tasks/start.js';
331
- import { operation as o330 } from './tasks/start--personal.js';
332
- import { operation as o331 } from './tasks/thread-get.js';
333
- import { operation as o332 } from './tasks/thread-get--personal.js';
334
- import { operation as o333 } from './tasks/thread-move.js';
335
- import { operation as o334 } from './tasks/thread-move--personal.js';
336
- import { operation as o335 } from './tasks/update.js';
337
- import { operation as o336 } from './tasks/update--personal.js';
338
- import { operation as o337 } from './user/api-keys-delete.js';
339
- import { operation as o338 } from './user/personal-space-get.js';
340
- import { operation as o339 } from './user/plan-get.js';
341
- import { operation as o340 } from './user/profile-get.js';
342
- import { operation as o341 } from './user/push-devices-create.js';
343
- import { operation as o342 } from './user/push-devices-delete.js';
344
- import { operation as o343 } from './user/settings-get.js';
345
- import { operation as o344 } from './user/settings-update.js';
346
- import { operation as o345 } from './user/usage-get.js';
347
- import { operation as o346 } from './workspaces/credits-get.js';
348
- import { operation as o347 } from './workspaces/get.js';
349
- import { operation as o348 } from './workspaces/list.js';
350
- import { operation as o349 } from './workspaces/members-list.js';
351
- import { operation as o350 } from './workspaces/members-list--all.js';
352
- import { operation as o351 } from './workspaces/memory-get.js';
353
- import { operation as o352 } from './workspaces/memory-set.js';
354
- import { operation as o353 } from './workspaces/personal-runtime-get.js';
355
- import { operation as o354 } from './workspaces/sandbox-hours-get.js';
356
- import { operation as o355 } from './workspaces/sandbox-limit-get.js';
357
- import { operation as o356 } from './workspaces/sandboxes-stop.js';
358
- import { operation as o357 } from './workspaces/timezone-set.js';
359
- import { operation as o358 } from './workspaces/usage-breakdown-get.js';
360
- import { operation as o359 } from './workspaces/usage-get.js';
236
+ import { operation as o235 } from './sensei/threads-archive.js';
237
+ import { operation as o236 } from './sensei/threads-close.js';
238
+ import { operation as o237 } from './sensei/threads-create.js';
239
+ import { operation as o238 } from './sensei/threads-get.js';
240
+ import { operation as o239 } from './sensei/threads-list.js';
241
+ import { operation as o240 } from './sensei/threads-move.js';
242
+ import { operation as o241 } from './sensei/threads-notes-get.js';
243
+ import { operation as o242 } from './sensei/threads-notes-send.js';
244
+ import { operation as o243 } from './sensei/threads-search.js';
245
+ import { operation as o244 } from './sensei/threads-split.js';
246
+ import { operation as o245 } from './sensei/threads-unarchive.js';
247
+ import { operation as o246 } from './sensei/tickets-merge.js';
248
+ import { operation as o247 } from './sensei/watch-reads-finish.js';
249
+ import { operation as o248 } from './sensei/widgets-get.js';
250
+ import { operation as o249 } from './sensei/writing-get.js';
251
+ import { operation as o250 } from './sensei/writing-set.js';
252
+ import { operation as o251 } from './sensei/writing-samples-create.js';
253
+ import { operation as o252 } from './sessions/app-stack-start.js';
254
+ import { operation as o253 } from './sessions/create.js';
255
+ import { operation as o254 } from './sessions/delete.js';
256
+ import { operation as o255 } from './sessions/desktop-control-set.js';
257
+ import { operation as o256 } from './sessions/desktop-get.js';
258
+ import { operation as o257 } from './sessions/desktop-start.js';
259
+ import { operation as o258 } from './sessions/diff-comments-create.js';
260
+ import { operation as o259 } from './sessions/diff-comments-delete.js';
261
+ import { operation as o260 } from './sessions/diff-comments-list.js';
262
+ import { operation as o261 } from './sessions/diff-comments-update.js';
263
+ import { operation as o262 } from './sessions/diff-commits-list.js';
264
+ import { operation as o263 } from './sessions/diff-files-list.js';
265
+ import { operation as o264 } from './sessions/diff-patch-get.js';
266
+ import { operation as o265 } from './sessions/env-sync.js';
267
+ import { operation as o266 } from './sessions/files-attach.js';
268
+ import { operation as o267 } from './sessions/files-get.js';
269
+ import { operation as o268 } from './sessions/files-list.js';
270
+ import { operation as o269 } from './sessions/get.js';
271
+ import { operation as o270 } from './sessions/git-state-get.js';
272
+ import { operation as o271 } from './sessions/go-ahead-delete.js';
273
+ import { operation as o272 } from './sessions/go-ahead-set.js';
274
+ import { operation as o273 } from './sessions/jobs-cancel.js';
275
+ import { operation as o274 } from './sessions/jobs-get.js';
276
+ import { operation as o275 } from './sessions/jobs-list.js';
277
+ import { operation as o276 } from './sessions/labels-set.js';
278
+ import { operation as o277 } from './sessions/labels-update.js';
279
+ import { operation as o278 } from './sessions/list.js';
280
+ import { operation as o279 } from './sessions/list--all.js';
281
+ import { operation as o280 } from './sessions/mark-read.js';
282
+ import { operation as o281 } from './sessions/messages-get.js';
283
+ import { operation as o282 } from './sessions/messages-list.js';
284
+ import { operation as o283 } from './sessions/prompt-update.js';
285
+ import { operation as o284 } from './sessions/qa-runs-finish.js';
286
+ import { operation as o285 } from './sessions/qa-runs-fixes-create.js';
287
+ import { operation as o286 } from './sessions/qa-runs-get.js';
288
+ import { operation as o287 } from './sessions/qa-runs-results-create.js';
289
+ import { operation as o288 } from './sessions/qa-runs-start.js';
290
+ import { operation as o289 } from './sessions/qa-runs-stop.js';
291
+ import { operation as o290 } from './sessions/qa-set.js';
292
+ import { operation as o291 } from './sessions/queue-delete.js';
293
+ import { operation as o292 } from './sessions/queue-list.js';
294
+ import { operation as o293 } from './sessions/queue-move.js';
295
+ import { operation as o294 } from './sessions/queue-resume.js';
296
+ import { operation as o295 } from './sessions/queue-send.js';
297
+ import { operation as o296 } from './sessions/queue-steer.js';
298
+ import { operation as o297 } from './sessions/queue-update.js';
299
+ import { operation as o298 } from './sessions/review-set.js';
300
+ import { operation as o299 } from './sessions/runtime-commands-run.js';
301
+ import { operation as o300 } from './sessions/sandbox-files-get.js';
302
+ import { operation as o301 } from './sessions/sandbox-files-list.js';
303
+ import { operation as o302 } from './sessions/sandbox-files-set.js';
304
+ import { operation as o303 } from './sessions/search.js';
305
+ import { operation as o304 } from './sessions/send.js';
306
+ import { operation as o305 } from './sessions/start.js';
307
+ import { operation as o306 } from './sessions/steer.js';
308
+ import { operation as o307 } from './sessions/update.js';
309
+ import { operation as o308 } from './skills/create.js';
310
+ import { operation as o309 } from './skills/create--personal.js';
311
+ import { operation as o310 } from './skills/delete.js';
312
+ import { operation as o311 } from './skills/delete--personal.js';
313
+ import { operation as o312 } from './skills/get.js';
314
+ import { operation as o313 } from './skills/get--personal.js';
315
+ import { operation as o314 } from './skills/list.js';
316
+ import { operation as o315 } from './skills/list--personal.js';
317
+ import { operation as o316 } from './skills/update.js';
318
+ import { operation as o317 } from './skills/update--personal.js';
319
+ import { operation as o318 } from './tasks/create.js';
320
+ import { operation as o319 } from './tasks/create--personal.js';
321
+ import { operation as o320 } from './tasks/delete.js';
322
+ import { operation as o321 } from './tasks/delete--personal.js';
323
+ import { operation as o322 } from './tasks/get.js';
324
+ import { operation as o323 } from './tasks/get--personal.js';
325
+ import { operation as o324 } from './tasks/labels-list.js';
326
+ import { operation as o325 } from './tasks/list.js';
327
+ import { operation as o326 } from './tasks/list--all.js';
328
+ import { operation as o327 } from './tasks/list--personal.js';
329
+ import { operation as o328 } from './tasks/move.js';
330
+ import { operation as o329 } from './tasks/move--personal.js';
331
+ import { operation as o330 } from './tasks/project-set.js';
332
+ import { operation as o331 } from './tasks/start.js';
333
+ import { operation as o332 } from './tasks/start--personal.js';
334
+ import { operation as o333 } from './tasks/thread-get.js';
335
+ import { operation as o334 } from './tasks/thread-get--personal.js';
336
+ import { operation as o335 } from './tasks/thread-move.js';
337
+ import { operation as o336 } from './tasks/thread-move--personal.js';
338
+ import { operation as o337 } from './tasks/update.js';
339
+ import { operation as o338 } from './tasks/update--personal.js';
340
+ import { operation as o339 } from './user/api-keys-delete.js';
341
+ import { operation as o340 } from './user/personal-space-get.js';
342
+ import { operation as o341 } from './user/plan-get.js';
343
+ import { operation as o342 } from './user/profile-get.js';
344
+ import { operation as o343 } from './user/push-devices-create.js';
345
+ import { operation as o344 } from './user/push-devices-delete.js';
346
+ import { operation as o345 } from './user/settings-get.js';
347
+ import { operation as o346 } from './user/settings-update.js';
348
+ import { operation as o347 } from './user/usage-get.js';
349
+ import { operation as o348 } from './workspaces/credits-get.js';
350
+ import { operation as o349 } from './workspaces/get.js';
351
+ import { operation as o350 } from './workspaces/list.js';
352
+ import { operation as o351 } from './workspaces/members-list.js';
353
+ import { operation as o352 } from './workspaces/members-list--all.js';
354
+ import { operation as o353 } from './workspaces/memory-get.js';
355
+ import { operation as o354 } from './workspaces/memory-set.js';
356
+ import { operation as o355 } from './workspaces/personal-runtime-get.js';
357
+ import { operation as o356 } from './workspaces/sandbox-hours-get.js';
358
+ import { operation as o357 } from './workspaces/sandbox-limit-get.js';
359
+ import { operation as o358 } from './workspaces/sandboxes-stop.js';
360
+ import { operation as o359 } from './workspaces/timezone-set.js';
361
+ import { operation as o360 } from './workspaces/usage-breakdown-get.js';
362
+ import { operation as o361 } from './workspaces/usage-get.js';
361
363
  export const operations = [
362
364
  o0,
363
365
  o1,
@@ -719,4 +721,6 @@ export const operations = [
719
721
  o357,
720
722
  o358,
721
723
  o359,
724
+ o360,
725
+ o361,
722
726
  ];
@@ -7,11 +7,19 @@ export const operation = {
7
7
  "rate",
8
8
  "get"
9
9
  ],
10
- "summary": "Read the repository's merge rate: every pull request GitHub merged into the project's base (base), by the Merge agent's merge train or by people, a Kosuke session's member or anyone on GitHub. last24h and prev24h: the rolling 24 hours up to now and the 24 before, each with total, byAgent (the merge train's: merged as the Kosuke GitHub App, or landed by GitHub's merge queue for a train run) and perHour. hourly: the 24 UTC clock hours up to the current one; daily: the 7 UTC days up to today, each with byAgent and byPeople. Kosuke records every merge from GitHub's webhook; backfilled false: the merges of the last 30 days before that are still being read from GitHub, once per project, and the counts may miss some. backfillBlocked says why that read cannot run now: no_repository (no GitHub repository linked yet; it runs once one is) installation_lost (the Kosuke GitHub App's installation is lost) or repository_unreachable (GitHub could not find or read the repository); the last two are tried again within the hour. Else null. This read makes no GitHub call.",
10
+ "summary": "Read the repository's merge rate: every pull request GitHub merged into the project's base (base), by the Merge agent's merge train or by people, a Kosuke session's member or anyone on GitHub. last24h and prev24h: the rolling 24 hours up to now and the 24 before, each with total, byAgent (the merge train's: merged as the Kosuke GitHub App, or landed by GitHub's merge queue for a train run) and perHour. hourly: the 24 UTC clock hours up to the current one; daily: the 7 calendar days of tz (an IANA time zone, UTC by default; timeZone echoes it as Intl spells it) up to today there, each with its date, byAgent and byPeople. Kosuke records every merge from GitHub's webhook; backfilled false: the merges of the last 30 days before that are still being read from GitHub, once per project, and the counts may miss some. backfillBlocked says why that read cannot run now: no_repository (no GitHub repository linked yet; it runs once one is) installation_lost (the Kosuke GitHub App's installation is lost) or repository_unreachable (GitHub could not find or read the repository); the last two are tried again within the hour. Else null. This read makes no GitHub call. 400 on an unknown time zone.",
11
11
  "pathParams": [
12
12
  "projectId"
13
13
  ],
14
- "query": [],
14
+ "query": [
15
+ {
16
+ "name": "tz",
17
+ "flag": "tz",
18
+ "kind": "string",
19
+ "required": false,
20
+ "description": "IANA time zone whose calendar days daily counts. Default: UTC; the web app and the kosuke CLI send your own timezone."
21
+ }
22
+ ],
15
23
  "body": null,
16
24
  "multipart": null,
17
25
  "attachments": false,
@@ -0,0 +1,25 @@
1
+ export const operation = {
2
+ "method": "put",
3
+ "path": "/api/sensei/threads/{threadId}/archive",
4
+ "command": [
5
+ "sensei",
6
+ "threads",
7
+ "archive"
8
+ ],
9
+ "summary": "Archive your Sensei Thread",
10
+ "pathParams": [
11
+ "threadId"
12
+ ],
13
+ "query": [],
14
+ "body": null,
15
+ "multipart": null,
16
+ "attachments": false,
17
+ "fields": [
18
+ "threadId",
19
+ "archived"
20
+ ],
21
+ "anonymous": false,
22
+ "agents": [
23
+ "senseiToken"
24
+ ]
25
+ };
@@ -0,0 +1,25 @@
1
+ export const operation = {
2
+ "method": "delete",
3
+ "path": "/api/sensei/threads/{threadId}/archive",
4
+ "command": [
5
+ "sensei",
6
+ "threads",
7
+ "unarchive"
8
+ ],
9
+ "summary": "Unarchive your Sensei Thread",
10
+ "pathParams": [
11
+ "threadId"
12
+ ],
13
+ "query": [],
14
+ "body": null,
15
+ "multipart": null,
16
+ "attachments": false,
17
+ "fields": [
18
+ "threadId",
19
+ "archived"
20
+ ],
21
+ "anonymous": false,
22
+ "agents": [
23
+ "senseiToken"
24
+ ]
25
+ };
@@ -59,6 +59,7 @@ export function localStamp(now, timeZone) {
59
59
  * member's own timezone, where the API itself defaults to UTC. A `--tz` given always wins.
60
60
  */
61
61
  const MEMBER_TIME_ZONE_DEFAULTS = new Set([
62
+ 'projects merge-agent rate get',
62
63
  'user usage get',
63
64
  'workspaces usage breakdown get',
64
65
  ]);
package/openapi.json CHANGED
@@ -19235,7 +19235,7 @@
19235
19235
  "/api/projects/{projectId}/merge-agent/rate": {
19236
19236
  "get": {
19237
19237
  "operationId": "projectsMergeAgentRateGet",
19238
- "summary": "Read the repository's merge rate: every pull request GitHub merged into the project's base (base), by the Merge agent's merge train or by people, a Kosuke session's member or anyone on GitHub. last24h and prev24h: the rolling 24 hours up to now and the 24 before, each with total, byAgent (the merge train's: merged as the Kosuke GitHub App, or landed by GitHub's merge queue for a train run) and perHour. hourly: the 24 UTC clock hours up to the current one; daily: the 7 UTC days up to today, each with byAgent and byPeople. Kosuke records every merge from GitHub's webhook; backfilled false: the merges of the last 30 days before that are still being read from GitHub, once per project, and the counts may miss some. backfillBlocked says why that read cannot run now: no_repository (no GitHub repository linked yet; it runs once one is) installation_lost (the Kosuke GitHub App's installation is lost) or repository_unreachable (GitHub could not find or read the repository); the last two are tried again within the hour. Else null. This read makes no GitHub call.",
19238
+ "summary": "Read the repository's merge rate: every pull request GitHub merged into the project's base (base), by the Merge agent's merge train or by people, a Kosuke session's member or anyone on GitHub. last24h and prev24h: the rolling 24 hours up to now and the 24 before, each with total, byAgent (the merge train's: merged as the Kosuke GitHub App, or landed by GitHub's merge queue for a train run) and perHour. hourly: the 24 UTC clock hours up to the current one; daily: the 7 calendar days of tz (an IANA time zone, UTC by default; timeZone echoes it as Intl spells it) up to today there, each with its date, byAgent and byPeople. Kosuke records every merge from GitHub's webhook; backfilled false: the merges of the last 30 days before that are still being read from GitHub, once per project, and the counts may miss some. backfillBlocked says why that read cannot run now: no_repository (no GitHub repository linked yet; it runs once one is) installation_lost (the Kosuke GitHub App's installation is lost) or repository_unreachable (GitHub could not find or read the repository); the last two are tried again within the hour. Else null. This read makes no GitHub call. 400 on an unknown time zone.",
19239
19239
  "tags": ["projects"],
19240
19240
  "x-kosuke-command": ["projects", "merge-agent", "rate", "get"],
19241
19241
  "x-kosuke-sandbox-token": true,
@@ -19251,6 +19251,17 @@
19251
19251
  "format": "uuid",
19252
19252
  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
19253
19253
  }
19254
+ },
19255
+ {
19256
+ "name": "tz",
19257
+ "in": "query",
19258
+ "required": false,
19259
+ "description": "IANA time zone whose calendar days daily counts. Default: UTC; the web app and the kosuke CLI send your own timezone.",
19260
+ "schema": {
19261
+ "default": "UTC",
19262
+ "description": "IANA time zone whose calendar days daily counts. Default: UTC; the web app and the kosuke CLI send your own timezone.",
19263
+ "type": "string"
19264
+ }
19254
19265
  }
19255
19266
  ],
19256
19267
  "responses": {
@@ -27474,6 +27485,112 @@
27474
27485
  }
27475
27486
  }
27476
27487
  },
27488
+ "/api/sensei/threads/{threadId}/archive": {
27489
+ "put": {
27490
+ "operationId": "senseiThreadsArchive",
27491
+ "summary": "Archive your Sensei Thread",
27492
+ "tags": ["sensei"],
27493
+ "x-kosuke-command": ["sensei", "threads", "archive"],
27494
+ "x-kosuke-fields": ["threadId", "archived"],
27495
+ "x-kosuke-sensei-token": true,
27496
+ "parameters": [
27497
+ {
27498
+ "name": "threadId",
27499
+ "in": "path",
27500
+ "required": true,
27501
+ "schema": {
27502
+ "type": "string",
27503
+ "format": "uuid",
27504
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
27505
+ }
27506
+ }
27507
+ ],
27508
+ "responses": {
27509
+ "2XX": {
27510
+ "description": "Success envelope",
27511
+ "content": {
27512
+ "application/json": {
27513
+ "schema": {
27514
+ "$ref": "#/components/schemas/ApiSuccess"
27515
+ }
27516
+ }
27517
+ }
27518
+ },
27519
+ "4XX": {
27520
+ "description": "Error envelope",
27521
+ "content": {
27522
+ "application/json": {
27523
+ "schema": {
27524
+ "$ref": "#/components/schemas/ApiError"
27525
+ }
27526
+ }
27527
+ }
27528
+ },
27529
+ "5XX": {
27530
+ "description": "Error envelope",
27531
+ "content": {
27532
+ "application/json": {
27533
+ "schema": {
27534
+ "$ref": "#/components/schemas/ApiError"
27535
+ }
27536
+ }
27537
+ }
27538
+ }
27539
+ }
27540
+ },
27541
+ "delete": {
27542
+ "operationId": "senseiThreadsUnarchive",
27543
+ "summary": "Unarchive your Sensei Thread",
27544
+ "tags": ["sensei"],
27545
+ "x-kosuke-command": ["sensei", "threads", "unarchive"],
27546
+ "x-kosuke-fields": ["threadId", "archived"],
27547
+ "x-kosuke-sensei-token": true,
27548
+ "parameters": [
27549
+ {
27550
+ "name": "threadId",
27551
+ "in": "path",
27552
+ "required": true,
27553
+ "schema": {
27554
+ "type": "string",
27555
+ "format": "uuid",
27556
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
27557
+ }
27558
+ }
27559
+ ],
27560
+ "responses": {
27561
+ "2XX": {
27562
+ "description": "Success envelope",
27563
+ "content": {
27564
+ "application/json": {
27565
+ "schema": {
27566
+ "$ref": "#/components/schemas/ApiSuccess"
27567
+ }
27568
+ }
27569
+ }
27570
+ },
27571
+ "4XX": {
27572
+ "description": "Error envelope",
27573
+ "content": {
27574
+ "application/json": {
27575
+ "schema": {
27576
+ "$ref": "#/components/schemas/ApiError"
27577
+ }
27578
+ }
27579
+ }
27580
+ },
27581
+ "5XX": {
27582
+ "description": "Error envelope",
27583
+ "content": {
27584
+ "application/json": {
27585
+ "schema": {
27586
+ "$ref": "#/components/schemas/ApiError"
27587
+ }
27588
+ }
27589
+ }
27590
+ }
27591
+ }
27592
+ }
27593
+ },
27477
27594
  "/api/sensei/threads/{threadId}/done": {
27478
27595
  "post": {
27479
27596
  "operationId": "senseiThreadsClose",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.145",
3
+ "version": "1.0.147",
4
4
  "description": "Sensei platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,10 +43,10 @@
43
43
  "minimatch": "^11.0.1"
44
44
  },
45
45
  "kosukeRelease": {
46
- "sourceCommit": "b6659bbb760c1ef0ea69e06fc52ce978458fe936",
47
- "sourceIdentity": "09f43363d2f626967103915683bde8921358ee81db52c81522e2e70ac1266201",
46
+ "sourceCommit": "82ff763a00f080de241069b3781a3f5bb8f80258",
47
+ "sourceIdentity": "01cfa7df6da84a36388a149b2a33eaab91d80c45aac31c909ffd0dd3246b8615",
48
48
  "fragments": [
49
- "people-nearby-switch-al5ii0.json"
49
+ "sensei-threads-archive-ww7jq8.json"
50
50
  ]
51
51
  }
52
52
  }