@rtrentjones/greenlight 0.2.27 → 0.2.28

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/dist/bin.js +5 -11
  2. package/package.json +5 -5
package/dist/bin.js CHANGED
@@ -478,7 +478,7 @@ function tokensForTool(tool) {
478
478
  }
479
479
 
480
480
  // src/version.ts
481
- var MODULE_REF = "v0.2.27";
481
+ var MODULE_REF = "v0.2.28";
482
482
  var MODULE_SOURCE_BASE = "git::https://github.com/RTrentJones/greenlight.git//infra/modules";
483
483
  function moduleSource(module, ref = MODULE_REF) {
484
484
  return `${MODULE_SOURCE_BASE}/${module}?ref=${ref}`;
@@ -626,16 +626,13 @@ module "${name}_neon" {
626
626
  module "${name}_vercel" {
627
627
  source = "${moduleSource("vercel", ref)}"
628
628
 
629
- project_id = var.${name}_vercel_project_id
629
+ # Non-secret id \u2014 create the Vercel project first (git-import, root dir tools/${name}), then commit
630
+ # the literal here (the heistmind pattern). No TF var / HCP workspace variable needed.
631
+ project_id = "prj_REPLACE_WITH_YOUR_VERCEL_PROJECT_ID"
630
632
  name = "${name}"
631
633
  domain = "${domain}"
632
634
  beta_branch = "develop"
633
635
  ${env}
634
- }
635
-
636
- variable "${name}_vercel_project_id" {
637
- type = string
638
- description = "Vercel project id for ${name} (prj_\u2026); the project must already exist."
639
636
  }`);
640
637
  }
641
638
  if (useOci) {
@@ -733,7 +730,7 @@ function emitWrapperMainTf(opts) {
733
730
  const providerBlocks = ['provider "cloudflare" {}', `provider "github" { owner = "${owner}" }`];
734
731
  if (need.has("vercel")) providerBlocks.push('provider "vercel" {}');
735
732
  if (need.has("supabase")) providerBlocks.push('provider "supabase" {}');
736
- if (need.has("neon")) providerBlocks.push('provider "neon" { api_key = var.neon_api_key }');
733
+ if (need.has("neon")) providerBlocks.push('provider "neon" {}');
737
734
  if (need.has("oci")) {
738
735
  providerBlocks.push(`provider "oci" {
739
736
  # trimspace guards against a trailing newline/space in a pasted secret (a malformed region
@@ -750,9 +747,6 @@ function emitWrapperMainTf(opts) {
750
747
  if (need.has("supabase")) {
751
748
  vars.push('variable "supabase_organization_id" { type = string }');
752
749
  }
753
- if (need.has("neon")) {
754
- vars.push('variable "neon_api_key" {\n type = string\n sensitive = true\n}');
755
- }
756
750
  if (need.has("oci")) {
757
751
  vars.push('variable "oci_tenancy_ocid" { type = string }');
758
752
  vars.push('variable "oci_user_ocid" { type = string }');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtrentjones/greenlight",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "Greenlight CLI — setup and lifecycle for the harness.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,10 +31,10 @@
31
31
  "@anthropic-ai/sdk": "^0.69.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@rtrentjones/greenlight-adapters": "0.2.27",
35
- "@rtrentjones/greenlight-loop": "0.2.27",
36
- "@rtrentjones/greenlight-shared": "0.2.27",
37
- "@rtrentjones/greenlight-verify": "0.2.27"
34
+ "@rtrentjones/greenlight-adapters": "0.2.28",
35
+ "@rtrentjones/greenlight-loop": "0.2.28",
36
+ "@rtrentjones/greenlight-verify": "0.2.28",
37
+ "@rtrentjones/greenlight-shared": "0.2.28"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "node scripts/copy-assets.mjs && tsup",