@semiont/cli 0.2.35-build.103 → 0.2.35-build.104

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/cli.mjs CHANGED
@@ -14161,16 +14161,21 @@ var init_database_service = __esm({
14161
14161
  // Pass through environment variables exactly as configured
14162
14162
  environment: this.config.environment || {},
14163
14163
  annotations: {
14164
- // Service type declaration
14165
14164
  "service/type": SERVICE_TYPES.DATABASE,
14166
- // Database supports backup and restore
14167
14165
  [COMMAND_CAPABILITY_ANNOTATIONS.BACKUP]: "true",
14168
14166
  [COMMAND_CAPABILITY_ANNOTATIONS.RESTORE]: "true",
14169
- // Database doesn't support publish/update (not containerized)
14170
14167
  [COMMAND_CAPABILITY_ANNOTATIONS.PUBLISH]: "false",
14171
14168
  [COMMAND_CAPABILITY_ANNOTATIONS.UPDATE]: "false",
14172
14169
  [COMMAND_CAPABILITY_ANNOTATIONS.TEST]: "false",
14173
- [COMMAND_CAPABILITY_ANNOTATIONS.EXEC]: "true"
14170
+ [COMMAND_CAPABILITY_ANNOTATIONS.EXEC]: "true",
14171
+ // When on external platform, only check and watch apply
14172
+ ...this.platform === "external" ? {
14173
+ [COMMAND_CAPABILITY_ANNOTATIONS.START]: "false",
14174
+ [COMMAND_CAPABILITY_ANNOTATIONS.STOP]: "false",
14175
+ [COMMAND_CAPABILITY_ANNOTATIONS.RESTART]: "false",
14176
+ [COMMAND_CAPABILITY_ANNOTATIONS.PROVISION]: "false",
14177
+ [COMMAND_CAPABILITY_ANNOTATIONS.CONFIGURE]: "false"
14178
+ } : {}
14174
14179
  }
14175
14180
  };
14176
14181
  return mergeRequirements(baseRequirements, dbRequirements);
@@ -14437,11 +14442,17 @@ var init_graph_service = __esm({
14437
14442
  allowPrivilegeEscalation: false
14438
14443
  },
14439
14444
  environment: this.getEnvironmentVariables(),
14440
- // Add capability annotations for handlers
14441
14445
  annotations: {
14442
- [COMMAND_CAPABILITY_ANNOTATIONS.PROVISION]: "true",
14443
14446
  "service/type": SERVICE_TYPES.GRAPH,
14444
- "graph/type": this.typedConfig.name || "janusgraph"
14447
+ "graph/type": this.typedConfig.name || "janusgraph",
14448
+ // When on external platform, only check and watch apply
14449
+ ...this.platform === "external" ? {
14450
+ [COMMAND_CAPABILITY_ANNOTATIONS.START]: "false",
14451
+ [COMMAND_CAPABILITY_ANNOTATIONS.STOP]: "false",
14452
+ [COMMAND_CAPABILITY_ANNOTATIONS.RESTART]: "false",
14453
+ [COMMAND_CAPABILITY_ANNOTATIONS.PROVISION]: "false",
14454
+ [COMMAND_CAPABILITY_ANNOTATIONS.CONFIGURE]: "false"
14455
+ } : {}
14445
14456
  }
14446
14457
  };
14447
14458
  return mergeRequirements(baseRequirements, graphRequirements);
@@ -14690,6 +14701,7 @@ var init_inference_service = __esm({
14690
14701
  "use strict";
14691
14702
  init_base_service();
14692
14703
  init_service_requirements();
14704
+ init_service_command_capabilities();
14693
14705
  init_service_types();
14694
14706
  InferenceService = class extends BaseService {
14695
14707
  // Type-narrowed config accessor
@@ -14705,12 +14717,15 @@ var init_inference_service = __esm({
14705
14717
  ...baseRequirements,
14706
14718
  annotations: {
14707
14719
  ...baseRequirements.annotations,
14708
- // Service type declaration
14709
14720
  "service/type": SERVICE_TYPES.INFERENCE,
14710
- // External services can only be checked, not started/stopped
14711
- "command/check": "true",
14712
- // Inference services are external, no lifecycle management
14713
- "platform/external-only": "true"
14721
+ // When on external platform, only check and watch apply
14722
+ ...this.platform === "external" ? {
14723
+ [COMMAND_CAPABILITY_ANNOTATIONS.START]: "false",
14724
+ [COMMAND_CAPABILITY_ANNOTATIONS.STOP]: "false",
14725
+ [COMMAND_CAPABILITY_ANNOTATIONS.RESTART]: "false",
14726
+ [COMMAND_CAPABILITY_ANNOTATIONS.PROVISION]: "false",
14727
+ [COMMAND_CAPABILITY_ANNOTATIONS.CONFIGURE]: "false"
14728
+ } : {}
14714
14729
  }
14715
14730
  };
14716
14731
  }
@@ -37,8 +37,10 @@
37
37
  "platform": {
38
38
  "type": "container"
39
39
  },
40
- "image": "postgres:15-alpine",
40
+ "type": "postgres",
41
41
  "name": "semiont-local-db",
42
+ "host": "localhost",
43
+ "image": "postgres:15-alpine",
42
44
  "port": 5432,
43
45
  "environment": {
44
46
  "POSTGRES_DB": "semiont",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semiont/cli",
3
- "version": "0.2.35-build.103",
3
+ "version": "0.2.35-build.104",
4
4
  "description": "Semiont CLI - Unified environment management tool",
5
5
  "_comment": "AWS SDK dependencies (@aws-sdk/*) are only used by platforms/aws",
6
6
  "type": "module",
@@ -65,8 +65,8 @@
65
65
  "@aws-sdk/client-sts": "^3.859.0",
66
66
  "@aws-sdk/client-wafv2": "^3.859.0",
67
67
  "@prisma/client": "^6.13.0",
68
- "@semiont/api-client": "0.2.35-build.103",
69
- "@semiont/core": "0.2.35-build.103",
68
+ "@semiont/api-client": "0.2.35-build.104",
69
+ "@semiont/core": "0.2.35-build.104",
70
70
  "@testcontainers/postgresql": "^11.5.1",
71
71
  "arg": "^5.0.2",
72
72
  "bcrypt": "^5.1.1",