@kosuke-ai/kosuke 1.0.81 → 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.
- package/CHANGELOG.md +7 -0
- package/dist/generated/commands/index.js +124 -118
- package/dist/generated/commands/projects/batch-merging-members-delete.js +7 -0
- package/dist/generated/commands/prototypes/create.js +32 -0
- package/dist/generated/commands/sensei/reels-activity-list.js +1 -1
- package/dist/generated/commands/sensei/reels-later-holds-create.js +43 -0
- package/dist/generated/commands/sensei/reels-later-holds-delete.js +29 -0
- package/dist/generated/commands/sensei/reels-later-holds-list.js +17 -0
- package/dist/generated/commands/sensei/widgets-get.js +1 -1
- package/dist/runtime/arguments.js +2 -0
- package/dist/runtime/attach.js +6 -12
- package/dist/runtime/option-parsers.js +14 -0
- package/dist/runtime/prototype-create.js +47 -0
- package/dist/runtime/prototype-styles-scope.js +342 -0
- package/dist/runtime/prototype-styles.js +166 -0
- package/dist/runtime/prototype-visual-browser.js +87 -0
- package/dist/runtime/prototype-visual-check.js +388 -0
- package/dist/runtime/prototype-visual-preview.js +159 -0
- package/dist/runtime/prototype-visual-scripts.js +174 -0
- package/openapi.json +228 -2
- package/package.json +7 -6
|
@@ -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
|
@@ -10954,6 +10954,12 @@
|
|
|
10954
10954
|
"minLength": 1,
|
|
10955
10955
|
"maxLength": 2000,
|
|
10956
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
|
|
10957
10963
|
}
|
|
10958
10964
|
},
|
|
10959
10965
|
"required": ["pullRequest", "reason"]
|
|
@@ -20623,6 +20629,26 @@
|
|
|
20623
20629
|
"description": "Files, one page only: refuse to replace a file that is no longer this version.",
|
|
20624
20630
|
"type": "string",
|
|
20625
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"]
|
|
20626
20652
|
}
|
|
20627
20653
|
},
|
|
20628
20654
|
"required": ["name"]
|
|
@@ -24156,7 +24182,7 @@
|
|
|
24156
24182
|
"/api/sensei/reels/activity": {
|
|
24157
24183
|
"get": {
|
|
24158
24184
|
"operationId": "senseiReelsActivityList",
|
|
24159
|
-
"summary": "Read stored activity versions for your
|
|
24185
|
+
"summary": "Read stored activity versions for your Deck cards and Backlog tickets.",
|
|
24160
24186
|
"tags": ["sensei"],
|
|
24161
24187
|
"x-kosuke-command": ["sensei", "reels", "activity", "list"],
|
|
24162
24188
|
"x-kosuke-sandbox-token": true,
|
|
@@ -24196,6 +24222,206 @@
|
|
|
24196
24222
|
}
|
|
24197
24223
|
}
|
|
24198
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
|
+
},
|
|
24199
24425
|
"/api/sensei/repository": {
|
|
24200
24426
|
"post": {
|
|
24201
24427
|
"operationId": "senseiRepositoryCardsCreate",
|
|
@@ -25460,7 +25686,7 @@
|
|
|
25460
25686
|
"/api/sensei/widgets": {
|
|
25461
25687
|
"get": {
|
|
25462
25688
|
"operationId": "senseiWidgetsGet",
|
|
25463
|
-
"summary": "Read your open Sensei Card count and the first four cards in
|
|
25689
|
+
"summary": "Read your open Sensei Card count and the first four cards in Deck order for widgets.",
|
|
25464
25690
|
"tags": ["sensei"],
|
|
25465
25691
|
"x-kosuke-command": ["sensei", "widgets", "get"],
|
|
25466
25692
|
"x-kosuke-sandbox-token": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
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,12 +43,13 @@
|
|
|
43
43
|
"minimatch": "^11.0.1"
|
|
44
44
|
},
|
|
45
45
|
"kosukeRelease": {
|
|
46
|
-
"sourceCommit": "
|
|
47
|
-
"sourceIdentity": "
|
|
46
|
+
"sourceCommit": "576dc9ffef596b5ba16b6bc0575620daa35f0174",
|
|
47
|
+
"sourceIdentity": "641ce130d2f1e0ef20403bc45dd89efd1373470734344f70d76dfd4e9ee89a5e",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
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"
|
|
52
53
|
]
|
|
53
54
|
}
|
|
54
55
|
}
|