@geek-fun/serverlessinsight 0.8.9 → 0.9.1

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 (102) 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/README.md +2 -2
  13. package/README.zh-CN.md +2 -2
  14. package/dist/package.json +2 -2
  15. package/dist/src/commands/deploy.js +12 -4
  16. package/dist/src/commands/destroy.js +8 -2
  17. package/dist/src/commands/forceUnlock.js +5 -5
  18. package/dist/src/commands/index.js +114 -53
  19. package/dist/src/commands/login.js +12 -1
  20. package/dist/src/commands/migrate.js +287 -0
  21. package/dist/src/commands/plan.js +7 -1
  22. package/dist/src/commands/show.js +37 -25
  23. package/dist/src/common/aliyunClient/apigwOperations.js +4 -4
  24. package/dist/src/common/aliyunClient/ecsOperations.js +22 -13
  25. package/dist/src/common/aliyunClient/fc3Operations.js +12 -3
  26. package/dist/src/common/aliyunClient/nasOperations.js +4 -3
  27. package/dist/src/common/aliyunClient/ossOperations.js +52 -8
  28. package/dist/src/common/aliyunClient/slsOperations.js +3 -2
  29. package/dist/src/common/aliyunClient/tablestoreOperations.js +22 -11
  30. package/dist/src/common/apiClient.js +22 -5
  31. package/dist/src/common/context.js +5 -4
  32. package/dist/src/common/lockManager.js +1 -1
  33. package/dist/src/common/migrationMarker.js +34 -0
  34. package/dist/src/common/nameBuilder.js +13 -1
  35. package/dist/src/common/planCompare.js +31 -1
  36. package/dist/src/common/planFormatter.js +69 -54
  37. package/dist/src/common/refreshPlanner.js +31 -8
  38. package/dist/src/common/runtimeMapper.js +7 -3
  39. package/dist/src/common/stateBackend/cosStateBackend.js +1 -1
  40. package/dist/src/common/stateBackend/index.js +5 -2
  41. package/dist/src/common/stateBackend/localStateBackend.js +8 -2
  42. package/dist/src/common/stateBackend/ossStateBackend.js +1 -1
  43. package/dist/src/common/stateBackend/remoteStateBackend.js +19 -2
  44. package/dist/src/common/stateBackend/saasStateBackend.js +83 -5
  45. package/dist/src/common/stateManager.js +56 -5
  46. package/dist/src/common/tencentClient/cosOperations.js +1 -1
  47. package/dist/src/common/tencentClient/scfOperations.js +2 -1
  48. package/dist/src/common/volcengineClient/apigwOperations.js +2 -2
  49. package/dist/src/common/volcengineClient/index.js +6 -2
  50. package/dist/src/common/volcengineClient/vefaasOperations.js +3 -3
  51. package/dist/src/lang/en.js +231 -7
  52. package/dist/src/lang/zh-CN.js +230 -7
  53. package/dist/src/parser/index.js +1 -1
  54. package/dist/src/stack/aliyunStack/apigwExecutor.js +2 -2
  55. package/dist/src/stack/aliyunStack/apigwPlanner.js +26 -5
  56. package/dist/src/stack/aliyunStack/apigwResource.js +22 -10
  57. package/dist/src/stack/aliyunStack/databaseExecutor.js +5 -5
  58. package/dist/src/stack/aliyunStack/databasePlanner.js +8 -3
  59. package/dist/src/stack/aliyunStack/databaseResource.js +28 -12
  60. package/dist/src/stack/aliyunStack/deployer.js +30 -13
  61. package/dist/src/stack/aliyunStack/esServerlessTypes.js +2 -1
  62. package/dist/src/stack/aliyunStack/fc3Executor.js +2 -2
  63. package/dist/src/stack/aliyunStack/fc3Planner.js +46 -25
  64. package/dist/src/stack/aliyunStack/fc3Resource.js +80 -31
  65. package/dist/src/stack/aliyunStack/ossExecutor.js +2 -2
  66. package/dist/src/stack/aliyunStack/ossPlanner.js +6 -1
  67. package/dist/src/stack/aliyunStack/ossResource.js +14 -3
  68. package/dist/src/stack/aliyunStack/rdsTypes.js +5 -1
  69. package/dist/src/stack/aliyunStack/tablestoreExecutor.js +2 -2
  70. package/dist/src/stack/aliyunStack/tablestorePlanner.js +2 -1
  71. package/dist/src/stack/aliyunStack/tablestoreResource.js +5 -4
  72. package/dist/src/stack/aliyunStack/tablestoreTypes.js +3 -2
  73. package/dist/src/stack/deploy.js +12 -7
  74. package/dist/src/stack/localStack/functionRunner.js +5 -4
  75. package/dist/src/stack/scfStack/cosExecutor.js +2 -2
  76. package/dist/src/stack/scfStack/cosPlanner.js +6 -1
  77. package/dist/src/stack/scfStack/cosResource.js +8 -4
  78. package/dist/src/stack/scfStack/deployer.js +21 -6
  79. package/dist/src/stack/scfStack/esServerlessExecutor.js +5 -5
  80. package/dist/src/stack/scfStack/esServerlessPlanner.js +6 -1
  81. package/dist/src/stack/scfStack/esServerlessResource.js +12 -4
  82. package/dist/src/stack/scfStack/esServerlessTypes.js +2 -1
  83. package/dist/src/stack/scfStack/scfExecutor.js +2 -2
  84. package/dist/src/stack/scfStack/scfPlanner.js +26 -27
  85. package/dist/src/stack/scfStack/scfResource.js +38 -13
  86. package/dist/src/stack/scfStack/tdsqlcExecutor.js +5 -5
  87. package/dist/src/stack/scfStack/tdsqlcPlanner.js +6 -1
  88. package/dist/src/stack/scfStack/tdsqlcResource.js +12 -4
  89. package/dist/src/stack/volcengineStack/apigwExecutor.js +2 -2
  90. package/dist/src/stack/volcengineStack/apigwPlanner.js +5 -1
  91. package/dist/src/stack/volcengineStack/apigwResource.js +7 -4
  92. package/dist/src/stack/volcengineStack/deployer.js +15 -4
  93. package/dist/src/stack/volcengineStack/tosExecutor.js +2 -2
  94. package/dist/src/stack/volcengineStack/tosPlanner.js +6 -1
  95. package/dist/src/stack/volcengineStack/tosResource.js +11 -4
  96. package/dist/src/stack/volcengineStack/vefaasExecutor.js +2 -2
  97. package/dist/src/stack/volcengineStack/vefaasPlanner.js +39 -11
  98. package/dist/src/stack/volcengineStack/vefaasResource.js +11 -3
  99. package/dist/src/validator/rootSchema.js +29 -2
  100. package/dist/src/validator/semanticValidation.js +24 -0
  101. package/dist/tsconfig.tsbuildinfo +1 -1
  102. package/package.json +2 -2
@@ -9,6 +9,6 @@
9
9
  "shared": {}
10
10
  }
11
11
  },
12
- "lineage": "6263803b-7a9b-4c63-bd6d-2b651889065c",
12
+ "lineage": "4b92b5c0-d6aa-474a-9d3e-6d5ddd7cd74d",
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-09T03:54:49.979Z"
25
+ "lastUpdated": "2026-09-28T07:53:57.646Z"
26
26
  }
27
27
  }
28
28
  }
29
29
  },
30
- "lineage": "cd48c96b-c142-4bb9-ad37-45ae62a374d5",
30
+ "lineage": "f4e072c4-527c-4b17-94e2-5448b7210f41",
31
31
  "serial": 3
32
32
  }
@@ -83,12 +83,12 @@
83
83
  "id": "test-fn"
84
84
  }
85
85
  ],
86
- "lastUpdated": "2026-09-09T03:55:26.686Z"
86
+ "lastUpdated": "2026-09-28T07:54:35.152Z"
87
87
  }
88
88
  },
89
89
  "shared": {}
90
90
  }
91
91
  },
92
- "lineage": "4c4e86be-cceb-4748-a6c9-f5126ae02f03",
92
+ "lineage": "602f671c-2492-49f2-af5a-ab73426a2fd4",
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-28T07:51:33.333Z"
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-28T07:51:33.303Z"
117
+ }
118
+ }
119
+ }
120
+ },
121
+ "lineage": "3a6eb07a-93b9-49d4-8933-eec9b09a743e",
122
+ "serial": 4
123
+ }
@@ -111,7 +111,7 @@
111
111
  ]
112
112
  }
113
113
  ],
114
- "lastUpdated": "2026-09-09T03:55:39.018Z",
114
+ "lastUpdated": "2026-09-28T07:54:47.725Z",
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-09T03:55:39.019Z"
189
+ "lastUpdated": "2026-09-28T07:54:47.727Z"
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-09T03:55:34.015Z"
208
+ "lastUpdated": "2026-09-28T07:54:42.722Z"
209
209
  }
210
210
  }
211
211
  }
212
212
  },
213
- "lineage": "657df5d6-2d8c-4e5c-9ff4-3bd32560eb7d",
213
+ "lineage": "952498ea-991d-4a18-9649-95dfd6eecf3a",
214
214
  "serial": 2
215
215
  }
@@ -9,6 +9,6 @@
9
9
  "shared": {}
10
10
  }
11
11
  },
12
- "lineage": "f0d40b88-0046-4b49-898f-ce1b50312659",
12
+ "lineage": "4be35f22-dcad-4ae5-81ec-8af8a6e7dcf9",
13
13
  "serial": 1
14
14
  }
@@ -44,12 +44,12 @@
44
44
  "serverSideEncryptionConfiguration": null
45
45
  }
46
46
  ],
47
- "lastUpdated": "2026-09-09T03:55:46.801Z"
47
+ "lastUpdated": "2026-09-28T07:54:55.881Z"
48
48
  }
49
49
  },
50
50
  "shared": {}
51
51
  }
52
52
  },
53
- "lineage": "5564129a-8c36-4321-83b5-d996a4e7941d",
53
+ "lineage": "788ce9fe-2b75-413e-9546-7852ccadef9b",
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-28T07:51:36.440Z"
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-28T07:51:33.388Z"
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "lineage": "6c068bd3-79b2-42b0-be6f-b41bf086db9a",
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-28T07:51:33.274Z"
141
+ }
142
+ },
143
+ "shared": {}
144
+ }
145
+ },
146
+ "lineage": "18c3d191-8cbc-4c3d-bd8b-aa4b01a7ca8c",
147
+ "serial": 5
148
+ }
@@ -118,7 +118,7 @@
118
118
  ]
119
119
  }
120
120
  ],
121
- "lastUpdated": "2026-09-09T03:54:26.028Z",
121
+ "lastUpdated": "2026-09-28T07:53:31.919Z",
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-09T03:54:21.027Z"
141
+ "lastUpdated": "2026-09-28T07:53:26.917Z"
142
142
  }
143
143
  }
144
144
  }
145
145
  },
146
- "lineage": "7f0a433e-535b-45c8-a718-a94b154f82ce",
146
+ "lineage": "0dbe5765-cfd8-4a3c-9da8-a567b567ffe8",
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/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
  <img src="https://img.shields.io/badge/TypeScript-3178C6&logo=typescript&logoColor=white"/>
20
20
  <img src="https://img.shields.io/badge/Alibaba%20Cloud-FF6A00&logo=alibabacloud&logoColor=white"/>
21
21
  <img src="https://img.shields.io/badge/Tencent%20Cloud-0A9AED&logo=tencentqq&logoColor=white"/>
22
- <img src="https://img.shields.io/badge/Huawei%20Cloud-FF0000&logo=hauwei&logoColor=white"/>
22
+ <img src="https://img.shields.io/badge/Huawei%20Cloud-FF0000?logo=huawei&logoColor=white"/>
23
23
  <img src="https://img.shields.io/badge/AWS-232F3E&logo=amazonwebservices&logoColor=white"/>
24
24
  </p>
25
25
 
@@ -65,7 +65,7 @@ Define your infrastructure once in YAML and deploy across Alibaba Cloud, Tencent
65
65
  | **Alibaba Cloud** | ✅ FC3 | ✅ API Gateway | ✅ OSS | ✅ RDS, OTS, ESS | Stable |
66
66
  | **Tencent Cloud** | ✅ SCF | 🚧 Coming Soon | ✅ COS | ✅ TDSQL-C | Stable |
67
67
  | **Volcengine** | ✅ veFaaS | ✅ API Gateway | ✅ TOS | — | Stable |
68
- | **Huawei Cloud** | ✅ FunctionGraph | 🚧 Coming Soon | 🚧 Coming Soon | 🚧 Coming Soon | Beta |
68
+ | **Huawei Cloud** | 🚧 Coming Soon | 🚧 Coming Soon | 🚧 Coming Soon | 🚧 Coming Soon | Planned |
69
69
  | **AWS** | 🔜 Planned | 🔜 Planned | 🔜 Planned | 🔜 Planned | Planned |
70
70
  | **Azure** | 🔜 Planned | 🔜 Planned | 🔜 Planned | 🔜 Planned | Planned |
71
71
  | **Google Cloud** | 🔜 Planned | 🔜 Planned | 🔜 Planned | 🔜 Planned | Planned |
package/README.zh-CN.md CHANGED
@@ -19,7 +19,7 @@
19
19
  <img src="https://img.shields.io/badge/TypeScript-3178C6&logo=typescript&logoColor=white"/>
20
20
  <img src="https://img.shields.io/badge/Alibaba%20Cloud-FF6A00&logo=alibabacloud&logoColor=white"/>
21
21
  <img src="https://img.shields.io/badge/Tencent%20Cloud-0A9AED&logo=tencentqq&logoColor=white"/>
22
- <img src="https://img.shields.io/badge/Huawei%20Cloud-FF0000&logo=hauwei&logoColor=white"/>
22
+ <img src="https://img.shields.io/badge/Huawei%20Cloud-FF0000?logo=huawei&logoColor=white"/>
23
23
  <img src="https://img.shields.io/badge/AWS-232F3E&logo=amazonwebservices&logoColor=white"/>
24
24
  </p>
25
25
 
@@ -65,7 +65,7 @@ si --version
65
65
  | **阿里云** | ✅ FC3 | ✅ API 网关 | ✅ OSS | ✅ RDS, OTS, ESS | 稳定 |
66
66
  | **腾讯云** | ✅ SCF | 🚧 即将推出 | ✅ COS | ✅ TDSQL-C | 稳定 |
67
67
  | **火山引擎** | ✅ veFaaS | ✅ API 网关 | ✅ TOS | — | 稳定 |
68
- | **华为云** | ✅ FunctionGraph | 🚧 即将推出 | 🚧 即将推出 | 🚧 即将推出 | 测试版 |
68
+ | **华为云** | 🚧 即将推出 | 🚧 即将推出 | 🚧 即将推出 | 🚧 即将推出 | 计划中 |
69
69
  | **AWS** | 🔜 计划中 | 🔜 计划中 | 🔜 计划中 | 🔜 计划中 | 计划中 |
70
70
  | **Azure** | 🔜 计划中 | 🔜 计划中 | 🔜 计划中 | 🔜 计划中 | 计划中 |
71
71
  | **Google Cloud** | 🔜 计划中 | 🔜 计划中 | 🔜 计划中 | 🔜 计划中 | 计划中 |
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@geek-fun/serverlessinsight",
3
- "version": "0.8.9",
4
- "description": "Full life cycle cross providers serverless application management for your fast-growing business.",
3
+ "version": "0.9.1",
4
+ "description": "Full-lifecycle serverless IaC — one open-source platform to develop, deploy and operate serverless across clouds.",
5
5
  "homepage": "https://serverlessinsight.com",
6
6
  "main": "dist/src/index.js",
7
7
  "types": "dist/src/index.d.ts",
@@ -49,8 +49,7 @@ const volcengineStack_1 = require("../stack/volcengineStack");
49
49
  const lang_1 = require("../lang");
50
50
  const askConfirmation = async () => {
51
51
  if (!process.stdin.isTTY) {
52
- throw new Error('Interactive confirmation required but stdin is not a TTY. ' +
53
- 'Use --auto-approve (-y) to skip confirmation in non-interactive environments.');
52
+ throw new Error(lang_1.lang.__('CONFIRMATION_STDIN_NOT_TTY'));
54
53
  }
55
54
  const rl = readline.createInterface({
56
55
  input: process.stdin,
@@ -79,7 +78,14 @@ const deploy = async (options) => {
79
78
  const context = (0, common_1.getContext)();
80
79
  const iac = (0, parser_1.revalYaml)(iacLocation, context);
81
80
  (0, common_1.setIac)(iac);
82
- const backend = (0, stateBackend_1.createStateBackend)(iac.backend, { ...context, siApiKey: options.siApiKey });
81
+ // D-4: deploy mutates state — a migrated (managedBy=saas) legacy state must
82
+ // fail closed here and route the user to the Console backend.
83
+ const backend = (0, stateBackend_1.createStateBackend)(iac.backend, {
84
+ ...context,
85
+ declaredOrg: iac.org,
86
+ siApiKey: options.siApiKey,
87
+ migrationMarker: 'refuse',
88
+ });
83
89
  // ADR-005: wire the backend's event reporter into the global context so
84
90
  // executors can emit per-resource deployment events via context.reportEvent.
85
91
  if (backend.reportEvent) {
@@ -148,7 +154,9 @@ const deploy = async (options) => {
148
154
  try {
149
155
  await backend.withLock('deploy', async () => {
150
156
  try {
151
- await (0, stack_1.deployStack)(iac, backend);
157
+ // Issue #246: execute exactly the plan that was displayed and
158
+ // approved above — no second plan computation mid-deploy.
159
+ await (0, stack_1.deployStack)(iac, backend, { items: planResult.items });
152
160
  }
153
161
  catch (err) {
154
162
  // The deployment FAILED, but the console still needs the plan
@@ -26,7 +26,13 @@ const destroyStack = async (options) => {
26
26
  provider: context.provider,
27
27
  region: context.region,
28
28
  }));
29
- const backend = (0, stateBackend_1.createStateBackend)(iac.backend, context);
29
+ // D-4: destroy mutates state — a migrated (managedBy=saas) legacy state must
30
+ // fail closed here and route the user to the Console backend.
31
+ const backend = (0, stateBackend_1.createStateBackend)(iac.backend, {
32
+ ...context,
33
+ declaredOrg: iac.org,
34
+ migrationMarker: 'refuse',
35
+ });
30
36
  // Initialize backend stage/deployment context before withLock. SaaS backends
31
37
  // need loadState() to provision the deployment and set the active stage.
32
38
  await backend.loadState(iac.provider.name, context.app, context.service, context.stage);
@@ -80,7 +86,7 @@ const destroyStack = async (options) => {
80
86
  await (0, volcengineStack_1.destroyVolcengineStack)(backend);
81
87
  }
82
88
  else {
83
- throw new Error(`Unsupported provider: ${iac.provider.name}`);
89
+ throw new Error(lang_1.lang.__('UNSUPPORTED_PROVIDER', { provider: iac.provider.name }));
84
90
  }
85
91
  }, {}, (lockId) => {
86
92
  currentLockId = lockId;