@sentry/junior 0.310.0 → 0.312.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/dist/{adapter-context-BhKpjpGD.js → adapter-context-BRjEWRy1.js} +2 -2
- package/dist/adapter-iIq7ihf7.js +259 -0
- package/dist/{admin-tgZEZAk2.js → admin-DhInw5K9.js} +1 -2
- package/dist/{agent-runner-D9cvNlQl.js → agent-runner-C9iDurwX.js} +6507 -7721
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -6
- package/dist/api.d.ts +21 -3
- package/dist/api.js +1625 -535
- package/dist/{app-B_7Wn0en.d.ts → app-DRFrC8Mw.d.ts} +14 -10
- package/dist/app.d.ts +2 -2
- package/dist/app.js +454 -994
- package/dist/{background-compaction-queue-BGHqkhkY.js → background-compaction-queue-DrKi7w3d.js} +10 -85
- package/dist/callback-mFlTUWWx.js +75 -0
- package/dist/{catalog-runtime-BxwzbLKY.js → catalog-runtime-D7xapBAX.js} +1 -1
- package/dist/channel-access-CJGfNTdn.js +221 -0
- package/dist/child-message-DcsritGf.js +179 -0
- package/dist/cli/chat.js +18 -19
- package/dist/cli/check.js +23 -29
- package/dist/cli/init.js +1 -7
- package/dist/cli/main.js +3 -7
- package/dist/cli/plugins.js +8 -7
- package/dist/cli/run.d.ts +1 -2
- package/dist/cli/run.js +1 -2
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-Dkt2Le2b.js → config-kXB2Y5tl.js} +294 -28
- package/dist/{continue-in-slack-BWVwePKD.js → continue-in-slack-O6pV5004.js} +7 -7
- package/dist/{conversation-feed-Ci6YD1N-.js → conversation-feed-uNOv_x68.js} +87 -24
- package/dist/{conversation-privacy-C39g8BY4.js → conversation-privacy-L4ja1_W6.js} +1 -1
- package/dist/{conversation-turn-CBlZIH02.js → conversation-turn-CeLbHqdw.js} +56 -49
- package/dist/{credential-sync-vGnrB0BY.js → credential-sync-I8VBGk05.js} +16 -16
- package/dist/{projection-jZSlEAXG.js → credentialed-Cb6E2phL.js} +16268 -16821
- package/dist/{db-B4Hjxr-u.d.ts → db-BbC5stfa.d.ts} +13 -6
- package/dist/{db-CFZggNoy.js → db-LAyyX8tk.js} +1698 -1046
- package/dist/{executor-BPkZDx5-.js → executor-SCub-fAq.js} +552 -181
- package/dist/{html-2r2KmLwi.js → html-BCZ3Xtb_.js} +6 -6
- package/dist/{session-stop-BfY4rhJs.js → ingest-BDf3D50j.js} +2134 -2553
- package/dist/{install-C-oE6C_u.js → install-DCFJFkC0.js} +2 -2
- package/dist/instrumentation.js +4 -4
- package/dist/{lineage-CsvrEFQe.js → lineage-B_m-4TJw.js} +2 -2
- package/dist/{stop-DYzjRf2U.js → list-CN2QA2R9.js} +1656 -685
- package/dist/{logging-D5gkyvnK.js → logging-dQ9ZRGQ8.js} +47 -9
- package/dist/media-CYm1QD8T.js +2356 -0
- package/dist/{message-DwvJ-I3w.js → message-DSXGj1hM.js} +19 -29
- package/dist/{model-input-MAq2881y.js → model-input--TrP9hYV.js} +3 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +4 -3
- package/dist/{oauth-callback-server-DIF6Li06.js → oauth-callback-server-DHCZC6B4.js} +2 -2
- package/dist/{oauth-relay-DPE-wrwO.js → oauth-relay-pPMGnDZt.js} +1 -1
- package/dist/{registry-BBkWFCl8.js → registry-CZOzddwu.js} +5 -8
- package/dist/{resolve-B38MkHXE.js → resolve-cKOQ14Dh.js} +3 -3
- package/dist/{result-BaqSZcJb.js → result-DcvEOe1r.js} +119 -93
- package/dist/result-event-type-BdIJuZxg.js +48 -0
- package/dist/rule-DAxQY-1h.js +20 -0
- package/dist/{runner-11h8PrHh.js → runner-DBfUW44l.js} +14 -16
- package/dist/{sandbox-egress-signals-CTcACAtJ.js → sandbox-egress-signals-BVF_xAm1.js} +1 -1
- package/dist/{schema-DriSvB40.d.ts → schema-BEHKxr4I.d.ts} +861 -298
- package/dist/{schema-obw5jvR4.js → schema-Bk9Nm2E8.js} +344 -153
- package/dist/{service-account-Bx93N1n1.js → service-account-CVYsFjty.js} +3 -3
- package/dist/{service-account-Zc5bUcIJ.js → service-account-Ts4ulcrV.js} +68 -68
- package/dist/{skills-C8Npu5zO.js → skills-VTnhAJWm.js} +2 -2
- package/dist/{slack-conversation-unfurl-DlRVA02H.js → slack-conversation-unfurl-fuLnF1jE.js} +9 -11
- package/dist/{spawn-CXr58R0x.js → spawn-vxAarlX5.js} +6 -6
- package/dist/start-conversation-CEn2KH1A.js +941 -0
- package/dist/{state-CGrGVeQC.js → state-C1P3_Ywk.js} +4 -4
- package/dist/statuses-_cRJHXK7.js +150 -0
- package/dist/store-DFZaN-Ix.js +492 -0
- package/dist/task-queue-Cx4Lmjyk.js +90 -0
- package/dist/task-runner-CbTwFA6k.js +1432 -0
- package/dist/{thread-context-Dyj1KWaY.js → thread-context-BkAZDTX2.js} +13 -11
- package/dist/thread-state-DhPndWi1.js +5625 -0
- package/dist/{validation-DxVNIxA0.js → validation-nIzMtAVJ.js} +1 -1
- package/dist/{task-queue-CaZffYaH.js → vercel-queue-hW90XzbG.js} +93 -172
- package/dist/{version-Cr7Z71yG.js → version-Brbtz4Qf.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{warmup-C6LOZ2d2.js → warmup-BDA5myRK.js} +5832 -4567
- package/dist/web-message-id-C6P83ans.js +10 -0
- package/dist/{worker-CUBtu1Li.js → worker-D63RcaVD.js} +20 -8
- package/migrations/0126_artifact_drop_public.sql +8 -0
- package/migrations/0127_artifact_path.sql +4 -0
- package/migrations/0128_artifact_path_index.sql +1 -0
- package/migrations/0129_review_item_answered_index.sql +1 -0
- package/migrations/0130_review_item_status_index.sql +1 -0
- package/migrations/0131_brief_outcome_status.sql +1 -0
- package/migrations/0132_brief_outcome_status_backfill.sql +7 -0
- package/migrations/0133_brief_created_at_index.sql +1 -0
- package/migrations/0134_slack_person_search_index.sql +1 -0
- package/migrations/0135_code_change_size.sql +3 -0
- package/migrations/0136_merge_conflict_notice_dismiss.sql +16 -0
- package/migrations/0137_inbox_snoozes.sql +27 -0
- package/migrations/0138_code_change_search_index.sql +2 -0
- package/migrations/0139_review_item_owner.sql +22 -0
- package/migrations/0140_review_item_owner_index.sql +1 -0
- package/migrations/0141_memory_core_adoption.sql +89 -0
- package/migrations/0142_memory_core_indexes.sql +17 -0
- package/migrations/0143_todos.sql +14 -0
- package/migrations/0144_inbox_items.sql +32 -0
- package/migrations/0145_todo_changed_by_agent.sql +1 -0
- package/migrations/0146_inbox_item_subject_title_parts.sql +1 -0
- package/migrations/0147_inbox_snooze_wake_reason.sql +1 -0
- package/migrations/0148_authorization_request_index.sql +1 -0
- package/migrations/0149_conversation_metadata.sql +10 -0
- package/migrations/0150_conversation_metadata_fill.sql +39 -0
- package/migrations/0151_conversation_search_index.sql +1 -0
- package/migrations/0152_inbox_item_legacy_automation_keys.sql +21 -0
- package/migrations/0153_artifact_expiry.sql +1 -0
- package/migrations/0154_artifact_permanent_sha_index.sql +1 -0
- package/migrations/0155_artifact_drop_public_sha_index.sql +3 -0
- package/migrations/0156_conversation_kind_lead.sql +6 -0
- package/migrations/0157_conversation_lead_actor_index.sql +1 -0
- package/migrations/meta/0126_snapshot.json +5488 -0
- package/migrations/meta/0127_snapshot.json +5519 -0
- package/migrations/meta/0128_snapshot.json +5519 -0
- package/migrations/meta/0129_snapshot.json +5547 -0
- package/migrations/meta/0130_snapshot.json +5563 -0
- package/migrations/meta/0131_snapshot.json +5569 -0
- package/migrations/meta/0132_snapshot.json +5569 -0
- package/migrations/meta/0133_snapshot.json +5590 -0
- package/migrations/meta/0134_snapshot.json +5606 -0
- package/migrations/meta/0135_snapshot.json +5624 -0
- package/migrations/meta/0136_snapshot.json +5624 -0
- package/migrations/meta/0137_snapshot.json +5864 -0
- package/migrations/meta/0138_snapshot.json +5894 -0
- package/migrations/meta/0139_snapshot.json +5898 -0
- package/migrations/meta/0140_snapshot.json +5919 -0
- package/migrations/meta/0141_snapshot.json +6429 -0
- package/migrations/meta/0142_snapshot.json +6457 -0
- package/migrations/meta/0143_snapshot.json +6434 -0
- package/migrations/meta/0144_snapshot.json +6434 -0
- package/migrations/meta/0145_snapshot.json +6440 -0
- package/migrations/meta/0146_snapshot.json +6446 -0
- package/migrations/meta/0147_snapshot.json +6452 -0
- package/migrations/meta/0148_snapshot.json +6474 -0
- package/migrations/meta/0149_snapshot.json +6490 -0
- package/migrations/meta/0150_snapshot.json +6490 -0
- package/migrations/meta/0151_snapshot.json +6505 -0
- package/migrations/meta/0152_snapshot.json +6505 -0
- package/migrations/meta/0153_snapshot.json +6511 -0
- package/migrations/meta/0154_snapshot.json +6533 -0
- package/migrations/meta/0155_snapshot.json +6511 -0
- package/migrations/meta/0156_snapshot.json +6511 -0
- package/migrations/meta/0157_snapshot.json +6527 -0
- package/migrations/meta/_journal.json +224 -0
- package/package.json +7 -8
- package/skills/design-automation-skill/SKILL.md +108 -0
- package/dist/briefs-DKxkoruh.js +0 -395
- package/dist/conversation-M9KZ5JxF.js +0 -1024
- package/dist/prompt-CaMyeCpA.js +0 -910
- package/dist/schedule-DWxZ3kja.js +0 -1146
- package/dist/store-D4FQ1Nml.js +0 -335
- package/dist/task-runner-Dm7BHbGp.js +0 -287
- package/dist/turn-session-routing-CD0BRCex.js +0 -263
- package/dist/turn-user-message-9IxeEv5v.js +0 -364
- package/dist/users-CaUAYMb3.js +0 -181
- package/dist/viewer-AHldghAD.js +0 -212
- package/dist/web-message-id-BT8Mg8LL.js +0 -418
|
@@ -883,6 +883,230 @@
|
|
|
883
883
|
"when": 1795061235342,
|
|
884
884
|
"tag": "0125_artifact_public_sha_index",
|
|
885
885
|
"breakpoints": true
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"idx": 126,
|
|
889
|
+
"version": "7",
|
|
890
|
+
"when": 1795066026189,
|
|
891
|
+
"tag": "0126_artifact_drop_public",
|
|
892
|
+
"breakpoints": true
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"idx": 127,
|
|
896
|
+
"version": "7",
|
|
897
|
+
"when": 1795066711486,
|
|
898
|
+
"tag": "0127_artifact_path",
|
|
899
|
+
"breakpoints": true
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"idx": 128,
|
|
903
|
+
"version": "7",
|
|
904
|
+
"when": 1795066724447,
|
|
905
|
+
"tag": "0128_artifact_path_index",
|
|
906
|
+
"breakpoints": true
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"idx": 129,
|
|
910
|
+
"version": "7",
|
|
911
|
+
"when": 1795079989863,
|
|
912
|
+
"tag": "0129_review_item_answered_index",
|
|
913
|
+
"breakpoints": true
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"idx": 130,
|
|
917
|
+
"version": "7",
|
|
918
|
+
"when": 1795082429315,
|
|
919
|
+
"tag": "0130_review_item_status_index",
|
|
920
|
+
"breakpoints": true
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"idx": 131,
|
|
924
|
+
"version": "7",
|
|
925
|
+
"when": 1795107367020,
|
|
926
|
+
"tag": "0131_brief_outcome_status",
|
|
927
|
+
"breakpoints": true
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"idx": 132,
|
|
931
|
+
"version": "7",
|
|
932
|
+
"when": 1795107382017,
|
|
933
|
+
"tag": "0132_brief_outcome_status_backfill",
|
|
934
|
+
"breakpoints": true
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"idx": 133,
|
|
938
|
+
"version": "7",
|
|
939
|
+
"when": 1795124236838,
|
|
940
|
+
"tag": "0133_brief_created_at_index",
|
|
941
|
+
"breakpoints": true
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"idx": 134,
|
|
945
|
+
"version": "7",
|
|
946
|
+
"when": 1795127096428,
|
|
947
|
+
"tag": "0134_slack_person_search_index",
|
|
948
|
+
"breakpoints": true
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"idx": 135,
|
|
952
|
+
"version": "7",
|
|
953
|
+
"when": 1795128922192,
|
|
954
|
+
"tag": "0135_code_change_size",
|
|
955
|
+
"breakpoints": true
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"idx": 136,
|
|
959
|
+
"version": "7",
|
|
960
|
+
"when": 1795130573919,
|
|
961
|
+
"tag": "0136_merge_conflict_notice_dismiss",
|
|
962
|
+
"breakpoints": true
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"idx": 137,
|
|
966
|
+
"version": "7",
|
|
967
|
+
"when": 1795132609157,
|
|
968
|
+
"tag": "0137_inbox_snoozes",
|
|
969
|
+
"breakpoints": true
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"idx": 138,
|
|
973
|
+
"version": "7",
|
|
974
|
+
"when": 1795167078477,
|
|
975
|
+
"tag": "0138_code_change_search_index",
|
|
976
|
+
"breakpoints": true
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"idx": 139,
|
|
980
|
+
"version": "7",
|
|
981
|
+
"when": 1795167292816,
|
|
982
|
+
"tag": "0139_review_item_owner",
|
|
983
|
+
"breakpoints": true
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"idx": 140,
|
|
987
|
+
"version": "7",
|
|
988
|
+
"when": 1795201014126,
|
|
989
|
+
"tag": "0140_review_item_owner_index",
|
|
990
|
+
"breakpoints": true
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"idx": 141,
|
|
994
|
+
"version": "7",
|
|
995
|
+
"when": 1795201074126,
|
|
996
|
+
"tag": "0141_memory_core_adoption",
|
|
997
|
+
"breakpoints": true
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"idx": 142,
|
|
1001
|
+
"version": "7",
|
|
1002
|
+
"when": 1795201134126,
|
|
1003
|
+
"tag": "0142_memory_core_indexes",
|
|
1004
|
+
"breakpoints": true
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"idx": 143,
|
|
1008
|
+
"version": "7",
|
|
1009
|
+
"when": 1795218746587,
|
|
1010
|
+
"tag": "0143_todos",
|
|
1011
|
+
"breakpoints": true
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"idx": 144,
|
|
1015
|
+
"version": "7",
|
|
1016
|
+
"when": 1795249396921,
|
|
1017
|
+
"tag": "0144_inbox_items",
|
|
1018
|
+
"breakpoints": true
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"idx": 145,
|
|
1022
|
+
"version": "7",
|
|
1023
|
+
"when": 1795283811414,
|
|
1024
|
+
"tag": "0145_todo_changed_by_agent",
|
|
1025
|
+
"breakpoints": true
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"idx": 146,
|
|
1029
|
+
"version": "7",
|
|
1030
|
+
"when": 1795286127229,
|
|
1031
|
+
"tag": "0146_inbox_item_subject_title_parts",
|
|
1032
|
+
"breakpoints": true
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"idx": 147,
|
|
1036
|
+
"version": "7",
|
|
1037
|
+
"when": 1795290103913,
|
|
1038
|
+
"tag": "0147_inbox_snooze_wake_reason",
|
|
1039
|
+
"breakpoints": true
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"idx": 148,
|
|
1043
|
+
"version": "7",
|
|
1044
|
+
"when": 1795299840612,
|
|
1045
|
+
"tag": "0148_authorization_request_index",
|
|
1046
|
+
"breakpoints": true
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"idx": 149,
|
|
1050
|
+
"version": "7",
|
|
1051
|
+
"when": 1795301948500,
|
|
1052
|
+
"tag": "0149_conversation_metadata",
|
|
1053
|
+
"breakpoints": true
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"idx": 150,
|
|
1057
|
+
"version": "7",
|
|
1058
|
+
"when": 1795301950736,
|
|
1059
|
+
"tag": "0150_conversation_metadata_fill",
|
|
1060
|
+
"breakpoints": true
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"idx": 151,
|
|
1064
|
+
"version": "7",
|
|
1065
|
+
"when": 1795301953076,
|
|
1066
|
+
"tag": "0151_conversation_search_index",
|
|
1067
|
+
"breakpoints": true
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"idx": 152,
|
|
1071
|
+
"version": "7",
|
|
1072
|
+
"when": 1795314540484,
|
|
1073
|
+
"tag": "0152_inbox_item_legacy_automation_keys",
|
|
1074
|
+
"breakpoints": true
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"idx": 153,
|
|
1078
|
+
"version": "7",
|
|
1079
|
+
"when": 1795315494234,
|
|
1080
|
+
"tag": "0153_artifact_expiry",
|
|
1081
|
+
"breakpoints": true
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"idx": 154,
|
|
1085
|
+
"version": "7",
|
|
1086
|
+
"when": 1795315495798,
|
|
1087
|
+
"tag": "0154_artifact_permanent_sha_index",
|
|
1088
|
+
"breakpoints": true
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"idx": 155,
|
|
1092
|
+
"version": "7",
|
|
1093
|
+
"when": 1795315497375,
|
|
1094
|
+
"tag": "0155_artifact_drop_public_sha_index",
|
|
1095
|
+
"breakpoints": true
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"idx": 156,
|
|
1099
|
+
"version": "7",
|
|
1100
|
+
"when": 1795315498375,
|
|
1101
|
+
"tag": "0156_conversation_kind_lead",
|
|
1102
|
+
"breakpoints": true
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"idx": 157,
|
|
1106
|
+
"version": "7",
|
|
1107
|
+
"when": 1795315499375,
|
|
1108
|
+
"tag": "0157_conversation_lead_actor_index",
|
|
1109
|
+
"breakpoints": true
|
|
886
1110
|
}
|
|
887
1111
|
]
|
|
888
1112
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.312.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@logtape/logtape": "^2.1.1",
|
|
65
65
|
"@modelcontextprotocol/sdk": "1.32.0",
|
|
66
66
|
"@neondatabase/serverless": "^1.1.0",
|
|
67
|
-
"@sentry/
|
|
68
|
-
"@sentry/junior-
|
|
67
|
+
"@sentry/api": "2.16.0",
|
|
68
|
+
"@sentry/junior-plugin-api": "0.312.0",
|
|
69
69
|
"@sentry/nitro": "11.14.0",
|
|
70
70
|
"@sentry/node": "11.14.0",
|
|
71
71
|
"@sentry/server-utils": "11.14.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"jose": "^6.2.3",
|
|
91
91
|
"just-bash": "3.0.1",
|
|
92
92
|
"node-html-markdown": "^2.0.0",
|
|
93
|
-
"p-limit": "^7.3.
|
|
93
|
+
"p-limit": "^7.3.3",
|
|
94
94
|
"parse5": "^7.3.0",
|
|
95
95
|
"pg": "^8.16.3",
|
|
96
96
|
"sharp": "^0.35.3",
|
|
@@ -116,10 +116,9 @@
|
|
|
116
116
|
"@emnapi/core": "^1.10.0",
|
|
117
117
|
"@emnapi/runtime": "^1.10.0",
|
|
118
118
|
"@hono/node-server": "2.1.3",
|
|
119
|
-
"@sentry/junior-github": "0.
|
|
120
|
-
"@sentry/junior-
|
|
121
|
-
"@sentry/junior-
|
|
122
|
-
"@sentry/junior-sentry": "0.310.0",
|
|
119
|
+
"@sentry/junior-github": "0.312.0",
|
|
120
|
+
"@sentry/junior-notion": "0.312.0",
|
|
121
|
+
"@sentry/junior-sentry": "0.312.0",
|
|
123
122
|
"@sentry/junior-testing": "0.0.0",
|
|
124
123
|
"@types/node": "^24.19.2",
|
|
125
124
|
"@types/pg": "^8.15.6",
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-automation-skill
|
|
3
|
+
description: Write, change, or review a skill that Automations run, or turn a long Automation instruction into one. Gives the required sections, the inputs and scope contract, checks for work already in progress, the report and empty result, words to leave out, validation, and naming. Use when asked to write or review such a skill, or to move an Automation instruction into a skill. Do not use to create or edit the Automation itself, or for a skill that only people run.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Design an automation skill
|
|
7
|
+
|
|
8
|
+
An automation skill does one kind of recurring work. An Automation runs it after a schedule or an event, and a person can run it by hand with the same result. The skill owns the work. The Automation owns when it runs, where the result goes, and the values for one setup.
|
|
9
|
+
|
|
10
|
+
When you turn an instruction into a skill, move its steps, defaults, and report format into the skill. The rest stays in the Automation context.
|
|
11
|
+
|
|
12
|
+
## Required sections
|
|
13
|
+
|
|
14
|
+
Use this order:
|
|
15
|
+
|
|
16
|
+
1. **Frontmatter description.** Say what one run produces, name both scopes, and write triggers as the work, such as "when a CI check fails and might be flaky". Do not name the caller.
|
|
17
|
+
2. **Purpose.** One or two sentences: what a run produces, and how often a run finds nothing.
|
|
18
|
+
3. **Inputs.** A table with the columns `Input` and `How to resolve it`.
|
|
19
|
+
4. **Rules.** Hard limits, then a **Side effects** list with each kind of write the skill can make.
|
|
20
|
+
5. **Workflow.** Numbered steps. The first step reads the target's own conventions: agent docs, contributing guide, and CI files.
|
|
21
|
+
6. **Report.** The format, and the one empty-result line.
|
|
22
|
+
|
|
23
|
+
Put only a brief for parallel workers or a long template in `references/`.
|
|
24
|
+
|
|
25
|
+
## Inputs and scope
|
|
26
|
+
|
|
27
|
+
- Give each input a row. Resolve it in this order: the value the request names; the value from the item the request points at, such as a failed run, a pull request, or an issue; the current checkout or a configured default. With none of these, stop and name the missing input.
|
|
28
|
+
- Give each row a default, and say that the request can change it.
|
|
29
|
+
- Values that change between setups are inputs: repos, projects, teams, thresholds, people to tag, and paths that need sign-off. Do not write them into the steps. A skill for one named system can keep its fixed values.
|
|
30
|
+
- Use two scopes:
|
|
31
|
+
- **One item**: the request points at one thing. Decide about that thing, and look back over a short window, such as 7 days, for the same problem.
|
|
32
|
+
- **Sweep**: all other requests. Check every item in a default window, such as the last 48 hours.
|
|
33
|
+
- The skill never asks whether a person or an Automation started it.
|
|
34
|
+
|
|
35
|
+
## Evidence
|
|
36
|
+
|
|
37
|
+
When a run acts on problems that it finds:
|
|
38
|
+
|
|
39
|
+
- Before you act on an item, prove that the evidence caused the problem. Compare with healthy cases of the same kind. Evidence that also shows in healthy cases is noise.
|
|
40
|
+
- Require repeats before a write. One occurrence is not enough unless the request says so.
|
|
41
|
+
- Group by cause, not by name. One cause in many places is one item. Two causes in one place are two items.
|
|
42
|
+
|
|
43
|
+
## Work already in progress
|
|
44
|
+
|
|
45
|
+
Runs can overlap, and people work on the same problems.
|
|
46
|
+
|
|
47
|
+
- Give each item a stable key that a search finds, such as a branch name `fix-<kind>/<slug>`, an issue title prefix, or a marker in a comment. Use the target's own convention when it has one.
|
|
48
|
+
- Before you act, search open pull requests, recent branches, open issues, and changes merged since the problem started. When something covers the item, skip it and keep the link for the report.
|
|
49
|
+
- Search again right before each write.
|
|
50
|
+
- Do not push to, rebase, or comment on work that someone else owns, unless the request says to.
|
|
51
|
+
|
|
52
|
+
## Parallel work
|
|
53
|
+
|
|
54
|
+
When items are independent, write a brief in `references/` that one worker can follow with no other context: the item key, the evidence with links, the suspect change, and the standard the result must meet. Write "when you can hand work to parallel workers", and do not name a tool. Do not report before every worker returns.
|
|
55
|
+
|
|
56
|
+
## Report
|
|
57
|
+
|
|
58
|
+
- The first line gives the outcome.
|
|
59
|
+
- Then one block for each item, with the same fields each time and a link for each claim.
|
|
60
|
+
- The empty result is exactly one line, such as `No new <items> in <scope> since <time>.`
|
|
61
|
+
- The skill does not say whether to post the report or the empty line. The Automation context says when to post nothing.
|
|
62
|
+
|
|
63
|
+
## Side effects
|
|
64
|
+
|
|
65
|
+
List each kind of write under **Side effects**, such as "opens pull requests in the target repo" or "comments on the issue that the request names". Action review does not read the skill. Until it does, the Automation context must restate the scope that a run needs, such as the repos it can write to or the teams it can read.
|
|
66
|
+
|
|
67
|
+
## Leave out
|
|
68
|
+
|
|
69
|
+
Do not put these in `SKILL.md` or `references/`:
|
|
70
|
+
|
|
71
|
+
- Schedules, Destinations, and where to post.
|
|
72
|
+
- How a run ends, or which tool ends it.
|
|
73
|
+
- Different steps for an Automation run and a request by hand, and columns such as "Automation run" and "Manual request".
|
|
74
|
+
- Automation instruction templates or setup steps.
|
|
75
|
+
- Runtime words:
|
|
76
|
+
|
|
77
|
+
| Do not write | Write |
|
|
78
|
+
| --- | --- |
|
|
79
|
+
| `reply`, `noReply`, `reportBlocked`, "Ending a run" | the report, or no report |
|
|
80
|
+
| `spawnAgent`, `messageAgent`, Task, Thread | parallel workers |
|
|
81
|
+
| `addInboxItem`, Inbox item, review item | ask a person |
|
|
82
|
+
| Automation creator, Automation run, Turn, Destination, outcome | the requester, a run |
|
|
83
|
+
| `createAutomation`, `watchEvents`, `loadSkill`, how the skill is invoked | nothing |
|
|
84
|
+
| "when a scheduled task names this skill" | the work that starts it |
|
|
85
|
+
| Guardian, action review | the scope in **Side effects** |
|
|
86
|
+
|
|
87
|
+
## Validate
|
|
88
|
+
|
|
89
|
+
You do not need a spec file. Do these steps:
|
|
90
|
+
|
|
91
|
+
1. Run `junior check` and fix each error.
|
|
92
|
+
2. Search the skill for each word in **Leave out**.
|
|
93
|
+
3. Run the skill by hand in a local agent turn, such as `junior chat -p "<request>"`, on four cases:
|
|
94
|
+
- an item that needs action
|
|
95
|
+
- an item that needs no action
|
|
96
|
+
- a sweep window with nothing in it: expect only the empty line
|
|
97
|
+
- an item with work already in progress: expect a skip with its link
|
|
98
|
+
|
|
99
|
+
Keep the replies and tool calls as evidence for review.
|
|
100
|
+
4. When the skill replaces an instruction, compare its decisions with the last runs of the old Automation on the same items.
|
|
101
|
+
5. Switch the Automation to the skill with a short context, and read its first runs.
|
|
102
|
+
|
|
103
|
+
## Name
|
|
104
|
+
|
|
105
|
+
- Use `automate-<outcome>` when an Automation is the main caller and the skill works on any repo or project. `<outcome>` is what a run produces, as a plural noun: `automate-flaky-test-fixes`, `automate-dependency-updates`.
|
|
106
|
+
- A skill for one named system keeps a domain name.
|
|
107
|
+
- Do not use caller or schedule words, such as `-daily`, `-sweep`, `-responder`, or `-cron`.
|
|
108
|
+
- The directory name is the same as `name`.
|