create-freeholder 0.2.0-beta.4 → 0.2.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/template/.changeset/blog-playground-content.md +4 -0
- package/dist/template/.changeset/blog-wordpress-structure.md +6 -0
- package/dist/template/.changeset/managed-preview-assistant.md +4 -0
- package/dist/template/.changeset/native-linux-install.md +6 -0
- package/dist/template/.changeset/public-beta-5.md +4 -0
- package/dist/template/.changeset/public-beta-6.md +4 -0
- package/dist/template/.github/ISSUE_TEMPLATE/bug_report.yml +1 -1
- package/dist/template/.github/workflows/release-tarballs.yml +117 -0
- package/dist/template/AGENTS.md +15 -2
- package/dist/template/Dockerfile +3 -0
- package/dist/template/MASTER.md +114 -11
- package/dist/template/README.md +1 -1
- package/dist/template/app/(admin)/admin/assistant/page.tsx +9 -1
- package/dist/template/app/(admin)/admin/blog/PostSettings.tsx +26 -0
- package/dist/template/app/(admin)/admin/blog/[kind]/page.tsx +53 -0
- package/dist/template/app/(admin)/admin/blog/actions.ts +186 -6
- package/dist/template/app/(admin)/admin/blog/comments/page.tsx +25 -0
- package/dist/template/app/(admin)/admin/blog/page.tsx +21 -5
- package/dist/template/app/(admin)/admin/imports/[id]/page.tsx +2 -0
- package/dist/template/app/(admin)/admin/pages/[id]/page.tsx +3 -0
- package/dist/template/app/(admin)/assistant-actions.ts +13 -6
- package/dist/template/app/(public)/[[...slug]]/ReaderComments.tsx +25 -0
- package/dist/template/app/(public)/[[...slug]]/blog-parts.tsx +153 -0
- package/dist/template/app/(public)/[[...slug]]/comment-actions.ts +16 -0
- package/dist/template/app/(public)/[[...slug]]/page.tsx +182 -18
- package/dist/template/app/api/chat/assistant/call/route.ts +35 -0
- package/dist/template/db/migrations/0061_blog_structure.sql +89 -0
- package/dist/template/db/migrations/0062_blog_reader_comments.sql +24 -0
- package/dist/template/db/migrations/meta/_journal.json +14 -0
- package/dist/template/deploy/README.md +26 -9
- package/dist/template/deploy/blog-wordpress-2026-11-07.md +146 -0
- package/dist/template/deploy/docker-selfhost/.env.example +11 -1
- package/dist/template/deploy/docker-selfhost/README.md +79 -50
- package/dist/template/deploy/docker-selfhost/infra/backup.sh +81 -0
- package/dist/template/deploy/docker-selfhost/infra/compose.https.yml +37 -1
- package/dist/template/deploy/docker-selfhost/infra/compose.yml +37 -1
- package/dist/template/deploy/docker-selfhost/migrate.md +8 -5
- package/dist/template/deploy/docker-selfhost/recipe.yaml +9 -10
- package/dist/template/deploy/docker-selfhost/selfhost.sh +206 -0
- package/dist/template/deploy/docker-selfhost/verify.md +11 -4
- package/dist/template/deploy/f-criteria-matrix.md +89 -0
- package/dist/template/deploy/linux/.env.example +28 -0
- package/dist/template/deploy/linux/README.md +181 -0
- package/dist/template/deploy/linux/freeholder +655 -0
- package/dist/template/deploy/linux/install.sh +173 -0
- package/dist/template/deploy/linux/migrate.md +17 -0
- package/dist/template/deploy/linux/recipe.yaml +50 -0
- package/dist/template/deploy/linux/share/Caddyfile.template +19 -0
- package/dist/template/deploy/linux/share/systemd/freeholder-backup.service +13 -0
- package/dist/template/deploy/linux/share/systemd/freeholder-backup.timer +12 -0
- package/dist/template/deploy/linux/share/systemd/freeholder.service +41 -0
- package/dist/template/deploy/linux/verify.md +22 -0
- package/dist/template/deploy/managed-preview-assistant.md +99 -0
- package/dist/template/eslint.config.mjs +3 -1
- package/dist/template/gitignore.template +1 -0
- package/dist/template/locales/ar.json +85 -6
- package/dist/template/locales/en.json +83 -4
- package/dist/template/locales/es.json +83 -4
- package/dist/template/locales/fr.json +85 -6
- package/dist/template/next.config.ts +2 -0
- package/dist/template/package.json +3 -2
- package/dist/template/packages/cli/package.json +1 -1
- package/dist/template/packages/create-freeholder/package.json +1 -1
- package/dist/template/packages/freeholder-app/package.json +1 -1
- package/dist/template/packages/mobile-app/package.json +1 -1
- package/dist/template/packages/plugin-kit/package.json +1 -1
- package/dist/template/packages/sdk/package.json +1 -1
- package/dist/template/packages/sdk/src/generated.ts +177 -9
- package/dist/template/packages/sdk/src/version.ts +1 -1
- package/dist/template/packages/templates/package.json +1 -1
- package/dist/template/proxy.ts +18 -1
- package/dist/template/public/managed-assistant/0.1.10/duplex-codec/NOTICE.txt +117 -0
- package/dist/template/public/managed-assistant/0.1.10/duplex-codec/audio-output-processor.js +267 -0
- package/dist/template/public/managed-assistant/0.1.10/duplex-codec/decoderWorker.min.js +847 -0
- package/dist/template/public/managed-assistant/0.1.10/duplex-codec/decoderWorker.min.wasm +0 -0
- package/dist/template/public/managed-assistant/0.1.10/duplex-codec/encoderWorker.min.js +1 -0
- package/dist/template/public/managed-assistant/0.1.10/manifest.json +12 -0
- package/dist/template/public/managed-assistant/0.1.10/pm-ai-duplex-client.js +1376 -0
- package/dist/template/scripts/build-release.d.mts +4 -0
- package/dist/template/scripts/build-release.mjs +171 -0
- package/dist/template/scripts/launch-prepare.mjs +6 -3
- package/dist/template/scripts/license-headers.mjs +3 -0
- package/dist/template/scripts/recipe-matrix.sh +22 -7
- package/dist/template/scripts/verify-wordpress-migration.d.mts +8 -0
- package/dist/template/scripts/verify-wordpress-migration.mjs +105 -0
- package/dist/template/security/adversarial-audit-2026-10-08.md +1 -1
- package/dist/template/src/adapters/ai/types.ts +5 -0
- package/dist/template/src/adapters/paradise/assistant.ts +37 -0
- package/dist/template/src/adapters/paradise/http.ts +4 -3
- package/dist/template/src/adapters/storage/local-mode.ts +54 -0
- package/dist/template/src/adapters/storage/local.ts +53 -26
- package/dist/template/src/core/contract/json-schema.ts +8 -0
- package/dist/template/src/core/demo/playground-inserts.ts +29 -0
- package/dist/template/src/core/demo/playground-policy.ts +9 -0
- package/dist/template/src/core/doctor/index.ts +19 -10
- package/dist/template/src/core/env.ts +8 -1
- package/dist/template/src/core/http/csp.ts +10 -2
- package/dist/template/src/core/http/csrf-client.ts +10 -0
- package/dist/template/src/core/import/service.ts +217 -12
- package/dist/template/src/core/import/wordpress.ts +80 -15
- package/dist/template/src/core/notifications/service.ts +1 -0
- package/dist/template/src/core/retention/registry.ts +2 -0
- package/dist/template/src/core/search/registry.ts +2 -0
- package/dist/template/src/core/seo/feeds.ts +2 -0
- package/dist/template/src/core/seo/jsonld.ts +46 -2
- package/dist/template/src/core/seo/legacy-proxy.ts +53 -0
- package/dist/template/src/core/seo/meta.ts +10 -7
- package/dist/template/src/core/seo/service.ts +14 -1
- package/dist/template/src/core/update/preflight.ts +3 -2
- package/dist/template/src/core/update/release-declaration.json +1 -1
- package/dist/template/src/core/update/service.ts +7 -17
- package/dist/template/src/modules/assistant/contract.ts +1 -1
- package/dist/template/src/modules/assistant/limits.ts +3 -0
- package/dist/template/src/modules/assistant/preview.ts +124 -0
- package/dist/template/src/modules/assistant/provider.ts +7 -0
- package/dist/template/src/modules/assistant/service.ts +21 -5
- package/dist/template/src/modules/cms/blocks/PreviewAssistantCall.tsx +176 -0
- package/dist/template/src/modules/cms/blocks/SiteChatClient.tsx +10 -4
- package/dist/template/src/modules/cms/blocks/surfaces.tsx +10 -0
- package/dist/template/src/modules/cms/blog-comments-schema.ts +27 -0
- package/dist/template/src/modules/cms/blog-comments.ts +111 -0
- package/dist/template/src/modules/cms/blog-schema.ts +146 -0
- package/dist/template/src/modules/cms/blog-service.ts +999 -0
- package/dist/template/src/modules/cms/blog.tsx +245 -25
- package/dist/template/src/modules/cms/manifest.ts +7 -1
- package/dist/template/src/modules/cms/read.ts +18 -0
- package/dist/template/src/modules/cms/service.ts +22 -4
- package/dist/template/src/modules/cms/tables.ts +2 -0
- package/dist/template/src/modules/seed/launch.ts +31 -3
- package/dist/template/tests/browser/blog-structure.spec.ts +69 -0
- package/dist/template/tests/core/agent-launch.test.ts +7 -2
- package/dist/template/tests/core/analytics-consent.test.ts +1 -1
- package/dist/template/tests/core/blog-playground.test.ts +106 -0
- package/dist/template/tests/core/blog-structure-comments.test.ts +166 -0
- package/dist/template/tests/core/client-readiness-security.test.ts +3 -1
- package/dist/template/tests/core/csp.test.ts +1 -1
- package/dist/template/tests/core/deploy-recipe.test.ts +54 -4
- package/dist/template/tests/core/internal-services.test.ts +4 -0
- package/dist/template/tests/core/legacy-redirect-proxy.test.ts +59 -0
- package/dist/template/tests/core/linux-install.test.ts +169 -0
- package/dist/template/tests/core/local-storage-mode.test.ts +29 -0
- package/dist/template/tests/core/locale-routing.test.ts +1 -1
- package/dist/template/tests/core/playground-cache.test.ts +1 -1
- package/dist/template/tests/core/playground.test.ts +3 -3
- package/dist/template/tests/core/preview-assistant-call.test.ts +88 -0
- package/dist/template/tests/core/private-preview-webhooks.test.ts +1 -1
- package/dist/template/tests/core/private-preview.test.ts +1 -1
- package/dist/template/tests/core/proxy-locale.test.ts +1 -1
- package/dist/template/tests/core/sdk-schema.test.ts +20 -0
- package/dist/template/tests/core/seo.test.ts +1 -1
- package/dist/template/tests/core/site-chat-client.test.ts +50 -0
- package/dist/template/tests/core/storage.test.ts +38 -2
- package/dist/template/tests/core/wordpress-import-flow.test.ts +81 -18
- package/dist/template/tests/core/wordpress-import.test.ts +25 -12
- package/dist/template/tests/core/wordpress-migration-verification.test.ts +37 -0
- package/dist/template/tests/modules/preview-assistant.test.ts +164 -0
- package/dist/template-manifest.json +490 -175
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
---
|
|
2
|
+
"freeholder": patch
|
|
3
|
+
---
|
|
4
|
+
The public playground now lets visitors save blog authors, categories, tags and post settings, create posts and moderate demo comments through its existing content permissions. Small page, author and taxonomy limits keep the shared demo bounded; an inline tag batch that would fill it rolls back as a whole. Concurrent writers cannot take the same remaining taxonomy capacity.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
---
|
|
2
|
+
"freeholder": minor
|
|
3
|
+
---
|
|
4
|
+
Organize blog posts with categories, tags and guest or account-linked authors, and manage moderated reader comments from the owner dashboard. WordPress imports now create those records, preserve original post addresses, full search titles, descriptions, post dates and supported search/social metadata, and carry approved and held reader comments into the moderation queue. Reader email stays private and participates in contact merge, export and erasure.
|
|
5
|
+
|
|
6
|
+
Old query-ID and attachment links receive permanent redirects when an import is published; date archives and legacy pagination remain usable. Redirects resolve directly to the final destination before a trailing slash is removed. The import report records source features that still need review before DNS cutover, including the reserved member-feed path and metadata absent from a WordPress export.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
---
|
|
2
|
+
"freeholder": minor
|
|
3
|
+
---
|
|
4
|
+
PM-hosted previews can opt into a managed AI assistant with launch-spec version 3. Text stays on the existing chat transcript and respects local and managed budgets; approved voice and video use the shared call transport with visitor-bound queueing, leases and End. Owners can switch it off, select approved talent and set a daily USD cap. Existing version 1 and 2 launch specs keep their behavior.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
---
|
|
2
|
+
"freeholder": minor
|
|
3
|
+
---
|
|
4
|
+
Install Freeholder by hand on your own server, without Docker or an AI assistant. Each release now ships a Linux tarball for x86_64 and arm64 that carries its own Node.js runtime, with its SHA-256, and an `install.sh`. On a fresh Ubuntu or Debian server, `sudo sh install.sh` installs PostgreSQL and Caddy, sets up HTTPS (on a temporary `<ip>.sslip.io` address until your domain is ready), generates the secrets, starts the site and prints your claim link. Uploaded media is kept on the server by default and included in a nightly backup of the database and media; S3-compatible storage remains an option. `sudo freeholder status`, `backup`, `restore`, `update` (with automatic rollback) and `domain` run it from then on.
|
|
5
|
+
|
|
6
|
+
The Docker Compose recipe no longer needs Node, pnpm or a storage bucket: `deploy/docker-selfhost/selfhost.sh prepare` writes the settings with openssl, media can stay on a Docker volume, a backup service runs nightly inside Compose, `selfhost.sh check` is a Docker-only health check, and the image defaults to the release you checked out instead of `edge`. A production instance may now keep media on local disk when `LOCAL_STORAGE_ROOT` names a persistent directory.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
---
|
|
2
|
+
"freeholder": patch
|
|
3
|
+
---
|
|
4
|
+
Publish 0.2.0-beta.5, the first beta you can install by hand on your own server without Docker or an AI assistant. The release carries a Linux tarball for x86_64 and arm64 with its own Node.js runtime, its SHA-256, and `install.sh`: on a fresh Ubuntu or Debian server, `sudo sh install.sh` sets up PostgreSQL, HTTPS and nightly backups and prints your claim link. The Docker Compose recipe now defaults to this release's image instead of `edge`. It also carries everything merged since 0.2.0-beta.4. It is still active development, not a release candidate; live provider acceptance and the independent security review remain open.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
---
|
|
2
|
+
"freeholder": patch
|
|
3
|
+
---
|
|
4
|
+
Publish 0.2.0-beta.6 with blog authors, categories, tags, moderated reader comments and WordPress migration verification. Imported titles, dates, supported search/social metadata and old addresses remain reviewable before cutover, with rollback and contact privacy controls. This beta also carries the separately reviewed Paradise Modern managed preview assistant consumer, off by default; text fallback and scoped server-only call transport do not establish talent clearance or real-call acceptance. The Linux installers, Docker examples, platform, SDK and workspace packages all name this beta. Active development, not a release candidate; source-specific migration acceptance and live-provider qualification remain open.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Copyright (C) 2026 Tony Aly
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# C3.44: the no-Docker Linux release. Builds freeholder-VERSION-linux-{x64,arm64}
|
|
4
|
+
# tarballs (each with its own Node runtime) on native runners, because sharp's
|
|
5
|
+
# binary in the standalone output is the build machine's. Every build is
|
|
6
|
+
# installed with deploy/linux/install.sh on the runner itself, booted against a
|
|
7
|
+
# real PostgreSQL, backed up and restored, before anything is published. A
|
|
8
|
+
# version tag attaches the tarballs, their .sha256 files and install.sh to the
|
|
9
|
+
# GitHub release that publish-image.yml creates.
|
|
10
|
+
name: Release tarballs
|
|
11
|
+
|
|
12
|
+
on:
|
|
13
|
+
push:
|
|
14
|
+
tags: ["v*"]
|
|
15
|
+
pull_request:
|
|
16
|
+
paths:
|
|
17
|
+
- "scripts/build-release.mjs"
|
|
18
|
+
- "deploy/linux/**"
|
|
19
|
+
- "deploy/docker-selfhost/selfhost.sh"
|
|
20
|
+
- "deploy/docker-selfhost/infra/backup.sh"
|
|
21
|
+
- ".github/workflows/release-tarballs.yml"
|
|
22
|
+
|
|
23
|
+
concurrency:
|
|
24
|
+
group: release-tarballs-${{ github.ref }}
|
|
25
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
26
|
+
|
|
27
|
+
permissions:
|
|
28
|
+
contents: read
|
|
29
|
+
|
|
30
|
+
jobs:
|
|
31
|
+
build:
|
|
32
|
+
name: Build and install linux-${{ matrix.arch }}
|
|
33
|
+
strategy:
|
|
34
|
+
fail-fast: false
|
|
35
|
+
matrix:
|
|
36
|
+
include:
|
|
37
|
+
- arch: x64
|
|
38
|
+
runner: ubuntu-24.04
|
|
39
|
+
- arch: arm64
|
|
40
|
+
runner: ubuntu-24.04-arm
|
|
41
|
+
runs-on: ${{ matrix.runner }}
|
|
42
|
+
timeout-minutes: 40
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
45
|
+
with:
|
|
46
|
+
persist-credentials: false
|
|
47
|
+
- name: Shellcheck the self-host scripts
|
|
48
|
+
run: shellcheck -s sh -S warning deploy/linux/install.sh deploy/linux/freeholder deploy/docker-selfhost/selfhost.sh deploy/docker-selfhost/infra/backup.sh
|
|
49
|
+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
50
|
+
with:
|
|
51
|
+
node-version-file: .node-version
|
|
52
|
+
- name: Install dependencies
|
|
53
|
+
run: |
|
|
54
|
+
corepack enable
|
|
55
|
+
pnpm install --frozen-lockfile
|
|
56
|
+
- name: Build
|
|
57
|
+
run: pnpm build
|
|
58
|
+
- name: Package
|
|
59
|
+
run: pnpm release:build
|
|
60
|
+
- name: Install the tarball with the documented installer
|
|
61
|
+
run: |
|
|
62
|
+
tarball=$(ls dist/release/freeholder-*-linux-${{ matrix.arch }}.tar.gz)
|
|
63
|
+
# No domain: the runner cannot receive a certificate, so this proves
|
|
64
|
+
# everything up to Caddy's ACME request, which the installer reports
|
|
65
|
+
# as a warning rather than a failure.
|
|
66
|
+
sudo sh dist/release/install.sh --tarball "$tarball" --yes
|
|
67
|
+
- name: Health, backup and restore
|
|
68
|
+
run: |
|
|
69
|
+
curl -fsS http://127.0.0.1:3000/api/health | tee /dev/stderr | grep -q '"ok":true'
|
|
70
|
+
sudo freeholder status || true
|
|
71
|
+
sudo freeholder claim-link > /dev/null
|
|
72
|
+
sudo freeholder backup
|
|
73
|
+
sudo freeholder restore latest
|
|
74
|
+
curl -fsS http://127.0.0.1:3000/api/health | grep -q '"ok":true'
|
|
75
|
+
- name: Service log on failure
|
|
76
|
+
if: failure()
|
|
77
|
+
run: sudo journalctl -u freeholder -n 200 --no-pager | sed -E 's/(SECRET|PASSWORD|KEY)=[^ ]+/\1=[redacted]/g'
|
|
78
|
+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
79
|
+
with:
|
|
80
|
+
name: linux-${{ matrix.arch }}
|
|
81
|
+
path: |
|
|
82
|
+
dist/release/*.tar.gz
|
|
83
|
+
dist/release/*.sha256
|
|
84
|
+
dist/release/install.sh
|
|
85
|
+
if-no-files-found: error
|
|
86
|
+
retention-days: 14
|
|
87
|
+
|
|
88
|
+
attach:
|
|
89
|
+
name: Attach to the GitHub release
|
|
90
|
+
if: github.event_name == 'push'
|
|
91
|
+
needs: build
|
|
92
|
+
runs-on: ubuntu-latest
|
|
93
|
+
timeout-minutes: 45
|
|
94
|
+
permissions:
|
|
95
|
+
contents: write
|
|
96
|
+
id-token: write
|
|
97
|
+
attestations: write
|
|
98
|
+
steps:
|
|
99
|
+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
100
|
+
with:
|
|
101
|
+
path: assets
|
|
102
|
+
merge-multiple: true
|
|
103
|
+
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
|
|
104
|
+
with:
|
|
105
|
+
subject-path: assets/*.tar.gz
|
|
106
|
+
- name: Wait for the release, then upload
|
|
107
|
+
env:
|
|
108
|
+
GH_TOKEN: ${{ github.token }}
|
|
109
|
+
GH_REPO: ${{ github.repository }}
|
|
110
|
+
run: |
|
|
111
|
+
# publish-image.yml creates the release after its own checks.
|
|
112
|
+
for attempt in $(seq 1 80); do
|
|
113
|
+
if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then break; fi
|
|
114
|
+
sleep 30
|
|
115
|
+
done
|
|
116
|
+
gh release view "$GITHUB_REF_NAME" >/dev/null
|
|
117
|
+
gh release upload "$GITHUB_REF_NAME" assets/*.tar.gz assets/*.sha256 assets/install.sh --clobber
|
package/dist/template/AGENTS.md
CHANGED
|
@@ -14,6 +14,17 @@ step that reveals the owner claim. Use the provider's own tools to provision
|
|
|
14
14
|
Postgres and private object storage; do not substitute in-memory or workspace
|
|
15
15
|
storage. Pick the path for where the owner wants to host:
|
|
16
16
|
|
|
17
|
+
- **The owner's own Linux server, no Docker** (any provider; Ubuntu 22.04+ or
|
|
18
|
+
Debian 12+). Give the owner the block under "Install on your own server" in
|
|
19
|
+
`GETTING_STARTED.md`: they download `install.sh` from the release and run
|
|
20
|
+
`sudo sh install.sh --domain THEIR-DOMAIN` (or no `--domain` for a temporary
|
|
21
|
+
`<ip>.sslip.io` address) in their own SSH session, because it prints the
|
|
22
|
+
owner claim link. It needs no Docker, Node or checkout. Afterwards
|
|
23
|
+
`sudo freeholder status` is the health check. Never read or print
|
|
24
|
+
`/etc/freeholder/freeholder.env`. See `deploy/linux/README.md`.
|
|
25
|
+
- **The owner's own server with Docker.** `deploy/docker-selfhost/README.md`:
|
|
26
|
+
`deploy/docker-selfhost/selfhost.sh prepare` needs only Docker and
|
|
27
|
+
openssl, then the owner runs `selfhost.sh claim-link` themselves.
|
|
17
28
|
- **DigitalOcean, from a terminal agent** (Claude Code, Cursor, Codex). The
|
|
18
29
|
owner signs in with `doctl auth init` (or sets `DIGITALOCEAN_TOKEN`) in their
|
|
19
30
|
own shell and has an SSH key on the account. Run
|
|
@@ -44,8 +55,10 @@ tooling.
|
|
|
44
55
|
|
|
45
56
|
## The owner claims the site, then connects you
|
|
46
57
|
|
|
47
|
-
The owner personally opens the claim link (`freeholder launch`
|
|
48
|
-
their terminal
|
|
58
|
+
The owner personally opens the claim link (`freeholder launch` and the Linux
|
|
59
|
+
`install.sh` print it in their terminal, `sudo freeholder claim-link` and
|
|
60
|
+
`selfhost.sh claim-link` print it again; `launch:prepare` writes
|
|
61
|
+
`.freeholder-launch/claim-link.txt`),
|
|
49
62
|
creates their account and passkey, and saves the recovery codes. Agents must
|
|
50
63
|
not open or retain the claim link, and must not retain the owner's password,
|
|
51
64
|
passkey or recovery codes.
|
package/dist/template/Dockerfile
CHANGED
|
@@ -43,6 +43,9 @@ COPY --from=build --chown=freeholder:freeholder /app/db ./db
|
|
|
43
43
|
# The way back in when nobody can sign in. Needs only node:crypto, which is
|
|
44
44
|
# why it can live in an image whose node_modules holds four packages.
|
|
45
45
|
COPY --from=build --chown=freeholder:freeholder /app/scripts/owner-password.mjs ./scripts/owner-password.mjs
|
|
46
|
+
# C3.44: the docker-selfhost media volume mounts here. Docker copies this
|
|
47
|
+
# directory's ownership into a new named volume, so the app can write to it.
|
|
48
|
+
RUN mkdir -p /var/lib/freeholder/media && chown -R freeholder:freeholder /var/lib/freeholder
|
|
46
49
|
USER freeholder
|
|
47
50
|
EXPOSE 3000
|
|
48
51
|
CMD ["node", "server.js"]
|
package/dist/template/MASTER.md
CHANGED
|
@@ -1519,7 +1519,7 @@ freeholder/ # Apache-2.0
|
|
|
1519
1519
|
│ ├── adapters/ # vendor isolation layer (see §12)
|
|
1520
1520
|
│ │ ├── payments/ (stripe/, paypal/, manual/)
|
|
1521
1521
|
│ │ ├── mail/ (gmail/, outlook/, resend/, smtp/)
|
|
1522
|
-
│ │ ├── storage/ (s3/, replit/, local/) # local = dev
|
|
1522
|
+
│ │ ├── storage/ (s3/, replit/, local/) # local = dev, or a persistent single-server directory (§18, C3.44)
|
|
1523
1523
|
│ │ ├── calendar/ (none/ — Google/Microsoft live in core/connections)
|
|
1524
1524
|
│ │ ├── sms/ (twilio/, none/)
|
|
1525
1525
|
│ │ ├── ai/ (anthropic/, openai/, none/) # BYO key — grounding, drafting
|
|
@@ -1965,7 +1965,7 @@ tested_on: "2026-07-01"
|
|
|
1965
1965
|
|
|
1966
1966
|
**Recipe rules:**
|
|
1967
1967
|
- A recipe may pin *required* adapter choices only when the platform forces them (e.g., no-persistent-disk targets must use S3 storage). Everything else stays owner-choice.
|
|
1968
|
-
- **Storage mandate (all tiers):** production media lives
|
|
1968
|
+
- **Storage mandate (all tiers):** production media lives where a rebuild cannot take it. On platforms without durable disk this is managed object storage, pinned by the recipe: **Replit → Replit Object Storage; DigitalOcean (both flavors) → Spaces;** App Platform, Render and Railway → S3-compatible. A **single-server self-host** (the `linux` recipe and `docker-selfhost`) may keep media on its own disk instead (C3.44, owner decision 2026-11-06, "freeholder is supposed to be a wordpress replacement"): an explicit absolute `LOCAL_STORAGE_ROOT` outside the replaceable release (`/var/lib/freeholder/media`, or the Compose `media` volume), kept across updates, served through the app's access-checked `/media` route and included in the recipe's nightly backup. The `local/` adapter refuses to start with `NODE_ENV=production` unless `LOCAL_STORAGE_ROOT` names such an existing, writable directory, or the legacy `FREEHOLDER_UNSAFE_LOCAL_STORAGE=1` override is set for an implicit one — a flag named to be embarrassing in a config review. Rationale: media is the least-recoverable asset a business has; a wiped container or a replaced release must never be able to take the photo archive with it. The single-server trade-off is stated in each recipe: losing the server loses the media unless its backups were copied off it, and a second app server cannot share the disk, so those recipes document moving media to S3 (a copy with the same keys). Object storage still makes cross-platform migration a bucket sync instead of a rescue operation.
|
|
1969
1969
|
- **Migration mandate (Tier 1–2):** a recipe is not approved without a specced migration path. Every Tier 1–2 recipe ships `migrate.md` covering, at minimum, migration **to and from each Tier-1 target** (export archive → provision → import → storage sync → DNS repoint), with expected downtime and a verification checklist. Tier-1 pairs are round-trip tested in CI (see §23); Tier-2 paths are verified by the recipe maintainer per release. No approved platform is ever a dead end — that's the ownership promise expressed as a requirement.
|
|
1970
1970
|
- **Update mandate (Tier 1–2):** a recipe declares an `update` strategy and a rollback for its target, and CI exercises it in the upgrade gate (§39.9). A platform an instance cannot be kept patched on is not an approved platform — the same argument as the migration mandate, applied to time rather than to place.
|
|
1971
1971
|
- Every recipe must run the same app code. No target-specific forks of application logic — if a target needs a code change, that change goes behind a capability flag in core (e.g., `jobs: in-process | worker`), available to all targets.
|
|
@@ -2095,8 +2095,9 @@ diff, then stage and commit a reversible import. Nothing is published and DNS
|
|
|
2095
2095
|
never changes merely because the crawler finished.
|
|
2096
2096
|
|
|
2097
2097
|
- **WordPress is the first importer, and the most complete:** the WXR export
|
|
2098
|
-
path brings pages
|
|
2099
|
-
|
|
2098
|
+
path brings pages and posts at their original paths, including the home
|
|
2099
|
+
page and dated post permalinks; explicit blog metadata makes posts appear
|
|
2100
|
+
in the listing without moving them. It also brings attachments into
|
|
2100
2101
|
the media library through the ordinary upload pipeline (pinned SSRF-safe
|
|
2101
2102
|
download, content-sniffed type, size limit, AVIF/WebP renditions, alt text
|
|
2102
2103
|
and source-URL provenance kept, body captions kept as text), body images
|
|
@@ -2105,11 +2106,15 @@ never changes merely because the crawler finished.
|
|
|
2105
2106
|
publish). Original URLs either survive or receive explicit `Redirect` rows.
|
|
2106
2107
|
The REST path covers pages and posts with dates, Yoast fields and embedded
|
|
2107
2108
|
terms; it carries no attachment list, so only same-site body images are
|
|
2108
|
-
fetched.
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2109
|
+
fetched. Categories, tags and authors become real blog records; ordinary
|
|
2110
|
+
WXR reader comments preserve moderation state, dates and available parentage.
|
|
2111
|
+
Replacing live content stages changed blog membership and comments until
|
|
2112
|
+
publication; rollback restores prior metadata and retained comment history.
|
|
2113
|
+
The report keeps remaining uncertainty explicit: nested menus, reserved
|
|
2114
|
+
member-feed collisions, orphan attachments and metadata absent from WXR
|
|
2115
|
+
require source-crawl review (C2.27–C2.29, C3.22 and C3.46 remain open until
|
|
2116
|
+
their acceptance evidence is complete). An export file of up to 100 MB is
|
|
2117
|
+
reserved, sent in 4 MB chunks to
|
|
2113
2118
|
an import-only route that stores them in private object storage, and read
|
|
2114
2119
|
back as a stream; the 1 MB JSON body limit and the request proxy's buffer
|
|
2115
2120
|
stay as they are for every other route.
|
|
@@ -2883,7 +2888,7 @@ outside them is replaceable:
|
|
|
2883
2888
|
| **The database** | Pages, block trees, sections, products, settings, theme tokens, media records, every business record | §32 — structure is data. The site's design and content are rows, not code, so swapping the image cannot touch them. |
|
|
2884
2889
|
| **Plugins** | Owner and third-party code | Installed artifacts with declared compatibility ranges (§24), loaded at boot, never merged into core |
|
|
2885
2890
|
| **Configuration** | `freeholder.config.ts`, environment | §17 — the instance's choices, checked in or injected, never baked into the image |
|
|
2886
|
-
| **Uploads** | Media in object storage | §18's storage mandate — never
|
|
2891
|
+
| **Uploads** | Media in object storage, or a single-server self-host's persistent media directory (C3.44) | §18's storage mandate — never inside the release or the container layer, so either is disposable by construction |
|
|
2887
2892
|
|
|
2888
2893
|
**Core is never patched in place.** That is the contract, stated as a rule. If
|
|
2889
2894
|
an owner needs behaviour core does not have, the answer is a plugin, a
|
|
@@ -4244,6 +4249,12 @@ project without silent telemetry, and ready to carry money.
|
|
|
4244
4249
|
|
|
4245
4250
|
- [x] **C1.38** Provide a public, disposable shared playground on a separate database and network: restricted visitor sessions, prominent reset/privacy notice, blocked privileged operations and external delivery, hourly reset, bounded resources, and a live demo entry link. Prove content edits, denied sensitive actions, reset recovery, and separation from the production instance.
|
|
4246
4251
|
(Checked 2026-09-27. The isolated playground base (own compose project, database container and internal-only networks; synthetic visitor entry; mutation allow-list policy) is hardened to the full contract. **Restricted visitor sessions:** `src/core/demo/playground.ts` issues sessions only for the synthetic, passwordless `visitor@playground.invalid` principal in the grant-less `playground` role with a one-hour expiry; `tests/core/playground.test.ts` proves the resolved session's grants stay inside `PLAYGROUND_MANAGE`/`PLAYGROUND_VIEW` with manage only on content modules, that no credential flow (`auth.login`) can start from it, and that role creation, staff invitations, host updates, mail test sends, uploads, SMS, payment and settings mutations are refused *server-side* with `permission` — the refusal lives in `authorizeInput` (`src/core/service.ts`), so the admin UI, REST API and MCP hit the same wall, and the test calls the services directly as the playground principal. **Reset/privacy notice:** the root-layout banner (`app/layout.tsx`, key `playground.banner`) rides every playground surface and the `/playground` entry page (`app/playground/page.tsx`, key `playground.limits`) states the hourly reset and the no-personal-information rule, in all four locale catalogs; the demo also serves `Disallow: /` robots. **Blocked external delivery:** `playgroundBlocksExternalDelivery` (`src/core/demo/playground-policy.ts`) fails closed at the three live choke points — `deliverQueuedMail` (`src/core/mail/service.ts`), `messaging.sendSms` (`src/core/messaging/sms.ts`) and the webhook sweep (`src/core/webhooks/deliver.ts`) — so background jobs running as `system` (reminders, compliance replies, queued webhooks) cannot send mail/SMS/webhooks even though the mutation allow-list never covered them; the same test proves each refusal carries the playground reason while a playground-off control takes the ordinary path, and the container gate proves blocked egress on the built image. **Hourly reset:** `deploy/docker-selfhost/playground/reset.sh` recreates the disposable project and is driven hourly by `freeholder-playground-reset.timer`; `tests/core/playground.test.ts` ("playground separation and reset recovery") simulates that cycle (fresh database + migrate + the same boot phases `instrumentation.node.ts` runs) and proves reset recovery: the old visitor session no longer validates, visitor pages are gone, the sample site is reinstalled to the same page count, and a new visitor can edit again. **Bounded resources:** uploads are refused outright (allow-list), all visitor mutations share a 300-per-minute ceiling (`enforceRateLimit`, `src/core/service.ts`), and per-surface row caps (`PLAYGROUND_ROW_CAPS` + `enforcePlaygroundRowCap`) bound pages, sections, forms, contacts, products, notes and tasks; the exact bound (299 further mutations after entry, then refusal; contacts capped at the declared limit while pages still accept edits) is asserted in `tests/core/playground.test.ts`. **Separation:** the playground is its own compose project with its own database container, tmpfs volumes and internal-only networks (`deploy/docker-selfhost/playground/compose.yml`), and the same file proves it on a live cluster: a production-shaped database and a playground database on distinct `DATABASE_URL`s, the playground flag failing closed ("disposable database") against real accounts, the synthetic pair the only users the playground database ever holds, and visitor sessions/content never appearing in the production database. **Live demo entry link:** `FREEHOLDER_PLAYGROUND_URL` renders the "Try the live demo" banner link on a main site (`app/layout.tsx`). **Browser proof:** `tests/browser/playground.spec.ts` (config `playwright.playground.config.ts`, `pnpm test:playground`) drives Chromium through entry, the notice, a real editor edit + publish, three privileged API denials as the visitor (staff invitation, mail test send, upload staging — each 403 with the playground message), the reset (session dead → `/playground` redirect, visitor page 404, reseeded sample back, re-entry and editing restored); CI's `scripts/playground-gate.sh` proves boot, sign-in, editor render and blocked egress on the built container. **F04** entry page + root banner: `app/playground/page.tsx`, `app/layout.tsx`. **F05** one refusal across every projection via the service choke point `src/core/service.ts`; container entry exercised over HTTP by `scripts/playground-gate.sh`. **F07** threat model and bounds: `src/core/demo/playground-policy.ts`, `tests/core/playground.test.ts`. **F09** hourly reset job `deploy/docker-selfhost/playground/reset.sh` + `freeholder-playground-reset.timer`, recovery proof in the same file. **F12** the browser journey composes entry → edit → publish → denial → reset → re-entry: `tests/browser/playground.spec.ts`.)
|
|
4252
|
+
Source-review follow-up 2026-11-07, owner CMS/kernel: the existing page cap
|
|
4253
|
+
runs before `createPage` enters its transaction. The new author/term guard
|
|
4254
|
+
and taxonomy concurrency regression do not qualify concurrent page growth.
|
|
4255
|
+
A scoped follow-up must reproduce that page race, serialize all page
|
|
4256
|
+
insertion paths against shared capacity, and obtain deployed acceptance.
|
|
4257
|
+
No concurrent page-overflow incident is claimed from this source review.
|
|
4247
4258
|
Audit follow-up 2026-10-22 (hands-on audit of demo.freeholder.ai): the
|
|
4248
4259
|
playground was empty where evaluators look and its menu read "Locations".
|
|
4249
4260
|
**Menu:** `cms.ensureDefaults` moved a header menu into a nav section that
|
|
@@ -4889,6 +4900,53 @@ human, collaboratively, without code, lock-in markup or accidental publication.
|
|
|
4889
4900
|
- [x] **C2.26** Deliver a public blog index with published post discovery, pagination, locale-aware links and metadata, an editable index block and an owner publish workflow. Drafts and gated bodies remain private.
|
|
4890
4901
|
*(Closed 2026-10-14 against `C2.26` on `main` (`f9b155be`, released as 0.2.0-beta.3 and live on freeholder.ai). Evidence: `tests/modules/customer-surfaces.test.ts` (published-only listing, drafts and working copies hidden, page 2 pagination, reviewed fr translation) and `tests/browser/customer-surfaces.spec.ts` (owner writes and publishes at /admin/blog; post appears on /blog only after publish; Axe light/dark); /blog serves 200 with a canonical link; scope and limits in `deploy/customer-surfaces-2026-10-07.md`; F01–F12 rows in `deploy/f-criteria-matrix.md`. **F04** `app/(admin)/admin/blog/page.tsx` and `/blog`. **F05** `cms.listBlogPosts` in `src/modules/cms/blog.tsx`, projected to HTTP/MCP and `packages/sdk/src/generated.ts`. **F07** customer ownership and privacy in `tests/modules/customer-surfaces.test.ts`. **F09** provider and deployment limits recorded in `deploy/customer-surfaces-2026-10-07.md`. **F12** `tests/browser/customer-surfaces.spec.ts` composed journey. Live payment-provider settlement stays with C11.05.)*
|
|
4891
4902
|
|
|
4903
|
+
- [ ] **C2.27** Blog categories and tags: hierarchical categories, flat tags,
|
|
4904
|
+
owner CRUD, post assignment, public archive pages, sitemap and slug-move
|
|
4905
|
+
redirects through the same scoped services on UI, HTTP and MCP.
|
|
4906
|
+
- [ ] **C2.28** Blog authors: account-linked or guest profiles, private email,
|
|
4907
|
+
public bylines/bios and author archives; preserve WordPress authors, terms,
|
|
4908
|
+
post dates and exact archive paths at import. Owner administration and
|
|
4909
|
+
four-locale labels are required before checking this item.
|
|
4910
|
+
- [ ] **C2.29** Public blog comments: moderated threads with owner controls,
|
|
4911
|
+
spam/honeypot and rate limits, unified contacts resolution/merge/privacy,
|
|
4912
|
+
notifications and WordPress comment import. Never expose a comment email.
|
|
4913
|
+
*(Implementation and qualification in progress 2026-11-07; owner: CMS/importer.
|
|
4914
|
+
Reproductions: a live replacement exposed imported post metadata before
|
|
4915
|
+
cutover; direct public metadata/comment queries could bypass a registered
|
|
4916
|
+
publication veto; republishing reset an imported original date. Peer review
|
|
4917
|
+
natively reproduced a same-slug locale row authorizing another vetoed ID,
|
|
4918
|
+
and found post-to-ordinary-page replacement retaining the old blog marker.
|
|
4919
|
+
Exact public page IDs now authorize reads, and kind changes hide retained
|
|
4920
|
+
comment history at cutover while preserving rollback. The production-build
|
|
4921
|
+
browser journey also reproduced a 500 on legacy redirects when CSP was
|
|
4922
|
+
written to native immutable redirect headers; the adapter now constructs a
|
|
4923
|
+
mutable framework response before applying the security policy; the HTTP
|
|
4924
|
+
harness resolves Next’s valid relative Location before checking the exact
|
|
4925
|
+
destination. Full CI also caught missing new-table policy decisions: reader
|
|
4926
|
+
comments now explicitly stay in their scoped moderation queue and page/privacy
|
|
4927
|
+
retention lifecycle; playground submission has a 200-row cap plus shared
|
|
4928
|
+
contact/client limits.
|
|
4929
|
+
A subsequent real-session regression also found the advertised editable
|
|
4930
|
+
playground blog forms still refused scoped blog saves, and its create form
|
|
4931
|
+
attempted operator-only bootstrap. Explicit content mutations now use bounded
|
|
4932
|
+
page/author/term stores; playground creation reuses startup-seeded chrome.
|
|
4933
|
+
A shared transaction-scoped insert guard counts inline tag batches and
|
|
4934
|
+
serializes concurrent creators; an over-limit batch rolls back atomically.
|
|
4935
|
+
`tests/core/blog-playground.test.ts` exercises the real server action with
|
|
4936
|
+
a genuine disposable visitor session and verifies moderation and caps.
|
|
4937
|
+
Deployed demo acceptance remains open. Redirect coverage is in
|
|
4938
|
+
`tests/core/legacy-redirect-proxy.test.ts`. Reusable
|
|
4939
|
+
fixes stage replacement metadata/comments until publication, reuse the
|
|
4940
|
+
shared published-page resolver, retain first publication dates and restore
|
|
4941
|
+
rollback dates/working copies. Regression evidence:
|
|
4942
|
+
`tests/core/wordpress-import-flow.test.ts`,
|
|
4943
|
+
`tests/core/blog-structure-comments.test.ts` and
|
|
4944
|
+
`tests/core/wordpress-migration-verification.test.ts`. The browser's first
|
|
4945
|
+
run reached moderation but its status selector also matched the filter nav;
|
|
4946
|
+
the harness now selects the combobox by role. Production deployment and
|
|
4947
|
+
deployed acceptance remain pending; operational limits and all evidence
|
|
4948
|
+
are recorded in `deploy/blog-wordpress-2026-11-07.md`.)*
|
|
4949
|
+
|
|
4892
4950
|
### 43.8 C3 — Living contract, plugins, packages, and portable operation
|
|
4893
4951
|
|
|
4894
4952
|
#### One generated platform contract
|
|
@@ -5173,7 +5231,7 @@ human, collaboratively, without code, lock-in markup or accidental publication.
|
|
|
5173
5231
|
acceptance remain open.
|
|
5174
5232
|
- [x] **C3.20** Add semantic platform/plugin/API versions, compatibility
|
|
5175
5233
|
reporting and a truthful instance version in health, admin, CLI and contract.
|
|
5176
|
-
(Platform and packages are `0.2.0-beta.
|
|
5234
|
+
(Platform and packages are `0.2.0-beta.6`; SDK `PLATFORM_VERSION` is stamped from
|
|
5177
5235
|
`package.json`. Health, OpenAPI, Doctor, provenance, catalogue compatibility
|
|
5178
5236
|
and admin chrome report that same string. `.github/workflows/publish-packages.yml`
|
|
5179
5237
|
publishes packed tarballs on a matching `vX.Y.Z` tag; `scripts/release-packages.mjs`
|
|
@@ -5237,6 +5295,15 @@ human, collaboratively, without code, lock-in markup or accidental publication.
|
|
|
5237
5295
|
the generic sitemap/RSS/Atom/HTML importers still produce a heading plus one
|
|
5238
5296
|
`html` block with no media or redirects; the `archive` kind has no archive
|
|
5239
5297
|
reader of its own.)*
|
|
5298
|
+
*(Update 2026-11-07: C2.27–C2.29/C3.46 add real taxonomy/author records,
|
|
5299
|
+
moderated WXR comment import, original post/home paths and dates, one-hop
|
|
5300
|
+
query/attachment redirects and URL/metadata verification. This supersedes
|
|
5301
|
+
the earlier checkpoint's taxonomy/author/comment and post-relocation limits;
|
|
5302
|
+
the remaining nested-menu, body/item-cap, pasted REST, generic importer and
|
|
5303
|
+
archive-reader limits still keep C3.22 open. Code and source-crawl limits:
|
|
5304
|
+
`src/core/import/service.ts`, `src/core/import/wordpress.ts`,
|
|
5305
|
+
`deploy/blog-wordpress-2026-11-07.md`; composed regressions:
|
|
5306
|
+
`tests/core/wordpress-import-flow.test.ts`.)*
|
|
5240
5307
|
- [x] **C3.23** Build the owner import studio and resumable run ledger:
|
|
5241
5308
|
discover → map → staged preview/diff → conflict review → commit → reconcile
|
|
5242
5309
|
counts/links/SEO/accessibility → reversible batch → approved publish/cutover,
|
|
@@ -5783,6 +5850,42 @@ deployments are portable, testable and incapable of silently forking the truth.
|
|
|
5783
5850
|
secret. That covers key distribution for registries and publishers, key
|
|
5784
5851
|
rotation, and refusal of a plugin whose signature does not verify against a
|
|
5785
5852
|
trusted key. Release feeds already use Ed25519 (§39.3, C10.03). Open.
|
|
5853
|
+
- [ ] **C3.44** Make the by-hand install WordPress-easy on any host, with no
|
|
5854
|
+
AI and no Docker required (owner decision 2026-11-06: "native first, Docker
|
|
5855
|
+
optional"). A release ships `freeholder-VERSION-linux-{x64,arm64}.tar.gz`
|
|
5856
|
+
with its own Node runtime, a `.sha256` and `install.sh`; on a plain
|
|
5857
|
+
Ubuntu/Debian server `install.sh` installs PostgreSQL and Caddy from
|
|
5858
|
+
distribution or official packages, creates a `freeholder` user, the database
|
|
5859
|
+
and role, unpacks a root-owned release under `/opt/freeholder/releases` with
|
|
5860
|
+
a `current` symlink, generates secrets with openssl, writes systemd units and
|
|
5861
|
+
a nightly backup timer, serves HTTPS (with a temporary `<ip>.sslip.io`
|
|
5862
|
+
address before DNS is ready) and prints the claim link. Media defaults to a
|
|
5863
|
+
persistent local directory (§18 single-server mode) with S3 optional;
|
|
5864
|
+
`freeholder status|backup|restore|update|rollback|domain` operate it, and a
|
|
5865
|
+
failed update rolls back the release and the pre-update database. The Docker
|
|
5866
|
+
recipe gets the same local-volume media, release-tag image default, nightly
|
|
5867
|
+
backup service, openssl-only prepare (`selfhost.sh`) and a Docker-only health
|
|
5868
|
+
check. Open until a release carries the tarballs and the documented steps
|
|
5869
|
+
pass on a fresh server: HTTPS, claim to the owner form, a published page, a
|
|
5870
|
+
backup and a restore.
|
|
5871
|
+
*(Progress 2026-11-06: `src/adapters/storage/local-mode.ts` decides the
|
|
5872
|
+
persistent mode for the adapter, Doctor, update screen and preflight;
|
|
5873
|
+
`scripts/build-release.mjs`, `deploy/linux/` and
|
|
5874
|
+
`.github/workflows/release-tarballs.yml`, which installs every tarball with
|
|
5875
|
+
`install.sh` on x64 and arm64 runners and backs up and restores it;
|
|
5876
|
+
`deploy/docker-selfhost/selfhost.sh` and `infra/backup.sh`. Evidence
|
|
5877
|
+
`tests/core/linux-install.test.ts`, `tests/core/local-storage-mode.test.ts`,
|
|
5878
|
+
`tests/core/storage.test.ts`, `tests/core/deploy-recipe.test.ts`; changeset
|
|
5879
|
+
`native-linux-install.md`. A throwaway DigitalOcean droplet ran the
|
|
5880
|
+
documented native steps with a tarball built from this branch; the result is
|
|
5881
|
+
recorded in the pull request. The tarballs reach a release only when the
|
|
5882
|
+
next version is tagged.)*
|
|
5883
|
+
|
|
5884
|
+
- [ ] **C3.45** — Managed preview assistant: launch-spec v3 preserves v1/v2 compatibility; PM-hosted previews use server-only scoped keys, cleared SFW Canon assets and revocation, AI/no-endorsement disclosure, owner settings and caps, visitor-bound queued voice/video with shared PM duplex transport and leases, and the existing assistant transcript for text; no chatbot age gate. Qualify the consumer, PM backend, deployed text fallback and a real approved call before closing. Peer source integration fixes include localized Contact media policy with controls suppressed elsewhere and existing signed-in chat text/assistant/End CSRF headers; mounted HTTP-guard regressions and source details live in deploy/managed-preview-assistant.md. Hosted shard19/26 native reproductions also qualify shared object-union MCP/HTTP/SDK projection and explicit playground provider/caption refusals.
|
|
5885
|
+
- [ ] **C3.46** SEO-safe WordPress migration: original URLs or single-hop301s,
|
|
5886
|
+
query-ID/feed/archive/attachment URL accounting, original SEO metadata,
|
|
5887
|
+
sitemap/canonical/hreflang validation and an exportable URL/reconciliation
|
|
5888
|
+
report. Publishing is explicit; imported drafts remain private.
|
|
5786
5889
|
|
|
5787
5890
|
### 43.9 C4 — Safe agent workforce, connections, scheduling, and briefing
|
|
5788
5891
|
|
package/dist/template/README.md
CHANGED
|
@@ -10,7 +10,7 @@ replaces the stack with one self-hosted platform where a contact is **one
|
|
|
10
10
|
record**: their bookings, orders, quotes, gallery access, messages, and email
|
|
11
11
|
history all hang off one CRM timeline.
|
|
12
12
|
|
|
13
|
-
> **Status: 0.2.0-beta.
|
|
13
|
+
> **Status: 0.2.0-beta.6, in active development; no stable release is published.**
|
|
14
14
|
> This is not a release candidate. The implemented platform is undergoing
|
|
15
15
|
> final release acceptance. Independent
|
|
16
16
|
> security review, real provider settlement, specification reconciliation and
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
scopes,
|
|
44
44
|
settings,
|
|
45
45
|
turns,
|
|
46
|
+
managedDetails,
|
|
46
47
|
} from "@/modules/assistant/service";
|
|
47
48
|
import { getT } from "../../../i18n";
|
|
48
49
|
import { requireStaffActor } from "../guard";
|
|
@@ -89,9 +90,10 @@ export default async function AssistantPage({
|
|
|
89
90
|
domainOrNull(knowledgeGapList.call({ status: "open" }, actor)),
|
|
90
91
|
searchParams,
|
|
91
92
|
]);
|
|
93
|
+
const managed = current?.provider === "paradise" ? await domainOrNull(managedDetails.call({}, actor)) : null;
|
|
92
94
|
|
|
93
95
|
const locale = business?.defaultLocale ?? "en";
|
|
94
|
-
const currency = business?.baseCurrency ?? "USD";
|
|
96
|
+
const currency = current?.provider === "paradise" ? "USD" : business?.baseCurrency ?? "USD";
|
|
95
97
|
const money = (cents: number) => formatMoney(cents, currency, locale);
|
|
96
98
|
const when = (value: Date | string) =>
|
|
97
99
|
new Intl.DateTimeFormat(locale, {
|
|
@@ -176,6 +178,12 @@ export default async function AssistantPage({
|
|
|
176
178
|
</label>
|
|
177
179
|
|
|
178
180
|
<div className="grid gap-4 sm:grid-cols-2">
|
|
181
|
+
{current.provider === "paradise" && <Field label={t("assistant.managed.talent")} htmlFor="assistant-managed-talent" hint={t("assistant.managed.clearance")}>
|
|
182
|
+
<Select id="assistant-managed-talent" name="managedTalent" defaultValue={managed?.settings.talentSlug ?? "sienna-rodriguez"}>
|
|
183
|
+
{!managed?.talent.some(talent => talent.slug === "sienna-rodriguez") && <option value="sienna-rodriguez">{t("assistant.managed.textFallback")}</option>}
|
|
184
|
+
{managed?.talent.map(talent => <option key={talent.slug} value={talent.slug}>{talent.name}</option>)}
|
|
185
|
+
</Select>
|
|
186
|
+
</Field>}
|
|
179
187
|
<Field
|
|
180
188
|
label={t("assistant.field.provider")}
|
|
181
189
|
htmlFor="assistant-provider"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright (C) 2026 Tony Aly
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import type { Actor } from "@/core/service";
|
|
4
|
+
import { getPostMeta, listAuthors, listTerms } from "@/modules/cms/blog-service";
|
|
5
|
+
import { Button, Field, Input, Select } from "@/ui/primitives";
|
|
6
|
+
import { getT } from "../../../i18n";
|
|
7
|
+
import { savePostSettingsAction } from "./actions";
|
|
8
|
+
|
|
9
|
+
export async function BlogPostSettings({ pageId, actor }: { pageId: string; actor: Actor }) {
|
|
10
|
+
const [meta, authors, terms, t] = await Promise.all([
|
|
11
|
+
getPostMeta.call({ pageId }, actor), listAuthors.call({}, actor), listTerms.call({}, actor), getT(),
|
|
12
|
+
]);
|
|
13
|
+
return <section className="rounded-lg border border-rule bg-surface p-6" aria-labelledby="post-settings-title">
|
|
14
|
+
<h2 id="post-settings-title" className="text-lg font-semibold">{t("blog.postSettings")}</h2>
|
|
15
|
+
<form action={savePostSettingsAction} className="mt-4 grid gap-4">
|
|
16
|
+
<input type="hidden" name="pageId" value={pageId} />
|
|
17
|
+
<label className="flex items-center gap-2"><input type="checkbox" name="isPost" defaultChecked={meta.isPost} />{t("blog.isPost")}</label>
|
|
18
|
+
<Field label={t("blog.author")} htmlFor="post-author"><Select id="post-author" name="authorId" defaultValue={meta.authorId ?? ""}><option value="">{t("blog.none")}</option>{authors.map(author => <option key={author.id} value={author.id}>{author.name}</option>)}</Select></Field>
|
|
19
|
+
<fieldset><legend>{t("blog.categories")}</legend>{terms.filter(term => term.taxonomy === "category").map(term => <label key={term.id} className="mt-2 flex items-center gap-2"><input type="checkbox" name="categoryIds" value={term.id} defaultChecked={meta.categoryIds.includes(term.id)} />{term.name}</label>)}</fieldset>
|
|
20
|
+
<Field label={t("blog.tags")} htmlFor="post-tags"><Input id="post-tags" name="tags" defaultValue={terms.filter(term => meta.tagIds.includes(term.id)).map(term => term.name).join(", ")} /></Field>
|
|
21
|
+
<input type="hidden" name="commentsSetting" value="1" />
|
|
22
|
+
<label className="flex items-center gap-2"><input type="checkbox" name="commentsEnabled" defaultChecked={meta.commentsEnabled} />{t("blog.commentsEnabled")}</label>
|
|
23
|
+
<Button type="submit">{t("blog.save")}</Button>
|
|
24
|
+
</form>
|
|
25
|
+
</section>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Copyright (C) 2026 Tony Aly
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// Blog taxonomy and guest-author administration (C2.27/C2.28).
|
|
4
|
+
import { notFound } from "next/navigation";
|
|
5
|
+
import { authorAccounts, listAuthors, listTerms } from "@/modules/cms/blog-service";
|
|
6
|
+
import { Button, Field, Input, Select } from "@/ui/primitives";
|
|
7
|
+
import { getT } from "../../../../i18n";
|
|
8
|
+
import { requireStaffActor } from "../../guard";
|
|
9
|
+
import { deleteAuthorAction, deleteTermAction, saveAuthorAction, saveTermAction } from "../actions";
|
|
10
|
+
|
|
11
|
+
export const dynamic = "force-dynamic";
|
|
12
|
+
export default async function BlogDirectory({ params, searchParams }: {
|
|
13
|
+
params: Promise<{ kind: string }>;
|
|
14
|
+
searchParams: Promise<{ edit?: string; error?: string; saved?: string }>;
|
|
15
|
+
}) {
|
|
16
|
+
const { kind } = await params;
|
|
17
|
+
if (!["categories", "tags", "authors"].includes(kind)) notFound();
|
|
18
|
+
const actor = await requireStaffActor("cms", "manage");
|
|
19
|
+
const [t, query] = await Promise.all([getT(), searchParams]);
|
|
20
|
+
const taxonomy = kind === "tags" ? "tag" : "category";
|
|
21
|
+
const terms = kind === "authors" ? [] : await listTerms.call({ taxonomy }, actor);
|
|
22
|
+
const authors = kind === "authors" ? await listAuthors.call({}, actor) : [];
|
|
23
|
+
const accounts = kind === "authors" ? await authorAccounts.call({}, actor) : [];
|
|
24
|
+
const term = terms.find(row => row.id === query.edit);
|
|
25
|
+
const author = authors.find(row => row.id === query.edit);
|
|
26
|
+
const current = author ?? term;
|
|
27
|
+
const seo = (current?.seo ?? {}) as { title?: string; description?: string; noindex?: boolean };
|
|
28
|
+
return <div className="grid max-w-3xl gap-6">
|
|
29
|
+
<a className="underline" href="/admin/blog">{t("blog.title")}</a>
|
|
30
|
+
<h1 className="text-2xl font-semibold">{t(`blog.${kind}`)}</h1>
|
|
31
|
+
{query.error ? <p role="alert">{t("common.somethingWentWrong")}</p> : null}
|
|
32
|
+
{query.saved ? <p role="status">{t("blog.saved")}</p> : null}
|
|
33
|
+
<form action={kind === "authors" ? saveAuthorAction : saveTermAction} className="grid gap-4 rounded-lg border border-rule bg-surface p-6">
|
|
34
|
+
{current ? <input type="hidden" name="id" value={current.id} /> : null}
|
|
35
|
+
<input type="hidden" name="taxonomy" value={taxonomy} />
|
|
36
|
+
<Field label={t("blog.name")} htmlFor="name"><Input id="name" name="name" defaultValue={current?.name} required maxLength={200} /></Field>
|
|
37
|
+
<Field label={t("cms.field.slug")} htmlFor="slug"><Input id="slug" name="slug" defaultValue={current?.slug} pattern="[a-z0-9]+(-[a-z0-9]+)*" /></Field>
|
|
38
|
+
<Field label={t(kind === "authors" ? "blog.bio" : "blog.description")} htmlFor="description"><textarea className="min-h-24 w-full rounded-md border border-rule bg-surface px-3 py-2 text-ink" id="description" name={kind === "authors" ? "bio" : "description"} defaultValue={author?.bio ?? term?.description ?? ""} maxLength={4000} /></Field>
|
|
39
|
+
{kind === "authors" ? <Field label={t("blog.privateEmail")} htmlFor="email"><Input id="email" name="email" type="email" autoComplete="off" defaultValue={author?.email ?? ""} maxLength={320} /></Field> : null}
|
|
40
|
+
{kind === "authors" ? <Field label={t("blog.linkedAccount")} htmlFor="userId"><Select id="userId" name="userId" defaultValue={author?.userId ?? ""}><option value="">{t("blog.guestAuthor")}</option>{author?.userId && !accounts.some(account => account.id === author.userId) ? <option value={author.userId}>{author.name}</option> : null}{accounts.map(account => <option key={account.id} value={account.id}>{account.email}</option>)}</Select></Field> : null}
|
|
41
|
+
{kind === "categories" ? <Field label={t("blog.parent")} htmlFor="parentId"><Select id="parentId" name="parentId" defaultValue={term?.parentId ?? ""}><option value="">{t("blog.none")}</option>{terms.filter(row => row.id !== term?.id).map(row => <option key={row.id} value={row.id}>{row.name}</option>)}</Select></Field> : null}
|
|
42
|
+
<Field label={t("blog.seoTitle")} htmlFor="seoTitle"><Input id="seoTitle" name="seoTitle" defaultValue={seo.title} maxLength={200} /></Field>
|
|
43
|
+
<Field label={t("blog.seoDescription")} htmlFor="seoDescription"><textarea className="min-h-24 w-full rounded-md border border-rule bg-surface px-3 py-2 text-ink" id="seoDescription" name="seoDescription" defaultValue={seo.description} maxLength={320} /></Field>
|
|
44
|
+
<label className="flex items-center gap-2"><input type="checkbox" name="noindex" defaultChecked={seo.noindex} />{t("blog.noindex")}</label>
|
|
45
|
+
<Button type="submit">{t("blog.save")}</Button>
|
|
46
|
+
</form>
|
|
47
|
+
<ul className="grid list-none gap-3 p-0">{[...terms, ...authors].map(row => <li key={row.id} className="flex flex-wrap items-center justify-between gap-3 border-b border-rule pb-3">
|
|
48
|
+
<a className="underline" href={`/admin/blog/${kind}?edit=${row.id}`}>{row.name}</a><span className="text-sm text-ink-muted">/{row.path}</span>
|
|
49
|
+
<form action={kind === "authors" ? deleteAuthorAction : deleteTermAction}><input type="hidden" name="id" value={row.id} /><input type="hidden" name="taxonomy" value={taxonomy} /><Button type="submit" variant="danger">{t("blog.delete")}</Button></form>
|
|
50
|
+
</li>)}</ul>
|
|
51
|
+
{!current && terms.length + authors.length === 0 ? <p>{t("blog.directoryEmpty")}</p> : null}
|
|
52
|
+
</div>;
|
|
53
|
+
}
|