Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +51 -2
- VERSION +1 -1
- api/app_routes.py +13 -1
- api/app_templates.py +10 -0
- api/application_registry.py +3 -1
- api/main.py +3 -2
- api/tool_groups/apps.py +7 -1
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
RELEASES.json
CHANGED
|
@@ -1,4 +1,53 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
-
"releases": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "943d162ad",
|
| 3 |
+
"releases": [
|
| 4 |
+
{
|
| 5 |
+
"version": "v84",
|
| 6 |
+
"sha": "7bb3a2e09",
|
| 7 |
+
"date": "2026-10-24",
|
| 8 |
+
"subject": "release(sdlc78): v84 QA records the staging build change and what v84 excludes"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"version": "v83",
|
| 12 |
+
"sha": "9b7471968",
|
| 13 |
+
"date": "2026-10-21",
|
| 14 |
+
"subject": "release v83"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"version": "v82",
|
| 18 |
+
"sha": "9c61b1ee9",
|
| 19 |
+
"date": "2026-10-17",
|
| 20 |
+
"subject": "release v82"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"version": "v81",
|
| 24 |
+
"sha": "e141ccc85",
|
| 25 |
+
"date": "2026-10-15",
|
| 26 |
+
"subject": "release v81"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"version": "v80",
|
| 30 |
+
"sha": "869b8fcc6",
|
| 31 |
+
"date": "2026-10-13",
|
| 32 |
+
"subject": "release v80"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"version": "v79",
|
| 36 |
+
"sha": "406417b8d",
|
| 37 |
+
"date": "2026-10-13",
|
| 38 |
+
"subject": "release v79"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"version": "v78",
|
| 42 |
+
"sha": "aad6561d6",
|
| 43 |
+
"date": "2026-10-09",
|
| 44 |
+
"subject": "release v78: SDLC 71 with the D-7536 and D-7537 repairs"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"version": "v77",
|
| 48 |
+
"sha": "e741e5ca6",
|
| 49 |
+
"date": "2026-10-05",
|
| 50 |
+
"subject": "release v77"
|
| 51 |
+
}
|
| 52 |
+
]
|
| 53 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
943d162ad
|
api/app_routes.py
CHANGED
|
@@ -29,6 +29,18 @@ def _included(app, router):
|
|
| 29 |
or getattr(route, "endpoint", None) in endpoints for route in _flat(app.routes))
|
| 30 |
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
def mount_app_routers(app, failures=None):
|
| 33 |
"""Include each C1 `router` once, with main.py `_mount_router` semantics; returns those mounted."""
|
| 34 |
record = failures if isinstance(failures, dict) else _failures_record()
|
|
@@ -41,7 +53,7 @@ def mount_app_routers(app, failures=None):
|
|
| 41 |
router = import_module(name).router
|
| 42 |
# An already included router (Competitor watch, mounted by main.py) is not added twice.
|
| 43 |
if not _included(app, router):
|
| 44 |
-
app.include_router(router)
|
| 45 |
except Exception as exc: # Boot must answer even when a router cannot load.
|
| 46 |
failure = {"error": type(exc).__name__,
|
| 47 |
"missing_module": exc.name if isinstance(exc, ModuleNotFoundError) else ""}
|
|
|
|
| 29 |
or getattr(route, "endpoint", None) in endpoints for route in _flat(app.routes))
|
| 30 |
|
| 31 |
|
| 32 |
+
def held_dependencies(kind):
|
| 33 |
+
"""Router dependencies that answer 404 on every route of a held kind (R11), else none."""
|
| 34 |
+
if not app_templates.held(kind):
|
| 35 |
+
return []
|
| 36 |
+
from fastapi import Depends
|
| 37 |
+
from deps import err
|
| 38 |
+
|
| 39 |
+
def refuse_held():
|
| 40 |
+
raise err(404, "app_held", "This App is not available yet.")
|
| 41 |
+
return [Depends(refuse_held)]
|
| 42 |
+
|
| 43 |
+
|
| 44 |
def mount_app_routers(app, failures=None):
|
| 45 |
"""Include each C1 `router` once, with main.py `_mount_router` semantics; returns those mounted."""
|
| 46 |
record = failures if isinstance(failures, dict) else _failures_record()
|
|
|
|
| 53 |
router = import_module(name).router
|
| 54 |
# An already included router (Competitor watch, mounted by main.py) is not added twice.
|
| 55 |
if not _included(app, router):
|
| 56 |
+
app.include_router(router, dependencies=held_dependencies(row["kind"]))
|
| 57 |
except Exception as exc: # Boot must answer even when a router cannot load.
|
| 58 |
failure = {"error": type(exc).__name__,
|
| 59 |
"missing_module": exc.name if isinstance(exc, ModuleNotFoundError) else ""}
|
api/app_templates.py
CHANGED
|
@@ -64,6 +64,16 @@ TEMPLATES = (
|
|
| 64 |
BY_KIND = MappingProxyType({row["kind"]: row for row in TEMPLATES})
|
| 65 |
KINDS = tuple(BY_KIND)
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
#: R33: the fixed role to field binding each kind reads from its first C1 source.
|
| 68 |
#: Catalog price is Royal 1 tier 1: the pooled `price_1` is not in the typed product_data schema.
|
| 69 |
FIELD_BINDINGS = MappingProxyType({
|
|
|
|
| 64 |
BY_KIND = MappingProxyType({row["kind"]: row for row in TEMPLATES})
|
| 65 |
KINDS = tuple(BY_KIND)
|
| 66 |
|
| 67 |
+
#: R11 (owner 2026-10-25): every Amazon App is held out of the product until SDLC 80 rebuilds it.
|
| 68 |
+
#: A held kind is never offered, listed or opened. Its stored App records and data stay untouched.
|
| 69 |
+
HELD_KINDS = frozenset(row["kind"] for row in TEMPLATES if row["connector"] in ("amazon", "amazon_ads"))
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def held(kind_or_app):
|
| 73 |
+
"""True when a template kind, or an App record's `templateKind`, is held out (R11)."""
|
| 74 |
+
kind = kind_or_app.get("templateKind") if isinstance(kind_or_app, dict) else kind_or_app
|
| 75 |
+
return isinstance(kind, str) and kind in HELD_KINDS
|
| 76 |
+
|
| 77 |
#: R33: the fixed role to field binding each kind reads from its first C1 source.
|
| 78 |
#: Catalog price is Royal 1 tier 1: the pooled `price_1` is not in the typed product_data schema.
|
| 79 |
FIELD_BINDINGS = MappingProxyType({
|
api/application_registry.py
CHANGED
|
@@ -192,7 +192,7 @@ _BUNDLED_GATES = {kind: _connector_gate(contract["connector"])
|
|
| 192 |
def template_offered(kind, session):
|
| 193 |
"""C1 offer predicate: the module imports, the router mounted and the kind's gate holds."""
|
| 194 |
gate = _TEMPLATE_GATES.get(kind) or _BUNDLED_GATES.get(kind)
|
| 195 |
-
if gate is None or not _app_templates.seams_ready(kind):
|
| 196 |
return False
|
| 197 |
try:
|
| 198 |
return bool(gate(session))
|
|
@@ -992,6 +992,8 @@ def list_apps(runtime, user, is_admin=False, *, database=None, kind=None, starre
|
|
| 992 |
for app in doc["applications"].values():
|
| 993 |
if isinstance(app, dict) and app.get("templateKind") in ("customer_card", FINANCE_TEMPLATE_KIND):
|
| 994 |
continue
|
|
|
|
|
|
|
| 995 |
if database:
|
| 996 |
# A View resolves its App only through this read, so a retired seed stays listed here.
|
| 997 |
if not may_read(app,user,is_admin): continue
|
|
|
|
| 192 |
def template_offered(kind, session):
|
| 193 |
"""C1 offer predicate: the module imports, the router mounted and the kind's gate holds."""
|
| 194 |
gate = _TEMPLATE_GATES.get(kind) or _BUNDLED_GATES.get(kind)
|
| 195 |
+
if gate is None or _app_templates.held(kind) or not _app_templates.seams_ready(kind):
|
| 196 |
return False
|
| 197 |
try:
|
| 198 |
return bool(gate(session))
|
|
|
|
| 992 |
for app in doc["applications"].values():
|
| 993 |
if isinstance(app, dict) and app.get("templateKind") in ("customer_card", FINANCE_TEMPLATE_KIND):
|
| 994 |
continue
|
| 995 |
+
if _app_templates.held(app):
|
| 996 |
+
continue
|
| 997 |
if database:
|
| 998 |
# A View resolves its App only through this read, so a retired seed stays listed here.
|
| 999 |
if not may_read(app,user,is_admin): continue
|
api/main.py
CHANGED
|
@@ -654,11 +654,12 @@ app.include_router(routes_tickets.router)
|
|
| 654 |
# rate-limited by POLITENESS rather than by a bill (~1 req/s, and bulk harvesting is forbidden).
|
| 655 |
app.include_router(routes_geo.router) # R14 / A11 — D's router, A's line (map providers)
|
| 656 |
app.include_router(routes_external.router)
|
| 657 |
-
|
|
|
|
|
|
|
| 658 |
_mount_router("routes_security") # W59-T43: lane F declares the router; keep before static mount.
|
| 659 |
_mount_router("routes_amazon_profit") # S78-T03: the Amazon SKU profit refresh and settings doors.
|
| 660 |
_mount_router("routes_odoo_attachments") # S78-T14 (lane G, C5): delivery photo doors; before static mount.
|
| 661 |
-
import app_routes
|
| 662 |
app_routes.mount_app_routers(app)
|
| 663 |
|
| 664 |
|
|
|
|
| 654 |
# rate-limited by POLITENESS rather than by a bill (~1 req/s, and bulk harvesting is forbidden).
|
| 655 |
app.include_router(routes_geo.router) # R14 / A11 — D's router, A's line (map providers)
|
| 656 |
app.include_router(routes_external.router)
|
| 657 |
+
import app_routes
|
| 658 |
+
app.include_router(routes_competitor_watch.router, # S78-T16 / S78-T17 competitor watch; held by R11
|
| 659 |
+
dependencies=app_routes.held_dependencies("competitor_watch"))
|
| 660 |
_mount_router("routes_security") # W59-T43: lane F declares the router; keep before static mount.
|
| 661 |
_mount_router("routes_amazon_profit") # S78-T03: the Amazon SKU profit refresh and settings doors.
|
| 662 |
_mount_router("routes_odoo_attachments") # S78-T14 (lane G, C5): delivery photo doors; before static mount.
|
|
|
|
| 663 |
app_routes.mount_app_routers(app)
|
| 664 |
|
| 665 |
|
api/tool_groups/apps.py
CHANGED
|
@@ -196,10 +196,16 @@ def catalog_build(ctx, args):
|
|
| 196 |
return build(ctx, args)
|
| 197 |
|
| 198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
def _read(ctx, app_id):
|
| 200 |
session = _admit(ctx)
|
| 201 |
app = applications.load(session.runtime)["applications"].get(app_id)
|
| 202 |
-
if (not app or app.get("retired") is True
|
| 203 |
or not applications.may_read(app, session.uname, session.admin)):
|
| 204 |
raise applications.ApplicationError("application does not exist")
|
| 205 |
databases = app.get("compatibleDatabases") or []
|
|
|
|
| 196 |
return build(ctx, args)
|
| 197 |
|
| 198 |
|
| 199 |
+
def _held(app):
|
| 200 |
+
"""R11: an App whose kind is held out of the product reads as absent."""
|
| 201 |
+
import app_templates
|
| 202 |
+
return app_templates.held(app)
|
| 203 |
+
|
| 204 |
+
|
| 205 |
def _read(ctx, app_id):
|
| 206 |
session = _admit(ctx)
|
| 207 |
app = applications.load(session.runtime)["applications"].get(app_id)
|
| 208 |
+
if (not app or app.get("retired") is True or _held(app)
|
| 209 |
or not applications.may_read(app, session.uname, session.admin)):
|
| 210 |
raise applications.ApplicationError("application does not exist")
|
| 211 |
databases = app.get("compatibleDatabases") or []
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
cd2650a69a797b99daea5bd8611acb164d760875346186b8f426fb2dd6bde242
|