@bakers-build/addon-orca 0.4.1-next.438 → 0.4.1-next.499

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.
@@ -2,7 +2,8 @@ import type { RootGitExec } from '@bakers-build/core';
2
2
  export interface OrcaStateConfig {
3
3
  /**
4
4
  * Terminal title template; must contain `{identifier}`. Other vars:
5
- * `{title}`, `{titleSlug}`, `{runUuid}`, `{workspacePath}`. `startRun`
5
+ * `{state}` (the state the run was started for), `{title}`, `{titleSlug}`,
6
+ * `{runUuid}`, `{workspacePath}`. `startRun`
6
7
  * appends ` #<run.id>`, the token `cleanupRun` finds the run's terminal by.
7
8
  */
8
9
  tabLabel?: string;
@@ -35,5 +36,5 @@ export interface OrcaExecutorOptions {
35
36
  /** How long `startRun` waits for Orca to adopt the worktree. Default 35 s. */
36
37
  adoptTimeoutMs?: number;
37
38
  }
38
- export declare const DEFAULT_TAB_LABEL = "{identifier} \u00B7 {titleSlug}";
39
+ export declare const DEFAULT_TAB_LABEL = "{identifier} \u00B7 {state}";
39
40
  export declare function resolveTabLabel(options: OrcaExecutorOptions, state: string): string;
@@ -1,4 +1,4 @@
1
- export const DEFAULT_TAB_LABEL = '{identifier} · {titleSlug}';
1
+ export const DEFAULT_TAB_LABEL = '{identifier} · {state}';
2
2
  export function resolveTabLabel(options, state) {
3
3
  const tabLabel = options.states?.[state]?.tabLabel ??
4
4
  options.default?.tabLabel ??
package/dist/src/index.js CHANGED
@@ -89,6 +89,7 @@ export class OrcaExecutor {
89
89
  await waitForAdoption(this.execOrca, input.workspacePath, this.options.adoptTimeoutMs ?? DEFAULT_ADOPT_TIMEOUT_MS, this.sleep);
90
90
  const title = `${renderTemplate(tabLabel, {
91
91
  identifier: input.ticket.identifier,
92
+ state: input.ticket.state,
92
93
  title: input.ticket.title,
93
94
  titleSlug: slugify(input.ticket.title),
94
95
  runUuid: input.run.uuid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/addon-orca",
3
- "version": "0.4.1-next.438",
3
+ "version": "0.4.1-next.499",
4
4
  "description": "bakers.build Orca integration: executor + per-ticket worktree workspace hosted in Orca.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -20,11 +20,11 @@
20
20
  "directory": "bakers-cli/addons/orca"
21
21
  },
22
22
  "dependencies": {
23
- "@bakers-build/addon-herdr": "^0.4.1-next.438",
24
- "@bakers-build/addon-workspace-git": "^0.4.1-next.438"
23
+ "@bakers-build/addon-herdr": "^0.4.1-next.499",
24
+ "@bakers-build/addon-workspace-git": "^0.4.1-next.499"
25
25
  },
26
26
  "peerDependencies": {
27
- "@bakers-build/conductor": "^0.4.1-next.438",
28
- "@bakers-build/core": "^0.4.1-next.438"
27
+ "@bakers-build/conductor": "^0.4.1-next.499",
28
+ "@bakers-build/core": "^0.4.1-next.499"
29
29
  }
30
30
  }