Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
v0.7.41
Ronald A. Richardsona4051b2a3cd4
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.ymlindex 0241227a..aeac94a0 100644--- a/.github/workflows/cd.yml+++ b/.github/workflows/cd.yml@@ -174,13 +174,13 @@ jobs:- name: Install Node.jsuses: actions/setup-node@v3with:- node-version: 18+ node-version: 22- uses: pnpm/action-setup@v4name: Install pnpmid: pnpm-installwith:- version: 9.5.0+ version: 11run_install: false- name: Get pnpm Store Directorydiff --git a/.github/workflows/eks-cd.yml b/.github/workflows/eks-cd.ymlindex 4907eba4..4c4c9e75 100644--- a/.github/workflows/eks-cd.yml+++ b/.github/workflows/eks-cd.yml@@ -114,13 +114,13 @@ jobs:- name: Install Node.jsuses: actions/setup-node@v3with:- node-version: 16+ node-version: 22- uses: pnpm/action-setup@v2name: Install pnpmid: pnpm-installwith:- version: 8+ version: 11run_install: false- name: Get pnpm Store Directorydiff --git a/.github/workflows/gcp-cd.yml b/.github/workflows/gcp-cd.ymlindex aeccd149..91c54670 100644--- a/.github/workflows/gcp-cd.yml+++ b/.github/workflows/gcp-cd.yml@@ -130,13 +130,13 @@ jobs:- name: Install Node.jsuses: actions/setup-node@v3with:- node-version: 16+ node-version: 22- uses: pnpm/action-setup@v2name: Install pnpmid: pnpm-installwith:- version: 8+ version: 11run_install: false- name: Get pnpm Store Directorydiff --git a/.gitignore b/.gitignoreindex fbba38b0..b7491940 100644--- a/.gitignore+++ b/.gitignore@@ -1,4 +1,5 @@/node_modules+.fleetbase-dev-links.json.env.env.backup.phpunit.result.cache@@ -55,4 +56,4 @@ builds/osx/frankenphp*.exe*.dll*.so-*.dylib\ No newline at end of file+*.dylibdiff --git a/RELEASE.md b/RELEASE.mdindex e2ca3dca..74eb02f0 100644--- a/RELEASE.md+++ b/RELEASE.md@@ -1,15 +1,33 @@-> v0.7.40 ~ "Tracking intelligence, orchestrator capacity allocation, and customer repairs"+> v0.7.41 ~ "Live operations intelligence, dashboard reliability, and orchestrator allocation control"---## β¨ Highlights-This release focuses on FleetOps `0.6.48`. It introduces provider-neutral order tracking intelligence, expands the FleetOps orchestrator with consumable API endpoints and capacity-only allocation, and repairs the customer contact/user type invariant so FleetOps customers stay consistent across existing and newly saved records.+This release focuses on FleetOps `0.6.49` and Ember UI `0.3.30`. It adds a new FleetOps dashboard widget suite backed by metric and analytics endpoints, sharpens live operations visibility with richer map context, operational alerts, and native telematics providers, expands orchestrator capacity-only allocation with vehicle packing controls, and hardens dashboard widget management so system dashboards, GridStack layouts, and default widgets behave reliably.---## π¦ Component Versions-- `fleetops`: `0.6.48`+- `fleetops`: `0.6.49`+- `ember-ui`: `0.3.30`- `core-api`: `1.6.47`---## π FleetOps+### FleetOps dashboard widgets+- Added a new FleetOps dashboard widget suite with individual KPI tiles, analytics panels, and a live fleet map widget.+- Added KPI tile widgets for Earnings, Average Order Value, Distance Travelled, Active Orders, Drivers Online, and Open Issues, all backed by per-slug metric endpoints.+- Added analytics widgets for Operations Pulse, Revenue Trend, Order Volume by Status, On-Time Delivery, Top Drivers, Fuel Cost & Efficiency, Issues Insights, Maintenance Overview, and Geofence Violations.+- Added the Live Fleet Map widget for real-time driver positions and active route visibility directly on dashboards.+- Kept the legacy Fleet-Ops Metrics widget registered for one release as `Fleet-Ops Metrics (Legacy)` while the new individual KPI widgets supersede it.+- Added reusable `Widget::KpiTile` presentation and widget export shims so FleetOps widgets can be registered, discovered, and rendered through the shared dashboard picker.++### Live map, alerts, and telematics+- Enriched live-map vehicle and driver context across Leaflet and Google map renderers with readable popovers for status, assigned driver, active order reference, coordinates, speed, heading, and contact details.+- Added shared live-map card content utilities so Google and Leaflet renderers use a consistent display model.+- Added company tracking-alert settings for late departures, route deviations, and prolonged stoppages.+- Added the scheduled `fleetops:process-operational-alerts` command plus notification classes for late departure, route deviation, and prolonged stoppage alerts.+- Persisted driver license expiry and exposed it in FleetOps driver forms, driver detail views, and API resources.+- Added native AFAQY and Safee Tracking telematics providers to FleetOps provider discovery and configuration.+- Added explicit testing seeders for connectivity, fleet, maintenance, network, and order fixtures under `server/seeders/Testing` so realistic FleetOps demo data stays opt-in.+### Order tracking intelligence- Replaced the old monolithic `OrderTracker` internals with a provider-neutral tracking intelligence layer.- Added the new tracking provider domain with context builders, provider registry/manager, provider capabilities, tracking options, normalized result DTOs, and tracking stop DTOs.@@ -26,9 +44,12 @@ This release focuses on FleetOps `0.6.48`. It introduces provider-neutral order- Kept VROOM configuration settings-driven while exposing public API responses that use public IDs instead of internal UUIDs or database IDs.- Refactored VROOM payload generation around Fleetbase route semantics so pickup/dropoff, waypoint-only, and mixed route orders stay atomic during optimization.- Added VROOM capacity-only allocation for users who want vehicle allocation by capacity, skills, task limits, and workload constraints without requiring vehicle locations.+- Added VROOM vehicle packing controls for capacity-only allocation so dispatchers can minimize vehicles by default, use balanced assignment, or disable the packing bias.+- Added fixed vehicle costs to capacity-only VROOM payloads when minimizing vehicles so VROOM prefers filling feasible vehicles before opening another vehicle.- Added a native FleetOps `capacity` allocation engine for deterministic capacity-only assignment without routing.-- Added a VROOM orchestration seeder with located and locationless vehicles, capacity data, order dimensions, weights, pallets, parcels, and seeded metadata for repeatable testing.+- Moved the VROOM orchestration seeder under `server/seeders/Testing` with an explicit run command so deploy-time seeding does not auto-discover test data.- Added orchestrator UI controls for allocation strategy and lightweight vehicle/driver position indicators that use the existing model coordinate validity helpers.+- Passed the full order resource into `fleet-ops:component:order:form` registry components as both `@order` and `@resource`, restoring extension access to the current order model in custom form sections.### Customer contact/user invariant- Enforced the FleetOps customer invariant so contacts saved as `customer` keep the linked user type aligned as `customer`.@@ -38,9 +59,23 @@ This release focuses on FleetOps `0.6.48`. It introduces provider-neutral order---## π§ͺ Tests and Coverage- Added backend coverage for orchestrator consumable run/commit responses and public-ID serialization.-- Added VROOM payload tests for route-task semantics, capacity-only request generation, assignment mapping, and unassigned order handling.+- Added VROOM payload tests for route-task semantics, capacity-only request generation, vehicle packing fixed-cost behavior, assignment mapping, and unassigned order handling.- Added native capacity allocation tests for weight, volume, pallets, parcels, skills, task limits, and workload balancing behavior.- Added tracking intelligence tests, live order query tests, driver ping endpoint tests, and frontend tracking component coverage.+- Added FleetOps integration coverage for enriched fleet listing/live-map display behavior.+- Added backend coverage for FleetOps analytics routes and metric registry resolution.+- Added frontend coverage for the reusable KPI tile widget loading, value, delta, and error states.+- Added Ember UI dashboard service and widget-panel tests covering default widget identity, widget grouping, search, recommended filtering, and repeated widget badges.++---+## π§© Ember UI+### Dashboard widget picker and GridStack reliability+- Reworked the dashboard widget picker into a compact overlay with sticky controls, All/Recommended/On Dashboard tabs, category grouping, search across name, description, and category, and reusable fixed-height `Dashboard::WidgetCard` cards.+- Fixed dashboard widget identity-map collisions by storing registry slugs in `options.widget_key` instead of using them as Ember Data record IDs.+- Locked edit/add/delete affordances on virtual system dashboards and replaced them with a create-to-customize hint to avoid backend 404s.+- Remounted GridStack when switching dashboards so stale inline height and min-height styles do not leave empty bands between dashboards.+- Compacted GridStack after widget removal so surrounding widgets fill the deleted widget's space.+- Updated Ember UI CI to Node `22.x`, refreshed pnpm handling, and bumped `@fleetbase/ember-ui` to `0.3.30`.---## π Bug Fixes@@ -48,8 +83,13 @@ This release focuses on FleetOps `0.6.48`. It introduces provider-neutral order- Fixed active live order metric behavior and moved driver ping behavior to the internal API surface.- Fixed route summary stop count and tracking progress rail display issues.- Fixed purchase-rate component lint issues from the tracking release train.+- Fixed live-map vehicle and driver hover content that blurred online connectivity, operational status, active order, and movement details together.+- Fixed tracking alert repeat behavior by storing per-order notification markers under `order.meta.operational_alerts`.+- Fixed extension form registry components receiving an undefined or stale order argument in the order form.- Fixed customer contacts that could be saved as FleetOps customers while their linked users remained generic users or contacts.- Fixed orchestrator VROOM behavior for Fleetbase payloads with pickup/dropoff only, waypoint-only routes, mixed route payloads, missing coordinates, and capacity-only allocation without vehicle positions.+- Fixed VROOM capacity-only allocation spreading work across too many vehicles by adding an explicit vehicle packing bias.+- Fixed dashboard widget picker usability, default widget duplication crashes, system dashboard edit actions, dashboard-switch layout residue, and widget removal gaps.---## π API Changes@@ -57,6 +97,11 @@ This release focuses on FleetOps `0.6.48`. It introduces provider-neutral order- Added `POST /v1/orchestrator/commit` for committing public-ID orchestrator assignments.- Added internal tracking settings endpoints for tracking provider configuration.- Added internal driver ping API handling for live order tracking workflows.+- Added `GET /fleet-ops/metrics/{slug}` for individual dashboard KPI tile metrics with period, comparison, and sparkline support.+- Added internal FleetOps analytics endpoints for operations pulse, revenue trend, orders by status, on-time delivery, top drivers, fuel efficiency, issues insights, maintenance overview, geofence violations, and live fleet widgets.+- Added internal settings support for operational tracking-alert configuration.+- Added `drivers.license_expiry` persistence and resource serialization.+- Extended live driver and vehicle index resources with richer map metadata, including current order reference and movement labels.---## π§ Upgrade Stepsdiff --git a/api/composer.json b/api/composer.jsonindex 57a16eeb..b8d24716 100644--- a/api/composer.json+++ b/api/composer.json@@ -20,8 +20,8 @@"require": {"php": ">=8.0 <=8.2.30","appstract/laravel-opcache": "^4.0",- "fleetbase/core-api": "^1.6.47",- "fleetbase/fleetops-api": "^0.6.48",+ "fleetbase/core-api": "^1.6.48",+ "fleetbase/fleetops-api": "^0.6.49","fleetbase/registry-bridge": "^0.1.9","fleetbase/storefront-api": "^0.4.14","fleetbase/ledger-api": "^0.0.3",diff --git a/api/composer.lock b/api/composer.lockindex 33b4ca8c..b66034dc 100644--- a/api/composer.lock+++ b/api/composer.lock@@ -4,7 +4,7 @@"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies","This file is @generated automatically"],- "content-hash": "7ab2054fced5f93a473bfe4a12addc9d",+ "content-hash": "6f7c8923668693426a5e4e0ce05fd456","packages": [{"name": "appstract/laravel-opcache",@@ -124,16 +124,16 @@},{"name": "aws/aws-sdk-php",- "version": "3.381.2",+ "version": "3.381.3","source": {"type": "git","url": "https://github.com/aws/aws-sdk-php.git",- "reference": "ffa8a93faafea878155853ae2caf61871363869d"+ "reference": "989f4776aed2a3b184a5b64046542e8fe66e99e2"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/ffa8a93faafea878155853ae2caf61871363869d",- "reference": "ffa8a93faafea878155853ae2caf61871363869d",+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/989f4776aed2a3b184a5b64046542e8fe66e99e2",+ "reference": "989f4776aed2a3b184a5b64046542e8fe66e99e2","shasum": ""},"require": {@@ -215,9 +215,9 @@"support": {"forum": "https://github.com/aws/aws-sdk-php/discussions","issues": "https://github.com/aws/aws-sdk-php/issues",- "source": "https://github.com/aws/aws-sdk-php/tree/3.381.2"+ "source": "https://github.com/aws/aws-sdk-php/tree/3.381.3"},- "time": "2026-05-15T18:08:57+00:00"+ "time": "2026-05-18T18:21:09+00:00"},{"name": "aws/aws-sdk-php-laravel",@@ -2156,16 +2156,16 @@},{"name": "fleetbase/core-api",- "version": "1.6.47",+ "version": "1.6.48","source": {"type": "git","url": "https://github.com/fleetbase/core-api.git",- "reference": "2aa24120d4d31bd71b906e08baa1ea45c49dc98c"+ "reference": "20a7b67affbd10e63e0dd2c2544b1e959db56b39"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/fleetbase/core-api/zipball/2aa24120d4d31bd71b906e08baa1ea45c49dc98c",- "reference": "2aa24120d4d31bd71b906e08baa1ea45c49dc98c",+ "url": "https://api.github.com/repos/fleetbase/core-api/zipball/20a7b67affbd10e63e0dd2c2544b1e959db56b39",+ "reference": "20a7b67affbd10e63e0dd2c2544b1e959db56b39","shasum": ""},"require": {@@ -2255,9 +2255,9 @@],"support": {"issues": "https://github.com/fleetbase/core-api/issues",- "source": "https://github.com/fleetbase/core-api/tree/v1.6.47"+ "source": "https://github.com/fleetbase/core-api/tree/v1.6.48"},- "time": "2026-05-17T07:13:12+00:00"+ "time": "2026-05-20T07:37:08+00:00"},{"name": "fleetbase/countries",@@ -2326,16 +2326,16 @@},{"name": "fleetbase/fleetops-api",- "version": "0.6.48",+ "version": "0.6.49","source": {"type": "git","url": "https://github.com/fleetbase/fleetops.git",- "reference": "9394d4f87172a6b4973c8109ca7cfe3ad8e7f899"+ "reference": "4d30b769e9959d8938350668228eb93569e0d236"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/9394d4f87172a6b4973c8109ca7cfe3ad8e7f899",- "reference": "9394d4f87172a6b4973c8109ca7cfe3ad8e7f899",+ "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/4d30b769e9959d8938350668228eb93569e0d236",+ "reference": "4d30b769e9959d8938350668228eb93569e0d236","shasum": ""},"require": {@@ -2412,9 +2412,9 @@],"support": {"issues": "https://github.com/fleetbase/fleetops/issues",- "source": "https://github.com/fleetbase/fleetops/tree/v0.6.48"+ "source": "https://github.com/fleetbase/fleetops/tree/v0.6.49"},- "time": "2026-05-17T07:16:04+00:00"+ "time": "2026-05-20T08:20:41+00:00"},{"name": "fleetbase/laravel-mysql-spatial",@@ -3603,16 +3603,16 @@},{"name": "google/apiclient-services",- "version": "v0.441.0",+ "version": "v0.441.1","source": {"type": "git","url": "https://github.com/googleapis/google-api-php-client-services.git",- "reference": "9e3c10389ed39915261e5bc98a687c2b1307040d"+ "reference": "b389588a2f9f375ec448d6cd8d0903d83c571ae0"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/9e3c10389ed39915261e5bc98a687c2b1307040d",- "reference": "9e3c10389ed39915261e5bc98a687c2b1307040d",+ "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/b389588a2f9f375ec448d6cd8d0903d83c571ae0",+ "reference": "b389588a2f9f375ec448d6cd8d0903d83c571ae0","shasum": ""},"require": {@@ -3641,9 +3641,9 @@],"support": {"issues": "https://github.com/googleapis/google-api-php-client-services/issues",- "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.441.0"+ "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.441.1"},- "time": "2026-05-11T01:42:35+00:00"+ "time": "2026-05-17T01:38:24+00:00"},{"name": "google/auth",@@ -4398,16 +4398,16 @@},{"name": "guzzlehttp/psr7",- "version": "2.9.0",+ "version": "2.10.0","source": {"type": "git","url": "https://github.com/guzzle/psr7.git",- "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884"+ "reference": "d5ddaf5743c42a61cb6100f83dc9d5a2bafe75ca"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/guzzle/psr7/zipball/7d0ed42f28e42d61352a7a79de682e5e67fec884",- "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884",+ "url": "https://api.github.com/repos/guzzle/psr7/zipball/d5ddaf5743c42a61cb6100f83dc9d5a2bafe75ca",+ "reference": "d5ddaf5743c42a61cb6100f83dc9d5a2bafe75ca","shasum": ""},"require": {@@ -4422,9 +4422,9 @@},"require-dev": {"bamarni/composer-bin-plugin": "^1.8.2",- "http-interop/http-factory-tests": "0.9.0",+ "http-interop/http-factory-tests": "1.1.0","jshttp/mime-db": "1.54.0.1",- "phpunit/phpunit": "^8.5.44 || ^9.6.25"+ "phpunit/phpunit": "^8.5.52 || ^9.6.34"},"suggest": {"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"@@ -4495,7 +4495,7 @@],"support": {"issues": "https://github.com/guzzle/psr7/issues",- "source": "https://github.com/guzzle/psr7/tree/2.9.0"+ "source": "https://github.com/guzzle/psr7/tree/2.10.0"},"funding": [{@@ -4511,7 +4511,7 @@"type": "tidelift"}],- "time": "2026-03-10T16:41:02+00:00"+ "time": "2026-05-19T17:32:11+00:00"},{"name": "guzzlehttp/uri-template",diff --git a/console/app/components/fleetbase-blog.hbs b/console/app/components/fleetbase-blog.hbsindex aeccaff4..3bf21dd9 100644--- a/console/app/components/fleetbase-blog.hbs+++ b/console/app/components/fleetbase-blog.hbs@@ -11,17 +11,23 @@{{#if this.loadBlogPosts.isRunning}}<Spinner />{{else}}- <ul class="space-y-2">- {{#each this.posts as |post|}}- <li class="text-sm flex flex-col lg:flex-row">- <a href={{post.link}} target="_blog" class="text-black truncate max-w-lg dark:text-gray-200">- <span class="truncate">{{post.title}}</span>- </a>- <span class="ml-1 text-gray-900 dark:text-gray-400">- {{post.pubDate}}</span>- </li>- {{/each}}- </ul>+ {{#if this.posts.length}}+ <ul class="space-y-2">+ {{#each this.posts as |post|}}+ <li class="text-sm flex flex-col lg:flex-row">+ <a href={{post.link}} target="_blog" rel="noopener noreferrer" class="text-black truncate max-w-lg dark:text-gray-200">+ <span class="truncate">{{post.title}}</span>+ </a>+ <span class="ml-1 text-gray-900 dark:text-gray-400">- {{post.pubDate}}</span>+ </li>+ {{/each}}+ </ul>+ {{else}}+ <div class="text-sm text-gray-700 dark:text-gray-300">+ No blog posts are available right now.+ </div>+ {{/if}}{{/if}}</div></div>-</div>\ No newline at end of file+</div>diff --git a/console/app/instance-initializers/initialize-widgets.js b/console/app/instance-initializers/initialize-widgets.jsindex bc038476..eec0397f 100644--- a/console/app/instance-initializers/initialize-widgets.js+++ b/console/app/instance-initializers/initialize-widgets.js@@ -31,7 +31,7 @@ export function initialize(appInstance) {description: 'Displays current Github stats from the official Fleetbase repo.',icon: faGithub,component: 'github-card',- grid_options: { w: 4, h: 8, minW: 4, minH: 8 },+ grid_options: { w: 4, h: 9, minW: 4, minH: 9 },default: true,}),];diff --git a/console/app/models/dashboard.js b/console/app/models/dashboard.jsindex fb1d4342..6e92cca7 100644--- a/console/app/models/dashboard.js+++ b/console/app/models/dashboard.js@@ -52,7 +52,19 @@ export default class DashboardModel extends Model {addWidget(widget) {const owner = getOwner(this);const store = owner.lookup('service:store');- const widgetRecord = store.createRecord('dashboard-widget', { ...widget, dashboard: this });++ // The registry slug (e.g. 'fleet-ops-kpi-earnings-widget') is shared across every+ // dashboard that consumes the widget; if it lands in the Ember Data record id we+ // collide on the second add. Strip it, let Ember Data assign a UUID, and stash+ // the slug under options.widget_key so persisted records can be resolved back to+ // their registry definition on reload.+ // eslint-disable-next-line no-unused-vars+ const { id: widgetKey, default: _isDefault, ...rest } = widget;+ const widgetRecord = store.createRecord('dashboard-widget', {+ ...rest,+ options: { ...(rest.options ?? {}), widget_key: widgetKey },+ dashboard: this,+ });return new Promise((resolve, reject) => {widgetRecorddiff --git a/console/package.json b/console/package.jsonindex 43a6e08e..ded940f3 100644--- a/console/package.json+++ b/console/package.json@@ -1,6 +1,6 @@{"name": "@fleetbase/console",- "version": "0.7.40",+ "version": "0.7.41","private": true,"description": "Modular logistics and supply chain operating system (LSOS)","repository": "https://github.com/fleetbase/fleetbase",@@ -35,9 +35,9 @@"@ember/legacy-built-in-components": "^0.4.2","@fleetbase/dev-engine": "^0.2.13","@fleetbase/ember-core": "^0.3.19",- "@fleetbase/ember-ui": "^0.3.29",- "@fleetbase/fleetops-data": "^0.1.32",- "@fleetbase/fleetops-engine": "^0.6.48",+ "@fleetbase/ember-ui": "^0.3.30",+ "@fleetbase/fleetops-data": "^0.1.33",+ "@fleetbase/fleetops-engine": "^0.6.49","@fleetbase/iam-engine": "^0.1.9","@fleetbase/leaflet-routing-machine": "^3.2.17","@fleetbase/ledger-engine": "^0.0.3",@@ -151,13 +151,6 @@"ember": {"edition": "octane"},- "pnpm": {- "overrides": {- "@fleetbase/ember-core": "^0.3.19",- "@fleetbase/ember-ui": "^0.3.29",- "@fleetbase/fleetops-data": "^0.1.32"- }- },"prettier": {"trailingComma": "es5","tabWidth": 4,diff --git a/console/pnpm-lock.yaml b/console/pnpm-lock.yamlindex 2b064c90..8b0b8cd8 100644--- a/console/pnpm-lock.yaml+++ b/console/pnpm-lock.yaml@@ -4,6 +4,11 @@ settings:autoInstallPeers: trueexcludeLinksFromLockfile: false+overrides:+ '@fleetbase/fleetops-data': ^0.1.33+ '@fleetbase/ember-core': ^0.3.19+ '@fleetbase/ember-ui': ^0.3.30+importers:.:@@ -18,14 +23,14 @@ importers:specifier: ^0.3.19version: 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fleetbase/ember-ui':- specifier: ^0.3.29- version: 0.3.29(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])+ specifier: ^0.3.30+ version: 0.3.30(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])'@fleetbase/fleetops-data':- specifier: ^0.1.32- version: 0.1.32(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ specifier: ^0.1.33+ version: 0.1.33(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fleetbase/fleetops-engine':- specifier: ^0.6.48- version: 0.6.48(b421113b8e787158f8d42852c5267750)+ specifier: ^0.6.49+ version: 0.6.49(b421113b8e787158f8d42852c5267750)'@fleetbase/iam-engine':specifier: ^0.1.9version: 0.1.9(b421113b8e787158f8d42852c5267750)@@ -1545,28 +1550,20 @@ packages:peerDependencies:ember-source: '>= 4.0.0'- '@fleetbase/[email protected]':- resolution: {integrity: sha512-XA/Ysn3NlM37qK/xJCY+Uo2sZ8JTwcDaGruPi8dSVyGfYHO55m96TepCChEU18GdwosbsBBfL8C2R+fUvPsqIg==}- engines: {node: '>= 18'}-'@fleetbase/[email protected]':resolution: {integrity: sha512-5phquVcfcpRtoxBvyAYDS9bmdPx5c46mXLrcvjmTFSdGElw9CZv44dRkuE8UTgpapMFfPc7vkA9/KwKFAgQ9JA==}engines: {node: '>= 18'}- '@fleetbase/[email protected]':- resolution: {integrity: sha512-c59jeJm876GOHd0OpOX6jZCwrgBqOxssqzXvo3Uqqc0qmLpfxrPJmnZDe22Sb80QbVysPMhA6s3LL8ZwEzdXPw==}- engines: {node: '>= 18'}-- '@fleetbase/[email protected]':- resolution: {integrity: sha512-i342sD3yHexs5xZ87N2sYRAq/R8hiEp/zW24A6S3aLpir/NDIkfgk9JthK8xN2vmTxcI2sF2mRJlFSkmX16yPg==}+ '@fleetbase/[email protected]':+ resolution: {integrity: sha512-fOoWrtC0mwm2UPZwgY4i1AFx+PhOmM63rOXzwMN1v25coHo13IjKKQ7NdJAJPL7+3FbzXTajaCMHbK0WqElQWw==}engines: {node: '>= 18'}- '@fleetbase/[email protected]':- resolution: {integrity: sha512-8Y4KQstMyi+BJk3Gt3hXT7DNfYl7XxQ2bsOvr18BOqfan1TELfn3puy5O4ryaQVd2E3tJ4hCYcGm3zlBfBpCzw==}+ '@fleetbase/[email protected]':+ resolution: {integrity: sha512-uH52zftk0E8gK55hv3A2aNfrr0NRotbWjoj5TJgAsSR0RnmDh9ZXA1vrNfVyVImco/y6vNcNSr45+fipJYuAvQ==}engines: {node: '>= 18'}- '@fleetbase/[email protected]':- resolution: {integrity: sha512-+bPahwV2pYa6hCyiy/BTGT5MW3kngE+XLU10jhj5jk6vPkUyulVNqVG265BOyl1JNAMYpLzyLKwfs1t0lVG1YQ==}+ '@fleetbase/[email protected]':+ resolution: {integrity: sha512-8f6XJCPuLLp7GJ5tsK5QC0uvdMEXP+CId/aRKSnqNHdqszJzdRfYeRrSwYvZNr5OpQxSLpolMiSieNVjkebuiw==}engines: {node: '>= 18'}peerDependencies:ember-engines: ^0.9.0@@ -10829,8 +10826,8 @@ snapshots:'@fleetbase/[email protected](b421113b8e787158f8d42852c5267750)':dependencies:'@babel/core': 7.29.0- '@fleetbase/ember-core': 0.3.18(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))- '@fleetbase/ember-ui': 0.3.29(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])+ '@fleetbase/ember-core': 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-ui': 0.3.30(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])'@fortawesome/ember-fontawesome': 2.0.0([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/fontawesome-svg-core': 6.4.0'@fortawesome/free-brands-svg-icons': 6.4.0@@ -10878,39 +10875,6 @@ snapshots:transitivePeerDependencies:- supports-color- '@fleetbase/[email protected](@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))':- dependencies:- '@babel/core': 7.29.0- compress-json: 3.4.0- date-fns: 2.30.0- ember-auto-import: 2.13.1([email protected]([email protected]))- ember-can: 6.0.0(@babel/[email protected])(@ember/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))- ember-cli-babel: 8.3.1(@babel/[email protected])- ember-cli-htmlbars: 6.3.0- ember-cli-notifications: 9.1.0(@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))- ember-concurrency: 4.0.6(@babel/[email protected])- ember-decorators: 6.1.1- ember-get-config: 2.1.1- ember-inflector: 4.0.3([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))- ember-loading: 2.0.0(@babel/[email protected])- ember-local-storage: 2.0.7(@babel/[email protected])- ember-simple-auth: 6.1.0(@babel/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])- ember-wormhole: 0.6.1- socketcluster-client: 17.2.2- transitivePeerDependencies:- - '@ember/string'- - '@ember/test-helpers'- - '@glint/template'- - bufferutil- - ember-resolver- - ember-source- - eslint- - supports-color- - typescript- - utf-8-validate- - webpack-'@fleetbase/[email protected](@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))':dependencies:'@babel/core': 7.29.0@@ -10944,7 +10908,7 @@ snapshots:- utf-8-validate- webpack- '@fleetbase/[email protected](@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])':+ '@fleetbase/[email protected](@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])':dependencies:'@babel/core': 7.29.0'@ember/render-modifiers': 2.1.0(@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))@@ -11050,27 +11014,7 @@ snapshots:- webpack-command- yaml- '@fleetbase/[email protected](@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))':- dependencies:- '@babel/core': 7.29.0- '@fleetbase/ember-core': 0.3.18(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))- date-fns: 2.30.0- ember-cli-babel: 8.3.1(@babel/[email protected])- ember-cli-htmlbars: 6.3.0- transitivePeerDependencies:- - '@ember/string'- - '@ember/test-helpers'- - '@glint/template'- - bufferutil- - ember-resolver- - ember-source- - eslint- - supports-color- - typescript- - utf-8-validate- - webpack-- '@fleetbase/[email protected](@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))':+ '@fleetbase/[email protected](@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))':dependencies:'@babel/core': 7.29.0'@fleetbase/ember-core': 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))@@ -11090,12 +11034,12 @@ snapshots:- utf-8-validate- webpack- '@fleetbase/[email protected](b421113b8e787158f8d42852c5267750)':+ '@fleetbase/[email protected](b421113b8e787158f8d42852c5267750)':dependencies:'@babel/core': 7.29.0'@fleetbase/ember-core': 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))- '@fleetbase/ember-ui': 0.3.29(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])- '@fleetbase/fleetops-data': 0.1.32(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-ui': 0.3.30(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])+ '@fleetbase/fleetops-data': 0.1.33(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fleetbase/leaflet-routing-machine': 3.2.17'@fortawesome/ember-fontawesome': 2.0.0([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/fontawesome-svg-core': 6.4.0@@ -11163,8 +11107,8 @@ snapshots:'@fleetbase/[email protected](b421113b8e787158f8d42852c5267750)':dependencies:'@babel/core': 7.29.0- '@fleetbase/ember-core': 0.3.18(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))- '@fleetbase/ember-ui': 0.3.29(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])+ '@fleetbase/ember-core': 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-ui': 0.3.30(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])'@fortawesome/ember-fontawesome': 2.0.0([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/fontawesome-svg-core': 6.4.0'@fortawesome/free-brands-svg-icons': 6.4.0@@ -11227,9 +11171,9 @@ snapshots:'@fleetbase/[email protected](b421113b8e787158f8d42852c5267750)':dependencies:'@babel/core': 7.29.0- '@fleetbase/ember-core': 0.3.18(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))- '@fleetbase/ember-ui': 0.3.29(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])- '@fleetbase/fleetops-data': 0.1.31(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-core': 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-ui': 0.3.30(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])+ '@fleetbase/fleetops-data': 0.1.33(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/ember-fontawesome': 2.0.0([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/fontawesome-svg-core': 6.4.0'@fortawesome/free-brands-svg-icons': 6.4.0@@ -11284,8 +11228,8 @@ snapshots:'@fleetbase/[email protected](b421113b8e787158f8d42852c5267750)':dependencies:'@babel/core': 7.29.0- '@fleetbase/ember-core': 0.3.18(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))- '@fleetbase/ember-ui': 0.3.29(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])+ '@fleetbase/ember-core': 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-ui': 0.3.30(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])'@fortawesome/ember-fontawesome': 2.0.0([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/fontawesome-svg-core': 6.4.0'@fortawesome/free-brands-svg-icons': 6.4.0@@ -11339,9 +11283,9 @@ snapshots:'@fleetbase/[email protected](b421113b8e787158f8d42852c5267750)':dependencies:'@babel/core': 7.29.0- '@fleetbase/ember-core': 0.3.18(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))- '@fleetbase/ember-ui': 0.3.29(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])- '@fleetbase/fleetops-data': 0.1.31(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-core': 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-ui': 0.3.30(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])+ '@fleetbase/fleetops-data': 0.1.33(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/ember-fontawesome': 2.0.0([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/fontawesome-svg-core': 6.4.0'@fortawesome/free-brands-svg-icons': 6.4.0@@ -11382,8 +11326,8 @@ snapshots:'@fleetbase/[email protected](b421113b8e787158f8d42852c5267750)':dependencies:'@babel/core': 7.29.0- '@fleetbase/ember-core': 0.3.18(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))- '@fleetbase/ember-ui': 0.3.29(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])+ '@fleetbase/ember-core': 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-ui': 0.3.30(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])'@fleetbase/leaflet-routing-machine': 3.2.17'@fortawesome/ember-fontawesome': 2.0.0([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/fontawesome-svg-core': 6.4.0@@ -11437,8 +11381,8 @@ snapshots:'@fleetbase/[email protected](b421113b8e787158f8d42852c5267750)':dependencies:'@babel/core': 7.29.0- '@fleetbase/ember-core': 0.3.18(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))- '@fleetbase/ember-ui': 0.3.29(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])+ '@fleetbase/ember-core': 0.3.19(@ember/[email protected])(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))+ '@fleetbase/ember-ui': 0.3.30(@ember/[email protected](@babel/[email protected])([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected])))(@glimmer/[email protected](@babel/[email protected]))(@glimmer/[email protected])([email protected]([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected]))))([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])([email protected](@babel/[email protected]))([email protected]([email protected]))([email protected])'@fortawesome/ember-fontawesome': 2.0.0([email protected](@babel/[email protected])(@glimmer/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))'@fortawesome/fontawesome-svg-core': 6.4.0'@fortawesome/free-brands-svg-icons': 6.4.0@@ -12305,7 +12249,7 @@ snapshots:'@types/[email protected]':dependencies:- glob: 8.1.0+ glob: 13.0.6'@types/[email protected]': {}@@ -12326,7 +12270,7 @@ snapshots:'@types/[email protected]':dependencies:- minimatch: 7.4.9+ minimatch: 10.2.5'@types/[email protected]': {}@@ -18239,7 +18183,7 @@ snapshots:dependencies:- hash-base: 3.0.5+ hash-base: 3.1.2inherits: 2.0.4safe-buffer: 5.2.1diff --git a/console/pnpm-workspace.yaml b/console/pnpm-workspace.yamlindex 2e8f5c5a..cccf3c28 100644--- a/console/pnpm-workspace.yaml+++ b/console/pnpm-workspace.yaml@@ -1,7 +1,17 @@+linkWorkspacePackages: deep+preferWorkspacePackages: true+publicHoistPattern:+ - "*ember-core*"+ - "*ember-ui*"+ - "*fleetops-data*"+overrides:+ "@fleetbase/fleetops-data": "^0.1.33"+ "@fleetbase/ember-core": "^0.3.19"+ "@fleetbase/ember-ui": "^0.3.30"allowBuilds:- '@fortawesome/fontawesome-common-types': false- '@fortawesome/fontawesome-svg-core': false- '@fortawesome/free-brands-svg-icons': false- '@fortawesome/free-solid-svg-icons': false+ "@fortawesome/fontawesome-common-types": false+ "@fortawesome/fontawesome-svg-core": false+ "@fortawesome/free-brands-svg-icons": false+ "@fortawesome/free-solid-svg-icons": falsecore-js: falsefsevents: falsediff --git a/console/tests/integration/components/fleetbase-blog-test.js b/console/tests/integration/components/fleetbase-blog-test.jsindex 46e7f774..057e7087 100644--- a/console/tests/integration/components/fleetbase-blog-test.js+++ b/console/tests/integration/components/fleetbase-blog-test.js@@ -1,26 +1,57 @@import { module, test } from 'qunit';import { setupRenderingTest } from '@fleetbase/console/tests/helpers';+import Service from '@ember/service';import { render } from '@ember/test-helpers';import { hbs } from 'ember-cli-htmlbars';module('Integration | Component | fleetbase-blog', function (hooks) {setupRenderingTest(hooks);- test('it renders', async function (assert) {- // Set any properties with this.set('myProperty', 'value');- // Handle any actions with this.set('myAction', function(val) { ... });+ hooks.beforeEach(function () {+ window.localStorage.clear();++ class FetchStub extends Service {+ response = [];+ requests = [];++ get(url) {+ this.requests.push(url);++ return Promise.resolve(this.response);+ }+ }++ this.owner.register('service:fetch', FetchStub);+ });++ test('it renders blog posts from the lookup endpoint', async function (assert) {+ const fetch = this.owner.lookup('service:fetch');++ fetch.response = [+ {+ title: 'First Ghost Post',+ link: 'https://www.fleetbase.io/blog/first-ghost-post',+ pubDate: 'Wed, 06 May 2026 14:31:46 GMT',+ },+ {+ title: 'Second Ghost Post',+ link: 'https://www.fleetbase.io/blog/second-ghost-post',+ pubDate: 'Wed, 06 May 2026 14:30:46 GMT',+ },+ ];await render(hbs`<FleetbaseBlog />`);- assert.dom(this.element).hasText('');+ assert.deepEqual(fetch.requests, ['lookup/fleetbase-blog']);+ assert.dom('.fleetbase-blog').containsText('Fleetbase Blog');+ assert.dom('a[href="https://www.fleetbase.io/blog/first-ghost-post"]').hasText('First Ghost Post');+ assert.dom('a[href="https://www.fleetbase.io/blog/second-ghost-post"]').hasText('Second Ghost Post');+ assert.dom('.fleetbase-blog').containsText('Wed, 06 May 2026 14:31:46 GMT');+ });- // Template block usage:- await render(hbs`- <FleetbaseBlog>- template block text- </FleetbaseBlog>- `);+ test('it renders an empty state when no posts are available', async function (assert) {+ await render(hbs`<FleetbaseBlog />`);- assert.dom(this.element).hasText('template block text');+ assert.dom('.fleetbase-blog').containsText('No blog posts are available right now.');});});diff --git a/console/translations/en-us.yaml b/console/translations/en-us.yamlindex 9b27405c..2534e2d4 100644--- a/console/translations/en-us.yaml+++ b/console/translations/en-us.yaml@@ -460,7 +460,14 @@ dashboard-widget-panel:{widgetName} Widgetselect-widgets: Select Widgetsclose-and-save: Close and Save- filter-widgets: Filter widgets by keyword+ filter-widgets: Search widgetsβ¦+ no-widgets-match: No widgets match your filters.+ tab-all: All+ tab-default: Recommended+ tab-added: On Dashboard+ badge-default: Default+ add: Add+ add-another: Add anotherfilters-picker:filters: Filters@@ -530,6 +537,7 @@ component:save-dashboard: Save Dashboardyou-cannot-delete-this-dashboard: You cannot delete this dashboard.are-you-sure-you-want-delete-dashboard: Are you sure to delete this {dashboardName}?+ create-to-customize-hint: Create a dashboard to customize widgets.dashboard-widget-panel:widget-name: >-diff --git a/docker/Dockerfile b/docker/Dockerfileindex f4a77e93..fd6adece 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -75,7 +75,7 @@ ENV QUEUE_CONNECTION=redisENV CADDYFILE_PATH=/fleetbase/CaddyfileENV CONSOLE_PATH=/fleetbase/consoleENV OCTANE_SERVER=frankenphp-ENV FLEETBASE_VERSION=0.7.40+ENV FLEETBASE_VERSION=0.7.41# Set environmentARG ENVIRONMENT=productiondiff --git a/package.json b/package.jsonnew file mode 100644index 00000000..2a9795bf--- /dev/null+++ b/package.json@@ -0,0 +1,9 @@+{+ "name": "fleetbase",+ "version": "0.0.0",+ "private": true,+ "description": "Fleetbase local development utilities.",+ "bin": {+ "package-linker": "./scripts/package-linker.mjs"+ }+}diff --git a/packages/core-api b/packages/core-apiindex 2aa24120..20a7b67a 160000--- a/packages/core-api+++ b/packages/core-api@@ -1 +1 @@-Subproject commit 2aa24120d4d31bd71b906e08baa1ea45c49dc98c+Subproject commit 20a7b67affbd10e63e0dd2c2544b1e959db56b39diff --git a/packages/ember-ui b/packages/ember-uiindex fd856656..0327ad25 160000--- a/packages/ember-ui+++ b/packages/ember-ui@@ -1 +1 @@-Subproject commit fd85665605a68f54f879f28bf9e99b12c98cd69d+Subproject commit 0327ad25106b6b9ac4102fdcc26e22d84970c733diff --git a/packages/fleetops b/packages/fleetopsindex 9394d4f8..4d30b769 160000--- a/packages/fleetops+++ b/packages/fleetops@@ -1 +1 @@-Subproject commit 9394d4f87172a6b4973c8109ca7cfe3ad8e7f899+Subproject commit 4d30b769e9959d8938350668228eb93569e0d236diff --git a/packages/fleetops-data b/packages/fleetops-dataindex a7ca95fa..1ded8c54 160000--- a/packages/fleetops-data+++ b/packages/fleetops-data@@ -1 +1 @@-Subproject commit a7ca95fa9151d025c4d44ade97404ec4c108b238+Subproject commit 1ded8c54e8b30eb1503c403d57e4394f460bcd5fdiff --git a/scripts/README.md b/scripts/README.mdnew file mode 100644index 00000000..163aa451--- /dev/null+++ b/scripts/README.md@@ -0,0 +1,184 @@+# Fleetbase Scripts++This directory contains project-level utilities for local development and setup. Run all commands from the repository root unless a command says otherwise.++## `package-linker.mjs`++`package-linker` manages local Fleetbase package links for extension development. It updates the Console npm manifest, API Composer repositories, and Console pnpm workspace settings so linked extension packages and shared Ember packages resolve from `packages/*`.++Use this when working on an extension such as FleetOps and you need local changes from `packages/fleetops`, `packages/ember-ui`, `packages/ember-core`, or `packages/fleetops-data` to show up in the host app.++The linker only treats a package as a Fleetbase extension when either:++- its `package.json` has `fleetbase-extension` in `keywords`+- it has an `extension.json` manifest++The only non-extension packages supported for shared dependency linking are `@fleetbase/ember-core`, `@fleetbase/ember-ui`, `@fleetbase/fleetops-data`, and the backend-only `fleetbase/core-api`.++### Install as a Global CLI++From the repository root:++```sh+npm link+```++Or from this directory:++```sh+cd scripts+npm link+```++After that, use:++```sh+package-linker --help+package-linker status+```++Without global linking, run the script directly:++```sh+node scripts/package-linker.mjs status+```++### Common Commands++List packages discovered under `packages/*`:++```sh+package-linker list+```++Show currently linked packages and shared dependency resolution:++```sh+package-linker status+```++Check for missing local symlinks or duplicate Fleetbase package versions in `console/pnpm-lock.yaml`:++```sh+package-linker doctor+```++Preview FleetOps linking without changing files:++```sh+package-linker enable fleetops --shared ember-core ember-ui fleetops-data --dry-run+```++Enable FleetOps local development links:++```sh+package-linker enable fleetops --shared ember-core ember-ui fleetops-data+package-linker install+```++Enable multiple extensions at once:++```sh+package-linker enable fleetops pallet --shared ember-core ember-ui fleetops-data+package-linker install+```++Run the install/update step for specific extensions:++```sh+package-linker install fleetops pallet+```++Preview the install/update commands without running them:++```sh+package-linker install --dry-run+```++Reset all local development links managed by the linker:++```sh+package-linker reset+package-linker install+```++Preview a full reset without changing files:++```sh+package-linker reset --dry-run+```++Enable only a shared frontend package:++```sh+package-linker enable-shared ember-ui+package-linker install+```++Enable the backend-only Core API package:++```sh+package-linker enable-shared core-api+package-linker install core-api+```++Disable local links and restore saved registry ranges:++```sh+package-linker disable fleetops pallet+package-linker disable-shared ember-core ember-ui fleetops-data core-api+package-linker install fleetops pallet core-api+```++Run installs automatically after enabling:++```sh+package-linker enable fleetops --shared ember-core ember-ui fleetops-data --install+```++### What It Changes++Depending on the command, `package-linker` may update:++- `console/package.json`+- `console/pnpm-workspace.yaml`+- `console/.npmrc`+- `api/composer.json`+- `.fleetbase-dev-links.json`++The `.fleetbase-dev-links.json` file stores original dependency ranges so links can be reversed. It is ignored by git.++For pnpm, the linker moves non-auth `public-hoist-pattern[]` settings from `console/.npmrc` into `console/pnpm-workspace.yaml`, keeps registry auth in `.npmrc`, and sets workspace linking options for local shared packages.++## `docker-install.sh`++`docker-install.sh` is the interactive Fleetbase Docker setup wizard. It checks required local tools, asks for core environment settings, generates local configuration, and guides Docker Compose setup.++Run the interactive wizard:++```sh+bash scripts/docker-install.sh+```++Run with defaults for non-interactive environments:++```sh+bash scripts/docker-install.sh --non-interactive+```++The script expects Docker, Docker Compose v2, git, and OpenSSL to be available. It warns when common Fleetbase ports are already in use but does not treat that as a hard failure.++## Validation++Check the package linker script:++```sh+node --check scripts/package-linker.mjs+node --test tests/package-linker.test.mjs+```++Check shell syntax for the Docker installer:++```sh+bash -n scripts/docker-install.sh+```diff --git a/scripts/package-linker.mjs b/scripts/package-linker.mjsnew file mode 100755index 00000000..1f45c626--- /dev/null+++ b/scripts/package-linker.mjs@@ -0,0 +1,1287 @@+#!/usr/bin/env node++import { spawnSync } from 'node:child_process';+import fs from 'node:fs';+import { createRequire } from 'node:module';+import os from 'node:os';+import path from 'node:path';+import { fileURLToPath, pathToFileURL } from 'node:url';++const __filename = fileURLToPath(import.meta.url);+const __dirname = path.dirname(__filename);+const require = createRequire(import.meta.url);++export const DEFAULT_ROOT = path.resolve(__dirname, '..');+export const STATE_FILE = '.fleetbase-dev-links.json';+export const DEFAULT_SHARED_PACKAGES = ['@fleetbase/ember-core', '@fleetbase/ember-ui', '@fleetbase/fleetops-data'];+export const DEFAULT_SHARED_BACKEND_PACKAGES = ['fleetbase/core-api'];++function usage() {+ return `Fleetbase package linker++Usage:+ package-linker list [--root <path>]+ package-linker status [--root <path>]+ package-linker doctor [--root <path>]+ package-linker enable <module...> [--shared <pkg...>] [--install] [--dry-run] [--root <path>]+ package-linker disable <module...> [--dry-run] [--root <path>]+ package-linker enable-shared <pkg...> [--install] [--dry-run] [--root <path>]+ package-linker disable-shared <pkg...> [--dry-run] [--root <path>]+ package-linker reset [--install] [--dry-run] [--root <path>]+ package-linker install [module...] [--dry-run] [--root <path>]++Examples:+ package-linker enable fleetops pallet --shared ember-core ember-ui fleetops-data+ package-linker enable-shared core-api+ package-linker reset+ package-linker enable fleetops --install+ package-linker install+ package-linker install fleetops pallet core-api+ package-linker doctor++Local fallback:+ node scripts/package-linker.mjs doctor+`;+}++function sortObject(subject) {+ return Object.fromEntries(Object.entries(subject).sort(([left], [right]) => left.localeCompare(right)));+}++function readText(filePath, fallback = null) {+ if (!fs.existsSync(filePath)) {+ return fallback;+ }++ return fs.readFileSync(filePath, 'utf8');+}++function writeText(filePath, contents) {+ fs.mkdirSync(path.dirname(filePath), { recursive: true });+ fs.writeFileSync(filePath, contents, 'utf8');+}++function readJson(filePath, fallback = null) {+ const contents = readText(filePath);++ if (contents === null) {+ return fallback;+ }++ return JSON.parse(contents);+}++function writeJson(filePath, data) {+ writeText(filePath, `${JSON.stringify(data, null, 4)}\n`);+}++function unique(items) {+ return [...new Set(items.filter(Boolean))];+}++function workspacePathForPackage(packageDir) {+ return path.posix.join('..', 'packages', path.basename(packageDir));+}++function linkPathForHost(packageDir) {+ return `link:${workspacePathForPackage(packageDir)}`;+}++function workspaceSpecFor(packageDir) {+ return 'workspace:*';+}++function composerRepositoryFor(packageDir) {+ return {+ type: 'path',+ url: workspacePathForPackage(packageDir),+ options: {+ symlink: true,+ },+ };+}++function makeEmptyState() {+ return {+ version: 1,+ modules: {},+ shared: {},+ };+}++function readState(root) {+ const state = readJson(path.join(root, STATE_FILE), makeEmptyState());+ state.version ??= 1;+ state.modules ??= {};+ state.shared ??= {};+ return state;+}++function writeState(root, state) {+ const normalized = {+ version: 1,+ modules: sortObject(state.modules ?? {}),+ shared: sortObject(state.shared ?? {}),+ };++ writeJson(path.join(root, STATE_FILE), normalized);+}++function removeEmptyState(root) {+ const state = readState(root);++ if (Object.keys(state.modules ?? {}).length > 0 || Object.keys(state.shared ?? {}).length > 0) {+ return;+ }++ const statePath = path.join(root, STATE_FILE);+ if (fs.existsSync(statePath)) {+ fs.unlinkSync(statePath);+ }+}++function readPackageJson(root, relativePath) {+ return readJson(path.join(root, relativePath));+}++function writePackageJson(root, relativePath, data) {+ writeJson(path.join(root, relativePath), data);+}++function parseScalar(value) {+ if (value === 'true') {+ return true;+ }++ if (value === 'false') {+ return false;+ }++ return value.replace(/^['"]|['"]$/g, '');+}++export function parseSimpleYaml(contents = '') {+ const data = {};+ let currentKey = null;++ for (const rawLine of contents.split(/\r?\n/)) {+ const line = rawLine.trimEnd();++ if (!line.trim() || line.trimStart().startsWith('#')) {+ continue;+ }++ const topLevelMatch = line.match(/^([A-Za-z0-9_-]+):(?:\s*(.*))?$/);++ if (topLevelMatch && !line.startsWith(' ')) {+ currentKey = topLevelMatch[1];+ const value = topLevelMatch[2] ?? '';++ if (!value) {+ data[currentKey] = undefined;+ } else {+ data[currentKey] = parseScalar(value);+ currentKey = null;+ }++ continue;+ }++ if (!currentKey) {+ continue;+ }++ const listMatch = line.match(/^\s+-\s+(.+)$/);++ if (listMatch) {+ if (!Array.isArray(data[currentKey])) {+ data[currentKey] = [];+ }++ data[currentKey].push(parseScalar(listMatch[1]));+ continue;+ }++ const objectMatch = line.match(/^\s+([^:]+):\s*(.*)$/);++ if (objectMatch) {+ if (!data[currentKey] || Array.isArray(data[currentKey])) {+ data[currentKey] = {};+ }++ data[currentKey][parseScalar(objectMatch[1].trim())] = parseScalar(objectMatch[2].trim());+ }+ }++ return data;+}++export function formatSimpleYaml(data) {+ const lines = [];+ const keyOrder = ['packages', 'linkWorkspacePackages', 'preferWorkspacePackages', 'publicHoistPattern', 'overrides', 'allowBuilds'];+ const keys = unique([...keyOrder, ...Object.keys(data)]).filter((key) => data[key] !== undefined);++ for (const key of keys) {+ const value = data[key];++ if (Array.isArray(value)) {+ lines.push(`${key}:`);+ for (const item of value) {+ lines.push(` - ${formatYamlValue(item)}`);+ }+ continue;+ }++ if (value && typeof value === 'object') {+ lines.push(`${key}:`);+ for (const [objectKey, objectValue] of Object.entries(value)) {+ lines.push(` ${formatYamlKey(objectKey)}: ${formatYamlValue(objectValue)}`);+ }+ continue;+ }++ lines.push(`${key}: ${formatYamlValue(value)}`);+ }++ return `${lines.join('\n')}\n`;+}++function formatYamlKey(key) {+ const stringKey = String(key);++ if (/^['"].*['"]$/.test(stringKey)) {+ return stringKey;+ }++ if (/^[A-Za-z0-9_.-]+$/.test(stringKey)) {+ return stringKey;+ }++ return JSON.stringify(stringKey);+}++function formatYamlValue(value) {+ if (typeof value === 'boolean') {+ return String(value);+ }++ const stringValue = String(value);++ if (/^[A-Za-z0-9_.-]+$/.test(stringValue)) {+ return stringValue;+ }++ return JSON.stringify(stringValue);+}++function readWorkspace(root) {+ return parseSimpleYaml(readText(path.join(root, 'console', 'pnpm-workspace.yaml'), ''));+}++function writeWorkspace(root, data) {+ writeText(path.join(root, 'console', 'pnpm-workspace.yaml'), formatSimpleYaml(data));+}++function readNpmrc(root) {+ return readText(path.join(root, 'console', '.npmrc'), '');+}++export function migratePnpmSettingsFromNpmrc(root, workspace) {+ const npmrcPath = path.join(root, 'console', '.npmrc');+ const npmrc = readNpmrc(root);+ const publicHoistPattern = [...(workspace.publicHoistPattern ?? [])];+ const remaining = [];++ for (const line of npmrc.split(/\r?\n/)) {+ const match = line.match(/^public-hoist-pattern\[\]\s*=\s*(.+)$/);++ if (match) {+ publicHoistPattern.push(match[1].trim().replace(/^['"]|['"]$/g, ''));+ continue;+ }++ remaining.push(line);+ }++ if (publicHoistPattern.length > 0) {+ workspace.publicHoistPattern = unique(publicHoistPattern);+ }++ const nextNpmrc = remaining.join('\n').replace(/\n{3,}/g, '\n\n').replace(/\s+$/, '\n');+ writeText(npmrcPath, nextNpmrc);++ return workspace;+}++function readExtensionJson(dir) {+ return readJson(path.join(dir, 'extension.json'), null);+}++function hasFleetbaseExtensionKeyword(packageJson) {+ return Boolean(packageJson?.keywords?.includes('fleetbase-extension'));+}++function isSharedDependency(module) {+ return Boolean(module.frontend && DEFAULT_SHARED_PACKAGES.includes(module.frontend));+}++function isSharedBackendDependency(module) {+ return Boolean(module.backend && DEFAULT_SHARED_BACKEND_PACKAGES.includes(module.backend));+}++export function discoverPackages(root = DEFAULT_ROOT) {+ const packagesDir = path.join(root, 'packages');++ if (!fs.existsSync(packagesDir)) {+ return [];+ }++ return fs+ .readdirSync(packagesDir, { withFileTypes: true })+ .filter((entry) => entry.isDirectory())+ .map((entry) => {+ const dir = path.join(packagesDir, entry.name);+ const packageJson = readJson(path.join(dir, 'package.json'), null);+ const composerJson = readJson(path.join(dir, 'composer.json'), null);+ const extensionJson = readExtensionJson(dir);+ return {+ slug: entry.name,+ dir,+ frontend: packageJson?.name ?? null,+ backend: composerJson?.name ?? null,+ version: packageJson?.version ?? composerJson?.version ?? null,+ extension: extensionJson,+ isExtension: Boolean(hasFleetbaseExtensionKeyword(packageJson) || extensionJson),+ };+ })+ .filter((module) => module.frontend || module.backend)+ .sort((left, right) => left.slug.localeCompare(right.slug));+}++export function discoverModules(root = DEFAULT_ROOT) {+ return discoverPackages(root).filter((module) => module.isExtension);+}++function discoverSharedDependencies(root = DEFAULT_ROOT) {+ return discoverPackages(root).filter(isSharedDependency);+}++function discoverSharedBackendDependencies(root = DEFAULT_ROOT) {+ return discoverPackages(root).filter(isSharedBackendDependency);+}++function findModule(root, moduleName) {+ const modules = discoverModules(root);+ const normalized = moduleName.toLowerCase();+ const module = modules.find((candidate) => {+ return candidate.slug.toLowerCase() === normalized || candidate.frontend?.toLowerCase() === normalized || candidate.backend?.toLowerCase() === normalized;+ });++ if (!module) {+ throw new Error(`Unable to find module "${moduleName}" under packages/. Run "list" to see available modules.`);+ }++ return module;+}++function normalizeSharedPackage(root, packageName) {+ let name = packageName;++ if (!name.startsWith('@fleetbase/')) {+ name = `@fleetbase/${name}`;+ }++ const modules = discoverSharedDependencies(root);+ const module = modules.find((candidate) => candidate.frontend === name || candidate.slug === name.replace('@fleetbase/', ''));++ if (!module?.frontend) {+ throw new Error(`Unable to find allowed shared frontend package "${packageName}" under packages/. Allowed packages: ${DEFAULT_SHARED_PACKAGES.join(', ')}.`);+ }++ return module;+}++function normalizeSharedBackendPackage(root, packageName) {+ let name = packageName;++ if (!name.includes('/')) {+ name = `fleetbase/${name}`;+ }++ const modules = discoverSharedBackendDependencies(root);+ const module = modules.find((candidate) => candidate.backend === name || candidate.slug === name.replace('fleetbase/', ''));++ if (!module?.backend) {+ throw new Error(`Unable to find allowed shared backend package "${packageName}" under packages/. Allowed packages: ${DEFAULT_SHARED_BACKEND_PACKAGES.join(', ')}.`);+ }++ return module;+}++function isSharedBackendPackageName(root, packageName) {+ try {+ normalizeSharedBackendPackage(root, packageName);+ return true;+ } catch {+ return false;+ }+}++function activeWorkspacePackages(state) {+ const modulePackages = Object.values(state.modules ?? {})+ .map((entry) => entry.workspacePath)+ .filter(Boolean);+ const sharedPackages = Object.values(state.shared ?? {})+ .map((entry) => entry.workspacePath)+ .filter(Boolean);++ return unique([...modulePackages, ...sharedPackages]);+}++function ensureWorkspaceEntry(workspace, workspacePath) {+ workspace.packages = unique([...(workspace.packages ?? []), workspacePath]).sort();+}++function removeWorkspaceEntry(workspace, workspacePath, state) {+ if (activeWorkspacePackages(state).includes(workspacePath)) {+ return;+ }++ workspace.packages = (workspace.packages ?? []).filter((entry) => entry !== workspacePath);+ if (workspace.packages.length === 0) {+ delete workspace.packages;+ }+}++function ensureWorkspaceDevelopmentSettings(root, workspace) {+ migratePnpmSettingsFromNpmrc(root, workspace);+ workspace.linkWorkspacePackages = 'deep';+ workspace.preferWorkspacePackages = true;+ workspace.overrides ??= {};+ return workspace;+}++function findRepositoryIndex(composerJson, repository) {+ return (composerJson.repositories ?? []).findIndex((candidate) => candidate.type === 'path' && candidate.url === repository.url);+}++function packageVersionRange(packageJson) {+ if (!packageJson?.version) {+ return '*';+ }++ return packageJson.version === '*' ? '*' : `^${packageJson.version}`;+}++function originalNpmRange(currentRange, packageJson) {+ if (currentRange && !currentRange.startsWith('link:') && !currentRange.startsWith('workspace:')) {+ return currentRange;+ }++ return packageVersionRange(packageJson);+}++export function enableModule(root, moduleName, options = {}) {+ const module = findModule(root, moduleName);+ const state = readState(root);+ const consolePackage = readPackageJson(root, path.join('console', 'package.json'));+ const apiComposer = readPackageJson(root, path.join('api', 'composer.json'));+ const workspace = ensureWorkspaceDevelopmentSettings(root, readWorkspace(root));+ const moduleState = state.modules[module.slug] ?? {};+ const workspacePath = workspacePathForPackage(module.dir);++ moduleState.workspacePath = workspacePath;++ if (module.frontend) {+ const modulePackage = readJson(path.join(module.dir, 'package.json'), null);+ consolePackage.dependencies ??= {};+ moduleState.npm ??= {+ packageName: module.frontend,+ originalRange: originalNpmRange(consolePackage.dependencies[module.frontend], modulePackage),+ };+ consolePackage.dependencies[module.frontend] = linkPathForHost(module.dir);+ ensureWorkspaceEntry(workspace, workspacePath);+ }++ if (module.backend) {+ apiComposer.require ??= {};+ moduleState.composer ??= {+ packageName: module.backend,+ originalRange: apiComposer.require[module.backend] ?? packageVersionRange(readJson(path.join(module.dir, 'composer.json'), null)),+ originalRepository: null,+ };+ apiComposer.require[module.backend] = moduleState.composer.originalRange;++ apiComposer.repositories ??= [];+ const repository = composerRepositoryFor(module.dir);+ const repositoryIndex = findRepositoryIndex(apiComposer, repository);++ if (repositoryIndex === -1) {+ apiComposer.repositories.unshift(repository);+ } else {+ apiComposer.repositories[repositoryIndex] = {+ ...apiComposer.repositories[repositoryIndex],+ options: {+ ...(apiComposer.repositories[repositoryIndex].options ?? {}),+ symlink: true,+ },+ };+ }+ }++ state.modules[module.slug] = moduleState;++ const sharedBackendPackages = [];+ for (const sharedPackage of options.shared ?? []) {+ if (isSharedBackendPackageName(root, sharedPackage)) {+ sharedBackendPackages.push(sharedPackage);+ } else {+ enableSharedPackage(root, sharedPackage, { state, workspace, consolePackage, write: false });+ }+ }++ writePackageJson(root, path.join('console', 'package.json'), consolePackage);+ writePackageJson(root, path.join('api', 'composer.json'), apiComposer);+ writeWorkspace(root, workspace);+ writeState(root, state);++ for (const sharedPackage of sharedBackendPackages) {+ enableSharedBackendPackage(root, sharedPackage);+ }++ return module;+}++export function disableModule(root, moduleName) {+ const module = findModule(root, moduleName);+ const state = readState(root);+ const consolePackage = readPackageJson(root, path.join('console', 'package.json'));+ const apiComposer = readPackageJson(root, path.join('api', 'composer.json'));+ const workspace = readWorkspace(root);+ const moduleState = state.modules[module.slug] ?? {};+ const workspacePath = workspacePathForPackage(module.dir);++ if (module.frontend && consolePackage.dependencies?.[module.frontend]) {+ consolePackage.dependencies[module.frontend] = moduleState.npm?.originalRange ?? packageVersionRange(readJson(path.join(module.dir, 'package.json'), null));+ }++ if (module.backend && apiComposer.require?.[module.backend]) {+ apiComposer.require[module.backend] = moduleState.composer?.originalRange ?? packageVersionRange(readJson(path.join(module.dir, 'composer.json'), null));+ }++ if (module.backend && Array.isArray(apiComposer.repositories)) {+ const repository = composerRepositoryFor(module.dir);+ const repositoryIndex = findRepositoryIndex(apiComposer, repository);++ if (repositoryIndex >= 0) {+ if (moduleState.composer?.originalRepository) {+ apiComposer.repositories[repositoryIndex] = moduleState.composer.originalRepository;+ } else {+ apiComposer.repositories.splice(repositoryIndex, 1);+ }+ }+ }++ delete state.modules[module.slug];+ removeWorkspaceEntry(workspace, workspacePath, state);++ writePackageJson(root, path.join('console', 'package.json'), consolePackage);+ writePackageJson(root, path.join('api', 'composer.json'), apiComposer);+ writeWorkspace(root, workspace);+ writeState(root, state);++ return module;+}++export function enableSharedPackage(root, packageName, options = {}) {+ const module = normalizeSharedPackage(root, packageName);+ const state = options.state ?? readState(root);+ const consolePackage = options.consolePackage ?? readPackageJson(root, path.join('console', 'package.json'));+ const workspace = options.workspace ?? ensureWorkspaceDevelopmentSettings(root, readWorkspace(root));+ const originalOverride = workspace.overrides?.[module.frontend] ?? consolePackage.pnpm?.overrides?.[module.frontend] ?? null;+ const workspacePath = workspacePathForPackage(module.dir);++ state.shared[module.frontend] ??= {+ originalRange: originalNpmRange(consolePackage.dependencies?.[module.frontend], readJson(path.join(module.dir, 'package.json'), null)),+ originalOverride,+ workspacePath,+ };++ consolePackage.dependencies ??= {};+ consolePackage.dependencies[module.frontend] = workspaceSpecFor(module.dir);++ workspace.overrides ??= {};+ workspace.overrides[module.frontend] = workspaceSpecFor(module.dir);+ ensureWorkspaceEntry(workspace, workspacePath);++ if (consolePackage.pnpm?.overrides?.[module.frontend]) {+ delete consolePackage.pnpm.overrides[module.frontend];+ if (Object.keys(consolePackage.pnpm.overrides).length === 0) {+ delete consolePackage.pnpm.overrides;+ }+ if (Object.keys(consolePackage.pnpm).length === 0) {+ delete consolePackage.pnpm;+ }+ }++ if (options.write !== false) {+ writePackageJson(root, path.join('console', 'package.json'), consolePackage);+ writeWorkspace(root, workspace);+ writeState(root, state);+ }++ return module;+}++export function enableSharedBackendPackage(root, packageName) {+ const module = normalizeSharedBackendPackage(root, packageName);+ const state = readState(root);+ const apiComposer = readPackageJson(root, path.join('api', 'composer.json'));+ const repository = composerRepositoryFor(module.dir);+ const repositoryIndex = findRepositoryIndex(apiComposer, repository);++ state.shared[module.backend] ??= {+ type: 'backend',+ originalRange: apiComposer.require?.[module.backend] ?? packageVersionRange(readJson(path.join(module.dir, 'composer.json'), null)),+ originalRepository: repositoryIndex >= 0 ? apiComposer.repositories[repositoryIndex] : null,+ packageDir: path.basename(module.dir),+ };++ apiComposer.require ??= {};+ apiComposer.require[module.backend] = state.shared[module.backend].originalRange;+ apiComposer.repositories ??= [];++ if (repositoryIndex === -1) {+ apiComposer.repositories.unshift(repository);+ } else {+ apiComposer.repositories[repositoryIndex] = {+ ...apiComposer.repositories[repositoryIndex],+ options: {+ ...(apiComposer.repositories[repositoryIndex].options ?? {}),+ symlink: true,+ },+ };+ }++ writePackageJson(root, path.join('api', 'composer.json'), apiComposer);+ writeState(root, state);++ return module;+}++export function enableSharedDependency(root, packageName, options = {}) {+ if (isSharedBackendPackageName(root, packageName)) {+ return enableSharedBackendPackage(root, packageName);+ }++ return enableSharedPackage(root, packageName, options);+}++export function disableSharedPackage(root, packageName) {+ const module = normalizeSharedPackage(root, packageName);+ const state = readState(root);+ const consolePackage = readPackageJson(root, path.join('console', 'package.json'));+ const workspace = readWorkspace(root);+ const sharedState = state.shared[module.frontend] ?? {};+ const workspacePath = workspacePathForPackage(module.dir);++ if (consolePackage.dependencies?.[module.frontend]) {+ consolePackage.dependencies[module.frontend] = sharedState.originalRange ?? packageVersionRange(readJson(path.join(module.dir, 'package.json'), null));+ }++ if (workspace.overrides?.[module.frontend]) {+ if (sharedState.originalOverride) {+ workspace.overrides[module.frontend] = sharedState.originalOverride;+ } else {+ delete workspace.overrides[module.frontend];+ }++ if (Object.keys(workspace.overrides).length === 0) {+ delete workspace.overrides;+ }+ }++ delete state.shared[module.frontend];+ removeWorkspaceEntry(workspace, workspacePath, state);++ writePackageJson(root, path.join('console', 'package.json'), consolePackage);+ writeWorkspace(root, workspace);+ writeState(root, state);++ return module;+}++export function disableSharedBackendPackage(root, packageName) {+ const module = normalizeSharedBackendPackage(root, packageName);+ const state = readState(root);+ const apiComposer = readPackageJson(root, path.join('api', 'composer.json'));+ const sharedState = state.shared[module.backend] ?? {};+ const repository = composerRepositoryFor(module.dir);+ const repositoryIndex = findRepositoryIndex(apiComposer, repository);++ if (apiComposer.require?.[module.backend]) {+ apiComposer.require[module.backend] = sharedState.originalRange ?? packageVersionRange(readJson(path.join(module.dir, 'composer.json'), null));+ }++ if (repositoryIndex >= 0) {+ if (sharedState.originalRepository) {+ apiComposer.repositories[repositoryIndex] = sharedState.originalRepository;+ } else {+ apiComposer.repositories.splice(repositoryIndex, 1);+ }+ }++ delete state.shared[module.backend];++ writePackageJson(root, path.join('api', 'composer.json'), apiComposer);+ writeState(root, state);++ return module;+}++export function disableSharedDependency(root, packageName) {+ if (isSharedBackendPackageName(root, packageName)) {+ return disableSharedBackendPackage(root, packageName);+ }++ return disableSharedPackage(root, packageName);+}++function isFrontendSharedLinked(shared) {+ return Boolean(shared.type === 'frontend' && (shared.stateTracked || shared.npmRange?.startsWith('workspace:') || shared.npmRange?.startsWith('link:') || shared.override?.startsWith('workspace:') || shared.override?.startsWith('link:')));+}++function isBackendSharedLinked(shared) {+ return Boolean(shared.type === 'backend' && (shared.stateTracked || shared.composerLinked));+}++export function getResetTargets(root = DEFAULT_ROOT) {+ const status = getStatus(root);+ const modules = status.modules.filter((module) => module.npmLinked || module.composerLinked || module.workspaceLinked || module.stateTracked);+ const shared = status.shared.filter((entry) => isFrontendSharedLinked(entry) || isBackendSharedLinked(entry));++ return {+ modules,+ shared,+ };+}++export function resetLinks(root = DEFAULT_ROOT) {+ const targets = getResetTargets(root);+ const resetModules = [];++ for (const module of targets.modules) {+ resetModules.push(disableModule(root, module.slug));+ }++ for (const shared of targets.shared) {+ resetModules.push(disableSharedDependency(root, shared.packageName));+ }++ removeEmptyState(root);++ return resetModules;+}++function readLockfileVersions(root) {+ const lockfile = readText(path.join(root, 'console', 'pnpm-lock.yaml'), '');+ const versions = new Map();+ const regex = /^\s{2}'?(@fleetbase\/[^'@:\s]+)@([^':\s]+)[^']*'?:/gm;+ let match;++ while ((match = regex.exec(lockfile))) {+ const [, packageName, version] = match;+ const normalizedVersion = version.split('(')[0];+ if (!versions.has(packageName)) {+ versions.set(packageName, new Set());+ }+ versions.get(packageName).add(normalizedVersion);+ }++ return versions;+}++function symlinkTarget(root, packageName) {+ const packagePath = path.join(root, 'console', 'node_modules', ...packageName.split('/'));++ try {+ const stats = fs.lstatSync(packagePath);+ return stats.isSymbolicLink() ? fs.readlinkSync(packagePath) : null;+ } catch {+ return null;+ }+}++function resolvePackageFrom(baseDir, packageName) {+ try {+ return require.resolve(`${packageName}/package.json`, { paths: [baseDir] });+ } catch {+ return null;+ }+}++export function getStatus(root = DEFAULT_ROOT) {+ const modules = discoverModules(root);+ const packages = discoverPackages(root);+ const backendSharedPackages = discoverSharedBackendDependencies(root);+ const state = readState(root);+ const consolePackage = readJson(path.join(root, 'console', 'package.json'), {});+ const apiComposer = readJson(path.join(root, 'api', 'composer.json'), {});+ const workspace = readWorkspace(root);++ return {+ modules: modules.map((module) => {+ const npmRange = module.frontend ? consolePackage.dependencies?.[module.frontend] : null;+ const composerRange = module.backend ? apiComposer.require?.[module.backend] : null;+ const repository = module.backend ? (apiComposer.repositories ?? []).find((candidate) => candidate.type === 'path' && candidate.url === workspacePathForPackage(module.dir)) : null;++ return {+ ...module,+ npmLinked: Boolean(npmRange?.startsWith('link:')),+ npmRange,+ composerLinked: Boolean(repository),+ composerRange,+ workspaceLinked: Boolean((workspace.packages ?? []).includes(workspacePathForPackage(module.dir))),+ stateTracked: Boolean(state.modules[module.slug]),+ };+ }),+ shared: [+ ...DEFAULT_SHARED_PACKAGES.map((packageName) => {+ const module = packages.find((candidate) => candidate.frontend === packageName);+ return {+ type: 'frontend',+ packageName,+ workspacePath: module ? workspacePathForPackage(module.dir) : null,+ npmRange: consolePackage.dependencies?.[packageName] ?? null,+ override: workspace.overrides?.[packageName] ?? consolePackage.pnpm?.overrides?.[packageName] ?? null,+ stateTracked: Boolean(state.shared[packageName]),+ symlinkTarget: symlinkTarget(root, packageName),+ };+ }),+ ...backendSharedPackages.map((module) => {+ const repository = (apiComposer.repositories ?? []).find((candidate) => candidate.type === 'path' && candidate.url === workspacePathForPackage(module.dir));+ return {+ type: 'backend',+ packageName: module.backend,+ composerRange: apiComposer.require?.[module.backend] ?? null,+ composerLinked: Boolean(repository),+ stateTracked: Boolean(state.shared[module.backend]),+ module,+ };+ }),+ ],+ };+}++function printList(root) {+ const modules = discoverModules(root);+ const sharedDependencies = discoverSharedDependencies(root);+ const sharedBackendDependencies = discoverSharedBackendDependencies(root);++ console.log('Extensions');+ for (const module of modules) {+ const source = module.extension ? 'extension.json' : 'package.json keywords';+ console.log(` ${module.slug.padEnd(22)} frontend=${module.frontend ?? '-'} backend=${module.backend ?? '-'} source=${source}`);+ }++ console.log('\nShared development dependencies');+ for (const module of sharedDependencies) {+ console.log(` ${module.slug.padEnd(22)} frontend=${module.frontend}`);+ }+ for (const module of sharedBackendDependencies) {+ console.log(` ${module.slug.padEnd(22)} backend=${module.backend}`);+ }+}++function printStatus(root) {+ const status = getStatus(root);++ console.log('Modules');+ for (const module of status.modules.filter((candidate) => candidate.npmLinked || candidate.composerLinked || candidate.workspaceLinked || candidate.stateTracked)) {+ console.log(` ${module.slug}: npm=${module.npmRange ?? '-'} composer=${module.composerLinked ? 'path' : '-'} workspace=${module.workspaceLinked ? 'yes' : 'no'} state=${module.stateTracked ? 'yes' : 'no'}`);+ }++ console.log('\nShared packages');+ for (const shared of status.shared) {+ if (shared.type === 'backend') {+ console.log(` ${shared.packageName}: composer=${shared.composerRange ?? '-'} path=${shared.composerLinked ? 'yes' : 'no'} state=${shared.stateTracked ? 'yes' : 'no'}`);+ } else {+ console.log(` ${shared.packageName}: dep=${shared.npmRange ?? '-'} override=${shared.override ?? '-'} symlink=${shared.symlinkTarget ?? '-'}`);+ }+ }+}++function printDoctor(root) {+ const status = getStatus(root);+ const versions = readLockfileVersions(root);+ const configuredSharedPackages = status.shared.filter((entry) => entry.type === 'frontend' && (entry.override?.startsWith('workspace:') || entry.npmRange?.startsWith('workspace:') || entry.npmRange?.startsWith('link:')));+ const configuredSharedBackendPackages = status.shared.filter((entry) => entry.type === 'backend' && (entry.composerLinked || entry.stateTracked));+ const activeModules = status.modules.filter((module) => module.npmLinked || module.composerLinked || module.workspaceLinked || module.stateTracked);+ let issues = 0;++ printStatus(root);+ console.log('\nDoctor');++ for (const shared of configuredSharedPackages) {+ const resolvedFromConsole = resolvePackageFrom(path.join(root, 'console'), shared.packageName);+ const ok = Boolean(resolvedFromConsole?.includes(shared.workspacePath.replace('../', '')));+ if (ok) {+ console.log(` ok ${shared.packageName} resolves to ${resolvedFromConsole}`);+ } else {+ issues++;+ console.log(` warn ${shared.packageName} is configured for local development but node_modules does not point at ${shared.workspacePath}. Run: cd console && pnpm install`);+ }+ }++ for (const module of activeModules) {+ const packageJson = readJson(path.join(module.dir, 'package.json'), null);+ const moduleSharedDeps = DEFAULT_SHARED_PACKAGES.filter((packageName) => packageJson?.dependencies?.[packageName] && configuredSharedPackages.some((shared) => shared.packageName === packageName));++ for (const packageName of moduleSharedDeps) {+ const resolvedFromModule = resolvePackageFrom(module.dir, packageName);+ const shared = configuredSharedPackages.find((entry) => entry.packageName === packageName);+ const ok = Boolean(resolvedFromModule?.includes(shared.workspacePath.replace('../', '')));++ if (ok) {+ console.log(` ok ${module.slug} resolves ${packageName} to ${resolvedFromModule}`);+ } else {+ issues++;+ console.log(` warn ${module.slug} cannot resolve local ${packageName}. Run: package-linker install ${module.slug}`);+ }+ }+ }++ for (const shared of configuredSharedBackendPackages) {+ if (shared.composerLinked) {+ console.log(` ok ${shared.packageName} uses a Composer path repository`);+ } else {+ issues++;+ console.log(` warn ${shared.packageName} is tracked for local development but api/composer.json does not have a path repository. Run: package-linker enable-shared ${shared.module.slug}`);+ }+ }++ for (const [packageName, packageVersions] of versions.entries()) {+ if (packageVersions.size > 1) {+ issues++;+ console.log(` warn ${packageName} has duplicate lockfile versions: ${[...packageVersions].join(', ')}`);+ }+ }++ if (issues === 0) {+ console.log(' ok no duplicate Fleetbase package versions or missing local links detected');+ }+}++function printFollowUp(modules = []) {+ const normalizedModules = Array.isArray(modules) ? modules : [modules].filter(Boolean);++ console.log('\nNext steps:');+ for (const command of getInstallCommands(normalizedModules)) {+ console.log(` ${command}`);+ }++ const moduleNames = normalizedModules.map((module) => module?.slug).filter(Boolean);+ console.log(` package-linker install${moduleNames.length > 0 ? ` ${moduleNames.join(' ')}` : ''}`);+}++function copyIfExists(source, destination) {+ if (!fs.existsSync(source)) {+ return;+ }++ fs.mkdirSync(path.dirname(destination), { recursive: true });+ fs.copyFileSync(source, destination);+}++function createDryRunRoot(root) {+ const dryRunRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'package-linker-dry-run-'));++ for (const relativePath of ['console/package.json', 'console/pnpm-workspace.yaml', 'console/.npmrc', 'api/composer.json', STATE_FILE]) {+ copyIfExists(path.join(root, relativePath), path.join(dryRunRoot, relativePath));+ }++ for (const module of discoverPackages(root)) {+ const packageDir = path.join(dryRunRoot, 'packages', module.slug);+ copyIfExists(path.join(module.dir, 'package.json'), path.join(packageDir, 'package.json'));+ copyIfExists(path.join(module.dir, 'composer.json'), path.join(packageDir, 'composer.json'));+ copyIfExists(path.join(module.dir, 'extension.json'), path.join(packageDir, 'extension.json'));+ }++ return dryRunRoot;+}++function collectManifestSnapshots(root) {+ const files = ['console/package.json', 'console/pnpm-workspace.yaml', 'console/.npmrc', 'api/composer.json', STATE_FILE];+ const snapshots = {};++ for (const file of files) {+ snapshots[file] = readText(path.join(root, file), null);+ }++ return snapshots;+}++function printDryRunDiff(originalRoot, dryRunRoot) {+ const original = collectManifestSnapshots(originalRoot);+ const next = collectManifestSnapshots(dryRunRoot);+ const changed = Object.keys(next).filter((file) => original[file] !== next[file]);++ if (changed.length === 0) {+ console.log('Dry run: no manifest changes.');+ return;+ }++ console.log('Dry run: would update:');+ for (const file of changed) {+ console.log(` ${file}`);+ }++ console.log('\nPreview:');+ for (const file of changed) {+ console.log(`\n--- ${file}`);+ if (file === 'console/.npmrc') {+ console.log('(redacted; registry auth is preserved, non-auth pnpm settings may move to pnpm-workspace.yaml)');+ continue;+ }+ console.log(next[file]?.trimEnd() ?? '(deleted)');+ }+}++export function getInstallCommands(modules = []) {+ const normalizedModules = Array.isArray(modules) ? modules : [modules].filter(Boolean);+ const backendPackages = unique(normalizedModules.map((module) => module?.backend).filter(Boolean));+ const commands = ['cd console && pnpm install'];++ if (backendPackages.length > 0) {+ commands.push(`cd api && composer update ${backendPackages.join(' ')} --with-dependencies`);+ }++ return commands;+}++export function getInstallModules(root, moduleNames = []) {+ if (moduleNames.length > 0) {+ return moduleNames.map((moduleName) => {+ if (isSharedBackendPackageName(root, moduleName)) {+ return normalizeSharedBackendPackage(root, moduleName);+ }++ return findModule(root, moduleName);+ });+ }++ const status = getStatus(root);+ const linkedModuleNames = status.modules.filter((module) => module.npmLinked || module.composerLinked || module.workspaceLinked || module.stateTracked).map((module) => module.slug);+ const linkedBackendSharedModules = status.shared+ .filter((entry) => entry.type === 'backend' && (entry.composerLinked || entry.stateTracked))+ .map((entry) => entry.module);++ return [...unique(linkedModuleNames).map((moduleName) => findModule(root, moduleName)), ...linkedBackendSharedModules];+}++function printInstallPlan(modules = []) {+ console.log('Install commands:');+ for (const command of getInstallCommands(modules)) {+ console.log(` ${command}`);+ }+}++function runInstall(root, modules = []) {+ const normalizedModules = Array.isArray(modules) ? modules : [modules].filter(Boolean);+ const backendPackages = unique(normalizedModules.map((module) => module?.backend).filter(Boolean));+ const pnpm = spawnSync('pnpm', ['install'], {+ cwd: path.join(root, 'console'),+ stdio: 'inherit',+ });++ if (pnpm.status !== 0) {+ process.exit(pnpm.status ?? 1);+ }++ if (backendPackages.length > 0) {+ const composer = spawnSync('composer', ['update', ...backendPackages, '--with-dependencies'], {+ cwd: path.join(root, 'api'),+ stdio: 'inherit',+ });++ if (composer.status !== 0) {+ process.exit(composer.status ?? 1);+ }+ }+}++function parseArgs(argv) {+ const args = [...argv];+ let root = DEFAULT_ROOT;+ let install = false;+ let dryRun = false;+ const shared = [];+ const positional = [];++ while (args.length > 0) {+ const arg = args.shift();++ if (arg === '--root') {+ root = path.resolve(args.shift());+ continue;+ }++ if (arg === '--install') {+ install = true;+ continue;+ }++ if (arg === '--dry-run') {+ dryRun = true;+ continue;+ }++ if (arg === '--shared') {+ while (args[0] && !args[0].startsWith('--')) {+ shared.push(args.shift());+ }+ continue;+ }++ positional.push(arg);+ }++ return {+ root,+ install,+ dryRun,+ shared,+ command: positional[0],+ values: positional.slice(1),+ };+}++export function runCli(argv = process.argv.slice(2)) {+ const { root, command, values, shared, install, dryRun } = parseArgs(argv);+ const targetRoot = dryRun ? createDryRunRoot(root) : root;++ if (!command || command === '--help' || command === '-h') {+ console.log(usage());+ return;+ }++ if (command === 'list') {+ printList(root);+ return;+ }++ if (command === 'status') {+ printStatus(root);+ return;+ }++ if (command === 'doctor') {+ printDoctor(root);+ return;+ }++ if (command === 'install' || command === 'sync') {+ const modules = getInstallModules(root, values);++ if (dryRun) {+ printInstallPlan(modules);+ } else {+ runInstall(root, modules);+ }+ return;+ }++ if (command === 'reset') {+ const modules = resetLinks(targetRoot);++ if (modules.length === 0) {+ console.log('No local development links found.');+ } else {+ console.log(`Reset ${modules.length} local development link${modules.length === 1 ? '' : 's'}.`);+ }++ if (dryRun) {+ printDryRunDiff(root, targetRoot);+ } else {+ install ? runInstall(root, modules) : printFollowUp(modules);+ }+ return;+ }++ if (command === 'enable') {+ if (!values[0]) {+ throw new Error('Missing module name for enable.');+ }++ const modules = values.map((moduleName) => enableModule(targetRoot, moduleName, { shared }));+ for (const module of modules) {+ console.log(`Enabled local development links for ${module.slug}.`);+ }+ if (dryRun) {+ printDryRunDiff(root, targetRoot);+ } else {+ install ? runInstall(root, modules) : printFollowUp(modules);+ }+ return;+ }++ if (command === 'disable') {+ if (!values[0]) {+ throw new Error('Missing module name for disable.');+ }++ const modules = values.map((moduleName) => disableModule(targetRoot, moduleName));+ for (const module of modules) {+ console.log(`Disabled local development links for ${module.slug}.`);+ }+ dryRun ? printDryRunDiff(root, targetRoot) : printFollowUp(modules);+ return;+ }++ if (command === 'enable-shared') {+ if (values.length === 0) {+ throw new Error('Missing shared package name.');+ }++ const modules = [];+ for (const packageName of values) {+ const module = enableSharedDependency(targetRoot, packageName);+ modules.push(module);+ console.log(`Enabled shared package ${module.frontend ?? module.backend}.`);+ }++ if (dryRun) {+ printDryRunDiff(root, targetRoot);+ } else {+ install ? runInstall(root, modules) : printFollowUp(modules);+ }+ return;+ }++ if (command === 'disable-shared') {+ if (values.length === 0) {+ throw new Error('Missing shared package name.');+ }++ const modules = [];+ for (const packageName of values) {+ const module = disableSharedDependency(targetRoot, packageName);+ modules.push(module);+ console.log(`Disabled shared package ${module.frontend ?? module.backend}.`);+ }++ dryRun ? printDryRunDiff(root, targetRoot) : printFollowUp(modules);+ return;+ }++ throw new Error(`Unknown command "${command}".\n\n${usage()}`);+}++if (import.meta.url === pathToFileURL(process.argv[1]).href) {+ try {+ runCli();+ } catch (error) {+ console.error(error.message);+ process.exit(1);+ }+}diff --git a/scripts/package.json b/scripts/package.jsonnew file mode 100644index 00000000..e4265d33--- /dev/null+++ b/scripts/package.json@@ -0,0 +1,9 @@+{+ "name": "package-linker",+ "version": "0.0.0",+ "private": true,+ "description": "Fleetbase package linker CLI.",+ "bin": {+ "package-linker": "./package-linker.mjs"+ }+}diff --git a/tests/package-linker.test.mjs b/tests/package-linker.test.mjsnew file mode 100644index 00000000..a6328de6--- /dev/null+++ b/tests/package-linker.test.mjs@@ -0,0 +1,437 @@+import assert from 'node:assert/strict';+import fs from 'node:fs';+import os from 'node:os';+import path from 'node:path';+import test from 'node:test';++import {+ disableModule,+ disableSharedPackage,+ disableSharedDependency,+ discoverModules,+ discoverPackages,+ enableModule,+ enableSharedPackage,+ enableSharedDependency,+ formatSimpleYaml,+ getInstallCommands,+ getInstallModules,+ getResetTargets,+ parseSimpleYaml,+ resetLinks,+ runCli,+ STATE_FILE,+} from '../scripts/package-linker.mjs';++function writeJson(filePath, data) {+ fs.mkdirSync(path.dirname(filePath), { recursive: true });+ fs.writeFileSync(filePath, `${JSON.stringify(data, null, 4)}\n`, 'utf8');+}++function readJson(filePath) {+ return JSON.parse(fs.readFileSync(filePath, 'utf8'));+}++function createPackage(root, slug, frontendName, backendName, options = {}) {+ const packageDir = path.join(root, 'packages', slug);+ fs.mkdirSync(packageDir, { recursive: true });++ if (frontendName) {+ writeJson(path.join(packageDir, 'package.json'), {+ name: frontendName,+ version: options.frontendVersion ?? '1.2.3',+ keywords: options.keywords ?? ['fleetbase-extension', 'ember-engine'],+ });+ }++ if (backendName) {+ writeJson(path.join(packageDir, 'composer.json'), {+ name: backendName,+ version: options.backendVersion ?? '1.2.3',+ extra: {+ laravel: {+ providers: [],+ },+ },+ });+ }++ if (options.extensionJson) {+ writeJson(path.join(packageDir, 'extension.json'), options.extensionJson);+ }+}++function createFixture() {+ const root = fs.mkdtempSync(path.join(os.tmpdir(), 'package-linker-'));++ fs.mkdirSync(path.join(root, 'console'), { recursive: true });+ fs.mkdirSync(path.join(root, 'api'), { recursive: true });++ writeJson(path.join(root, 'console', 'package.json'), {+ dependencies: {+ '@fleetbase/fleetops-engine': '^0.6.48',+ '@fleetbase/ember-core': '^0.3.19',+ '@fleetbase/ember-ui': '^0.3.29',+ '@fleetbase/fleetops-data': '^0.1.32',+ },+ pnpm: {+ overrides: {+ '@fleetbase/ember-core': '^0.3.19',+ '@fleetbase/ember-ui': '^0.3.29',+ '@fleetbase/fleetops-data': '^0.1.32',+ },+ },+ });++ writeJson(path.join(root, 'api', 'composer.json'), {+ require: {+ 'fleetbase/fleetops-api': '^0.6.48',+ 'fleetbase/core-api': '^1.6.47',+ },+ repositories: [+ {+ type: 'composer',+ url: 'https://registry.fleetbase.io',+ },+ ],+ });++ fs.writeFileSync(+ path.join(root, 'console', 'pnpm-workspace.yaml'),+ `allowBuilds:+ core-js: false+`,+ 'utf8'+ );++ fs.writeFileSync(+ path.join(root, 'console', '.npmrc'),+ `//registry.fleetbase.io/:_authToken="token"+public-hoist-pattern[]=*ember-core*+public-hoist-pattern[]=*ember-ui*+`,+ 'utf8'+ );++ createPackage(root, 'fleetops', '@fleetbase/fleetops-engine', 'fleetbase/fleetops-api', {+ frontendVersion: '0.6.48',+ backendVersion: '0.6.48',+ });+ createPackage(root, 'ember-core', '@fleetbase/ember-core', null, { frontendVersion: '0.3.19', keywords: ['ember-addon'] });+ createPackage(root, 'ember-ui', '@fleetbase/ember-ui', null, { frontendVersion: '0.3.29', keywords: ['ember-addon'] });+ createPackage(root, 'fleetops-data', '@fleetbase/fleetops-data', null, { frontendVersion: '0.1.32', keywords: ['ember-addon'] });+ createPackage(root, 'core-api', null, 'fleetbase/core-api', { backendVersion: '1.6.47' });+ createPackage(root, 'dev-engine', '@fleetbase/dev-engine', null, { frontendVersion: '0.2.13', keywords: ['ember-engine'] });+ createPackage(root, 'indexer', 'fleetbase-extensions-indexer', null, { frontendVersion: '0.0.5', keywords: [] });+ createPackage(root, 'manifest-extension', '@fleetbase/manifest-extension-engine', 'fleetbase/manifest-extension-api', {+ frontendVersion: '1.0.0',+ backendVersion: '1.0.0',+ keywords: [],+ extensionJson: {+ name: 'Manifest Extension',+ version: '1.0.0',+ engine: 'package.json',+ api: 'composer.json',+ },+ });++ return root;+}++test('discoverModules only returns Fleetbase extensions and excludes ordinary packages', () => {+ const root = createFixture();+ const modules = discoverModules(root);+ const packages = discoverPackages(root);+ const moduleSlugs = modules.map((module) => module.slug);+ const packageSlugs = packages.map((module) => module.slug);++ assert.deepEqual(moduleSlugs, ['fleetops', 'manifest-extension']);+ assert.ok(packageSlugs.includes('dev-engine'));+ assert.ok(packageSlugs.includes('indexer'));+ assert.equal(moduleSlugs.includes('dev-engine'), false);+ assert.equal(moduleSlugs.includes('indexer'), false);+ assert.equal(moduleSlugs.includes('ember-ui'), false);+ assert.equal(moduleSlugs.includes('core-api'), false);+});++test('formatSimpleYaml quotes scoped override keys so pnpm can parse the workspace file', () => {+ const yaml = formatSimpleYaml({+ overrides: {+ '@fleetbase/fleetops-data': 'workspace:*',+ },+ });++ assert.match(yaml, /"@fleetbase\/fleetops-data": "workspace:\*"/);+});++test('enableModule links frontend/backend module and shared workspace packages', () => {+ const root = createFixture();++ enableModule(root, 'fleetops', {+ shared: ['ember-core', 'ember-ui', 'fleetops-data'],+ });++ const packageJson = readJson(path.join(root, 'console', 'package.json'));+ const composerJson = readJson(path.join(root, 'api', 'composer.json'));+ const workspace = parseSimpleYaml(fs.readFileSync(path.join(root, 'console', 'pnpm-workspace.yaml'), 'utf8'));+ const npmrc = fs.readFileSync(path.join(root, 'console', '.npmrc'), 'utf8');+ const state = readJson(path.join(root, STATE_FILE));++ assert.equal(packageJson.dependencies['@fleetbase/fleetops-engine'], 'link:../packages/fleetops');+ assert.equal(packageJson.dependencies['@fleetbase/ember-ui'], 'workspace:*');+ assert.equal(packageJson.pnpm, undefined);+ assert.equal(composerJson.require['fleetbase/fleetops-api'], '^0.6.48');+ assert.deepEqual(composerJson.repositories[0], {+ type: 'path',+ url: '../packages/fleetops',+ options: {+ symlink: true,+ },+ });+ assert.deepEqual(workspace.packages, ['../packages/ember-core', '../packages/ember-ui', '../packages/fleetops', '../packages/fleetops-data']);+ assert.equal(workspace.linkWorkspacePackages, 'deep');+ assert.equal(workspace.preferWorkspacePackages, true);+ assert.equal(workspace.overrides['@fleetbase/ember-core'], 'workspace:*');+ assert.deepEqual(workspace.publicHoistPattern, ['*ember-core*', '*ember-ui*']);+ assert.match(npmrc, /_authToken/);+ assert.doesNotMatch(npmrc, /public-hoist-pattern/);+ assert.equal(state.modules.fleetops.npm.originalRange, '^0.6.48');+ assert.equal(state.shared['@fleetbase/ember-ui'].originalRange, '^0.3.29');+});++test('runCli can enable and disable multiple extensions in one command', () => {+ const root = createFixture();++ runCli(['enable', 'fleetops', 'manifest-extension', '--shared', 'ember-ui', '--root', root]);++ let packageJson = readJson(path.join(root, 'console', 'package.json'));+ let composerJson = readJson(path.join(root, 'api', 'composer.json'));+ let workspace = parseSimpleYaml(fs.readFileSync(path.join(root, 'console', 'pnpm-workspace.yaml'), 'utf8'));+ let state = readJson(path.join(root, STATE_FILE));++ assert.equal(packageJson.dependencies['@fleetbase/fleetops-engine'], 'link:../packages/fleetops');+ assert.equal(packageJson.dependencies['@fleetbase/manifest-extension-engine'], 'link:../packages/manifest-extension');+ assert.equal(packageJson.dependencies['@fleetbase/ember-ui'], 'workspace:*');+ assert.ok(composerJson.repositories.some((repository) => repository.type === 'path' && repository.url === '../packages/fleetops'));+ assert.ok(composerJson.repositories.some((repository) => repository.type === 'path' && repository.url === '../packages/manifest-extension'));+ assert.deepEqual(workspace.packages, ['../packages/ember-ui', '../packages/fleetops', '../packages/manifest-extension']);+ assert.deepEqual(Object.keys(state.modules), ['fleetops', 'manifest-extension']);++ runCli(['disable', 'fleetops', 'manifest-extension', '--root', root]);++ packageJson = readJson(path.join(root, 'console', 'package.json'));+ composerJson = readJson(path.join(root, 'api', 'composer.json'));+ workspace = parseSimpleYaml(fs.readFileSync(path.join(root, 'console', 'pnpm-workspace.yaml'), 'utf8'));+ state = readJson(path.join(root, STATE_FILE));++ assert.equal(packageJson.dependencies['@fleetbase/fleetops-engine'], '^0.6.48');+ assert.equal(packageJson.dependencies['@fleetbase/manifest-extension-engine'], '^1.0.0');+ assert.equal(packageJson.dependencies['@fleetbase/ember-ui'], 'workspace:*');+ assert.equal(composerJson.repositories.some((repository) => repository.type === 'path' && repository.url === '../packages/fleetops'), false);+ assert.equal(composerJson.repositories.some((repository) => repository.type === 'path' && repository.url === '../packages/manifest-extension'), false);+ assert.deepEqual(workspace.packages, ['../packages/ember-ui']);+ assert.deepEqual(state.modules, {});+ assert.ok(state.shared['@fleetbase/ember-ui']);+});++test('getInstallModules infers linked extensions and builds combined commands', () => {+ const root = createFixture();++ runCli(['enable', 'fleetops', 'manifest-extension', '--shared', 'ember-ui', '--root', root]);++ const modules = getInstallModules(root);+ const commands = getInstallCommands(modules);++ assert.deepEqual(+ modules.map((module) => module.slug),+ ['fleetops', 'manifest-extension']+ );+ assert.deepEqual(commands, ['cd console && pnpm install', 'cd api && composer update fleetbase/fleetops-api fleetbase/manifest-extension-api --with-dependencies']);+});++test('enableSharedDependency links backend-only core-api through Composer', () => {+ const root = createFixture();++ enableSharedDependency(root, 'core-api');++ let packageJson = readJson(path.join(root, 'console', 'package.json'));+ let composerJson = readJson(path.join(root, 'api', 'composer.json'));+ let workspace = parseSimpleYaml(fs.readFileSync(path.join(root, 'console', 'pnpm-workspace.yaml'), 'utf8'));+ let state = readJson(path.join(root, STATE_FILE));++ assert.equal(packageJson.dependencies['@fleetbase/ember-core'], '^0.3.19');+ assert.equal(composerJson.require['fleetbase/core-api'], '^1.6.47');+ assert.ok(composerJson.repositories.some((repository) => repository.type === 'path' && repository.url === '../packages/core-api' && repository.options?.symlink === true));+ assert.equal(workspace.packages, undefined);+ assert.equal(state.shared['fleetbase/core-api'].type, 'backend');++ disableSharedDependency(root, 'fleetbase/core-api');++ packageJson = readJson(path.join(root, 'console', 'package.json'));+ composerJson = readJson(path.join(root, 'api', 'composer.json'));+ workspace = parseSimpleYaml(fs.readFileSync(path.join(root, 'console', 'pnpm-workspace.yaml'), 'utf8'));+ state = readJson(path.join(root, STATE_FILE));++ assert.equal(packageJson.dependencies['@fleetbase/ember-core'], '^0.3.19');+ assert.equal(composerJson.require['fleetbase/core-api'], '^1.6.47');+ assert.equal(composerJson.repositories.some((repository) => repository.type === 'path' && repository.url === '../packages/core-api'), false);+ assert.equal(workspace.packages, undefined);+ assert.deepEqual(state.shared, {});+});++test('getInstallModules accepts backend-only core-api and includes it in composer update', () => {+ const root = createFixture();++ runCli(['enable-shared', 'core-api', '--root', root]);++ const explicitModules = getInstallModules(root, ['core-api']);+ const inferredModules = getInstallModules(root);++ assert.deepEqual(+ explicitModules.map((module) => module.slug),+ ['core-api']+ );+ assert.deepEqual(getInstallCommands(explicitModules), ['cd console && pnpm install', 'cd api && composer update fleetbase/core-api --with-dependencies']);+ assert.deepEqual(+ inferredModules.map((module) => module.slug),+ ['core-api']+ );+});++test('resetLinks restores all extension and shared package links', () => {+ const root = createFixture();++ runCli(['enable', 'fleetops', 'manifest-extension', '--shared', 'ember-core', 'ember-ui', 'fleetops-data', '--root', root]);+ runCli(['enable-shared', 'core-api', '--root', root]);++ const targets = getResetTargets(root);+ assert.deepEqual(+ targets.modules.map((module) => module.slug),+ ['fleetops', 'manifest-extension']+ );+ assert.deepEqual(+ targets.shared.map((shared) => shared.packageName),+ ['@fleetbase/ember-core', '@fleetbase/ember-ui', '@fleetbase/fleetops-data', 'fleetbase/core-api']+ );++ const resetModules = resetLinks(root);+ const packageJson = readJson(path.join(root, 'console', 'package.json'));+ const composerJson = readJson(path.join(root, 'api', 'composer.json'));+ const workspace = parseSimpleYaml(fs.readFileSync(path.join(root, 'console', 'pnpm-workspace.yaml'), 'utf8'));++ assert.deepEqual(+ resetModules.map((module) => module.slug),+ ['fleetops', 'manifest-extension', 'ember-core', 'ember-ui', 'fleetops-data', 'core-api']+ );+ assert.equal(packageJson.dependencies['@fleetbase/fleetops-engine'], '^0.6.48');+ assert.equal(packageJson.dependencies['@fleetbase/manifest-extension-engine'], '^1.0.0');+ assert.equal(packageJson.dependencies['@fleetbase/ember-core'], '^0.3.19');+ assert.equal(packageJson.dependencies['@fleetbase/ember-ui'], '^0.3.29');+ assert.equal(packageJson.dependencies['@fleetbase/fleetops-data'], '^0.1.32');+ assert.equal(composerJson.repositories.some((repository) => repository.type === 'path'), false);+ assert.equal(workspace.packages, undefined);+ assert.deepEqual(workspace.overrides, {+ '@fleetbase/ember-core': '^0.3.19',+ '@fleetbase/ember-ui': '^0.3.29',+ '@fleetbase/fleetops-data': '^0.1.32',+ });+ assert.equal(fs.existsSync(path.join(root, STATE_FILE)), false);+});++test('reset dry-run previews changes without mutating the fixture root', () => {+ const root = createFixture();++ runCli(['enable', 'fleetops', '--shared', 'ember-ui', '--root', root]);++ const beforePackageJson = fs.readFileSync(path.join(root, 'console', 'package.json'), 'utf8');+ const beforeComposerJson = fs.readFileSync(path.join(root, 'api', 'composer.json'), 'utf8');+ const logs = [];+ const originalLog = console.log;++ console.log = (message = '') => logs.push(String(message));+ try {+ runCli(['reset', '--dry-run', '--root', root]);+ } finally {+ console.log = originalLog;+ }++ assert.equal(fs.readFileSync(path.join(root, 'console', 'package.json'), 'utf8'), beforePackageJson);+ assert.equal(fs.readFileSync(path.join(root, 'api', 'composer.json'), 'utf8'), beforeComposerJson);+ assert.match(logs.join('\n'), /Reset 2 local development links/);+ assert.match(logs.join('\n'), /Dry run: would update/);+});++test('install dry-run prints the command shorthand without running installs', () => {+ const root = createFixture();+ const logs = [];+ const originalLog = console.log;++ runCli(['enable', 'fleetops', '--root', root]);++ console.log = (message = '') => logs.push(String(message));+ try {+ runCli(['install', '--dry-run', '--root', root]);+ } finally {+ console.log = originalLog;+ }++ assert.match(logs.join('\n'), /Install commands:/);+ assert.match(logs.join('\n'), /cd console && pnpm install/);+ assert.match(logs.join('\n'), /composer update fleetbase\/fleetops-api --with-dependencies/);+});++test('disableModule and disableSharedPackage restore original ranges and remove dev workspace entries', () => {+ const root = createFixture();++ enableModule(root, 'fleetops', {+ shared: ['ember-ui'],+ });+ disableModule(root, 'fleetops');+ disableSharedPackage(root, 'ember-ui');++ const packageJson = readJson(path.join(root, 'console', 'package.json'));+ const composerJson = readJson(path.join(root, 'api', 'composer.json'));+ const workspace = parseSimpleYaml(fs.readFileSync(path.join(root, 'console', 'pnpm-workspace.yaml'), 'utf8'));+ const state = readJson(path.join(root, STATE_FILE));++ assert.equal(packageJson.dependencies['@fleetbase/fleetops-engine'], '^0.6.48');+ assert.equal(packageJson.dependencies['@fleetbase/ember-ui'], '^0.3.29');+ assert.equal(composerJson.repositories.some((repository) => repository.type === 'path' && repository.url === '../packages/fleetops'), false);+ assert.equal(workspace.packages, undefined);+ assert.equal(workspace.overrides['@fleetbase/ember-ui'], '^0.3.29');+ assert.deepEqual(state.modules, {});+ assert.deepEqual(state.shared, {});+});++test('enableSharedPackage can be used independently', () => {+ const root = createFixture();++ enableSharedPackage(root, '@fleetbase/ember-core');++ const packageJson = readJson(path.join(root, 'console', 'package.json'));+ const workspace = parseSimpleYaml(fs.readFileSync(path.join(root, 'console', 'pnpm-workspace.yaml'), 'utf8'));++ assert.equal(packageJson.dependencies['@fleetbase/ember-core'], 'workspace:*');+ assert.equal(workspace.overrides['@fleetbase/ember-core'], 'workspace:*');+ assert.deepEqual(workspace.packages, ['../packages/ember-core']);+});++test('dry-run previews changes without mutating the fixture root', () => {+ const root = createFixture();+ const beforePackageJson = fs.readFileSync(path.join(root, 'console', 'package.json'), 'utf8');+ const beforeComposerJson = fs.readFileSync(path.join(root, 'api', 'composer.json'), 'utf8');+ const logs = [];+ const originalLog = console.log;++ console.log = (message = '') => logs.push(String(message));+ try {+ runCli(['enable', 'fleetops', '--shared', 'ember-ui', '--dry-run', '--root', root]);+ } finally {+ console.log = originalLog;+ }++ assert.equal(fs.readFileSync(path.join(root, 'console', 'package.json'), 'utf8'), beforePackageJson);+ assert.equal(fs.readFileSync(path.join(root, 'api', 'composer.json'), 'utf8'), beforeComposerJson);+ assert.equal(fs.existsSync(path.join(root, STATE_FILE)), false);+ assert.match(logs.join('\n'), /Dry run: would update/);+});