@kosuke-ai/kosuke 1.0.144 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.146
4
+
5
+ - `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.
6
+
7
+ ## 1.0.145
8
+
9
+ - Accept people-nearby as a system cron in user settings.
10
+
3
11
  ## 1.0.144
4
12
 
5
13
  - Sensei can unlock X Chat through an approved sign-in card with mac browser login --unlock. The command opens X Watching’s window and waits for the verified result.
@@ -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,
@@ -36,6 +36,7 @@ export const operation = {
36
36
  "writing-style",
37
37
  "pulse",
38
38
  "crons-suggestion",
39
+ "people-nearby",
39
40
  "daily-report",
40
41
  "find-us"
41
42
  ]
@@ -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": {
@@ -30953,6 +30964,7 @@
30953
30964
  "writing-style",
30954
30965
  "pulse",
30955
30966
  "crons-suggestion",
30967
+ "people-nearby",
30956
30968
  "daily-report",
30957
30969
  "find-us"
30958
30970
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.144",
3
+ "version": "1.0.146",
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,11 +43,10 @@
43
43
  "minimatch": "^11.0.1"
44
44
  },
45
45
  "kosukeRelease": {
46
- "sourceCommit": "4ea8fc24ffc7fefa26b46891d17856db5ec37cb2",
47
- "sourceIdentity": "4d0f62bbb1414c9a5b378024aaaf6fb826b04d04775fe2d263bf7137338b926c",
46
+ "sourceCommit": "f2681f9bb1ef524b220903f12aa81f1b1eb0b0b7",
47
+ "sourceIdentity": "87926eb85c6d0974ae2cf4ff8a19e50b2533461651c603a64070d1801f931337",
48
48
  "fragments": [
49
- "x-chat-model-unlock-card.json",
50
- "x-chat-passcode-gap.json"
49
+ "merge-rate-member-days-z9yrhs.json"
51
50
  ]
52
51
  }
53
52
  }