@geek-fun/serverlessinsight 0.9.7 → 0.9.8
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/AGENTS.md +1 -0
- package/CHANGELOG.md +68 -6
- package/README.md +51 -10
- package/README.zh-CN.md +44 -10
- package/dist/package.json +2 -1
- package/dist/src/commands/deploy.js +3 -1
- package/dist/src/commands/destroy.js +3 -1
- package/dist/src/commands/forceUnlock.js +2 -2
- package/dist/src/commands/index.js +28 -8
- package/dist/src/commands/local.js +3 -2
- package/dist/src/commands/login.js +120 -37
- package/dist/src/commands/logout.js +3 -5
- package/dist/src/commands/migrate.js +17 -10
- package/dist/src/commands/plan.js +5 -1
- package/dist/src/commands/show.js +3 -1
- package/dist/src/commands/whoami.js +24 -6
- package/dist/src/common/aliyunClient/cdnOperations.js +64 -29
- package/dist/src/common/aliyunClient/dnsOperations.js +10 -0
- package/dist/src/common/aliyunClient/fc3Operations.js +36 -7
- package/dist/src/common/apiClient.js +1 -0
- package/dist/src/common/bindingReconcile.js +182 -0
- package/dist/src/common/cdnCapabilities.js +80 -0
- package/dist/src/common/certUtils.js +44 -5
- package/dist/src/common/consoleLines.js +126 -0
- package/dist/src/common/constants.js +4 -2
- package/dist/src/common/credentialStore.js +136 -39
- package/dist/src/common/domainUtils.js +23 -4
- package/dist/src/common/functionDefinition.js +4 -1
- package/dist/src/common/functionDomainCapabilities.js +28 -0
- package/dist/src/common/functionDomainReconcile.js +197 -0
- package/dist/src/common/lineContext.js +164 -0
- package/dist/src/common/planCapabilities.js +14 -27
- package/dist/src/common/planCompare.js +8 -7
- package/dist/src/common/planFormatter.js +71 -37
- package/dist/src/common/stateBackend/index.js +24 -16
- package/dist/src/common/stateBackend/saasStateBackend.js +46 -53
- package/dist/src/common/stateBackend/tosStateBackend.js +100 -0
- package/dist/src/common/tencentClient/cdnOperations.js +165 -0
- package/dist/src/common/tencentClient/cosOperations.js +18 -2
- package/dist/src/common/tencentClient/dnspodOperations.js +12 -0
- package/dist/src/common/tencentClient/index.js +16 -0
- package/dist/src/common/tencentClient/scfOperations.js +23 -1
- package/dist/src/common/tencentClient/sslOperations.js +147 -77
- package/dist/src/common/volcengineClient/cdnOperations.js +221 -0
- package/dist/src/common/volcengineClient/dnsOperations.js +132 -0
- package/dist/src/common/volcengineClient/index.js +28 -0
- package/dist/src/common/volcengineClient/tosOperations.js +131 -1
- package/dist/src/lang/en.js +89 -10
- package/dist/src/lang/zh-CN.js +90 -9
- package/dist/src/parser/bucketParser.js +22 -79
- package/dist/src/parser/functionParser.js +13 -9
- package/dist/src/stack/aliyunStack/apigwResource.js +2 -1
- package/dist/src/stack/aliyunStack/fc3Planner.js +32 -12
- package/dist/src/stack/aliyunStack/fc3Resource.js +169 -121
- package/dist/src/stack/aliyunStack/ossPlanner.js +12 -4
- package/dist/src/stack/aliyunStack/ossResource.js +484 -501
- package/dist/src/stack/aliyunStack/ossTypes.js +21 -67
- package/dist/src/stack/localStack/aliyunFc.js +59 -9
- package/dist/src/stack/localStack/bucket.js +75 -28
- package/dist/src/stack/localStack/event.js +33 -24
- package/dist/src/stack/localStack/httpAdapter.js +1 -13
- package/dist/src/stack/localStack/index.js +2 -2
- package/dist/src/stack/localStack/localServer.js +85 -7
- package/dist/src/stack/scfStack/cosPlanner.js +11 -3
- package/dist/src/stack/scfStack/cosResource.js +339 -161
- package/dist/src/stack/scfStack/cosTypes.js +25 -34
- package/dist/src/stack/scfStack/scfPlanner.js +26 -8
- package/dist/src/stack/scfStack/scfResource.js +191 -124
- package/dist/src/stack/volcengineStack/tosPlanner.js +13 -1
- package/dist/src/stack/volcengineStack/tosResource.js +398 -7
- package/dist/src/stack/volcengineStack/tosTypes.js +27 -0
- package/dist/src/stack/volcengineStack/vefaasTypes.js +1 -1
- package/dist/src/types/domains/state.js +6 -0
- package/dist/src/validator/bucketSchema.js +35 -113
- package/dist/src/validator/cdnSchema.js +30 -0
- package/dist/src/validator/eventSchema.js +2 -20
- package/dist/src/validator/functionSchema.js +55 -8
- package/dist/src/validator/rootSchema.js +3 -3
- package/dist/src/validator/semanticValidation.js +504 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/release-notes.md +82 -6
- package/samples/aliyun-poc-api-cdn.yml +1 -1
- package/samples/aliyun-poc-bucket-cdn.yml +28 -26
- package/samples/aliyun-poc-domain.yml +2 -1
- package/samples/volcengine-poc-tos-state.yml +36 -0
|
@@ -33,12 +33,24 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.createTosOperations = void 0;
|
|
36
|
+
exports.createTosOperations = exports.getTosAccelerateEndpoint = exports.getTosEndpoint = void 0;
|
|
37
37
|
const fs = __importStar(require("node:fs"));
|
|
38
38
|
const path = __importStar(require("node:path"));
|
|
39
39
|
const logger_1 = require("../logger");
|
|
40
40
|
const lang_1 = require("../../lang");
|
|
41
41
|
const TOS_ACL_VALUES = ['private', 'public-read', 'public-read-write'];
|
|
42
|
+
/**
|
|
43
|
+
* Virtual-host style bucket endpoint (TOS only supports virtual-style access
|
|
44
|
+
* for custom domains: `<bucket>.tos.<region>.volces.com`).
|
|
45
|
+
*/
|
|
46
|
+
const getTosEndpoint = (bucketName, region) => `${bucketName}.tos-${region}.volces.com`;
|
|
47
|
+
exports.getTosEndpoint = getTosEndpoint;
|
|
48
|
+
/**
|
|
49
|
+
* Region-independent transfer-acceleration endpoint
|
|
50
|
+
* (`<bucket>.tos-accelerate.volces.com`).
|
|
51
|
+
*/
|
|
52
|
+
const getTosAccelerateEndpoint = (bucketName) => `${bucketName}.tos-accelerate.volces.com`;
|
|
53
|
+
exports.getTosAccelerateEndpoint = getTosAccelerateEndpoint;
|
|
42
54
|
const getContentType = (filePath) => {
|
|
43
55
|
const ext = path.extname(filePath).toLowerCase();
|
|
44
56
|
const contentTypes = {
|
|
@@ -524,6 +536,124 @@ const createTosOperations = (client, _region) => {
|
|
|
524
536
|
throw error;
|
|
525
537
|
}
|
|
526
538
|
},
|
|
539
|
+
// TOS custom-domain binding (issue #294). REST action: PUT {bucket}?customdomain
|
|
540
|
+
// with body { CustomDomainRule: { Domain, CertId?, Protocol? } }; the domain's
|
|
541
|
+
// DNS record must point at the bucket endpoint (si manages the record itself).
|
|
542
|
+
putBucketCustomDomain: async (bucketName, domain, options) => {
|
|
543
|
+
if (!client) {
|
|
544
|
+
throw new Error(lang_1.lang.__('VOLCENGINE_TOS_CLIENT_NOT_INITIALIZED'));
|
|
545
|
+
}
|
|
546
|
+
await client.fetchOpenAPI({
|
|
547
|
+
Action: 'PutBucketCustomDomain',
|
|
548
|
+
Version: '2018-08-01',
|
|
549
|
+
method: 'PUT',
|
|
550
|
+
headers: {
|
|
551
|
+
'content-type': 'application/json',
|
|
552
|
+
},
|
|
553
|
+
query: {
|
|
554
|
+
Bucket: bucketName,
|
|
555
|
+
},
|
|
556
|
+
data: {
|
|
557
|
+
CustomDomainRule: {
|
|
558
|
+
Domain: domain,
|
|
559
|
+
...(options?.certId ? { CertId: options.certId } : {}),
|
|
560
|
+
...(options?.protocol ? { Protocol: options.protocol } : {}),
|
|
561
|
+
},
|
|
562
|
+
},
|
|
563
|
+
});
|
|
564
|
+
logger_1.logger.info(lang_1.lang.__('TOS_CUSTOM_DOMAIN_BOUND', { bucketName, domain }));
|
|
565
|
+
},
|
|
566
|
+
getBucketCustomDomains: async (bucketName) => {
|
|
567
|
+
if (!client) {
|
|
568
|
+
throw new Error(lang_1.lang.__('VOLCENGINE_TOS_CLIENT_NOT_INITIALIZED'));
|
|
569
|
+
}
|
|
570
|
+
try {
|
|
571
|
+
const response = await client.fetchOpenAPI({
|
|
572
|
+
Action: 'GetBucketCustomDomain',
|
|
573
|
+
Version: '2018-08-01',
|
|
574
|
+
method: 'GET',
|
|
575
|
+
query: {
|
|
576
|
+
Bucket: bucketName,
|
|
577
|
+
},
|
|
578
|
+
});
|
|
579
|
+
const result = (response.Result || {});
|
|
580
|
+
const rules = (result.CustomDomainRules ?? []);
|
|
581
|
+
return rules.map((rule) => ({
|
|
582
|
+
domain: rule.Domain,
|
|
583
|
+
cname: rule.Cname,
|
|
584
|
+
certId: rule.CertId,
|
|
585
|
+
certStatus: rule.CertStatus,
|
|
586
|
+
protocol: rule.Protocol,
|
|
587
|
+
forbidden: rule.Forbidden,
|
|
588
|
+
}));
|
|
589
|
+
}
|
|
590
|
+
catch (error) {
|
|
591
|
+
if (error &&
|
|
592
|
+
typeof error === 'object' &&
|
|
593
|
+
'code' in error &&
|
|
594
|
+
(error.code === 'NoSuchCustomDomainConfiguration' || error.code === 'ResourceNotFound')) {
|
|
595
|
+
return [];
|
|
596
|
+
}
|
|
597
|
+
throw error;
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
deleteBucketCustomDomain: async (bucketName, domain) => {
|
|
601
|
+
if (!client) {
|
|
602
|
+
throw new Error(lang_1.lang.__('VOLCENGINE_TOS_CLIENT_NOT_INITIALIZED'));
|
|
603
|
+
}
|
|
604
|
+
try {
|
|
605
|
+
await client.fetchOpenAPI({
|
|
606
|
+
Action: 'DeleteBucketCustomDomain',
|
|
607
|
+
Version: '2018-08-01',
|
|
608
|
+
method: 'DELETE',
|
|
609
|
+
query: {
|
|
610
|
+
Bucket: bucketName,
|
|
611
|
+
CustomDomain: domain,
|
|
612
|
+
},
|
|
613
|
+
});
|
|
614
|
+
logger_1.logger.info(lang_1.lang.__('TOS_CUSTOM_DOMAIN_UNBOUND', { bucketName, domain }));
|
|
615
|
+
}
|
|
616
|
+
catch (error) {
|
|
617
|
+
if (error &&
|
|
618
|
+
typeof error === 'object' &&
|
|
619
|
+
'code' in error &&
|
|
620
|
+
(error.code === 'NoSuchCustomDomain' || error.code === 'ResourceNotFound')) {
|
|
621
|
+
logger_1.logger.warn(lang_1.lang.__('RESOURCE_NOT_FOUND_PROVIDER', {
|
|
622
|
+
resourceType: 'Custom domain',
|
|
623
|
+
name: domain,
|
|
624
|
+
}));
|
|
625
|
+
return;
|
|
626
|
+
}
|
|
627
|
+
throw error;
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
// Bucket-level transfer acceleration (issue #294). REST action:
|
|
631
|
+
// PUT {bucket}?acceleration with { TransferAccelerationConfiguration:
|
|
632
|
+
// { Enabled: 'true' | 'false' } } — the API carries string booleans.
|
|
633
|
+
putBucketTransferAcceleration: async (bucketName, enabled) => {
|
|
634
|
+
if (!client) {
|
|
635
|
+
throw new Error(lang_1.lang.__('VOLCENGINE_TOS_CLIENT_NOT_INITIALIZED'));
|
|
636
|
+
}
|
|
637
|
+
await client.fetchOpenAPI({
|
|
638
|
+
Action: 'PutBucketTransferAcceleration',
|
|
639
|
+
Version: '2018-08-01',
|
|
640
|
+
method: 'PUT',
|
|
641
|
+
headers: {
|
|
642
|
+
'content-type': 'application/json',
|
|
643
|
+
},
|
|
644
|
+
query: {
|
|
645
|
+
Bucket: bucketName,
|
|
646
|
+
},
|
|
647
|
+
data: {
|
|
648
|
+
TransferAccelerationConfiguration: {
|
|
649
|
+
Enabled: enabled ? 'true' : 'false',
|
|
650
|
+
},
|
|
651
|
+
},
|
|
652
|
+
});
|
|
653
|
+
logger_1.logger.info(enabled
|
|
654
|
+
? lang_1.lang.__('ENABLING_OSS_TRANSFER_ACCELERATION', { bucketName })
|
|
655
|
+
: lang_1.lang.__('TOS_TRANSFER_ACCELERATION_DISABLED', { bucketName }));
|
|
656
|
+
},
|
|
527
657
|
uploadFiles: async (bucketName, sourcePath) => {
|
|
528
658
|
if (!client) {
|
|
529
659
|
throw new Error(lang_1.lang.__('VOLCENGINE_TOS_CLIENT_NOT_INITIALIZED'));
|
package/dist/src/lang/en.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.en = void 0;
|
|
4
4
|
exports.en = {
|
|
5
|
-
STATE_STORAGE_PROVIDER_UNSUPPORTED: 'State storage does not support provider {{provider}}. Configure storageProvider as aliyun or
|
|
5
|
+
STATE_STORAGE_PROVIDER_UNSUPPORTED: 'State storage does not support provider {{provider}}. Configure storageProvider as aliyun (OSS), tencent (COS) or volcengine (TOS).',
|
|
6
6
|
PLAN_SENSITIVE_VALUE: '(sensitive)',
|
|
7
7
|
PLAN_NAS_NETWORK_REQUIRED: 'NAS storage on {{logicalId}} needs a declared VPC network or recorded mount targets. Planning stopped before creating any resources.',
|
|
8
8
|
APIGW_DOMAIN_READ_INVALID: 'Invalid domain response for: {{domainId}}',
|
|
@@ -59,7 +59,11 @@ exports.en = {
|
|
|
59
59
|
LOCAL_SERVER_STOPPED: 'localServer stopped',
|
|
60
60
|
LOCAL_GATEWAY_ERROR: 'Local gateway error',
|
|
61
61
|
ERROR_STOPPING_LOCAL_SERVER: 'Error stopping localServer',
|
|
62
|
-
RUN_LOCAL_STARTING: 'run-local starting: stage={{stage}} debug={{debug}} watch={{watch}}',
|
|
62
|
+
RUN_LOCAL_STARTING: 'run-local starting: stage={{stage}} debug={{debug}} watch={{watch}} strictPrefix={{strictPrefix}}',
|
|
63
|
+
LOCAL_DIRECT_RESOLUTION_ENABLED: 'Direct URL resolution enabled: production-shaped gateway URLs dispatch without the /SI_EVENTS/ prefix (aliyun)',
|
|
64
|
+
LOCAL_GATEWAY_AMBIGUOUS_TRIGGERS: 'Ambiguous gateway triggers declared by multiple events — use /SI_EVENTS/<key>/ to disambiguate: {{details}}',
|
|
65
|
+
LOCAL_BUCKET_INDEX_NOT_FOUND: 'Website index document not found in bucket',
|
|
66
|
+
LOCAL_BUCKET_FILE_NOT_FOUND: 'File not found in bucket',
|
|
63
67
|
LOCAL_TIMER_SCHEDULED: "Local timer '{{triggerName}}' scheduled for function '{{functionName}}' (cron: {{cron}}, UTC)",
|
|
64
68
|
LOCAL_TIMER_FIRED: "Local timer '{{triggerName}}' firing function '{{functionName}}'...",
|
|
65
69
|
LOCAL_TIMER_DISABLED: "Local timer '{{triggerName}}' is disabled (enable: false), skipping schedule",
|
|
@@ -130,6 +134,7 @@ exports.en = {
|
|
|
130
134
|
PLAN_SUMMARY: 'Plan: {{addCount}} add, {{modifyCount}} modify, {{removeCount}} remove, {{recreateCount}} recreate, {{unchangedCount}} unchanged.',
|
|
131
135
|
PLAN_UNCHANGED_ATTRS: '({{count}} unchanged attributes hidden)',
|
|
132
136
|
PLAN_COMPUTED_VALUE: '(known after deploy)',
|
|
137
|
+
PLAN_ARRAY_ENTRY_SUMMARY: '(+{{added}} / -{{removed}})',
|
|
133
138
|
PLAN_REVERT_ANNOTATION: '(changed in the cloud, will be restored to config)',
|
|
134
139
|
PLAN_DRIFTED_MARKER: '(drifted — cloud changed outside of this config, will be reconciled)',
|
|
135
140
|
PLAN_LIVE_READ_FAILED: 'Failed to read live state for {{logicalId}}; planning stopped: {{error}}',
|
|
@@ -581,9 +586,13 @@ exports.en = {
|
|
|
581
586
|
SSL_CERT_DEPLOY_EXISTING_TASK: 'Certificate deploy task already in progress for {{resourceType}} (certificateId: {{certificateId}})',
|
|
582
587
|
SSL_CERT_DEPLOYED: 'Certificate deployed to {{resourceType}} (certificateId: {{certificateId}}, deployRecordId: {{deployRecordId}})',
|
|
583
588
|
SSL_CERT_DEPLOY_FAILED: 'Failed to deploy certificate to {{resourceType}} (certificateId: {{certificateId}}): {{error}}',
|
|
589
|
+
SSL_CERT_DEPLOY_COMPLETED: 'Certificate deployment task {{deployRecordId}} ({{resourceType}}) completed successfully',
|
|
590
|
+
SSL_CERT_DEPLOY_FAILED_RESULT: 'Certificate deployment task {{deployRecordId}} ({{resourceType}}) failed: {{error}}',
|
|
591
|
+
SSL_CERT_DEPLOY_POLL_TIMEOUT: 'Certificate deployment task {{deployRecordId}} ({{resourceType}}) did not finish within {{timeoutSeconds}}s — check the Tencent SSL console for its final state',
|
|
592
|
+
SSL_DEPLOY_RECORD_ID_MISSING: 'Certificate deployment response for {{resourceType}} carried no deploy record id — skipping deployment-status polling',
|
|
593
|
+
SSL_DEPLOY_POLL_ERROR: 'Deployment status check failed: {{error}}',
|
|
584
594
|
COS_BUCKET_CERT_DEPLOYING: 'Deploying SSL certificate to COS bucket domain: {{domain}} (bucket: {{bucketName}})',
|
|
585
595
|
COS_BUCKET_CERT_DEPLOYED: 'SSL certificate deployed to COS bucket domain: {{domain}}',
|
|
586
|
-
BUCKET_DOMAIN_REQUIRED_FOR_CERT: 'Bucket "{{name}}" has certificate configuration but no domain is set. A domain is required when providing certificate information.',
|
|
587
596
|
// Protocol messages
|
|
588
597
|
PROTOCOL_INFERRED_REDIRECT: 'Protocol "{{protocol}}" inferred HTTP-to-HTTPS redirect: {{redirect}}',
|
|
589
598
|
// Retry utility messages
|
|
@@ -665,6 +674,8 @@ exports.en = {
|
|
|
665
674
|
TOS_OBJECT_UPLOADED: 'Uploaded object {{key}} to bucket {{bucket}}',
|
|
666
675
|
TOS_FILES_UPLOADED: 'Uploaded files from {{path}} to bucket {{bucket}}',
|
|
667
676
|
VOLCENGINE_TOS_CLIENT_NOT_INITIALIZED: 'TOS client not initialized. Check your credentials.',
|
|
677
|
+
VOLCENGINE_CDN_CLIENT_NOT_INITIALIZED: 'CDN client not initialized. Check your credentials.',
|
|
678
|
+
VOLCENGINE_DNS_CLIENT_NOT_INITIALIZED: 'DNS client not initialized. Check your credentials.',
|
|
668
679
|
VOLCENGINE_BUCKET_DELETE_FAILED: 'Failed to delete bucket {{bucketName}}: {{error}}',
|
|
669
680
|
VOLCENGINE_FUNCTION_DELETE_FAILED: 'Failed to delete function {{functionName}}: {{error}}',
|
|
670
681
|
VOLCENGINE_APIGW_CLIENT_NOT_INITIALIZED: 'API Gateway client not initialized. Check your credentials.',
|
|
@@ -758,13 +769,43 @@ exports.en = {
|
|
|
758
769
|
CDN_DEPLOYING_CERTIFICATE: 'Deploying SSL certificate to CDN domain {{domain}}',
|
|
759
770
|
CDN_DOMAIN_DELETED: 'CDN domain {{domain}} deleted successfully',
|
|
760
771
|
CDN_DOMAIN_DELETE_FAILED: 'Failed to delete CDN domain {{domain}}: {{error}}',
|
|
761
|
-
|
|
762
|
-
CDN_DOMAIN_CHANGE_REQUIRES_RECREATE: 'Cannot change CDN/accelerate domain from {{oldDomain}} to {{newDomain}} during update. Use destroy+recreate instead.',
|
|
763
|
-
BUCKET_DOMAIN_DEPRECATED: '[DEPRECATED] bucket "{{key}}": website.domain is deprecated. Use top-level "domain" instead.',
|
|
772
|
+
CDN_CERT_UNCHANGED_SKIPPED: 'Certificate for {{domain}} unchanged (hash match) — skipping certificate deployment',
|
|
764
773
|
FAILED_TO_REFRESH_STATE: 'Failed to refresh state for {{resourceType}}: {{name}}',
|
|
765
774
|
FAILED_TO_UPLOAD_BUCKET_FILES: 'Failed to upload files to bucket, but bucket was created and saved to state: {{error}}',
|
|
766
775
|
FAILED_TO_ENABLE_ACCELERATION: 'Failed to enable transfer acceleration for bucket {{bucketName}}',
|
|
767
776
|
CDN_ACCELERATE_CONFIG_CHANGED: 'Cannot change CDN/accelerate settings for bucket {{bucketName}} via update. Use destroy+recreate to change CDN or acceleration configuration.',
|
|
777
|
+
BINDING_REMOVING_DOMAIN: 'Removing custom domain binding {{domain}} from bucket {{bucketName}}',
|
|
778
|
+
// Volcengine TOS bucket domains (issue #294)
|
|
779
|
+
TOS_CUSTOM_DOMAIN_BOUND: 'Custom domain {{domain}} bound to TOS bucket {{bucketName}}',
|
|
780
|
+
TOS_CUSTOM_DOMAIN_UNBOUND: 'Custom domain {{domain}} unbound from TOS bucket {{bucketName}}',
|
|
781
|
+
TOS_TRANSFER_ACCELERATION_DISABLED: 'TOS bucket {{bucketName}} transfer acceleration disabled',
|
|
782
|
+
CDN_DOMAIN_CREATED: 'CDN domain {{domain}} created successfully',
|
|
783
|
+
CDN_CERT_UPLOAD_FAILED: 'CDN certificate upload did not return a certificate id',
|
|
784
|
+
DNS_ZONE_NOT_FOUND: 'Domain {{domain}} is not hosted in Volcengine DNS (TrafficRoute). Host the zone there or configure the CNAME record manually.',
|
|
785
|
+
DNS_RECORD_CREATED: 'DNS record {{domain}} created',
|
|
786
|
+
DNS_RECORD_UPDATED: 'DNS record {{domain}} updated',
|
|
787
|
+
DNS_RECORD_EXISTS: 'DNS record {{domain}} already points at {{value}} — adopted as-is',
|
|
788
|
+
DNS_RECORD_FOREIGN_EXISTS: 'A CNAME record for {{domain}} already exists but points elsewhere; si does not modify records it does not manage. Point it at {{value}} or remove it, then redeploy.',
|
|
789
|
+
TOS_DIRECT_BINDING_PEM_NOT_SUPPORTED: 'Bucket "{{key}}": binding "{{domain}}" — TOS direct domain bindings reference certificates by id (`certificate_id`); TOS has no certificate-upload API for bucket domains, so inline PEM (`certificate_body`/`certificate_private_key`) is not supported. Put the certificate in the Volcengine certificate center and pass its id.',
|
|
790
|
+
// CDN capability validation (issue #283, shared registry with #282)
|
|
791
|
+
BUCKET_BINDING_PROTOCOL_REMOVED: 'Bucket "{{key}}": the `protocol` field on binding "{{domain}}" was removed in v1 and was never applied by any provider. Remove it — HTTPS serving follows the certificate and HTTP→HTTPS redirect uses `cdn.force_redirect_https`.',
|
|
792
|
+
CDN_SCOPE_MIGRATION_REQUIRED: 'Bucket "{{key}}": the CDN `scope` value `domestic` was renamed in v1. Use `chinese_mainland` (acceleration inside mainland China, ICP filing required) on binding "{{domain}}".',
|
|
793
|
+
CDN_TYPE_NOT_SUPPORTED_BY_PROVIDER: 'cdn_type `{{cdnType}}` is not supported by provider `{{provider}}`. Supported values: {{supported}}.',
|
|
794
|
+
CDN_NOT_SUPPORTED_ON_BUCKET_DOMAIN: 'Bucket "{{key}}": CDN delivery on binding "{{domain}}" is not implemented for provider `{{provider}}` yet — remove the `cdn` block or configure CDN manually.',
|
|
795
|
+
CDN_NOT_SUPPORTED_ON_EVENT_DOMAIN: 'Event "{{eventKey}}": CDN delivery on the event domain is not implemented for provider `{{provider}}` yet — remove the `cdn` block or configure CDN manually.',
|
|
796
|
+
FORCE_REDIRECT_HTTPS_REQUIRES_CERTIFICATE: 'Bucket "{{key}}": `cdn.force_redirect_https` on binding "{{domain}}" requires a certificate — provide `certificate_id` or both `certificate_body` and `certificate_private_key`.',
|
|
797
|
+
EVENT_CDN_SCOPE_MIGRATION_REQUIRED: 'Event "{{eventKey}}": the CDN `scope` value `domestic` was renamed in v1. Use `chinese_mainland` (acceleration inside mainland China, ICP filing required).',
|
|
798
|
+
EVENT_FORCE_REDIRECT_HTTPS_REQUIRES_CERTIFICATE: 'Event "{{eventKey}}": `cdn.force_redirect_https` requires a certificate — provide `certificate_id` or both `certificate_body` and `certificate_private_key`.',
|
|
799
|
+
CDN_DOMAIN_EXISTS_NOT_OWNED: 'CDN domain "{{domain}}" already exists but its origin does not point at bucket "{{bucketName}}" — si will not adopt it. Remove the existing CDN domain or configure CDN manually.',
|
|
800
|
+
// v1 bucket domains (issue #279): legacy forms are rejected with a migration mapping
|
|
801
|
+
BUCKET_DOMAIN_MIGRATION_REQUIRED: 'Bucket "{{key}}": the legacy "domain" field is no longer supported since v1. Declare bindings under "domains" instead — `domain: example.com` becomes `- domain_name: example.com`; a `domain` object keeps its certificate/protocol/cdn options as one list entry; `www_bind_apex: true` becomes an explicit `- domain_name: www.<host>` entry. See the migration guide: https://github.com/geek-fun/serverlessinsight/issues/279',
|
|
802
|
+
BUCKET_WEBSITE_DOMAIN_MIGRATION_REQUIRED: 'Bucket "{{key}}": the legacy "website.domain" field is no longer supported since v1. Move the binding to the top-level "domains" list (same fields). See the migration guide: https://github.com/geek-fun/serverlessinsight/issues/279',
|
|
803
|
+
BUCKET_WWW_BIND_APEX_MIGRATION_REQUIRED: 'Bucket "{{key}}": "www_bind_apex" was removed in v1. Declare the www host as an explicit bindings entry: `- domain_name: www.<host>` with the same certificate/protocol/cdn options. See the migration guide: https://github.com/geek-fun/serverlessinsight/issues/279',
|
|
804
|
+
BUCKET_DOMAIN_ACCELERATE_MIGRATION_REQUIRED: 'Bucket "{{key}}": per-domain "accelerate" was removed in v1. Transfer acceleration is a bucket-level feature — declare it as `accelerate: true` on the bucket. See the migration guide: https://github.com/geek-fun/serverlessinsight/issues/279',
|
|
805
|
+
BUCKET_DOMAINS_DUPLICATE: 'Bucket "{{key}}": duplicate custom domain binding "{{domain}}". Bindings are identified by normalized hostname — remove the repeated entry.',
|
|
806
|
+
BUCKET_DOMAINS_WILDCARD_CONFLICT: 'Bucket "{{key}}": exact domain "{{exact}}" conflicts with wildcard "{{wildcard}}" covering it. Rejecting co-existence — split the bindings across two buckets instead.',
|
|
807
|
+
BUCKET_DOMAINS_PROVIDER_NOT_SUPPORTED: 'Bucket "{{key}}": custom domain bindings ("domains") are not supported on provider "{{provider}}" yet.',
|
|
808
|
+
BUCKET_ACCELERATE_PROVIDER_NOT_SUPPORTED: 'Bucket "{{key}}": bucket-level transfer acceleration ("accelerate") is not supported on provider "{{provider}}" yet.',
|
|
768
809
|
// Bucket IAM Policy messages
|
|
769
810
|
BUCKET_POLICY_APPLYING: 'Applying IAM bucket policy to bucket {{bucketName}}',
|
|
770
811
|
BUCKET_POLICY_APPLIED: 'IAM bucket policy applied to bucket {{bucketName}}',
|
|
@@ -795,9 +836,16 @@ exports.en = {
|
|
|
795
836
|
LOGIN_TIMEOUT: 'Login timed out. Please try again.',
|
|
796
837
|
LOGIN_SERVER_ERROR: 'Login server error: {{error}}',
|
|
797
838
|
LOGIN_CANCELLED: 'Login cancelled.',
|
|
839
|
+
LOGIN_PICK_LINE: 'Select a ServerlessInsight region:',
|
|
840
|
+
LOGIN_LINE_OPTION: ' {{index}}. {{name}} ({{origin}})',
|
|
841
|
+
LOGIN_LINE_PROMPT: 'Select a line [1-2]: ',
|
|
842
|
+
LOGIN_LINE_MISMATCH: 'The API key belongs to the {{keyLine}} line, but you are authenticating against {{line}}. Request a key from the {{line}} console — nothing was stored.',
|
|
843
|
+
LOGIN_ORG_MISMATCH: 'Authorized org "{{actual}}" does not match --org {{expected}}. Nothing was stored.',
|
|
844
|
+
LOGIN_NEED_LINE: 'This API key carries no line segment. Pass --line international|china so it can be routed.',
|
|
845
|
+
LOGIN_PROFILE_SAVED: '✅ Stored profile {{profileKey}} (now active) · {{userEmail}}',
|
|
798
846
|
LOGOUT_REVOKING: 'Revoking API key...',
|
|
799
847
|
LOGOUT_DELETING_CREDENTIALS: 'Deleting stored credentials...',
|
|
800
|
-
LOGOUT_SUCCESS: '✅ Logged out',
|
|
848
|
+
LOGOUT_SUCCESS: '✅ Logged out of {{profileKey}}',
|
|
801
849
|
LOGOUT_NOT_LOGGED_IN: 'Not logged in.',
|
|
802
850
|
LOGOUT_REVOKE_FAILED: 'Failed to revoke API key: {{error}}',
|
|
803
851
|
WHOAMI_LOGGED_IN: 'Logged in as {{userEmail}}',
|
|
@@ -806,6 +854,10 @@ exports.en = {
|
|
|
806
854
|
WHOAMI_API_KEY: 'API Key: {{keyPrefix}}...',
|
|
807
855
|
WHOAMI_NOT_LOGGED_IN: 'Not logged in. Run `si login` to authenticate.',
|
|
808
856
|
WHOAMI_KEY_ACTIVE: 'active',
|
|
857
|
+
WHOAMI_PROFILES_HEADER: 'Stored profiles ({{count}}):',
|
|
858
|
+
WHOAMI_PROFILE: '{{marker}}{{profileKey}} Org: {{orgName}} Key: {{keyPrefix}}...',
|
|
859
|
+
WHOAMI_ACTIVE_MARK: '* ',
|
|
860
|
+
WHOAMI_ACTIVE_SUFFIX: ' (active)',
|
|
809
861
|
// Credential messages
|
|
810
862
|
CREDENTIAL_NOT_FOUND: 'No credentials found.',
|
|
811
863
|
CREDENTIAL_CORRUPTED: 'Credentials file is corrupted. Run `si login` again.',
|
|
@@ -825,9 +877,18 @@ exports.en = {
|
|
|
825
877
|
SAAS_BACKEND_LOCK_CHECK: 'Checking deployment lock status...',
|
|
826
878
|
SAAS_BACKEND_NO_CREDENTIALS: 'SaaS state requires Console login.\nRun `si login`, or:\n- Set SI_API_KEY environment variable\n- Use --si-api-key flag\n- Configure a local or bucket backend in serverlessinsight.yml',
|
|
827
879
|
SAAS_BACKEND_CONSOLE_UNREACHABLE: 'Unable to reach Console. Deploy requires Console connectivity.',
|
|
828
|
-
SAAS_ORG_MISMATCH: 'The org "{{declared}}"
|
|
880
|
+
SAAS_ORG_MISMATCH: 'The target org "{{declared}}" does not match the org "{{actual}}" of the current API key. Use credentials for the target org or update the org in your YAML or command.',
|
|
881
|
+
SAAS_ORG_UNVERIFIED: 'Cannot verify that the API key belongs to org "{{org}}". Run `si login` or use a key whose organization the console can verify.',
|
|
829
882
|
SAAS_ORG_FROM_CREDENTIALS: 'Target org: {{orgName}} (from credentials; declare a top-level `org` in the YAML to pin it explicitly)',
|
|
830
883
|
SAAS_STATE_ORG_MISMATCH: 'The org recorded in state ({{stateOrgId}}) does not match the org of the current credentials ({{keyOrgId}}) — either the wrong API key is in use, or the organization was deleted and recreated under the same name.\nVerify your credentials (`si login`) or the organization state before retrying; nothing was written.',
|
|
884
|
+
SAAS_LINE_INVALID: 'Unknown line "{{value}}". Valid lines: {{lines}}.',
|
|
885
|
+
SAAS_LINE_UNRESOLVED: 'Cannot determine which ServerlessInsight line to use for {{operation}}.\nFix one of:\n- Run `si login` (pick a region)\n- Pass `--line international|china`\n- Pass `--org <slug>` matching a stored profile\n- Use a line-stamped API key (created on the new console)',
|
|
886
|
+
SAAS_LINE_AMBIGUOUS_ORG: 'Org "{{org}}" exists on multiple lines ({{lines}}). Pass `--line <line>` to choose one.',
|
|
887
|
+
SAAS_LINE_CONFLICT: 'Line conflict: {{source}} selects the {{line}} line, but the resolved line is {{resolvedLine}}. Align them and retry.',
|
|
888
|
+
SAAS_LINE_ENV_DEPRECATED: 'SI_CONSOLE_LINE is deprecated: it only applies to legacy API keys without a line segment and will be removed after line-stamped issuance. Create a new key in the console.',
|
|
889
|
+
SAAS_LINE_PROMPT_HEADER: 'Multiple ServerlessInsight profiles stored — choose one for {{operation}}:',
|
|
890
|
+
SAAS_LINE_PROMPT_OPTION: ' {{index}}. {{profileKey}}',
|
|
891
|
+
SAAS_LINE_PROMPT_SELECT: 'Select a profile [1-{{count}}]: ',
|
|
831
892
|
// API error messages
|
|
832
893
|
API_ERROR_401: 'API key is invalid or expired. Run `si login` to update.',
|
|
833
894
|
API_ERROR_403: 'Access forbidden. Contact your administrator.',
|
|
@@ -889,7 +950,7 @@ exports.en = {
|
|
|
889
950
|
STATE_BUCKET_NOT_FOUND: 'The state storage bucket does not exist ({{code}}). Create the bucket or fix the backend.state_manager configuration — the missing bucket is not treated as empty state',
|
|
890
951
|
STATE_BUCKET_ACCESS_DENIED: 'Access to the state storage bucket was denied ({{code}}). Check the storage credentials — an authorization failure is never treated as empty state',
|
|
891
952
|
STATE_STORAGE_CREDENTIALS_MISSING: "State storage needs credentials for {{provider}}. Configure that cloud's credential environment variables. Workload credentials from another provider are never reused.",
|
|
892
|
-
SAAS_REGIONAL_SCOPE_UNSUPPORTED: 'The Console at {{consoleUrl}} does not advertise compatible regional deployment states (scope protocol
|
|
953
|
+
SAAS_REGIONAL_SCOPE_UNSUPPORTED: 'The Console at {{consoleUrl}} does not advertise compatible regional deployment states (scope protocol 3 and state format 4.0). Upgrading the CLI alone cannot isolate regions safely — update the Console, or keep using the previous CLI release for unscoped deployments',
|
|
893
954
|
SAAS_STATE_SCOPE_MISMATCH: 'The Console returned state for stage {{storedStage}} / region {{storedRegion}}, but this command targets stage {{stage}} / region {{region}}. Refusing to mix regional scopes',
|
|
894
955
|
SAAS_READ_ONLY_WRITE_REFUSED: 'This SaaS backend instance was created read-only (diff/show); state writes are refused',
|
|
895
956
|
SAAS_WRITE_BLOCKED_UNSCOPED_STATE: "The current state of stage {{stage}} on the Console has no regional scope recorded (it predates regional isolation). Run the Console-side migration for this service before deploying to region {{region}} — writing here would overwrite another region's state",
|
|
@@ -904,7 +965,7 @@ exports.en = {
|
|
|
904
965
|
MIGRATE_SOURCE_FORMAT_INVALID: 'The source backend did not provide a valid single-deployment V4 view after automatic preparation. Nothing was imported.',
|
|
905
966
|
MIGRATE_TARGET_REGIONAL_REQUIRED: 'The target service still uses legacy state. Complete its Console-side binding and activation before importing a regional state.',
|
|
906
967
|
MIGRATE_SOURCE_MULTIPLE_SCOPES: 'This regional document contains resources from other stages. Resolve the source ownership before importing; one regional document may own only its selected stage.',
|
|
907
|
-
SAAS_STATE_ACK_INVALID: 'The state server did not confirm a valid regional snapshot and content hash. Refusing to guess the next state revision; upgrade the server to scope protocol
|
|
968
|
+
SAAS_STATE_ACK_INVALID: 'The state server did not confirm a valid regional snapshot and content hash. Refusing to guess the next state revision; upgrade the server to scope protocol 3.',
|
|
908
969
|
REGIONAL_MIGRATION_PROVIDER_MISMATCH: 'The source records provider "{{source}}", while the command selects "{{effective}}". The upgrade preserves the source provider; workload overrides never rewrite historical ownership.',
|
|
909
970
|
REGIONAL_MIGRATION_UNKNOWN_REGION_REQUIRED: 'Some resources carry no region evidence (pre-regional state). Re-run with --bind-unknown-region <region> to bind them explicitly to a region — the CLI never guesses historical regions from YAML or filenames',
|
|
910
971
|
REGIONAL_MIGRATION_SOURCE_CHANGED: 'The source state changed during its format upgrade. Refusing to overwrite it; review the source and retained recovery records before retrying.',
|
|
@@ -926,6 +987,23 @@ exports.en = {
|
|
|
926
987
|
DELETING_CUSTOM_DOMAIN: "Deleting custom domain '{{domainName}}'...",
|
|
927
988
|
CUSTOM_DOMAIN_DELETED: "Custom domain '{{domainName}}' deleted",
|
|
928
989
|
DOMAIN_NOT_SUPPORTED_PROVIDER: "Custom domain is not supported for provider '{{provider}}'",
|
|
990
|
+
// Function domain bindings (issue #286)
|
|
991
|
+
FUNCTION_DOMAIN_MIGRATION_REQUIRED: 'Function "{{fnKey}}": the legacy single-object "domain" field is no longer supported — declare custom domains as a "domains" list instead',
|
|
992
|
+
FUNCTION_DOMAINS_PROVIDER_NOT_SUPPORTED: 'Function "{{fnKey}}": custom domain bindings ("domains") are not supported by provider "{{provider}}"',
|
|
993
|
+
FUNCTION_DOMAINS_HTTP_TRIGGER_REQUIRED: 'Function "{{fnKey}}": declaring "domains" requires an HTTP trigger ("triggers.http") — the domain routes through the function URL it creates',
|
|
994
|
+
FUNCTION_DOMAINS_AUTH_TYPE_PUBLIC_REQUIRED: 'Function "{{fnKey}}": "domains" requires triggers.http.auth_type to be "public"',
|
|
995
|
+
FUNCTION_DOMAINS_ACCESS_PUBLIC_REQUIRED: 'Function "{{fnKey}}": "domains" requires triggers.http.access to include "public" when declared — an intranet-only function URL cannot serve a custom domain',
|
|
996
|
+
FUNCTION_DOMAINS_WILDCARD_NOT_SUPPORTED: 'Function "{{fnKey}}": wildcard domain "{{domain}}" is not supported by provider "{{provider}}"',
|
|
997
|
+
FUNCTION_DOMAINS_INVALID_PATH: 'Function "{{fnKey}}": invalid route path "{{path}}" — it must start with "/" and may contain at most one trailing "*" (e.g. "/api/*")',
|
|
998
|
+
FUNCTION_DOMAINS_DUPLICATE_BINDING: 'Function "{{fnKey}}": duplicate domain binding "{{domain}}" with route path "{{path}}"',
|
|
999
|
+
FUNCTION_DOMAINS_PROTOCOL_MISMATCH: 'Domain "{{domain}}": bindings under "{{fnKey}}" and "{{otherFnKey}}" declare different protocols — protocol is a per-domain setting and must be consistent across same-domain bindings',
|
|
1000
|
+
FUNCTION_DOMAINS_CERTIFICATE_MISMATCH: 'Domain "{{domain}}": bindings under "{{fnKey}}" and "{{otherFnKey}}" declare different certificates — the certificate is a per-domain setting and must be consistent across same-domain bindings',
|
|
1001
|
+
FUNCTION_DOMAINS_PATH_CONFLICT: 'Domain "{{domain}}": functions "{{fnKey}}" and "{{otherFnKey}}" both declare route path "{{path}}" — same-domain route paths must not duplicate exactly (nested prefixes like "/api/*" and "/*" are allowed)',
|
|
1002
|
+
FUNCTION_DOMAIN_EXISTS_NOT_OWNED: "Custom domain '{{domainName}}' already exists but is not managed by this stack (its routes do not point at this stack's functions)",
|
|
1003
|
+
FUNCTION_DOMAIN_OWNED_ADOPT: "Adopting custom domain '{{domainName}}' previously created by this stack",
|
|
1004
|
+
UPDATING_FUNCTION_DOMAIN_ROUTES: "Updating route table of custom domain '{{domainName}}' ({{count}} routes)...",
|
|
1005
|
+
REMOVING_FUNCTION_DOMAIN_ROUTES: "Removing routes of function '{{functionName}}' from custom domain '{{domainName}}'...",
|
|
1006
|
+
FUNCTION_DOMAIN_ROUTE_RELEASED: "Function '{{functionName}}' was the last binding on custom domain '{{domainName}}' — deleting the domain",
|
|
929
1007
|
EVENT_FLUSH_FAILED: 'Failed to flush deployment events for {{deploymentId}} ({{count}} events): {{error}}',
|
|
930
1008
|
EVENT_REPLAY_FAILED: 'Failed to replay event queue file {{file}}: {{error}}',
|
|
931
1009
|
INVALID_HTTP_TRIGGER_AUTH_TYPE: "Invalid HTTP trigger auth_type '{{authType}}'; must be 'public' or 'iam'",
|
|
@@ -1140,6 +1218,7 @@ exports.en = {
|
|
|
1140
1218
|
OPT_PARAMETER: 'override parameters',
|
|
1141
1219
|
OPT_DEBUG: 'enable debug mode',
|
|
1142
1220
|
OPT_WATCH: 'enable file watch',
|
|
1221
|
+
OPT_STRICT_PREFIX: 'route requests only via /SI_* prefixes (disable direct resolution of production-shaped URLs)',
|
|
1143
1222
|
// ===== Issue #250: agent-friendly CLI surface =====
|
|
1144
1223
|
CMD_SCHEMA_DESC: 'export the IaC JSON Schema used for validation (draft-07, self-contained)',
|
|
1145
1224
|
OPT_SCHEMA_OUTPUT: 'write the JSON Schema to a file instead of stdout',
|
package/dist/src/lang/zh-CN.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.zhCN = void 0;
|
|
4
4
|
exports.zhCN = {
|
|
5
|
-
STATE_STORAGE_PROVIDER_UNSUPPORTED: 'State 存储不支持云厂商 {{provider}}。请将 storageProvider 配置为 aliyun
|
|
5
|
+
STATE_STORAGE_PROVIDER_UNSUPPORTED: 'State 存储不支持云厂商 {{provider}}。请将 storageProvider 配置为 aliyun(OSS)、tencent(COS)或 volcengine(TOS)。',
|
|
6
6
|
PLAN_SENSITIVE_VALUE: '(敏感值)',
|
|
7
7
|
PLAN_NAS_NETWORK_REQUIRED: '{{logicalId}} 的 NAS 存储需要声明 VPC 网络或已有挂载目标记录。计划已停止,尚未创建任何资源。',
|
|
8
8
|
APIGW_DOMAIN_READ_INVALID: '域名 {{domainId}} 的查询响应无效',
|
|
@@ -59,7 +59,11 @@ exports.zhCN = {
|
|
|
59
59
|
LOCAL_SERVER_STOPPED: '本地服务器已停止',
|
|
60
60
|
LOCAL_GATEWAY_ERROR: '本地网关错误',
|
|
61
61
|
ERROR_STOPPING_LOCAL_SERVER: '停止本地服务器时出错',
|
|
62
|
-
RUN_LOCAL_STARTING: '启动本地运行: stage={{stage}} debug={{debug}} watch={{watch}}',
|
|
62
|
+
RUN_LOCAL_STARTING: '启动本地运行: stage={{stage}} debug={{debug}} watch={{watch}} strictPrefix={{strictPrefix}}',
|
|
63
|
+
LOCAL_DIRECT_RESOLUTION_ENABLED: '直连 URL 解析已启用: 生产形态的网关 URL 无需 /SI_EVENTS/ 前缀即可分发(aliyun)',
|
|
64
|
+
LOCAL_GATEWAY_AMBIGUOUS_TRIGGERS: '多个事件声明了相同的网关触发器 — 请使用 /SI_EVENTS/<key>/ 前缀区分: {{details}}',
|
|
65
|
+
LOCAL_BUCKET_INDEX_NOT_FOUND: '存储桶中未找到网站索引文档',
|
|
66
|
+
LOCAL_BUCKET_FILE_NOT_FOUND: '存储桶中未找到文件',
|
|
63
67
|
LOCAL_TIMER_SCHEDULED: "本地定时器 '{{triggerName}}' 已为函数 '{{functionName}}' 调度(cron: {{cron}},UTC)",
|
|
64
68
|
LOCAL_TIMER_FIRED: "本地定时器 '{{triggerName}}' 正在触发函数 '{{functionName}}'...",
|
|
65
69
|
LOCAL_TIMER_DISABLED: "本地定时器 '{{triggerName}}' 已停用(enable: false),跳过调度",
|
|
@@ -130,6 +134,7 @@ exports.zhCN = {
|
|
|
130
134
|
PLAN_SUMMARY: '计划: 新增 {{addCount}},变更 {{modifyCount}},移除 {{removeCount}},重建 {{recreateCount}},无变更 {{unchangedCount}}。',
|
|
131
135
|
PLAN_UNCHANGED_ATTRS: '({{count}} 个未变更属性已隐藏)',
|
|
132
136
|
PLAN_COMPUTED_VALUE: '(部署后可知)',
|
|
137
|
+
PLAN_ARRAY_ENTRY_SUMMARY: '(+{{added}} / -{{removed}})',
|
|
133
138
|
PLAN_REVERT_ANNOTATION: '(云端已改,将按配置恢复)',
|
|
134
139
|
PLAN_DRIFTED_MARKER: '(云端已漂移——与本配置不一致,将按配置纠正)',
|
|
135
140
|
PLAN_LIVE_READ_FAILED: '读取 {{logicalId}} 云端状态失败,计划已停止: {{error}}',
|
|
@@ -574,9 +579,13 @@ exports.zhCN = {
|
|
|
574
579
|
SSL_CERT_DEPLOY_EXISTING_TASK: '证书部署任务已在 {{resourceType}} 上运行中(证书ID: {{certificateId}})',
|
|
575
580
|
SSL_CERT_DEPLOYED: '证书已部署到 {{resourceType}}(证书ID: {{certificateId}}, 部署记录ID: {{deployRecordId}})',
|
|
576
581
|
SSL_CERT_DEPLOY_FAILED: '部署证书到 {{resourceType}} 失败(证书ID: {{certificateId}}):{{error}}',
|
|
582
|
+
SSL_CERT_DEPLOY_COMPLETED: '证书部署任务 {{deployRecordId}}({{resourceType}})已成功完成',
|
|
583
|
+
SSL_CERT_DEPLOY_FAILED_RESULT: '证书部署任务 {{deployRecordId}}({{resourceType}})失败:{{error}}',
|
|
584
|
+
SSL_CERT_DEPLOY_POLL_TIMEOUT: '证书部署任务 {{deployRecordId}}({{resourceType}})在 {{timeoutSeconds}}s 内未完成——请到腾讯云 SSL 控制台确认其最终状态',
|
|
585
|
+
SSL_DEPLOY_RECORD_ID_MISSING: '{{resourceType}} 的证书部署响应未携带部署记录 ID——跳过部署状态轮询',
|
|
586
|
+
SSL_DEPLOY_POLL_ERROR: '部署状态查询失败:{{error}}',
|
|
577
587
|
COS_BUCKET_CERT_DEPLOYING: '正在为 COS 存储桶域名部署 SSL 证书: {{domain}}(存储桶: {{bucketName}})',
|
|
578
588
|
COS_BUCKET_CERT_DEPLOYED: 'SSL 证书已部署到 COS 存储桶域名: {{domain}}',
|
|
579
|
-
BUCKET_DOMAIN_REQUIRED_FOR_CERT: '存储桶 "{{name}}" 已配置证书信息,但未设置域名。提供证书信息时必须设置域名。',
|
|
580
589
|
// 协议消息
|
|
581
590
|
PROTOCOL_INFERRED_REDIRECT: '协议 "{{protocol}}" 推断 HTTP 到 HTTPS 重定向:{{redirect}}',
|
|
582
591
|
// 重试工具消息
|
|
@@ -658,6 +667,8 @@ exports.zhCN = {
|
|
|
658
667
|
TOS_OBJECT_UPLOADED: '已上传对象 {{key}} 到存储桶 {{bucket}}',
|
|
659
668
|
TOS_FILES_UPLOADED: '已从 {{path}} 上传文件到存储桶 {{bucket}}',
|
|
660
669
|
VOLCENGINE_TOS_CLIENT_NOT_INITIALIZED: 'TOS 客户端未初始化。请检查您的凭证。',
|
|
670
|
+
VOLCENGINE_CDN_CLIENT_NOT_INITIALIZED: 'CDN 客户端未初始化。请检查您的凭证。',
|
|
671
|
+
VOLCENGINE_DNS_CLIENT_NOT_INITIALIZED: 'DNS 客户端未初始化。请检查您的凭证。',
|
|
661
672
|
VOLCENGINE_BUCKET_DELETE_FAILED: '删除存储桶 {{bucketName}} 失败:{{error}}',
|
|
662
673
|
VOLCENGINE_FUNCTION_DELETE_FAILED: '删除函数 {{functionName}} 失败:{{error}}',
|
|
663
674
|
VOLCENGINE_APIGW_CLIENT_NOT_INITIALIZED: 'API 网关客户端未初始化。请检查您的凭证。',
|
|
@@ -750,13 +761,43 @@ exports.zhCN = {
|
|
|
750
761
|
CDN_DEPLOYING_CERTIFICATE: '正在为 CDN 域名 {{domain}} 部署 SSL 证书',
|
|
751
762
|
CDN_DOMAIN_DELETED: 'CDN 域名 {{domain}} 已删除',
|
|
752
763
|
CDN_DOMAIN_DELETE_FAILED: '删除 CDN 域名 {{domain}} 失败:{{error}}',
|
|
753
|
-
|
|
754
|
-
CDN_DOMAIN_CHANGE_REQUIRES_RECREATE: '无法在更新时更改 CDN/加速域名从 {{oldDomain}} 到 {{newDomain}}。请使用销毁重建操作。',
|
|
755
|
-
BUCKET_DOMAIN_DEPRECATED: '[已弃用] 存储桶 "{{key}}": website.domain 已弃用,请使用顶层 "domain" 配置。',
|
|
764
|
+
CDN_CERT_UNCHANGED_SKIPPED: '{{domain}} 的证书未变化(哈希一致),跳过证书部署',
|
|
756
765
|
FAILED_TO_REFRESH_STATE: '刷新 {{resourceType}} {{name}} 的状态失败',
|
|
757
766
|
FAILED_TO_UPLOAD_BUCKET_FILES: '上传文件到存储桶失败,但存储桶已创建并保存到状态:{{error}}',
|
|
758
767
|
FAILED_TO_ENABLE_ACCELERATION: '无法为存储桶 {{bucketName}} 开启传输加速',
|
|
759
768
|
CDN_ACCELERATE_CONFIG_CHANGED: '无法通过更新操作更改存储桶 {{bucketName}} 的 CDN/加速配置。请使用销毁重建操作来更改 CDN 或加速配置。',
|
|
769
|
+
BINDING_REMOVING_DOMAIN: '正在移除存储桶 {{bucketName}} 的自定义域名绑定 {{domain}}',
|
|
770
|
+
// 火山引擎 TOS 存储桶域名(issue #294)
|
|
771
|
+
TOS_CUSTOM_DOMAIN_BOUND: '自定义域名 {{domain}} 已绑定到 TOS 存储桶 {{bucketName}}',
|
|
772
|
+
TOS_CUSTOM_DOMAIN_UNBOUND: '自定义域名 {{domain}} 已从 TOS 存储桶 {{bucketName}} 解绑',
|
|
773
|
+
TOS_TRANSFER_ACCELERATION_DISABLED: 'TOS 存储桶 {{bucketName}} 的传输加速已关闭',
|
|
774
|
+
CDN_DOMAIN_CREATED: 'CDN 域名 {{domain}} 创建成功',
|
|
775
|
+
CDN_CERT_UPLOAD_FAILED: 'CDN 证书上传未返回证书 ID',
|
|
776
|
+
DNS_ZONE_NOT_FOUND: '域名 {{domain}} 未托管在火山引擎云解析(TrafficRoute)。请将该域名托管到火山云解析,或手动配置 CNAME 记录。',
|
|
777
|
+
DNS_RECORD_CREATED: 'DNS 记录 {{domain}} 创建成功',
|
|
778
|
+
DNS_RECORD_UPDATED: 'DNS 记录 {{domain}} 更新成功',
|
|
779
|
+
DNS_RECORD_EXISTS: 'DNS 记录 {{domain}} 已指向 {{value}},直接采纳',
|
|
780
|
+
DNS_RECORD_FOREIGN_EXISTS: '{{domain}} 已存在指向其他地址的 CNAME 记录;si 不会修改非 si 管理的记录。请将其指向 {{value}} 或删除后重新部署。',
|
|
781
|
+
TOS_DIRECT_BINDING_PEM_NOT_SUPPORTED: '存储桶 "{{key}}":绑定 "{{domain}}" —— TOS 直连域名绑定通过 ID(`certificate_id`)引用证书;TOS 不提供存储桶域名证书上传 API,因此不支持内联 PEM(`certificate_body`/`certificate_private_key`)。请将证书上传到火山引擎证书中心并传入其 ID。',
|
|
782
|
+
// CDN 能力校验(issue #283,与 #282 共享注册表)
|
|
783
|
+
BUCKET_BINDING_PROTOCOL_REMOVED: '存储桶 "{{key}}":绑定 "{{domain}}" 上的 `protocol` 字段已在 v1 移除,且从未被任何 provider 应用过。请移除该字段——HTTPS 服务跟随证书,HTTP→HTTPS 跳转使用 `cdn.force_redirect_https`。',
|
|
784
|
+
CDN_SCOPE_MIGRATION_REQUIRED: '存储桶 "{{key}}":CDN `scope` 值 `domestic` 已在 v1 更名。请在绑定 "{{domain}}" 上使用 `chinese_mainland`(中国大陆境内加速,需 ICP 备案)。',
|
|
785
|
+
CDN_TYPE_NOT_SUPPORTED_BY_PROVIDER: 'cdn_type `{{cdnType}}` 不被 provider `{{provider}}` 支持。支持的取值:{{supported}}。',
|
|
786
|
+
CDN_NOT_SUPPORTED_ON_BUCKET_DOMAIN: '存储桶 "{{key}}":provider `{{provider}}` 尚未实现绑定 "{{domain}}" 上的 CDN 加速——请移除 `cdn` 配置块或手动配置 CDN。',
|
|
787
|
+
CDN_NOT_SUPPORTED_ON_EVENT_DOMAIN: '事件 "{{eventKey}}":provider `{{provider}}` 尚未实现事件域名的 CDN 加速——请移除 `cdn` 配置块或手动配置 CDN。',
|
|
788
|
+
FORCE_REDIRECT_HTTPS_REQUIRES_CERTIFICATE: '存储桶 "{{key}}":绑定 "{{domain}}" 上的 `cdn.force_redirect_https` 需要提供证书——请提供 `certificate_id` 或同时提供 `certificate_body` 与 `certificate_private_key`。',
|
|
789
|
+
EVENT_CDN_SCOPE_MIGRATION_REQUIRED: '事件 "{{eventKey}}":CDN `scope` 值 `domestic` 已在 v1 更名。请使用 `chinese_mainland`(中国大陆境内加速,需 ICP 备案)。',
|
|
790
|
+
EVENT_FORCE_REDIRECT_HTTPS_REQUIRES_CERTIFICATE: '事件 "{{eventKey}}":`cdn.force_redirect_https` 需要提供证书——请提供 `certificate_id` 或同时提供 `certificate_body` 与 `certificate_private_key`。',
|
|
791
|
+
CDN_DOMAIN_EXISTS_NOT_OWNED: 'CDN 域名 "{{domain}}" 已存在,但其源站未指向存储桶 "{{bucketName}}"——si 不会接管它。请先移除已有 CDN 域名或手动配置 CDN。',
|
|
792
|
+
// v1 存储桶域名(issue #279):旧写法直接拒绝并给出迁移映射
|
|
793
|
+
BUCKET_DOMAIN_MIGRATION_REQUIRED: '存储桶 "{{key}}":v1 起不再支持旧版 "domain" 字段。请改用 "domains" 列表声明绑定 —— `domain: example.com` 改为 `- domain_name: example.com`;`domain` 对象中的证书/协议/CDN 选项原样放入对应列表条目;`www_bind_apex: true` 改为显式的 `- domain_name: www.<主机名>` 条目。迁移指南见:https://github.com/geek-fun/serverlessinsight/issues/279',
|
|
794
|
+
BUCKET_WEBSITE_DOMAIN_MIGRATION_REQUIRED: '存储桶 "{{key}}":v1 起不再支持旧版 "website.domain" 字段。请将该绑定移至顶层 "domains" 列表(字段不变)。迁移指南见:https://github.com/geek-fun/serverlessinsight/issues/279',
|
|
795
|
+
BUCKET_WWW_BIND_APEX_MIGRATION_REQUIRED: '存储桶 "{{key}}":"www_bind_apex" 已在 v1 移除。请将 www 主机声明为显式绑定条目:`- domain_name: www.<主机名>`(证书/协议/CDN 选项保持不变)。迁移指南见:https://github.com/geek-fun/serverlessinsight/issues/279',
|
|
796
|
+
BUCKET_DOMAIN_ACCELERATE_MIGRATION_REQUIRED: '存储桶 "{{key}}":按域名声明的 "accelerate" 已在 v1 移除。传输加速是存储桶级特性 —— 请在存储桶上声明 `accelerate: true`。迁移指南见:https://github.com/geek-fun/serverlessinsight/issues/279',
|
|
797
|
+
BUCKET_DOMAINS_DUPLICATE: '存储桶 "{{key}}":自定义域名绑定 "{{domain}}" 重复。绑定以归一化主机名标识 —— 请移除重复条目。',
|
|
798
|
+
BUCKET_DOMAINS_WILDCARD_CONFLICT: '存储桶 "{{key}}":精确域名 "{{exact}}" 与覆盖它的泛域名 "{{wildcard}}" 冲突。拒绝共存 —— 请将绑定拆分到两个存储桶。',
|
|
799
|
+
BUCKET_DOMAINS_PROVIDER_NOT_SUPPORTED: '存储桶 "{{key}}":云服务商 "{{provider}}" 暂不支持自定义域名绑定("domains")。',
|
|
800
|
+
BUCKET_ACCELERATE_PROVIDER_NOT_SUPPORTED: '存储桶 "{{key}}":云服务商 "{{provider}}" 暂不支持存储桶级传输加速("accelerate")。',
|
|
760
801
|
// Bucket IAM Policy messages
|
|
761
802
|
BUCKET_POLICY_APPLYING: '正在为存储桶 {{bucketName}} 应用 IAM 策略',
|
|
762
803
|
BUCKET_POLICY_APPLIED: 'IAM 策略已应用于存储桶 {{bucketName}}',
|
|
@@ -787,9 +828,16 @@ exports.zhCN = {
|
|
|
787
828
|
LOGIN_TIMEOUT: '登录超时,请重试。',
|
|
788
829
|
LOGIN_SERVER_ERROR: '登录服务器错误:{{error}}',
|
|
789
830
|
LOGIN_CANCELLED: '登录已取消。',
|
|
831
|
+
LOGIN_PICK_LINE: '选择 ServerlessInsight 区域:',
|
|
832
|
+
LOGIN_LINE_OPTION: ' {{index}}. {{name}} ({{origin}})',
|
|
833
|
+
LOGIN_LINE_PROMPT: '选择线路 [1-2]: ',
|
|
834
|
+
LOGIN_LINE_MISMATCH: '该 API 密钥属于 {{keyLine}} 线,但当前正在向 {{line}} 线认证。请从 {{line}} 线控制台获取密钥——未保存任何内容。',
|
|
835
|
+
LOGIN_ORG_MISMATCH: '授权组织 "{{actual}}" 与 --org {{expected}} 不一致。未保存任何内容。',
|
|
836
|
+
LOGIN_NEED_LINE: '该 API 密钥未携带线段。请传入 --line international|china 以便路由。',
|
|
837
|
+
LOGIN_PROFILE_SAVED: '✅ 已保存 profile {{profileKey}}(当前激活)· {{userEmail}}',
|
|
790
838
|
LOGOUT_REVOKING: '正在撤销 API 密钥...',
|
|
791
839
|
LOGOUT_DELETING_CREDENTIALS: '正在删除存储的凭证...',
|
|
792
|
-
LOGOUT_SUCCESS: '✅
|
|
840
|
+
LOGOUT_SUCCESS: '✅ 已退出 {{profileKey}}',
|
|
793
841
|
LOGOUT_NOT_LOGGED_IN: '尚未登录。',
|
|
794
842
|
LOGOUT_REVOKE_FAILED: '撤销 API 密钥失败:{{error}}',
|
|
795
843
|
WHOAMI_LOGGED_IN: '已登录为 {{userEmail}}',
|
|
@@ -798,6 +846,10 @@ exports.zhCN = {
|
|
|
798
846
|
WHOAMI_API_KEY: 'API 密钥: {{keyPrefix}}...',
|
|
799
847
|
WHOAMI_NOT_LOGGED_IN: '尚未登录。请运行 `si login` 进行认证。',
|
|
800
848
|
WHOAMI_KEY_ACTIVE: '活跃',
|
|
849
|
+
WHOAMI_PROFILES_HEADER: '已存储的 profiles({{count}}):',
|
|
850
|
+
WHOAMI_PROFILE: '{{marker}}{{profileKey}} 组织: {{orgName}} 密钥: {{keyPrefix}}...',
|
|
851
|
+
WHOAMI_ACTIVE_MARK: '* ',
|
|
852
|
+
WHOAMI_ACTIVE_SUFFIX: '(激活)',
|
|
801
853
|
// 凭证消息
|
|
802
854
|
CREDENTIAL_NOT_FOUND: '未找到凭证。',
|
|
803
855
|
CREDENTIAL_CORRUPTED: '凭证文件已损坏,请重新运行 `si login`。',
|
|
@@ -817,9 +869,18 @@ exports.zhCN = {
|
|
|
817
869
|
SAAS_BACKEND_LOCK_CHECK: '正在检查部署锁状态...',
|
|
818
870
|
SAAS_BACKEND_NO_CREDENTIALS: 'SaaS 状态后端需要登录 Console。\n请运行 `si login`,或:\n- 设置 SI_API_KEY 环境变量\n- 使用 --si-api-key 参数\n- 在 serverlessinsight.yml 中配置本地或存储桶后端',
|
|
819
871
|
SAAS_BACKEND_CONSOLE_UNREACHABLE: '无法连接到控制台。部署需要控制台连接。',
|
|
820
|
-
SAAS_ORG_MISMATCH: '
|
|
872
|
+
SAAS_ORG_MISMATCH: '目标组织 "{{declared}}" 与当前 API 密钥所属的组织 "{{actual}}" 不一致。请使用目标组织的凭据,或修改 YAML 或命令中的组织。',
|
|
873
|
+
SAAS_ORG_UNVERIFIED: '无法验证 API 密钥是否属于组织 "{{org}}"。请运行 `si login`,或使用控制台能够验证所属组织的密钥。',
|
|
821
874
|
SAAS_ORG_FROM_CREDENTIALS: '目标 org:{{orgName}}(来自凭据;可在 YAML 顶层声明 org 以显式固定目标组织)',
|
|
822
875
|
SAAS_STATE_ORG_MISMATCH: 'state 记录的归属 org({{stateOrgId}})与当前凭据所属 org({{keyOrgId}})不一致——可能是拿错了 API key,或该组织被删除后以同名重建。\n请核对凭据(`si login`)或组织状态后再试;未写入任何数据。',
|
|
876
|
+
SAAS_LINE_INVALID: '未知线路 "{{value}}"。可用线路:{{lines}}。',
|
|
877
|
+
SAAS_LINE_UNRESOLVED: '无法确定 {{operation}} 应使用哪条 ServerlessInsight 线路。\n请任选其一修复:\n- 运行 `si login`(选择区域)\n- 传入 `--line international|china`\n- 传入 `--org <slug>`(需与已存 profile 匹配)\n- 使用带线段的新版 API 密钥(在新版控制台创建)',
|
|
878
|
+
SAAS_LINE_AMBIGUOUS_ORG: '组织 "{{org}}" 同时存在于多条线路({{lines}})。请传入 `--line <line>` 选择。',
|
|
879
|
+
SAAS_LINE_CONFLICT: '线路冲突:{{source}} 指向 {{line}} 线,但解析结果为 {{resolvedLine}} 线。请对齐后重试。',
|
|
880
|
+
SAAS_LINE_ENV_DEPRECATED: 'SI_CONSOLE_LINE 已废弃:仅对不带线段的旧版 API 密钥生效,新版签发上线后将被移除。请在控制台创建新密钥。',
|
|
881
|
+
SAAS_LINE_PROMPT_HEADER: '存储了多个 ServerlessInsight profile——为 {{operation}} 选择一个:',
|
|
882
|
+
SAAS_LINE_PROMPT_OPTION: ' {{index}}. {{profileKey}}',
|
|
883
|
+
SAAS_LINE_PROMPT_SELECT: '选择 profile [1-{{count}}]: ',
|
|
823
884
|
// API 错误消息
|
|
824
885
|
API_ERROR_401: 'API 密钥无效或已过期,请运行 `si login` 更新。',
|
|
825
886
|
API_ERROR_403: '访问被拒绝,请联系管理员。',
|
|
@@ -896,7 +957,7 @@ exports.zhCN = {
|
|
|
896
957
|
MIGRATE_SOURCE_FORMAT_INVALID: '源后端在自动准备后未提供有效的单部署 V4 视图,尚未导入任何状态。',
|
|
897
958
|
MIGRATE_TARGET_REGIONAL_REQUIRED: '目标服务仍使用旧版状态。请先完成控制台侧的区域绑定和激活,再导入区域状态。',
|
|
898
959
|
MIGRATE_SOURCE_MULTIPLE_SCOPES: '此区域状态文档还包含其他 stage 的资源。请先核实源状态的归属,再导入;一个区域文档只能管理选定 stage 的资源。',
|
|
899
|
-
SAAS_STATE_ACK_INVALID: '状态服务未确认有效的区域快照和内容哈希。已拒绝推测下一版本,请升级服务端以支持作用域协议
|
|
960
|
+
SAAS_STATE_ACK_INVALID: '状态服务未确认有效的区域快照和内容哈希。已拒绝推测下一版本,请升级服务端以支持作用域协议 3。',
|
|
900
961
|
REGIONAL_MIGRATION_PROVIDER_MISMATCH: '源状态记录的 provider 为 "{{source}}",命令选择的是 "{{effective}}"。升级保留源 provider,业务部署参数不会重写历史资源归属。',
|
|
901
962
|
REGIONAL_MIGRATION_UNKNOWN_REGION_REQUIRED: '部分资源没有区域证据(早于区域隔离的状态)。请使用 --bind-unknown-region <region> 重新运行以显式绑定区域——CLI 绝不会从 YAML 或文件名猜测历史区域',
|
|
902
963
|
REGIONAL_MIGRATION_SOURCE_CHANGED: '格式升级期间源状态发生了变化。为避免覆盖已有状态,请先核对源状态和保留的恢复记录,再重试原操作。',
|
|
@@ -918,6 +979,23 @@ exports.zhCN = {
|
|
|
918
979
|
DELETING_CUSTOM_DOMAIN: "正在删除自定义域名 '{{domainName}}'...",
|
|
919
980
|
CUSTOM_DOMAIN_DELETED: "自定义域名 '{{domainName}}' 已删除",
|
|
920
981
|
DOMAIN_NOT_SUPPORTED_PROVIDER: "当前云平台 '{{provider}}' 不支持自定义域名",
|
|
982
|
+
// 函数域名绑定(issue #286)
|
|
983
|
+
FUNCTION_DOMAIN_MIGRATION_REQUIRED: '函数 "{{fnKey}}":旧版单对象 "domain" 字段已不再支持,请改为 "domains" 列表声明自定义域名',
|
|
984
|
+
FUNCTION_DOMAINS_PROVIDER_NOT_SUPPORTED: '函数 "{{fnKey}}":云平台 "{{provider}}" 不支持函数自定义域名绑定("domains")',
|
|
985
|
+
FUNCTION_DOMAINS_HTTP_TRIGGER_REQUIRED: '函数 "{{fnKey}}":声明 "domains" 需要同时配置 HTTP 触发器("triggers.http")——域名路由依赖其创建的函数 URL',
|
|
986
|
+
FUNCTION_DOMAINS_AUTH_TYPE_PUBLIC_REQUIRED: '函数 "{{fnKey}}":声明 "domains" 时 triggers.http.auth_type 必须为 "public"',
|
|
987
|
+
FUNCTION_DOMAINS_ACCESS_PUBLIC_REQUIRED: '函数 "{{fnKey}}":声明 "domains" 时 triggers.http.access(若声明)必须包含 "public"——仅内网可达的函数 URL 无法服务自定义域名',
|
|
988
|
+
FUNCTION_DOMAINS_WILDCARD_NOT_SUPPORTED: '函数 "{{fnKey}}":云平台 "{{provider}}" 不支持泛域名 "{{domain}}"',
|
|
989
|
+
FUNCTION_DOMAINS_INVALID_PATH: '函数 "{{fnKey}}":无效的路由路径 "{{path}}"——路径必须以 "/" 开头,且最多只能包含一个位于末尾的 "*"(如 "/api/*")',
|
|
990
|
+
FUNCTION_DOMAINS_DUPLICATE_BINDING: '函数 "{{fnKey}}":域名 "{{domain}}" 上存在重复的路由绑定 "{{path}}"',
|
|
991
|
+
FUNCTION_DOMAINS_PROTOCOL_MISMATCH: '域名 "{{domain}}":"{{fnKey}}" 与 "{{otherFnKey}}" 声明的 protocol 不一致——protocol 是域名级配置,同域名的所有绑定必须一致',
|
|
992
|
+
FUNCTION_DOMAINS_CERTIFICATE_MISMATCH: '域名 "{{domain}}":"{{fnKey}}" 与 "{{otherFnKey}}" 声明的证书不一致——证书是域名级配置,同域名的所有绑定必须一致',
|
|
993
|
+
FUNCTION_DOMAINS_PATH_CONFLICT: '域名 "{{domain}}":函数 "{{fnKey}}" 与 "{{otherFnKey}}" 声明了相同的路由路径 "{{path}}"——同域名路由路径不允许完全重复(嵌套前缀如 "/api/*" 与 "/*" 是允许的)',
|
|
994
|
+
FUNCTION_DOMAIN_EXISTS_NOT_OWNED: "自定义域名 '{{domainName}}' 已存在但不受本 stack 管理(其路由未指向本 stack 的函数)",
|
|
995
|
+
FUNCTION_DOMAIN_OWNED_ADOPT: "收编本 stack 此前创建的自定义域名 '{{domainName}}'",
|
|
996
|
+
UPDATING_FUNCTION_DOMAIN_ROUTES: "正在更新自定义域名 '{{domainName}}' 的路由表({{count}} 条路由)...",
|
|
997
|
+
REMOVING_FUNCTION_DOMAIN_ROUTES: "正在从自定义域名 '{{domainName}}' 移除函数 '{{functionName}}' 的路由...",
|
|
998
|
+
FUNCTION_DOMAIN_ROUTE_RELEASED: "函数 '{{functionName}}' 是自定义域名 '{{domainName}}' 的最后一个绑定——正在删除该域名",
|
|
921
999
|
EVENT_FLUSH_FAILED: '部署事件冲刷失败(部署 {{deploymentId}},{{count}} 条):{{error}}',
|
|
922
1000
|
EVENT_REPLAY_FAILED: '事件队列文件 {{file}} 重放失败:{{error}}',
|
|
923
1001
|
INVALID_HTTP_TRIGGER_AUTH_TYPE: "无效的 HTTP 触发器 auth_type '{{authType}}',必须为 'public' 或 'iam'",
|
|
@@ -1128,10 +1206,13 @@ exports.zhCN = {
|
|
|
1128
1206
|
OPT_SECURITY_TOKEN: '指定 SecurityToken',
|
|
1129
1207
|
OPT_NO_REFRESH: '跳过线上探测,仅对比配置与状态(无漂移检测)',
|
|
1130
1208
|
OPT_SI_API_KEY: 'ServerlessInsight API key(覆盖 SI_API_KEY 环境变量)',
|
|
1209
|
+
OPT_ORG: 'Console 组织 slug(多个组织同名时消歧)',
|
|
1210
|
+
OPT_LINE: 'Console 线路:international | china',
|
|
1131
1211
|
OPT_AUTO_APPROVE: '跳过部署前的计划交互确认',
|
|
1132
1212
|
OPT_PARAMETER: '覆盖参数',
|
|
1133
1213
|
OPT_DEBUG: '开启调试模式',
|
|
1134
1214
|
OPT_WATCH: '开启文件监听',
|
|
1215
|
+
OPT_STRICT_PREFIX: '仅通过 /SI_* 前缀路由请求(禁用生产形态 URL 的直连解析)',
|
|
1135
1216
|
// ===== Issue #250: agent-friendly CLI surface =====
|
|
1136
1217
|
CMD_SCHEMA_DESC: '导出用于校验的 IaC JSON Schema(draft-07,自包含)',
|
|
1137
1218
|
OPT_SCHEMA_OUTPUT: '将 JSON Schema 写入指定文件而不是 stdout',
|