nowaikit 2.6.0 → 3.1.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.
Files changed (153) hide show
  1. package/LICENSE +10 -10
  2. package/README.md +8 -6
  3. package/desktop/renderer/dist/assets/index-C_5k3daB.js +49 -0
  4. package/desktop/renderer/dist/index.html +1 -1
  5. package/desktop/serve.cjs +46 -10
  6. package/dist/cli/config-store.d.ts +22 -0
  7. package/dist/cli/config-store.d.ts.map +1 -1
  8. package/dist/cli/config-store.js +44 -1
  9. package/dist/cli/config-store.js.map +1 -1
  10. package/dist/cli/index.js +104 -4
  11. package/dist/cli/index.js.map +1 -1
  12. package/dist/cli/setup.d.ts.map +1 -1
  13. package/dist/cli/setup.js +486 -49
  14. package/dist/cli/setup.js.map +1 -1
  15. package/dist/cli/shortcuts.d.ts +2 -0
  16. package/dist/cli/shortcuts.d.ts.map +1 -0
  17. package/dist/cli/shortcuts.js +122 -0
  18. package/dist/cli/shortcuts.js.map +1 -0
  19. package/dist/direct/executor.d.ts +28 -0
  20. package/dist/direct/executor.d.ts.map +1 -0
  21. package/dist/direct/executor.js +228 -0
  22. package/dist/direct/executor.js.map +1 -0
  23. package/dist/direct/llm-client.d.ts +32 -0
  24. package/dist/direct/llm-client.d.ts.map +1 -0
  25. package/dist/direct/llm-client.js +122 -0
  26. package/dist/direct/llm-client.js.map +1 -0
  27. package/dist/prompts/capabilities/build-app.d.ts +4 -0
  28. package/dist/prompts/capabilities/build-app.d.ts.map +1 -0
  29. package/dist/prompts/capabilities/build-app.js +238 -0
  30. package/dist/prompts/capabilities/build-app.js.map +1 -0
  31. package/dist/prompts/capabilities/build-business-rule.d.ts +4 -0
  32. package/dist/prompts/capabilities/build-business-rule.d.ts.map +1 -0
  33. package/dist/prompts/capabilities/build-business-rule.js +93 -0
  34. package/dist/prompts/capabilities/build-business-rule.js.map +1 -0
  35. package/dist/prompts/capabilities/build-catalog.d.ts +4 -0
  36. package/dist/prompts/capabilities/build-catalog.d.ts.map +1 -0
  37. package/dist/prompts/capabilities/build-catalog.js +350 -0
  38. package/dist/prompts/capabilities/build-catalog.js.map +1 -0
  39. package/dist/prompts/capabilities/build-client-script.d.ts +4 -0
  40. package/dist/prompts/capabilities/build-client-script.d.ts.map +1 -0
  41. package/dist/prompts/capabilities/build-client-script.js +157 -0
  42. package/dist/prompts/capabilities/build-client-script.js.map +1 -0
  43. package/dist/prompts/capabilities/build-flow.d.ts +4 -0
  44. package/dist/prompts/capabilities/build-flow.d.ts.map +1 -0
  45. package/dist/prompts/capabilities/build-flow.js +243 -0
  46. package/dist/prompts/capabilities/build-flow.js.map +1 -0
  47. package/dist/prompts/capabilities/build-portal.d.ts +4 -0
  48. package/dist/prompts/capabilities/build-portal.d.ts.map +1 -0
  49. package/dist/prompts/capabilities/build-portal.js +250 -0
  50. package/dist/prompts/capabilities/build-portal.js.map +1 -0
  51. package/dist/prompts/capabilities/build-rest-api.d.ts +4 -0
  52. package/dist/prompts/capabilities/build-rest-api.d.ts.map +1 -0
  53. package/dist/prompts/capabilities/build-rest-api.js +293 -0
  54. package/dist/prompts/capabilities/build-rest-api.js.map +1 -0
  55. package/dist/prompts/capabilities/build-test-plan.d.ts +4 -0
  56. package/dist/prompts/capabilities/build-test-plan.d.ts.map +1 -0
  57. package/dist/prompts/capabilities/build-test-plan.js +162 -0
  58. package/dist/prompts/capabilities/build-test-plan.js.map +1 -0
  59. package/dist/prompts/capabilities/build-uib.d.ts +4 -0
  60. package/dist/prompts/capabilities/build-uib.d.ts.map +1 -0
  61. package/dist/prompts/capabilities/build-uib.js +309 -0
  62. package/dist/prompts/capabilities/build-uib.js.map +1 -0
  63. package/dist/prompts/capabilities/docs-app.d.ts +4 -0
  64. package/dist/prompts/capabilities/docs-app.d.ts.map +1 -0
  65. package/dist/prompts/capabilities/docs-app.js +234 -0
  66. package/dist/prompts/capabilities/docs-app.js.map +1 -0
  67. package/dist/prompts/capabilities/docs-release.d.ts +4 -0
  68. package/dist/prompts/capabilities/docs-release.d.ts.map +1 -0
  69. package/dist/prompts/capabilities/docs-release.js +197 -0
  70. package/dist/prompts/capabilities/docs-release.js.map +1 -0
  71. package/dist/prompts/capabilities/docs-runbook.d.ts +4 -0
  72. package/dist/prompts/capabilities/docs-runbook.d.ts.map +1 -0
  73. package/dist/prompts/capabilities/docs-runbook.js +223 -0
  74. package/dist/prompts/capabilities/docs-runbook.js.map +1 -0
  75. package/dist/prompts/capabilities/docs-script.d.ts +4 -0
  76. package/dist/prompts/capabilities/docs-script.d.ts.map +1 -0
  77. package/dist/prompts/capabilities/docs-script.js +242 -0
  78. package/dist/prompts/capabilities/docs-script.js.map +1 -0
  79. package/dist/prompts/capabilities/ops-deploy.d.ts +4 -0
  80. package/dist/prompts/capabilities/ops-deploy.d.ts.map +1 -0
  81. package/dist/prompts/capabilities/ops-deploy.js +193 -0
  82. package/dist/prompts/capabilities/ops-deploy.js.map +1 -0
  83. package/dist/prompts/capabilities/ops-risk.d.ts +4 -0
  84. package/dist/prompts/capabilities/ops-risk.d.ts.map +1 -0
  85. package/dist/prompts/capabilities/ops-risk.js +227 -0
  86. package/dist/prompts/capabilities/ops-risk.js.map +1 -0
  87. package/dist/prompts/capabilities/ops-triage.d.ts +4 -0
  88. package/dist/prompts/capabilities/ops-triage.d.ts.map +1 -0
  89. package/dist/prompts/capabilities/ops-triage.js +183 -0
  90. package/dist/prompts/capabilities/ops-triage.js.map +1 -0
  91. package/dist/prompts/capabilities/review-acls.d.ts +4 -0
  92. package/dist/prompts/capabilities/review-acls.d.ts.map +1 -0
  93. package/dist/prompts/capabilities/review-acls.js +142 -0
  94. package/dist/prompts/capabilities/review-acls.js.map +1 -0
  95. package/dist/prompts/capabilities/review-code.d.ts +4 -0
  96. package/dist/prompts/capabilities/review-code.d.ts.map +1 -0
  97. package/dist/prompts/capabilities/review-code.js +155 -0
  98. package/dist/prompts/capabilities/review-code.js.map +1 -0
  99. package/dist/prompts/capabilities/review-flows.d.ts +4 -0
  100. package/dist/prompts/capabilities/review-flows.d.ts.map +1 -0
  101. package/dist/prompts/capabilities/review-flows.js +413 -0
  102. package/dist/prompts/capabilities/review-flows.js.map +1 -0
  103. package/dist/prompts/capabilities/review-scripts.d.ts +4 -0
  104. package/dist/prompts/capabilities/review-scripts.d.ts.map +1 -0
  105. package/dist/prompts/capabilities/review-scripts.js +160 -0
  106. package/dist/prompts/capabilities/review-scripts.js.map +1 -0
  107. package/dist/prompts/capabilities/scan-automation.d.ts +4 -0
  108. package/dist/prompts/capabilities/scan-automation.d.ts.map +1 -0
  109. package/dist/prompts/capabilities/scan-automation.js +449 -0
  110. package/dist/prompts/capabilities/scan-automation.js.map +1 -0
  111. package/dist/prompts/capabilities/scan-cmdb.d.ts +4 -0
  112. package/dist/prompts/capabilities/scan-cmdb.d.ts.map +1 -0
  113. package/dist/prompts/capabilities/scan-cmdb.js +450 -0
  114. package/dist/prompts/capabilities/scan-cmdb.js.map +1 -0
  115. package/dist/prompts/capabilities/scan-debt.d.ts +4 -0
  116. package/dist/prompts/capabilities/scan-debt.d.ts.map +1 -0
  117. package/dist/prompts/capabilities/scan-debt.js +287 -0
  118. package/dist/prompts/capabilities/scan-debt.js.map +1 -0
  119. package/dist/prompts/capabilities/scan-health.d.ts +4 -0
  120. package/dist/prompts/capabilities/scan-health.d.ts.map +1 -0
  121. package/dist/prompts/capabilities/scan-health.js +235 -0
  122. package/dist/prompts/capabilities/scan-health.js.map +1 -0
  123. package/dist/prompts/capabilities/scan-security.d.ts +4 -0
  124. package/dist/prompts/capabilities/scan-security.d.ts.map +1 -0
  125. package/dist/prompts/capabilities/scan-security.js +370 -0
  126. package/dist/prompts/capabilities/scan-security.js.map +1 -0
  127. package/dist/prompts/capabilities/scan-upgrade.d.ts +4 -0
  128. package/dist/prompts/capabilities/scan-upgrade.d.ts.map +1 -0
  129. package/dist/prompts/capabilities/scan-upgrade.js +327 -0
  130. package/dist/prompts/capabilities/scan-upgrade.js.map +1 -0
  131. package/dist/prompts/index.d.ts +24 -2
  132. package/dist/prompts/index.d.ts.map +1 -1
  133. package/dist/prompts/index.js +197 -14
  134. package/dist/prompts/index.js.map +1 -1
  135. package/dist/prompts/knowledge.d.ts +10 -0
  136. package/dist/prompts/knowledge.d.ts.map +1 -0
  137. package/dist/prompts/knowledge.js +604 -0
  138. package/dist/prompts/knowledge.js.map +1 -0
  139. package/dist/prompts/types.d.ts +38 -0
  140. package/dist/prompts/types.d.ts.map +1 -0
  141. package/dist/prompts/types.js +8 -0
  142. package/dist/prompts/types.js.map +1 -0
  143. package/dist/sdk/index.d.ts +49 -0
  144. package/dist/sdk/index.d.ts.map +1 -0
  145. package/dist/sdk/index.js +53 -0
  146. package/dist/sdk/index.js.map +1 -0
  147. package/dist/server.js +3 -3
  148. package/dist/server.js.map +1 -1
  149. package/dist/servicenow/client.js +1 -1
  150. package/dist/servicenow/client.js.map +1 -1
  151. package/dist/tools-manifest.json +565 -0
  152. package/package.json +30 -5
  153. package/desktop/renderer/dist/assets/index-B-6BYnh8.js +0 -49
@@ -0,0 +1,227 @@
1
+ const capability = {
2
+ name: 'ops-risk',
3
+ title: 'Change Risk Assessment',
4
+ description: 'Change risk scoring, conflict detection, CAB preparation, and rollback planning',
5
+ category: 'ops',
6
+ arguments: [
7
+ {
8
+ name: 'change',
9
+ description: 'change number e.g. CHG0012345 or describe the planned change',
10
+ required: true,
11
+ },
12
+ {
13
+ name: 'action',
14
+ description: 'assess, prepare-cab, check-conflicts, plan-rollback. Default: assess',
15
+ required: false,
16
+ },
17
+ ],
18
+ recommendedTools: [
19
+ 'get_change_request',
20
+ 'update_change_request',
21
+ 'list_change_requests',
22
+ 'submit_change_for_approval',
23
+ 'search_cmdb_ci',
24
+ 'list_relationships',
25
+ 'ml_predict_change_risk',
26
+ 'query_records',
27
+ 'add_work_note',
28
+ ],
29
+ buildPrompt(args) {
30
+ const change = args?.change ?? 'Assess the change risk';
31
+ const action = args?.action ?? 'assess';
32
+ return [
33
+ {
34
+ role: 'assistant',
35
+ content: {
36
+ type: 'text',
37
+ text: [
38
+ '# Capability: Change Risk Assessment',
39
+ '',
40
+ `**Action:** ${action}`,
41
+ '',
42
+ 'I am a **change risk assessment specialist**. I evaluate change requests for risk,',
43
+ 'detect conflicts, prepare CAB documentation, and create rollback plans.',
44
+ '',
45
+ '## Risk Scoring Matrix',
46
+ '',
47
+ 'Each change is scored across five dimensions on a 1-5 scale:',
48
+ '',
49
+ '### Dimension 1 — Scope',
50
+ '',
51
+ '| Score | Criteria |',
52
+ '|-------|----------|',
53
+ '| 1 | Single CI, no dependencies, config-only |',
54
+ '| 2 | Single CI with minor dependencies, simple script changes |',
55
+ '| 3 | Multiple CIs in same service, moderate script changes |',
56
+ '| 4 | Multiple services, schema changes, new integrations |',
57
+ '| 5 | Platform-wide impact, core table changes, plugin activation |',
58
+ '',
59
+ '### Dimension 2 — History',
60
+ '',
61
+ '| Score | Criteria |',
62
+ '|-------|----------|',
63
+ '| 1 | Change team has 100% success rate on similar changes |',
64
+ '| 2 | Team has > 90% success rate, minor issues in past |',
65
+ '| 3 | Team has 75-90% success rate, some rollbacks |',
66
+ '| 4 | Team has < 75% success rate or first-time change type |',
67
+ '| 5 | Previous failed changes on same CI, or high-risk team history |',
68
+ '',
69
+ '### Dimension 3 — Complexity',
70
+ '',
71
+ '| Score | Criteria |',
72
+ '|-------|----------|',
73
+ '| 1 | Property change, UI-only update |',
74
+ '| 2 | Single business rule or client script update |',
75
+ '| 3 | Multiple script changes, workflow/flow modifications |',
76
+ '| 4 | New integrations, data migrations, ACL restructuring |',
77
+ '| 5 | Architecture changes, platform upgrade, multi-system coordination |',
78
+ '',
79
+ '### Dimension 4 — Reversibility',
80
+ '',
81
+ '| Score | Criteria |',
82
+ '|-------|----------|',
83
+ '| 1 | Fully reversible via update set rollback |',
84
+ '| 2 | Reversible with minor manual steps |',
85
+ '| 3 | Partially reversible — some data changes persist |',
86
+ '| 4 | Difficult to reverse — schema changes, data transformations |',
87
+ '| 5 | Irreversible — data deletion, third-party system changes |',
88
+ '',
89
+ '### Dimension 5 — Window',
90
+ '',
91
+ '| Score | Criteria |',
92
+ '|-------|----------|',
93
+ '| 1 | Scheduled maintenance window, low-traffic period |',
94
+ '| 2 | Off-peak hours, adequate buffer time |',
95
+ '| 3 | Business hours but low-impact period |',
96
+ '| 4 | Peak hours or limited rollback window |',
97
+ '| 5 | During critical business period, no rollback window, or emergency |',
98
+ '',
99
+ '### Scoring Calculation',
100
+ '',
101
+ '```',
102
+ 'Total Risk Score = (Scope + History + Complexity + Reversibility + Window) / 5',
103
+ '',
104
+ 'Risk Level:',
105
+ ' 1.0 - 2.0 = LOW — Standard approval, minimal oversight',
106
+ ' 2.1 - 3.0 = MODERATE — Peer review required, monitoring post-deploy',
107
+ ' 3.1 - 4.0 = HIGH — CAB approval required, dedicated rollback team',
108
+ ' 4.1 - 5.0 = CRITICAL — Executive approval, war room during implementation',
109
+ '```',
110
+ '',
111
+ '## Conflict Detection',
112
+ '',
113
+ 'Use `list_change_requests`, `search_cmdb_ci`, and `query_records` to detect:',
114
+ '',
115
+ '### Overlapping Windows',
116
+ '- Other changes scheduled within the same maintenance window',
117
+ '- Changes to the same CI or related CIs at the same time',
118
+ '- Changes by the same team overlapping (resource conflict)',
119
+ '',
120
+ '### Same CI Conflicts',
121
+ '- Multiple changes targeting the same configuration item',
122
+ '- Changes to upstream/downstream dependencies of the target CI',
123
+ '- Recent changes to the same CI that are still stabilizing (< 48h)',
124
+ '',
125
+ '### Blackout Periods',
126
+ '- Corporate freeze windows (end-of-quarter, holiday periods)',
127
+ '- Scheduled maintenance by platform vendor',
128
+ '- Planned events (product launches, high-traffic events)',
129
+ '- Other team-specific blackout windows',
130
+ '',
131
+ '## CAB Document Generation',
132
+ '',
133
+ 'When action is `prepare-cab`, generate a complete CAB submission:',
134
+ '',
135
+ '```',
136
+ 'CAB SUBMISSION DOCUMENT',
137
+ '=======================',
138
+ 'Change: [CHG number]',
139
+ 'Requestor: [name] | Group: [assignment group]',
140
+ 'Type: [standard/normal/emergency]',
141
+ '',
142
+ 'SUMMARY',
143
+ ' [2-3 sentence business justification]',
144
+ '',
145
+ 'RISK ASSESSMENT',
146
+ ' Scope: [score/5] | History: [score/5] | Complexity: [score/5]',
147
+ ' Reversibility: [score/5] | Window: [score/5]',
148
+ ' Overall Risk: [level] ([score]/5)',
149
+ ' ML Prediction: [if available from ml_predict_change_risk]',
150
+ '',
151
+ 'IMPACT ANALYSIS',
152
+ ' Affected CIs: [list]',
153
+ ' Affected Services: [list with criticality]',
154
+ ' User Impact: [estimated users/duration]',
155
+ ' Downtime: [expected duration]',
156
+ '',
157
+ 'IMPLEMENTATION PLAN',
158
+ ' 1. [step with estimated duration]',
159
+ ' 2. [step with estimated duration]',
160
+ ' ...',
161
+ ' Total Duration: [sum]',
162
+ '',
163
+ 'BACKOUT PLAN',
164
+ ' Trigger: [conditions that trigger rollback]',
165
+ ' Steps: [numbered rollback steps]',
166
+ ' Duration: [estimated rollback time]',
167
+ ' Verification: [how to confirm rollback success]',
168
+ '',
169
+ 'TEST PLAN',
170
+ ' Pre-change: [verification steps]',
171
+ ' Post-change: [validation steps]',
172
+ ' ATF Suites: [list of automated tests]',
173
+ '',
174
+ 'CONFLICT CHECK',
175
+ ' Overlapping changes: [list or "none detected"]',
176
+ ' Blackout violations: [list or "none"]',
177
+ ' CI conflicts: [list or "none"]',
178
+ '',
179
+ 'APPROVAL CHAIN',
180
+ ' Technical: [approver]',
181
+ ' Business: [approver]',
182
+ ' CAB: [scheduled date]',
183
+ '```',
184
+ '',
185
+ '## Rollback Planning',
186
+ '',
187
+ 'When action is `plan-rollback`, generate a detailed rollback plan:',
188
+ '',
189
+ '- **Rollback triggers** — specific conditions that mandate a rollback',
190
+ '- **Decision authority** — who can authorize the rollback',
191
+ '- **Pre-rollback checklist** — data backups, user notification, etc.',
192
+ '- **Rollback steps** — ordered list with estimated duration per step',
193
+ '- **Verification steps** — how to confirm the system is back to baseline',
194
+ '- **Communication plan** — who to notify at each stage',
195
+ '- **Partial rollback options** — if only some changes need reverting',
196
+ '',
197
+ '## Tools I Use',
198
+ '',
199
+ '| Tool | Purpose |',
200
+ '|------|---------|',
201
+ '| `get_change_request` | Fetch change record details |',
202
+ '| `update_change_request` | Update risk scores, add plan details |',
203
+ '| `list_change_requests` | Find overlapping/conflicting changes |',
204
+ '| `submit_change_for_approval` | Submit completed assessment for approval |',
205
+ '| `search_cmdb_ci` / `list_relationships` | Map affected CIs and dependencies |',
206
+ '| `ml_predict_change_risk` | Get ML-based risk prediction |',
207
+ '| `query_records` | Fetch historical change data, blackout windows |',
208
+ '| `add_work_note` | Document assessment findings on the change |',
209
+ '',
210
+ '---',
211
+ '',
212
+ `Starting change risk assessment with action: **${action}**.`,
213
+ ].join('\n'),
214
+ },
215
+ },
216
+ {
217
+ role: 'user',
218
+ content: {
219
+ type: 'text',
220
+ text: change,
221
+ },
222
+ },
223
+ ];
224
+ },
225
+ };
226
+ export default capability;
227
+ //# sourceMappingURL=ops-risk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ops-risk.js","sourceRoot":"","sources":["../../../src/prompts/capabilities/ops-risk.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAyB;IACvC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,iFAAiF;IACnF,QAAQ,EAAE,KAAK;IAEf,SAAS,EAAE;QACT;YACE,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,IAAI;SACf;QACD;YACE,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,sEAAsE;YACxE,QAAQ,EAAE,KAAK;SAChB;KACF;IAED,gBAAgB,EAAE;QAChB,oBAAoB;QACpB,uBAAuB;QACvB,sBAAsB;QACtB,4BAA4B;QAC5B,gBAAgB;QAChB,oBAAoB;QACpB,wBAAwB;QACxB,eAAe;QACf,eAAe;KAChB;IAED,WAAW,CAAC,IAAI;QACd,MAAM,MAAM,GAAG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uEAAuE;wBACvE,2DAA2D;wBAC3D,sEAAsE;wBACtE,sEAAsE;wBACtE,0EAA0E;wBAC1E,wDAAwD;wBACxD,sEAAsE;wBACtE,EAAE;wBACF,gBAAgB;wBAChB,EAAE;wBACF,oBAAoB;wBACpB,oBAAoB;wBACpB,wDAAwD;wBACxD,oEAAoE;wBACpE,mEAAmE;wBACnE,6EAA6E;wBAC7E,iFAAiF;wBACjF,6DAA6D;wBAC7D,sEAAsE;wBACtE,kEAAkE;wBAClE,EAAE;wBACF,KAAK;wBACL,EAAE;wBACF,kDAAkD,MAAM,KAAK;qBAC9D,CAAC,IAAI,CAAC,IAAI,CAAC;iBACb;aACF;YACD;gBACE,IAAI,EAAE,MAAe;gBACrB,OAAO,EAAE;oBACP,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,MAAM;iBACb;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CapabilityDefinition } from '../types.js';
2
+ declare const capability: CapabilityDefinition;
3
+ export default capability;
4
+ //# sourceMappingURL=ops-triage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ops-triage.d.ts","sourceRoot":"","sources":["../../../src/prompts/capabilities/ops-triage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,QAAA,MAAM,UAAU,EAAE,oBA2LjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,183 @@
1
+ const capability = {
2
+ name: 'ops-triage',
3
+ title: 'Incident Triage',
4
+ description: 'P1/P2 incident triage — fetch details, assess impact via CMDB, check SLAs, search KB, suggest resolution, draft communications',
5
+ category: 'ops',
6
+ arguments: [
7
+ {
8
+ name: 'incident',
9
+ description: 'incident number e.g. INC0012345 or describe the situation',
10
+ required: true,
11
+ },
12
+ {
13
+ name: 'action',
14
+ description: 'triage, escalate, communicate, review. Default: triage',
15
+ required: false,
16
+ },
17
+ ],
18
+ recommendedTools: [
19
+ 'get_incident',
20
+ 'update_incident',
21
+ 'add_work_note',
22
+ 'add_comment',
23
+ 'query_records',
24
+ 'search_knowledge',
25
+ 'get_sla_details',
26
+ 'list_active_slas',
27
+ 'search_cmdb_ci',
28
+ 'get_cmdb_ci',
29
+ 'list_relationships',
30
+ 'create_change_request',
31
+ ],
32
+ buildPrompt(args) {
33
+ const incident = args?.incident ?? 'Triage the incident';
34
+ const action = args?.action ?? 'triage';
35
+ return [
36
+ {
37
+ role: 'assistant',
38
+ content: {
39
+ type: 'text',
40
+ text: [
41
+ '# Capability: Incident Triage',
42
+ '',
43
+ `**Action:** ${action}`,
44
+ '',
45
+ 'I am a **P1/P2 incident triage specialist**. I fetch incident details, assess impact',
46
+ 'via the CMDB, check SLA compliance, search the knowledge base for known resolutions,',
47
+ 'and draft stakeholder communications.',
48
+ '',
49
+ '## Triage Workflow',
50
+ '',
51
+ '### Step 1 — Fetch Incident Details',
52
+ '',
53
+ 'Use `get_incident` to retrieve the full incident record:',
54
+ '- Number, short description, detailed description',
55
+ '- Priority, impact, urgency, state',
56
+ '- Assignment group, assigned to',
57
+ '- Configuration item, business service',
58
+ '- Caller, opened at, timeline',
59
+ '- Related records (child incidents, problem, change)',
60
+ '',
61
+ '### Step 2 — Assess Impact via CMDB',
62
+ '',
63
+ 'Use `search_cmdb_ci`, `get_cmdb_ci`, and `list_relationships` to map the blast radius:',
64
+ '- Identify the affected CI and its class/type',
65
+ '- Map upstream dependencies (what depends on this CI)',
66
+ '- Map downstream dependencies (what this CI depends on)',
67
+ '- Identify affected business services and their criticality',
68
+ '- Determine the number of users/customers potentially impacted',
69
+ '- Check CI operational status and recent changes',
70
+ '',
71
+ '### Step 3 — Check SLAs',
72
+ '',
73
+ 'Use `get_sla_details` and `list_active_slas` to evaluate:',
74
+ '- Active SLA definitions attached to this incident',
75
+ '- Time elapsed vs. time remaining for each SLA stage (response, resolution)',
76
+ '- Whether any SLA is breached or at risk of breach',
77
+ '- Escalation actions triggered or pending',
78
+ '- Business hours vs. 24/7 SLA calculation',
79
+ '',
80
+ '### Step 4 — Search Knowledge Base',
81
+ '',
82
+ 'Use `search_knowledge` to find relevant articles:',
83
+ '- Search by CI, error message, symptoms, category',
84
+ '- Look for known error articles with workarounds',
85
+ '- Check for recent similar incident resolutions',
86
+ '- Identify matching problem records',
87
+ '',
88
+ '### Step 5 — Check Recent Changes',
89
+ '',
90
+ 'Use `query_records` on `change_request` to find recent changes:',
91
+ '- Changes to the affected CI in the last 7 days',
92
+ '- Changes to upstream/downstream CIs',
93
+ '- Failed or backed-out changes',
94
+ '- Scheduled changes in flight during the incident window',
95
+ '- Correlate change implementation time with incident start time',
96
+ '',
97
+ '### Step 6 — Suggest Resolution',
98
+ '',
99
+ 'Based on gathered evidence, provide:',
100
+ '- **Root cause hypothesis** — most likely cause ranked by evidence strength',
101
+ '- **Immediate remediation** — steps to restore service now',
102
+ '- **Workaround** — temporary mitigation if full fix needs a change window',
103
+ '- **Permanent fix** — long-term resolution with change request if needed',
104
+ '- **Similar past incidents** — how they were resolved',
105
+ '',
106
+ '### Step 7 — Draft Communications',
107
+ '',
108
+ 'Generate two communication drafts:',
109
+ '',
110
+ '**Stakeholder Communication (non-technical):**',
111
+ '- Affected service and business impact',
112
+ '- Current status and ETA for resolution',
113
+ '- Workaround availability',
114
+ '- Next update time',
115
+ '',
116
+ '**Technical Communication (engineering):**',
117
+ '- Affected CIs and dependency chain',
118
+ '- Error details and diagnostic data',
119
+ '- Actions taken and current hypothesis',
120
+ '- Requested assistance or escalation',
121
+ '',
122
+ '### Step 8 — Execute Actions',
123
+ '',
124
+ 'Based on the action parameter, execute:',
125
+ '',
126
+ '| Action | What Happens |',
127
+ '|--------|-------------|',
128
+ '| **triage** | Full analysis (steps 1-7), add work notes with findings |',
129
+ '| **escalate** | Triage + update priority/assignment + notify escalation contacts |',
130
+ '| **communicate** | Generate stakeholder + technical comms, add as comments |',
131
+ '| **review** | Post-incident review — timeline, actions taken, lessons learned |',
132
+ '',
133
+ 'Use `update_incident` to update fields, `add_work_note` for internal notes,',
134
+ 'and `add_comment` for customer-visible updates.',
135
+ '',
136
+ '## Output Format',
137
+ '',
138
+ '```',
139
+ 'INCIDENT TRIAGE REPORT',
140
+ '======================',
141
+ 'Incident: [number] | Priority: [P1/P2/P3] | State: [state]',
142
+ '',
143
+ 'IMPACT ASSESSMENT',
144
+ ' Affected CI: [ci_name] ([ci_class])',
145
+ ' Business Services: [list]',
146
+ ' Upstream Dependencies: [count] CIs',
147
+ ' Downstream Dependants: [count] CIs',
148
+ ' Estimated User Impact: [number] users',
149
+ '',
150
+ 'SLA STATUS',
151
+ ' Response SLA: [elapsed/total] — [status]',
152
+ ' Resolution SLA: [elapsed/total] — [status]',
153
+ '',
154
+ 'ANALYSIS',
155
+ ' Root Cause Hypothesis: [description]',
156
+ ' Evidence: [supporting data]',
157
+ ' Related Changes: [CHG numbers]',
158
+ ' KB Matches: [article numbers]',
159
+ '',
160
+ 'RECOMMENDED ACTIONS',
161
+ ' 1. [immediate action]',
162
+ ' 2. [follow-up action]',
163
+ ' ...',
164
+ '```',
165
+ '',
166
+ '---',
167
+ '',
168
+ `Starting incident triage with action: **${action}**.`,
169
+ ].join('\n'),
170
+ },
171
+ },
172
+ {
173
+ role: 'user',
174
+ content: {
175
+ type: 'text',
176
+ text: incident,
177
+ },
178
+ },
179
+ ];
180
+ },
181
+ };
182
+ export default capability;
183
+ //# sourceMappingURL=ops-triage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ops-triage.js","sourceRoot":"","sources":["../../../src/prompts/capabilities/ops-triage.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAyB;IACvC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,iBAAiB;IACxB,WAAW,EACT,gIAAgI;IAClI,QAAQ,EAAE,KAAK;IAEf,SAAS,EAAE;QACT;YACE,IAAI,EAAE,UAAU;YAChB,WAAW,EACT,2DAA2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A2C,MAAM,KAAK;qBACvD,CAAC,IAAI,CAAC,IAAI,CAAC;iBACb;aACF;YACD;gBACE,IAAI,EAAE,MAAe;gBACrB,OAAO,EAAE;oBACP,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,QAAQ;iBACf;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CapabilityDefinition } from '../types.js';
2
+ declare const capability: CapabilityDefinition;
3
+ export default capability;
4
+ //# sourceMappingURL=review-acls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review-acls.d.ts","sourceRoot":"","sources":["../../../src/prompts/capabilities/review-acls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,QAAA,MAAM,UAAU,EAAE,oBA+IjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,142 @@
1
+ const capability = {
2
+ name: 'review-acls',
3
+ title: 'ACL Coverage Analysis',
4
+ description: 'Analyze ACL coverage across all tables and fields — find gaps, conflicts, overly permissive rules',
5
+ category: 'review',
6
+ arguments: [
7
+ {
8
+ name: 'table',
9
+ description: 'Specific table to audit (e.g. "incident", "cmdb_ci"), or omit for instance-wide analysis',
10
+ required: false,
11
+ },
12
+ ],
13
+ recommendedTools: [
14
+ 'list_acls',
15
+ 'get_acl',
16
+ 'query_records',
17
+ 'get_table_schema',
18
+ 'list_users',
19
+ 'list_groups',
20
+ ],
21
+ buildPrompt(args) {
22
+ const table = args?.table ?? '';
23
+ const scope = table || 'instance-wide';
24
+ return [
25
+ {
26
+ role: 'assistant',
27
+ content: {
28
+ type: 'text',
29
+ text: [
30
+ '# ACL Coverage Analysis',
31
+ '',
32
+ 'I am a **ServiceNow ACL analysis specialist**. I audit access control lists across',
33
+ 'tables and fields to find coverage gaps, conflicting rules, and overly permissive access.',
34
+ '',
35
+ `## Audit Scope: **${scope}**`,
36
+ '',
37
+ table
38
+ ? `I will perform a deep ACL analysis on the \`${table}\` table and all its fields.`
39
+ : 'I will perform an instance-wide ACL coverage analysis across all tables.',
40
+ '',
41
+ '## What I Check',
42
+ '',
43
+ '### 1. Tables with NO ACLs Defined',
44
+ '- Identify tables that have zero ACL records — these rely solely on default security',
45
+ '- Flag custom tables (non-OOB) with no ACLs as **Critical**',
46
+ '- Check inherited ACLs from parent tables and whether they are sufficient',
47
+ '',
48
+ '### 2. Field-Level ACL Gaps',
49
+ '- Tables with table-level ACLs but no field-level ACLs for sensitive fields',
50
+ '- Sensitive field detection: fields named `password`, `ssn`, `credit_card`, `api_key`,',
51
+ ' `token`, `secret`, `salary`, `dob`, `date_of_birth`, `social_security`, or custom',
52
+ ' fields marked as encrypted',
53
+ '- Fields containing PII or financial data without explicit field-level ACLs',
54
+ '',
55
+ '### 3. Wildcard / Overly Permissive ACLs',
56
+ '- ACLs with **empty script AND empty condition** — effectively grants access to anyone with the role',
57
+ '- ACLs with no role requirement and no condition — grants access to all authenticated users',
58
+ '- ACLs using `*` operation type — applies to all CRUD operations indiscriminately',
59
+ '',
60
+ '### 4. Admin-Only Shortcut ACLs',
61
+ '- ACLs that only require `admin` role — often a lazy shortcut',
62
+ '- Identify where scoped roles (`x_*`) should replace admin requirements',
63
+ '- Flag tables where admin is the only role with write access',
64
+ '',
65
+ '### 5. Conflicting ACLs',
66
+ '- Multiple ACLs on the same object with different roles and different outcomes',
67
+ '- ACLs where one grants access and another denies it for overlapping role sets',
68
+ '- Order-of-evaluation issues where a permissive ACL runs before a restrictive one',
69
+ '- Duplicate ACLs (same table, operation, and role)',
70
+ '',
71
+ '### 6. Row-Level ACL Gaps on Multi-Tenant Tables',
72
+ '- Tables with a `company`, `department`, or `assignment_group` field but no',
73
+ ' row-level condition restricting visibility',
74
+ '- Multi-tenant tables where users can see records outside their org',
75
+ '- Domain-separated instances missing domain ACL conditions',
76
+ '',
77
+ '### 7. Script Conditions That Could Be Simplified',
78
+ '- ACLs with script conditions that perform simple field comparisons — these should',
79
+ ' use the condition builder instead for better performance and maintainability',
80
+ '- Scripts that only check `gs.hasRole()` — should use the role field instead',
81
+ '- Scripts that only check `current.field == value` — should use a condition',
82
+ '',
83
+ '### 8. Missing CRUD Operation Coverage',
84
+ '- Tables with `read` ACLs but missing `create`, `write`, or `delete` ACLs',
85
+ '- Tables with `write` but no `delete` — users can edit but deletion is uncontrolled',
86
+ '- Tables missing `create` ACLs — anyone can insert records',
87
+ '- Attachment ACLs missing for tables that store sensitive attachments',
88
+ '',
89
+ '## Output Format',
90
+ '',
91
+ '### Coverage Matrix',
92
+ '',
93
+ 'A table showing ACL coverage per table and operation:',
94
+ '',
95
+ '| Table | Read | Create | Write | Delete | Field-Level | Row-Level | Issues |',
96
+ '|-------|------|--------|-------|--------|-------------|-----------|--------|',
97
+ '',
98
+ '### Gap List',
99
+ '',
100
+ 'For each gap found:',
101
+ '',
102
+ '| Field | Description |',
103
+ '|-------|-------------|',
104
+ '| **Severity** | Critical / High / Medium / Low |',
105
+ '| **Table** | Affected table |',
106
+ '| **Gap Type** | Missing ACL, Overly Permissive, Conflict, etc. |',
107
+ '| **Details** | What is missing or misconfigured |',
108
+ '| **Recommendation** | Specific fix with ACL configuration |',
109
+ '',
110
+ '### Recommendations',
111
+ '',
112
+ 'Prioritized list of actions to improve ACL coverage, grouped by severity.',
113
+ '',
114
+ '## Tools I Use',
115
+ '',
116
+ '| Tool | Purpose |',
117
+ '|------|---------|',
118
+ '| `list_acls` | Retrieve all ACLs, optionally filtered by table |',
119
+ '| `get_acl` | Deep-dive into specific ACL configuration |',
120
+ '| `query_records` | Check table metadata, field definitions, record counts |',
121
+ '| `get_table_schema` | Understand table structure and field types |',
122
+ '| `list_users` | Check user role assignments for impact analysis |',
123
+ '| `list_groups` | Check group role assignments for impact analysis |',
124
+ '',
125
+ 'I will now begin the ACL coverage analysis.',
126
+ ].join('\n'),
127
+ },
128
+ },
129
+ {
130
+ role: 'user',
131
+ content: {
132
+ type: 'text',
133
+ text: table
134
+ ? `Analyze ACL coverage for the ${table} table`
135
+ : 'Analyze ACL coverage across the entire instance',
136
+ },
137
+ },
138
+ ];
139
+ },
140
+ };
141
+ export default capability;
142
+ //# sourceMappingURL=review-acls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review-acls.js","sourceRoot":"","sources":["../../../src/prompts/capabilities/review-acls.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAyB;IACvC,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,mGAAmG;IACrG,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE;QACT;YACE,IAAI,EAAE,OAAO;YACb,WAAW,EACT,0FAA0F;YAC5F,QAAQ,EAAE,KAAK;SAChB;KACF;IACD,gBAAgB,EAAE;QAChB,WAAW;QACX,SAAS;QACT,eAAe;QACf,kBAAkB;QAClB,YAAY;QACZ,aAAa;KACd;IAED,WAAW,CAAC,IAAI;QACd,MAAM,KAAK,GAAG,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC;QAChC,MAAM,KAAK,GAAG,KAAK,IAAI,eAAe,CAAC;QAEvC,OAAO;YACL;gBACE,IAAI,EAAE,WAAoB;gBAC1B,OAAO,EAAE;oBACP,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE;wBACJ,yBAAyB;wBACzB,EAAE;wBACF,oFAAoF;wBACpF,2FAA2F;wBAC3F,EAAE;wBACF,qBAAqB,KAAK,IAAI;wBAC9B,EAAE;wBACF,KAAK;4BACH,CAAC,CAAC,+CAA+C,KAAK,8BAA8B;4BACpF,CAAC,CAAC,0EAA0E;wBAC9E,EAAE;wBACF,iBAAiB;wBACjB,EAAE;wBACF,oCAAoC;wBACpC,sFAAsF;wBACtF,6DAA6D;wBAC7D,2EAA2E;wBAC3E,EAAE;wBACF,6BAA6B;wBAC7B,6EAA6E;wBAC7E,wFAAwF;wBACxF,qFAAqF;wBACrF,8BAA8B;wBAC9B,6E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wBACT,CAAC,CAAC,gCAAgC,KAAK,QAAQ;wBAC/C,CAAC,CAAC,iDAAiD;iBACtD;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CapabilityDefinition } from '../types.js';
2
+ declare const capability: CapabilityDefinition;
3
+ export default capability;
4
+ //# sourceMappingURL=review-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review-code.d.ts","sourceRoot":"","sources":["../../../src/prompts/capabilities/review-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,QAAA,MAAM,UAAU,EAAE,oBA6JjB,CAAC;AAEF,eAAe,UAAU,CAAC"}