@mondaydotcomorg/atp-server 0.24.3 → 0.24.4
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/explorer/index.d.ts.map +1 -1
- package/dist/explorer/index.js +4 -3
- package/dist/explorer/index.js.map +1 -1
- package/dist/handlers/execute.handler.d.ts.map +1 -1
- package/dist/handlers/execute.handler.js +7 -1
- package/dist/handlers/execute.handler.js.map +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/explorer/index.ts +4 -2
- package/src/handlers/execute.handler.ts +7 -1
package/package.json
CHANGED
package/src/explorer/index.ts
CHANGED
|
@@ -81,8 +81,10 @@ export class ExplorerService {
|
|
|
81
81
|
context.allowedGroups.add(group.name);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
// Iterate already-filtered `allowedGroups` so per-tool rules
|
|
85
|
+
// filter operations WITHIN an allowed group (matches the pattern
|
|
86
|
+
// in `SearchEngine.search`).
|
|
87
|
+
for (const group of allowedGroups) {
|
|
86
88
|
if (group.functions) {
|
|
87
89
|
for (const func of group.functions) {
|
|
88
90
|
context.allowedTools.add(`${group.name}:${func.name}`);
|
|
@@ -122,7 +122,13 @@ export async function handleExecute(
|
|
|
122
122
|
provenanceHints: requestConfig.provenanceHints,
|
|
123
123
|
requestContext: {
|
|
124
124
|
...requestConfig.requestContext,
|
|
125
|
-
headers
|
|
125
|
+
// Merge caller-supplied headers with ctx.headers; ctx wins on
|
|
126
|
+
// conflicts so session auth takes precedence over app-layer keys.
|
|
127
|
+
headers: {
|
|
128
|
+
...(requestConfig.requestContext as { headers?: Record<string, string> } | undefined)
|
|
129
|
+
?.headers,
|
|
130
|
+
...ctx.headers,
|
|
131
|
+
},
|
|
126
132
|
path: ctx.path,
|
|
127
133
|
method: ctx.method,
|
|
128
134
|
},
|