@beacon-build/sdk 1.38.6 → 1.39.0
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,21 @@
|
|
|
1
1
|
# @beacon-build/sdk Changelog
|
|
2
2
|
|
|
3
|
+
## 1.39.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ca07230: F381 Increment 1: new "Läufe" (Runs) tab in the Workflows portal — execution-centric dashboard with Live / Roster (grouped by beacon session) / Recently-completed sections, drill-through into the existing ExecutionDetailOverlay. PortalTabBar migrated onto the shared Tabs primitive.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [af1ecd1]
|
|
12
|
+
- Updated dependencies [0e690df]
|
|
13
|
+
- Updated dependencies [411d838]
|
|
14
|
+
- Updated dependencies [ca07230]
|
|
15
|
+
- Updated dependencies [27da991]
|
|
16
|
+
- Updated dependencies [e5d1597]
|
|
17
|
+
- @beacon-build/core@1.39.0
|
|
18
|
+
|
|
3
19
|
## 1.38.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import type { HttpClient } from '../../transport/http-client.js';
|
|
2
|
+
/** F381: query params for the skill-execution list read (mirrors `listSkillExecutionsQuerySchema`). */
|
|
3
|
+
export interface ListSkillExecutionsParams {
|
|
4
|
+
project?: string;
|
|
5
|
+
status?: 'running' | 'completed' | 'failed';
|
|
6
|
+
integrationStatus?: 'pending' | 'merged' | 'discarded';
|
|
7
|
+
topLevelOnly?: boolean;
|
|
8
|
+
limit?: number;
|
|
9
|
+
}
|
|
10
|
+
/** F381/AC-4: query params for the instance list read. */
|
|
11
|
+
export interface ListInstancesParams {
|
|
12
|
+
project?: string;
|
|
13
|
+
/** Multi-valued (IN filter) — joined into the CSV `statuses` query param. */
|
|
14
|
+
statuses?: string[];
|
|
15
|
+
limit?: number;
|
|
16
|
+
}
|
|
2
17
|
/**
|
|
3
|
-
* AdminExecutionsClient — by-id drill-down reads for the F307 Execution Log UI
|
|
4
|
-
* Wraps existing routes (no
|
|
18
|
+
* AdminExecutionsClient — by-id drill-down reads for the F307 Execution Log UI, plus the F381
|
|
19
|
+
* Läufe view's cross-cutting list reads. Wraps existing routes (F381 adds no server endpoint
|
|
20
|
+
* except the AC-4 `statuses` filter on the pre-existing `/workflow-runner/instances`):
|
|
5
21
|
* - F308 `GET /workflow-runner/workflow-executions/:id` → `{ data: ExecutionDetail }`
|
|
6
22
|
* - `GET /skills/:id` → `{ data: SkillExecution }` (mapped to ExecutionDetail by the consumer).
|
|
23
|
+
* - F381 `GET /skills` → `{ data: SkillExecution[], total }`
|
|
24
|
+
* - F381 `GET /workflow-runner/instances` → `{ data: WorkflowInstance[] }`
|
|
25
|
+
* - F381 `GET /workflow-runner/definitions/:id` → `{ data: WorkflowDefinition }` (name/type
|
|
26
|
+
* resolution for an instance row; existing route, not new).
|
|
7
27
|
*/
|
|
8
28
|
export declare class AdminExecutionsClient {
|
|
9
29
|
private readonly http;
|
|
@@ -14,5 +34,11 @@ export declare class AdminExecutionsClient {
|
|
|
14
34
|
skillExecution<T>(id: string): Promise<T>;
|
|
15
35
|
/** C352/AC-4: flattened friction occurrences for a project, grouped by repetition client-side. */
|
|
16
36
|
projectFrictions<T>(project: string): Promise<T>;
|
|
37
|
+
/** F381: raw skill-execution list (Live/Roster/Recent sections read this directly). */
|
|
38
|
+
listSkillExecutions<T>(params: ListSkillExecutionsParams): Promise<T>;
|
|
39
|
+
/** F381/AC-4: raw workflow-instance list, `statuses` joined into one CSV param. */
|
|
40
|
+
listInstances<T>(params: ListInstancesParams): Promise<T>;
|
|
41
|
+
/** F381: resolve a workflow instance's definition (name + type) for card display. */
|
|
42
|
+
getDefinition<T>(id: string): Promise<T>;
|
|
17
43
|
}
|
|
18
44
|
//# sourceMappingURL=executions.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.client.d.ts","sourceRoot":"","sources":["../../../src/clients/admin/executions.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE
|
|
1
|
+
{"version":3,"file":"executions.client.d.ts","sourceRoot":"","sources":["../../../src/clients/admin/executions.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE,uGAAuG;AACvG,MAAM,WAAW,yBAAyB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAA;IAC3C,iBAAiB,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAA;IACtD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAYD;;;;;;;;;;GAUG;AACH,qBAAa,qBAAqB;IAClB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C,2EAA2E;IACrE,cAAc,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAM/C,kFAAkF;IAC5E,cAAc,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAI/C,kGAAkG;IAC5F,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAItD,uFAAuF;IACjF,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,CAAC,CAAC;IAI3E,mFAAmF;IAC7E,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,CAAC,CAAC;IAO/D,qFAAqF;IAC/E,aAAa,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAGjD"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
function qs(params) {
|
|
2
|
+
const p = new URLSearchParams();
|
|
3
|
+
for (const [k, v] of Object.entries(params)) {
|
|
4
|
+
if (v === undefined)
|
|
5
|
+
continue;
|
|
6
|
+
p.set(k, String(v));
|
|
7
|
+
}
|
|
8
|
+
const s = p.toString();
|
|
9
|
+
return s ? `?${s}` : '';
|
|
10
|
+
}
|
|
1
11
|
/**
|
|
2
|
-
* AdminExecutionsClient — by-id drill-down reads for the F307 Execution Log UI
|
|
3
|
-
* Wraps existing routes (no
|
|
12
|
+
* AdminExecutionsClient — by-id drill-down reads for the F307 Execution Log UI, plus the F381
|
|
13
|
+
* Läufe view's cross-cutting list reads. Wraps existing routes (F381 adds no server endpoint
|
|
14
|
+
* except the AC-4 `statuses` filter on the pre-existing `/workflow-runner/instances`):
|
|
4
15
|
* - F308 `GET /workflow-runner/workflow-executions/:id` → `{ data: ExecutionDetail }`
|
|
5
16
|
* - `GET /skills/:id` → `{ data: SkillExecution }` (mapped to ExecutionDetail by the consumer).
|
|
17
|
+
* - F381 `GET /skills` → `{ data: SkillExecution[], total }`
|
|
18
|
+
* - F381 `GET /workflow-runner/instances` → `{ data: WorkflowInstance[] }`
|
|
19
|
+
* - F381 `GET /workflow-runner/definitions/:id` → `{ data: WorkflowDefinition }` (name/type
|
|
20
|
+
* resolution for an instance row; existing route, not new).
|
|
6
21
|
*/
|
|
7
22
|
export class AdminExecutionsClient {
|
|
8
23
|
http;
|
|
@@ -21,5 +36,18 @@ export class AdminExecutionsClient {
|
|
|
21
36
|
async projectFrictions(project) {
|
|
22
37
|
return this.http.getEnvelope(`/skills/frictions?project=${encodeURIComponent(project)}`);
|
|
23
38
|
}
|
|
39
|
+
/** F381: raw skill-execution list (Live/Roster/Recent sections read this directly). */
|
|
40
|
+
async listSkillExecutions(params) {
|
|
41
|
+
return this.http.getEnvelope(`/skills${qs({ ...params })}`);
|
|
42
|
+
}
|
|
43
|
+
/** F381/AC-4: raw workflow-instance list, `statuses` joined into one CSV param. */
|
|
44
|
+
async listInstances(params) {
|
|
45
|
+
const { statuses, ...rest } = params;
|
|
46
|
+
return this.http.getEnvelope(`/workflow-runner/instances${qs({ ...rest, statuses: statuses?.join(',') })}`);
|
|
47
|
+
}
|
|
48
|
+
/** F381: resolve a workflow instance's definition (name + type) for card display. */
|
|
49
|
+
async getDefinition(id) {
|
|
50
|
+
return this.http.getEnvelope(`/workflow-runner/definitions/${encodeURIComponent(id)}`);
|
|
51
|
+
}
|
|
24
52
|
}
|
|
25
53
|
//# sourceMappingURL=executions.client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.client.js","sourceRoot":"","sources":["../../../src/clients/admin/executions.client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executions.client.js","sourceRoot":"","sources":["../../../src/clients/admin/executions.client.ts"],"names":[],"mappings":"AAmBA,SAAS,EAAE,CAAC,MAA6D;IACrE,MAAM,CAAC,GAAG,IAAI,eAAe,EAAE,CAAA;IAC/B,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1C,IAAI,CAAC,KAAK,SAAS;YAAE,SAAQ;QAC7B,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IACvB,CAAC;IACD,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAA;IACtB,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CA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I,gCAAgC,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;IAC7F,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beacon-build/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.39.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@types/react": "^19.2.0",
|
|
27
27
|
"@types/react-dom": "^19.2.0",
|
|
28
28
|
"event-source-polyfill": "^1.0.31",
|
|
29
|
-
"@beacon-build/core": "1.
|
|
29
|
+
"@beacon-build/core": "1.39.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@testing-library/react": "^16.3.2",
|