@ampless/backend 1.0.0-beta.91 → 1.0.0-beta.93

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/README.ja.md CHANGED
@@ -64,7 +64,7 @@ amplessAuthConfig({ // カスタム
64
64
  amplessAuthConfig({ postConfirmation, webAuthn: false }) // パスワードのみのサインイン
65
65
  ```
66
66
 
67
- Amplify Hosting パイプラインビルドでは、テンプレートが `cms.config.ts` の `site.url` から `resolveWebAuthn({ override, siteUrl, isPipeline })` を通じて Relying Party ID を自動導出します。最も一般的なケースでは手動設定不要です。`ampx sandbox` では RP ID は `localhost` のまま(Amplify が自動解決)です。管理画面を `site.url` と**異なるサブドメイン**で配信している場合は、`amplify/auth/resource.custom.ts` でオペレーターがアクセスする bare domain を `relyingPartyId` に固定してください。パスキー登録後に RP ID を変更すると、登録済みの認証情報がすべて無効化されます。[docs/passkeys.ja.md](https://github.com/heavymoons/ampless/blob/main/docs/passkeys.ja.md) を参照してください。
67
+ Amplify Hosting パイプラインビルドでは、テンプレートが `cms.config.ts` の `site.url` から `resolveWebAuthn({ override, siteUrl, isPipeline })` を通じて Relying Party ID を自動導出します。最も一般的なケースでは手動設定不要です。`ampx sandbox` では RP ID は `localhost` のまま(Amplify が自動解決)です。管理画面を `site.url` と**異なるサブドメイン**で配信している場合は、`amplify/auth/resource.custom.ts` でオペレーターがアクセスする bare domain を `relyingPartyId` に固定してください。パスキー登録後に RP ID を変更すると、登録済みの認証情報がすべて無効化されます。[passkeys.ja](https://github.com/heavymoons/ampless/wiki/passkeys.ja) を参照してください。
68
68
 
69
69
  ### `amplify/data/resource.ts`
70
70
 
package/README.md CHANGED
@@ -64,7 +64,7 @@ amplessAuthConfig({ // pin the Relyin
64
64
  amplessAuthConfig({ postConfirmation, webAuthn: false }) // password-only sign-in
65
65
  ```
66
66
 
67
- In Amplify Hosting pipeline builds the template auto-derives the Relying Party ID from `site.url` in `cms.config.ts` via `resolveWebAuthn({ override, siteUrl, isPipeline })` — no manual configuration needed for the common case. In `ampx sandbox` the RP ID stays `localhost` (auto-resolved by Amplify). If the admin is served from a **different subdomain** than `site.url`, pin `relyingPartyId` to the bare domain operators visit in `amplify/auth/resource.custom.ts`. Changing the RP ID after passkeys exist invalidates every registered credential. See [docs/passkeys.md](https://github.com/heavymoons/ampless/blob/main/docs/passkeys.md).
67
+ In Amplify Hosting pipeline builds the template auto-derives the Relying Party ID from `site.url` in `cms.config.ts` via `resolveWebAuthn({ override, siteUrl, isPipeline })` — no manual configuration needed for the common case. In `ampx sandbox` the RP ID stays `localhost` (auto-resolved by Amplify). If the admin is served from a **different subdomain** than `site.url`, pin `relyingPartyId` to the bare domain operators visit in `amplify/auth/resource.custom.ts`. Changing the RP ID after passkeys exist invalidates every registered credential. See [passkeys](https://github.com/heavymoons/ampless/wiki/passkeys).
68
68
 
69
69
  ### `amplify/data/resource.ts`
70
70
 
@@ -334,7 +334,7 @@ function createProcessorTrustedHandler(opts) {
334
334
  for (const plugin of privilegedHookedPlugins) {
335
335
  if (plugin.hooks?.[parsed.type]) {
336
336
  console.warn(
337
- `[trusted-processor] privileged plugin "${plugin.name}" declares ${parsed.type} hook but no privileged Lambda is provisioned yet \u2014 hook will not execute. See docs/architecture/08-plugin-architecture.md.`
337
+ `[trusted-processor] privileged plugin "${plugin.name}" declares ${parsed.type} hook but no privileged Lambda is provisioned yet \u2014 hook will not execute. See https://github.com/heavymoons/ampless/wiki/architecture-08-plugin-architecture.`
338
338
  );
339
339
  }
340
340
  }
@@ -30,7 +30,7 @@ function createProcessorUntrustedHandler(opts) {
30
30
  for (const plugin of privilegedHookedPlugins) {
31
31
  if (plugin.hooks?.[parsed.type]) {
32
32
  console.warn(
33
- `[untrusted-processor] privileged plugin "${plugin.name}" declares ${parsed.type} hook but no privileged Lambda is provisioned yet \u2014 hook will not execute. See docs/architecture/08-plugin-architecture.md.`
33
+ `[untrusted-processor] privileged plugin "${plugin.name}" declares ${parsed.type} hook but no privileged Lambda is provisioned yet \u2014 hook will not execute. See https://github.com/heavymoons/ampless/wiki/architecture-08-plugin-architecture.`
34
34
  );
35
35
  }
36
36
  }
@@ -857,7 +857,7 @@ function getSchema() {
857
857
  ],
858
858
  formats: ["tiptap", "markdown", "html", "static"],
859
859
  notes: {
860
- editorTrust: 'editor stores arbitrary HTML/JS verbatim \u2014 same trust shape as WordPress unfiltered_html capability. See docs/architecture/04-access-layer-mcp.md \xA7"editor \u306E\u4FE1\u983C\u30E2\u30C7\u30EB".',
860
+ editorTrust: 'editor stores arbitrary HTML/JS verbatim \u2014 same trust shape as WordPress unfiltered_html capability. See https://github.com/heavymoons/ampless/wiki/architecture-04-access-layer-mcp \xA7"editor \u306E\u4FE1\u983C\u30E2\u30C7\u30EB".',
861
861
  tiptapBody: 'When format=tiptap, body is the tiptap document JSON: { type: "doc", content: [...] }. The renderer expects this shape.',
862
862
  noLayout: "metadata.no_layout=true serves the post as bare HTML with no theme chrome \u2014 middleware rewrites the public /<slug> request to the internal bare-HTML handler, which renders the body verbatim with no wrapping <html>/<head>/layout. Use this for landing pages, embeds, or any post whose body is a full HTML document. Only meaningful with format=html (the other formats need the theme renderer).",
863
863
  staticFormat: "A fourth format value `static` exists on the underlying data model for posts whose body is a JSON manifest pointing to a pre-uploaded HTML/CSS/JS bundle in S3 at public/static/<slug>/. Public URL pattern: /<slug>/ for the entrypoint and /<slug>/<file> for every bundle file (middleware rewrites both to an internal static-bundle handler). Static posts are created/edited through the dedicated tools `upload_static_bundle` (zip in one shot), `upload_static_file` / `delete_static_file` (incremental per-file ops), and `commit_static_post` (rebuild the manifest from the current S3 prefix). `create_post` / `update_post` intentionally do NOT accept format=static \u2014 the bundle tools are the only supported entry point so the Post manifest stays in sync with the S3 prefix.",
package/dist/index.js CHANGED
@@ -482,7 +482,7 @@ function amplessSchemaModels(a, opts = {}) {
482
482
  // Lambda. The Lambda receives the plaintext, reads the encryption
483
483
  // key from `process.env.PLUGIN_SECRET_ENCRYPTION_KEY` (injected by
484
484
  // CDK at deploy time from `amplify/secrets/encryption-key.ts` — see
485
- // Phase 6a v2.2 in docs/architecture/08-plugin-architecture.md),
485
+ // Phase 6a v2.2 in https://github.com/heavymoons/ampless/wiki/architecture-08-plugin-architecture),
486
486
  // and performs the DDB PutItem using its own IAM role. Ciphertext
487
487
  // never flows back to the browser.
488
488
  //
@@ -530,7 +530,7 @@ function amplessSchemaModels(a, opts = {}) {
530
530
  // constant). Even if an AWS account operator reads this column
531
531
  // via the DDB Console they only see ciphertext — the key lives
532
532
  // outside DynamoDB. The honest threat model is documented in
533
- // docs/architecture/08-plugin-architecture.md: defeated for
533
+ // https://github.com/heavymoons/ampless/wiki/architecture-08-plugin-architecture: defeated for
534
534
  // DDB-only browsing, NOT defeated for anyone with source repo
535
535
  // / deploy artifact access, NOT defeated for a malicious
536
536
  // trusted plugin co-located in the same Lambda.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/backend",
3
- "version": "1.0.0-beta.91",
3
+ "version": "1.0.0-beta.93",
4
4
  "description": "Amplify Gen 2 backend factories for ampless: auth, data, storage, event processors, API key renewer",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -69,8 +69,8 @@
69
69
  "@smithy/protocol-http": "^5.4.4",
70
70
  "@smithy/signature-v4": "^5.4.4",
71
71
  "fflate": "^0.8.3",
72
- "@ampless/mcp-server": "1.0.0-beta.68",
73
- "ampless": "1.0.0-beta.61"
72
+ "@ampless/mcp-server": "1.0.0-beta.70",
73
+ "ampless": "1.0.0-beta.63"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@aws-amplify/backend": "^1.19.0",