@llm4ts/shell 3.2.0 → 3.2.1
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.
|
@@ -54,6 +54,17 @@ export const soapCall = defineTool({
|
|
|
54
54
|
const context = yield* ToolContext;
|
|
55
55
|
const live = yield* SoapTransport;
|
|
56
56
|
const fail = (message) => new ToolError({ tool: name, message });
|
|
57
|
+
// Each name becomes a path segment under .llm4ts/soap/: one plain word each.
|
|
58
|
+
for (const [field, value] of [
|
|
59
|
+
["service", input.service],
|
|
60
|
+
["operation", input.operation],
|
|
61
|
+
["request", input.request],
|
|
62
|
+
["env", input.env ?? "dev"]
|
|
63
|
+
]) {
|
|
64
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9_.-]*$/u.test(value) || value.includes("..")) {
|
|
65
|
+
return yield* fail(`--${field} '${value}' is not a plain name`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
57
68
|
const workspace = yield* makeNodeWorkspace(context.projectRoot).pipe(Effect.mapError((error) => fail(error.message)));
|
|
58
69
|
const catalog = yield* loadCatalog(workspace, input.service).pipe(Effect.mapError(() => fail(`no catalog for service '${input.service}'; run soap-discover first`)));
|
|
59
70
|
const operations = yield* loadOperationsFile(workspace, input.service).pipe(Effect.mapError((error) => fail(error.message)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llm4ts/shell",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Interactive shell and CLI for llm4ts: flow discovery, run-a-flow, and view",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@effect/platform-node": "4.0.0",
|
|
63
63
|
"@effect/platform-node-shared": "4.0.0",
|
|
64
|
-
"@llm4ts/core": "3.2.
|
|
65
|
-
"@llm4ts/flow": "3.2.
|
|
66
|
-
"@llm4ts/runner": "3.2.
|
|
64
|
+
"@llm4ts/core": "3.2.1",
|
|
65
|
+
"@llm4ts/flow": "3.2.1",
|
|
66
|
+
"@llm4ts/runner": "3.2.1"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"effect": "4.0.0"
|