5 Commits
Author SHA1 Message Date
Hanzo Dev 9724fbf9a7 fix(frontend): bypass Postiz proxy guard for Hanzo Social routes
The Next proxy (middleware) 307-redirected every non-/auth path without an
'auth' cookie to /auth, intercepting the (social) group's `/` and all /hz/*
routes so the dashboard never rendered and /hz/auth/* + /hz/bff/* were guarded.
Bypass '/' and '/hz/*' early (Postiz behavior for its own paths untouched).
frontend 1.0.1 -> 1.0.2.
2026-07-14 23:38:27 -07:00
Hanzo Dev 84dab706e3 feat(frontend): Hanzo Social dashboard on the unified cloud BE
A clean, self-contained Social app served at social.hanzo.ai root — replaces
the console fallback. Bypasses the retired Postiz/NestJS component tree; talks
to the unified Hanzo Cloud /v1/social + /v1/marketing shapes.

- src/hz: typed api client + SWR hooks (injectable data layer) + server glue
  (hanzo.id OIDC authorize/callback, httpOnly session cookie, BFF proxy to
  /v1/*, org from validated token owner claim). No token reaches the browser.
- src/hz/components: QueueBoard (status columns), Calendar, PostComposer
  (draft/schedule + media URLs -> posts.media), PostCard, ChannelBadge,
  CampaignCard/Campaigns, ProvidersPanel (honest connect-keys state),
  SummaryHeader, Dashboard, SignIn — pure (props/callbacks), Phase B ready.
- app/(social): own root layout (jakarta font, one stylesheet, no Postiz
  providers) + / gate (Dashboard vs hanzo.id SignIn) + /hz/{auth,bff} routes.
- Unsupported-by-BE surfaces (integrations OAuth, analytics, AI) are simply
  absent, not broken. No password login. frontend 1.0.0 -> 1.0.1.
2026-07-14 23:09:48 -07:00
Hanzo Dev ea8d8ed5f5 deps: bump @hanzoai/tasks 1.49.0 -> 1.49.1 (ZAP wire v2 accept)
The cloud embedded engine links luxfi/zap v1.2.0 (MVS) which emits ZAP wire
version 2; @hanzoai/tasks 1.49.0 only accepted version 1 -> 'unsupported version 2'
against cloud.hanzo.svc:9999. 1.49.1 accepts both wire versions (generic object
encoding is identical) and exports TokenProvider + loosens proxyActivities.
Verified live against cloud v1.786.102's gated engine: signals, continueAsNew,
startChild, search attrs all run to COMPLETED with an IAM bearer.
2026-07-04 22:15:49 -07:00
Hanzo DevandGitHub b2a6d092cf feat(orchestrator): migrate off Temporal to @hanzoai/tasks (embedded engine, gated ZAP) (#2)
Replace @temporalio/* + nestjs-temporal-core with @hanzoai/tasks. Durable
workflow execution now runs on the ONE Hanzo Tasks engine embedded in cloud,
reached over its identity-gated ZAP listener (cloud.hanzo.svc:9999) and
authenticated with a Hanzo IAM client_credentials bearer (owner-scoped). No
upstream Temporal anywhere.

- libraries/.../temporal/tasks.ts: @hanzoai/tasks-backed NestJS integration —
  @Activity/@ActivityMethod decorators, TemporalService facade
  (client.getRawClient()/getWorkflowHandle(), terminateWorkflow()), IAM
  client_credentials token source, getTemporalModule(). Connects a Client +
  one Worker per task queue (main + per social integration), RegisterNamespace
  on init.
- temporal.module.ts re-exports getTemporalModule; temporal.register.ts is a
  no-op (search attrs need no pre-registration on Hanzo Tasks);
  infinite.workflow.register.ts + health.controller.ts use @hanzoai/tasks;
  backend main.ts drops the Temporal worker Runtime.install.
- temporal/workflow.ts: workflow-side barrel re-exporting @hanzoai/tasks with a
  drop-in proxyActivities (unconstrained generic + cancellationType superset)
  so proxyActivities<ActivityClass>() type-checks as it did under @temporalio.
- All 11 workflows + 4 activity classes + 2 signals ported; uses proxyActivities,
  sleep, condition, defineSignal/setHandler (signal-to-running-wf), continueAsNew
  (digest/sendEmail), startChild (post repeat), typed search attributes,
  workflowIdConflictPolicy.
- @hanzoai/tasks vendored as a tarball (file: dep); TEMPORAL_ADDRESS scrubbed,
  new TASKS_ADDRESS default cloud.hanzo.svc:9999 / TASKS_NAMESPACE default.

Orchestrator + backend build green (nest build, full typecheck).
2026-07-04 22:12:42 -07:00
0348541975 ci: run on self-hosted ARC pool (hanzo-build-linux-amd64/deploy), not GitHub-hosted (#1)
Co-authored-by: zeekay <z@hanzo.ai>
2026-06-19 20:38:56 -07:00