@afroze9/terrastudio-cli 0.51.3 → 0.51.5

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 (2) hide show
  1. package/bundle/cli.cjs +53 -11
  2. package/package.json +1 -1
package/bundle/cli.cjs CHANGED
@@ -22059,7 +22059,14 @@ var init_schema78 = __esm({
22059
22059
  }
22060
22060
  }
22061
22061
  ],
22062
- handles: [],
22062
+ handles: [
22063
+ {
22064
+ id: "pep-target",
22065
+ type: "target",
22066
+ position: "left",
22067
+ label: "Reference"
22068
+ }
22069
+ ],
22063
22070
  outputs: [
22064
22071
  { key: "id", label: "Resource ID", terraformAttribute: "id" },
22065
22072
  { key: "instrumentation_key", label: "Instrumentation Key", terraformAttribute: "instrumentation_key", sensitive: true },
@@ -23733,12 +23740,12 @@ var init_schema86 = __esm({
23733
23740
  description: "Azure AI Foundry project within a hub for organizing AI workloads",
23734
23741
  terraformType: "azurerm_ai_foundry_project",
23735
23742
  supportsTags: false,
23736
- requiresResourceGroup: false,
23743
+ requiresResourceGroup: true,
23737
23744
  cafAbbreviation: "aiproj",
23738
23745
  canBeChildOf: [
23739
23746
  "azurerm/ai/ai_foundry"
23740
23747
  ],
23741
- parentReference: { propertyKey: "ai_foundry_id" },
23748
+ parentReference: { propertyKey: "ai_services_hub_id" },
23742
23749
  properties: [
23743
23750
  {
23744
23751
  key: "name",
@@ -23795,8 +23802,8 @@ var init_hcl_generator76 = __esm({
23795
23802
  const locExpr = context.getLocationExpression(resource);
23796
23803
  const dependsOn = [];
23797
23804
  const nameExpr = context.getPropertyExpression(resource, "name", name);
23798
- const hubRef = resource.references["ai_foundry_id"];
23799
- const hubIdExpr = hubRef ? context.getAttributeReference(hubRef, "id") : '"<ai-foundry-id>"';
23805
+ const hubRef = resource.references["ai_services_hub_id"];
23806
+ const hubIdExpr = hubRef ? context.getAttributeReference(hubRef, "id") : '"<ai-services-hub-id>"';
23800
23807
  if (hubRef) {
23801
23808
  const hubAddr = context.getTerraformAddress(hubRef);
23802
23809
  if (hubAddr)
@@ -23804,17 +23811,17 @@ var init_hcl_generator76 = __esm({
23804
23811
  }
23805
23812
  const lines = [
23806
23813
  `resource "azurerm_ai_foundry_project" "${resource.terraformName}" {`,
23807
- ` name = ${nameExpr}`,
23808
- ` location = ${locExpr}`,
23809
- ` ai_foundry_id = ${hubIdExpr}`
23814
+ ` name = ${nameExpr}`,
23815
+ ` location = ${locExpr}`,
23816
+ ` ai_services_hub_id = ${hubIdExpr}`
23810
23817
  ];
23811
23818
  if (friendlyName || resource.variableOverrides?.["friendly_name"] === "variable") {
23812
23819
  const friendlyNameExpr = context.getPropertyExpression(resource, "friendly_name", friendlyName ?? "");
23813
- lines.push(` friendly_name = ${friendlyNameExpr}`);
23820
+ lines.push(` friendly_name = ${friendlyNameExpr}`);
23814
23821
  }
23815
23822
  if (description || resource.variableOverrides?.["description"] === "variable") {
23816
23823
  const descExpr = context.getPropertyExpression(resource, "description", description ?? "");
23817
- lines.push(` description = ${descExpr}`);
23824
+ lines.push(` description = ${descExpr}`);
23818
23825
  }
23819
23826
  lines.push("}");
23820
23827
  return [
@@ -24818,6 +24825,41 @@ var init_rules7 = __esm({
24818
24825
  targetType: "azurerm/ai/cognitive_deployment",
24819
24826
  targetHandle: "raip-in",
24820
24827
  createsReference: { side: "target", propertyKey: "rai_policy_name" }
24828
+ },
24829
+ // AI Foundry Hub dependency edges (sourced from the ref-{propKey} handles
24830
+ // auto-rendered for showAsEdge reference properties). The reference is set
24831
+ // on the source (Hub) side because the Hub's schema owns the property.
24832
+ {
24833
+ sourceType: "azurerm/ai/ai_foundry",
24834
+ sourceHandle: "ref-key_vault_id",
24835
+ targetType: "azurerm/security/key_vault",
24836
+ targetHandle: "pep-target",
24837
+ label: "Key Vault",
24838
+ createsReference: { side: "source", propertyKey: "key_vault_id" }
24839
+ },
24840
+ {
24841
+ sourceType: "azurerm/ai/ai_foundry",
24842
+ sourceHandle: "ref-storage_account_id",
24843
+ targetType: "azurerm/storage/storage_account",
24844
+ targetHandle: "pep-target",
24845
+ label: "Storage",
24846
+ createsReference: { side: "source", propertyKey: "storage_account_id" }
24847
+ },
24848
+ {
24849
+ sourceType: "azurerm/ai/ai_foundry",
24850
+ sourceHandle: "ref-application_insights_id",
24851
+ targetType: "azurerm/monitoring/application_insights",
24852
+ targetHandle: "pep-target",
24853
+ label: "App Insights",
24854
+ createsReference: { side: "source", propertyKey: "application_insights_id" }
24855
+ },
24856
+ {
24857
+ sourceType: "azurerm/ai/ai_foundry",
24858
+ sourceHandle: "ref-container_registry_id",
24859
+ targetType: "azurerm/containers/container_registry",
24860
+ targetHandle: "pep-target",
24861
+ label: "Container Registry",
24862
+ createsReference: { side: "source", propertyKey: "container_registry_id" }
24821
24863
  }
24822
24864
  ];
24823
24865
  }
@@ -34206,7 +34248,7 @@ function makeTerraformCommand() {
34206
34248
  }
34207
34249
 
34208
34250
  // dist/cli.js
34209
- var version = true ? "0.51.3" : "0.0.0-dev";
34251
+ var version = true ? "0.51.5" : "0.0.0-dev";
34210
34252
  var program2 = new Command();
34211
34253
  program2.name("tstudio").description("TerraStudio CLI \u2014 headless project manipulation and HCL generation").version(version);
34212
34254
  program2.addCommand(makeProjectCommand());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afroze9/terrastudio-cli",
3
- "version": "0.51.3",
3
+ "version": "0.51.5",
4
4
  "description": "CLI for TerraStudio — headless project manipulation and HCL generation",
5
5
  "author": "afroze9",
6
6
  "license": "AGPL-3.0-only",