@jupiterone/jupiterone-mcp 2.3.0 → 2.3.2
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/generated/description-map.d.ts.map +1 -1
- package/dist/generated/description-map.js +27 -41
- package/dist/generated/description-map.js.map +1 -1
- package/dist/server/tools/account.d.ts.map +1 -1
- package/dist/server/tools/account.js +7 -2
- package/dist/server/tools/account.js.map +1 -1
- package/dist/server/tools/types.d.ts +10 -1
- package/dist/server/tools/types.d.ts.map +1 -1
- package/dist/server/tools/types.js +21 -3
- package/dist/server/tools/types.js.map +1 -1
- package/node_modules/dtrace-provider/build/Makefile +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-map.d.ts","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"description-map.d.ts","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAq2GjD,CAAC"}
|
|
@@ -98,7 +98,6 @@ The following values are supported for the \`type\` property when creating a wid
|
|
|
98
98
|
|
|
99
99
|
\`\`\`typescript
|
|
100
100
|
export enum ChartType {
|
|
101
|
-
Area = 'area',
|
|
102
101
|
Bar = 'bar',
|
|
103
102
|
Graph = 'graph',
|
|
104
103
|
Line = 'line',
|
|
@@ -111,6 +110,9 @@ export enum ChartType {
|
|
|
111
110
|
}
|
|
112
111
|
\`\`\`
|
|
113
112
|
|
|
113
|
+
\`area\` is not supported: the API stores an area widget but it renders nothing, so this tool
|
|
114
|
+
refuses \`type: "area"\`. Use \`bar\` or \`line\`.
|
|
115
|
+
|
|
114
116
|
## Example Usage
|
|
115
117
|
\`\`\`json
|
|
116
118
|
{
|
|
@@ -171,8 +173,8 @@ and the write still returns success. The response names anything it discarded; r
|
|
|
171
173
|
- **\`decimalLimit\`** — \`0\`, \`1\`, \`2\`, \`3\` or \`4\`: decimal places on the data labels. Accepted on
|
|
172
174
|
\`bar\`, \`line\`, \`number\` and \`pie\`. Counts want \`0\`.
|
|
173
175
|
- **Readability** — \`showDataLabels\` (bool), \`dataLabelUnit\` (\`'%'\`, \`'$'\`, \`'#'\` or \`''\`) and
|
|
174
|
-
\`chartFontSize\` (\`'small'\`, \`'medium'\`, \`'large'\`) on \`bar\`, \`line
|
|
175
|
-
\`xAxisLabel\` and \`yAxisLabel\` (strings) on \`bar
|
|
176
|
+
\`chartFontSize\` (\`'small'\`, \`'medium'\`, \`'large'\`) on \`bar\`, \`line\` and \`pie\`;
|
|
177
|
+
\`xAxisLabel\` and \`yAxisLabel\` (strings) on \`bar\` and \`line\`. Axis labels are worth the
|
|
176
178
|
two keys — \`x\` and \`y\` tell a reader nothing.
|
|
177
179
|
|
|
178
180
|
## Number
|
|
@@ -462,25 +464,8 @@ Find Person as p that is User as u
|
|
|
462
464
|
---
|
|
463
465
|
|
|
464
466
|
## Area Chart
|
|
465
|
-
The area chart is a graph that combines a line chart and a bar chart to show changes in quantities over time. This chart requires the assets in the query to have relevant dates in their properties. For the best results, these charts can be generated by J1 Questions that have trend collection enabled. (This will soon be available straight from Insights.)
|
|
466
|
-
|
|
467
|
-
### Query Requirements
|
|
468
467
|
**Not a supported Insights widget type, and \`type: "area"\` is refused.** JupiterOne's documentation lists Number, Pie, Line, Bar, Matrix, Table, Graph and Status, and says "Area Chart is coming soon" — today an area trend comes from a Question. The API accepts an area widget and it renders nothing, so no column arrangement can fix it. Use \`bar\` or \`line\` instead.
|
|
469
468
|
|
|
470
|
-
### Example Queries
|
|
471
|
-
**Top 5 most open PRs by Person:**
|
|
472
|
-
\`\`\`j1ql
|
|
473
|
-
FIND Person AS p
|
|
474
|
-
THAT IS User AS u
|
|
475
|
-
THAT opened PR
|
|
476
|
-
WITH state='OPEN' AS pr
|
|
477
|
-
RETURN
|
|
478
|
-
p.displayName AS x,
|
|
479
|
-
count(pr) AS y
|
|
480
|
-
ORDER BY y DESC
|
|
481
|
-
LIMIT 5
|
|
482
|
-
\`\`\`
|
|
483
|
-
|
|
484
469
|
---
|
|
485
470
|
|
|
486
471
|
## Markdown Chart
|
|
@@ -1887,17 +1872,19 @@ Full detail, with a known internet-facing asset:
|
|
|
1887
1872
|
`,
|
|
1888
1873
|
"list-accounts.md": `# List Accounts Tool
|
|
1889
1874
|
|
|
1890
|
-
List the JupiterOne accounts the authenticated user can access. Returns each account's \`accountId\`, a human-readable \`displayName\`, and — when the host can construct one — \`mcpUrl\`,
|
|
1875
|
+
List the JupiterOne accounts the authenticated user can access. Returns each account's \`accountId\`, a human-readable \`displayName\`, and — when the host can construct one — \`mcpUrl\`, a connector URL pinned to that account. The list is scoped to the user's memberships. Membership is not a guarantee of live access, though — an account may still reject the connection if access was revoked or disabled, or if it requires a different sign-in method such as SSO.
|
|
1891
1876
|
|
|
1892
1877
|
## When to use
|
|
1893
1878
|
|
|
1894
|
-
- Call this **first** when
|
|
1879
|
+
- Call this **first** when other tools ask for an \`accountId\` and the user has not named one.
|
|
1895
1880
|
- Use it to map an account **name** the user mentions to the \`accountId\` those tools require — always pass the \`accountId\`, never the display name.
|
|
1896
|
-
- When a
|
|
1881
|
+
- When a data tool returns "Not authorized", recovery depends on the connection:
|
|
1882
|
+
- **Tools take an \`accountId\`:** retry with another \`accountId\` from this list. The connection itself is fine; do not ask the user to change it.
|
|
1883
|
+
- **The connection is pinned** (tools take no \`accountId\`, and the error names the pinned account): give the user the \`mcpUrl\` of an account they can access so they can update the connector.
|
|
1897
1884
|
|
|
1898
1885
|
## Working across multiple accounts
|
|
1899
1886
|
|
|
1900
|
-
|
|
1887
|
+
When tools take an \`accountId\`, each call acts on **one** account. To operate across several accounts the user can access — for example "check this across all my accounts" — call this tool, then repeat the target tool once per \`accountId\` and aggregate the results.
|
|
1901
1888
|
|
|
1902
1889
|
## Parameters
|
|
1903
1890
|
|
|
@@ -1925,17 +1912,14 @@ Request the first 5 active alerts:
|
|
|
1925
1912
|
\`\`\``,
|
|
1926
1913
|
"list-entity-types.md": `# JupiterOne Entity Types Discoverer
|
|
1927
1914
|
|
|
1928
|
-
**Purpose**:
|
|
1915
|
+
**Purpose**: Lists the entity classes and types in your JupiterOne account's entity index, with a count for each. Use it to find the classes and types to name in a J1QL query before you write one.
|
|
1929
1916
|
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
This tool provides a comprehensive count of all entity classes and types in your account using an efficient GraphQL query.
|
|
1917
|
+
Run this before writing J1QL queries. A query that names a class or type the account does not hold returns nothing, and guessing names from memory is how that happens.
|
|
1933
1918
|
|
|
1934
1919
|
## Features
|
|
1935
|
-
- Returns
|
|
1936
|
-
- Shows counts for each class and type
|
|
1920
|
+
- Returns the entity classes and types in the account's index, with a count for each
|
|
1937
1921
|
- Provides results as key-value pairs for easy lookup
|
|
1938
|
-
-
|
|
1922
|
+
- One call, no pagination
|
|
1939
1923
|
|
|
1940
1924
|
## Example Usage
|
|
1941
1925
|
|
|
@@ -1967,15 +1951,16 @@ Example response:
|
|
|
1967
1951
|
\`\`\`
|
|
1968
1952
|
|
|
1969
1953
|
## Use Cases
|
|
1970
|
-
-
|
|
1954
|
+
- Run this before writing J1QL queries to see which entities the account holds
|
|
1971
1955
|
- Discovering available entity types before writing J1QL queries
|
|
1972
1956
|
- Finding integration-specific entities (e.g., all Snyk entities)
|
|
1973
1957
|
- Understanding your data model and available entity types
|
|
1974
1958
|
- Exploring what data is available from specific integrations
|
|
1975
1959
|
|
|
1976
|
-
## Why
|
|
1960
|
+
## Why run it first
|
|
1961
|
+
|
|
1962
|
+
J1QL queries name entity classes (like \`User\`, \`Device\`, \`Finding\`) or entity types (like \`aws_instance\`, \`github_user\`). This tool shows which of them the account holds, so a query names ones that exist instead of guessing.
|
|
1977
1963
|
|
|
1978
|
-
When writing J1QL queries, you need to specify entity classes (like \`User\`, \`Device\`, \`Finding\`) or entity types (like \`aws_instance\`, \`github_user\`). Without running this tool first, you're essentially guessing what entities exist in your account. This tool provides the complete list of valid entity classes and types that you can query, ensuring your J1QL queries will actually find and return data.
|
|
1979
1964
|
## Treat this list as a positive check, not a complete one
|
|
1980
1965
|
|
|
1981
1966
|
The counts come from a stored index, and it is not a superset of the graph: measured on a live
|
|
@@ -2148,7 +2133,7 @@ design the board on paper before creating anything.
|
|
|
2148
2133
|
→ orange → blue, gray for neutral/"other" — color follows meaning, never decoration, and
|
|
2149
2134
|
never a rainbow of arbitrary hues.
|
|
2150
2135
|
- **Formatting**: \`decimalLimit\` (0–4) so figures read precisely; \`dataLabelUnit\` ('%', '$',
|
|
2151
|
-
'#') on \`bar\`/\`line\`/\`
|
|
2136
|
+
'#') on \`bar\`/\`line\`/\`pie\` where the unit is not obvious — a \`number\` tile takes
|
|
2152
2137
|
\`currencyFormat\` instead, and percentage mode renders its own \`%\`; axis labels on
|
|
2153
2138
|
\`bar\`/\`line\` when the axes need naming.
|
|
2154
2139
|
- **\`drilldownQuery\`** on every counting query: the J1QL a reader lands on when they click the
|
|
@@ -2313,12 +2298,13 @@ that is never populated) and merely notes it otherwise. Build in this order:
|
|
|
2313
2298
|
\`create-dashboard\` → \`create-dashboard-widget\` once per widget → \`update-dashboard\` with
|
|
2314
2299
|
\`autoLayout\`. Never leave widgets at their default size.
|
|
2315
2300
|
|
|
2316
|
-
## One
|
|
2301
|
+
## One call, one account
|
|
2317
2302
|
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
\`test-connection\`; validating against a demo or dev tenant
|
|
2321
|
-
is the most expensive mistake available here, because
|
|
2303
|
+
Every call acts on one account — there is no cross-account query. A connection is either pinned
|
|
2304
|
+
to one account or takes an \`accountId\` on every tool. Before presenting findings as a customer's,
|
|
2305
|
+
confirm which account you are on with \`test-connection\`; validating against a demo or dev tenant
|
|
2306
|
+
and delivering the result as production is the most expensive mistake available here, because
|
|
2307
|
+
nothing about the output looks wrong.
|
|
2322
2308
|
|
|
2323
2309
|
## Paging differs by tool
|
|
2324
2310
|
|
|
@@ -2378,7 +2364,7 @@ None required.
|
|
|
2378
2364
|
- \`permissions.hasBroadAccess\`: true when the caller holds the \`accessAdmin\` statement. It is one signal among several the authorizer uses, so \`false\` does not mean restricted — sessions with \`hasBroadAccess: false\` and every area \`false\` have created, updated and deleted dashboards. **Never refuse an operation on the basis of either field.** Attempt it and let the API answer.
|
|
2379
2365
|
|
|
2380
2366
|
## Failure
|
|
2381
|
-
A failed test returns an error result whose text explains why and what to do next. When the failure is an authorization rejection and account discovery is available, the text
|
|
2367
|
+
A failed test returns an error result whose text explains why and what to do next. When the failure is an authorization rejection and account discovery is available, the text lists the accounts your sign-in CAN access. If tools take an \`accountId\`, retry with one of those — the connection itself needs no change. If the connection is pinned, the list carries each account's connector URL — relay it so the user can fix the connector's account binding. Do not loop on re-authentication: if the text says the pinned account is inaccessible, re-authenticating will not fix it.
|
|
2382
2368
|
`,
|
|
2383
2369
|
"update-dashboard-widget.md": `# Update Dashboard Widget Tool
|
|
2384
2370
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-map.js","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC9B,QAAA,cAAc,GAA2B;IACpD,0BAA0B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C7B;IACC,4BAA4B,EAAE
|
|
1
|
+
{"version":3,"file":"description-map.js","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC9B,QAAA,cAAc,GAA2B;IACpD,0BAA0B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C7B;IACC,4BAA4B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,MAAM,EAAE,WAAW,CAAC,CAe7B;AAiBD,eAAO,MAAM,YAAY,EAAE,cAAc,EAiFxC,CAAC"}
|
|
@@ -124,14 +124,19 @@ exports.accountTools = [
|
|
|
124
124
|
? error.message
|
|
125
125
|
: 'Unknown error';
|
|
126
126
|
// On an authz failure with discovery available, list what the caller CAN reach — this turns a
|
|
127
|
-
// wrong-account binding from a multi-day loop into a one-shot diagnosis.
|
|
127
|
+
// wrong-account binding from a multi-day loop into a one-shot diagnosis. Connector URLs are
|
|
128
|
+
// the fix only for a pinned connection. A multi-tenant one recovers by passing another
|
|
129
|
+
// accountId, and its own URL may be unchangeable (an OpenAI directory listing's is), so
|
|
130
|
+
// naming per-account URLs there steers the user off a connection that works.
|
|
128
131
|
if (deniedStatus !== null && context.resolveAccounts) {
|
|
129
132
|
const accounts = await context.resolveAccounts().catch(() => null);
|
|
130
133
|
if (accounts && accounts.length > 0) {
|
|
134
|
+
const withUrl = !!context.pinnedAccountId;
|
|
131
135
|
reason +=
|
|
132
136
|
'\n\nAccounts your sign-in can access:\n' +
|
|
133
137
|
accounts
|
|
134
|
-
.map((a) => `- ${a.displayName} (${a.accountId})
|
|
138
|
+
.map((a) => `- ${a.displayName} (${a.accountId})` +
|
|
139
|
+
(withUrl && a.mcpUrl ? ` — ${a.mcpUrl}` : ''))
|
|
135
140
|
.join('\n');
|
|
136
141
|
}
|
|
137
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/server/tools/account.ts"],"names":[],"mappings":";;;AA+CA,gDAEC;AASD,wDAiBC;AA3ED,6BAAwB;AACxB,wDAAgD;AAChD,yEAAkE;AAClE,2CAAsE;AACtE,2CAA+C;AAC/C,yCAAwE;AAExE,MAAM,uBAAuB,GAAG,OAAC,CAAC,WAAW,CAAC;IAC5C,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;IACnB,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;IACjB,MA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CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAChD;qCACA,IAAI,CAAC,IAAI,CAAC,CAAC;oBAClB,CAAC;gBACH,CAAC;gBACD,OAAO;oBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,MAAM,EAAE,EAAE,CAAC;oBACtE,OAAO,EAAE,IAAI;iBACd,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC;IACF,IAAA,qBAAU,EAAC;QACT,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,IAAA,qCAAe,EAAC,kBAAkB,CAAC;QAChD,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,kBAAkB;QAChC,WAAW,EAAE,oBAAS;QACtB,eAAe,EAAE,IAAI;QACrB,uBAAuB,EAAE,IAAI;QAC7B,YAAY,EAAE,yBAAyB;QACvC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;YACvD,MAAM,QAAQ,GAAG,CAAC,MAAM,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;YAC3D,OAAO,IAAA,4BAAgB,EAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACxC,CAAC;KACF,CAAC;CACH,CAAC"}
|
|
@@ -81,7 +81,16 @@ export interface ToolDefinition<T extends z.ZodRawShape = z.ZodRawShape> {
|
|
|
81
81
|
* widening the result so heterogeneous tools collect into one `ToolDefinition[]`.
|
|
82
82
|
*/
|
|
83
83
|
export declare function defineTool<T extends z.ZodRawShape>(def: ToolDefinition<T>): ToolDefinition;
|
|
84
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* Annotation presets. A read tool, a pure create, and a state-mutating call (update/evaluate).
|
|
86
|
+
*
|
|
87
|
+
* Every preset states all three of readOnlyHint, destructiveHint and openWorldHint: the OpenAI
|
|
88
|
+
* plugin directory rejects a tool that leaves any of them implicit (`annotations_required`).
|
|
89
|
+
* openWorldHint is false throughout because every tool acts inside the caller's JupiterOne
|
|
90
|
+
* account. That includes the rule tools: the email, webhook and ticket actions a rule can carry
|
|
91
|
+
* are treated as effects of the rule, not of the tool call (decided 2026-09-30, when preparing
|
|
92
|
+
* the OpenAI directory submission), so those tools keep the CREATE / MUTATE presets.
|
|
93
|
+
*/
|
|
85
94
|
export declare const READ_ONLY: ToolAnnotations;
|
|
86
95
|
export declare const CREATE: ToolAnnotations;
|
|
87
96
|
export declare const MUTATE: ToolAnnotations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/server/tools/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,yFAAyF;AACzF,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2FAA2F;IAC3F,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,EAAE,CAAC;CACzD;AAED,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,CAAC,cAAc,EAAE,CAAC,CAA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eAAO,MAAM,MAAM,EAAE,eAKpB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,eAIpB,CAAC"}
|
|
@@ -9,14 +9,32 @@ exports.defineTool = defineTool;
|
|
|
9
9
|
function defineTool(def) {
|
|
10
10
|
return def;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Annotation presets. A read tool, a pure create, and a state-mutating call (update/evaluate).
|
|
14
|
+
*
|
|
15
|
+
* Every preset states all three of readOnlyHint, destructiveHint and openWorldHint: the OpenAI
|
|
16
|
+
* plugin directory rejects a tool that leaves any of them implicit (`annotations_required`).
|
|
17
|
+
* openWorldHint is false throughout because every tool acts inside the caller's JupiterOne
|
|
18
|
+
* account. That includes the rule tools: the email, webhook and ticket actions a rule can carry
|
|
19
|
+
* are treated as effects of the rule, not of the tool call (decided 2026-09-30, when preparing
|
|
20
|
+
* the OpenAI directory submission), so those tools keep the CREATE / MUTATE presets.
|
|
21
|
+
*/
|
|
22
|
+
exports.READ_ONLY = {
|
|
23
|
+
readOnlyHint: true,
|
|
24
|
+
destructiveHint: false,
|
|
25
|
+
openWorldHint: false,
|
|
26
|
+
};
|
|
14
27
|
// Repeating a create makes a second object rather than converging on one state — which is exactly
|
|
15
28
|
// how a lost response turns into a duplicate widget, so the hint is worth stating.
|
|
16
29
|
exports.CREATE = {
|
|
17
30
|
readOnlyHint: false,
|
|
18
31
|
destructiveHint: false,
|
|
19
32
|
idempotentHint: false,
|
|
33
|
+
openWorldHint: false,
|
|
34
|
+
};
|
|
35
|
+
exports.MUTATE = {
|
|
36
|
+
readOnlyHint: false,
|
|
37
|
+
destructiveHint: true,
|
|
38
|
+
openWorldHint: false,
|
|
20
39
|
};
|
|
21
|
-
exports.MUTATE = { readOnlyHint: false, destructiveHint: true };
|
|
22
40
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/server/tools/types.ts"],"names":[],"mappings":";;;AA+FA,gCAEC;AAND;;;GAGG;AACH,SAAgB,UAAU,CAA0B,GAAsB;IACxE,OAAO,GAAgC,CAAC;AAC1C,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/server/tools/types.ts"],"names":[],"mappings":";;;AA+FA,gCAEC;AAND;;;GAGG;AACH,SAAgB,UAAU,CAA0B,GAAsB;IACxE,OAAO,GAAgC,CAAC;AAC1C,CAAC;AAED;;;;;;;;;GASG;AACU,QAAA,SAAS,GAAoB;IACxC,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,KAAK;CACrB,CAAC;AACF,kGAAkG;AAClG,mFAAmF;AACtE,QAAA,MAAM,GAAoB;IACrC,YAAY,EAAE,KAAK;IACnB,eAAe,EAAE,KAAK;IACtB,cAAc,EAAE,KAAK;IACrB,aAAa,EAAE,KAAK;CACrB,CAAC;AACW,QAAA,MAAM,GAAoB;IACrC,YAAY,EAAE,KAAK;IACnB,eAAe,EAAE,IAAI;IACrB,aAAa,EAAE,KAAK;CACrB,CAAC"}
|
|
@@ -339,7 +339,7 @@ endif
|
|
|
339
339
|
|
|
340
340
|
quiet_cmd_regen_makefile = ACTION Regenerating $@
|
|
341
341
|
cmd_regen_makefile = cd $(srcdir); /opt/hostedtoolcache/node/20.20.2/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/runner/.cache/node-gyp/20.20.2" "-Dnode_gyp_dir=/opt/hostedtoolcache/node/20.20.2/x64/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/home/runner/.cache/node-gyp/20.20.2/<(target_arch)/node.lib" "-Dmodule_root_dir=/home/runner/work/jupiterone-mcp-server/jupiterone-mcp-server/node_modules/dtrace-provider" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/home/runner/work/jupiterone-mcp-server/jupiterone-mcp-server/node_modules/dtrace-provider/build/config.gypi -I/opt/hostedtoolcache/node/20.20.2/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/runner/.cache/node-gyp/20.20.2/include/node/common.gypi "--toplevel-dir=." binding.gyp
|
|
342
|
-
Makefile: $(srcdir)
|
|
342
|
+
Makefile: $(srcdir)/build/config.gypi $(srcdir)/binding.gyp $(srcdir)/../../../../../../../opt/hostedtoolcache/node/20.20.2/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/../../../../../.cache/node-gyp/20.20.2/include/node/common.gypi
|
|
343
343
|
$(call do_cmd,regen_makefile)
|
|
344
344
|
|
|
345
345
|
# "all" is a concatenation of the "all" targets from all the included
|