breakaway 2.0.0-main.46 → 2.0.0-main.48
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/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/src/infra-provider.js +4 -0
- package/src/ping.js +3 -2
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "breakaway",
|
|
3
|
-
"version": "2.0.0-main.
|
|
3
|
+
"version": "2.0.0-main.48",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "breakaway",
|
|
9
|
-
"version": "2.0.0-main.
|
|
9
|
+
"version": "2.0.0-main.48",
|
|
10
10
|
"license": "FSL-1.1-Apache-2.0",
|
|
11
11
|
"bin": {
|
|
12
12
|
"breakaway": "scripts/tasks.mjs"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "breakaway",
|
|
3
|
-
"version": "2.0.0-main.
|
|
3
|
+
"version": "2.0.0-main.48",
|
|
4
4
|
"description": "The task board for you and your coding agents: a Cloudflare Worker, its web app, Taskwarrior sync, and the CLI (npx breakaway).",
|
|
5
5
|
"license": "FSL-1.1-Apache-2.0",
|
|
6
6
|
"type": "module",
|
package/src/infra-provider.js
CHANGED
|
@@ -147,6 +147,8 @@ export const COST_NOTE_MAX = 500;
|
|
|
147
147
|
* owner for any change to one (BRK-181)
|
|
148
148
|
* @property {string[]} [accessSettings] settings of the kind that decide who or what can reach it (like `public`): policy
|
|
149
149
|
* asks the owner for a change to one
|
|
150
|
+
* @property {string} [scales] the whole-number setting a `scale` changes (like `instances`): required when the kind
|
|
151
|
+
* declares `scale`, so an envelope (BRK-186) knows what its bounds are bounds of
|
|
150
152
|
*/
|
|
151
153
|
|
|
152
154
|
/**
|
|
@@ -239,6 +241,8 @@ export function checkProvider(provider) {
|
|
|
239
241
|
fail(what, `${kind}'s access is not true or false`);
|
|
240
242
|
if (spec.accessSettings !== undefined && (!Array.isArray(spec.accessSettings) || !spec.accessSettings.every(text)))
|
|
241
243
|
fail(what, `${kind}'s accessSettings is not a list of settings' names`);
|
|
244
|
+
if (spec.changes.includes('scale') ? !text(spec.scales) : spec.scales !== undefined)
|
|
245
|
+
fail(what, `${kind}'s scales names the setting a scale changes, and only a kind that scales has one`);
|
|
242
246
|
}
|
|
243
247
|
if (provider.readToken !== undefined) checkReadToken(what, provider.readToken);
|
|
244
248
|
if (provider.estimate !== undefined && typeof provider.estimate !== 'function')
|
package/src/ping.js
CHANGED
|
@@ -10,9 +10,10 @@ export const PING_KINDS = ['blocked', 'question', 'stale', 'done', 'fyi'];
|
|
|
10
10
|
export const PUSH_KINDS = ['blocked', 'question', 'stale', 'done'];
|
|
11
11
|
/**
|
|
12
12
|
* Kinds only the board itself writes, never an agent (BRK-197): an incident pushes for production and is quiet in
|
|
13
|
-
* the inbox otherwise, so its row says which.
|
|
13
|
+
* the inbox otherwise, so its row says which. An envelope's note (BRK-186) is always quiet: what it did inside its
|
|
14
|
+
* bounds, on the runbook's task that asked.
|
|
14
15
|
*/
|
|
15
|
-
export const BOARD_PING_KINDS = ['incident'];
|
|
16
|
+
export const BOARD_PING_KINDS = ['incident', 'envelope'];
|
|
16
17
|
export const MAX_MESSAGE = 500;
|
|
17
18
|
export const MAX_CHANGES = 10;
|
|
18
19
|
export const MAX_PROPOSAL_BYTES = 20 * 1024;
|