@superglue/cli 1.1.6 → 1.1.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/.claude-plugin/plugin.json +1 -1
- package/dist/cli.js +7 -11
- package/dist/dist/cli.js +7 -11
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superglue",
|
|
3
3
|
"description": "Build, test, and manage superglue tools via the sg CLI. Use when working with superglue tools, systems, APIs, SDKs, or the sg command.",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.7",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "superglue",
|
|
7
7
|
"email": "hello@superglue.cloud"
|
package/dist/cli.js
CHANGED
|
@@ -21280,8 +21280,8 @@ var require_superglue_client = __commonJS({
|
|
|
21280
21280
|
};
|
|
21281
21281
|
}
|
|
21282
21282
|
/**
|
|
21283
|
-
* Execute a tool config without
|
|
21284
|
-
*
|
|
21283
|
+
* Execute a tool config directly without persisting the tool.
|
|
21284
|
+
* Optionally creates a run record when `createRun` is true.
|
|
21285
21285
|
*/
|
|
21286
21286
|
async runToolConfig(params) {
|
|
21287
21287
|
const path6 = params.createRun ? "/v1/tools/run?createRun=true" : "/v1/tools/run";
|
|
@@ -21785,7 +21785,7 @@ var import_node_util = require("util");
|
|
|
21785
21785
|
// package.json
|
|
21786
21786
|
var package_default = {
|
|
21787
21787
|
name: "@superglue/cli",
|
|
21788
|
-
version: "1.1.
|
|
21788
|
+
version: "1.1.7",
|
|
21789
21789
|
bin: {
|
|
21790
21790
|
sg: "./dist/cli.js"
|
|
21791
21791
|
},
|
|
@@ -22611,7 +22611,7 @@ function registerRunCommand(parent, getContext2) {
|
|
|
22611
22611
|
return arr;
|
|
22612
22612
|
},
|
|
22613
22613
|
[]
|
|
22614
|
-
).option("--include-step-results", "Include raw step results").option("--include-config", "Include full tool config").
|
|
22614
|
+
).option("--include-step-results", "Include raw step results").option("--include-config", "Include full tool config").action(async (opts) => {
|
|
22615
22615
|
const { config, client } = getContext2();
|
|
22616
22616
|
const selectors = [opts.tool, opts.draft, opts.config, opts.configFile].filter(Boolean);
|
|
22617
22617
|
if (selectors.length === 0) {
|
|
@@ -22622,10 +22622,6 @@ function registerRunCommand(parent, getContext2) {
|
|
|
22622
22622
|
error("Only one of --tool, --draft, --config, or --config-file can be used");
|
|
22623
22623
|
process.exit(1);
|
|
22624
22624
|
}
|
|
22625
|
-
if (opts.tool && opts.createRun === false) {
|
|
22626
|
-
error("--no-create-run is not supported with --tool (saved tools always create runs)");
|
|
22627
|
-
process.exit(1);
|
|
22628
|
-
}
|
|
22629
22625
|
const filePayloads = await parseFileFlags(opts.file, client);
|
|
22630
22626
|
let payload = opts.payloadFile ? JSON.parse(fs6.readFileSync(opts.payloadFile, "utf-8")) : opts.payload ? JSON.parse(opts.payload) : void 0;
|
|
22631
22627
|
if (payload) {
|
|
@@ -22652,7 +22648,7 @@ function registerRunCommand(parent, getContext2) {
|
|
|
22652
22648
|
payload,
|
|
22653
22649
|
options: { requestSource: import_shared4.RequestSource.CLI },
|
|
22654
22650
|
traceId,
|
|
22655
|
-
createRun:
|
|
22651
|
+
createRun: true
|
|
22656
22652
|
});
|
|
22657
22653
|
logSub.unsubscribe();
|
|
22658
22654
|
spin.stop();
|
|
@@ -23639,10 +23635,10 @@ All Commands:
|
|
|
23639
23635
|
sg tool build --id <id> --instruction <text> Build a tool from flags (requires --steps)
|
|
23640
23636
|
sg tool run --tool <id> [--payload <json>] Run a saved tool
|
|
23641
23637
|
sg tool run --draft <id> [--payload <json>] Run a draft tool
|
|
23642
|
-
sg tool run --config <json> [--
|
|
23638
|
+
sg tool run --config <json> [--payload <json>] Run inline config
|
|
23643
23639
|
sg tool edit --tool <id> --patches <json> Edit a tool via JSON Patch
|
|
23644
23640
|
sg tool edit --draft <id> --patches <json> Edit a draft via JSON Patch
|
|
23645
|
-
sg tool save --draft <id>
|
|
23641
|
+
sg tool save --draft <id> Save a draft to the server
|
|
23646
23642
|
sg tool list List all saved tools
|
|
23647
23643
|
sg tool find [query] Search tools by keyword
|
|
23648
23644
|
sg tool find --id <id> Get full config of a tool
|
package/dist/dist/cli.js
CHANGED
|
@@ -21280,8 +21280,8 @@ var require_superglue_client = __commonJS({
|
|
|
21280
21280
|
};
|
|
21281
21281
|
}
|
|
21282
21282
|
/**
|
|
21283
|
-
* Execute a tool config without
|
|
21284
|
-
*
|
|
21283
|
+
* Execute a tool config directly without persisting the tool.
|
|
21284
|
+
* Optionally creates a run record when `createRun` is true.
|
|
21285
21285
|
*/
|
|
21286
21286
|
async runToolConfig(params) {
|
|
21287
21287
|
const path6 = params.createRun ? "/v1/tools/run?createRun=true" : "/v1/tools/run";
|
|
@@ -21785,7 +21785,7 @@ var import_node_util = require("util");
|
|
|
21785
21785
|
// package.json
|
|
21786
21786
|
var package_default = {
|
|
21787
21787
|
name: "@superglue/cli",
|
|
21788
|
-
version: "1.1.
|
|
21788
|
+
version: "1.1.7",
|
|
21789
21789
|
bin: {
|
|
21790
21790
|
sg: "./dist/cli.js"
|
|
21791
21791
|
},
|
|
@@ -22611,7 +22611,7 @@ function registerRunCommand(parent, getContext2) {
|
|
|
22611
22611
|
return arr;
|
|
22612
22612
|
},
|
|
22613
22613
|
[]
|
|
22614
|
-
).option("--include-step-results", "Include raw step results").option("--include-config", "Include full tool config").
|
|
22614
|
+
).option("--include-step-results", "Include raw step results").option("--include-config", "Include full tool config").action(async (opts) => {
|
|
22615
22615
|
const { config, client } = getContext2();
|
|
22616
22616
|
const selectors = [opts.tool, opts.draft, opts.config, opts.configFile].filter(Boolean);
|
|
22617
22617
|
if (selectors.length === 0) {
|
|
@@ -22622,10 +22622,6 @@ function registerRunCommand(parent, getContext2) {
|
|
|
22622
22622
|
error("Only one of --tool, --draft, --config, or --config-file can be used");
|
|
22623
22623
|
process.exit(1);
|
|
22624
22624
|
}
|
|
22625
|
-
if (opts.tool && opts.createRun === false) {
|
|
22626
|
-
error("--no-create-run is not supported with --tool (saved tools always create runs)");
|
|
22627
|
-
process.exit(1);
|
|
22628
|
-
}
|
|
22629
22625
|
const filePayloads = await parseFileFlags(opts.file, client);
|
|
22630
22626
|
let payload = opts.payloadFile ? JSON.parse(fs6.readFileSync(opts.payloadFile, "utf-8")) : opts.payload ? JSON.parse(opts.payload) : void 0;
|
|
22631
22627
|
if (payload) {
|
|
@@ -22652,7 +22648,7 @@ function registerRunCommand(parent, getContext2) {
|
|
|
22652
22648
|
payload,
|
|
22653
22649
|
options: { requestSource: import_shared4.RequestSource.CLI },
|
|
22654
22650
|
traceId,
|
|
22655
|
-
createRun:
|
|
22651
|
+
createRun: true
|
|
22656
22652
|
});
|
|
22657
22653
|
logSub.unsubscribe();
|
|
22658
22654
|
spin.stop();
|
|
@@ -23639,10 +23635,10 @@ All Commands:
|
|
|
23639
23635
|
sg tool build --id <id> --instruction <text> Build a tool from flags (requires --steps)
|
|
23640
23636
|
sg tool run --tool <id> [--payload <json>] Run a saved tool
|
|
23641
23637
|
sg tool run --draft <id> [--payload <json>] Run a draft tool
|
|
23642
|
-
sg tool run --config <json> [--
|
|
23638
|
+
sg tool run --config <json> [--payload <json>] Run inline config
|
|
23643
23639
|
sg tool edit --tool <id> --patches <json> Edit a tool via JSON Patch
|
|
23644
23640
|
sg tool edit --draft <id> --patches <json> Edit a draft via JSON Patch
|
|
23645
|
-
sg tool save --draft <id>
|
|
23641
|
+
sg tool save --draft <id> Save a draft to the server
|
|
23646
23642
|
sg tool list List all saved tools
|
|
23647
23643
|
sg tool find [query] Search tools by keyword
|
|
23648
23644
|
sg tool find --id <id> Get full config of a tool
|