agentful 0.4.1 → 0.4.2

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/index.cjs +16 -25
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -3044,7 +3044,7 @@ var VERSION, brand, useColor, wrap, paint, tuiDesign, sym, ui;
3044
3044
  var init_branding = __esm({
3045
3045
  "src/branding.ts"() {
3046
3046
  "use strict";
3047
- VERSION = "0.4.1" ? "0.4.1" : null.version;
3047
+ VERSION = "0.4.2" ? "0.4.2" : null.version;
3048
3048
  brand = {
3049
3049
  name: "agentful",
3050
3050
  // the command users type
@@ -3068,8 +3068,6 @@ var init_branding = __esm({
3068
3068
  bold: wrap("1")
3069
3069
  };
3070
3070
  tuiDesign = {
3071
- /** Sits in front of the input line. U+276F, the shell prompt sigil. */
3072
- promptMark: "\u276F",
3073
3071
  /** Marks an item in progress in the sidebar's task list. U+203A. */
3074
3072
  activeMark: "\u203A"
3075
3073
  };
@@ -3510,7 +3508,6 @@ function brandingPluginSource() {
3510
3508
  const logoLiteral = JSON.stringify(logo_default.replace(/\n+$/, "").split("\n"));
3511
3509
  return `// Generated by ${brand.name} v${VERSION} \u2014 do not edit; rewritten on every start.
3512
3510
  const LOGO = ${logoLiteral}
3513
- const MARK = ${JSON.stringify(tuiDesign.promptMark)}
3514
3511
  const ACTIVE = ${JSON.stringify(tuiDesign.activeMark)}
3515
3512
  const USD = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' })
3516
3513
 
@@ -3683,31 +3680,25 @@ const plugin = {
3683
3680
  }
3684
3681
 
3685
3682
  /**
3686
- * Marker plus the engine's own input, with the engine's chrome taken off.
3683
+ * The engine's own input, with its rail taken off.
3687
3684
  *
3688
- * The engine wraps its input in a box with border ["left"] \u2014 the
3685
+ * The engine wraps the input in a box with border ["left"] \u2014 the
3689
3686
  * agent-coloured rail. There is no prop, config key or theme token that
3690
- * hides it (checked against v1.18.18 and against main), so we clip it
3691
- * instead: the wrapper hides its overflow and the prompt hangs one column
3692
- * to the left, which puts the rail outside the visible area. Everything
3693
- * else keeps working because it is only a shift.
3687
+ * hides it (checked against v1.18.18 and against main), so we clip it:
3688
+ * the wrapper hides its overflow and the prompt hangs one column to the
3689
+ * left, which puts the rail outside the visible area. Everything else
3690
+ * keeps working because it is only a shift.
3694
3691
  *
3695
3692
  * \u26A0\uFE0F One column is the limit. The status line under the input (our hint
3696
3693
  * on the left) sits OUTSIDE that padded box and carries a margin of just
3697
3694
  * 1, so a wider clip eats the start of the working directory \u2014
3698
- * "/Users/\u2026" came out as "sers/\u2026" at -3. The two columns left between
3699
- * the marker and the text are the engine's own padding; taking those
3700
- * would cost the status line.
3695
+ * "/Users/\u2026" came out as "sers/\u2026" at -3. The rendering check asserts the
3696
+ * working directory for exactly this reason.
3701
3697
  */
3702
- function Band(props) {
3698
+ function Field(props) {
3703
3699
  return (
3704
- <box flexDirection="row" width="100%">
3705
- <box flexShrink={0} paddingTop={1}>
3706
- <text fg={t().primary}>{MARK}</text>
3707
- </box>
3708
- <box flexGrow={1} overflow="hidden">
3709
- <box marginLeft={-1} width="100%">{props.children}</box>
3710
- </box>
3700
+ <box width="100%" overflow="hidden">
3701
+ <box marginLeft={-1} width="100%">{props.children}</box>
3711
3702
  </box>
3712
3703
  )
3713
3704
  }
@@ -3733,19 +3724,19 @@ const plugin = {
3733
3724
 
3734
3725
  home_prompt(ctx, data) {
3735
3726
  return (
3736
- <Band>
3727
+ <Field>
3737
3728
  <Prompt
3738
3729
  ref={data.ref}
3739
3730
  placeholders={PLACEHOLDERS}
3740
3731
  right={<HostSlot name="home_prompt_right" />}
3741
3732
  />
3742
- </Band>
3733
+ </Field>
3743
3734
  )
3744
3735
  },
3745
3736
 
3746
3737
  session_prompt(ctx, data) {
3747
3738
  return (
3748
- <Band>
3739
+ <Field>
3749
3740
  <Prompt
3750
3741
  sessionID={data.session_id}
3751
3742
  visible={data.visible}
@@ -3756,7 +3747,7 @@ const plugin = {
3756
3747
  hint={<Hint sessionID={data.session_id} />}
3757
3748
  right={<HostSlot name="session_prompt_right" session_id={data.session_id} />}
3758
3749
  />
3759
- </Band>
3750
+ </Field>
3760
3751
  )
3761
3752
  },
3762
3753
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentful",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Agentful in your terminal — local development with push-to-cloud previews",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://agentful.dev",