@geek-fun/serverlessinsight 0.8.8 → 0.9.0

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.
Files changed (52) hide show
  1. package/.serverlessinsight/state-cdn-flow-app-cdn-flow-service.json.backup +1 -1
  2. package/.serverlessinsight/state-iam-test-app-iam-test-service.json.backup +2 -2
  3. package/.serverlessinsight/state-insight-poc-app-insight-poc-tencent.json.backup +2 -2
  4. package/.serverlessinsight/state-insight-poc-app-log-insight-poc-tencent-log.json.backup +123 -0
  5. package/.serverlessinsight/state-insight-poc-deploy-app-insight-poc-deploy.json.backup +4 -4
  6. package/.serverlessinsight/state-insight-poc-destroy-app-insight-poc-destroy.json.backup +1 -1
  7. package/.serverlessinsight/state-insight-volc-app-insight-volc.json.backup +2 -2
  8. package/.serverlessinsight/state-insight-volc-nested-app-insight-volc-nested.json.backup +93 -0
  9. package/.serverlessinsight/state-nested-drift-app-nested-drift-service.json.backup +148 -0
  10. package/.serverlessinsight/state-role-reconcile-test-app-role-reconcile-test-service.json.backup +3 -3
  11. package/CHANGELOG.md +29 -0
  12. package/dist/package.json +1 -1
  13. package/dist/src/commands/deploy.js +3 -1
  14. package/dist/src/commands/index.js +25 -0
  15. package/dist/src/common/aliyunClient/fc3Operations.js +5 -0
  16. package/dist/src/common/aliyunClient/index.js +44 -35
  17. package/dist/src/common/constants.js +5 -1
  18. package/dist/src/common/imsClient.js +2 -2
  19. package/dist/src/common/nameBuilder.js +13 -1
  20. package/dist/src/common/planCompare.js +31 -1
  21. package/dist/src/common/planFormatter.js +69 -54
  22. package/dist/src/common/refreshPlanner.js +31 -8
  23. package/dist/src/lang/en.js +20 -6
  24. package/dist/src/lang/zh-CN.js +20 -6
  25. package/dist/src/stack/aliyunStack/apigwPlanner.js +26 -5
  26. package/dist/src/stack/aliyunStack/databasePlanner.js +6 -1
  27. package/dist/src/stack/aliyunStack/databaseResource.js +10 -2
  28. package/dist/src/stack/aliyunStack/deployer.js +30 -13
  29. package/dist/src/stack/aliyunStack/fc3Planner.js +46 -25
  30. package/dist/src/stack/aliyunStack/fc3Resource.js +137 -87
  31. package/dist/src/stack/aliyunStack/ossPlanner.js +6 -1
  32. package/dist/src/stack/aliyunStack/ossResource.js +9 -2
  33. package/dist/src/stack/aliyunStack/tablestorePlanner.js +2 -1
  34. package/dist/src/stack/aliyunStack/tablestoreResource.js +2 -1
  35. package/dist/src/stack/deploy.js +10 -4
  36. package/dist/src/stack/scfStack/cosPlanner.js +6 -1
  37. package/dist/src/stack/scfStack/cosResource.js +6 -2
  38. package/dist/src/stack/scfStack/deployer.js +21 -6
  39. package/dist/src/stack/scfStack/esServerlessPlanner.js +6 -1
  40. package/dist/src/stack/scfStack/esServerlessResource.js +5 -1
  41. package/dist/src/stack/scfStack/scfPlanner.js +26 -27
  42. package/dist/src/stack/scfStack/scfResource.js +6 -2
  43. package/dist/src/stack/scfStack/tdsqlcPlanner.js +6 -1
  44. package/dist/src/stack/scfStack/tdsqlcResource.js +5 -1
  45. package/dist/src/stack/volcengineStack/apigwPlanner.js +5 -1
  46. package/dist/src/stack/volcengineStack/deployer.js +15 -4
  47. package/dist/src/stack/volcengineStack/tosPlanner.js +6 -1
  48. package/dist/src/stack/volcengineStack/tosResource.js +10 -3
  49. package/dist/src/stack/volcengineStack/vefaasPlanner.js +39 -11
  50. package/dist/src/stack/volcengineStack/vefaasResource.js +5 -1
  51. package/dist/src/validator/semanticValidation.js +24 -0
  52. package/package.json +1 -1
@@ -9,6 +9,6 @@
9
9
  "shared": {}
10
10
  }
11
11
  },
12
- "lineage": "d5940979-1d8f-4022-880f-8e15c4c67047",
12
+ "lineage": "233e4512-e98b-43c1-a683-4f82bc34b54e",
13
13
  "serial": 5
14
14
  }
@@ -22,11 +22,11 @@
22
22
  "id": "iam-test-app-dev-sls"
23
23
  }
24
24
  ],
25
- "lastUpdated": "2026-09-08T17:59:35.725Z"
25
+ "lastUpdated": "2026-09-11T07:02:53.250Z"
26
26
  }
27
27
  }
28
28
  }
29
29
  },
30
- "lineage": "56188f6c-281d-4a4e-985b-9b7e4dab161b",
30
+ "lineage": "b648b31f-6842-48e4-87a6-f77b66819584",
31
31
  "serial": 3
32
32
  }
@@ -83,12 +83,12 @@
83
83
  "id": "test-fn"
84
84
  }
85
85
  ],
86
- "lastUpdated": "2026-09-08T18:00:08.516Z"
86
+ "lastUpdated": "2026-09-11T07:03:28.942Z"
87
87
  }
88
88
  },
89
89
  "shared": {}
90
90
  }
91
91
  },
92
- "lineage": "a4eafdb5-e34b-448c-a277-0e1527c9b410",
92
+ "lineage": "784f7c51-0231-44fd-b881-2a73cfaacc0a",
93
93
  "serial": 4
94
94
  }
@@ -0,0 +1,123 @@
1
+ {
2
+ "version": "3.0",
3
+ "provider": "tencent",
4
+ "app": "insight-poc-app-log",
5
+ "service": "insight-poc-tencent-log",
6
+ "stages": {
7
+ "default": {
8
+ "resources": {
9
+ "functions.log_fn": {
10
+ "mode": "managed",
11
+ "region": "ap-guangzhou",
12
+ "definition": {
13
+ "functionName": "test-log-fn",
14
+ "runtime": "Nodejs18.15",
15
+ "handler": "index.handler",
16
+ "memorySize": 512,
17
+ "timeout": 10,
18
+ "environment": {},
19
+ "codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
20
+ "vpcConfig": null,
21
+ "diskSize": null,
22
+ "cfsConfig": null,
23
+ "useGpu": null,
24
+ "imageConfig": null,
25
+ "logConfig": {
26
+ "logset": "insight-poc-app-log-default-cls",
27
+ "topic": "insight-poc-tencent-log-default-log_fn-fn-logs"
28
+ }
29
+ },
30
+ "instances": [
31
+ {
32
+ "sid": "si:tencent:scf:default:test-log-fn",
33
+ "id": "test-log-fn",
34
+ "functionName": "test-log-fn",
35
+ "runtime": "Nodejs18.15",
36
+ "handler": "index.handler",
37
+ "memorySize": 512,
38
+ "timeout": 10,
39
+ "environment": {},
40
+ "modTime": null,
41
+ "codeSha256": null,
42
+ "codeInfo": null,
43
+ "description": null,
44
+ "triggers": [],
45
+ "codeSize": null,
46
+ "functionVersion": null,
47
+ "vpcConfig": {},
48
+ "useGpu": null,
49
+ "codeResult": null,
50
+ "codeError": null,
51
+ "errNo": null,
52
+ "namespace": null,
53
+ "role": null,
54
+ "installDependency": null,
55
+ "status": "Active",
56
+ "statusDesc": null,
57
+ "clsLogsetId": null,
58
+ "clsTopicId": null,
59
+ "functionId": null,
60
+ "tags": [],
61
+ "eipConfig": {},
62
+ "accessInfo": {},
63
+ "type": null,
64
+ "l5Enable": null,
65
+ "layers": [],
66
+ "deadLetterConfig": {},
67
+ "addTime": null,
68
+ "publicNetConfig": {},
69
+ "onsEnable": null,
70
+ "cfsConfig": {},
71
+ "availableStatus": null,
72
+ "qualifier": null,
73
+ "initTimeout": null,
74
+ "statusReasons": [],
75
+ "asyncRunEnable": null,
76
+ "traceEnable": null,
77
+ "imageConfig": {},
78
+ "protocolType": null,
79
+ "protocolParams": {},
80
+ "dnsCache": null,
81
+ "intranetConfig": {},
82
+ "instanceConcurrencyConfig": {}
83
+ },
84
+ {
85
+ "sid": "si:tencent:scf:default:test-log-fn",
86
+ "type": null,
87
+ "id": "test-log-fn"
88
+ },
89
+ {
90
+ "sid": "si:tencent:cls-topic:default:insight-poc-tencent-log-default-log_fn-fn-logs",
91
+ "type": "TENCENT_CLS_TOPIC",
92
+ "id": "topic-1",
93
+ "topicName": "insight-poc-tencent-log-default-log_fn-fn-logs"
94
+ }
95
+ ],
96
+ "lastUpdated": "2026-09-11T07:00:32.269Z"
97
+ }
98
+ },
99
+ "shared": {
100
+ "logs.project": {
101
+ "mode": "managed",
102
+ "region": "ap-guangzhou",
103
+ "definition": {
104
+ "logsetName": "insight-poc-app-log-default-cls",
105
+ "region": "ap-guangzhou",
106
+ "stage": "default"
107
+ },
108
+ "instances": [
109
+ {
110
+ "sid": "si:tencent:cls-logset:default:insight-poc-app-log-default-cls",
111
+ "type": "TENCENT_CLS_LOGSET",
112
+ "id": "insight-poc-app-log-default-cls",
113
+ "logsetId": "logset-1"
114
+ }
115
+ ],
116
+ "lastUpdated": "2026-09-11T07:00:32.238Z"
117
+ }
118
+ }
119
+ }
120
+ },
121
+ "lineage": "4654b309-9ae8-42b1-b2ea-c90165a43d7d",
122
+ "serial": 4
123
+ }
@@ -111,7 +111,7 @@
111
111
  ]
112
112
  }
113
113
  ],
114
- "lastUpdated": "2026-09-08T18:00:20.520Z",
114
+ "lastUpdated": "2026-09-11T07:03:41.297Z",
115
115
  "status": "ready"
116
116
  },
117
117
  "events.gateway_event": {
@@ -186,7 +186,7 @@
186
186
  "stageName": "RELEASE"
187
187
  }
188
188
  ],
189
- "lastUpdated": "2026-09-08T18:00:20.522Z"
189
+ "lastUpdated": "2026-09-11T07:03:41.299Z"
190
190
  }
191
191
  },
192
192
  "shared": {
@@ -205,11 +205,11 @@
205
205
  "id": "insight-poc-deploy-app-dev-sls"
206
206
  }
207
207
  ],
208
- "lastUpdated": "2026-09-08T18:00:15.518Z"
208
+ "lastUpdated": "2026-09-11T07:03:36.295Z"
209
209
  }
210
210
  }
211
211
  }
212
212
  },
213
- "lineage": "1f2dbb20-0ba7-4b2a-8ec8-63e12103d223",
213
+ "lineage": "d9474c84-88b9-4426-b4d4-dc9d30f18037",
214
214
  "serial": 2
215
215
  }
@@ -9,6 +9,6 @@
9
9
  "shared": {}
10
10
  }
11
11
  },
12
- "lineage": "7bf9db5a-0d05-4f9c-8d85-bad0750b10eb",
12
+ "lineage": "0b564f96-b540-4da5-9045-3d3ddd5649b8",
13
13
  "serial": 1
14
14
  }
@@ -44,12 +44,12 @@
44
44
  "serverSideEncryptionConfiguration": null
45
45
  }
46
46
  ],
47
- "lastUpdated": "2026-09-08T18:00:27.796Z"
47
+ "lastUpdated": "2026-09-11T07:03:49.044Z"
48
48
  }
49
49
  },
50
50
  "shared": {}
51
51
  }
52
52
  },
53
- "lineage": "3324775c-7bca-4588-84e4-9ae533f28646",
53
+ "lineage": "e6248607-3291-4b99-aa3c-169ce20e0a61",
54
54
  "serial": 4
55
55
  }
@@ -0,0 +1,93 @@
1
+ {
2
+ "version": "3.0",
3
+ "provider": "volcengine",
4
+ "app": "insight-volc-nested-app",
5
+ "service": "insight-volc-nested",
6
+ "stages": {
7
+ "dev": {
8
+ "resources": {
9
+ "functions.insight_poc_fn": {
10
+ "mode": "managed",
11
+ "region": "cn-beijing",
12
+ "definition": {
13
+ "functionName": "insight-poc-fn",
14
+ "runtime": "node20/v1",
15
+ "handler": "index.handler",
16
+ "memorySize": 128,
17
+ "timeout": 30,
18
+ "environment": {
19
+ "NODE_ENV": "production"
20
+ },
21
+ "codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f",
22
+ "role": "trn:iam::123456789012:role/test-role",
23
+ "logConfig": {
24
+ "project": "insight-volc-nested-app-dev-tls",
25
+ "topic": "insight-volc-nested-dev-insight_poc_fn-fn-logs"
26
+ }
27
+ },
28
+ "instances": [
29
+ {
30
+ "type": "VOLCENGINE_VEFAAS_FUNCTION",
31
+ "sid": "si:volcengine:insight-volc-nested:dev:insight-poc-fn",
32
+ "id": "test-function",
33
+ "functionName": "test-function",
34
+ "functionId": "func-123",
35
+ "runtime": "node20/v1",
36
+ "handler": "index.handler",
37
+ "memorySize": 128,
38
+ "timeout": 30,
39
+ "environment": {},
40
+ "status": "Active",
41
+ "createdTime": null,
42
+ "lastUpdateTime": null
43
+ },
44
+ {
45
+ "sid": "si:volcengine:tls_topic:dev:insight-volc-nested-app-dev-tls/insight-volc-nested-dev-insight_poc_fn-fn-logs",
46
+ "id": "insight-volc-nested-app-dev-tls/insight-volc-nested-dev-insight_poc_fn-fn-logs",
47
+ "type": "VOLCENGINE_TLS_TOPIC",
48
+ "topicName": "insight-volc-nested-dev-insight_poc_fn-fn-logs",
49
+ "topicId": "topic-123"
50
+ },
51
+ {
52
+ "sid": "si:volcengine:tls_index:dev:insight-volc-nested-app-dev-tls/insight-volc-nested-dev-insight_poc_fn-fn-logs/index",
53
+ "id": "insight-volc-nested-app-dev-tls/insight-volc-nested-dev-insight_poc_fn-fn-logs/index",
54
+ "type": "VOLCENGINE_TLS_INDEX"
55
+ },
56
+ {
57
+ "sid": "si:volcengine:iam_role:dev:insight-volc-nested-app-insight-volc-nested-dev-ins-role-1qdqnoa",
58
+ "id": "insight-volc-nested-app-insight-volc-nested-dev-ins-role-1qdqnoa",
59
+ "type": "VOLCENGINE_IAM_ROLE",
60
+ "trn": "trn:iam::123456789012:role/test-role",
61
+ "roleName": "test-role",
62
+ "roleId": "role-123"
63
+ }
64
+ ],
65
+ "status": "ready",
66
+ "lastUpdated": "2026-09-11T07:00:35.380Z"
67
+ }
68
+ },
69
+ "shared": {
70
+ "logs.project": {
71
+ "mode": "managed",
72
+ "region": "cn-beijing",
73
+ "definition": {
74
+ "projectName": "insight-volc-nested-app-dev-tls",
75
+ "region": "cn-beijing",
76
+ "stage": "dev"
77
+ },
78
+ "instances": [
79
+ {
80
+ "sid": "si:volcengine:tls:dev:insight-volc-nested-app-dev-tls",
81
+ "type": "VOLCENGINE_TLS_PROJECT",
82
+ "id": "insight-volc-nested-app-dev-tls",
83
+ "projectId": "proj-123"
84
+ }
85
+ ],
86
+ "lastUpdated": "2026-09-11T07:00:32.324Z"
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "lineage": "7b44e48e-2a00-4803-8b4f-acc09fc24bb1",
92
+ "serial": 5
93
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "version": "3.0",
3
+ "provider": "aliyun",
4
+ "app": "nested-drift-app",
5
+ "service": "nested-drift-service",
6
+ "stages": {
7
+ "dev": {
8
+ "resources": {
9
+ "functions.nested_fn": {
10
+ "mode": "managed",
11
+ "region": "cn-hangzhou",
12
+ "definition": {
13
+ "functionName": "nested-drift-fn",
14
+ "runtime": "nodejs18",
15
+ "handler": "index.handler",
16
+ "memorySize": 128,
17
+ "timeout": 10,
18
+ "diskSize": null,
19
+ "environment": {},
20
+ "vpcConfig": {
21
+ "vpcId": "vpc-123",
22
+ "vSwitchIds": [
23
+ "vsw-123"
24
+ ],
25
+ "securityGroupId": "sg-123"
26
+ },
27
+ "gpuConfig": null,
28
+ "customContainerConfig": null,
29
+ "nasConfig": {
30
+ "userId": -1,
31
+ "groupId": -1,
32
+ "mountPoints": [
33
+ {
34
+ "serverAddr": "fs-123.repaired.cn-hangzhou.nas.aliyuncs.com:/",
35
+ "mountDir": "/mnt/data"
36
+ }
37
+ ]
38
+ },
39
+ "logConfig": null,
40
+ "codeHash": "c96b718fa999add5e047823c3d7abfa1397fa8d0075bc6a4f3592785fcd4b76f"
41
+ },
42
+ "instances": [
43
+ {
44
+ "type": "ALIYUN_FC3_FUNCTION",
45
+ "sid": "si:aliyun:fc3:dev:nested-drift-fn",
46
+ "id": "nested-drift-fn",
47
+ "functionName": "nested-drift-fn",
48
+ "functionArn": null,
49
+ "functionId": null,
50
+ "runtime": "nodejs18",
51
+ "handler": "index.handler",
52
+ "memorySize": 128,
53
+ "timeout": 10,
54
+ "diskSize": null,
55
+ "cpu": null,
56
+ "environment": {},
57
+ "vpcConfig": {
58
+ "vpcId": "vpc-123",
59
+ "vSwitchIds": [
60
+ "vsw-123"
61
+ ],
62
+ "securityGroupId": "sg-123"
63
+ },
64
+ "gpuConfig": {},
65
+ "nasConfig": {
66
+ "userId": -1,
67
+ "groupId": -1,
68
+ "mountPoints": [
69
+ {
70
+ "serverAddr": "fs-123.repaired.cn-hangzhou.nas.aliyuncs.com:/",
71
+ "mountDir": "/mnt/data",
72
+ "enableTls": null
73
+ }
74
+ ]
75
+ },
76
+ "logConfig": {},
77
+ "customContainerConfig": {},
78
+ "description": null,
79
+ "internetAccess": null,
80
+ "role": "acs:ram::123456789012:role/nested-drift-app-nested-drift-service-dev-nested-fn-role",
81
+ "codeChecksum": null,
82
+ "codeSize": null,
83
+ "createdTime": null,
84
+ "lastModifiedTime": null,
85
+ "state": "Running",
86
+ "stateReason": null,
87
+ "stateReasonCode": null,
88
+ "lastUpdateStatus": null,
89
+ "lastUpdateStatusReason": null,
90
+ "lastUpdateStatusReasonCode": null,
91
+ "tags": [
92
+ {
93
+ "key": null,
94
+ "value": null
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "sid": "si:aliyun:ram_role:dev:nested-drift-app-nested-drift-service-dev-nested-fn-role",
100
+ "id": "nested-drift-app-nested-drift-service-dev-nested-fn-role",
101
+ "type": "ALIYUN_RAM_ROLE",
102
+ "roleArn": "acs:ram::123456789012:role/nested-drift-app-nested-drift-service-dev-nested-fn-role",
103
+ "roleName": "nested-drift-app-nested-drift-service-dev-nested-fn-role",
104
+ "roleId": "role-123",
105
+ "arn": "acs:ram::123456789012:role/nested-drift-app-nested-drift-service-dev-nested-fn-role",
106
+ "policyName": "nested-drift-app-nested-drift-service-dev-nested-fn-role-policy",
107
+ "trustedServices": [
108
+ "fc.aliyuncs.com"
109
+ ]
110
+ },
111
+ {
112
+ "sid": "si:aliyun:ecs_security_group:dev:sg-123",
113
+ "id": "sg-123",
114
+ "type": "ALIYUN_ECS_SECURITY_GROUP",
115
+ "securityGroupId": "sg-123",
116
+ "securityGroupName": "nested-drift-sg"
117
+ },
118
+ {
119
+ "sid": "si:aliyun:nas_access_group:dev:nested-drift-fn-dev-nas-access-mnt-data",
120
+ "id": "nested-drift-fn-dev-nas-access-mnt-data",
121
+ "type": "ALIYUN_NAS_ACCESS_GROUP",
122
+ "accessRules": [
123
+ {}
124
+ ]
125
+ },
126
+ {
127
+ "sid": "si:aliyun:nas_file_system:dev:fs-123",
128
+ "id": "fs-123",
129
+ "type": "ALIYUN_NAS_FILE_SYSTEM",
130
+ "fileSystemId": "fs-123"
131
+ },
132
+ {
133
+ "sid": "si:aliyun:nas_mount_target:dev:fs-123/fs-123.cn-hangzhou.nas.aliyuncs.com",
134
+ "id": "fs-123/fs-123.repaired.cn-hangzhou.nas.aliyuncs.com",
135
+ "type": "ALIYUN_NAS_MOUNT_TARGET",
136
+ "mountTargetDomain": "fs-123.cn-hangzhou.nas.aliyuncs.com",
137
+ "accessGroupName": "nested-drift-fn-dev-nas-access-mnt-data"
138
+ }
139
+ ],
140
+ "lastUpdated": "2026-09-11T07:00:32.208Z"
141
+ }
142
+ },
143
+ "shared": {}
144
+ }
145
+ },
146
+ "lineage": "697cdcc1-a370-401d-b26d-b27c3f78d4a1",
147
+ "serial": 5
148
+ }
@@ -118,7 +118,7 @@
118
118
  ]
119
119
  }
120
120
  ],
121
- "lastUpdated": "2026-09-08T17:59:12.175Z",
121
+ "lastUpdated": "2026-09-11T07:02:27.775Z",
122
122
  "status": "ready"
123
123
  }
124
124
  },
@@ -138,11 +138,11 @@
138
138
  "id": "role-reconcile-test-app-dev-sls"
139
139
  }
140
140
  ],
141
- "lastUpdated": "2026-09-08T17:59:07.174Z"
141
+ "lastUpdated": "2026-09-11T07:02:22.774Z"
142
142
  }
143
143
  }
144
144
  }
145
145
  },
146
- "lineage": "899f83f9-c924-4b09-9f3d-06d5d26ce0ad",
146
+ "lineage": "e534bbf0-81f3-4889-9a6c-aad9525fb6da",
147
147
  "serial": 2
148
148
  }
package/CHANGELOG.md CHANGED
@@ -60,6 +60,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
60
60
  - Localized the BUCKET_STORE backend error message to the i18n system
61
61
  ([#222](https://github.com/geek-fun/serverlessinsight/issues/222)).
62
62
 
63
+ ## [0.9.0] - 2026-09-11
64
+
65
+ ### Added
66
+
67
+ - `si plan` — also available as the new `si diff` alias — now diffs against
68
+ **live cloud state**: every update renders a complete live→desired,
69
+ field-level comparison with per-field Add/Modify/Remove annotations, so
70
+ out-of-config drift and pure-drift updates are explained instead of shown as
71
+ empty ([#246](https://github.com/geek-fun/serverlessinsight/issues/246)).
72
+ - Drifted resources report a probe-level reason for the drift, and a failed
73
+ live read now surfaces a warning and degrades to a drifted create instead of
74
+ silently passing.
75
+
76
+ ### Fixed
77
+
78
+ - Aliyun: deploy container-only functions that define no code payload — the
79
+ code zip/OSS upload is skipped for container-image functions, and configs
80
+ that define both container and code (or neither) are rejected during
81
+ validation ([#239](https://github.com/geek-fun/serverlessinsight/issues/239)).
82
+ - Aliyun: recreated NAS mount targets bind to the normalized access-group name
83
+ (`mnt-data`, not `/mnt/data`) and are tracked with their live domain after
84
+ repair, so the repair succeeds on real providers and later deploys/destroys
85
+ follow the target that actually exists
86
+ ([#234](https://github.com/geek-fun/serverlessinsight/issues/234)).
87
+
88
+ ### Documentation
89
+
90
+ - Added ADR-004 describing the plugin architecture for resource providers.
91
+
63
92
  ## [0.7.2] - 2026-06-26
64
93
 
65
94
  ### Fixed
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geek-fun/serverlessinsight",
3
- "version": "0.8.8",
3
+ "version": "0.9.0",
4
4
  "description": "Full life cycle cross providers serverless application management for your fast-growing business.",
5
5
  "homepage": "https://serverlessinsight.com",
6
6
  "main": "dist/src/index.js",
@@ -148,7 +148,9 @@ const deploy = async (options) => {
148
148
  try {
149
149
  await backend.withLock('deploy', async () => {
150
150
  try {
151
- await (0, stack_1.deployStack)(iac, backend);
151
+ // Issue #246: execute exactly the plan that was displayed and
152
+ // approved above — no second plan computation mid-deploy.
153
+ await (0, stack_1.deployStack)(iac, backend, { items: planResult.items });
152
154
  }
153
155
  catch (err) {
154
156
  // The deployment FAILED, but the console still needs the plan
@@ -139,6 +139,31 @@ program
139
139
  refresh,
140
140
  });
141
141
  }));
142
+ // Issue #246: `diff` is the primary verb users say — it runs the same plan
143
+ // flow; `plan` stays for compatibility.
144
+ program
145
+ .command('diff')
146
+ .description('show changes between your config and the live cloud (alias of plan)')
147
+ .option('-f, --file <path>', 'specify the yaml file')
148
+ .option('-s, --stage <stage>', 'specify the stage')
149
+ .option('-r, --region <region>', 'specify the region')
150
+ .option('-v, --provider <provider>', 'specify the provider')
151
+ .option('-k, --accessKeyId <accessKeyId>', 'specify the AccessKeyId')
152
+ .option('-x, --accessKeySecret <accessKeySecret>', 'specify the AccessKeySecret')
153
+ .option('-n, --securityToken <securityToken>', 'specify the SecurityToken')
154
+ .option('--no-refresh', 'skip live cloud probing; diff config against state only (no drift detection)')
155
+ .action(actionWrapper('diff', async ({ stage, file, region, provider, accessKeyId, accessKeySecret, securityToken, refresh, }) => {
156
+ await (0, plan_1.plan)({
157
+ stage,
158
+ location: file,
159
+ region,
160
+ provider,
161
+ accessKeyId,
162
+ accessKeySecret,
163
+ securityToken,
164
+ refresh,
165
+ });
166
+ }));
142
167
  program
143
168
  .command('deploy')
144
169
  .description('deploy serverless Iac yaml')
@@ -48,6 +48,11 @@ const buildCodeLocation = (codePath, ossCode) => {
48
48
  ossObjectName: ossCode.ossObjectName,
49
49
  });
50
50
  }
51
+ if (!codePath) {
52
+ // Container-only functions take no zip — the image lives in
53
+ // customContainerConfig; FC 3.0 rejects a code payload for them.
54
+ return undefined;
55
+ }
51
56
  const codeBuffer = node_fs_1.default.readFileSync(codePath);
52
57
  const codeBase64 = codeBuffer.toString('base64');
53
58
  return new fc.InputCodeLocation({ zipFile: codeBase64 });