autosolutions-os 0.4.15 → 0.4.17

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.17 - 2026-11-16
4
+
5
+ Projects, the Hub's project manager, is a third row in the Hub panel's Tools (Didac, 16 November
6
+ 2026: "a new project manager tool under Hub generic view"). It is its own app
7
+ (https://pm.autosolutions.app, repo autosolutionsai-didac/project-launchpad, core schema
8
+ `projects`, catalogue app `project_manager`).
9
+
10
+ - `OS_HUB_MENU` Tools: `{ id: "projects", label: "Projects", icon: "hub-tasks", href: PROJECTS_URL }`.
11
+ New export `PROJECTS_URL`. A Hub panel row with an `href` and no `path` opens that address with
12
+ the company (`?tenant=`) in every app, and in the Hub's own `hubItems` too.
13
+ - `OS_HUB_ROW_ITEMS.projects = "hub-projects"`: `hubPanelLocks` greys the row for someone without
14
+ the item. The core adds the item (migration `hub_permissions_projects`): a Hub row, starter level
15
+ Member, so every person in a company that holds the app gets it, like Unmarked Agent.
16
+ - In the Projects app itself its own tool (`tools`, id `projects`, `fn: "hub"`) takes the panel
17
+ row with its routes and tabs, and is not placed a second time.
18
+ - Apps change nothing but the version. The Hub also adds the row to its own gate list (Hub PR).
19
+
20
+ ## 0.4.16 - 2026-11-16
21
+
22
+ The Signature Generator is open in every company (Didac, 16 November 2026: "this one should now
23
+ open for everyone, as default").
24
+
25
+ - `OS_HUB_ROW_COMPANY` is empty: a locked Signature Generator row says "Ask an AutoSolutions OS
26
+ admin..." in every company, not "Only available for Frank Body". The export and
27
+ `hubPanelLocks(items, tenantSlug)` stay, so apps change nothing but the version.
28
+ - The core opens the item `hub-signature` in every company and gives it to every active member
29
+ (migration `hub_permissions_signature_everyone`); new members get it as before, now in any company.
30
+ - The Hub's Signature Generator offers two Gmail signatures: frank body + al.ive body, and UMG
31
+ (Hub PR #125).
32
+
3
33
  ## 0.4.15 - 2026-11-13
4
34
 
5
35
  One menu in every app (Didac, 13 November 2026: the same rows and states in e-Sales and every
package/dist/nav.d.ts CHANGED
@@ -420,9 +420,10 @@ export declare function companyHubRows(tenantSlug: string | null | undefined, it
420
420
  export declare const OS_HUB_ROW_ITEMS: Readonly<Record<string, string>>;
421
421
  /**
422
422
  * Hub panel rows that serve one company only, and what a locked row says
423
- * elsewhere (0.4.15): the Signature Generator builds the Frank Body
424
- * letterhead, so outside Frank Body its lock reads "Only available for Frank
425
- * Body", as it does in the Hub, not "Ask an AutoSolutions OS admin...".
423
+ * elsewhere. None since 0.4.16: the Signature Generator (Frank Body only in
424
+ * 0.4.15) is open in every company (Didac, 16 Nov 2026: "this one should now
425
+ * open for everyone, as default"), so a locked row says "Ask an AutoSolutions
426
+ * OS admin..." everywhere, as in the Hub.
426
427
  */
427
428
  export declare const OS_HUB_ROW_COMPANY: Readonly<Record<string, {
428
429
  company: string;
@@ -485,6 +486,8 @@ export type OsHubSection = {
485
486
  title?: string;
486
487
  items: OsHubItem[];
487
488
  };
489
+ /** Where the Hub panel's Projects row opens: the Projects app (0.4.17). */
490
+ export declare const PROJECTS_URL = "https://pm.autosolutions.app";
488
491
  /**
489
492
  * The Hub's panel (0.3.0), the design's: Smart Comms Hub, its seven views,
490
493
  * then Tools (the owner's name since 0.3.9; Assistants before). Every app
@@ -498,6 +501,13 @@ export type OsHubSection = {
498
501
  * the Hub the Settings page sits on the Hub with the menu closed, like Admin.
499
502
  * The Hub had dropped both on its own (Hub PR #119); now every app shows the
500
503
  * same panel.
504
+ *
505
+ * Since 0.4.17 (Didac, 16 November 2026: "a new project manager tool under Hub
506
+ * generic view") Tools has a third row, Projects, whose tool is its own app
507
+ * (core schema projects, catalogue app project_manager, item hub-projects). A
508
+ * row with an `href` and no `path` opens that address, with the company, in
509
+ * every app; in the Projects app itself its own tool (`tools`, same id) takes
510
+ * the row, with its routes and tabs.
501
511
  */
502
512
  export declare const OS_HUB_MENU: OsHubSection[];
503
513
  /** A menu row as osFrame hands it to WorkspaceFrame. */
package/dist/nav.js CHANGED
@@ -662,16 +662,16 @@ export const OS_HUB_ROW_ITEMS = {
662
662
  accounts: "hub-comms",
663
663
  agent: "hub-agent",
664
664
  signature: "hub-signature",
665
+ projects: "hub-projects",
665
666
  };
666
667
  /**
667
668
  * Hub panel rows that serve one company only, and what a locked row says
668
- * elsewhere (0.4.15): the Signature Generator builds the Frank Body
669
- * letterhead, so outside Frank Body its lock reads "Only available for Frank
670
- * Body", as it does in the Hub, not "Ask an AutoSolutions OS admin...".
669
+ * elsewhere. None since 0.4.16: the Signature Generator (Frank Body only in
670
+ * 0.4.15) is open in every company (Didac, 16 Nov 2026: "this one should now
671
+ * open for everyone, as default"), so a locked row says "Ask an AutoSolutions
672
+ * OS admin..." everywhere, as in the Hub.
671
673
  */
672
- export const OS_HUB_ROW_COMPANY = {
673
- signature: { company: "frank-body", hint: "Only available for Frank Body" },
674
- };
674
+ export const OS_HUB_ROW_COMPANY = {};
675
675
  /**
676
676
  * The rows of the default Hub panel (OS_HUB_MENU) a person may not open, by
677
677
  * row id (0.3.13), for osFrame's `hubLocked`. As itemLocks: nothing while
@@ -692,6 +692,8 @@ export function hubPanelLocks(items, tenantSlug) {
692
692
  }
693
693
  return out;
694
694
  }
695
+ /** Where the Hub panel's Projects row opens: the Projects app (0.4.17). */
696
+ export const PROJECTS_URL = "https://pm.autosolutions.app";
695
697
  /**
696
698
  * The Hub's panel (0.3.0), the design's: Smart Comms Hub, its seven views,
697
699
  * then Tools (the owner's name since 0.3.9; Assistants before). Every app
@@ -705,6 +707,13 @@ export function hubPanelLocks(items, tenantSlug) {
705
707
  * the Hub the Settings page sits on the Hub with the menu closed, like Admin.
706
708
  * The Hub had dropped both on its own (Hub PR #119); now every app shows the
707
709
  * same panel.
710
+ *
711
+ * Since 0.4.17 (Didac, 16 November 2026: "a new project manager tool under Hub
712
+ * generic view") Tools has a third row, Projects, whose tool is its own app
713
+ * (core schema projects, catalogue app project_manager, item hub-projects). A
714
+ * row with an `href` and no `path` opens that address, with the company, in
715
+ * every app; in the Projects app itself its own tool (`tools`, same id) takes
716
+ * the row, with its routes and tabs.
708
717
  */
709
718
  export const OS_HUB_MENU = [
710
719
  { title: "Smart Comms Hub", items: [
@@ -719,6 +728,8 @@ export const OS_HUB_MENU = [
719
728
  { title: "Tools", items: [
720
729
  { id: "agent", label: "Unmarked Agent", icon: "agent", path: "/comms/agent" },
721
730
  { id: "signature", label: "Signature Generator", icon: "mkt-brand-voice-copywriter", path: "/launcher?section=signature" },
731
+ /* Its own app (0.4.17): an address, no path. */
732
+ { id: "projects", label: "Projects", icon: "hub-tasks", href: PROJECTS_URL },
722
733
  ] },
723
734
  ];
724
735
  const ORIGIN = "http://os.invalid";
@@ -812,14 +823,27 @@ export function osFrame(options) {
812
823
  const hubMenu = hubItems ?? OS_HUB_MENU;
813
824
  if (hubMenu.length) {
814
825
  sections["hub"] = hubItems
815
- ? hubItems.map((section) => ({ ...section, items: [...section.items] }))
826
+ ? hubItems.map((section) => ({
827
+ ...section,
828
+ /* A row whose tool is another app (0.4.17) opens it with the company. */
829
+ items: section.items.map((row) => (row.href && !row.path && !row.disabled ? { ...row, href: withTenantHint(row.href, tenantSlug) } : row)),
830
+ }))
816
831
  : OS_HUB_MENU.map((section) => ({
817
832
  ...(section.title ? { title: section.title } : {}),
818
833
  items: section.items.map((row) => {
819
834
  const base = { id: row.id, label: row.label, ...(row.icon ? { icon: row.icon } : {}) };
835
+ /* This app's own tool on a Hub panel row (0.4.17): its routes and tabs, selected here. */
836
+ const mine = own.get(row.id);
837
+ if (mine)
838
+ return rowFor(base, mine);
820
839
  /* A row the person may not open (0.3.13): shown, locked, never a link. */
821
840
  const reason = hubLocked[row.id];
822
- return reason ? { ...base, disabled: true, title: reason } : inHub(base, row.path ?? HUB_PATHS.home, row.match);
841
+ if (reason)
842
+ return { ...base, disabled: true, title: reason };
843
+ /* A row whose tool is another app (0.4.17): that app's address, with the company. */
844
+ if (row.href && !row.path)
845
+ return { ...base, href: withTenantHint(row.href, tenantSlug) };
846
+ return inHub(base, row.path ?? HUB_PATHS.home, row.match);
823
847
  }),
824
848
  }));
825
849
  }
@@ -863,8 +887,10 @@ export function osFrame(options) {
863
887
  }
864
888
  /* This app's tools the menu map does not have, placed where the app says. */
865
889
  const mapped = new Set(Object.values(OS_MENU).flatMap((groups) => groups.flatMap((group) => group.items.map((entry) => entry.id))));
890
+ /* A tool on the default Hub panel is placed there, above (0.4.17), not again here. */
891
+ const onHubPanel = new Set(hubItems ? [] : OS_HUB_MENU.flatMap((section) => section.items.map((row) => row.id)));
866
892
  for (const mine of tools) {
867
- if (mapped.has(osToolId(mine.id)) || !mine.fn)
893
+ if (mapped.has(osToolId(mine.id)) || onHubPanel.has(osToolId(mine.id)) || !mine.fn)
868
894
  continue;
869
895
  const list = sections[mine.fn] ?? (sections[mine.fn] = []);
870
896
  const title = mine.section;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** This package's version, sent with each feedback message. A test keeps it equal to package.json. */
2
- export declare const OS_VERSION = "0.4.15";
2
+ export declare const OS_VERSION = "0.4.17";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /** This package's version, sent with each feedback message. A test keeps it equal to package.json. */
2
- export const OS_VERSION = "0.4.15";
2
+ export const OS_VERSION = "0.4.17";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autosolutions-os",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "description": "One sign-in, one company switcher, one app grid. What every AutoSolutions app imports instead of copying.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",