@pinelabs/skills-cli 0.0.0-stage → 0.5.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/CHANGELOG.md +28 -0
- package/README.md +144 -2
- package/dist/agents.d.ts +26 -0
- package/dist/agents.js +74 -0
- package/dist/args.d.ts +5 -0
- package/dist/args.js +40 -0
- package/dist/artifacts.d.ts +16 -0
- package/dist/artifacts.js +206 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +86 -0
- package/dist/core.d.ts +111 -0
- package/dist/core.js +140 -0
- package/dist/engine.d.ts +18 -0
- package/dist/engine.js +275 -0
- package/dist/transaction.d.ts +19 -0
- package/dist/transaction.js +277 -0
- package/package.json +43 -4
- package/resources/pinelabs-architecture-0.5.0.skill.json +1 -0
- package/resources/registry.json +28 -0
- package/schemas/manifest-v1.schema.json +166 -0
- package/schemas/manifest-v2.schema.json +192 -0
- package/schemas/manifest-v3.schema.json +212 -0
- package/schemas/registry-v1.schema.json +130 -0
- package/schemas/skill-bundle-v1.schema.json +59 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Pine Labs registry-v1",
|
|
4
|
+
"$comment": "Runtime validation also enforces portable paths, byte limits, identity, integrity, compatibility and cross-field ownership constraints.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"schemaVersion": {
|
|
8
|
+
"const": 1
|
|
9
|
+
},
|
|
10
|
+
"minimumInstallerVersion": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"maxLength": 48,
|
|
13
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
|
|
14
|
+
},
|
|
15
|
+
"maximumInstallerMajor": {
|
|
16
|
+
"type": "integer",
|
|
17
|
+
"minimum": 0,
|
|
18
|
+
"maximum": 1000
|
|
19
|
+
},
|
|
20
|
+
"label": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 4095
|
|
24
|
+
},
|
|
25
|
+
"skills": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"maxItems": 1000,
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"id": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"maxLength": 64,
|
|
34
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
35
|
+
},
|
|
36
|
+
"aliases": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"maxItems": 30,
|
|
39
|
+
"uniqueItems": true,
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"maxLength": 64,
|
|
43
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"name": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"maxLength": 64,
|
|
49
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
50
|
+
},
|
|
51
|
+
"description": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1,
|
|
54
|
+
"maxLength": 1024
|
|
55
|
+
},
|
|
56
|
+
"version": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"maxLength": 48,
|
|
59
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
|
|
60
|
+
},
|
|
61
|
+
"minimumInstallerVersion": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"maxLength": 48,
|
|
64
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
|
|
65
|
+
},
|
|
66
|
+
"maximumInstallerMajor": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"minimum": 0,
|
|
69
|
+
"maximum": 1000
|
|
70
|
+
},
|
|
71
|
+
"artifact": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"location": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"maxLength": 4095
|
|
78
|
+
},
|
|
79
|
+
"sha256": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
82
|
+
},
|
|
83
|
+
"format": {
|
|
84
|
+
"const": "pinelabs-skill-bundle-v1"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"location",
|
|
89
|
+
"sha256",
|
|
90
|
+
"format"
|
|
91
|
+
],
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
},
|
|
94
|
+
"agents": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"enum": [
|
|
98
|
+
"codex",
|
|
99
|
+
"copilot"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"uniqueItems": true,
|
|
103
|
+
"maxItems": 2,
|
|
104
|
+
"minItems": 1
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": [
|
|
108
|
+
"id",
|
|
109
|
+
"aliases",
|
|
110
|
+
"name",
|
|
111
|
+
"description",
|
|
112
|
+
"version",
|
|
113
|
+
"minimumInstallerVersion",
|
|
114
|
+
"maximumInstallerMajor",
|
|
115
|
+
"artifact",
|
|
116
|
+
"agents"
|
|
117
|
+
],
|
|
118
|
+
"additionalProperties": false
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": [
|
|
123
|
+
"schemaVersion",
|
|
124
|
+
"minimumInstallerVersion",
|
|
125
|
+
"maximumInstallerMajor",
|
|
126
|
+
"label",
|
|
127
|
+
"skills"
|
|
128
|
+
],
|
|
129
|
+
"additionalProperties": false
|
|
130
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Pine Labs skill-bundle-v1",
|
|
4
|
+
"$comment": "Runtime validation also enforces portable paths, byte limits, identity, integrity, compatibility and cross-field ownership constraints.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"format": {
|
|
8
|
+
"const": "pinelabs-skill-bundle-v1"
|
|
9
|
+
},
|
|
10
|
+
"name": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"maxLength": 64,
|
|
13
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
14
|
+
},
|
|
15
|
+
"version": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"maxLength": 48,
|
|
18
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
|
|
19
|
+
},
|
|
20
|
+
"files": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"minItems": 1,
|
|
23
|
+
"maxItems": 3000,
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"path": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"maxLength": 4095
|
|
31
|
+
},
|
|
32
|
+
"type": {
|
|
33
|
+
"const": "file"
|
|
34
|
+
},
|
|
35
|
+
"content": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"contentEncoding": "base64"
|
|
38
|
+
},
|
|
39
|
+
"executable": {
|
|
40
|
+
"type": "boolean"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"path",
|
|
45
|
+
"type",
|
|
46
|
+
"content"
|
|
47
|
+
],
|
|
48
|
+
"additionalProperties": false
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"format",
|
|
54
|
+
"name",
|
|
55
|
+
"version",
|
|
56
|
+
"files"
|
|
57
|
+
],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
}
|