@ever-works/everworks-skills-plugin 1.0.4 → 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 CHANGED
@@ -62,6 +62,7 @@ var PROBLEM_CODES = [
62
62
  "already_connected",
63
63
  "already_linked",
64
64
  "already_claimed",
65
+ "claim_locked",
65
66
  "invalid_client",
66
67
  "public_jwk_invalid",
67
68
  "identifier_claimed",
@@ -87,6 +88,11 @@ var PROBLEM_CODES = [
87
88
  "database_absent",
88
89
  "database_unreachable",
89
90
  "topic_private",
91
+ "realtime_disabled",
92
+ "topic_forbidden",
93
+ "topic_invalid",
94
+ "realtime_busy",
95
+ "too_many_streams",
90
96
  "keys_unavailable",
91
97
  "internal_error"
92
98
  ];
@@ -673,6 +679,153 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
673
679
  FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
674
680
  (family) => family.envNames
675
681
  );
682
+ var FLEET_LINK_FRAME_KINDS = {
683
+ /** Raw bytes: terminal output/input, log lines, file chunks. */
684
+ DATA: 1,
685
+ /** `[cols u16][rows u16]`. */
686
+ RESIZE: 2,
687
+ /** `[code i32]`. */
688
+ EXIT: 3,
689
+ /** UTF-8 JSON control message. */
690
+ JSON: 10,
691
+ /** UTF-8 reason code. */
692
+ CLOSE: 11,
693
+ /** A full picture (the existing computer-frame encoding). */
694
+ FRAME: 20,
695
+ /** A pointer / key / text event (the existing computer input encoding). */
696
+ INPUT: 21,
697
+ /** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
698
+ TILES: 23,
699
+ /** `[bytes u32]` credit. */
700
+ ACK: 30,
701
+ /** End of a stream. */
702
+ END: 31,
703
+ /** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
704
+ CLIP: 40
705
+ };
706
+ new Set(Object.values(FLEET_LINK_FRAME_KINDS));
707
+ var FLEET_LINK_CONTROL_TYPES = [
708
+ "link.hello",
709
+ "link.ready",
710
+ "link.ping",
711
+ "link.pong",
712
+ "link.pause",
713
+ "link.resume",
714
+ "link.drain",
715
+ "channel.open",
716
+ "channel.ready",
717
+ "channel.refused",
718
+ "channel.close",
719
+ "operation.progress",
720
+ "operation.done",
721
+ "operation.cancel"
722
+ ];
723
+ new Set(FLEET_LINK_CONTROL_TYPES);
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
+ }));
676
829
  var EMAIL_INBOX_CAP_FIELDS = [
677
830
  "inboxDailySends",
678
831
  "inboxBurstSends",
package/dist/index.js CHANGED
@@ -54,6 +54,7 @@ var PROBLEM_CODES = [
54
54
  "already_connected",
55
55
  "already_linked",
56
56
  "already_claimed",
57
+ "claim_locked",
57
58
  "invalid_client",
58
59
  "public_jwk_invalid",
59
60
  "identifier_claimed",
@@ -79,6 +80,11 @@ var PROBLEM_CODES = [
79
80
  "database_absent",
80
81
  "database_unreachable",
81
82
  "topic_private",
83
+ "realtime_disabled",
84
+ "topic_forbidden",
85
+ "topic_invalid",
86
+ "realtime_busy",
87
+ "too_many_streams",
82
88
  "keys_unavailable",
83
89
  "internal_error"
84
90
  ];
@@ -665,6 +671,153 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
665
671
  FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
666
672
  (family) => family.envNames
667
673
  );
674
+ var FLEET_LINK_FRAME_KINDS = {
675
+ /** Raw bytes: terminal output/input, log lines, file chunks. */
676
+ DATA: 1,
677
+ /** `[cols u16][rows u16]`. */
678
+ RESIZE: 2,
679
+ /** `[code i32]`. */
680
+ EXIT: 3,
681
+ /** UTF-8 JSON control message. */
682
+ JSON: 10,
683
+ /** UTF-8 reason code. */
684
+ CLOSE: 11,
685
+ /** A full picture (the existing computer-frame encoding). */
686
+ FRAME: 20,
687
+ /** A pointer / key / text event (the existing computer input encoding). */
688
+ INPUT: 21,
689
+ /** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
690
+ TILES: 23,
691
+ /** `[bytes u32]` credit. */
692
+ ACK: 30,
693
+ /** End of a stream. */
694
+ END: 31,
695
+ /** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
696
+ CLIP: 40
697
+ };
698
+ new Set(Object.values(FLEET_LINK_FRAME_KINDS));
699
+ var FLEET_LINK_CONTROL_TYPES = [
700
+ "link.hello",
701
+ "link.ready",
702
+ "link.ping",
703
+ "link.pong",
704
+ "link.pause",
705
+ "link.resume",
706
+ "link.drain",
707
+ "channel.open",
708
+ "channel.ready",
709
+ "channel.refused",
710
+ "channel.close",
711
+ "operation.progress",
712
+ "operation.done",
713
+ "operation.cancel"
714
+ ];
715
+ new Set(FLEET_LINK_CONTROL_TYPES);
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
+ }));
668
821
  var EMAIL_INBOX_CAP_FIELDS = [
669
822
  "inboxDailySends",
670
823
  "inboxBurstSends",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/everworks-skills-plugin",
3
- "version": "1.0.4",
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.6",
37
- "@ever-works/plugin": "^1.2.5",
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:464fe9669450cf738fe56a6556bf068c4c93c009c016025bffedd042b77743f0",
72
- "commit": "19905c70cf05be3bc523db030597046067cd322a",
73
- "source": "https://github.com/ever-works/ever-works/tree/19905c70cf05be3bc523db030597046067cd322a/packages/plugins/everworks-skills"
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
  }