@kosuke-ai/kosuke 1.0.80 → 1.0.82

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.
@@ -0,0 +1,174 @@
1
+ /**
2
+ * The scripts the visual check runs in the browser: one shows the baseline state on the
3
+ * prototype's page with nothing of the prototype's controls around the canvas, one compares the
4
+ * two screenshots in canvases and draws the side-by-side picture. The CLI adds no image library.
5
+ */
6
+ /** A colour channel further apart than this marks the pixel as different: anti-aliasing stays under it. */
7
+ const CHANNEL_TOLERANCE = 24;
8
+ const json = (value) => JSON.stringify(value);
9
+ /**
10
+ * Leaves the All states view a page opened on its own lands on, selects the theme through the
11
+ * shell's `#pt-theme` control, shows the state, then strips the prototype's header, footer and
12
+ * phone bar so the canvas is the page: `width` wide from the top left, at least `height` tall.
13
+ */
14
+ export function showStateScript(input) {
15
+ const css = [
16
+ '.pt-header,.pt-foot,.pt-phone,.pt-all-phone,[data-prototype-only]{display:none!important}',
17
+ '.pt-stage{padding:0!important;overflow:visible!important;height:auto!important}',
18
+ '.pt-fit{width:auto!important;height:auto!important;margin:0!important}',
19
+ `.pt-viewport{width:${input.width}px!important;min-height:${input.height}px!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important}`,
20
+ `.pt-canvas{min-height:${input.height}px!important}`,
21
+ 'body{margin:0!important}',
22
+ STILL_CSS,
23
+ ].join('\n');
24
+ return `(async () => {
25
+ // Stilled before the theme changes, so no colour is caught halfway through its transition.
26
+ const style = document.createElement('style');
27
+ style.id = 'pt-visual-check-style';
28
+ style.textContent = ${json(css)};
29
+ document.head.append(style);
30
+ const all = window.__kosukeAllStates;
31
+ if (all && all.isOpen()) all.close();
32
+ const theme = document.getElementById('pt-theme');
33
+ if (theme && theme.value !== ${json(input.theme)}) {
34
+ theme.value = ${json(input.theme)};
35
+ theme.dispatchEvent(new Event('change', { bubbles: true }));
36
+ }
37
+ const api = window.__kosukePrototype;
38
+ if (!api) throw new Error('the page has no window.__kosukePrototype');
39
+ const reached = api.showState(${json(input.state)}, ${json(input.variant ?? undefined)}) === true;
40
+ window.scrollTo(0, 0);
41
+ if (document.fonts) await document.fonts.ready;
42
+ await new Promise((done) => requestAnimationFrame(() => requestAnimationFrame(done)));
43
+ const rect = document.getElementById('pt-canvas').getBoundingClientRect();
44
+ const ratio = window.devicePixelRatio || 1;
45
+ return {
46
+ reached,
47
+ current: api.currentState(),
48
+ box: {
49
+ x: Math.round((rect.left + window.scrollX) * ratio),
50
+ y: Math.round((rect.top + window.scrollY) * ratio),
51
+ width: Math.round(rect.width * ratio),
52
+ height: Math.round(rect.height * ratio),
53
+ },
54
+ };
55
+ })()`;
56
+ }
57
+ /**
58
+ * Compares the real screen with the prototype's canvas, cropped to the common width and height
59
+ * (at most `maxHeight`), and draws real screen | prototype | difference under a label row, the
60
+ * differing pixels red over a faded copy of the real screen.
61
+ */
62
+ export function compareScript(input) {
63
+ return `(async () => {
64
+ const load = (src) => new Promise((done, fail) => {
65
+ const image = new Image();
66
+ image.onload = () => done(image);
67
+ image.onerror = () => fail(new Error('a screenshot did not load'));
68
+ image.src = src;
69
+ });
70
+ const [real, proto] = await Promise.all([load(${json(input.real)}), load(${json(input.prototype)})]);
71
+ const box = ${json(input.box)};
72
+ const width = Math.min(real.naturalWidth, box.width, proto.naturalWidth - box.x);
73
+ const height = Math.min(real.naturalHeight, box.height, proto.naturalHeight - box.y, ${input.maxHeight});
74
+ if (width < 1 || height < 1) throw new Error('a screenshot is empty');
75
+ const pixels = (image, x, y) => {
76
+ const canvas = document.createElement('canvas');
77
+ canvas.width = width;
78
+ canvas.height = height;
79
+ const context = canvas.getContext('2d');
80
+ context.drawImage(image, x, y, width, height, 0, 0, width, height);
81
+ return context.getImageData(0, 0, width, height);
82
+ };
83
+ const a = pixels(real, 0, 0);
84
+ const b = pixels(proto, box.x, box.y);
85
+ const diff = new ImageData(width, height);
86
+ let differing = 0;
87
+ for (let i = 0; i < a.data.length; i += 4) {
88
+ const apart = Math.abs(a.data[i] - b.data[i]) > ${CHANNEL_TOLERANCE} ||
89
+ Math.abs(a.data[i + 1] - b.data[i + 1]) > ${CHANNEL_TOLERANCE} ||
90
+ Math.abs(a.data[i + 2] - b.data[i + 2]) > ${CHANNEL_TOLERANCE};
91
+ if (apart) {
92
+ differing++;
93
+ diff.data[i] = 230; diff.data[i + 1] = 0; diff.data[i + 2] = 0;
94
+ } else {
95
+ const grey = (a.data[i] * 0.3 + a.data[i + 1] * 0.59 + a.data[i + 2] * 0.11);
96
+ const faded = Math.round(255 - (255 - grey) * 0.25);
97
+ diff.data[i] = faded; diff.data[i + 1] = faded; diff.data[i + 2] = faded;
98
+ }
99
+ diff.data[i + 3] = 255;
100
+ }
101
+ const diffPercent = Math.round((differing / (width * height)) * 10000) / 100;
102
+ const gap = 16, label = 36;
103
+ const out = document.createElement('canvas');
104
+ out.width = width * 3 + gap * 4;
105
+ out.height = height + label + gap;
106
+ const context = out.getContext('2d');
107
+ context.fillStyle = '#ffffff';
108
+ context.fillRect(0, 0, out.width, out.height);
109
+ context.putImageData(a, gap, label);
110
+ context.putImageData(b, gap * 2 + width, label);
111
+ context.putImageData(diff, gap * 3 + width * 2, label);
112
+ context.fillStyle = '#1d1d1f';
113
+ context.font = '600 14px ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif';
114
+ context.textBaseline = 'middle';
115
+ const labels = ${json(input.labels)};
116
+ labels[2] = labels[2] + ': ' + diffPercent + '%';
117
+ labels.forEach((text, index) => {
118
+ const x = gap + index * (width + gap);
119
+ context.save();
120
+ context.beginPath();
121
+ context.rect(x, 0, width, label);
122
+ context.clip();
123
+ context.fillText(text, x, label / 2);
124
+ context.restore();
125
+ });
126
+ return { diffPercent, png: out.toDataURL('image/png') };
127
+ })()`;
128
+ }
129
+ /**
130
+ * Waits in the page until it has loaded and no resource has finished for 750 ms, at most
131
+ * `mostMs`: an app with a socket or polling never goes network-idle, and a wait the browser
132
+ * holds would outlive a client that gives up on it. Answers the page's address.
133
+ */
134
+ /** Turns off transitions, animations and the caret, so a screenshot shows settled colours. */
135
+ const STILL_CSS = '*,*::before,*::after{transition:none!important;animation:none!important;caret-color:transparent!important}';
136
+ /**
137
+ * Puts the real screen in a theme the way the app keeps one: the stored choice next-themes and
138
+ * its like read (`theme` in localStorage), the `dark` class Tailwind's dark variant reads, and
139
+ * the colour scheme; then stills it and waits two frames. A fresh browser has no stored choice,
140
+ * so an app whose default theme is dark would otherwise stay dark under a light media query.
141
+ */
142
+ export function realThemeScript(scheme) {
143
+ return `(async () => {
144
+ const scheme = ${json(scheme)};
145
+ try { localStorage.setItem('theme', scheme); } catch (error) {}
146
+ const root = document.documentElement;
147
+ root.classList.toggle('dark', scheme === 'dark');
148
+ root.classList.toggle('light', scheme === 'light');
149
+ root.style.colorScheme = scheme;
150
+ const style = document.createElement('style');
151
+ style.textContent = ${json(STILL_CSS)};
152
+ document.head.append(style);
153
+ if (document.fonts) await document.fonts.ready;
154
+ await new Promise((done) => requestAnimationFrame(() => requestAnimationFrame(done)));
155
+ await new Promise((done) => setTimeout(done, 300));
156
+ return root.classList.contains('dark') ? 'dark' : 'light';
157
+ })()`;
158
+ }
159
+ export function settleScript(mostMs) {
160
+ return `new Promise((done) => {
161
+ const start = Date.now();
162
+ let seen = -1;
163
+ let quiet = 0;
164
+ const tick = () => {
165
+ const count = performance.getEntriesByType('resource').length;
166
+ if (document.readyState === 'complete' && count === seen) quiet += 250;
167
+ else quiet = 0;
168
+ seen = count;
169
+ if (quiet >= 750 || Date.now() - start > ${mostMs}) done(location.href);
170
+ else setTimeout(tick, 250);
171
+ };
172
+ tick();
173
+ })`;
174
+ }
package/openapi.json CHANGED
@@ -9623,7 +9623,7 @@
9623
9623
  "/api/organizations/{workspaceId}/usage": {
9624
9624
  "get": {
9625
9625
  "operationId": "workspacesUsageGet",
9626
- "summary": "Read sandbox usage by day and by project. start must precede end and the range is capped at 366 days.",
9626
+ "summary": "Read sandbox usage by day and by project. The days are the UTC dates from start up to end, each read from midnight to midnight in tz (an IANA time zone, your own time zone by default). start must precede end and the range is capped at 366 days. 400 on an unknown time zone.",
9627
9627
  "tags": ["workspaces"],
9628
9628
  "x-kosuke-command": ["workspaces", "usage", "get"],
9629
9629
  "x-kosuke-sandbox-token": true,
@@ -9643,9 +9643,9 @@
9643
9643
  "name": "start",
9644
9644
  "in": "query",
9645
9645
  "required": false,
9646
- "description": "Range start, any Date-parsable string. Default: end minus 30 days.",
9646
+ "description": "Range start, any Date-parsable string; its UTC date is the first day read. Default: end minus 30 days.",
9647
9647
  "schema": {
9648
- "description": "Range start, any Date-parsable string. Default: end minus 30 days.",
9648
+ "description": "Range start, any Date-parsable string; its UTC date is the first day read. Default: end minus 30 days.",
9649
9649
  "type": "string"
9650
9650
  }
9651
9651
  },
@@ -9653,9 +9653,19 @@
9653
9653
  "name": "end",
9654
9654
  "in": "query",
9655
9655
  "required": false,
9656
- "description": "Range end, any Date-parsable string. Default: now.",
9656
+ "description": "Range end, exclusive, any Date-parsable string. Default: now.",
9657
9657
  "schema": {
9658
- "description": "Range end, any Date-parsable string. Default: now.",
9658
+ "description": "Range end, exclusive, any Date-parsable string. Default: now.",
9659
+ "type": "string"
9660
+ }
9661
+ },
9662
+ {
9663
+ "name": "tz",
9664
+ "in": "query",
9665
+ "required": false,
9666
+ "description": "IANA time zone the days run in. Default: your own time zone.",
9667
+ "schema": {
9668
+ "description": "IANA time zone the days run in. Default: your own time zone.",
9659
9669
  "type": "string"
9660
9670
  }
9661
9671
  }
@@ -10944,6 +10954,12 @@
10944
10954
  "minLength": 1,
10945
10955
  "maxLength": 2000,
10946
10956
  "description": "What failed, with the evidence its task needs to fix it."
10957
+ },
10958
+ "summary": {
10959
+ "description": "What its member reads on the task card, in one or two plain sentences: why it was left out, who handles it, and whether the member must act.",
10960
+ "type": "string",
10961
+ "minLength": 1,
10962
+ "maxLength": 160
10947
10963
  }
10948
10964
  },
10949
10965
  "required": ["pullRequest", "reason"]
@@ -18412,7 +18428,7 @@
18412
18428
  "/api/projects/{projectId}/settings": {
18413
18429
  "get": {
18414
18430
  "operationId": "projectsSettingsGet",
18415
- "summary": "Read the project settings: setup commands, services, environment and sandbox size.",
18431
+ "summary": "Read the project settings: setup commands, services, environment and sandbox size. --values false leaves every environment variable value empty: their names only.",
18416
18432
  "tags": ["projects"],
18417
18433
  "x-kosuke-command": ["projects", "settings", "get"],
18418
18434
  "x-kosuke-sandbox-token": true,
@@ -18428,6 +18444,15 @@
18428
18444
  "format": "uuid",
18429
18445
  "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)$"
18430
18446
  }
18447
+ },
18448
+ {
18449
+ "name": "values",
18450
+ "in": "query",
18451
+ "required": false,
18452
+ "schema": {
18453
+ "type": "string",
18454
+ "enum": ["true", "false"]
18455
+ }
18431
18456
  }
18432
18457
  ],
18433
18458
  "responses": {
@@ -20604,6 +20629,26 @@
20604
20629
  "description": "Files, one page only: refuse to replace a file that is no longer this version.",
20605
20630
  "type": "string",
20606
20631
  "pattern": "^[1-9][0-9]*$"
20632
+ },
20633
+ "generatedStyles": {
20634
+ "description": "Filled by the CLI: the CSS it built from the project's own Tailwind entry for the class names content.js uses, scoped to the canvas. Absent: the styles are hand written.",
20635
+ "type": "string",
20636
+ "maxLength": 1048576
20637
+ },
20638
+ "visualCheck": {
20639
+ "description": "Filled by the CLI: its comparison of the baseline state with the real screen, as JSON. Absent: not compared.",
20640
+ "type": "string",
20641
+ "maxLength": 4096
20642
+ },
20643
+ "visualCheckReason": {
20644
+ "description": "Why the baseline state may differ from the real screen by more than 3%; stored with the version and shown on its card.",
20645
+ "type": "string",
20646
+ "maxLength": 500
20647
+ },
20648
+ "dryRun": {
20649
+ "description": "Filled by the CLI: true renders and checks the page and answers its HTML, saving nothing.",
20650
+ "type": "string",
20651
+ "enum": ["true", "false"]
20607
20652
  }
20608
20653
  },
20609
20654
  "required": ["name"]
@@ -24137,7 +24182,7 @@
24137
24182
  "/api/sensei/reels/activity": {
24138
24183
  "get": {
24139
24184
  "operationId": "senseiReelsActivityList",
24140
- "summary": "Read stored activity versions for your Reels cards and Backlog tickets.",
24185
+ "summary": "Read stored activity versions for your Deck cards and Backlog tickets.",
24141
24186
  "tags": ["sensei"],
24142
24187
  "x-kosuke-command": ["sensei", "reels", "activity", "list"],
24143
24188
  "x-kosuke-sandbox-token": true,
@@ -24177,6 +24222,206 @@
24177
24222
  }
24178
24223
  }
24179
24224
  },
24225
+ "/api/sensei/reels/later/holds": {
24226
+ "get": {
24227
+ "operationId": "senseiReelsLaterHoldsList",
24228
+ "summary": "List the Deck cards you put off with Later that still wait: each comes back 30 minutes after it was put off, or sooner when its activity changes or it closes.",
24229
+ "tags": ["sensei"],
24230
+ "x-kosuke-command": ["sensei", "reels", "later-holds", "list"],
24231
+ "responses": {
24232
+ "2XX": {
24233
+ "description": "Success envelope",
24234
+ "content": {
24235
+ "application/json": {
24236
+ "schema": {
24237
+ "$ref": "#/components/schemas/ApiSuccess"
24238
+ }
24239
+ }
24240
+ }
24241
+ },
24242
+ "4XX": {
24243
+ "description": "Error envelope",
24244
+ "content": {
24245
+ "application/json": {
24246
+ "schema": {
24247
+ "$ref": "#/components/schemas/ApiError"
24248
+ }
24249
+ }
24250
+ }
24251
+ },
24252
+ "5XX": {
24253
+ "description": "Error envelope",
24254
+ "content": {
24255
+ "application/json": {
24256
+ "schema": {
24257
+ "$ref": "#/components/schemas/ApiError"
24258
+ }
24259
+ }
24260
+ }
24261
+ }
24262
+ }
24263
+ },
24264
+ "post": {
24265
+ "operationId": "senseiReelsLaterHoldsCreate",
24266
+ "summary": "Put an open Deck card off with Later for 30 minutes, on every device, at the revision you saw. A card already put off answers with its hold. Refused with CARD_CHANGED when the card moved past that revision.",
24267
+ "tags": ["sensei"],
24268
+ "x-kosuke-command": ["sensei", "reels", "later-holds", "create"],
24269
+ "requestBody": {
24270
+ "required": true,
24271
+ "content": {
24272
+ "application/json": {
24273
+ "schema": {
24274
+ "type": "object",
24275
+ "properties": {
24276
+ "cardId": {
24277
+ "type": "string",
24278
+ "format": "uuid",
24279
+ "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)$",
24280
+ "description": "The card to put off."
24281
+ },
24282
+ "revision": {
24283
+ "type": "integer",
24284
+ "minimum": 1,
24285
+ "maximum": 9007199254740991,
24286
+ "description": "The card revision you saw."
24287
+ },
24288
+ "carried": {
24289
+ "description": "A hold this browser kept before Later was stored on the server: it keeps its own end and activity version, and is dropped when either has passed.",
24290
+ "type": "object",
24291
+ "properties": {
24292
+ "heldAt": {
24293
+ "type": "string",
24294
+ "format": "date-time",
24295
+ "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)))$"
24296
+ },
24297
+ "until": {
24298
+ "type": "string",
24299
+ "format": "date-time",
24300
+ "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)))$"
24301
+ },
24302
+ "activityVersion": {
24303
+ "type": "string",
24304
+ "minLength": 1,
24305
+ "maxLength": 128
24306
+ }
24307
+ },
24308
+ "required": ["heldAt", "until", "activityVersion"]
24309
+ }
24310
+ },
24311
+ "required": ["cardId", "revision"]
24312
+ }
24313
+ }
24314
+ }
24315
+ },
24316
+ "responses": {
24317
+ "2XX": {
24318
+ "description": "Success envelope",
24319
+ "content": {
24320
+ "application/json": {
24321
+ "schema": {
24322
+ "$ref": "#/components/schemas/ApiSuccess"
24323
+ }
24324
+ }
24325
+ }
24326
+ },
24327
+ "4XX": {
24328
+ "description": "Error envelope",
24329
+ "content": {
24330
+ "application/json": {
24331
+ "schema": {
24332
+ "$ref": "#/components/schemas/ApiError"
24333
+ }
24334
+ }
24335
+ }
24336
+ },
24337
+ "5XX": {
24338
+ "description": "Error envelope",
24339
+ "content": {
24340
+ "application/json": {
24341
+ "schema": {
24342
+ "$ref": "#/components/schemas/ApiError"
24343
+ }
24344
+ }
24345
+ }
24346
+ }
24347
+ }
24348
+ }
24349
+ },
24350
+ "/api/sensei/reels/later/holds/release": {
24351
+ "post": {
24352
+ "operationId": "senseiReelsLaterHoldsDelete",
24353
+ "summary": "Bring Deck cards back from Later now, on every device. Each names the claim you read, so a card put off again since stays put off.",
24354
+ "tags": ["sensei"],
24355
+ "x-kosuke-command": ["sensei", "reels", "later-holds", "delete"],
24356
+ "requestBody": {
24357
+ "required": true,
24358
+ "content": {
24359
+ "application/json": {
24360
+ "schema": {
24361
+ "type": "object",
24362
+ "properties": {
24363
+ "holds": {
24364
+ "minItems": 1,
24365
+ "maxItems": 200,
24366
+ "type": "array",
24367
+ "items": {
24368
+ "type": "object",
24369
+ "properties": {
24370
+ "id": {
24371
+ "type": "string",
24372
+ "format": "uuid",
24373
+ "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)$"
24374
+ },
24375
+ "claim": {
24376
+ "type": "string",
24377
+ "format": "uuid",
24378
+ "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)$"
24379
+ }
24380
+ },
24381
+ "required": ["id", "claim"]
24382
+ },
24383
+ "description": "The holds to end, each by card id and the claim you read."
24384
+ }
24385
+ },
24386
+ "required": ["holds"]
24387
+ }
24388
+ }
24389
+ }
24390
+ },
24391
+ "responses": {
24392
+ "2XX": {
24393
+ "description": "Success envelope",
24394
+ "content": {
24395
+ "application/json": {
24396
+ "schema": {
24397
+ "$ref": "#/components/schemas/ApiSuccess"
24398
+ }
24399
+ }
24400
+ }
24401
+ },
24402
+ "4XX": {
24403
+ "description": "Error envelope",
24404
+ "content": {
24405
+ "application/json": {
24406
+ "schema": {
24407
+ "$ref": "#/components/schemas/ApiError"
24408
+ }
24409
+ }
24410
+ }
24411
+ },
24412
+ "5XX": {
24413
+ "description": "Error envelope",
24414
+ "content": {
24415
+ "application/json": {
24416
+ "schema": {
24417
+ "$ref": "#/components/schemas/ApiError"
24418
+ }
24419
+ }
24420
+ }
24421
+ }
24422
+ }
24423
+ }
24424
+ },
24180
24425
  "/api/sensei/repository": {
24181
24426
  "post": {
24182
24427
  "operationId": "senseiRepositoryCardsCreate",
@@ -25441,7 +25686,7 @@
25441
25686
  "/api/sensei/widgets": {
25442
25687
  "get": {
25443
25688
  "operationId": "senseiWidgetsGet",
25444
- "summary": "Read your open Sensei Card count and the first four cards in Reels order for widgets.",
25689
+ "summary": "Read your open Sensei Card count and the first four cards in Deck order for widgets.",
25445
25690
  "tags": ["sensei"],
25446
25691
  "x-kosuke-command": ["sensei", "widgets", "get"],
25447
25692
  "x-kosuke-sandbox-token": true,
@@ -26158,10 +26403,10 @@
26158
26403
  "description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
26159
26404
  },
26160
26405
  "timezone": {
26406
+ "description": "The IANA zone the crontab is read in, such as Europe/Rome. Left out on create, your own time zone.",
26161
26407
  "type": "string",
26162
26408
  "minLength": 1,
26163
- "maxLength": 64,
26164
- "description": "The IANA zone the crontab is read in, such as Europe/Rome."
26409
+ "maxLength": 64
26165
26410
  },
26166
26411
  "model": {
26167
26412
  "description": "An encoded model id such as anthropic:opus__xhigh, one your Sensei runs on your own Subscription, or kosuke-free for Auto - Sensei free while you hold no Subscription. With repositories, an explicit Model of a released provider your Subscription runs, or kosuke-free, is required. Without repositories, null runs on the thread's model.",
@@ -26184,7 +26429,7 @@
26184
26429
  ]
26185
26430
  }
26186
26431
  },
26187
- "required": ["name", "prompt", "cronExpression", "timezone"]
26432
+ "required": ["name", "prompt", "cronExpression"]
26188
26433
  }
26189
26434
  }
26190
26435
  }
@@ -26336,10 +26581,10 @@
26336
26581
  "description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
26337
26582
  },
26338
26583
  "timezone": {
26584
+ "description": "The IANA zone the crontab is read in, such as Europe/Rome. Left out, it stays as it is.",
26339
26585
  "type": "string",
26340
26586
  "minLength": 1,
26341
- "maxLength": 64,
26342
- "description": "The IANA zone the crontab is read in, such as Europe/Rome."
26587
+ "maxLength": 64
26343
26588
  },
26344
26589
  "model": {
26345
26590
  "description": "An encoded model id such as anthropic:opus__xhigh, one your Sensei runs on your own Subscription, or kosuke-free for Auto - Sensei free while you hold no Subscription. With repositories, an explicit Model of a released provider your Subscription runs, or kosuke-free, is required. Without repositories, null runs on the thread's model.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
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,13 @@
43
43
  "minimatch": "^11.0.1"
44
44
  },
45
45
  "kosukeRelease": {
46
- "sourceCommit": "090ffd9bf7da31fe79017c66f03cd991ceba93e1",
47
- "sourceIdentity": "a30610cb094b3e2f54117e3f45016cbdd83e9d4188acd60e696965f736c459a1",
46
+ "sourceCommit": "576dc9ffef596b5ba16b6bc0575620daa35f0174",
47
+ "sourceIdentity": "641ce130d2f1e0ef20403bc45dd89efd1373470734344f70d76dfd4e9ee89a5e",
48
48
  "fragments": [
49
- "workspace-mac-first-u12z4c.json"
49
+ "later-holds-on-server-mcddj2.json",
50
+ "prototype-real-styles-2l6fse.json",
51
+ "reels-renamed-deck-moprpn.json",
52
+ "batch-eject-summary-iuqnzx.json"
50
53
  ]
51
54
  }
52
55
  }