@ampless/backend 1.0.0-alpha.24 → 1.0.0-alpha.26

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.
@@ -5,7 +5,7 @@ import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
5
5
  import { DynamoDBDocumentClient, GetCommand } from "@aws-sdk/lib-dynamodb";
6
6
  import { createHash } from "crypto";
7
7
 
8
- // ../mcp-server/dist/chunk-K4GTND6P.js
8
+ // ../mcp-server/dist/chunk-HVSLKTKC.js
9
9
  import {
10
10
  decodeAwsJson
11
11
  } from "ampless";
@@ -860,7 +860,8 @@ var tools = [
860
860
  name: "delete_post",
861
861
  description: "Delete a post by postId. Also drops associated PostTag index entries.",
862
862
  inputSchema: deletePostSchema,
863
- handler: (args, ctx) => deletePost(ctx.graphql, args)
863
+ handler: (args, ctx) => deletePost(ctx.graphql, args),
864
+ destructive: true
864
865
  },
865
866
  {
866
867
  name: "upload_media",
@@ -882,7 +883,8 @@ var tools = [
882
883
  ctx.graphql,
883
884
  ctx.storage(),
884
885
  args
885
- )
886
+ ),
887
+ destructive: true
886
888
  },
887
889
  {
888
890
  name: "upload_static_file",
@@ -900,7 +902,8 @@ var tools = [
900
902
  handler: (args, ctx) => deleteStaticFile(
901
903
  ctx.storage(),
902
904
  args
903
- )
905
+ ),
906
+ destructive: true
904
907
  },
905
908
  {
906
909
  name: "commit_static_post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/backend",
3
- "version": "1.0.0-alpha.24",
3
+ "version": "1.0.0-alpha.26",
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",
@@ -65,8 +65,8 @@
65
65
  "@smithy/protocol-http": "^5.4.4",
66
66
  "@smithy/signature-v4": "^5.4.4",
67
67
  "fflate": "^0.8.3",
68
- "ampless": "1.0.0-alpha.13",
69
- "@ampless/mcp-server": "1.0.0-alpha.14"
68
+ "ampless": "1.0.0-alpha.14",
69
+ "@ampless/mcp-server": "1.0.0-alpha.16"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@aws-amplify/backend": "^1",