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