@ever-works/everworks-playbooks-plugin 1.0.5 → 1.0.6
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/dist/index.cjs +104 -0
- package/dist/index.js +104 -0
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -716,6 +716,110 @@ var FLEET_LINK_CONTROL_TYPES = [
|
|
|
716
716
|
];
|
|
717
717
|
new Set(FLEET_LINK_CONTROL_TYPES);
|
|
718
718
|
new TextEncoder();
|
|
719
|
+
var FLEET_RUN_TOKEN_ROUTES = Object.freeze([
|
|
720
|
+
// Works — reads, plus the settings update (its merge / check / command
|
|
721
|
+
// fields are refused for run tokens by the Works controller).
|
|
722
|
+
{ method: "GET", pathPattern: "/api/works" },
|
|
723
|
+
{ method: "GET", pathPattern: "/api/works/{id}" },
|
|
724
|
+
{ method: "PUT", pathPattern: "/api/works/{id}" },
|
|
725
|
+
{ method: "GET", pathPattern: "/api/works/{id}/config" },
|
|
726
|
+
{ method: "GET", pathPattern: "/api/works/{id}/items" },
|
|
727
|
+
{ method: "GET", pathPattern: "/api/works/{id}/categories-tags" },
|
|
728
|
+
{ method: "GET", pathPattern: "/api/works/{id}/history" },
|
|
729
|
+
{ method: "GET", pathPattern: "/api/works/{id}/generator-form" },
|
|
730
|
+
{ method: "GET", pathPattern: "/api/works/{id}/schedule" },
|
|
731
|
+
{ method: "GET", pathPattern: "/api/works/{id}/comparisons" },
|
|
732
|
+
{ method: "GET", pathPattern: "/api/works/{id}/comparisons/{slug}" },
|
|
733
|
+
// Knowledge Base (`apps/mcp/src/tools/kb`). A document a run token writes
|
|
734
|
+
// lands `proposed` (review-gated), see the KB controller. No unlock.
|
|
735
|
+
{ method: "GET", pathPattern: "/api/works/{id}/kb/documents" },
|
|
736
|
+
{ method: "POST", pathPattern: "/api/works/{id}/kb/documents" },
|
|
737
|
+
{ method: "GET", pathPattern: "/api/works/{id}/kb/documents/{docIdOrPath}" },
|
|
738
|
+
{ method: "PATCH", pathPattern: "/api/works/{id}/kb/documents/{docId}" },
|
|
739
|
+
{ method: "POST", pathPattern: "/api/works/{id}/kb/documents/{docId}/lock" },
|
|
740
|
+
// Deploy — reads and the capability check only.
|
|
741
|
+
{ method: "GET", pathPattern: "/api/deploy/works/{id}/domains" },
|
|
742
|
+
{ method: "GET", pathPattern: "/api/deploy/providers" },
|
|
743
|
+
{ method: "POST", pathPattern: "/api/deploy/works/{id}/check" },
|
|
744
|
+
// Plugins — read only.
|
|
745
|
+
{ method: "GET", pathPattern: "/api/plugins" },
|
|
746
|
+
{ method: "GET", pathPattern: "/api/plugins/{pluginId}" },
|
|
747
|
+
// Missions — reads, plus pause (the safe direction).
|
|
748
|
+
{ method: "GET", pathPattern: "/api/me/missions" },
|
|
749
|
+
{ method: "GET", pathPattern: "/api/me/missions/{id}" },
|
|
750
|
+
{ method: "GET", pathPattern: "/api/me/missions/{id}/budget" },
|
|
751
|
+
{ method: "GET", pathPattern: "/api/me/missions/{id}/works" },
|
|
752
|
+
{ method: "POST", pathPattern: "/api/me/missions/{id}/pause" },
|
|
753
|
+
// Ideas — reads, plus filing a new Idea (a proposal a person builds).
|
|
754
|
+
{ method: "POST", pathPattern: "/api/me/work-proposals" },
|
|
755
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals" },
|
|
756
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals/status" },
|
|
757
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals/preferences" },
|
|
758
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals/{id}" },
|
|
759
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals/{id}/budget" },
|
|
760
|
+
// Account-wide usage.
|
|
761
|
+
{ method: "GET", pathPattern: "/api/me/usage/account-wide" },
|
|
762
|
+
// Tasks — reads and collaboration writes. Create / update / transition /
|
|
763
|
+
// assign / chat carry body refusals for run tokens in the Tasks
|
|
764
|
+
// controller (no checks, no schedule, no force, no dispatch, no @agent).
|
|
765
|
+
{ method: "GET", pathPattern: "/api/tasks" },
|
|
766
|
+
{ method: "POST", pathPattern: "/api/tasks" },
|
|
767
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}" },
|
|
768
|
+
{ method: "PATCH", pathPattern: "/api/tasks/{id}" },
|
|
769
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/subtasks" },
|
|
770
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/activity" },
|
|
771
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/transition" },
|
|
772
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/run-candidates" },
|
|
773
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/pr-status" },
|
|
774
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/diff" },
|
|
775
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/assignees" },
|
|
776
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/reviewers" },
|
|
777
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/approvers" },
|
|
778
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/relations" },
|
|
779
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/escalations" },
|
|
780
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/chat" },
|
|
781
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/chat" },
|
|
782
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/spend" },
|
|
783
|
+
// Inbox — read only (no reply, no archive / delete / mark-read).
|
|
784
|
+
{ method: "GET", pathPattern: "/api/inbox" },
|
|
785
|
+
{ method: "GET", pathPattern: "/api/inbox/unread-count" },
|
|
786
|
+
{ method: "GET", pathPattern: "/api/inbox/{id}" },
|
|
787
|
+
// Goals — reads, a draft create, field-limited update, pause, and the
|
|
788
|
+
// ASKING side of the definition of done (propose, never approve).
|
|
789
|
+
{ method: "GET", pathPattern: "/api/me/goals" },
|
|
790
|
+
{ method: "POST", pathPattern: "/api/me/goals" },
|
|
791
|
+
{ method: "GET", pathPattern: "/api/me/goals/{id}" },
|
|
792
|
+
{ method: "PATCH", pathPattern: "/api/me/goals/{id}" },
|
|
793
|
+
{ method: "GET", pathPattern: "/api/me/goals/{id}/samples" },
|
|
794
|
+
{ method: "POST", pathPattern: "/api/me/goals/{id}/pause" },
|
|
795
|
+
{ method: "POST", pathPattern: "/api/me/goals/{id}/dod/propose" },
|
|
796
|
+
// Fleet — reads only.
|
|
797
|
+
{ method: "GET", pathPattern: "/api/fleet/nodes" },
|
|
798
|
+
{ method: "GET", pathPattern: "/api/fleet/nodes/{id}" },
|
|
799
|
+
{ method: "GET", pathPattern: "/api/fleet/runner-status" },
|
|
800
|
+
{ method: "GET", pathPattern: "/api/fleet/execution-preferences" },
|
|
801
|
+
{ method: "GET", pathPattern: "/api/fleet/agents/{agentId}/node-affinity" },
|
|
802
|
+
// Agents — reads, plus cancel and pause (the safe direction).
|
|
803
|
+
{ method: "GET", pathPattern: "/api/agents" },
|
|
804
|
+
{ method: "GET", pathPattern: "/api/agents/{id}" },
|
|
805
|
+
{ method: "GET", pathPattern: "/api/agents/{id}/runs" },
|
|
806
|
+
{ method: "GET", pathPattern: "/api/agents/{id}/runs/{runId}" },
|
|
807
|
+
{ method: "POST", pathPattern: "/api/agents/{id}/runs/{runId}/cancel" },
|
|
808
|
+
{ method: "POST", pathPattern: "/api/agents/{id}/pause" },
|
|
809
|
+
{ method: "GET", pathPattern: "/api/agents/{id}/budget" },
|
|
810
|
+
// Agent Plugins — read only (installing a package installs instructions).
|
|
811
|
+
{ method: "GET", pathPattern: "/api/agent-plugins" },
|
|
812
|
+
{ method: "GET", pathPattern: "/api/agent-plugins/findings" },
|
|
813
|
+
{ method: "GET", pathPattern: "/api/agent-plugins/catalog" },
|
|
814
|
+
{ method: "GET", pathPattern: "/api/agent-plugins/updates" }
|
|
815
|
+
]);
|
|
816
|
+
function splitSegments(normalizedPath) {
|
|
817
|
+
return normalizedPath.split("/").filter((segment) => segment.length > 0);
|
|
818
|
+
}
|
|
819
|
+
FLEET_RUN_TOKEN_ROUTES.map((route) => ({
|
|
820
|
+
method: route.method.toUpperCase(),
|
|
821
|
+
shape: splitSegments(route.pathPattern).map((part) => /^\{[^}]+\}$/.test(part) ? "*" : part.toLowerCase())
|
|
822
|
+
}));
|
|
719
823
|
var WORKFLOW_EDGE_KINDS = [
|
|
720
824
|
"sequential",
|
|
721
825
|
"on_failure",
|
package/dist/index.js
CHANGED
|
@@ -712,6 +712,110 @@ var FLEET_LINK_CONTROL_TYPES = [
|
|
|
712
712
|
];
|
|
713
713
|
new Set(FLEET_LINK_CONTROL_TYPES);
|
|
714
714
|
new TextEncoder();
|
|
715
|
+
var FLEET_RUN_TOKEN_ROUTES = Object.freeze([
|
|
716
|
+
// Works — reads, plus the settings update (its merge / check / command
|
|
717
|
+
// fields are refused for run tokens by the Works controller).
|
|
718
|
+
{ method: "GET", pathPattern: "/api/works" },
|
|
719
|
+
{ method: "GET", pathPattern: "/api/works/{id}" },
|
|
720
|
+
{ method: "PUT", pathPattern: "/api/works/{id}" },
|
|
721
|
+
{ method: "GET", pathPattern: "/api/works/{id}/config" },
|
|
722
|
+
{ method: "GET", pathPattern: "/api/works/{id}/items" },
|
|
723
|
+
{ method: "GET", pathPattern: "/api/works/{id}/categories-tags" },
|
|
724
|
+
{ method: "GET", pathPattern: "/api/works/{id}/history" },
|
|
725
|
+
{ method: "GET", pathPattern: "/api/works/{id}/generator-form" },
|
|
726
|
+
{ method: "GET", pathPattern: "/api/works/{id}/schedule" },
|
|
727
|
+
{ method: "GET", pathPattern: "/api/works/{id}/comparisons" },
|
|
728
|
+
{ method: "GET", pathPattern: "/api/works/{id}/comparisons/{slug}" },
|
|
729
|
+
// Knowledge Base (`apps/mcp/src/tools/kb`). A document a run token writes
|
|
730
|
+
// lands `proposed` (review-gated), see the KB controller. No unlock.
|
|
731
|
+
{ method: "GET", pathPattern: "/api/works/{id}/kb/documents" },
|
|
732
|
+
{ method: "POST", pathPattern: "/api/works/{id}/kb/documents" },
|
|
733
|
+
{ method: "GET", pathPattern: "/api/works/{id}/kb/documents/{docIdOrPath}" },
|
|
734
|
+
{ method: "PATCH", pathPattern: "/api/works/{id}/kb/documents/{docId}" },
|
|
735
|
+
{ method: "POST", pathPattern: "/api/works/{id}/kb/documents/{docId}/lock" },
|
|
736
|
+
// Deploy — reads and the capability check only.
|
|
737
|
+
{ method: "GET", pathPattern: "/api/deploy/works/{id}/domains" },
|
|
738
|
+
{ method: "GET", pathPattern: "/api/deploy/providers" },
|
|
739
|
+
{ method: "POST", pathPattern: "/api/deploy/works/{id}/check" },
|
|
740
|
+
// Plugins — read only.
|
|
741
|
+
{ method: "GET", pathPattern: "/api/plugins" },
|
|
742
|
+
{ method: "GET", pathPattern: "/api/plugins/{pluginId}" },
|
|
743
|
+
// Missions — reads, plus pause (the safe direction).
|
|
744
|
+
{ method: "GET", pathPattern: "/api/me/missions" },
|
|
745
|
+
{ method: "GET", pathPattern: "/api/me/missions/{id}" },
|
|
746
|
+
{ method: "GET", pathPattern: "/api/me/missions/{id}/budget" },
|
|
747
|
+
{ method: "GET", pathPattern: "/api/me/missions/{id}/works" },
|
|
748
|
+
{ method: "POST", pathPattern: "/api/me/missions/{id}/pause" },
|
|
749
|
+
// Ideas — reads, plus filing a new Idea (a proposal a person builds).
|
|
750
|
+
{ method: "POST", pathPattern: "/api/me/work-proposals" },
|
|
751
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals" },
|
|
752
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals/status" },
|
|
753
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals/preferences" },
|
|
754
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals/{id}" },
|
|
755
|
+
{ method: "GET", pathPattern: "/api/me/work-proposals/{id}/budget" },
|
|
756
|
+
// Account-wide usage.
|
|
757
|
+
{ method: "GET", pathPattern: "/api/me/usage/account-wide" },
|
|
758
|
+
// Tasks — reads and collaboration writes. Create / update / transition /
|
|
759
|
+
// assign / chat carry body refusals for run tokens in the Tasks
|
|
760
|
+
// controller (no checks, no schedule, no force, no dispatch, no @agent).
|
|
761
|
+
{ method: "GET", pathPattern: "/api/tasks" },
|
|
762
|
+
{ method: "POST", pathPattern: "/api/tasks" },
|
|
763
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}" },
|
|
764
|
+
{ method: "PATCH", pathPattern: "/api/tasks/{id}" },
|
|
765
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/subtasks" },
|
|
766
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/activity" },
|
|
767
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/transition" },
|
|
768
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/run-candidates" },
|
|
769
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/pr-status" },
|
|
770
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/diff" },
|
|
771
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/assignees" },
|
|
772
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/reviewers" },
|
|
773
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/approvers" },
|
|
774
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/relations" },
|
|
775
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/escalations" },
|
|
776
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/chat" },
|
|
777
|
+
{ method: "POST", pathPattern: "/api/tasks/{id}/chat" },
|
|
778
|
+
{ method: "GET", pathPattern: "/api/tasks/{id}/spend" },
|
|
779
|
+
// Inbox — read only (no reply, no archive / delete / mark-read).
|
|
780
|
+
{ method: "GET", pathPattern: "/api/inbox" },
|
|
781
|
+
{ method: "GET", pathPattern: "/api/inbox/unread-count" },
|
|
782
|
+
{ method: "GET", pathPattern: "/api/inbox/{id}" },
|
|
783
|
+
// Goals — reads, a draft create, field-limited update, pause, and the
|
|
784
|
+
// ASKING side of the definition of done (propose, never approve).
|
|
785
|
+
{ method: "GET", pathPattern: "/api/me/goals" },
|
|
786
|
+
{ method: "POST", pathPattern: "/api/me/goals" },
|
|
787
|
+
{ method: "GET", pathPattern: "/api/me/goals/{id}" },
|
|
788
|
+
{ method: "PATCH", pathPattern: "/api/me/goals/{id}" },
|
|
789
|
+
{ method: "GET", pathPattern: "/api/me/goals/{id}/samples" },
|
|
790
|
+
{ method: "POST", pathPattern: "/api/me/goals/{id}/pause" },
|
|
791
|
+
{ method: "POST", pathPattern: "/api/me/goals/{id}/dod/propose" },
|
|
792
|
+
// Fleet — reads only.
|
|
793
|
+
{ method: "GET", pathPattern: "/api/fleet/nodes" },
|
|
794
|
+
{ method: "GET", pathPattern: "/api/fleet/nodes/{id}" },
|
|
795
|
+
{ method: "GET", pathPattern: "/api/fleet/runner-status" },
|
|
796
|
+
{ method: "GET", pathPattern: "/api/fleet/execution-preferences" },
|
|
797
|
+
{ method: "GET", pathPattern: "/api/fleet/agents/{agentId}/node-affinity" },
|
|
798
|
+
// Agents — reads, plus cancel and pause (the safe direction).
|
|
799
|
+
{ method: "GET", pathPattern: "/api/agents" },
|
|
800
|
+
{ method: "GET", pathPattern: "/api/agents/{id}" },
|
|
801
|
+
{ method: "GET", pathPattern: "/api/agents/{id}/runs" },
|
|
802
|
+
{ method: "GET", pathPattern: "/api/agents/{id}/runs/{runId}" },
|
|
803
|
+
{ method: "POST", pathPattern: "/api/agents/{id}/runs/{runId}/cancel" },
|
|
804
|
+
{ method: "POST", pathPattern: "/api/agents/{id}/pause" },
|
|
805
|
+
{ method: "GET", pathPattern: "/api/agents/{id}/budget" },
|
|
806
|
+
// Agent Plugins — read only (installing a package installs instructions).
|
|
807
|
+
{ method: "GET", pathPattern: "/api/agent-plugins" },
|
|
808
|
+
{ method: "GET", pathPattern: "/api/agent-plugins/findings" },
|
|
809
|
+
{ method: "GET", pathPattern: "/api/agent-plugins/catalog" },
|
|
810
|
+
{ method: "GET", pathPattern: "/api/agent-plugins/updates" }
|
|
811
|
+
]);
|
|
812
|
+
function splitSegments(normalizedPath) {
|
|
813
|
+
return normalizedPath.split("/").filter((segment) => segment.length > 0);
|
|
814
|
+
}
|
|
815
|
+
FLEET_RUN_TOKEN_ROUTES.map((route) => ({
|
|
816
|
+
method: route.method.toUpperCase(),
|
|
817
|
+
shape: splitSegments(route.pathPattern).map((part) => /^\{[^}]+\}$/.test(part) ? "*" : part.toLowerCase())
|
|
818
|
+
}));
|
|
715
819
|
var WORKFLOW_EDGE_KINDS = [
|
|
716
820
|
"sequential",
|
|
717
821
|
"on_failure",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ever-works/everworks-playbooks-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Ever Works Playbooks — first-party playbook-provider plugin supplying the built-in Playbook catalogue: packaged outcomes with their trigger, steps, required capabilities, artefacts and escalation points.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ever Co. LTD",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"test:coverage": "vitest run --coverage"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ever-works/contracts": "^1.0.
|
|
37
|
-
"@ever-works/plugin": "^1.2.
|
|
36
|
+
"@ever-works/contracts": "^1.0.12",
|
|
37
|
+
"@ever-works/plugin": "^1.2.8"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"tsup": "^8.3.0",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"url": "https://github.com/ever-works/ever-works/issues"
|
|
68
68
|
},
|
|
69
69
|
"everworksRelease": {
|
|
70
|
-
"contentHash": "sha256:
|
|
71
|
-
"commit": "
|
|
72
|
-
"source": "https://github.com/ever-works/ever-works/tree/
|
|
70
|
+
"contentHash": "sha256:00ef5114af4e03b8cd1be73020847694804e88ce3cde0a87c238634e709bc503",
|
|
71
|
+
"commit": "efd11a2282ea3e514e93f754b9b008543a7cff60",
|
|
72
|
+
"source": "https://github.com/ever-works/ever-works/tree/efd11a2282ea3e514e93f754b9b008543a7cff60/packages/plugins/everworks-playbooks"
|
|
73
73
|
}
|
|
74
74
|
}
|