@agentsmarket/pipeline-runtime 0.1.10 → 0.2.0
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/stages.js +14 -1
- package/package.json +3 -3
- package/bin/webhook.mjs +0 -11
package/dist/stages.js
CHANGED
|
@@ -85,7 +85,7 @@ export function parseUsesList(stage) {
|
|
|
85
85
|
return [];
|
|
86
86
|
}
|
|
87
87
|
function getPath(obj, dotted) {
|
|
88
|
-
const parts = dotted.
|
|
88
|
+
const parts = dotted.match(/[^.\[]+|\[\*\]/g)?.map((p) => (p === '[*]' ? '*' : p)) ?? [];
|
|
89
89
|
let cursor = obj;
|
|
90
90
|
for (let i = 0; i < parts.length; i++) {
|
|
91
91
|
if (cursor == null)
|
|
@@ -94,6 +94,19 @@ function getPath(obj, dotted) {
|
|
|
94
94
|
return { found: false, reason: `expected object at segment '${parts[i]}', got ${typeof cursor}` };
|
|
95
95
|
}
|
|
96
96
|
const key = parts[i];
|
|
97
|
+
if (key === '*') {
|
|
98
|
+
if (!Array.isArray(cursor)) {
|
|
99
|
+
return { found: false, reason: `expected array at segment '${parts[i - 1]}' for wildcard, got ${typeof cursor}` };
|
|
100
|
+
}
|
|
101
|
+
const restPath = parts.slice(i + 1).join('.');
|
|
102
|
+
for (let j = 0; j < cursor.length; j++) {
|
|
103
|
+
const itemResult = getPath(cursor[j], restPath);
|
|
104
|
+
if (!itemResult.found) {
|
|
105
|
+
return { found: false, reason: `array item [${j}]: ${itemResult.reason}` };
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return { found: true, reason: '' };
|
|
109
|
+
}
|
|
97
110
|
if (Array.isArray(cursor)) {
|
|
98
111
|
const idx = Number(key);
|
|
99
112
|
if (!Number.isInteger(idx) || idx < 0 || idx >= cursor.length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentsmarket/pipeline-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Runtime for executing PIPELINE.md workflows (multi-skill orchestration). Provider-agnostic (MiniMax, Claude, OpenAI).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"node": ">=20"
|
|
38
38
|
},
|
|
39
39
|
"bin": {
|
|
40
|
-
"pipeline-webhook": "./
|
|
40
|
+
"pipeline-webhook": "./dist/webhook.js"
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
}
|
package/bin/webhook.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Bob's Pipeline Webhook — bootable HTTP server.
|
|
4
|
-
* Run: node bin/webhook.mjs
|
|
5
|
-
*/
|
|
6
|
-
import { serve } from '@hono/node-server';
|
|
7
|
-
import app from '../dist/webhook.js';
|
|
8
|
-
|
|
9
|
-
serve({ fetch: app.fetch, port: app.port }, (info) => {
|
|
10
|
-
console.log(`[ready] http://localhost:${info.port}`);
|
|
11
|
-
});
|