@hasna/assistants 1.1.58 → 1.1.59

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
@@ -89084,7 +89084,7 @@ Not a git repository or git not available.
89084
89084
  context.setProjectContext(projectContext);
89085
89085
  }
89086
89086
  }
89087
- var VERSION2 = "1.1.58";
89087
+ var VERSION2 = "1.1.59";
89088
89088
  var init_builtin = __esm(async () => {
89089
89089
  init_src2();
89090
89090
  init_context3();
@@ -199779,6 +199779,12 @@ function rowToPerson(row) {
199779
199779
  };
199780
199780
  if (row.email)
199781
199781
  person.email = row.email;
199782
+ if (row.phone)
199783
+ person.phone = row.phone;
199784
+ if (row.role)
199785
+ person.role = row.role;
199786
+ if (row.notes)
199787
+ person.notes = row.notes;
199782
199788
  if (row.avatar_url)
199783
199789
  person.avatar = row.avatar_url;
199784
199790
  if (row.metadata) {
@@ -199811,13 +199817,16 @@ class PeopleStore {
199811
199817
  const activeRow = this.db.query("SELECT person_id FROM people_active WHERE key = 'active'").get();
199812
199818
  this.activeId = activeRow?.person_id || null;
199813
199819
  }
199814
- async create(name2, email2, avatar) {
199820
+ async create(name2, email2, phone, role, notes, avatar) {
199815
199821
  const id = `person_${generateId().slice(0, 12)}`;
199816
199822
  const now2 = new Date().toISOString();
199817
199823
  const person = {
199818
199824
  id,
199819
199825
  name: name2,
199820
199826
  email: email2,
199827
+ phone,
199828
+ role,
199829
+ notes,
199821
199830
  avatar,
199822
199831
  status: "active",
199823
199832
  createdAt: now2,
@@ -199870,6 +199879,8 @@ class PeopleStore {
199870
199879
  id: p5.id,
199871
199880
  name: p5.name,
199872
199881
  email: p5.email,
199882
+ phone: p5.phone,
199883
+ role: p5.role,
199873
199884
  status: p5.status,
199874
199885
  isActive: p5.id === this.activeId
199875
199886
  }));
@@ -199906,7 +199917,7 @@ class PeopleStore {
199906
199917
  metadata.defaultIdentityId = person.defaultIdentityId;
199907
199918
  const metadataStr = Object.keys(metadata).length > 0 ? JSON.stringify(metadata) : null;
199908
199919
  this.db.prepare(`INSERT OR REPLACE INTO people (id, name, email, phone, role, notes, avatar_url, metadata, created_at, updated_at)
199909
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(person.id, person.name, person.email || null, null, null, null, person.avatar || null, metadataStr, createdMs, nowMs);
199920
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(person.id, person.name, person.email || null, person.phone || null, person.role || null, person.notes || null, person.avatar || null, metadataStr, createdMs, nowMs);
199910
199921
  }
199911
199922
  }
199912
199923
  var init_store8 = __esm(async () => {
@@ -199928,7 +199939,7 @@ class PeopleManager {
199928
199939
  if (existing) {
199929
199940
  throw new Error(`Person "${options.name}" already exists.`);
199930
199941
  }
199931
- return this.store.create(options.name, options.email, options.avatar);
199942
+ return this.store.create(options.name, options.email, options.phone, options.role, options.notes, options.avatar);
199932
199943
  }
199933
199944
  async updatePerson(id, updates) {
199934
199945
  return this.store.update(id, updates);
@@ -200004,16 +200015,21 @@ function createPeopleToolExecutors(getPeopleManager) {
200004
200015
  if (!name2)
200005
200016
  return "Error: name is required.";
200006
200017
  const email2 = typeof input.email === "string" ? input.email.trim() : undefined;
200018
+ const phone = typeof input.phone === "string" ? input.phone.trim() : undefined;
200019
+ const role = typeof input.role === "string" ? input.role.trim() : undefined;
200020
+ const notes = typeof input.notes === "string" ? input.notes.trim() : undefined;
200007
200021
  const avatar = typeof input.avatar === "string" ? input.avatar.trim() : undefined;
200008
200022
  const setActive = input.setActive !== false;
200009
200023
  try {
200010
- const person = await manager.createPerson({ name: name2, email: email2, avatar });
200024
+ const person = await manager.createPerson({ name: name2, email: email2, phone, role, notes, avatar });
200011
200025
  if (setActive) {
200012
200026
  await manager.setActivePerson(person.id);
200013
200027
  }
200014
200028
  return [
200015
200029
  `Person created: ${person.name} (${person.id})`,
200016
200030
  email2 ? `Email: ${email2}` : undefined,
200031
+ phone ? `Phone: ${phone}` : undefined,
200032
+ role ? `Role: ${role}` : undefined,
200017
200033
  setActive ? `Active: ${person.name}` : undefined
200018
200034
  ].filter(Boolean).join(`
200019
200035
  `);
@@ -200122,9 +200138,12 @@ function formatPersonDetails(person, isActive) {
200122
200138
  `Name: ${person.name}`,
200123
200139
  `ID: ${person.id}`,
200124
200140
  person.email ? `Email: ${person.email}` : undefined,
200141
+ person.phone ? `Phone: ${person.phone}` : undefined,
200142
+ person.role ? `Role: ${person.role}` : undefined,
200125
200143
  person.avatar ? `Avatar: ${person.avatar}` : undefined,
200126
200144
  `Status: ${person.status}`,
200127
200145
  `Active: ${isActive ? "yes" : "no"}`,
200146
+ person.notes ? `Notes: ${person.notes}` : undefined,
200128
200147
  `Created: ${person.createdAt}`,
200129
200148
  `Updated: ${person.updatedAt}`
200130
200149
  ].filter(Boolean);
@@ -200172,6 +200191,18 @@ var init_tools11 = __esm(() => {
200172
200191
  type: "string",
200173
200192
  description: "Email address (optional)"
200174
200193
  },
200194
+ phone: {
200195
+ type: "string",
200196
+ description: "Phone number (optional)"
200197
+ },
200198
+ role: {
200199
+ type: "string",
200200
+ description: "Role or title (optional)"
200201
+ },
200202
+ notes: {
200203
+ type: "string",
200204
+ description: "Notes about this person (optional)"
200205
+ },
200175
200206
  avatar: {
200176
200207
  type: "string",
200177
200208
  description: "Avatar URL (optional)"
@@ -270457,8 +270488,12 @@ function PeoplePanel({ manager, onClose }) {
270457
270488
  const [selectedIndex, setSelectedIndex] = import_react58.useState(0);
270458
270489
  const [error4, setError] = import_react58.useState(null);
270459
270490
  const [statusMessage, setStatusMessage] = import_react58.useState(null);
270491
+ const [viewPerson, setViewPerson] = import_react58.useState(null);
270460
270492
  const [createName, setCreateName] = import_react58.useState("");
270461
270493
  const [createEmail, setCreateEmail] = import_react58.useState("");
270494
+ const [createPhone, setCreatePhone] = import_react58.useState("");
270495
+ const [createRole, setCreateRole] = import_react58.useState("");
270496
+ const [createNotes, setCreateNotes] = import_react58.useState("");
270462
270497
  const loadPeople = () => {
270463
270498
  try {
270464
270499
  const list = manager.listPeople();
@@ -270480,10 +270515,13 @@ function PeoplePanel({ manager, onClose }) {
270480
270515
  }
270481
270516
  }, [mode, people2.length]);
270482
270517
  useSafeInput((input, key) => {
270483
- const isTextEntry = mode === "create-name" || mode === "create-email";
270518
+ const isTextEntry = mode === "create-name" || mode === "create-email" || mode === "create-phone" || mode === "create-role" || mode === "create-notes";
270484
270519
  if (key.escape || input === "q" && !isTextEntry) {
270485
- if ((key.escape || input === "q") && mode === "list") {
270520
+ if (mode === "list") {
270486
270521
  onClose();
270522
+ } else if (mode === "view") {
270523
+ setMode("list");
270524
+ setViewPerson(null);
270487
270525
  } else if (key.escape) {
270488
270526
  setMode("list");
270489
270527
  setStatusMessage(null);
@@ -270503,15 +270541,27 @@ function PeoplePanel({ manager, onClose }) {
270503
270541
  }
270504
270542
  } else if (key.return && people2.length > 0) {
270505
270543
  const person = people2[selectedIndex];
270506
- manager.setActivePerson(person.id).then(() => {
270507
- setStatusMessage(`Logged in as ${person.name}`);
270508
- loadPeople();
270509
- }).catch((err) => {
270510
- setStatusMessage(`Error: ${err.message}`);
270511
- });
270544
+ const full = manager.getPerson(person.id);
270545
+ if (full) {
270546
+ setViewPerson(full);
270547
+ setMode("view");
270548
+ }
270549
+ } else if (input === "a") {
270550
+ if (people2.length > 0) {
270551
+ const person = people2[selectedIndex];
270552
+ manager.setActivePerson(person.id).then(() => {
270553
+ setStatusMessage(`Logged in as ${person.name}`);
270554
+ loadPeople();
270555
+ }).catch((err) => {
270556
+ setStatusMessage(`Error: ${err.message}`);
270557
+ });
270558
+ }
270512
270559
  } else if (input === "c") {
270513
270560
  setCreateName("");
270514
270561
  setCreateEmail("");
270562
+ setCreatePhone("");
270563
+ setCreateRole("");
270564
+ setCreateNotes("");
270515
270565
  setMode("create-name");
270516
270566
  } else if (input === "l") {
270517
270567
  manager.logout().then(() => {
@@ -270524,6 +270574,17 @@ function PeoplePanel({ manager, onClose }) {
270524
270574
  loadPeople();
270525
270575
  setStatusMessage("Refreshed");
270526
270576
  }
270577
+ } else if (mode === "view") {
270578
+ if (input === "a" && viewPerson) {
270579
+ manager.setActivePerson(viewPerson.id).then(() => {
270580
+ setStatusMessage(`Logged in as ${viewPerson.name}`);
270581
+ loadPeople();
270582
+ setMode("list");
270583
+ setViewPerson(null);
270584
+ }).catch((err) => {
270585
+ setStatusMessage(`Error: ${err.message}`);
270586
+ });
270587
+ }
270527
270588
  } else if (mode === "delete-confirm") {
270528
270589
  if (input === "y" && people2.length > 0) {
270529
270590
  const person = people2[selectedIndex];
@@ -270545,7 +270606,10 @@ function PeoplePanel({ manager, onClose }) {
270545
270606
  if (input === "y") {
270546
270607
  manager.createPerson({
270547
270608
  name: createName,
270548
- email: createEmail || undefined
270609
+ email: createEmail || undefined,
270610
+ phone: createPhone || undefined,
270611
+ role: createRole || undefined,
270612
+ notes: createNotes || undefined
270549
270613
  }).then((person) => {
270550
270614
  return manager.setActivePerson(person.id).then(() => {
270551
270615
  setStatusMessage(`Created and logged in as ${person.name}`);
@@ -270561,6 +270625,20 @@ function PeoplePanel({ manager, onClose }) {
270561
270625
  }
270562
270626
  }
270563
270627
  });
270628
+ const getHeaderHints = () => {
270629
+ switch (mode) {
270630
+ case "list":
270631
+ return "q:close c:create enter:view a:login l:logout d:delete r:refresh";
270632
+ case "view":
270633
+ return "q:back a:login";
270634
+ case "delete-confirm":
270635
+ return "y:confirm n:cancel";
270636
+ case "create-confirm":
270637
+ return "y:confirm n:cancel";
270638
+ default:
270639
+ return "Enter to continue, Esc to cancel";
270640
+ }
270641
+ };
270564
270642
  const header = /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270565
270643
  borderStyle: "round",
270566
270644
  borderColor: "#d4d4d8",
@@ -270580,7 +270658,7 @@ function PeoplePanel({ manager, onClose }) {
270580
270658
  }, undefined, false, undefined, this),
270581
270659
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270582
270660
  color: "gray",
270583
- children: mode === "list" ? "q:close c:create enter:login l:logout d:delete r:refresh" : mode === "delete-confirm" ? "y:confirm n:cancel" : mode === "create-confirm" ? "y:confirm n:cancel" : "Enter to continue"
270661
+ children: getHeaderHints()
270584
270662
  }, undefined, false, undefined, this)
270585
270663
  ]
270586
270664
  }, undefined, true, undefined, this);
@@ -270601,6 +270679,92 @@ function PeoplePanel({ manager, onClose }) {
270601
270679
  ]
270602
270680
  }, undefined, true, undefined, this)
270603
270681
  }, undefined, false, undefined, this) : null;
270682
+ if (mode === "view" && viewPerson) {
270683
+ return /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270684
+ flexDirection: "column",
270685
+ children: [
270686
+ header,
270687
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270688
+ paddingX: 1,
270689
+ flexDirection: "column",
270690
+ children: [
270691
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270692
+ bold: true,
270693
+ color: "green",
270694
+ children: viewPerson.name
270695
+ }, undefined, false, undefined, this),
270696
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270697
+ color: "gray",
270698
+ children: [
270699
+ "ID: ",
270700
+ viewPerson.id
270701
+ ]
270702
+ }, undefined, true, undefined, this),
270703
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270704
+ children: " "
270705
+ }, undefined, false, undefined, this),
270706
+ viewPerson.email && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270707
+ children: [
270708
+ "Email: ",
270709
+ viewPerson.email
270710
+ ]
270711
+ }, undefined, true, undefined, this),
270712
+ viewPerson.phone && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270713
+ children: [
270714
+ "Phone: ",
270715
+ viewPerson.phone
270716
+ ]
270717
+ }, undefined, true, undefined, this),
270718
+ viewPerson.role && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270719
+ children: [
270720
+ "Role: ",
270721
+ viewPerson.role
270722
+ ]
270723
+ }, undefined, true, undefined, this),
270724
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270725
+ children: [
270726
+ "Status: ",
270727
+ viewPerson.status
270728
+ ]
270729
+ }, undefined, true, undefined, this),
270730
+ viewPerson.notes && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270731
+ flexDirection: "column",
270732
+ marginTop: 1,
270733
+ children: [
270734
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270735
+ bold: true,
270736
+ children: "Notes:"
270737
+ }, undefined, false, undefined, this),
270738
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270739
+ children: [
270740
+ " ",
270741
+ viewPerson.notes
270742
+ ]
270743
+ }, undefined, true, undefined, this)
270744
+ ]
270745
+ }, undefined, true, undefined, this),
270746
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270747
+ children: " "
270748
+ }, undefined, false, undefined, this),
270749
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270750
+ dimColor: true,
270751
+ children: [
270752
+ "Created: ",
270753
+ viewPerson.createdAt
270754
+ ]
270755
+ }, undefined, true, undefined, this),
270756
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270757
+ dimColor: true,
270758
+ children: [
270759
+ "Updated: ",
270760
+ viewPerson.updatedAt
270761
+ ]
270762
+ }, undefined, true, undefined, this)
270763
+ ]
270764
+ }, undefined, true, undefined, this)
270765
+ ]
270766
+ }, undefined, true, undefined, this);
270767
+ }
270604
270768
  if (mode === "list") {
270605
270769
  return /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270606
270770
  flexDirection: "column",
@@ -270617,17 +270781,25 @@ function PeoplePanel({ manager, onClose }) {
270617
270781
  }, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270618
270782
  flexDirection: "column",
270619
270783
  paddingX: 1,
270620
- children: people2.map((p5, i5) => /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270784
+ children: people2.map((p5) => /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270621
270785
  children: [
270622
270786
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270623
- color: i5 === selectedIndex ? "green" : undefined,
270624
- children: i5 === selectedIndex ? "\u25B8 " : " "
270787
+ color: p5.id === people2[selectedIndex]?.id ? "green" : undefined,
270788
+ children: p5.id === people2[selectedIndex]?.id ? "> " : " "
270625
270789
  }, undefined, false, undefined, this),
270626
270790
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270627
- bold: i5 === selectedIndex,
270628
- color: i5 === selectedIndex ? "green" : undefined,
270791
+ bold: p5.id === people2[selectedIndex]?.id,
270792
+ color: p5.id === people2[selectedIndex]?.id ? "green" : undefined,
270629
270793
  children: p5.name
270630
270794
  }, undefined, false, undefined, this),
270795
+ p5.role && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270796
+ color: "gray",
270797
+ children: [
270798
+ " (",
270799
+ p5.role,
270800
+ ")"
270801
+ ]
270802
+ }, undefined, true, undefined, this),
270631
270803
  p5.email && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270632
270804
  color: "gray",
270633
270805
  children: [
@@ -270636,6 +270808,13 @@ function PeoplePanel({ manager, onClose }) {
270636
270808
  ">"
270637
270809
  ]
270638
270810
  }, undefined, true, undefined, this),
270811
+ p5.phone && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270812
+ dimColor: true,
270813
+ children: [
270814
+ " ",
270815
+ p5.phone
270816
+ ]
270817
+ }, undefined, true, undefined, this),
270639
270818
  p5.isActive && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270640
270819
  color: "cyan",
270641
270820
  children: " (active)"
@@ -270709,12 +270888,11 @@ function PeoplePanel({ manager, onClose }) {
270709
270888
  value: createName,
270710
270889
  onChange: setCreateName,
270711
270890
  onSubmit: () => {
270712
- if (createName.trim()) {
270891
+ if (createName.trim())
270713
270892
  setMode("create-email");
270714
- }
270715
270893
  },
270716
270894
  focus: true,
270717
- placeholder: "e.g., Andrei"
270895
+ placeholder: "e.g., Andrei Hasna"
270718
270896
  }, undefined, false, undefined, this)
270719
270897
  ]
270720
270898
  }, undefined, true, undefined, this)
@@ -270753,9 +270931,7 @@ function PeoplePanel({ manager, onClose }) {
270753
270931
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(build_default2, {
270754
270932
  value: createEmail,
270755
270933
  onChange: setCreateEmail,
270756
- onSubmit: () => {
270757
- setMode("create-confirm");
270758
- },
270934
+ onSubmit: () => setMode("create-phone"),
270759
270935
  focus: true,
270760
270936
  placeholder: "(optional) e.g., andrei@hasna.com"
270761
270937
  }, undefined, false, undefined, this)
@@ -270766,6 +270942,165 @@ function PeoplePanel({ manager, onClose }) {
270766
270942
  ]
270767
270943
  }, undefined, true, undefined, this);
270768
270944
  }
270945
+ if (mode === "create-phone") {
270946
+ return /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270947
+ flexDirection: "column",
270948
+ children: [
270949
+ header,
270950
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270951
+ paddingX: 1,
270952
+ flexDirection: "column",
270953
+ children: [
270954
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270955
+ bold: true,
270956
+ children: "Create Person"
270957
+ }, undefined, false, undefined, this),
270958
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270959
+ children: [
270960
+ "Name: ",
270961
+ createName
270962
+ ]
270963
+ }, undefined, true, undefined, this),
270964
+ createEmail && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270965
+ children: [
270966
+ "Email: ",
270967
+ createEmail
270968
+ ]
270969
+ }, undefined, true, undefined, this),
270970
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270971
+ children: " "
270972
+ }, undefined, false, undefined, this),
270973
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270974
+ children: [
270975
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270976
+ children: "Phone: "
270977
+ }, undefined, false, undefined, this),
270978
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(build_default2, {
270979
+ value: createPhone,
270980
+ onChange: setCreatePhone,
270981
+ onSubmit: () => setMode("create-role"),
270982
+ focus: true,
270983
+ placeholder: "(optional) e.g., +1-555-123-4567"
270984
+ }, undefined, false, undefined, this)
270985
+ ]
270986
+ }, undefined, true, undefined, this)
270987
+ ]
270988
+ }, undefined, true, undefined, this)
270989
+ ]
270990
+ }, undefined, true, undefined, this);
270991
+ }
270992
+ if (mode === "create-role") {
270993
+ return /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270994
+ flexDirection: "column",
270995
+ children: [
270996
+ header,
270997
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270998
+ paddingX: 1,
270999
+ flexDirection: "column",
271000
+ children: [
271001
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271002
+ bold: true,
271003
+ children: "Create Person"
271004
+ }, undefined, false, undefined, this),
271005
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271006
+ children: [
271007
+ "Name: ",
271008
+ createName
271009
+ ]
271010
+ }, undefined, true, undefined, this),
271011
+ createEmail && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271012
+ children: [
271013
+ "Email: ",
271014
+ createEmail
271015
+ ]
271016
+ }, undefined, true, undefined, this),
271017
+ createPhone && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271018
+ children: [
271019
+ "Phone: ",
271020
+ createPhone
271021
+ ]
271022
+ }, undefined, true, undefined, this),
271023
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271024
+ children: " "
271025
+ }, undefined, false, undefined, this),
271026
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
271027
+ children: [
271028
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271029
+ children: "Role: "
271030
+ }, undefined, false, undefined, this),
271031
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(build_default2, {
271032
+ value: createRole,
271033
+ onChange: setCreateRole,
271034
+ onSubmit: () => setMode("create-notes"),
271035
+ focus: true,
271036
+ placeholder: "(optional) e.g., Developer, Manager"
271037
+ }, undefined, false, undefined, this)
271038
+ ]
271039
+ }, undefined, true, undefined, this)
271040
+ ]
271041
+ }, undefined, true, undefined, this)
271042
+ ]
271043
+ }, undefined, true, undefined, this);
271044
+ }
271045
+ if (mode === "create-notes") {
271046
+ return /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
271047
+ flexDirection: "column",
271048
+ children: [
271049
+ header,
271050
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
271051
+ paddingX: 1,
271052
+ flexDirection: "column",
271053
+ children: [
271054
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271055
+ bold: true,
271056
+ children: "Create Person"
271057
+ }, undefined, false, undefined, this),
271058
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271059
+ children: [
271060
+ "Name: ",
271061
+ createName
271062
+ ]
271063
+ }, undefined, true, undefined, this),
271064
+ createEmail && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271065
+ children: [
271066
+ "Email: ",
271067
+ createEmail
271068
+ ]
271069
+ }, undefined, true, undefined, this),
271070
+ createPhone && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271071
+ children: [
271072
+ "Phone: ",
271073
+ createPhone
271074
+ ]
271075
+ }, undefined, true, undefined, this),
271076
+ createRole && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271077
+ children: [
271078
+ "Role: ",
271079
+ createRole
271080
+ ]
271081
+ }, undefined, true, undefined, this),
271082
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271083
+ children: " "
271084
+ }, undefined, false, undefined, this),
271085
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
271086
+ children: [
271087
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271088
+ children: "Notes: "
271089
+ }, undefined, false, undefined, this),
271090
+ /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(build_default2, {
271091
+ value: createNotes,
271092
+ onChange: setCreateNotes,
271093
+ onSubmit: () => setMode("create-confirm"),
271094
+ focus: true,
271095
+ placeholder: "(optional) Any notes about this person"
271096
+ }, undefined, false, undefined, this)
271097
+ ]
271098
+ }, undefined, true, undefined, this)
271099
+ ]
271100
+ }, undefined, true, undefined, this)
271101
+ ]
271102
+ }, undefined, true, undefined, this);
271103
+ }
270769
271104
  if (mode === "create-confirm") {
270770
271105
  return /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270771
271106
  flexDirection: "column",
@@ -270794,6 +271129,24 @@ function PeoplePanel({ manager, onClose }) {
270794
271129
  createEmail
270795
271130
  ]
270796
271131
  }, undefined, true, undefined, this),
271132
+ createPhone && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271133
+ children: [
271134
+ "Phone: ",
271135
+ createPhone
271136
+ ]
271137
+ }, undefined, true, undefined, this),
271138
+ createRole && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271139
+ children: [
271140
+ "Role: ",
271141
+ createRole
271142
+ ]
271143
+ }, undefined, true, undefined, this),
271144
+ createNotes && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
271145
+ children: [
271146
+ "Notes: ",
271147
+ createNotes
271148
+ ]
271149
+ }, undefined, true, undefined, this),
270797
271150
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270798
271151
  children: " "
270799
271152
  }, undefined, false, undefined, this),
@@ -291091,7 +291444,7 @@ Interactive Mode:
291091
291444
  // packages/terminal/src/index.tsx
291092
291445
  var jsx_dev_runtime52 = __toESM(require_jsx_dev_runtime(), 1);
291093
291446
  setRuntime(bunRuntime);
291094
- var VERSION4 = "1.1.58";
291447
+ var VERSION4 = "1.1.59";
291095
291448
  var SYNC_START = "\x1B[?2026h";
291096
291449
  var SYNC_END = "\x1B[?2026l";
291097
291450
  function enableSynchronizedOutput() {
@@ -291210,4 +291563,4 @@ export {
291210
291563
  main
291211
291564
  };
291212
291565
 
291213
- //# debugId=9617869B99E1625664756E2164756E21
291566
+ //# debugId=94C7E964EF8FC4BC64756E2164756E21