@kosuke-ai/kosuke 1.0.143 → 1.0.144
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,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.144
|
|
4
|
+
|
|
5
|
+
- 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.
|
|
6
|
+
- `kosuke sensei watch-reads finish --status passcode_required` reports an X read that found X Chat asking for its passcode.
|
|
7
|
+
|
|
3
8
|
## 1.0.143
|
|
4
9
|
|
|
5
10
|
- `kosuke sensei threads list --states archived` lists the threads you archived, whatever their state; without it they are never listed or found by `--search`. Each thread in the list now says whether it is `archived`.
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"browser",
|
|
7
7
|
"login"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Get a site signed in in this Sensei Thread's browser from the member's everyday Chrome: pass the browser call's profile and deviceId, and the site as a bare hostname (twitter.com is x.com; Google's sites are refused). --reuse picks up the sign-in that profile in their Chrome holds by itself, with no tap: once per site and profile in a Turn, with the profile's exact ID. It never opens Chrome or waits for anyone, and answers opened false and signedIn false with chrome none (their Chrome holds no sign-in for the site, so nothing changed), same (the one this thread's browser already holds) or different (taken into this thread's browser, taken true). Then, unless it answered none or same, open the site with browser and check the account. On SIGN_IN_NEEDS_TAP or UPDATE_REQUIRED, put the sign-in card: `kosuke sensei cards set` with --sign-in naming this site, profile and deviceId. A --reuse spends no tap, so it gives no card back. Every tapped mode (`sign-in`, `take`, `waitNew`) needs the member's tap on the sign-in card in this thread; `--forget` and `--reuse` need none. A sign-in takes the sign-in that profile in their Chrome holds when it differs from this thread's, without opening anything, and answers taken true, opened false and signedIn false, since the site has not confirmed it; or else it opens --url, or the site's page, in their Chrome and waits up to 8 minutes for the member to sign in. On LinkedIn and X it answers signedIn true and opened true. On any other site a change of the site's cookies is taken and answered taken true and signedIn false, since a change is not a sign-in, and an end with no change answers taken false; a desktop app too old to watch the site opens it and answers at once, with no taken. Every answer with taken true carries waitNewLeft: while it is above 0 and the site is still signed out, --wait-new (with the same --url), in the same Turn and with no new tap, waits for a newer sign-in, never taking the one taken already, and opens the site only when this Turn has not; once the tap's time has run out it fails with SIGN_IN_WINDOW_ENDED, and no card comes back. After the member's I'm signed in tap, --take takes that site's cookies, never Google's, and answers taken. --forget removes a sign-in this Turn took, a --reuse's included, for an account other than the one expected, and needs no tap. Each tap allows one call: a call without one, or a --wait-new that no take armed, fails with SIGN_IN_NEEDS_TAP. Then open the site with browser and check the account before account-specific work. On DEVICE_OFFLINE, DEVICE_CALL_INTERRUPTED, TIMEOUT, SIGN_IN_TIMEOUT and KEYCHAIN_UNAVAILABLE the platform gives the member's card back by itself. Fails with SIGN_IN_TIMEOUT when Sensei saw no new sign-in to LinkedIn or X within 8 minutes, PROFILE_DISCONNECTED for a profile turned off in Settings → Devices, KEYCHAIN_UNAVAILABLE when macOS did not let Sensei read Chrome's sign-ins, STALE_TURN when the Turn stopped, and UPDATE_REQUIRED on a desktop app too old for it. Only Sensei calls it.",
|
|
9
|
+
"summary": "Get a site signed in in this Sensei Thread's browser from the member's everyday Chrome: pass the browser call's profile and deviceId, and the site as a bare hostname (twitter.com is x.com; Google's sites are refused). --reuse picks up the sign-in that profile in their Chrome holds by itself, with no tap: once per site and profile in a Turn, with the profile's exact ID. It never opens Chrome or waits for anyone, and answers opened false and signedIn false with chrome none (their Chrome holds no sign-in for the site, so nothing changed), same (the one this thread's browser already holds) or different (taken into this thread's browser, taken true). Then, unless it answered none or same, open the site with browser and check the account. On SIGN_IN_NEEDS_TAP or UPDATE_REQUIRED, put the sign-in card: `kosuke sensei cards set` with --sign-in naming this site, profile and deviceId. A --reuse spends no tap, so it gives no card back. Every tapped mode (`sign-in`, `take`, `waitNew`) needs the member's tap on the sign-in card in this thread; `--forget` and `--reuse` need none. A sign-in takes the sign-in that profile in their Chrome holds when it differs from this thread's, without opening anything, and answers taken true, opened false and signedIn false, since the site has not confirmed it; or else it opens --url, or the site's page, in their Chrome and waits up to 8 minutes for the member to sign in. On LinkedIn and X it answers signedIn true and opened true. On any other site a change of the site's cookies is taken and answered taken true and signedIn false, since a change is not a sign-in, and an end with no change answers taken false; a desktop app too old to watch the site opens it and answers at once, with no taken. Every answer with taken true carries waitNewLeft: while it is above 0 and the site is still signed out, --wait-new (with the same --url), in the same Turn and with no new tap, waits for a newer sign-in, never taking the one taken already, and opens the site only when this Turn has not; once the tap's time has run out it fails with SIGN_IN_WINDOW_ENDED, and no card comes back. After the member's I'm signed in tap, --take takes that site's cookies, never Google's, and answers taken. --forget removes a sign-in this Turn took, a --reuse's included, for an account other than the one expected, and needs no tap. Each tap allows one call: a call without one, or a --wait-new that no take armed, fails with SIGN_IN_NEEDS_TAP. Then open the site with browser and check the account before account-specific work. On DEVICE_OFFLINE, DEVICE_CALL_INTERRUPTED, TIMEOUT, SIGN_IN_TIMEOUT and KEYCHAIN_UNAVAILABLE the platform gives the member's card back by itself. Fails with SIGN_IN_TIMEOUT when Sensei saw no new sign-in to LinkedIn or X within 8 minutes, PROFILE_DISCONNECTED for a profile turned off in Settings → Devices, KEYCHAIN_UNAVAILABLE when macOS did not let Sensei read Chrome's sign-ins, STALE_TURN when the Turn stopped, and UPDATE_REQUIRED on a desktop app too old for it. X only: --unlock, with no other mode or url, spends the Unlock card’s tap and opens X Watching’s own browser window on the Mac through the server. It waits up to ten minutes plus the verification read and answers state unlocked, still_locked or stopped. The member types the passcode into X; Kosuke never receives it. Only Sensei calls it.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": {
|
|
@@ -32,6 +32,13 @@ export const operation = {
|
|
|
32
32
|
"required": true,
|
|
33
33
|
"description": "The site, as a bare hostname such as linkedin.com. twitter.com is x.com. Google’s sites are refused."
|
|
34
34
|
},
|
|
35
|
+
{
|
|
36
|
+
"name": "unlock",
|
|
37
|
+
"flag": "unlock",
|
|
38
|
+
"kind": "boolean",
|
|
39
|
+
"required": false,
|
|
40
|
+
"description": "X only: open X Watching’s own window for the member to enter the X Chat passcode into X. Needs the Unlock card’s tap; waits for the verified result. Never takes cookies from everyday Chrome."
|
|
41
|
+
},
|
|
35
42
|
{
|
|
36
43
|
"name": "take",
|
|
37
44
|
"flag": "take",
|
|
@@ -72,7 +79,7 @@ export const operation = {
|
|
|
72
79
|
},
|
|
73
80
|
"multipart": null,
|
|
74
81
|
"attachments": false,
|
|
75
|
-
"answerTimeoutMs":
|
|
82
|
+
"answerTimeoutMs": 960000,
|
|
76
83
|
"anonymous": false,
|
|
77
84
|
"agents": "all"
|
|
78
85
|
};
|
package/openapi.json
CHANGED
|
@@ -1846,10 +1846,10 @@
|
|
|
1846
1846
|
"/api/devices/mac/browser-sign-in": {
|
|
1847
1847
|
"post": {
|
|
1848
1848
|
"operationId": "macBrowserLogin",
|
|
1849
|
-
"summary": "Get a site signed in in this Sensei Thread's browser from the member's everyday Chrome: pass the browser call's profile and deviceId, and the site as a bare hostname (twitter.com is x.com; Google's sites are refused). --reuse picks up the sign-in that profile in their Chrome holds by itself, with no tap: once per site and profile in a Turn, with the profile's exact ID. It never opens Chrome or waits for anyone, and answers opened false and signedIn false with chrome none (their Chrome holds no sign-in for the site, so nothing changed), same (the one this thread's browser already holds) or different (taken into this thread's browser, taken true). Then, unless it answered none or same, open the site with browser and check the account. On SIGN_IN_NEEDS_TAP or UPDATE_REQUIRED, put the sign-in card: `kosuke sensei cards set` with --sign-in naming this site, profile and deviceId. A --reuse spends no tap, so it gives no card back. Every tapped mode (`sign-in`, `take`, `waitNew`) needs the member's tap on the sign-in card in this thread; `--forget` and `--reuse` need none. A sign-in takes the sign-in that profile in their Chrome holds when it differs from this thread's, without opening anything, and answers taken true, opened false and signedIn false, since the site has not confirmed it; or else it opens --url, or the site's page, in their Chrome and waits up to 8 minutes for the member to sign in. On LinkedIn and X it answers signedIn true and opened true. On any other site a change of the site's cookies is taken and answered taken true and signedIn false, since a change is not a sign-in, and an end with no change answers taken false; a desktop app too old to watch the site opens it and answers at once, with no taken. Every answer with taken true carries waitNewLeft: while it is above 0 and the site is still signed out, --wait-new (with the same --url), in the same Turn and with no new tap, waits for a newer sign-in, never taking the one taken already, and opens the site only when this Turn has not; once the tap's time has run out it fails with SIGN_IN_WINDOW_ENDED, and no card comes back. After the member's I'm signed in tap, --take takes that site's cookies, never Google's, and answers taken. --forget removes a sign-in this Turn took, a --reuse's included, for an account other than the one expected, and needs no tap. Each tap allows one call: a call without one, or a --wait-new that no take armed, fails with SIGN_IN_NEEDS_TAP. Then open the site with browser and check the account before account-specific work. On DEVICE_OFFLINE, DEVICE_CALL_INTERRUPTED, TIMEOUT, SIGN_IN_TIMEOUT and KEYCHAIN_UNAVAILABLE the platform gives the member's card back by itself. Fails with SIGN_IN_TIMEOUT when Sensei saw no new sign-in to LinkedIn or X within 8 minutes, PROFILE_DISCONNECTED for a profile turned off in Settings → Devices, KEYCHAIN_UNAVAILABLE when macOS did not let Sensei read Chrome's sign-ins, STALE_TURN when the Turn stopped, and UPDATE_REQUIRED on a desktop app too old for it. Only Sensei calls it.",
|
|
1849
|
+
"summary": "Get a site signed in in this Sensei Thread's browser from the member's everyday Chrome: pass the browser call's profile and deviceId, and the site as a bare hostname (twitter.com is x.com; Google's sites are refused). --reuse picks up the sign-in that profile in their Chrome holds by itself, with no tap: once per site and profile in a Turn, with the profile's exact ID. It never opens Chrome or waits for anyone, and answers opened false and signedIn false with chrome none (their Chrome holds no sign-in for the site, so nothing changed), same (the one this thread's browser already holds) or different (taken into this thread's browser, taken true). Then, unless it answered none or same, open the site with browser and check the account. On SIGN_IN_NEEDS_TAP or UPDATE_REQUIRED, put the sign-in card: `kosuke sensei cards set` with --sign-in naming this site, profile and deviceId. A --reuse spends no tap, so it gives no card back. Every tapped mode (`sign-in`, `take`, `waitNew`) needs the member's tap on the sign-in card in this thread; `--forget` and `--reuse` need none. A sign-in takes the sign-in that profile in their Chrome holds when it differs from this thread's, without opening anything, and answers taken true, opened false and signedIn false, since the site has not confirmed it; or else it opens --url, or the site's page, in their Chrome and waits up to 8 minutes for the member to sign in. On LinkedIn and X it answers signedIn true and opened true. On any other site a change of the site's cookies is taken and answered taken true and signedIn false, since a change is not a sign-in, and an end with no change answers taken false; a desktop app too old to watch the site opens it and answers at once, with no taken. Every answer with taken true carries waitNewLeft: while it is above 0 and the site is still signed out, --wait-new (with the same --url), in the same Turn and with no new tap, waits for a newer sign-in, never taking the one taken already, and opens the site only when this Turn has not; once the tap's time has run out it fails with SIGN_IN_WINDOW_ENDED, and no card comes back. After the member's I'm signed in tap, --take takes that site's cookies, never Google's, and answers taken. --forget removes a sign-in this Turn took, a --reuse's included, for an account other than the one expected, and needs no tap. Each tap allows one call: a call without one, or a --wait-new that no take armed, fails with SIGN_IN_NEEDS_TAP. Then open the site with browser and check the account before account-specific work. On DEVICE_OFFLINE, DEVICE_CALL_INTERRUPTED, TIMEOUT, SIGN_IN_TIMEOUT and KEYCHAIN_UNAVAILABLE the platform gives the member's card back by itself. Fails with SIGN_IN_TIMEOUT when Sensei saw no new sign-in to LinkedIn or X within 8 minutes, PROFILE_DISCONNECTED for a profile turned off in Settings → Devices, KEYCHAIN_UNAVAILABLE when macOS did not let Sensei read Chrome's sign-ins, STALE_TURN when the Turn stopped, and UPDATE_REQUIRED on a desktop app too old for it. X only: --unlock, with no other mode or url, spends the Unlock card’s tap and opens X Watching’s own browser window on the Mac through the server. It waits up to ten minutes plus the verification read and answers state unlocked, still_locked or stopped. The member types the passcode into X; Kosuke never receives it. Only Sensei calls it.",
|
|
1850
1850
|
"tags": ["mac"],
|
|
1851
1851
|
"x-kosuke-command": ["mac", "browser", "login"],
|
|
1852
|
-
"x-kosuke-answer-timeout-ms":
|
|
1852
|
+
"x-kosuke-answer-timeout-ms": 960000,
|
|
1853
1853
|
"x-kosuke-sandbox-token": true,
|
|
1854
1854
|
"x-kosuke-cron-token": true,
|
|
1855
1855
|
"x-kosuke-sensei-token": true,
|
|
@@ -1878,6 +1878,10 @@
|
|
|
1878
1878
|
"pattern": "^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$",
|
|
1879
1879
|
"description": "The site, as a bare hostname such as linkedin.com. twitter.com is x.com. Google’s sites are refused."
|
|
1880
1880
|
},
|
|
1881
|
+
"unlock": {
|
|
1882
|
+
"description": "X only: open X Watching’s own window for the member to enter the X Chat passcode into X. Needs the Unlock card’s tap; waits for the verified result. Never takes cookies from everyday Chrome.",
|
|
1883
|
+
"type": "boolean"
|
|
1884
|
+
},
|
|
1881
1885
|
"take": {
|
|
1882
1886
|
"description": "Take the site’s sign-in from everyday Chrome now, without opening anything: after the member’s “I’m signed in” or “Continue as” tap.",
|
|
1883
1887
|
"type": "boolean"
|
|
@@ -27706,7 +27710,8 @@
|
|
|
27706
27710
|
"signed_out",
|
|
27707
27711
|
"other_account",
|
|
27708
27712
|
"unreadable",
|
|
27709
|
-
"device_unavailable"
|
|
27713
|
+
"device_unavailable",
|
|
27714
|
+
"passcode_required"
|
|
27710
27715
|
],
|
|
27711
27716
|
"description": "What the read found"
|
|
27712
27717
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.144",
|
|
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,11 @@
|
|
|
43
43
|
"minimatch": "^11.0.1"
|
|
44
44
|
},
|
|
45
45
|
"kosukeRelease": {
|
|
46
|
-
"sourceCommit": "
|
|
47
|
-
"sourceIdentity": "
|
|
46
|
+
"sourceCommit": "4ea8fc24ffc7fefa26b46891d17856db5ec37cb2",
|
|
47
|
+
"sourceIdentity": "4d0f62bbb1414c9a5b378024aaaf6fb826b04d04775fe2d263bf7137338b926c",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"x-chat-model-unlock-card.json",
|
|
50
|
+
"x-chat-passcode-gap.json"
|
|
50
51
|
]
|
|
51
52
|
}
|
|
52
53
|
}
|