autosolutions-os 0.4.16 → 0.4.18

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,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.18 - 2026-11-16
4
+
5
+ Financial Analyst > Ask a question is live (WrenAI plan step 7). The Hub shows its live Ask tab
6
+ (FinAnalystAsk.tsx, autosolutions-os#109) instead of the design's sample.
7
+
8
+ - `OS_TOOL_DATA["financial-analyst"]` drops `tabs: { "fa-ask": "mock" }`: the tab is real data,
9
+ marked (Incomplete) like the others. The row's hover text says what Ask does and its limits.
10
+ - Release only after the core switch `finance.settings` 'finance_ask' is on: without it Ada has no
11
+ Finance tools and the tab's questions get the fixed tools only.
12
+ - Behind it: the core wall `finance_ask_run` (#107), wren-plan on Spark 2 and the gateway route
13
+ (#108), ada-relay `/finance-query` (v23), the Hub's tools and prompt (#109, #132). The 16 Nov eval
14
+ as a Frank Body test person: 38/40 figures right, 12/12 other companies and changes refused.
15
+ - Apps change nothing but the version.
16
+
17
+ ## 0.4.17 - 2026-11-16
18
+
19
+ Projects, the Hub's project manager, is a third row in the Hub panel's Tools (Didac, 16 November
20
+ 2026: "a new project manager tool under Hub generic view"). It is its own app
21
+ (https://pm.autosolutions.app, repo autosolutionsai-didac/project-launchpad, core schema
22
+ `projects`, catalogue app `project_manager`).
23
+
24
+ - `OS_HUB_MENU` Tools: `{ id: "projects", label: "Projects", icon: "hub-tasks", href: PROJECTS_URL }`.
25
+ New export `PROJECTS_URL`. A Hub panel row with an `href` and no `path` opens that address with
26
+ the company (`?tenant=`) in every app, and in the Hub's own `hubItems` too.
27
+ - `OS_HUB_ROW_ITEMS.projects = "hub-projects"`: `hubPanelLocks` greys the row for someone without
28
+ the item. The core adds the item (migration `hub_permissions_projects`): a Hub row, starter level
29
+ Member, so every person in a company that holds the app gets it, like Unmarked Agent.
30
+ - In the Projects app itself its own tool (`tools`, id `projects`, `fn: "hub"`) takes the panel
31
+ row with its routes and tabs, and is not placed a second time.
32
+ - Apps change nothing but the version. The Hub also adds the row to its own gate list (Hub PR).
33
+
3
34
  ## 0.4.16 - 2026-11-16
4
35
 
5
36
  The Signature Generator is open in every company (Didac, 16 November 2026: "this one should now
package/dist/nav.d.ts CHANGED
@@ -486,6 +486,8 @@ export type OsHubSection = {
486
486
  title?: string;
487
487
  items: OsHubItem[];
488
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";
489
491
  /**
490
492
  * The Hub's panel (0.3.0), the design's: Smart Comms Hub, its seven views,
491
493
  * then Tools (the owner's name since 0.3.9; Assistants before). Every app
@@ -499,6 +501,13 @@ export type OsHubSection = {
499
501
  * the Hub the Settings page sits on the Hub with the menu closed, like Admin.
500
502
  * The Hub had dropped both on its own (Hub PR #119); now every app shows the
501
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.
502
511
  */
503
512
  export declare const OS_HUB_MENU: OsHubSection[];
504
513
  /** A menu row as osFrame hands it to WorkspaceFrame. */
package/dist/nav.js CHANGED
@@ -431,7 +431,8 @@ export const OS_TOOL_DATA = {
431
431
  },
432
432
  /* Finance release 6 (0.4.13): Month-end close reads NetSuite's own period steps (Tasks wait for
433
433
  Steve's close template); the Financial Analyst writes its alerts, weekly note and monthly
434
- commentary by fixed rules from the live Finance pages (Ask waits for an AI model with guardrails). */
434
+ commentary by fixed rules from the live Finance pages. 0.4.18: Ask a question is live (Ada's
435
+ finance_cube / finance_query behind the core's finance_ask switch). */
435
436
  "month-end-close": {
436
437
  data: "incomplete",
437
438
  missing: "NetSuite's own close steps only (AR, AP and all locked, closed), one set of periods for all Frank Body's NetSuite companies: al.ive body and Strength Lab (Xero) and the other UMG companies are not connected. The copy holds no lock dates. Tasks is still a sample: there is no close template yet.",
@@ -439,8 +440,7 @@ export const OS_TOOL_DATA = {
439
440
  },
440
441
  "financial-analyst": {
441
442
  data: "incomplete",
442
- missing: "Written by fixed rules from the live Finance pages, not by AI: Frank Body's NetSuite companies only. Ask a question is still a sample: it needs an AI model with Finance guardrails.",
443
- tabs: { "fa-ask": "mock" },
443
+ missing: "Weekly note, Monthly commentary and Exception alerts are written by fixed rules from the live Finance pages, not by AI. Ask a question goes to Ada on our own Sparks: she reads only your own companies' Finance data, cannot change it, and marks her figures as query answers, not Finance page figures. Frank Body's NetSuite companies only.",
444
444
  },
445
445
  };
446
446
  /**
@@ -662,6 +662,7 @@ 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
@@ -691,6 +692,8 @@ export function hubPanelLocks(items, tenantSlug) {
691
692
  }
692
693
  return out;
693
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";
694
697
  /**
695
698
  * The Hub's panel (0.3.0), the design's: Smart Comms Hub, its seven views,
696
699
  * then Tools (the owner's name since 0.3.9; Assistants before). Every app
@@ -704,6 +707,13 @@ export function hubPanelLocks(items, tenantSlug) {
704
707
  * the Hub the Settings page sits on the Hub with the menu closed, like Admin.
705
708
  * The Hub had dropped both on its own (Hub PR #119); now every app shows the
706
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.
707
717
  */
708
718
  export const OS_HUB_MENU = [
709
719
  { title: "Smart Comms Hub", items: [
@@ -718,6 +728,8 @@ export const OS_HUB_MENU = [
718
728
  { title: "Tools", items: [
719
729
  { id: "agent", label: "Unmarked Agent", icon: "agent", path: "/comms/agent" },
720
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 },
721
733
  ] },
722
734
  ];
723
735
  const ORIGIN = "http://os.invalid";
@@ -811,14 +823,27 @@ export function osFrame(options) {
811
823
  const hubMenu = hubItems ?? OS_HUB_MENU;
812
824
  if (hubMenu.length) {
813
825
  sections["hub"] = hubItems
814
- ? 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
+ }))
815
831
  : OS_HUB_MENU.map((section) => ({
816
832
  ...(section.title ? { title: section.title } : {}),
817
833
  items: section.items.map((row) => {
818
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);
819
839
  /* A row the person may not open (0.3.13): shown, locked, never a link. */
820
840
  const reason = hubLocked[row.id];
821
- 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);
822
847
  }),
823
848
  }));
824
849
  }
@@ -862,8 +887,10 @@ export function osFrame(options) {
862
887
  }
863
888
  /* This app's tools the menu map does not have, placed where the app says. */
864
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)));
865
892
  for (const mine of tools) {
866
- if (mapped.has(osToolId(mine.id)) || !mine.fn)
893
+ if (mapped.has(osToolId(mine.id)) || onHubPanel.has(osToolId(mine.id)) || !mine.fn)
867
894
  continue;
868
895
  const list = sections[mine.fn] ?? (sections[mine.fn] = []);
869
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.16";
2
+ export declare const OS_VERSION = "0.4.18";
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.16";
2
+ export const OS_VERSION = "0.4.18";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autosolutions-os",
3
- "version": "0.4.16",
3
+ "version": "0.4.18",
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",