@ebay-dt/bonfire-cli 0.3.0-alpha.4 → 0.3.0-alpha.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.
@@ -1,3 +1,3 @@
1
- export declare const BONFIRE_VERSION = "0.3.0-alpha.4";
1
+ export declare const BONFIRE_VERSION = "0.3.0-alpha.5";
2
2
  export declare const PRESET_VERSION = "0.1.0";
3
3
  //# sourceMappingURL=release-versions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"release-versions.d.ts","sourceRoot":"","sources":["../src/release-versions.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,eAAO,MAAM,cAAc,UAAU,CAAC","sourcesContent":["// Generated by scripts/generate-release-versions.mjs during the package build.\nexport const BONFIRE_VERSION = \"0.3.0-alpha.4\";\nexport const PRESET_VERSION = \"0.1.0\";\n"]}
1
+ {"version":3,"file":"release-versions.d.ts","sourceRoot":"","sources":["../src/release-versions.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAC/C,eAAO,MAAM,cAAc,UAAU,CAAC","sourcesContent":["// Generated by scripts/generate-release-versions.mjs during the package build.\nexport const BONFIRE_VERSION = \"0.3.0-alpha.5\";\nexport const PRESET_VERSION = \"0.1.0\";\n"]}
@@ -1,4 +1,4 @@
1
1
  // Generated by scripts/generate-release-versions.mjs during the package build.
2
- export const BONFIRE_VERSION = "0.3.0-alpha.4";
2
+ export const BONFIRE_VERSION = "0.3.0-alpha.5";
3
3
  export const PRESET_VERSION = "0.1.0";
4
4
  //# sourceMappingURL=release-versions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"release-versions.js","sourceRoot":"","sources":["../src/release-versions.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC","sourcesContent":["// Generated by scripts/generate-release-versions.mjs during the package build.\nexport const BONFIRE_VERSION = \"0.3.0-alpha.4\";\nexport const PRESET_VERSION = \"0.1.0\";\n"]}
1
+ {"version":3,"file":"release-versions.js","sourceRoot":"","sources":["../src/release-versions.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC","sourcesContent":["// Generated by scripts/generate-release-versions.mjs during the package build.\nexport const BONFIRE_VERSION = \"0.3.0-alpha.5\";\nexport const PRESET_VERSION = \"0.1.0\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay-dt/bonfire-cli",
3
- "version": "0.3.0-alpha.4",
3
+ "version": "0.3.0-alpha.5",
4
4
  "description": "The Bonfire command-line tool.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,10 +31,10 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@ebay-dt/bonfire-context": "0.3.0-alpha.4",
34
+ "@ebay-dt/bonfire-context": "0.3.0-alpha.5",
35
35
  "@next/env": "16.3.4",
36
- "@ebay-dt/bonfire-core": "0.3.0-alpha.4",
37
- "@ebay-dt/bonfire-node": "0.3.0-alpha.4"
36
+ "@ebay-dt/bonfire-core": "0.3.0-alpha.5",
37
+ "@ebay-dt/bonfire-node": "0.3.0-alpha.5"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@repo/eslint-config": "0.0.0",
@@ -0,0 +1,16 @@
1
+ "use server";
2
+
3
+ import type { TerminalApp } from "@ebay-dt/bonfire-core";
4
+ import { bonfire } from "@/bonfire";
5
+
6
+ export async function readPreferences() {
7
+ return bonfire.preferences.read();
8
+ }
9
+
10
+ export async function updatePreferences(terminal: TerminalApp) {
11
+ return bonfire.preferences.update(terminal);
12
+ }
13
+
14
+ export async function availablePreferenceTerminals() {
15
+ return bonfire.preferences.availableTerminals();
16
+ }
@@ -6,6 +6,7 @@ import {
6
6
  PrototypeEnvironment,
7
7
  } from "@ebay-dt/bonfire-react";
8
8
  import { bonfire } from "@/bonfire";
9
+ import { availablePreferenceTerminals, readPreferences, updatePreferences } from "@/actions/preferences";
9
10
  import { openInClaudeCode, openInCursor } from "@/actions/agents";
10
11
 
11
12
  export default async function PrototypesLayout({
@@ -19,7 +20,15 @@ export default async function PrototypesLayout({
19
20
  if (prototype === null) notFound();
20
21
 
21
22
  const agentActions = { openInClaudeCode, openInCursor };
22
- const header = <AppHeader {...headerProps} agentActions={agentActions} />;
23
+ const header = (
24
+ <AppHeader
25
+ {...headerProps}
26
+ agentActions={agentActions}
27
+ {...(process.env.NODE_ENV !== "production"
28
+ ? { preferencesActions: { read: readPreferences, update: updatePreferences, availableTerminals: availablePreferenceTerminals } }
29
+ : {})}
30
+ />
31
+ );
23
32
 
24
33
  const shell = (
25
34
  <PrototypeControlsShell header={header}>{children}</PrototypeControlsShell>
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
2
  import { AppHeader } from "@ebay-dt/bonfire-react";
3
3
  import { bonfire } from "@/bonfire";
4
+ import { availablePreferenceTerminals, readPreferences, updatePreferences } from "@/actions/preferences";
4
5
  import { openInClaudeCode, openInCursor } from "@/actions/agents";
5
6
 
6
7
  export default async function SystemLayout({
@@ -13,6 +14,9 @@ export default async function SystemLayout({
13
14
  <AppHeader
14
15
  {...headerProps}
15
16
  agentActions={{ openInClaudeCode, openInCursor }}
17
+ {...(process.env.NODE_ENV !== "production"
18
+ ? { preferencesActions: { read: readPreferences, update: updatePreferences, availableTerminals: availablePreferenceTerminals } }
19
+ : {})}
16
20
  />
17
21
  {children}
18
22
  </>