toolcraft 0.0.153 → 0.0.154
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/composition.json
CHANGED
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "toolcraft",
|
|
116
|
-
"version": "0.0.
|
|
116
|
+
"version": "0.0.154",
|
|
117
117
|
"license": "MIT"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"name": "toolcraft-schema",
|
|
126
|
-
"version": "0.0.
|
|
126
|
+
"version": "0.0.154",
|
|
127
127
|
"license": "MIT"
|
|
128
128
|
},
|
|
129
129
|
{
|
package/dist/cli.js
CHANGED
|
@@ -628,6 +628,9 @@ function isNegativeNumericArrayToken(token, schema) {
|
|
|
628
628
|
return (items.length > 0 && items.every((item) => isValidNumberSchemaValue(Number(item), itemSchema)));
|
|
629
629
|
}
|
|
630
630
|
function isNextArrayOptionToken(token, schema) {
|
|
631
|
+
if (token === "-" && unwrapOptional(schema.item).kind === "string") {
|
|
632
|
+
return false;
|
|
633
|
+
}
|
|
631
634
|
return token.startsWith("-") && !isNegativeNumericArrayToken(token, schema);
|
|
632
635
|
}
|
|
633
636
|
function validateArrayBounds(value, schema, label) {
|
|
@@ -3595,7 +3598,9 @@ function renderHttpError(error, options) {
|
|
|
3595
3598
|
else {
|
|
3596
3599
|
lines.push(`Response body: ${formatHttpErrorSnippet(error.response.body)}`);
|
|
3597
3600
|
}
|
|
3598
|
-
|
|
3601
|
+
if (options.verboseControlEnabled) {
|
|
3602
|
+
lines.push("Re-run with --verbose to see headers and full body.");
|
|
3603
|
+
}
|
|
3599
3604
|
}
|
|
3600
3605
|
process.stderr.write(`${lines.join("\n")}\n`);
|
|
3601
3606
|
const stack = error instanceof Error ? error.stack : undefined;
|
|
@@ -4045,6 +4050,7 @@ export async function runCLI(roots, options = {}) {
|
|
|
4045
4050
|
? resolveOutput(resolvedFlags)
|
|
4046
4051
|
: resolveOutputFromArgv(argv, controls.outputFormats),
|
|
4047
4052
|
verbose: resolvedFlags ? Boolean(resolvedFlags.verbose) : argv.includes("--verbose"),
|
|
4053
|
+
verboseControlEnabled: controls.verbose,
|
|
4048
4054
|
program,
|
|
4049
4055
|
argv,
|
|
4050
4056
|
rootUsageName,
|
package/dist/composition.json
CHANGED
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "toolcraft",
|
|
116
|
-
"version": "0.0.
|
|
116
|
+
"version": "0.0.154",
|
|
117
117
|
"license": "MIT"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"name": "toolcraft-schema",
|
|
126
|
-
"version": "0.0.
|
|
126
|
+
"version": "0.0.154",
|
|
127
127
|
"license": "MIT"
|
|
128
128
|
},
|
|
129
129
|
{
|
package/dist/renderer.js
CHANGED
|
@@ -129,24 +129,11 @@ function displayScalar(value) {
|
|
|
129
129
|
}
|
|
130
130
|
return stringifyValue(value) || "—";
|
|
131
131
|
}
|
|
132
|
-
function isUrl(value) {
|
|
133
|
-
return typeof value === "string" && (value.startsWith("https://") || value.startsWith("http://"));
|
|
134
|
-
}
|
|
135
|
-
function compactUrl(value) {
|
|
136
|
-
try {
|
|
137
|
-
const url = new URL(value);
|
|
138
|
-
const tail = url.pathname.split("/").filter(Boolean).at(-1);
|
|
139
|
-
return tail ? `${url.hostname}/…/${tail}` : url.hostname;
|
|
140
|
-
}
|
|
141
|
-
catch {
|
|
142
|
-
return value;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
132
|
function stackedList(value) {
|
|
146
133
|
return value.map((entry) => displayScalar(entry)).join("\n") || "—";
|
|
147
134
|
}
|
|
148
135
|
function displayRowValue(value) {
|
|
149
|
-
return
|
|
136
|
+
return displayScalar(value);
|
|
150
137
|
}
|
|
151
138
|
function directScalarRows(result) {
|
|
152
139
|
return Object.entries(result)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcraft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.154",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"yaml"
|
|
159
159
|
],
|
|
160
160
|
"optionalDependencies": {
|
|
161
|
-
"toolcraft-schema": "0.0.
|
|
161
|
+
"toolcraft-schema": "0.0.154",
|
|
162
162
|
"toolcraft-design": "*",
|
|
163
163
|
"@poe-code/frontmatter": "*",
|
|
164
164
|
"@poe-code/agent-mcp-config": "*",
|