@kosuke-ai/kosuke 1.0.74 → 1.0.76
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.76
|
|
4
|
+
|
|
5
|
+
- `kosuke github repositories list` takes --limit, --cursor and --q to page and search; without them it still lists every repository.
|
|
6
|
+
|
|
7
|
+
## 1.0.75
|
|
8
|
+
|
|
9
|
+
- `kosuke sensei cards set` takes `--quoted`, the earlier words a card answers (a teammate's ask, quoted exactly).
|
|
10
|
+
|
|
3
11
|
## 1.0.74
|
|
4
12
|
|
|
5
13
|
- Show your own time in `kosuke agent summary get` and count `user usage get` and `workspaces usage breakdown get` days in your own timezone unless `--tz` is passed. Other JSON stays ISO UTC.
|
|
@@ -6,9 +6,52 @@ export const operation = {
|
|
|
6
6
|
"repositories",
|
|
7
7
|
"list"
|
|
8
8
|
],
|
|
9
|
-
"summary": "List the repositories the Kosuke GitHub App can reach through your connection,
|
|
9
|
+
"summary": "List the repositories the Kosuke GitHub App can reach through your connection, installed first then by name, with installUrl when there is no connection yet. Every repository at once by default; with limit, pass nextCursor back as cursor until it is null. q filters by owner/name. With an API key this is always your own listing, never the staff one. 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection.",
|
|
10
10
|
"pathParams": [],
|
|
11
|
-
"query": [
|
|
11
|
+
"query": [
|
|
12
|
+
{
|
|
13
|
+
"name": "limit",
|
|
14
|
+
"flag": "limit",
|
|
15
|
+
"kind": "integer",
|
|
16
|
+
"required": false,
|
|
17
|
+
"description": "Page size. Without limit or cursor every repository comes back at once. Values above 100 are clamped, not rejected."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "cursor",
|
|
21
|
+
"flag": "cursor",
|
|
22
|
+
"kind": "string",
|
|
23
|
+
"required": false,
|
|
24
|
+
"description": "nextCursor from the previous page; pages by 10 when limit is not given."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "q",
|
|
28
|
+
"flag": "q",
|
|
29
|
+
"kind": "string",
|
|
30
|
+
"required": false,
|
|
31
|
+
"description": "Only repositories whose owner/name contains this text, ignoring case."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "importable",
|
|
35
|
+
"flag": "importable",
|
|
36
|
+
"kind": "boolean",
|
|
37
|
+
"required": false,
|
|
38
|
+
"description": "Only repositories Kosuke can import: the App is installed and you can write."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "installed",
|
|
42
|
+
"flag": "installed",
|
|
43
|
+
"kind": "boolean",
|
|
44
|
+
"required": false,
|
|
45
|
+
"description": "Only repositories the App is installed on."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "refresh",
|
|
49
|
+
"flag": "refresh",
|
|
50
|
+
"kind": "boolean",
|
|
51
|
+
"required": false,
|
|
52
|
+
"description": "Read GitHub again instead of the listing kept for up to a minute."
|
|
53
|
+
}
|
|
54
|
+
],
|
|
12
55
|
"body": null,
|
|
13
56
|
"multipart": null,
|
|
14
57
|
"attachments": false,
|
|
@@ -61,7 +61,7 @@ export const operation = {
|
|
|
61
61
|
"flag": "open",
|
|
62
62
|
"kind": "json",
|
|
63
63
|
"required": false,
|
|
64
|
-
"description": "The page the primary button opens in place of an instruction, such as the link a teammate's message shares. The verb is the button's label (\"Open\", \"Read\"), and the tap opens the page, closes the card and sends nothing to Sensei. It takes a verb and an outcome, and no instruction, clarification block, Deploy form, action or covers.",
|
|
64
|
+
"description": "The page the primary button opens, in place of an instruction, such as the link a teammate's message shares. The verb is the button's label (\"Open\", \"Read\"), and the tap opens the page, closes the card and sends nothing to Sensei. It takes a verb and an outcome, and no instruction, clarification block, Deploy form, action or covers.",
|
|
65
65
|
"shape": "{href: string}"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
@@ -153,6 +153,14 @@ export const operation = {
|
|
|
153
153
|
"required": false,
|
|
154
154
|
"shape": "{id: string}"
|
|
155
155
|
},
|
|
156
|
+
{
|
|
157
|
+
"name": "quoted",
|
|
158
|
+
"flag": "quoted",
|
|
159
|
+
"kind": "json",
|
|
160
|
+
"required": false,
|
|
161
|
+
"description": "Earlier words the card answers, quoted at its top under a label the app writes (You asked, You replied, You said, Nicola asked). Kosuke fills it for a card a member's message started: their words, their voice note's transcript, or their reply to a card. Set it for a teammate's ask: author {kind: teammate, name, memberId when known}, kind ask, text the teammate's exact words from the message or review event the card answers (never a paraphrase, trimmed only of quoted history), at when they said it, source where (github for a GitHub review, slack, gmail, kosuke for a Kosuke message), ref.eventId the event. A value you set wins over Kosuke's.",
|
|
162
|
+
"shape": "{author: {kind: \"member\"|\"teammate\", memberId?: string, name: string}, kind: \"question\"|\"prompt\"|\"reply\"|\"voice\"|\"ask\", text: string, at: string, source?: \"thread\"|\"card_reply\"|\"kosuke\"|\"github\"|\"slack\"|\"gmail\"|\"whatsapp\"|\"telegram\"|\"linkedin\"|\"x\", cardHeadline?: string, ref?: {turnId?: string, cardId?: string, eventId?: string}}"
|
|
163
|
+
},
|
|
156
164
|
{
|
|
157
165
|
"name": "links",
|
|
158
166
|
"flag": "links",
|
|
@@ -179,7 +187,7 @@ export const operation = {
|
|
|
179
187
|
"flag": "sign-in",
|
|
180
188
|
"kind": "json",
|
|
181
189
|
"required": false,
|
|
182
|
-
"description": "
|
|
190
|
+
"description": "The member's Mac sign-in: the site, the Chrome profile ID, the Mac and, on the Sign in card of a site other than LinkedIn and X, the wall's url. Its Approve allows one tapped `kosuke mac browser login` for exactly these. Key it mac-sign-in:<site>:<profile> (the profile ID lowercase, spaces as hyphens: Profile 6 is profile-6) for Sign in, with :done for I'm signed in and :account for Continue as, both of which run --take. Only a card keyed mac-sign-in: takes it, and such a card needs it. A Sign in card for LinkedIn or X marks that connection signed out.",
|
|
183
191
|
"shape": "{site: string, profile: string, deviceId: string, url?: string}"
|
|
184
192
|
},
|
|
185
193
|
{
|
|
@@ -187,7 +195,7 @@ export const operation = {
|
|
|
187
195
|
"flag": "covers",
|
|
188
196
|
"kind": "json",
|
|
189
197
|
"required": false,
|
|
190
|
-
"description": "
|
|
198
|
+
"description": "Events this card answers, the ids of the incoming_message events of this thread: a reply covers the message it answers, a task or calendar card the message in its evidence, an FYI the event of every row. An FYI update keeps unread commitments and the events in its current evidence, discarding processed history; name at most 50 events per write. The open FYI keeps a reference to every message it has covered, which its Mark read marks, and its card read gives their count and the newest.",
|
|
191
199
|
"shape": "string[] (max 50)"
|
|
192
200
|
},
|
|
193
201
|
{
|
package/openapi.json
CHANGED
|
@@ -592,12 +592,78 @@
|
|
|
592
592
|
"/api/auth/github/repositories": {
|
|
593
593
|
"get": {
|
|
594
594
|
"operationId": "githubRepositoriesList",
|
|
595
|
-
"summary": "List the repositories the Kosuke GitHub App can reach through your connection,
|
|
595
|
+
"summary": "List the repositories the Kosuke GitHub App can reach through your connection, installed first then by name, with installUrl when there is no connection yet. Every repository at once by default; with limit, pass nextCursor back as cursor until it is null. q filters by owner/name. With an API key this is always your own listing, never the staff one. 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection.",
|
|
596
596
|
"tags": ["github"],
|
|
597
597
|
"x-kosuke-command": ["github", "repositories", "list"],
|
|
598
598
|
"x-kosuke-sandbox-token": true,
|
|
599
599
|
"x-kosuke-cron-token": true,
|
|
600
600
|
"x-kosuke-sensei-token": true,
|
|
601
|
+
"parameters": [
|
|
602
|
+
{
|
|
603
|
+
"name": "limit",
|
|
604
|
+
"in": "query",
|
|
605
|
+
"required": false,
|
|
606
|
+
"description": "Page size. Without limit or cursor every repository comes back at once. Values above 100 are clamped, not rejected.",
|
|
607
|
+
"schema": {
|
|
608
|
+
"description": "Page size. Without limit or cursor every repository comes back at once. Values above 100 are clamped, not rejected.",
|
|
609
|
+
"type": "integer",
|
|
610
|
+
"minimum": 1,
|
|
611
|
+
"maximum": 9007199254740991
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"name": "cursor",
|
|
616
|
+
"in": "query",
|
|
617
|
+
"required": false,
|
|
618
|
+
"description": "nextCursor from the previous page; pages by 10 when limit is not given.",
|
|
619
|
+
"schema": {
|
|
620
|
+
"description": "nextCursor from the previous page; pages by 10 when limit is not given.",
|
|
621
|
+
"type": "string",
|
|
622
|
+
"maxLength": 1024
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "q",
|
|
627
|
+
"in": "query",
|
|
628
|
+
"required": false,
|
|
629
|
+
"description": "Only repositories whose owner/name contains this text, ignoring case.",
|
|
630
|
+
"schema": {
|
|
631
|
+
"description": "Only repositories whose owner/name contains this text, ignoring case.",
|
|
632
|
+
"type": "string",
|
|
633
|
+
"maxLength": 255
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "importable",
|
|
638
|
+
"in": "query",
|
|
639
|
+
"required": false,
|
|
640
|
+
"description": "Only repositories Kosuke can import: the App is installed and you can write.",
|
|
641
|
+
"schema": {
|
|
642
|
+
"description": "Only repositories Kosuke can import: the App is installed and you can write.",
|
|
643
|
+
"type": "boolean"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"name": "installed",
|
|
648
|
+
"in": "query",
|
|
649
|
+
"required": false,
|
|
650
|
+
"description": "Only repositories the App is installed on.",
|
|
651
|
+
"schema": {
|
|
652
|
+
"description": "Only repositories the App is installed on.",
|
|
653
|
+
"type": "boolean"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"name": "refresh",
|
|
658
|
+
"in": "query",
|
|
659
|
+
"required": false,
|
|
660
|
+
"description": "Read GitHub again instead of the listing kept for up to a minute.",
|
|
661
|
+
"schema": {
|
|
662
|
+
"description": "Read GitHub again instead of the listing kept for up to a minute.",
|
|
663
|
+
"type": "boolean"
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
],
|
|
601
667
|
"responses": {
|
|
602
668
|
"2XX": {
|
|
603
669
|
"description": "Success envelope",
|
|
@@ -21846,7 +21912,7 @@
|
|
|
21846
21912
|
"maxLength": 60000
|
|
21847
21913
|
},
|
|
21848
21914
|
"open": {
|
|
21849
|
-
"description": "The page the primary button opens in place of an instruction, such as the link a teammate's message shares. The verb is the button's label (\"Open\", \"Read\"), and the tap opens the page, closes the card and sends nothing to Sensei. It takes a verb and an outcome, and no instruction, clarification block, Deploy form, action or covers.",
|
|
21915
|
+
"description": "The page the primary button opens, in place of an instruction, such as the link a teammate's message shares. The verb is the button's label (\"Open\", \"Read\"), and the tap opens the page, closes the card and sends nothing to Sensei. It takes a verb and an outcome, and no instruction, clarification block, Deploy form, action or covers.",
|
|
21850
21916
|
"type": "object",
|
|
21851
21917
|
"properties": {
|
|
21852
21918
|
"href": {
|
|
@@ -21964,6 +22030,90 @@
|
|
|
21964
22030
|
"required": ["id"],
|
|
21965
22031
|
"additionalProperties": false
|
|
21966
22032
|
},
|
|
22033
|
+
"quoted": {
|
|
22034
|
+
"type": "object",
|
|
22035
|
+
"properties": {
|
|
22036
|
+
"author": {
|
|
22037
|
+
"type": "object",
|
|
22038
|
+
"properties": {
|
|
22039
|
+
"kind": {
|
|
22040
|
+
"type": "string",
|
|
22041
|
+
"enum": ["member", "teammate"]
|
|
22042
|
+
},
|
|
22043
|
+
"memberId": {
|
|
22044
|
+
"type": "string",
|
|
22045
|
+
"minLength": 1,
|
|
22046
|
+
"maxLength": 255
|
|
22047
|
+
},
|
|
22048
|
+
"name": {
|
|
22049
|
+
"type": "string",
|
|
22050
|
+
"minLength": 1,
|
|
22051
|
+
"maxLength": 80
|
|
22052
|
+
}
|
|
22053
|
+
},
|
|
22054
|
+
"required": ["kind", "name"],
|
|
22055
|
+
"additionalProperties": false
|
|
22056
|
+
},
|
|
22057
|
+
"kind": {
|
|
22058
|
+
"type": "string",
|
|
22059
|
+
"enum": ["question", "prompt", "reply", "voice", "ask"]
|
|
22060
|
+
},
|
|
22061
|
+
"text": {
|
|
22062
|
+
"type": "string",
|
|
22063
|
+
"minLength": 1,
|
|
22064
|
+
"maxLength": 4000
|
|
22065
|
+
},
|
|
22066
|
+
"at": {
|
|
22067
|
+
"type": "string",
|
|
22068
|
+
"format": "date-time",
|
|
22069
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
22070
|
+
},
|
|
22071
|
+
"source": {
|
|
22072
|
+
"type": "string",
|
|
22073
|
+
"enum": [
|
|
22074
|
+
"thread",
|
|
22075
|
+
"card_reply",
|
|
22076
|
+
"kosuke",
|
|
22077
|
+
"github",
|
|
22078
|
+
"slack",
|
|
22079
|
+
"gmail",
|
|
22080
|
+
"whatsapp",
|
|
22081
|
+
"telegram",
|
|
22082
|
+
"linkedin",
|
|
22083
|
+
"x"
|
|
22084
|
+
]
|
|
22085
|
+
},
|
|
22086
|
+
"cardHeadline": {
|
|
22087
|
+
"type": "string",
|
|
22088
|
+
"minLength": 1,
|
|
22089
|
+
"maxLength": 140
|
|
22090
|
+
},
|
|
22091
|
+
"ref": {
|
|
22092
|
+
"type": "object",
|
|
22093
|
+
"properties": {
|
|
22094
|
+
"turnId": {
|
|
22095
|
+
"type": "string",
|
|
22096
|
+
"format": "uuid",
|
|
22097
|
+
"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)$"
|
|
22098
|
+
},
|
|
22099
|
+
"cardId": {
|
|
22100
|
+
"type": "string",
|
|
22101
|
+
"format": "uuid",
|
|
22102
|
+
"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)$"
|
|
22103
|
+
},
|
|
22104
|
+
"eventId": {
|
|
22105
|
+
"type": "string",
|
|
22106
|
+
"format": "uuid",
|
|
22107
|
+
"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)$"
|
|
22108
|
+
}
|
|
22109
|
+
},
|
|
22110
|
+
"additionalProperties": false
|
|
22111
|
+
}
|
|
22112
|
+
},
|
|
22113
|
+
"required": ["author", "kind", "text", "at"],
|
|
22114
|
+
"additionalProperties": false,
|
|
22115
|
+
"description": "Earlier words the card answers, quoted at its top under a label the app writes (You asked, You replied, You said, Nicola asked). Kosuke fills it for a card a member's message started: their words, their voice note's transcript, or their reply to a card. Set it for a teammate's ask: author {kind: teammate, name, memberId when known}, kind ask, text the teammate's exact words from the message or review event the card answers (never a paraphrase, trimmed only of quoted history), at when they said it, source where (github for a GitHub review, slack, gmail, kosuke for a Kosuke message), ref.eventId the event. A value you set wins over Kosuke's."
|
|
22116
|
+
},
|
|
21967
22117
|
"links": {
|
|
21968
22118
|
"default": [],
|
|
21969
22119
|
"maxItems": 8,
|
|
@@ -22516,7 +22666,7 @@
|
|
|
22516
22666
|
]
|
|
22517
22667
|
},
|
|
22518
22668
|
"signIn": {
|
|
22519
|
-
"description": "
|
|
22669
|
+
"description": "The member's Mac sign-in: the site, the Chrome profile ID, the Mac and, on the Sign in card of a site other than LinkedIn and X, the wall's url. Its Approve allows one tapped `kosuke mac browser login` for exactly these. Key it mac-sign-in:<site>:<profile> (the profile ID lowercase, spaces as hyphens: Profile 6 is profile-6) for Sign in, with :done for I'm signed in and :account for Continue as, both of which run --take. Only a card keyed mac-sign-in: takes it, and such a card needs it. A Sign in card for LinkedIn or X marks that connection signed out.",
|
|
22520
22670
|
"type": "object",
|
|
22521
22671
|
"properties": {
|
|
22522
22672
|
"site": {
|
|
@@ -22548,7 +22698,7 @@
|
|
|
22548
22698
|
"additionalProperties": false
|
|
22549
22699
|
},
|
|
22550
22700
|
"covers": {
|
|
22551
|
-
"description": "
|
|
22701
|
+
"description": "Events this card answers, the ids of the incoming_message events of this thread: a reply covers the message it answers, a task or calendar card the message in its evidence, an FYI the event of every row. An FYI update keeps unread commitments and the events in its current evidence, discarding processed history; name at most 50 events per write. The open FYI keeps a reference to every message it has covered, which its Mark read marks, and its card read gives their count and the newest.",
|
|
22552
22702
|
"minItems": 1,
|
|
22553
22703
|
"maxItems": 50,
|
|
22554
22704
|
"type": "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.76",
|
|
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": "
|
|
47
|
-
"sourceIdentity": "
|
|
46
|
+
"sourceCommit": "af66e28e34a12cd7277ae464e55c5b960d48d252",
|
|
47
|
+
"sourceIdentity": "922587bf7457e7180f37541a12371b0568b8ee6f02416933ce71e73c9cb554dc",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"github-repositories-pages-wikrwz.json"
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
}
|