@a1st/aix-schema 0.2.0 → 0.3.1
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/agents.d.ts +1355 -0
- package/dist/agents.d.ts.map +1 -0
- package/dist/agents.js +53 -0
- package/dist/agents.js.map +1 -0
- package/dist/config.d.ts +3682 -2530
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -0
- package/dist/config.js.map +1 -1
- package/dist/editor-support.d.ts +20 -2
- package/dist/editor-support.d.ts.map +1 -1
- package/dist/editor-support.js +36 -6
- package/dist/editor-support.js.map +1 -1
- package/dist/editors.d.ts +670 -670
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +1 -0
- package/dist/factory.js.map +1 -1
- package/dist/hooks.d.ts +30 -30
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lock.d.ts +308 -100
- package/dist/lock.d.ts.map +1 -1
- package/dist/lock.js +2 -0
- package/dist/lock.js.map +1 -1
- package/dist/prompts.d.ts +42 -42
- package/dist/rules.d.ts +57 -57
- package/package.json +1 -1
- package/schema.json +378 -0
package/schema.json
CHANGED
|
@@ -630,6 +630,384 @@
|
|
|
630
630
|
"description": "Map of prompt names to their definitions (or false to disable)",
|
|
631
631
|
"default": {}
|
|
632
632
|
},
|
|
633
|
+
"agents": {
|
|
634
|
+
"type": "object",
|
|
635
|
+
"additionalProperties": {
|
|
636
|
+
"anyOf": [
|
|
637
|
+
{
|
|
638
|
+
"anyOf": [
|
|
639
|
+
{
|
|
640
|
+
"type": "string",
|
|
641
|
+
"description": "Source reference: local path (./, ../, /, file:), git URL (https://), or git shorthand (github:)"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"type": "object",
|
|
645
|
+
"properties": {
|
|
646
|
+
"description": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"description": "When this agent should be used"
|
|
649
|
+
},
|
|
650
|
+
"mode": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"enum": ["primary", "subagent"],
|
|
653
|
+
"default": "subagent",
|
|
654
|
+
"description": "Whether the agent is a primary assistant or a delegated subagent"
|
|
655
|
+
},
|
|
656
|
+
"model": {
|
|
657
|
+
"type": "string",
|
|
658
|
+
"description": "Model alias or model ID for this agent"
|
|
659
|
+
},
|
|
660
|
+
"tools": {
|
|
661
|
+
"type": "array",
|
|
662
|
+
"items": {
|
|
663
|
+
"type": "string"
|
|
664
|
+
},
|
|
665
|
+
"description": "Tool names or tool IDs available to this agent"
|
|
666
|
+
},
|
|
667
|
+
"permissions": {
|
|
668
|
+
"type": "object",
|
|
669
|
+
"additionalProperties": {
|
|
670
|
+
"type": "string",
|
|
671
|
+
"enum": ["allow", "ask", "deny"],
|
|
672
|
+
"description": "Permission policy for an agent capability"
|
|
673
|
+
},
|
|
674
|
+
"description": "Portable capability permissions such as edit, bash, web, or write"
|
|
675
|
+
},
|
|
676
|
+
"mcp": {
|
|
677
|
+
"type": "object",
|
|
678
|
+
"additionalProperties": {
|
|
679
|
+
"anyOf": [
|
|
680
|
+
{
|
|
681
|
+
"type": "object",
|
|
682
|
+
"properties": {
|
|
683
|
+
"enabled": {
|
|
684
|
+
"type": "boolean",
|
|
685
|
+
"description": "Whether server is active (default: true)"
|
|
686
|
+
},
|
|
687
|
+
"tools": {
|
|
688
|
+
"anyOf": [
|
|
689
|
+
{
|
|
690
|
+
"type": "array",
|
|
691
|
+
"items": {
|
|
692
|
+
"type": "string"
|
|
693
|
+
},
|
|
694
|
+
"description": "Allowed tool names"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"type": "object",
|
|
698
|
+
"properties": {
|
|
699
|
+
"include": {
|
|
700
|
+
"type": "array",
|
|
701
|
+
"items": {
|
|
702
|
+
"type": "string"
|
|
703
|
+
},
|
|
704
|
+
"description": "Tools to include"
|
|
705
|
+
},
|
|
706
|
+
"exclude": {
|
|
707
|
+
"type": "array",
|
|
708
|
+
"items": {
|
|
709
|
+
"type": "string"
|
|
710
|
+
},
|
|
711
|
+
"description": "Tools to exclude"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"additionalProperties": false
|
|
715
|
+
}
|
|
716
|
+
],
|
|
717
|
+
"description": "Tool access control"
|
|
718
|
+
},
|
|
719
|
+
"disabledTools": {
|
|
720
|
+
"type": "array",
|
|
721
|
+
"items": {
|
|
722
|
+
"type": "string"
|
|
723
|
+
},
|
|
724
|
+
"description": "Tools to disable (Windsurf format)"
|
|
725
|
+
},
|
|
726
|
+
"resources": {
|
|
727
|
+
"anyOf": [
|
|
728
|
+
{
|
|
729
|
+
"type": "array",
|
|
730
|
+
"items": {
|
|
731
|
+
"type": "string"
|
|
732
|
+
},
|
|
733
|
+
"description": "Allowed resource patterns (glob)"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"type": "object",
|
|
737
|
+
"properties": {
|
|
738
|
+
"include": {
|
|
739
|
+
"type": "array",
|
|
740
|
+
"items": {
|
|
741
|
+
"type": "string"
|
|
742
|
+
},
|
|
743
|
+
"description": "Resource patterns to include"
|
|
744
|
+
},
|
|
745
|
+
"exclude": {
|
|
746
|
+
"type": "array",
|
|
747
|
+
"items": {
|
|
748
|
+
"type": "string"
|
|
749
|
+
},
|
|
750
|
+
"description": "Resource patterns to exclude"
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
"additionalProperties": false
|
|
754
|
+
}
|
|
755
|
+
],
|
|
756
|
+
"description": "Resource access control"
|
|
757
|
+
},
|
|
758
|
+
"autoStart": {
|
|
759
|
+
"type": "boolean",
|
|
760
|
+
"description": "Start with editor (default: true)"
|
|
761
|
+
},
|
|
762
|
+
"restartOnFailure": {
|
|
763
|
+
"type": "boolean",
|
|
764
|
+
"description": "Auto-restart on crash (default: true)"
|
|
765
|
+
},
|
|
766
|
+
"maxRestarts": {
|
|
767
|
+
"type": "integer",
|
|
768
|
+
"exclusiveMinimum": 0,
|
|
769
|
+
"description": "Max restart attempts (default: 3)"
|
|
770
|
+
},
|
|
771
|
+
"command": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"description": "Command to execute"
|
|
774
|
+
},
|
|
775
|
+
"args": {
|
|
776
|
+
"type": "array",
|
|
777
|
+
"items": {
|
|
778
|
+
"type": "string"
|
|
779
|
+
},
|
|
780
|
+
"description": "Command arguments"
|
|
781
|
+
},
|
|
782
|
+
"env": {
|
|
783
|
+
"type": "object",
|
|
784
|
+
"additionalProperties": {
|
|
785
|
+
"type": "string",
|
|
786
|
+
"description": "Environment variable value. Use ${VAR_NAME} for dynamic resolution."
|
|
787
|
+
},
|
|
788
|
+
"description": "Environment variables"
|
|
789
|
+
},
|
|
790
|
+
"cwd": {
|
|
791
|
+
"type": "string",
|
|
792
|
+
"description": "Working directory"
|
|
793
|
+
},
|
|
794
|
+
"shell": {
|
|
795
|
+
"type": "boolean",
|
|
796
|
+
"description": "Run in shell"
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
"required": ["command"],
|
|
800
|
+
"additionalProperties": false
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"type": "object",
|
|
804
|
+
"properties": {
|
|
805
|
+
"enabled": {
|
|
806
|
+
"type": "boolean",
|
|
807
|
+
"description": "Whether server is active (default: true)"
|
|
808
|
+
},
|
|
809
|
+
"tools": {
|
|
810
|
+
"anyOf": [
|
|
811
|
+
{
|
|
812
|
+
"type": "array",
|
|
813
|
+
"items": {
|
|
814
|
+
"type": "string"
|
|
815
|
+
},
|
|
816
|
+
"description": "Allowed tool names"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"type": "object",
|
|
820
|
+
"properties": {
|
|
821
|
+
"include": {
|
|
822
|
+
"type": "array",
|
|
823
|
+
"items": {
|
|
824
|
+
"type": "string"
|
|
825
|
+
},
|
|
826
|
+
"description": "Tools to include"
|
|
827
|
+
},
|
|
828
|
+
"exclude": {
|
|
829
|
+
"type": "array",
|
|
830
|
+
"items": {
|
|
831
|
+
"type": "string"
|
|
832
|
+
},
|
|
833
|
+
"description": "Tools to exclude"
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"additionalProperties": false
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
"description": "Tool access control"
|
|
840
|
+
},
|
|
841
|
+
"disabledTools": {
|
|
842
|
+
"type": "array",
|
|
843
|
+
"items": {
|
|
844
|
+
"type": "string"
|
|
845
|
+
},
|
|
846
|
+
"description": "Tools to disable (Windsurf format)"
|
|
847
|
+
},
|
|
848
|
+
"resources": {
|
|
849
|
+
"anyOf": [
|
|
850
|
+
{
|
|
851
|
+
"type": "array",
|
|
852
|
+
"items": {
|
|
853
|
+
"type": "string"
|
|
854
|
+
},
|
|
855
|
+
"description": "Allowed resource patterns (glob)"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"type": "object",
|
|
859
|
+
"properties": {
|
|
860
|
+
"include": {
|
|
861
|
+
"type": "array",
|
|
862
|
+
"items": {
|
|
863
|
+
"type": "string"
|
|
864
|
+
},
|
|
865
|
+
"description": "Resource patterns to include"
|
|
866
|
+
},
|
|
867
|
+
"exclude": {
|
|
868
|
+
"type": "array",
|
|
869
|
+
"items": {
|
|
870
|
+
"type": "string"
|
|
871
|
+
},
|
|
872
|
+
"description": "Resource patterns to exclude"
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
"additionalProperties": false
|
|
876
|
+
}
|
|
877
|
+
],
|
|
878
|
+
"description": "Resource access control"
|
|
879
|
+
},
|
|
880
|
+
"autoStart": {
|
|
881
|
+
"type": "boolean",
|
|
882
|
+
"description": "Start with editor (default: true)"
|
|
883
|
+
},
|
|
884
|
+
"restartOnFailure": {
|
|
885
|
+
"type": "boolean",
|
|
886
|
+
"description": "Auto-restart on crash (default: true)"
|
|
887
|
+
},
|
|
888
|
+
"maxRestarts": {
|
|
889
|
+
"type": "integer",
|
|
890
|
+
"exclusiveMinimum": 0,
|
|
891
|
+
"description": "Max restart attempts (default: 3)"
|
|
892
|
+
},
|
|
893
|
+
"url": {
|
|
894
|
+
"type": "string",
|
|
895
|
+
"format": "uri",
|
|
896
|
+
"description": "MCP endpoint URL (Streamable HTTP)"
|
|
897
|
+
},
|
|
898
|
+
"headers": {
|
|
899
|
+
"type": "object",
|
|
900
|
+
"additionalProperties": {
|
|
901
|
+
"type": "string",
|
|
902
|
+
"description": "Environment variable value. Use ${VAR_NAME} for dynamic resolution."
|
|
903
|
+
},
|
|
904
|
+
"description": "HTTP headers"
|
|
905
|
+
},
|
|
906
|
+
"timeout": {
|
|
907
|
+
"type": "number",
|
|
908
|
+
"exclusiveMinimum": 0,
|
|
909
|
+
"description": "Connection timeout (ms)"
|
|
910
|
+
},
|
|
911
|
+
"validateOrigin": {
|
|
912
|
+
"type": "boolean",
|
|
913
|
+
"description": "Validate Origin header (security)"
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
"required": ["url"],
|
|
917
|
+
"additionalProperties": false
|
|
918
|
+
}
|
|
919
|
+
]
|
|
920
|
+
},
|
|
921
|
+
"description": "MCP servers available to this agent when the target editor supports per-agent MCP"
|
|
922
|
+
},
|
|
923
|
+
"content": {
|
|
924
|
+
"type": "string",
|
|
925
|
+
"description": "Inline agent system prompt"
|
|
926
|
+
},
|
|
927
|
+
"path": {
|
|
928
|
+
"type": "string",
|
|
929
|
+
"description": "Local file path to agent prompt content"
|
|
930
|
+
},
|
|
931
|
+
"git": {
|
|
932
|
+
"type": "object",
|
|
933
|
+
"properties": {
|
|
934
|
+
"url": {
|
|
935
|
+
"type": "string",
|
|
936
|
+
"description": "Git repository URL or shorthand (e.g., github:user/repo)"
|
|
937
|
+
},
|
|
938
|
+
"path": {
|
|
939
|
+
"type": "string",
|
|
940
|
+
"description": "Path to rule file within repo (default: root)"
|
|
941
|
+
},
|
|
942
|
+
"ref": {
|
|
943
|
+
"type": "string",
|
|
944
|
+
"description": "Branch, tag, or commit (default: main/master)"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"required": ["url"],
|
|
948
|
+
"additionalProperties": false,
|
|
949
|
+
"description": "Git repository source"
|
|
950
|
+
},
|
|
951
|
+
"npm": {
|
|
952
|
+
"type": "object",
|
|
953
|
+
"properties": {
|
|
954
|
+
"npm": {
|
|
955
|
+
"type": "string",
|
|
956
|
+
"description": "NPM package name (e.g., \"@company/rules\")"
|
|
957
|
+
},
|
|
958
|
+
"path": {
|
|
959
|
+
"type": "string",
|
|
960
|
+
"description": "Path to file within package (e.g., \"rules/style.md\")"
|
|
961
|
+
},
|
|
962
|
+
"version": {
|
|
963
|
+
"type": "string",
|
|
964
|
+
"description": "Version to auto-install (omit to use project node_modules)"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"required": ["npm", "path"],
|
|
968
|
+
"additionalProperties": false,
|
|
969
|
+
"description": "NPM package source"
|
|
970
|
+
},
|
|
971
|
+
"editor": {
|
|
972
|
+
"type": "object",
|
|
973
|
+
"additionalProperties": {
|
|
974
|
+
"type": "object",
|
|
975
|
+
"additionalProperties": {}
|
|
976
|
+
},
|
|
977
|
+
"propertyNames": {
|
|
978
|
+
"enum": [
|
|
979
|
+
"windsurf",
|
|
980
|
+
"cursor",
|
|
981
|
+
"claude-code",
|
|
982
|
+
"copilot",
|
|
983
|
+
"zed",
|
|
984
|
+
"neovim",
|
|
985
|
+
"gemini",
|
|
986
|
+
"opencode"
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
"description": "Editor-specific agent fields that aix preserves for round-tripping"
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
"additionalProperties": false,
|
|
993
|
+
"description": "Agent or subagent definition"
|
|
994
|
+
}
|
|
995
|
+
]
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"type": "boolean",
|
|
999
|
+
"const": false
|
|
1000
|
+
}
|
|
1001
|
+
]
|
|
1002
|
+
},
|
|
1003
|
+
"propertyNames": {
|
|
1004
|
+
"minLength": 1,
|
|
1005
|
+
"maxLength": 64,
|
|
1006
|
+
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
1007
|
+
},
|
|
1008
|
+
"description": "Map of agent names to their definitions (or false to disable)",
|
|
1009
|
+
"default": {}
|
|
1010
|
+
},
|
|
633
1011
|
"editors": {
|
|
634
1012
|
"anyOf": [
|
|
635
1013
|
{
|