@optima-chat/dev-skills 0.7.14 → 0.7.15

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.
File without changes
File without changes
@@ -192,7 +192,7 @@ print(f\"COMMERCE_DB_PASSWORD={secrets['COMMERCE_DB_PASSWORD']}\")
192
192
  " > /tmp/stage_db_config.sh && source /tmp/stage_db_config.sh
193
193
 
194
194
  # 4. 建立 SSH 隧道到 Shared EC2,通过隧道访问 Stage RDS
195
- ssh -i ~/.ssh/optima-ec2-key -f -N -L 15432:optima-stage-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com:5432 ec2-user@13.251.46.219
195
+ ssh -i ~/.ssh/optima-ec2-key -f -N -L 15432:optima-stage-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com:5432 ec2-user@3.0.210.113
196
196
 
197
197
  # 5. 通过本地端口 15432 连接到 RDS
198
198
  PGPASSWORD="${COMMERCE_DB_PASSWORD}" psql -h localhost -p 15432 -U "${COMMERCE_DB_USER}" -d optima_commerce -c "SELECT COUNT(*) FROM products"
@@ -249,7 +249,7 @@ pkill -f "ssh.*15432:${DATABASE_HOST}:5432"
249
249
  - Infisical 配置从 GitHub Variables 获取
250
250
  - 数据库密钥从 Infisical 动态获取(项目: optima-secrets-v2, 环境: staging, 路径: /shared-secrets/database-users)
251
251
  - Stage RDS: `optima-stage-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com`
252
- - Shared EC2 IP: `13.251.46.219`
252
+ - Shared EC2 IP: `3.0.210.113`
253
253
  - SSH 隧道: 本地端口 `15432` → Shared EC2 → Stage RDS `5432`
254
254
  - Stage 和 Prod 有独立的 RDS 实例
255
255
  - ⚠️ session-gateway 数据库名: Stage 用 `optima_shell`, Prod 用 `optima_ai_shell`
@@ -290,7 +290,7 @@ print(f\"COMMERCE_DB_PASSWORD={secrets['COMMERCE_DB_PASSWORD']}\")
290
290
  " > /tmp/prod_db_config.sh && source /tmp/prod_db_config.sh
291
291
 
292
292
  # 4. 建立 SSH 隧道到 Shared EC2,通过隧道访问 Prod RDS
293
- ssh -i ~/.ssh/optima-ec2-key -f -N -L 15433:optima-prod-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com:5432 ec2-user@13.251.46.219
293
+ ssh -i ~/.ssh/optima-ec2-key -f -N -L 15433:optima-prod-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com:5432 ec2-user@3.0.210.113
294
294
 
295
295
  # 5. 通过本地端口 15433 连接到 RDS
296
296
  PGPASSWORD="${COMMERCE_DB_PASSWORD}" psql -h localhost -p 15433 -U "${COMMERCE_DB_USER}" -d optima_commerce -c "SELECT COUNT(*) FROM products"
@@ -347,7 +347,7 @@ pkill -f "ssh.*15433:${DATABASE_HOST}:5432"
347
347
  - Infisical 配置从 GitHub Variables 获取
348
348
  - 数据库密钥从 Infisical 动态获取(项目: optima-secrets-v2, 环境: prod, 路径: /shared-secrets/database-users)
349
349
  - Prod RDS: `optima-prod-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com`
350
- - Shared EC2 IP: `13.251.46.219`
350
+ - Shared EC2 IP: `3.0.210.113`
351
351
  - SSH 隧道: 本地端口 `15433` → Shared EC2 → Prod RDS `5432`
352
352
  - Stage 用端口 `15432`,Prod 用端口 `15433`
353
353
  - Stage 和 Prod 有独立的 RDS 实例
File without changes
File without changes
File without changes
@@ -203,7 +203,7 @@ optima-query-db commerce-backend "SELECT status, COUNT(*) FROM orders GROUP BY s
203
203
  | Stage | `optima-stage-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com` | 15432 |
204
204
  | Prod | `optima-prod-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com` | 15433 |
205
205
 
206
- **跳板机**: `13.251.46.219` (Shared EC2)
206
+ **跳板机**: `3.0.210.113` (Shared EC2)
207
207
 
208
208
  ## 🔗 相关命令
209
209
 
File without changes
File without changes
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
File without changes
@@ -51,8 +51,8 @@ const RDS_HOSTS = {
51
51
  prod: 'optima-prod-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com'
52
52
  };
53
53
 
54
- // 统一使用 Shared EC2 作为跳板机
55
- const EC2_HOST = '13.251.46.219';
54
+ // 统一使用 BI Data ARM Host 作为跳板机
55
+ const EC2_HOST = '3.0.210.113';
56
56
 
57
57
  function getGitHubVariable(name: string): string {
58
58
  return execSync(`gh variable get ${name} -R Optima-Chat/optima-dev-skills`, { encoding: 'utf-8' }).trim();
File without changes
@@ -68,8 +68,8 @@ const RDS_HOSTS = {
68
68
  stage: 'optima-stage-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com',
69
69
  prod: 'optima-prod-postgres.ctg866o0ehac.ap-southeast-1.rds.amazonaws.com'
70
70
  };
71
- // 统一使用 Shared EC2 作为跳板机
72
- const EC2_HOST = '13.251.46.219';
71
+ // 统一使用 BI Data ARM Host 作为跳板机
72
+ const EC2_HOST = '3.0.210.113';
73
73
  function getGitHubVariable(name) {
74
74
  return (0, child_process_1.execSync)(`gh variable get ${name} -R Optima-Chat/optima-dev-skills`, { encoding: 'utf-8' }).trim();
75
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optima-chat/dev-skills",
3
- "version": "0.7.14",
3
+ "version": "0.7.15",
4
4
  "description": "Claude Code Skills for Optima development team - cross-environment collaboration tools",
5
5
  "main": "index.js",
6
6
  "bin": {
package/tsconfig.json CHANGED
File without changes
@@ -1,41 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "WebSearch",
5
- "WebFetch(domain:code.claude.com)",
6
- "WebFetch(domain:platform.claude.com)",
7
- "WebFetch(domain:github.com)",
8
- "Bash(gh repo view:*)",
9
- "Bash(gh repo clone:*)",
10
- "Bash(gh repo list:*)",
11
- "Read(//private/tmp/optima-docs/**)",
12
- "Read(//tmp/optima-docs/**)",
13
- "Bash(git init:*)",
14
- "Bash(gh repo create:*)",
15
- "Read(//private/tmp/optima-workspace/**)",
16
- "Read(//tmp/optima-workspace/**)",
17
- "Read(//tmp/optima-workspace/.claude/commands/**)",
18
- "Bash(git add:*)",
19
- "Bash(git push:*)",
20
- "Bash(find:*)",
21
- "Bash(git commit:*)",
22
- "Bash(aws logs get-log-events:*)",
23
- "Bash(npm install:*)",
24
- "Bash(optima-dev-skills:*)",
25
- "Bash(optima-generate-test-token:*)",
26
- "Bash(optima-query-db:*)",
27
- "Bash(gh variable set:*)",
28
- "Bash(npm publish:*)",
29
- "Bash(python3:*)",
30
- "Bash(gh api:*)",
31
- "Bash(curl -s http://auth.optima.chat/openapi.json)",
32
- "Bash(curl -s https://auth.optima.chat/openapi.json)",
33
- "Bash(cat:*)",
34
- "Bash(node /Users/verypro/optima-dev-skills/scripts/install.js:*)",
35
- "Bash(aws logs tail:*)",
36
- "Bash(grep:*)"
37
- ],
38
- "deny": [],
39
- "ask": []
40
- }
41
- }