nowaikit 3.1.0 → 4.0.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/desktop/renderer/dist/assets/index-D46KUWoj.js +49 -0
- package/desktop/renderer/dist/index.html +5 -5
- package/desktop/serve.cjs +88 -0
- package/dist/a2a/agent-card.d.ts +8 -0
- package/dist/a2a/agent-card.d.ts.map +1 -0
- package/dist/a2a/agent-card.js +82 -0
- package/dist/a2a/agent-card.js.map +1 -0
- package/dist/a2a/index.d.ts +13 -0
- package/dist/a2a/index.d.ts.map +1 -0
- package/dist/a2a/index.js +74 -0
- package/dist/a2a/index.js.map +1 -0
- package/dist/a2a/task-manager.d.ts +20 -0
- package/dist/a2a/task-manager.d.ts.map +1 -0
- package/dist/a2a/task-manager.js +148 -0
- package/dist/a2a/task-manager.js.map +1 -0
- package/dist/a2a/types.d.ts +73 -0
- package/dist/a2a/types.d.ts.map +1 -0
- package/dist/a2a/types.js +6 -0
- package/dist/a2a/types.js.map +1 -0
- package/dist/api/index.d.ts +16 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +106 -0
- package/dist/api/index.js.map +1 -0
- package/dist/cli/config-store.d.ts +9 -0
- package/dist/cli/config-store.d.ts.map +1 -1
- package/dist/cli/config-store.js.map +1 -1
- package/dist/cli/index.js +100 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +196 -13
- package/dist/cli/setup.js.map +1 -1
- package/dist/dashboard/index.d.ts +7 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +111 -0
- package/dist/dashboard/index.js.map +1 -0
- package/dist/direct/llm-client.d.ts +1 -1
- package/dist/direct/llm-client.d.ts.map +1 -1
- package/dist/direct/llm-client.js +6 -1
- package/dist/direct/llm-client.js.map +1 -1
- package/dist/prompts/capabilities/build-app.d.ts.map +1 -1
- package/dist/prompts/capabilities/build-app.js +2 -0
- package/dist/prompts/capabilities/build-app.js.map +1 -1
- package/dist/prompts/capabilities/build-atf-suite.d.ts +4 -0
- package/dist/prompts/capabilities/build-atf-suite.d.ts.map +1 -0
- package/dist/prompts/capabilities/build-atf-suite.js +143 -0
- package/dist/prompts/capabilities/build-atf-suite.js.map +1 -0
- package/dist/prompts/capabilities/build-business-rule.d.ts.map +1 -1
- package/dist/prompts/capabilities/build-business-rule.js +2 -0
- package/dist/prompts/capabilities/build-business-rule.js.map +1 -1
- package/dist/prompts/capabilities/build-catalog.d.ts.map +1 -1
- package/dist/prompts/capabilities/build-catalog.js +2 -0
- package/dist/prompts/capabilities/build-catalog.js.map +1 -1
- package/dist/prompts/capabilities/build-client-script.d.ts.map +1 -1
- package/dist/prompts/capabilities/build-client-script.js +2 -0
- package/dist/prompts/capabilities/build-client-script.js.map +1 -1
- package/dist/prompts/capabilities/build-flow.d.ts.map +1 -1
- package/dist/prompts/capabilities/build-flow.js +2 -0
- package/dist/prompts/capabilities/build-flow.js.map +1 -1
- package/dist/prompts/capabilities/build-portal.d.ts.map +1 -1
- package/dist/prompts/capabilities/build-portal.js +2 -0
- package/dist/prompts/capabilities/build-portal.js.map +1 -1
- package/dist/prompts/capabilities/build-rest-api.d.ts.map +1 -1
- package/dist/prompts/capabilities/build-rest-api.js +2 -0
- package/dist/prompts/capabilities/build-rest-api.js.map +1 -1
- package/dist/prompts/capabilities/build-test-plan.d.ts.map +1 -1
- package/dist/prompts/capabilities/build-test-plan.js +2 -0
- package/dist/prompts/capabilities/build-test-plan.js.map +1 -1
- package/dist/prompts/capabilities/build-uib.d.ts.map +1 -1
- package/dist/prompts/capabilities/build-uib.js +2 -0
- package/dist/prompts/capabilities/build-uib.js.map +1 -1
- package/dist/prompts/capabilities/docs-app.d.ts.map +1 -1
- package/dist/prompts/capabilities/docs-app.js +2 -0
- package/dist/prompts/capabilities/docs-app.js.map +1 -1
- package/dist/prompts/capabilities/docs-release.d.ts.map +1 -1
- package/dist/prompts/capabilities/docs-release.js +2 -0
- package/dist/prompts/capabilities/docs-release.js.map +1 -1
- package/dist/prompts/capabilities/docs-runbook.d.ts.map +1 -1
- package/dist/prompts/capabilities/docs-runbook.js +2 -0
- package/dist/prompts/capabilities/docs-runbook.js.map +1 -1
- package/dist/prompts/capabilities/docs-script.d.ts.map +1 -1
- package/dist/prompts/capabilities/docs-script.js +2 -0
- package/dist/prompts/capabilities/docs-script.js.map +1 -1
- package/dist/prompts/capabilities/ops-deploy.d.ts.map +1 -1
- package/dist/prompts/capabilities/ops-deploy.js +2 -0
- package/dist/prompts/capabilities/ops-deploy.js.map +1 -1
- package/dist/prompts/capabilities/ops-risk.d.ts.map +1 -1
- package/dist/prompts/capabilities/ops-risk.js +2 -0
- package/dist/prompts/capabilities/ops-risk.js.map +1 -1
- package/dist/prompts/capabilities/ops-triage.d.ts.map +1 -1
- package/dist/prompts/capabilities/ops-triage.js +2 -0
- package/dist/prompts/capabilities/ops-triage.js.map +1 -1
- package/dist/prompts/capabilities/review-acls.d.ts.map +1 -1
- package/dist/prompts/capabilities/review-acls.js +2 -0
- package/dist/prompts/capabilities/review-acls.js.map +1 -1
- package/dist/prompts/capabilities/review-code.d.ts.map +1 -1
- package/dist/prompts/capabilities/review-code.js +2 -0
- package/dist/prompts/capabilities/review-code.js.map +1 -1
- package/dist/prompts/capabilities/review-flows.d.ts.map +1 -1
- package/dist/prompts/capabilities/review-flows.js +2 -0
- package/dist/prompts/capabilities/review-flows.js.map +1 -1
- package/dist/prompts/capabilities/review-scripts.d.ts.map +1 -1
- package/dist/prompts/capabilities/review-scripts.js +2 -0
- package/dist/prompts/capabilities/review-scripts.js.map +1 -1
- package/dist/prompts/capabilities/scan-automation.d.ts.map +1 -1
- package/dist/prompts/capabilities/scan-automation.js +2 -0
- package/dist/prompts/capabilities/scan-automation.js.map +1 -1
- package/dist/prompts/capabilities/scan-cmdb.d.ts.map +1 -1
- package/dist/prompts/capabilities/scan-cmdb.js +2 -0
- package/dist/prompts/capabilities/scan-cmdb.js.map +1 -1
- package/dist/prompts/capabilities/scan-debt.d.ts.map +1 -1
- package/dist/prompts/capabilities/scan-debt.js +2 -0
- package/dist/prompts/capabilities/scan-debt.js.map +1 -1
- package/dist/prompts/capabilities/scan-health.d.ts.map +1 -1
- package/dist/prompts/capabilities/scan-health.js +2 -0
- package/dist/prompts/capabilities/scan-health.js.map +1 -1
- package/dist/prompts/capabilities/scan-security.d.ts.map +1 -1
- package/dist/prompts/capabilities/scan-security.js +2 -0
- package/dist/prompts/capabilities/scan-security.js.map +1 -1
- package/dist/prompts/capabilities/scan-upgrade.d.ts.map +1 -1
- package/dist/prompts/capabilities/scan-upgrade.js +2 -0
- package/dist/prompts/capabilities/scan-upgrade.js.map +1 -1
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +2 -0
- package/dist/prompts/index.js.map +1 -1
- package/dist/reports/brand.d.ts +79 -0
- package/dist/reports/brand.d.ts.map +1 -0
- package/dist/reports/brand.js +204 -0
- package/dist/reports/brand.js.map +1 -0
- package/dist/reports/charts.d.ts +11 -0
- package/dist/reports/charts.d.ts.map +1 -0
- package/dist/reports/charts.js +91 -0
- package/dist/reports/charts.js.map +1 -0
- package/dist/reports/index.d.ts +13 -0
- package/dist/reports/index.d.ts.map +1 -0
- package/dist/reports/index.js +65 -0
- package/dist/reports/index.js.map +1 -0
- package/dist/reports/parser.d.ts +13 -0
- package/dist/reports/parser.d.ts.map +1 -0
- package/dist/reports/parser.js +202 -0
- package/dist/reports/parser.js.map +1 -0
- package/dist/reports/pdf-generator.d.ts +8 -0
- package/dist/reports/pdf-generator.d.ts.map +1 -0
- package/dist/reports/pdf-generator.js +244 -0
- package/dist/reports/pdf-generator.js.map +1 -0
- package/dist/reports/pptx-generator.d.ts +8 -0
- package/dist/reports/pptx-generator.d.ts.map +1 -0
- package/dist/reports/pptx-generator.js +273 -0
- package/dist/reports/pptx-generator.js.map +1 -0
- package/dist/reports/types.d.ts +60 -0
- package/dist/reports/types.d.ts.map +1 -0
- package/dist/reports/types.js +7 -0
- package/dist/reports/types.js.map +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +10 -0
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/query-syntax.d.ts +6 -0
- package/dist/resources/query-syntax.d.ts.map +1 -0
- package/dist/resources/query-syntax.js +113 -0
- package/dist/resources/query-syntax.js.map +1 -0
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +2 -0
- package/dist/sdk/index.js.map +1 -1
- package/dist/server.d.ts +2 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +103 -92
- package/dist/server.js.map +1 -1
- package/dist/tools/ai-agents.d.ts +145 -0
- package/dist/tools/ai-agents.d.ts.map +1 -0
- package/dist/tools/ai-agents.js +185 -0
- package/dist/tools/ai-agents.js.map +1 -0
- package/dist/tools/cmdb-reconciliation.d.ts +112 -0
- package/dist/tools/cmdb-reconciliation.d.ts.map +1 -0
- package/dist/tools/cmdb-reconciliation.js +267 -0
- package/dist/tools/cmdb-reconciliation.js.map +1 -0
- package/dist/tools/discovery.d.ts +34 -0
- package/dist/tools/discovery.d.ts.map +1 -0
- package/dist/tools/discovery.js +168 -0
- package/dist/tools/discovery.js.map +1 -0
- package/dist/tools/fluent.d.ts +105 -11
- package/dist/tools/fluent.d.ts.map +1 -1
- package/dist/tools/fluent.js +118 -1
- package/dist/tools/fluent.js.map +1 -1
- package/dist/tools/index.d.ts +840 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +44 -6
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/ml.d.ts +104 -0
- package/dist/tools/ml.d.ts.map +1 -1
- package/dist/tools/ml.js +139 -0
- package/dist/tools/ml.js.map +1 -1
- package/dist/tools/now-assist-skills.d.ts +129 -0
- package/dist/tools/now-assist-skills.d.ts.map +1 -0
- package/dist/tools/now-assist-skills.js +128 -0
- package/dist/tools/now-assist-skills.js.map +1 -0
- package/dist/tools/orchestration.d.ts +132 -0
- package/dist/tools/orchestration.d.ts.map +1 -0
- package/dist/tools/orchestration.js +320 -0
- package/dist/tools/orchestration.js.map +1 -0
- package/dist/tools/reporting.d.ts +127 -1
- package/dist/tools/reporting.d.ts.map +1 -1
- package/dist/tools/reporting.js +64 -0
- package/dist/tools/reporting.js.map +1 -1
- package/dist/tools/schema-cache.d.ts +44 -0
- package/dist/tools/schema-cache.d.ts.map +1 -0
- package/dist/tools/schema-cache.js +127 -0
- package/dist/tools/schema-cache.js.map +1 -0
- package/dist/tools-manifest.json +660 -0
- package/dist/transport/auth-middleware.d.ts +16 -0
- package/dist/transport/auth-middleware.d.ts.map +1 -0
- package/dist/transport/auth-middleware.js +31 -0
- package/dist/transport/auth-middleware.js.map +1 -0
- package/dist/transport/http-server.d.ts +44 -0
- package/dist/transport/http-server.d.ts.map +1 -0
- package/dist/transport/http-server.js +172 -0
- package/dist/transport/http-server.js.map +1 -0
- package/dist/transport/index.d.ts +19 -0
- package/dist/transport/index.d.ts.map +1 -0
- package/dist/transport/index.js +105 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/utils/permissions.d.ts +2 -0
- package/dist/utils/permissions.d.ts.map +1 -1
- package/dist/utils/permissions.js +8 -0
- package/dist/utils/permissions.js.map +1 -1
- package/package.json +7 -1
- package/desktop/renderer/dist/assets/index-C_5k3daB.js +0 -49
package/dist/tools-manifest.json
CHANGED
|
@@ -2112,6 +2112,64 @@
|
|
|
2112
2112
|
]
|
|
2113
2113
|
}
|
|
2114
2114
|
},
|
|
2115
|
+
{
|
|
2116
|
+
"name": "generate_report",
|
|
2117
|
+
"description": "Generate a branded PDF or PPTX report from capability analysis results. Call this after completing a scan, review, or audit to create a management-ready document with charts, tables, and ServiceNow links. Supports single capability (content) or multiple capabilities (sections) in one combined report.",
|
|
2118
|
+
"inputSchema": {
|
|
2119
|
+
"type": "object",
|
|
2120
|
+
"properties": {
|
|
2121
|
+
"content": {
|
|
2122
|
+
"type": "string",
|
|
2123
|
+
"description": "Full markdown analysis to convert into a branded report (for single capability)"
|
|
2124
|
+
},
|
|
2125
|
+
"sections": {
|
|
2126
|
+
"type": "array",
|
|
2127
|
+
"description": "Multiple capability analyses to combine into one report. Each section becomes a chapter. Use this instead of content for multi-capability reports.",
|
|
2128
|
+
"items": {
|
|
2129
|
+
"type": "object",
|
|
2130
|
+
"properties": {
|
|
2131
|
+
"content": {
|
|
2132
|
+
"type": "string",
|
|
2133
|
+
"description": "Markdown analysis for this capability"
|
|
2134
|
+
},
|
|
2135
|
+
"title": {
|
|
2136
|
+
"type": "string",
|
|
2137
|
+
"description": "Section title (e.g. \"Instance Health Scan\")"
|
|
2138
|
+
},
|
|
2139
|
+
"capability": {
|
|
2140
|
+
"type": "string",
|
|
2141
|
+
"description": "Capability name (e.g. \"scan-health\")"
|
|
2142
|
+
}
|
|
2143
|
+
},
|
|
2144
|
+
"required": [
|
|
2145
|
+
"content",
|
|
2146
|
+
"title"
|
|
2147
|
+
]
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
"format": {
|
|
2151
|
+
"type": "string",
|
|
2152
|
+
"enum": [
|
|
2153
|
+
"pdf",
|
|
2154
|
+
"pptx"
|
|
2155
|
+
],
|
|
2156
|
+
"description": "Output format: pdf (branded document) or pptx (slide deck)"
|
|
2157
|
+
},
|
|
2158
|
+
"title": {
|
|
2159
|
+
"type": "string",
|
|
2160
|
+
"description": "Report title (e.g. \"Instance Health Scan\", \"Comprehensive Instance Audit\")"
|
|
2161
|
+
},
|
|
2162
|
+
"capability": {
|
|
2163
|
+
"type": "string",
|
|
2164
|
+
"description": "Capability name that produced the analysis (e.g. \"scan-health\", \"review-code\", \"combined-audit\")"
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
"required": [
|
|
2168
|
+
"format",
|
|
2169
|
+
"title"
|
|
2170
|
+
]
|
|
2171
|
+
}
|
|
2172
|
+
},
|
|
2115
2173
|
{
|
|
2116
2174
|
"name": "list_atf_suites",
|
|
2117
2175
|
"description": "List ATF test suites in the instance",
|
|
@@ -7463,6 +7521,52 @@
|
|
|
7463
7521
|
]
|
|
7464
7522
|
}
|
|
7465
7523
|
},
|
|
7524
|
+
{
|
|
7525
|
+
"name": "ml_similar_incidents",
|
|
7526
|
+
"description": "Find similar past incidents using keyword-based matching. Provide either an incident sys_id (to find similar incidents) or a short_description (for free-text matching). Returns resolved incidents ranked by keyword match count.",
|
|
7527
|
+
"inputSchema": {
|
|
7528
|
+
"type": "object",
|
|
7529
|
+
"properties": {
|
|
7530
|
+
"incident_sys_id": {
|
|
7531
|
+
"type": "string",
|
|
7532
|
+
"description": "Sys_id of an existing incident to find similar ones for"
|
|
7533
|
+
},
|
|
7534
|
+
"short_description": {
|
|
7535
|
+
"type": "string",
|
|
7536
|
+
"description": "Free-text description to match against (required if no sys_id)"
|
|
7537
|
+
},
|
|
7538
|
+
"limit": {
|
|
7539
|
+
"type": "number",
|
|
7540
|
+
"description": "Max results to return (default 10)"
|
|
7541
|
+
}
|
|
7542
|
+
},
|
|
7543
|
+
"required": []
|
|
7544
|
+
}
|
|
7545
|
+
},
|
|
7546
|
+
{
|
|
7547
|
+
"name": "ml_auto_categorize",
|
|
7548
|
+
"description": "Auto-categorize a record based on its description by analysing resolved records of the same table. Queries the last 500 resolved records, groups by category, and matches input keywords to suggest a category.",
|
|
7549
|
+
"inputSchema": {
|
|
7550
|
+
"type": "object",
|
|
7551
|
+
"properties": {
|
|
7552
|
+
"short_description": {
|
|
7553
|
+
"type": "string",
|
|
7554
|
+
"description": "Short description of the record to categorize"
|
|
7555
|
+
},
|
|
7556
|
+
"description": {
|
|
7557
|
+
"type": "string",
|
|
7558
|
+
"description": "Full description (optional, improves accuracy)"
|
|
7559
|
+
},
|
|
7560
|
+
"table": {
|
|
7561
|
+
"type": "string",
|
|
7562
|
+
"description": "Table to analyse (default \"incident\")"
|
|
7563
|
+
}
|
|
7564
|
+
},
|
|
7565
|
+
"required": [
|
|
7566
|
+
"short_description"
|
|
7567
|
+
]
|
|
7568
|
+
}
|
|
7569
|
+
},
|
|
7466
7570
|
{
|
|
7467
7571
|
"name": "list_uib_pages",
|
|
7468
7572
|
"description": "List UI Builder pages and their route configurations",
|
|
@@ -8413,5 +8517,561 @@
|
|
|
8413
8517
|
"script"
|
|
8414
8518
|
]
|
|
8415
8519
|
}
|
|
8520
|
+
},
|
|
8521
|
+
{
|
|
8522
|
+
"name": "fluent_explain",
|
|
8523
|
+
"description": "Run `npx @servicenow/sdk explain <topic>` to get SDK documentation on a topic. Returns explanations of fluent APIs, types, patterns, and best practices.",
|
|
8524
|
+
"inputSchema": {
|
|
8525
|
+
"type": "object",
|
|
8526
|
+
"properties": {
|
|
8527
|
+
"topic": {
|
|
8528
|
+
"type": "string",
|
|
8529
|
+
"description": "Topic to explain (e.g., \"GlideQuery\", \"table API\", \"scoped app\")"
|
|
8530
|
+
}
|
|
8531
|
+
},
|
|
8532
|
+
"required": [
|
|
8533
|
+
"topic"
|
|
8534
|
+
]
|
|
8535
|
+
}
|
|
8536
|
+
},
|
|
8537
|
+
{
|
|
8538
|
+
"name": "fluent_init",
|
|
8539
|
+
"description": "Initialize a new ServiceNow fluent/now-sdk project. Runs `npx @servicenow/sdk init`. REQUIRES FLUENT_ENABLED=true and WRITE_ENABLED=true.",
|
|
8540
|
+
"inputSchema": {
|
|
8541
|
+
"type": "object",
|
|
8542
|
+
"properties": {
|
|
8543
|
+
"name": {
|
|
8544
|
+
"type": "string",
|
|
8545
|
+
"description": "Project name"
|
|
8546
|
+
},
|
|
8547
|
+
"template": {
|
|
8548
|
+
"type": "string",
|
|
8549
|
+
"description": "Project template (optional)"
|
|
8550
|
+
},
|
|
8551
|
+
"directory": {
|
|
8552
|
+
"type": "string",
|
|
8553
|
+
"description": "Target directory (optional, defaults to cwd)"
|
|
8554
|
+
}
|
|
8555
|
+
},
|
|
8556
|
+
"required": [
|
|
8557
|
+
"name"
|
|
8558
|
+
]
|
|
8559
|
+
}
|
|
8560
|
+
},
|
|
8561
|
+
{
|
|
8562
|
+
"name": "fluent_build",
|
|
8563
|
+
"description": "Build a ServiceNow fluent/now-sdk project. Runs `npx @servicenow/sdk build`. REQUIRES FLUENT_ENABLED=true and WRITE_ENABLED=true.",
|
|
8564
|
+
"inputSchema": {
|
|
8565
|
+
"type": "object",
|
|
8566
|
+
"properties": {
|
|
8567
|
+
"directory": {
|
|
8568
|
+
"type": "string",
|
|
8569
|
+
"description": "Project directory (optional, defaults to cwd)"
|
|
8570
|
+
}
|
|
8571
|
+
},
|
|
8572
|
+
"required": []
|
|
8573
|
+
}
|
|
8574
|
+
},
|
|
8575
|
+
{
|
|
8576
|
+
"name": "fluent_validate",
|
|
8577
|
+
"description": "Validate a ServiceNow fluent/now-sdk project. Runs `npx @servicenow/sdk validate`. REQUIRES FLUENT_ENABLED=true.",
|
|
8578
|
+
"inputSchema": {
|
|
8579
|
+
"type": "object",
|
|
8580
|
+
"properties": {
|
|
8581
|
+
"directory": {
|
|
8582
|
+
"type": "string",
|
|
8583
|
+
"description": "Project directory (optional, defaults to cwd)"
|
|
8584
|
+
}
|
|
8585
|
+
},
|
|
8586
|
+
"required": []
|
|
8587
|
+
}
|
|
8588
|
+
},
|
|
8589
|
+
{
|
|
8590
|
+
"name": "create_now_assist_skill",
|
|
8591
|
+
"description": "Create a Now Assist skill definition (requires NOW_ASSIST_ENABLED + WRITE_ENABLED)",
|
|
8592
|
+
"inputSchema": {
|
|
8593
|
+
"type": "object",
|
|
8594
|
+
"properties": {
|
|
8595
|
+
"name": {
|
|
8596
|
+
"type": "string",
|
|
8597
|
+
"description": "Skill name"
|
|
8598
|
+
},
|
|
8599
|
+
"description": {
|
|
8600
|
+
"type": "string",
|
|
8601
|
+
"description": "Skill description"
|
|
8602
|
+
},
|
|
8603
|
+
"input_schema": {
|
|
8604
|
+
"type": "string",
|
|
8605
|
+
"description": "JSON schema string defining the skill input"
|
|
8606
|
+
},
|
|
8607
|
+
"output_schema": {
|
|
8608
|
+
"type": "string",
|
|
8609
|
+
"description": "JSON schema string defining the skill output"
|
|
8610
|
+
},
|
|
8611
|
+
"prompt_template": {
|
|
8612
|
+
"type": "string",
|
|
8613
|
+
"description": "Prompt template for the skill"
|
|
8614
|
+
},
|
|
8615
|
+
"model": {
|
|
8616
|
+
"type": "string",
|
|
8617
|
+
"description": "Optional model identifier to use for this skill"
|
|
8618
|
+
}
|
|
8619
|
+
},
|
|
8620
|
+
"required": [
|
|
8621
|
+
"name",
|
|
8622
|
+
"description",
|
|
8623
|
+
"input_schema",
|
|
8624
|
+
"output_schema",
|
|
8625
|
+
"prompt_template"
|
|
8626
|
+
]
|
|
8627
|
+
}
|
|
8628
|
+
},
|
|
8629
|
+
{
|
|
8630
|
+
"name": "list_now_assist_skills",
|
|
8631
|
+
"description": "List Now Assist skill definitions (requires NOW_ASSIST_ENABLED)",
|
|
8632
|
+
"inputSchema": {
|
|
8633
|
+
"type": "object",
|
|
8634
|
+
"properties": {
|
|
8635
|
+
"active": {
|
|
8636
|
+
"type": "boolean",
|
|
8637
|
+
"description": "Filter by active status"
|
|
8638
|
+
},
|
|
8639
|
+
"limit": {
|
|
8640
|
+
"type": "number",
|
|
8641
|
+
"description": "Max records to return (default 25)"
|
|
8642
|
+
},
|
|
8643
|
+
"query": {
|
|
8644
|
+
"type": "string",
|
|
8645
|
+
"description": "Additional encoded query string"
|
|
8646
|
+
}
|
|
8647
|
+
},
|
|
8648
|
+
"required": []
|
|
8649
|
+
}
|
|
8650
|
+
},
|
|
8651
|
+
{
|
|
8652
|
+
"name": "get_now_assist_skill",
|
|
8653
|
+
"description": "Get a single Now Assist skill definition by sys_id (requires NOW_ASSIST_ENABLED)",
|
|
8654
|
+
"inputSchema": {
|
|
8655
|
+
"type": "object",
|
|
8656
|
+
"properties": {
|
|
8657
|
+
"sys_id": {
|
|
8658
|
+
"type": "string",
|
|
8659
|
+
"description": "System ID of the skill"
|
|
8660
|
+
}
|
|
8661
|
+
},
|
|
8662
|
+
"required": [
|
|
8663
|
+
"sys_id"
|
|
8664
|
+
]
|
|
8665
|
+
}
|
|
8666
|
+
},
|
|
8667
|
+
{
|
|
8668
|
+
"name": "test_now_assist_skill",
|
|
8669
|
+
"description": "Invoke a Now Assist skill with test input to verify behavior (requires NOW_ASSIST_ENABLED)",
|
|
8670
|
+
"inputSchema": {
|
|
8671
|
+
"type": "object",
|
|
8672
|
+
"properties": {
|
|
8673
|
+
"skill_sys_id": {
|
|
8674
|
+
"type": "string",
|
|
8675
|
+
"description": "System ID of the skill to test"
|
|
8676
|
+
},
|
|
8677
|
+
"test_input": {
|
|
8678
|
+
"type": "object",
|
|
8679
|
+
"description": "Test input payload to send to the skill"
|
|
8680
|
+
}
|
|
8681
|
+
},
|
|
8682
|
+
"required": [
|
|
8683
|
+
"skill_sys_id",
|
|
8684
|
+
"test_input"
|
|
8685
|
+
]
|
|
8686
|
+
}
|
|
8687
|
+
},
|
|
8688
|
+
{
|
|
8689
|
+
"name": "create_ai_agent",
|
|
8690
|
+
"description": "Create an AI agent definition with optional auto-generated ACLs (requires NOW_ASSIST_ENABLED + WRITE_ENABLED)",
|
|
8691
|
+
"inputSchema": {
|
|
8692
|
+
"type": "object",
|
|
8693
|
+
"properties": {
|
|
8694
|
+
"name": {
|
|
8695
|
+
"type": "string",
|
|
8696
|
+
"description": "Agent name"
|
|
8697
|
+
},
|
|
8698
|
+
"description": {
|
|
8699
|
+
"type": "string",
|
|
8700
|
+
"description": "Agent description"
|
|
8701
|
+
},
|
|
8702
|
+
"capabilities": {
|
|
8703
|
+
"type": "array",
|
|
8704
|
+
"items": {
|
|
8705
|
+
"type": "string"
|
|
8706
|
+
},
|
|
8707
|
+
"description": "List of capability identifiers the agent supports"
|
|
8708
|
+
},
|
|
8709
|
+
"auto_generate_acls": {
|
|
8710
|
+
"type": "boolean",
|
|
8711
|
+
"description": "Automatically create ACL records for the agent (default true)"
|
|
8712
|
+
}
|
|
8713
|
+
},
|
|
8714
|
+
"required": [
|
|
8715
|
+
"name",
|
|
8716
|
+
"description",
|
|
8717
|
+
"capabilities"
|
|
8718
|
+
]
|
|
8719
|
+
}
|
|
8720
|
+
},
|
|
8721
|
+
{
|
|
8722
|
+
"name": "list_ai_agents",
|
|
8723
|
+
"description": "List AI agent definitions",
|
|
8724
|
+
"inputSchema": {
|
|
8725
|
+
"type": "object",
|
|
8726
|
+
"properties": {
|
|
8727
|
+
"active": {
|
|
8728
|
+
"type": "boolean",
|
|
8729
|
+
"description": "Filter by active status"
|
|
8730
|
+
},
|
|
8731
|
+
"limit": {
|
|
8732
|
+
"type": "number",
|
|
8733
|
+
"description": "Max records to return (default 25)"
|
|
8734
|
+
}
|
|
8735
|
+
},
|
|
8736
|
+
"required": []
|
|
8737
|
+
}
|
|
8738
|
+
},
|
|
8739
|
+
{
|
|
8740
|
+
"name": "get_ai_agent",
|
|
8741
|
+
"description": "Get an AI agent definition and its related ACLs",
|
|
8742
|
+
"inputSchema": {
|
|
8743
|
+
"type": "object",
|
|
8744
|
+
"properties": {
|
|
8745
|
+
"sys_id": {
|
|
8746
|
+
"type": "string",
|
|
8747
|
+
"description": "System ID of the AI agent"
|
|
8748
|
+
}
|
|
8749
|
+
},
|
|
8750
|
+
"required": [
|
|
8751
|
+
"sys_id"
|
|
8752
|
+
]
|
|
8753
|
+
}
|
|
8754
|
+
},
|
|
8755
|
+
{
|
|
8756
|
+
"name": "create_agentic_workflow",
|
|
8757
|
+
"description": "Create an agentic workflow linked to an AI agent (requires NOW_ASSIST_ENABLED + WRITE_ENABLED)",
|
|
8758
|
+
"inputSchema": {
|
|
8759
|
+
"type": "object",
|
|
8760
|
+
"properties": {
|
|
8761
|
+
"name": {
|
|
8762
|
+
"type": "string",
|
|
8763
|
+
"description": "Workflow name"
|
|
8764
|
+
},
|
|
8765
|
+
"description": {
|
|
8766
|
+
"type": "string",
|
|
8767
|
+
"description": "Workflow description"
|
|
8768
|
+
},
|
|
8769
|
+
"agent_sys_id": {
|
|
8770
|
+
"type": "string",
|
|
8771
|
+
"description": "System ID of the parent AI agent"
|
|
8772
|
+
},
|
|
8773
|
+
"steps": {
|
|
8774
|
+
"type": "array",
|
|
8775
|
+
"description": "Ordered list of workflow steps",
|
|
8776
|
+
"items": {
|
|
8777
|
+
"type": "object",
|
|
8778
|
+
"properties": {
|
|
8779
|
+
"name": {
|
|
8780
|
+
"type": "string",
|
|
8781
|
+
"description": "Step name"
|
|
8782
|
+
},
|
|
8783
|
+
"action": {
|
|
8784
|
+
"type": "string",
|
|
8785
|
+
"description": "Action identifier"
|
|
8786
|
+
},
|
|
8787
|
+
"inputs": {
|
|
8788
|
+
"type": "object",
|
|
8789
|
+
"description": "Step input parameters"
|
|
8790
|
+
},
|
|
8791
|
+
"condition": {
|
|
8792
|
+
"type": "string",
|
|
8793
|
+
"description": "Optional condition expression"
|
|
8794
|
+
}
|
|
8795
|
+
},
|
|
8796
|
+
"required": [
|
|
8797
|
+
"name",
|
|
8798
|
+
"action"
|
|
8799
|
+
]
|
|
8800
|
+
}
|
|
8801
|
+
},
|
|
8802
|
+
"trigger_conditions": {
|
|
8803
|
+
"type": "string",
|
|
8804
|
+
"description": "Optional trigger condition expression"
|
|
8805
|
+
}
|
|
8806
|
+
},
|
|
8807
|
+
"required": [
|
|
8808
|
+
"name",
|
|
8809
|
+
"description",
|
|
8810
|
+
"agent_sys_id",
|
|
8811
|
+
"steps"
|
|
8812
|
+
]
|
|
8813
|
+
}
|
|
8814
|
+
},
|
|
8815
|
+
{
|
|
8816
|
+
"name": "cmdb_find_duplicates",
|
|
8817
|
+
"description": "Find duplicate CIs by matching on specified fields (in-memory grouping)",
|
|
8818
|
+
"inputSchema": {
|
|
8819
|
+
"type": "object",
|
|
8820
|
+
"properties": {
|
|
8821
|
+
"ci_class": {
|
|
8822
|
+
"type": "string",
|
|
8823
|
+
"description": "CI class table (default cmdb_ci)"
|
|
8824
|
+
},
|
|
8825
|
+
"match_fields": {
|
|
8826
|
+
"type": "array",
|
|
8827
|
+
"items": {
|
|
8828
|
+
"type": "string"
|
|
8829
|
+
},
|
|
8830
|
+
"description": "Fields to match on for duplicate detection (default: name, serial_number, ip_address)"
|
|
8831
|
+
},
|
|
8832
|
+
"limit": {
|
|
8833
|
+
"type": "number",
|
|
8834
|
+
"description": "Max CIs to scan (default 100)"
|
|
8835
|
+
}
|
|
8836
|
+
},
|
|
8837
|
+
"required": []
|
|
8838
|
+
}
|
|
8839
|
+
},
|
|
8840
|
+
{
|
|
8841
|
+
"name": "cmdb_find_orphans",
|
|
8842
|
+
"description": "Find CIs with no relationships in cmdb_rel_ci",
|
|
8843
|
+
"inputSchema": {
|
|
8844
|
+
"type": "object",
|
|
8845
|
+
"properties": {
|
|
8846
|
+
"ci_class": {
|
|
8847
|
+
"type": "string",
|
|
8848
|
+
"description": "CI class table (default cmdb_ci)"
|
|
8849
|
+
},
|
|
8850
|
+
"limit": {
|
|
8851
|
+
"type": "number",
|
|
8852
|
+
"description": "Max orphan CIs to return (default 50)"
|
|
8853
|
+
}
|
|
8854
|
+
},
|
|
8855
|
+
"required": []
|
|
8856
|
+
}
|
|
8857
|
+
},
|
|
8858
|
+
{
|
|
8859
|
+
"name": "cmdb_find_stale",
|
|
8860
|
+
"description": "Find CIs not updated within a given number of days that are still operational",
|
|
8861
|
+
"inputSchema": {
|
|
8862
|
+
"type": "object",
|
|
8863
|
+
"properties": {
|
|
8864
|
+
"ci_class": {
|
|
8865
|
+
"type": "string",
|
|
8866
|
+
"description": "CI class table (default cmdb_ci)"
|
|
8867
|
+
},
|
|
8868
|
+
"days_threshold": {
|
|
8869
|
+
"type": "number",
|
|
8870
|
+
"description": "Number of days since last update to consider stale (default 90)"
|
|
8871
|
+
},
|
|
8872
|
+
"limit": {
|
|
8873
|
+
"type": "number",
|
|
8874
|
+
"description": "Max stale CIs to return (default 50)"
|
|
8875
|
+
}
|
|
8876
|
+
},
|
|
8877
|
+
"required": []
|
|
8878
|
+
}
|
|
8879
|
+
},
|
|
8880
|
+
{
|
|
8881
|
+
"name": "cmdb_reconcile",
|
|
8882
|
+
"description": "Act on duplicate, stale, or orphan CIs — merge, retire, or remove (requires CMDB_WRITE_ENABLED). Supports dry_run mode.",
|
|
8883
|
+
"inputSchema": {
|
|
8884
|
+
"type": "object",
|
|
8885
|
+
"properties": {
|
|
8886
|
+
"action": {
|
|
8887
|
+
"type": "string",
|
|
8888
|
+
"enum": [
|
|
8889
|
+
"merge_duplicates",
|
|
8890
|
+
"retire_stale",
|
|
8891
|
+
"remove_orphans"
|
|
8892
|
+
],
|
|
8893
|
+
"description": "Reconciliation action to perform"
|
|
8894
|
+
},
|
|
8895
|
+
"targets": {
|
|
8896
|
+
"type": "array",
|
|
8897
|
+
"items": {
|
|
8898
|
+
"type": "string"
|
|
8899
|
+
},
|
|
8900
|
+
"description": "Array of CI sys_ids to act on"
|
|
8901
|
+
},
|
|
8902
|
+
"dry_run": {
|
|
8903
|
+
"type": "boolean",
|
|
8904
|
+
"description": "Preview changes without applying (default true)"
|
|
8905
|
+
}
|
|
8906
|
+
},
|
|
8907
|
+
"required": [
|
|
8908
|
+
"action",
|
|
8909
|
+
"targets"
|
|
8910
|
+
]
|
|
8911
|
+
}
|
|
8912
|
+
},
|
|
8913
|
+
{
|
|
8914
|
+
"name": "create_playbook",
|
|
8915
|
+
"description": "Create a playbook definition with ordered steps that chain tool calls (requires NOW_ASSIST_ENABLED + WRITE_ENABLED)",
|
|
8916
|
+
"inputSchema": {
|
|
8917
|
+
"type": "object",
|
|
8918
|
+
"properties": {
|
|
8919
|
+
"name": {
|
|
8920
|
+
"type": "string",
|
|
8921
|
+
"description": "Playbook name"
|
|
8922
|
+
},
|
|
8923
|
+
"description": {
|
|
8924
|
+
"type": "string",
|
|
8925
|
+
"description": "Playbook description"
|
|
8926
|
+
},
|
|
8927
|
+
"steps": {
|
|
8928
|
+
"type": "array",
|
|
8929
|
+
"description": "Ordered list of playbook steps",
|
|
8930
|
+
"items": {
|
|
8931
|
+
"type": "object",
|
|
8932
|
+
"properties": {
|
|
8933
|
+
"tool_name": {
|
|
8934
|
+
"type": "string",
|
|
8935
|
+
"description": "Name of the tool to invoke"
|
|
8936
|
+
},
|
|
8937
|
+
"args_template": {
|
|
8938
|
+
"type": "object",
|
|
8939
|
+
"description": "Arguments template — can reference {{context.key}} or {{steps[N].result.key}}"
|
|
8940
|
+
},
|
|
8941
|
+
"condition": {
|
|
8942
|
+
"type": "string",
|
|
8943
|
+
"description": "Optional JS-like condition expression. Step runs only when truthy."
|
|
8944
|
+
},
|
|
8945
|
+
"on_error": {
|
|
8946
|
+
"type": "string",
|
|
8947
|
+
"enum": [
|
|
8948
|
+
"stop",
|
|
8949
|
+
"skip",
|
|
8950
|
+
"continue"
|
|
8951
|
+
],
|
|
8952
|
+
"description": "Error handling: stop (default), skip this step, or continue to next"
|
|
8953
|
+
}
|
|
8954
|
+
},
|
|
8955
|
+
"required": [
|
|
8956
|
+
"tool_name",
|
|
8957
|
+
"args_template"
|
|
8958
|
+
]
|
|
8959
|
+
}
|
|
8960
|
+
}
|
|
8961
|
+
},
|
|
8962
|
+
"required": [
|
|
8963
|
+
"name",
|
|
8964
|
+
"description",
|
|
8965
|
+
"steps"
|
|
8966
|
+
]
|
|
8967
|
+
}
|
|
8968
|
+
},
|
|
8969
|
+
{
|
|
8970
|
+
"name": "execute_playbook",
|
|
8971
|
+
"description": "Execute a playbook step by step, passing results forward through context (requires NOW_ASSIST_ENABLED). Supports dry_run.",
|
|
8972
|
+
"inputSchema": {
|
|
8973
|
+
"type": "object",
|
|
8974
|
+
"properties": {
|
|
8975
|
+
"playbook": {
|
|
8976
|
+
"type": "object",
|
|
8977
|
+
"description": "Playbook object with name, description, and steps array",
|
|
8978
|
+
"properties": {
|
|
8979
|
+
"name": {
|
|
8980
|
+
"type": "string"
|
|
8981
|
+
},
|
|
8982
|
+
"description": {
|
|
8983
|
+
"type": "string"
|
|
8984
|
+
},
|
|
8985
|
+
"steps": {
|
|
8986
|
+
"type": "array",
|
|
8987
|
+
"items": {
|
|
8988
|
+
"type": "object",
|
|
8989
|
+
"properties": {
|
|
8990
|
+
"tool_name": {
|
|
8991
|
+
"type": "string"
|
|
8992
|
+
},
|
|
8993
|
+
"args_template": {
|
|
8994
|
+
"type": "object"
|
|
8995
|
+
},
|
|
8996
|
+
"condition": {
|
|
8997
|
+
"type": "string"
|
|
8998
|
+
},
|
|
8999
|
+
"on_error": {
|
|
9000
|
+
"type": "string",
|
|
9001
|
+
"enum": [
|
|
9002
|
+
"stop",
|
|
9003
|
+
"skip",
|
|
9004
|
+
"continue"
|
|
9005
|
+
]
|
|
9006
|
+
}
|
|
9007
|
+
},
|
|
9008
|
+
"required": [
|
|
9009
|
+
"tool_name",
|
|
9010
|
+
"args_template"
|
|
9011
|
+
]
|
|
9012
|
+
}
|
|
9013
|
+
}
|
|
9014
|
+
},
|
|
9015
|
+
"required": [
|
|
9016
|
+
"steps"
|
|
9017
|
+
]
|
|
9018
|
+
},
|
|
9019
|
+
"context": {
|
|
9020
|
+
"type": "object",
|
|
9021
|
+
"description": "Initial context key-value pairs available to all steps"
|
|
9022
|
+
},
|
|
9023
|
+
"dry_run": {
|
|
9024
|
+
"type": "boolean",
|
|
9025
|
+
"description": "Preview execution plan without invoking tools (default true)"
|
|
9026
|
+
}
|
|
9027
|
+
},
|
|
9028
|
+
"required": [
|
|
9029
|
+
"playbook"
|
|
9030
|
+
]
|
|
9031
|
+
}
|
|
9032
|
+
},
|
|
9033
|
+
{
|
|
9034
|
+
"name": "list_playbooks",
|
|
9035
|
+
"description": "List stored playbook definitions from sys_hub_action_type_definition",
|
|
9036
|
+
"inputSchema": {
|
|
9037
|
+
"type": "object",
|
|
9038
|
+
"properties": {
|
|
9039
|
+
"limit": {
|
|
9040
|
+
"type": "number",
|
|
9041
|
+
"description": "Max records to return (default 25)"
|
|
9042
|
+
}
|
|
9043
|
+
},
|
|
9044
|
+
"required": []
|
|
9045
|
+
}
|
|
9046
|
+
},
|
|
9047
|
+
{
|
|
9048
|
+
"name": "discover_table",
|
|
9049
|
+
"description": "Discover a ServiceNow table schema and register dynamic CRUD tools for it. After discovery, new tools become available: dynamic_query_<table>, dynamic_get_<table>, dynamic_create_<table>, dynamic_update_<table>, dynamic_delete_<table>. Schemas are cached for 30 minutes.",
|
|
9050
|
+
"inputSchema": {
|
|
9051
|
+
"type": "object",
|
|
9052
|
+
"properties": {
|
|
9053
|
+
"table": {
|
|
9054
|
+
"type": "string",
|
|
9055
|
+
"description": "Table name to discover (e.g., \"u_custom_table\")"
|
|
9056
|
+
},
|
|
9057
|
+
"operations": {
|
|
9058
|
+
"type": "array",
|
|
9059
|
+
"description": "Operations to enable: query, get, create, update, delete. Default: all.",
|
|
9060
|
+
"items": {
|
|
9061
|
+
"type": "string",
|
|
9062
|
+
"enum": [
|
|
9063
|
+
"query",
|
|
9064
|
+
"get",
|
|
9065
|
+
"create",
|
|
9066
|
+
"update",
|
|
9067
|
+
"delete"
|
|
9068
|
+
]
|
|
9069
|
+
}
|
|
9070
|
+
}
|
|
9071
|
+
},
|
|
9072
|
+
"required": [
|
|
9073
|
+
"table"
|
|
9074
|
+
]
|
|
9075
|
+
}
|
|
8416
9076
|
}
|
|
8417
9077
|
]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bearer token authentication middleware for HTTP/SSE transport.
|
|
3
|
+
* Validates NOWAIKIT_API_KEY when set; skips auth in dev mode (no key configured).
|
|
4
|
+
*/
|
|
5
|
+
import type { IncomingMessage, ServerResponse } from 'http';
|
|
6
|
+
export interface AuthRequest extends IncomingMessage {
|
|
7
|
+
authenticated?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Express-compatible middleware that validates Bearer tokens.
|
|
11
|
+
* If NOWAIKIT_API_KEY is not set, all requests pass through (dev mode).
|
|
12
|
+
*/
|
|
13
|
+
export declare function authMiddleware(req: AuthRequest, res: ServerResponse, next: () => void): void;
|
|
14
|
+
/** Check if auth is required (API key is configured). */
|
|
15
|
+
export declare function isAuthRequired(): boolean;
|
|
16
|
+
//# sourceMappingURL=auth-middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-middleware.d.ts","sourceRoot":"","sources":["../../src/transport/auth-middleware.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE5D,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI,CAyB5F;AAED,yDAAyD;AACzD,wBAAgB,cAAc,IAAI,OAAO,CAExC"}
|