@aifabrix/builder 2.59.0 → 2.60.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.
Files changed (55) hide show
  1. package/lib/agent-kit/git-identity.js +180 -0
  2. package/lib/agent-kit/setup.js +3 -0
  3. package/lib/agent-kit/start.js +45 -1
  4. package/lib/api/role-assistant-test-job.api.js +60 -0
  5. package/lib/api/work-search.api.js +13 -6
  6. package/lib/app/deploy.js +8 -1
  7. package/lib/app/show-display.js +1 -0
  8. package/lib/app/show-online.js +15 -0
  9. package/lib/build/standard-docker-build.js +4 -1
  10. package/lib/cli/setup-app.js +14 -1
  11. package/lib/cli/setup-utility.js +24 -1
  12. package/lib/commands/role-assistant.js +7 -0
  13. package/lib/core/env-platform-expand.js +93 -0
  14. package/lib/core/secrets-env-content.js +37 -3
  15. package/lib/deployment/installation/azure-infra-stage.js +3 -1
  16. package/lib/deployment/installation/infra-catalog.js +2 -5
  17. package/lib/generator/builders.js +17 -0
  18. package/lib/generator/helpers.js +23 -2
  19. package/lib/generator/index.js +10 -6
  20. package/lib/role-assistant/test-cases-search.js +3 -0
  21. package/lib/role-assistant/test-job-runner.js +125 -0
  22. package/lib/role-assistant/test-runner-search.js +44 -2
  23. package/lib/schema/application-schema.json +193 -2
  24. package/lib/schema/infra-parameter.schema.json +139 -33
  25. package/lib/schema/infra.parameter.yaml +28 -28
  26. package/lib/schema/infrastructure-schema.json +10 -35
  27. package/lib/utils/compose-generate-docker-compose.js +12 -0
  28. package/lib/utils/docker-build.js +29 -8
  29. package/lib/utils/docker-manifest-public-port.js +36 -0
  30. package/lib/utils/platform-resolution.js +226 -0
  31. package/lib/utils/resolve-docker-image-ref.js +8 -3
  32. package/package.json +2 -2
  33. package/templates/README.md +2 -1
  34. package/templates/agent-kit/agent-kit.yaml +4 -1
  35. package/templates/agent-kit/instructions/AGENTKIT.md +1 -1
  36. package/templates/agent-kit/instructions/root.AGENTS.md +2 -0
  37. package/templates/agent-kit/skills/aifabrix-connected-system/SKILL.md +33 -1
  38. package/templates/agent-kit/skills/aifabrix-connected-system/scripts/delivery-verdict.js +176 -0
  39. package/templates/agent-kit/skills/aifabrix-plan/SKILL.md +3 -0
  40. package/templates/agent-kit/skills/aifabrix-plan/references/interaction.md +10 -3
  41. package/templates/agent-kit/skills/aifabrix-prove/SKILL.md +22 -0
  42. package/templates/agent-kit/skills/aifabrix-role-assistant/SKILL.md +21 -0
  43. package/templates/agent-kit/skills/shared/feedback.md +31 -0
  44. package/templates/agent-kit/skills/shared/hosts.md +13 -3
  45. package/templates/agent-kit/skills/shared/status.md +85 -0
  46. package/templates/agent-kit/workspace/BUILDER_IMPROVEMENT_FINDINGS.md +27 -0
  47. package/templates/applications/builder-api/application.yaml +1 -1
  48. package/templates/applications/dataplane/application.yaml +30 -2
  49. package/templates/applications/dataplane/env.template +37 -4
  50. package/templates/applications/miso-controller/application.yaml +24 -1
  51. package/templates/applications/miso-controller/env.template +21 -34
  52. package/templates/marketplace/main.json +70 -222
  53. package/templates/python/Dockerfile.hbs +2 -0
  54. package/templates/typescript/Dockerfile.hbs +2 -0
  55. package/templates/typescript/docker-compose.hbs +12 -0
@@ -9,4 +9,6 @@ HEALTHCHECK --interval={{healthCheck.interval}}s CMD curl -f http://localhost:{{
9
9
  {{/if}}
10
10
  {{#if startupCommand}}
11
11
  CMD {{startupCommand}}
12
+ {{else}}
13
+ CMD ["python3", "main.py"]
12
14
  {{/if}}
@@ -9,4 +9,6 @@ HEALTHCHECK --interval={{healthCheck.interval}}s CMD curl -f http://localhost:{{
9
9
  {{/if}}
10
10
  {{#if startupCommand}}
11
11
  CMD {{startupCommand}}
12
+ {{else}}
13
+ CMD ["npm", "start"]
12
14
  {{/if}}
@@ -98,6 +98,10 @@ services:
98
98
  {{/if}}
99
99
  ports:
100
100
  - "{{hostPort}}:{{containerPort}}"
101
+ {{#each additionalPorts}}
102
+ # {{this.name}}
103
+ - "{{this.hostPort}}:{{this.containerPort}}"
104
+ {{/each}}
101
105
  networks:
102
106
  - {{networkName}}
103
107
  {{#if devMountPath}}
@@ -110,7 +114,9 @@ services:
110
114
  - {{#if (eq devId 0)}}aifabrix_{{app.key}}_data{{else}}aifabrix_dev{{devId}}_{{app.key}}_data{{/if}}:/mnt/data
111
115
  {{/if}}
112
116
  {{/if}}
117
+ {{#unless runAsRoot}}
113
118
  user: "${AIFABRIX_UID:-1000}:${AIFABRIX_GID:-1000}"
119
+ {{/unless}}
114
120
  {{else}}
115
121
  {{#if requiresStorage}}
116
122
  volumes:
@@ -120,7 +126,9 @@ services:
120
126
  - {{#if (eq devId 0)}}aifabrix_{{app.key}}_data{{else}}aifabrix_dev{{devId}}_{{app.key}}_data{{/if}}:/mnt/data
121
127
  {{/if}}
122
128
  {{#if localDataMountPath}}
129
+ {{#unless runAsRoot}}
123
130
  user: "${AIFABRIX_UID:-1000}:${AIFABRIX_GID:-1000}"
131
+ {{/unless}}
124
132
  {{/if}}
125
133
  {{/if}}
126
134
  {{/if}}
@@ -167,7 +175,9 @@ services:
167
175
  - {{#if (eq devId 0)}}aifabrix_{{app.key}}_data{{else}}aifabrix_dev{{devId}}_{{app.key}}_data{{/if}}:/mnt/data
168
176
  {{/if}}
169
177
  {{/if}}
178
+ {{#unless runAsRoot}}
170
179
  user: "${AIFABRIX_UID:-1000}:${AIFABRIX_GID:-1000}"
180
+ {{/unless}}
171
181
  {{/if}}
172
182
  depends_on:
173
183
  {{app.key}}:
@@ -200,7 +210,9 @@ services:
200
210
  - {{#if (eq devId 0)}}aifabrix_{{app.key}}_data{{else}}aifabrix_dev{{devId}}_{{app.key}}_data{{/if}}:/mnt/data
201
211
  {{/if}}
202
212
  {{/if}}
213
+ {{#unless runAsRoot}}
203
214
  user: "${AIFABRIX_UID:-1000}:${AIFABRIX_GID:-1000}"
215
+ {{/unless}}
204
216
  {{/if}}
205
217
  depends_on:
206
218
  {{#if workerSidecars.worker}}