A module that claims a seat is core, one that claims none a leaf (141 manifests; the build modules and the registry are the other developer's). The forge module's, the gate's and the sweep's states each name 8 MiB, and their findings stream 8 MiB for 7 days. Builds: design 47 H2 §810, §812, §783, §820; H-A-394 (1), H-A-411 (1), (2), H-A-378
63 lines
1.3 KiB
JSON
63 lines
1.3 KiB
JSON
{
|
|
"module": "openai-consumer",
|
|
"version": "0.1",
|
|
"class": "leaf",
|
|
"slug": "openai",
|
|
"capabilities": [
|
|
"container-runtime"
|
|
],
|
|
"requires": [
|
|
"model-access"
|
|
],
|
|
"binds": {
|
|
"model-access": "${dir:state}/model.json"
|
|
},
|
|
"secrets": {
|
|
"model-access": "${dir:state}/api-key"
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "config",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"unknown": "program"
|
|
},
|
|
{
|
|
"id": "apply",
|
|
"type": "process",
|
|
"name": "openai-consumer-apply",
|
|
"artifact": "code",
|
|
"run": [
|
|
"node",
|
|
"apply/index.js"
|
|
],
|
|
"schedule": "*/5 * * * *",
|
|
"env": {
|
|
"MESH_MODEL_ACCESS_SECRET_FILE": "${dir:state}/api-key",
|
|
"MESH_MODEL_ACCESS_BIND_FILE": "${dir:state}/model.json",
|
|
"MESH_OPENAI_ENV_FILE": "${dir:state}/config/openai.env",
|
|
"MESH_OPENAI_CREDENTIALS_FILE": "${dir:state}/config/auth.json"
|
|
}
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "code",
|
|
"kind": "bundle",
|
|
"language": "typescript",
|
|
"entrypoints": [
|
|
"apply/index.js"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|