create-ampless 0.2.0-alpha.24 → 0.2.0-alpha.27
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/index.js
CHANGED
|
@@ -2002,23 +2002,23 @@ async function runUpgradeIn(destDir, sharedDir, opts = {}) {
|
|
|
2002
2002
|
const preservedThemes = existingThemes.filter((t) => !shippedThemes.includes(t));
|
|
2003
2003
|
const obsoleteFiles = await findObsoleteAppFiles(destDir, sharedDir);
|
|
2004
2004
|
log3.info(
|
|
2005
|
-
`replace: ${pc3.green(
|
|
2005
|
+
`replace: ${pc3.green(`${replaceNew.length} added`)} / ${pc3.yellow(`${replaceUpdate.length} updated`)}`
|
|
2006
2006
|
);
|
|
2007
|
-
log3.info(`merge: ${pc3.cyan("package.json: ampless deps
|
|
2007
|
+
log3.info(`merge: ${pc3.cyan("package.json: sync ampless deps and managed scripts with the template")}`);
|
|
2008
2008
|
if (classification.seed.length > 0) {
|
|
2009
2009
|
log3.info(
|
|
2010
|
-
`seed: ${pc3.green(
|
|
2010
|
+
`seed: ${pc3.green(`${seedNew.length} added`)} / ${pc3.dim(`${seedSkipped.length} kept (existing *.custom.ts left untouched)`)}`
|
|
2011
2011
|
);
|
|
2012
2012
|
}
|
|
2013
2013
|
if (themeSyncEnabled) {
|
|
2014
2014
|
log3.info(
|
|
2015
|
-
`themes: ${pc3.cyan(
|
|
2015
|
+
`themes: ${pc3.cyan(`${shippedThemes.length} default themes synced`)} / ${pc3.dim(`${preservedThemes.length} custom (my-*) themes preserved`)}`
|
|
2016
2016
|
);
|
|
2017
2017
|
}
|
|
2018
2018
|
if (obsoleteFiles.length > 0) {
|
|
2019
|
-
log3.info(`cleanup: ${pc3.yellow(
|
|
2019
|
+
log3.info(`cleanup: ${pc3.yellow(`${obsoleteFiles.length} removed`)} (files under ampless-managed app/ paths that no longer exist in the template)`);
|
|
2020
2020
|
}
|
|
2021
|
-
log3.info(`protected: ${pc3.dim(
|
|
2021
|
+
log3.info(`protected: ${pc3.dim(`${classification.protected.length} template files left untouched`)}`);
|
|
2022
2022
|
if (opts.dryRun) {
|
|
2023
2023
|
return {
|
|
2024
2024
|
added: replaceNew,
|
|
@@ -3,6 +3,7 @@ import { dirname, resolve } from 'node:path'
|
|
|
3
3
|
import { a, defineData, type ClientSchema } from '@aws-amplify/backend'
|
|
4
4
|
import { amplessSchemaModels, defaultAuthorizationModes } from '@ampless/backend'
|
|
5
5
|
import { userAdmin } from '../functions/user-admin/resource.js'
|
|
6
|
+
import { mcpHandler } from '../functions/mcp-handler/resource.js'
|
|
6
7
|
import { customSchemaModels } from './resource.custom.js'
|
|
7
8
|
|
|
8
9
|
// AppSync's `a.handler.custom({ entry })` paths are resolved by CDK
|
|
@@ -27,7 +28,15 @@ const resolverPaths = {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
const schema = a.schema({
|
|
30
|
-
...amplessSchemaModels(a, {
|
|
31
|
+
...amplessSchemaModels(a, {
|
|
32
|
+
resolverPaths,
|
|
33
|
+
userAdminFunction: userAdmin,
|
|
34
|
+
// Grants the MCP Lambda IAM auth on Post / PostTag so the HTTP
|
|
35
|
+
// transport can dispatch the post CRUD tools without sharing a
|
|
36
|
+
// Cognito identity or API key. See `@ampless/backend` data/index.ts
|
|
37
|
+
// for the exact authorization clause.
|
|
38
|
+
mcpHandlerFunction: mcpHandler,
|
|
39
|
+
}),
|
|
31
40
|
...customSchemaModels(a),
|
|
32
41
|
})
|
|
33
42
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@ampless/plugin-seo": "^0.2.0-alpha.6",
|
|
28
28
|
"@ampless/plugin-webhook": "^0.2.0-alpha.6",
|
|
29
29
|
"@ampless/admin": "^0.2.0-alpha.21",
|
|
30
|
-
"@ampless/backend": "^0.2.0-alpha.
|
|
30
|
+
"@ampless/backend": "^0.2.0-alpha.11",
|
|
31
31
|
"@ampless/runtime": "^0.2.0-alpha.9",
|
|
32
32
|
"@digital-go-jp/tailwind-theme-plugin": "^0.3.4",
|
|
33
33
|
"ampless": "^0.2.0-alpha.6",
|