@hasna/assistants 1.1.57 → 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.57";
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)"
@@ -259300,7 +259331,6 @@ function WelcomeBanner({ version: version5, model, directory }) {
259300
259331
  children: ">"
259301
259332
  }, undefined, false, undefined, this),
259302
259333
  /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259303
- color: "#0ea5e9",
259304
259334
  bold: true,
259305
259335
  children: "_ Hasna Assistants"
259306
259336
  }, undefined, false, undefined, this),
@@ -270458,8 +270488,12 @@ function PeoplePanel({ manager, onClose }) {
270458
270488
  const [selectedIndex, setSelectedIndex] = import_react58.useState(0);
270459
270489
  const [error4, setError] = import_react58.useState(null);
270460
270490
  const [statusMessage, setStatusMessage] = import_react58.useState(null);
270491
+ const [viewPerson, setViewPerson] = import_react58.useState(null);
270461
270492
  const [createName, setCreateName] = import_react58.useState("");
270462
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("");
270463
270497
  const loadPeople = () => {
270464
270498
  try {
270465
270499
  const list = manager.listPeople();
@@ -270481,10 +270515,13 @@ function PeoplePanel({ manager, onClose }) {
270481
270515
  }
270482
270516
  }, [mode, people2.length]);
270483
270517
  useSafeInput((input, key) => {
270484
- 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";
270485
270519
  if (key.escape || input === "q" && !isTextEntry) {
270486
- if ((key.escape || input === "q") && mode === "list") {
270520
+ if (mode === "list") {
270487
270521
  onClose();
270522
+ } else if (mode === "view") {
270523
+ setMode("list");
270524
+ setViewPerson(null);
270488
270525
  } else if (key.escape) {
270489
270526
  setMode("list");
270490
270527
  setStatusMessage(null);
@@ -270504,15 +270541,27 @@ function PeoplePanel({ manager, onClose }) {
270504
270541
  }
270505
270542
  } else if (key.return && people2.length > 0) {
270506
270543
  const person = people2[selectedIndex];
270507
- manager.setActivePerson(person.id).then(() => {
270508
- setStatusMessage(`Logged in as ${person.name}`);
270509
- loadPeople();
270510
- }).catch((err) => {
270511
- setStatusMessage(`Error: ${err.message}`);
270512
- });
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
+ }
270513
270559
  } else if (input === "c") {
270514
270560
  setCreateName("");
270515
270561
  setCreateEmail("");
270562
+ setCreatePhone("");
270563
+ setCreateRole("");
270564
+ setCreateNotes("");
270516
270565
  setMode("create-name");
270517
270566
  } else if (input === "l") {
270518
270567
  manager.logout().then(() => {
@@ -270525,6 +270574,17 @@ function PeoplePanel({ manager, onClose }) {
270525
270574
  loadPeople();
270526
270575
  setStatusMessage("Refreshed");
270527
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
+ }
270528
270588
  } else if (mode === "delete-confirm") {
270529
270589
  if (input === "y" && people2.length > 0) {
270530
270590
  const person = people2[selectedIndex];
@@ -270546,7 +270606,10 @@ function PeoplePanel({ manager, onClose }) {
270546
270606
  if (input === "y") {
270547
270607
  manager.createPerson({
270548
270608
  name: createName,
270549
- email: createEmail || undefined
270609
+ email: createEmail || undefined,
270610
+ phone: createPhone || undefined,
270611
+ role: createRole || undefined,
270612
+ notes: createNotes || undefined
270550
270613
  }).then((person) => {
270551
270614
  return manager.setActivePerson(person.id).then(() => {
270552
270615
  setStatusMessage(`Created and logged in as ${person.name}`);
@@ -270562,6 +270625,20 @@ function PeoplePanel({ manager, onClose }) {
270562
270625
  }
270563
270626
  }
270564
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
+ };
270565
270642
  const header = /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270566
270643
  borderStyle: "round",
270567
270644
  borderColor: "#d4d4d8",
@@ -270581,7 +270658,7 @@ function PeoplePanel({ manager, onClose }) {
270581
270658
  }, undefined, false, undefined, this),
270582
270659
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270583
270660
  color: "gray",
270584
- 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()
270585
270662
  }, undefined, false, undefined, this)
270586
270663
  ]
270587
270664
  }, undefined, true, undefined, this);
@@ -270602,6 +270679,92 @@ function PeoplePanel({ manager, onClose }) {
270602
270679
  ]
270603
270680
  }, undefined, true, undefined, this)
270604
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
+ }
270605
270768
  if (mode === "list") {
270606
270769
  return /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270607
270770
  flexDirection: "column",
@@ -270618,17 +270781,25 @@ function PeoplePanel({ manager, onClose }) {
270618
270781
  }, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270619
270782
  flexDirection: "column",
270620
270783
  paddingX: 1,
270621
- children: people2.map((p5, i5) => /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270784
+ children: people2.map((p5) => /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270622
270785
  children: [
270623
270786
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270624
- color: i5 === selectedIndex ? "green" : undefined,
270625
- children: i5 === selectedIndex ? "\u25B8 " : " "
270787
+ color: p5.id === people2[selectedIndex]?.id ? "green" : undefined,
270788
+ children: p5.id === people2[selectedIndex]?.id ? "> " : " "
270626
270789
  }, undefined, false, undefined, this),
270627
270790
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270628
- bold: i5 === selectedIndex,
270629
- color: i5 === selectedIndex ? "green" : undefined,
270791
+ bold: p5.id === people2[selectedIndex]?.id,
270792
+ color: p5.id === people2[selectedIndex]?.id ? "green" : undefined,
270630
270793
  children: p5.name
270631
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),
270632
270803
  p5.email && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270633
270804
  color: "gray",
270634
270805
  children: [
@@ -270637,6 +270808,13 @@ function PeoplePanel({ manager, onClose }) {
270637
270808
  ">"
270638
270809
  ]
270639
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),
270640
270818
  p5.isActive && /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270641
270819
  color: "cyan",
270642
270820
  children: " (active)"
@@ -270710,12 +270888,11 @@ function PeoplePanel({ manager, onClose }) {
270710
270888
  value: createName,
270711
270889
  onChange: setCreateName,
270712
270890
  onSubmit: () => {
270713
- if (createName.trim()) {
270891
+ if (createName.trim())
270714
270892
  setMode("create-email");
270715
- }
270716
270893
  },
270717
270894
  focus: true,
270718
- placeholder: "e.g., Andrei"
270895
+ placeholder: "e.g., Andrei Hasna"
270719
270896
  }, undefined, false, undefined, this)
270720
270897
  ]
270721
270898
  }, undefined, true, undefined, this)
@@ -270754,9 +270931,7 @@ function PeoplePanel({ manager, onClose }) {
270754
270931
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(build_default2, {
270755
270932
  value: createEmail,
270756
270933
  onChange: setCreateEmail,
270757
- onSubmit: () => {
270758
- setMode("create-confirm");
270759
- },
270934
+ onSubmit: () => setMode("create-phone"),
270760
270935
  focus: true,
270761
270936
  placeholder: "(optional) e.g., andrei@hasna.com"
270762
270937
  }, undefined, false, undefined, this)
@@ -270767,6 +270942,165 @@ function PeoplePanel({ manager, onClose }) {
270767
270942
  ]
270768
270943
  }, undefined, true, undefined, this);
270769
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
+ }
270770
271104
  if (mode === "create-confirm") {
270771
271105
  return /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Box_default, {
270772
271106
  flexDirection: "column",
@@ -270795,6 +271129,24 @@ function PeoplePanel({ manager, onClose }) {
270795
271129
  createEmail
270796
271130
  ]
270797
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),
270798
271150
  /* @__PURE__ */ jsx_dev_runtime26.jsxDEV(Text3, {
270799
271151
  children: " "
270800
271152
  }, undefined, false, undefined, this),
@@ -291092,7 +291444,7 @@ Interactive Mode:
291092
291444
  // packages/terminal/src/index.tsx
291093
291445
  var jsx_dev_runtime52 = __toESM(require_jsx_dev_runtime(), 1);
291094
291446
  setRuntime(bunRuntime);
291095
- var VERSION4 = "1.1.57";
291447
+ var VERSION4 = "1.1.59";
291096
291448
  var SYNC_START = "\x1B[?2026h";
291097
291449
  var SYNC_END = "\x1B[?2026l";
291098
291450
  function enableSynchronizedOutput() {
@@ -291211,4 +291563,4 @@ export {
291211
291563
  main
291212
291564
  };
291213
291565
 
291214
- //# debugId=17277467A3E4458164756E2164756E21
291566
+ //# debugId=94C7E964EF8FC4BC64756E2164756E21