@inneranimalmedia/primetech-procedures 0.0.0-stage → 2.6.18
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/.codex-plugin/plugin.json +39 -0
- package/LICENSE +110 -0
- package/README.md +181 -2
- package/agents/openai.yaml +6 -0
- package/agentsam.package.json +80 -0
- package/assets/architect-icon.svg +10 -0
- package/assets/primetech-design-studio.svg +7 -0
- package/companion.json +40 -0
- package/package.json +56 -4
- package/plugin.README.md +37 -0
- package/plugin.json +43 -0
- package/procedures/arch.assembly.calculate/procedure.json +83 -0
- package/procedures/cad.motor-bearing-end-plate/README.md +21 -0
- package/procedures/cad.motor-bearing-end-plate/build_freecad.py +514 -0
- package/procedures/cad.motor-bearing-end-plate/finalize_bundle.py +26 -0
- package/procedures/cad.motor-bearing-end-plate/generate_assets.py +284 -0
- package/procedures/cad.motor-bearing-end-plate/generate_toolpaths.py +715 -0
- package/procedures/cad.motor-bearing-end-plate/package_artifacts.py +154 -0
- package/procedures/cad.motor-bearing-end-plate/parameters.json +51 -0
- package/procedures/cad.motor-bearing-end-plate/procedure.json +101 -0
- package/procedures/cad.motor-bearing-end-plate/render_preview.py +98 -0
- package/procedures/cad.motor-bearing-end-plate/run.py +214 -0
- package/procedures/cad.motor-bearing-end-plate/test_generate_toolpaths.py +50 -0
- package/procedures/media.asset.preflight/procedure.json +85 -0
- package/procedures/media.image.optimize-asset/procedure.json +102 -0
- package/procedures/primetech.assets.package/procedure.json +63 -0
- package/procedures/primetech.design-system.package/procedure.json +58 -0
- package/procedures/primetech.ebook.package/procedure.json +53 -0
- package/procedures/primetech.icon-family.build/procedure.json +101 -0
- package/procedures/primetech.production-board.manage/procedure.json +156 -0
- package/procedures/primetech.sprite-atlas.build/procedure.json +86 -0
- package/procedures/primetech.typeface.package/procedure.json +61 -0
- package/procedures/primetech.visuals.compare/procedure.json +74 -0
- package/procedures/repo.asset.inventory/procedure.json +65 -0
- package/procedures/repo.asset.inventory/run.py +116 -0
- package/procedures/repo.asset.inventory/run.sh +11 -0
- package/procedures/repo.git.status/procedure.json +58 -0
- package/procedures/repo.git.status/run.sh +10 -0
- package/profiles/PRIMETECH_PROCEDURE_ENGINEER.md +25 -0
- package/scripts/generate-procedures.py +112 -0
- package/scripts/generate-skills.py +425 -0
- package/scripts/package-openai-plugin.py +94 -0
- package/skills/primetech-brand-kit/SKILL.md +40 -0
- package/skills/primetech-brand-kit/agentsam.skill.json +64 -0
- package/skills/primetech-character-sprites/SKILL.md +40 -0
- package/skills/primetech-character-sprites/agentsam.skill.json +64 -0
- package/skills/primetech-creative-delivery/SKILL.md +39 -0
- package/skills/primetech-creative-delivery/agentsam.skill.json +57 -0
- package/skills/primetech-design-systems/SKILL.md +43 -0
- package/skills/primetech-design-systems/agentsam.skill.json +57 -0
- package/skills/primetech-digital-publishing/SKILL.md +39 -0
- package/skills/primetech-digital-publishing/agentsam.skill.json +52 -0
- package/skills/primetech-iconography/SKILL.md +40 -0
- package/skills/primetech-iconography/agentsam.skill.json +53 -0
- package/skills/primetech-type-design/SKILL.md +40 -0
- package/skills/primetech-type-design/agentsam.skill.json +53 -0
- package/skills/primetech-ui-ux-prototypes/SKILL.md +43 -0
- package/skills/primetech-ui-ux-prototypes/agentsam.skill.json +64 -0
- package/skills/primetech-visual-qa/SKILL.md +39 -0
- package/skills/primetech-visual-qa/agentsam.skill.json +56 -0
- package/src/creative/asset-package.js +42 -0
- package/src/creative/design-system.js +107 -0
- package/src/creative/ebook.js +88 -0
- package/src/creative/icon-family.js +125 -0
- package/src/creative/index.d.ts +157 -0
- package/src/creative/index.js +7 -0
- package/src/creative/paths.js +64 -0
- package/src/creative/sprite-atlas.js +100 -0
- package/src/creative/typeface.js +154 -0
- package/src/creative/visual-qa.js +88 -0
- package/src/index.d.ts +160 -0
- package/src/index.js +656 -0
- package/src/production-board.d.ts +103 -0
- package/src/production-board.js +181 -0
- package/src/skills.d.ts +48 -0
- package/src/skills.js +101 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Pure-Python regression test for generated toolpaths and review-only NC output."""
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
import json
|
|
5
|
+
import subprocess
|
|
6
|
+
import sys
|
|
7
|
+
import tempfile
|
|
8
|
+
import unittest
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from xml.etree import ElementTree
|
|
11
|
+
|
|
12
|
+
PROC = Path(__file__).resolve().parent
|
|
13
|
+
|
|
14
|
+
class ToolpathGenerationTest(unittest.TestCase):
|
|
15
|
+
def test_candidate_paths_and_nc_program_are_generated_and_checked(self):
|
|
16
|
+
with tempfile.TemporaryDirectory(prefix="primetech-cam-test-") as temp:
|
|
17
|
+
out = Path(temp)
|
|
18
|
+
(out / "verification.json").write_text(
|
|
19
|
+
json.dumps({"all_checks_pass": True}) + "\n", encoding="utf-8"
|
|
20
|
+
)
|
|
21
|
+
result = subprocess.run(
|
|
22
|
+
[
|
|
23
|
+
sys.executable, str(PROC / "generate_toolpaths.py"),
|
|
24
|
+
"--parameters", str(PROC / "parameters.json"),
|
|
25
|
+
"--output-dir", str(out),
|
|
26
|
+
],
|
|
27
|
+
capture_output=True, text=True, timeout=30,
|
|
28
|
+
)
|
|
29
|
+
self.assertEqual(result.returncode, 0, result.stderr or result.stdout)
|
|
30
|
+
toolpath = json.loads((out / "toolpath.json").read_text(encoding="utf-8"))
|
|
31
|
+
result_doc = json.loads((out / "toolpath-result.json").read_text(encoding="utf-8"))
|
|
32
|
+
verification = json.loads((out / "gcode-verification.json").read_text(encoding="utf-8"))
|
|
33
|
+
self.assertTrue(result_doc["ok"])
|
|
34
|
+
self.assertTrue(verification["all_checks_pass"])
|
|
35
|
+
self.assertGreater(toolpath["summary"]["move_count"], 700)
|
|
36
|
+
self.assertGreater(result_doc["gcode_motion_line_count"], 700)
|
|
37
|
+
self.assertEqual(toolpath["post_status"], "UNVERIFIED")
|
|
38
|
+
operations = {row["id"] for row in toolpath["operations"]}
|
|
39
|
+
self.assertTrue({"pocket-rough", "clearance-drill", "bore-interpolate", "counterbore-interpolate"} <= operations)
|
|
40
|
+
nc = (out / "toolpath-unverified.nc").read_text(encoding="utf-8")
|
|
41
|
+
self.assertIn("NOT APPROVED", nc)
|
|
42
|
+
self.assertIn("UNVERIFIED", nc)
|
|
43
|
+
self.assertIn("G21 G17 G90 G94", nc)
|
|
44
|
+
self.assertIn("G54", nc)
|
|
45
|
+
self.assertIn("M30", nc)
|
|
46
|
+
self.assertTrue(all(check["pass"] for check in verification["checks"]))
|
|
47
|
+
ElementTree.parse(out / "toolpath-preview.svg")
|
|
48
|
+
|
|
49
|
+
if __name__ == "__main__":
|
|
50
|
+
unittest.main()
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "inneranimalmedia.primetech.procedure.v1",
|
|
3
|
+
"id": "media.asset.preflight",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"summary": "Inspect an installation-owned asset through the bound native media service and verify its identifier, size and content hash.",
|
|
6
|
+
"effect": "read",
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"media.asset.inspect"
|
|
9
|
+
],
|
|
10
|
+
"runtime": {
|
|
11
|
+
"kind": "native_tool",
|
|
12
|
+
"tool_key": "media.asset.inspect"
|
|
13
|
+
},
|
|
14
|
+
"input_schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"assetId"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"assetId": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
},
|
|
27
|
+
"output_schema": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"required": [
|
|
30
|
+
"ok",
|
|
31
|
+
"assetId",
|
|
32
|
+
"contentType",
|
|
33
|
+
"byteLength",
|
|
34
|
+
"sha256"
|
|
35
|
+
],
|
|
36
|
+
"properties": {
|
|
37
|
+
"ok": {
|
|
38
|
+
"const": true
|
|
39
|
+
},
|
|
40
|
+
"assetId": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1
|
|
43
|
+
},
|
|
44
|
+
"contentType": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1
|
|
47
|
+
},
|
|
48
|
+
"byteLength": {
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"minimum": 1
|
|
51
|
+
},
|
|
52
|
+
"sha256": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
55
|
+
},
|
|
56
|
+
"sourceAssetId": {
|
|
57
|
+
"type": [
|
|
58
|
+
"string",
|
|
59
|
+
"null"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"createdAt": {
|
|
63
|
+
"type": [
|
|
64
|
+
"string",
|
|
65
|
+
"null"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"transformations": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"additionalProperties": false
|
|
76
|
+
},
|
|
77
|
+
"verification": {
|
|
78
|
+
"kind": "output_schema"
|
|
79
|
+
},
|
|
80
|
+
"flags": {
|
|
81
|
+
"network": false,
|
|
82
|
+
"physical_hardware": false,
|
|
83
|
+
"requires_operator_review": false
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "inneranimalmedia.primetech.procedure.v1",
|
|
3
|
+
"id": "media.image.optimize-asset",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"summary": "Create a verified derivative of an owned image using the installed native media optimization operation; preserve the source asset.",
|
|
6
|
+
"effect": "project_write",
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"media.image.optimize"
|
|
9
|
+
],
|
|
10
|
+
"runtime": {
|
|
11
|
+
"kind": "native_tool",
|
|
12
|
+
"tool_key": "media.image.optimize"
|
|
13
|
+
},
|
|
14
|
+
"input_schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"assetId"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"assetId": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1
|
|
23
|
+
},
|
|
24
|
+
"format": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"png",
|
|
28
|
+
"webp",
|
|
29
|
+
"jpeg"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"quality": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"minimum": 1,
|
|
35
|
+
"maximum": 100
|
|
36
|
+
},
|
|
37
|
+
"idempotencyKey": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
},
|
|
44
|
+
"output_schema": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"required": [
|
|
47
|
+
"ok",
|
|
48
|
+
"sourceAssetId",
|
|
49
|
+
"sourceHash",
|
|
50
|
+
"derivativeAssetId",
|
|
51
|
+
"derivativeHash",
|
|
52
|
+
"contentType",
|
|
53
|
+
"bytes",
|
|
54
|
+
"transformations"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"ok": {
|
|
58
|
+
"const": true
|
|
59
|
+
},
|
|
60
|
+
"sourceAssetId": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1
|
|
63
|
+
},
|
|
64
|
+
"sourceHash": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
67
|
+
},
|
|
68
|
+
"derivativeAssetId": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"minLength": 1
|
|
71
|
+
},
|
|
72
|
+
"derivativeHash": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
75
|
+
},
|
|
76
|
+
"contentType": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"minLength": 1
|
|
79
|
+
},
|
|
80
|
+
"bytes": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 1
|
|
83
|
+
},
|
|
84
|
+
"transformations": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"minItems": 1,
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"additionalProperties": true
|
|
93
|
+
},
|
|
94
|
+
"verification": {
|
|
95
|
+
"kind": "output_schema"
|
|
96
|
+
},
|
|
97
|
+
"flags": {
|
|
98
|
+
"network": false,
|
|
99
|
+
"physical_hardware": false,
|
|
100
|
+
"requires_operator_review": true
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "inneranimalmedia.primetech.procedure.v1",
|
|
3
|
+
"id": "primetech.assets.package",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"summary": "Package approved creative assets with source hashes, metadata and delivery manifest.",
|
|
6
|
+
"effect": "project_write",
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"primetech.assets.package"
|
|
9
|
+
],
|
|
10
|
+
"runtime": {
|
|
11
|
+
"kind": "sam_operation",
|
|
12
|
+
"operation": "primetech.assets.package"
|
|
13
|
+
},
|
|
14
|
+
"input_schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"assetPaths"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"assetPaths": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"minItems": 1,
|
|
23
|
+
"maxItems": 512,
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 240
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"outputDir": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"maxLength": 240
|
|
34
|
+
},
|
|
35
|
+
"packageName": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"minLength": 1,
|
|
38
|
+
"maxLength": 120
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
},
|
|
43
|
+
"output_schema": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"ok": {
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": [
|
|
51
|
+
"ok"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": true
|
|
54
|
+
},
|
|
55
|
+
"verification": {
|
|
56
|
+
"kind": "output_schema"
|
|
57
|
+
},
|
|
58
|
+
"flags": {
|
|
59
|
+
"network": false,
|
|
60
|
+
"physical_hardware": false,
|
|
61
|
+
"requires_operator_review": true
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "inneranimalmedia.primetech.procedure.v1",
|
|
3
|
+
"id": "primetech.design-system.package",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"summary": "Validate design tokens, calculate contrast and package CSS variables and documentation.",
|
|
6
|
+
"effect": "project_write",
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"primetech.design-system.package"
|
|
9
|
+
],
|
|
10
|
+
"runtime": {
|
|
11
|
+
"kind": "sam_operation",
|
|
12
|
+
"operation": "primetech.design-system.package"
|
|
13
|
+
},
|
|
14
|
+
"input_schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"tokensPath"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"tokensPath": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 240
|
|
24
|
+
},
|
|
25
|
+
"outputDir": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"maxLength": 240
|
|
29
|
+
},
|
|
30
|
+
"projectName": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"maxLength": 160
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
},
|
|
38
|
+
"output_schema": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"ok": {
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"ok"
|
|
47
|
+
],
|
|
48
|
+
"additionalProperties": true
|
|
49
|
+
},
|
|
50
|
+
"verification": {
|
|
51
|
+
"kind": "output_schema"
|
|
52
|
+
},
|
|
53
|
+
"flags": {
|
|
54
|
+
"network": false,
|
|
55
|
+
"physical_hardware": false,
|
|
56
|
+
"requires_operator_review": true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "inneranimalmedia.primetech.procedure.v1",
|
|
3
|
+
"id": "primetech.ebook.package",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"summary": "Build and validate an EPUB 3 archive with navigation, preview and source provenance.",
|
|
6
|
+
"effect": "project_write",
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"primetech.ebook.package"
|
|
9
|
+
],
|
|
10
|
+
"runtime": {
|
|
11
|
+
"kind": "sam_operation",
|
|
12
|
+
"operation": "primetech.ebook.package"
|
|
13
|
+
},
|
|
14
|
+
"input_schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"sourcePath"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"sourcePath": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 240
|
|
24
|
+
},
|
|
25
|
+
"outputDir": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"maxLength": 240
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
},
|
|
33
|
+
"output_schema": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"ok": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"ok"
|
|
42
|
+
],
|
|
43
|
+
"additionalProperties": true
|
|
44
|
+
},
|
|
45
|
+
"verification": {
|
|
46
|
+
"kind": "output_schema"
|
|
47
|
+
},
|
|
48
|
+
"flags": {
|
|
49
|
+
"network": false,
|
|
50
|
+
"physical_hardware": false,
|
|
51
|
+
"requires_operator_review": true
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "inneranimalmedia.primetech.procedure.v1",
|
|
3
|
+
"id": "primetech.icon-family.build",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"summary": "Build a verified icon family from an approved SVG master with three shapes, eight colorways, raster sizes and source checksums.",
|
|
6
|
+
"effect": "project_write",
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"primetech.icon-family.build"
|
|
9
|
+
],
|
|
10
|
+
"runtime": {
|
|
11
|
+
"kind": "sam_operation",
|
|
12
|
+
"operation": "primetech.icon-family.build"
|
|
13
|
+
},
|
|
14
|
+
"input_schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"sourceSvgPath",
|
|
18
|
+
"colorways"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"sourceSvgPath": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"maxLength": 240
|
|
25
|
+
},
|
|
26
|
+
"outputDir": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"maxLength": 240
|
|
30
|
+
},
|
|
31
|
+
"colorways": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"minItems": 8,
|
|
34
|
+
"maxItems": 8,
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"required": [
|
|
38
|
+
"id",
|
|
39
|
+
"foreground",
|
|
40
|
+
"background"
|
|
41
|
+
],
|
|
42
|
+
"properties": {
|
|
43
|
+
"id": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": [
|
|
46
|
+
"technical-slate",
|
|
47
|
+
"lagoon",
|
|
48
|
+
"industrial-ember",
|
|
49
|
+
"alloy-blue",
|
|
50
|
+
"prime-electric",
|
|
51
|
+
"prime-spectrum",
|
|
52
|
+
"reverse",
|
|
53
|
+
"core-mono"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"foreground": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^#[0-9a-fA-F]{3,8}$"
|
|
59
|
+
},
|
|
60
|
+
"background": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"pattern": "^#[0-9a-fA-F]{3,8}$"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"sizes": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"minItems": 1,
|
|
71
|
+
"maxItems": 12,
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"minimum": 16,
|
|
75
|
+
"maximum": 4096
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"additionalProperties": false
|
|
80
|
+
},
|
|
81
|
+
"output_schema": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"ok": {
|
|
85
|
+
"type": "boolean"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"ok"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": true
|
|
92
|
+
},
|
|
93
|
+
"verification": {
|
|
94
|
+
"kind": "output_schema"
|
|
95
|
+
},
|
|
96
|
+
"flags": {
|
|
97
|
+
"network": false,
|
|
98
|
+
"physical_hardware": false,
|
|
99
|
+
"requires_operator_review": true
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "inneranimalmedia.primetech.procedure.v1",
|
|
3
|
+
"id": "primetech.production-board.manage",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"summary": "Manage a revisioned creative production board and resumable generation receipts.",
|
|
6
|
+
"effect": "project_write",
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"primetech.production-board.manage"
|
|
9
|
+
],
|
|
10
|
+
"runtime": {
|
|
11
|
+
"kind": "sam_operation",
|
|
12
|
+
"operation": "primetech.production-board.manage"
|
|
13
|
+
},
|
|
14
|
+
"input_schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"action"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"action": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": [
|
|
23
|
+
"create",
|
|
24
|
+
"get",
|
|
25
|
+
"list",
|
|
26
|
+
"begin",
|
|
27
|
+
"complete",
|
|
28
|
+
"fail",
|
|
29
|
+
"resume"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"title": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 160
|
|
36
|
+
},
|
|
37
|
+
"objective": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1,
|
|
40
|
+
"maxLength": 1200
|
|
41
|
+
},
|
|
42
|
+
"brief": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"maxLength": 12000
|
|
45
|
+
},
|
|
46
|
+
"projectId": {
|
|
47
|
+
"type": [
|
|
48
|
+
"string",
|
|
49
|
+
"null"
|
|
50
|
+
],
|
|
51
|
+
"maxLength": 160
|
|
52
|
+
},
|
|
53
|
+
"tags": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"maxItems": 32,
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"maxLength": 48
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"boardId": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"pattern": "^ptb_[a-f0-9]{24}$"
|
|
64
|
+
},
|
|
65
|
+
"generationId": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"minLength": 1,
|
|
68
|
+
"maxLength": 160
|
|
69
|
+
},
|
|
70
|
+
"idempotencyKey": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"minLength": 1,
|
|
73
|
+
"maxLength": 200
|
|
74
|
+
},
|
|
75
|
+
"kind": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"pattern": "^[a-z][a-z0-9_.-]{1,79}$"
|
|
78
|
+
},
|
|
79
|
+
"generationBrief": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1,
|
|
82
|
+
"maxLength": 8000
|
|
83
|
+
},
|
|
84
|
+
"prompt": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"maxLength": 12000
|
|
87
|
+
},
|
|
88
|
+
"sourceRefs": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"maxItems": 64,
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"maxLength": 1024
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"artifacts": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"maxItems": 256,
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"quality": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": true
|
|
107
|
+
},
|
|
108
|
+
"error": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"required": [
|
|
111
|
+
"code"
|
|
112
|
+
],
|
|
113
|
+
"properties": {
|
|
114
|
+
"code": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"minLength": 1,
|
|
117
|
+
"maxLength": 120
|
|
118
|
+
},
|
|
119
|
+
"message": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"maxLength": 1000
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
},
|
|
126
|
+
"retryable": {
|
|
127
|
+
"type": "boolean"
|
|
128
|
+
},
|
|
129
|
+
"expectedRevision": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"minimum": 1
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"additionalProperties": false
|
|
135
|
+
},
|
|
136
|
+
"output_schema": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"properties": {
|
|
139
|
+
"ok": {
|
|
140
|
+
"type": "boolean"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"ok"
|
|
145
|
+
],
|
|
146
|
+
"additionalProperties": true
|
|
147
|
+
},
|
|
148
|
+
"verification": {
|
|
149
|
+
"kind": "output_schema"
|
|
150
|
+
},
|
|
151
|
+
"flags": {
|
|
152
|
+
"network": false,
|
|
153
|
+
"physical_hardware": false,
|
|
154
|
+
"requires_operator_review": true
|
|
155
|
+
}
|
|
156
|
+
}
|