@kernlang/protocol 2.0.0 → 3.1.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/draft-protocol.js +1 -1
- package/package.json +5 -2
package/dist/draft-protocol.js
CHANGED
|
@@ -103,7 +103,7 @@ export function parseKernDraft(output) {
|
|
|
103
103
|
const stepsMatch = body.match(/steps\s*\{([\s\S]*?)\}/);
|
|
104
104
|
if (stepsMatch) {
|
|
105
105
|
const stepsBody = stepsMatch[1];
|
|
106
|
-
const stepEntries = [...stepsBody.matchAll(/\d+\s
|
|
106
|
+
const stepEntries = [...stepsBody.matchAll(/\d+\s?:\s?"([^"]*?)"/g)];
|
|
107
107
|
draft.steps = stepEntries.map(m => m[1]);
|
|
108
108
|
}
|
|
109
109
|
// Validate: must have at least an approach
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernlang/protocol",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Kern draft protocol — structured AI communication format",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
|
-
".":
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
10
13
|
},
|
|
11
14
|
"files": [
|
|
12
15
|
"dist"
|