@helloleo/plugins 0.2.10 → 0.2.11

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/index.js CHANGED
@@ -24906,7 +24906,7 @@ var SCAFFOLD_TEMPLATES = {
24906
24906
  };
24907
24907
  var SCAFFOLD_VERSION = SCAFFOLD_TEMPLATES["tanstack-start"];
24908
24908
  function resolveTemplateId() {
24909
- const version3 = process.env.SCAFFOLD_VERSION;
24909
+ const version3 = process.env.PLUGINS_SCAFFOLD_VERSION;
24910
24910
  const known = Object.values(SCAFFOLD_TEMPLATES);
24911
24911
  if (version3 && known.includes(version3))
24912
24912
  return version3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helloleo/plugins",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "OpenCode plugins for HelloLeo",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -28,13 +28,13 @@ export type ScaffoldType = keyof typeof SCAFFOLD_TEMPLATES;
28
28
  export const SCAFFOLD_VERSION = SCAFFOLD_TEMPLATES["tanstack-start"];
29
29
 
30
30
  /**
31
- * The container can pin the template via SCAFFOLD_VERSION (a versioned
31
+ * The container can pin the template via PLUGINS_SCAFFOLD_VERSION (a versioned
32
32
  * template id, e.g. "tanstack-start-2026-06-18"). Unset or unknown values
33
33
  * fall back to the tanstack-router template, so a stale env var can never
34
34
  * reproduce the ENOENT-on-missing-template failure.
35
35
  */
36
36
  export function resolveTemplateId(): string {
37
- const version = process.env.SCAFFOLD_VERSION;
37
+ const version = process.env.PLUGINS_SCAFFOLD_VERSION;
38
38
  const known: string[] = Object.values(SCAFFOLD_TEMPLATES);
39
39
  if (version && known.includes(version)) return version;
40
40
  return SCAFFOLD_TEMPLATES["tanstack-router"];
@@ -53,7 +53,7 @@ export function projectUuidFromDir(dir: string): string {
53
53
 
54
54
  /**
55
55
  * Integration-proxy base URL, provided by the opencode container via
56
- * PLUGINS_INTEGRATION_PROXY_URL (like SCAFFOLD_VERSION) so each deployment
56
+ * PLUGINS_INTEGRATION_PROXY_URL (like PLUGINS_SCAFFOLD_VERSION) so each deployment
57
57
  * (dev | preprod | prod) bakes its own proxy host into proxy.ts at scaffold
58
58
  * time -- previews and published apps use the same value. Unset falls back
59
59
  * to prod so a missing env var can never break production scaffolds.