pptb-standard-sample-tool 1.2.5 → 1.2.7
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/headless.js +5 -1
- package/package.json +1 -1
package/dist/headless.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/// <reference types="@pptb/types" />
|
|
2
3
|
/**
|
|
3
4
|
* Headless invocation handler.
|
|
@@ -5,7 +6,7 @@
|
|
|
5
6
|
* Builds a FetchXML query for the supplied entity name and returns it
|
|
6
7
|
* so MCP agents can consume it without opening the tool UI.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
async function invokeHeadless(input, context) {
|
|
9
10
|
const { toolId, toolName, invocationMode, authToken, updateProgress, logger } = context;
|
|
10
11
|
logger.info(`Starting headless run for ${toolName} (${toolId}) in mode ${invocationMode}`);
|
|
11
12
|
updateProgress(10, "validating input");
|
|
@@ -28,3 +29,6 @@ export async function invokeHeadless(input, context) {
|
|
|
28
29
|
logger.info(`Headless run complete for entity: ${entityName}`);
|
|
29
30
|
return { fetchXml };
|
|
30
31
|
}
|
|
32
|
+
module.exports = {
|
|
33
|
+
invokeHeadless,
|
|
34
|
+
};
|
package/package.json
CHANGED