raykit 0.3.0 → 0.3.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.
package/README.md CHANGED
@@ -29,6 +29,30 @@ single read-only statement. Production commands do not support writes.
29
29
  The SQL service is organization-specific; installing this public package does
30
30
  not grant an account or database permissions.
31
31
 
32
+ Raykit automatically opens DingTalk login when the shared session
33
+ is missing, expired, or rejected. Complete browser authorization and the CLI
34
+ resumes the operation without another command or chat confirmation. It attempts
35
+ login at most once per command. `--auth-wait` (default 5 minutes) and
36
+ `--auth-browser` control automatic login. Local status, logout, SQL operations
37
+ dry-run and test execution dry-run stay offline. DDL generation dry-run reads
38
+ live metadata. Ambiguous SQL submissions are not replayed.
39
+
40
+ ## SQL operations submissions
41
+
42
+ `sql ops` reuses `sql prod auth login` and submits a task for review through the SQL
43
+ operations service. It does not approve or execute the task.
44
+
45
+ ```sh
46
+ kit sql ops targets
47
+ kit sql ops submit --title 'Cloud account fix' --target cloud-zdf --file fix.sql --dry-run
48
+ ```
49
+
50
+ Remove `--dry-run` to submit. Each SQL statement must occupy one line and end
51
+ with `;`. Use `cloud-main`, `cloud-1`, or `cloud-zdf` for the cloud-account
52
+ presets, or specify `--schema` explicitly. For another RDS, also provide both
53
+ `--rds-name` and `--rds-url`. A timeout is not proof of failure: check the task
54
+ system before resubmitting.
55
+
32
56
  ## Test MySQL
33
57
 
34
58
  Test commands connect to the configured organization's test MySQL host.
@@ -46,6 +70,13 @@ Removing `--dry-run` submits and commits the modification. Both SQL inputs accep
46
70
  `--sql` or `--file`; use `--file -` to read stdin. Results default to JSON;
47
71
  `--output table` displays successful query rows as a table.
48
72
 
73
+ ## Company information
74
+
75
+ Use `company info --name NAME` or `company info --id ID`
76
+ to look up company identity, trade/report database shards, table shards and
77
+ cloud-account routing. Use `--all-tables` to include the complete table-shard
78
+ map. It shares the SQL login session.
79
+
49
80
  ## Local credentials
50
81
 
51
82
  Each user authenticates independently. Cookies and passwords are stored in that
@@ -62,3 +93,38 @@ npm install -g raykit@latest --registry=https://registry.npmjs.org
62
93
  Source code licensing has not been granted for Raykit (`UNLICENSED`). Licenses
63
94
  and source references for bundled third-party components are provided in
64
95
  `THIRD_PARTY_NOTICES.txt`.
96
+
97
+ ## Cloud-account batch DDL
98
+
99
+ `sql ddl generate --file change.sql` expands table DDL across two test schemas
100
+ and three production schemas. Existing-table changes use real metadata; CREATE
101
+ TABLE uses tenant routing. It prints and saves test SQL and submits production
102
+ SQL for review, one task per nonempty schema. It never directly executes DDL.
103
+ Use `--dry-run` to discover metadata and generate files without submitting.
104
+ Default output is grouped SQL text; `--output json` includes per-schema status.
105
+ Run artifacts preserve partial submission results; check them before rerunning a
106
+ failed batch.
107
+
108
+ ## Project compilation and deployment
109
+
110
+ ```sh
111
+ kit project compile YOUR_PROJECT_GRAY3
112
+ kit project deploy YOUR_PROJECT_GRAY3
113
+ kit project compile 云账灰度3web --branch feature/example
114
+ kit project auth set
115
+ kit project auth status
116
+ kit project auth logout
117
+ ```
118
+
119
+ Replace `YOUR_PROJECT_GRAY3` with the actual project local name containing
120
+ `gray1` through `gray8`; production projects are not supported. `compile`
121
+ (alias `build`) only compiles. `deploy` (alias `publish`) compiles before
122
+ deploying and waits for the result. Multiple project names run sequentially.
123
+ Omitting `--branch` uses each project's effective saved branch, with the locked
124
+ branch taking precedence. `--timeout` and `--wait-timeout` default to 30 minutes.
125
+
126
+ The release service uses a separate local publishing code. Interactive commands
127
+ prompt when it is missing; automation can save it with
128
+ `kit project auth set --code-stdin`. Do not put credentials in command arguments.
129
+ Progress is written to stderr and the final result to stdout. On an uncertain
130
+ result, check the release service before repeating a compilation or deployment.
@@ -1145,6 +1145,40 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1145
1145
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1146
1146
 
1147
1147
 
1148
+ ===== golang.org/x/term v0.42.0 =====
1149
+ Source: https://pkg.go.dev/golang.org/x/term@v0.42.0
1150
+ Original source archive: https://proxy.golang.org/golang.org/x/term/@v/v0.42.0.zip
1151
+
1152
+ --- LICENSE ---
1153
+ Copyright 2009 The Go Authors.
1154
+
1155
+ Redistribution and use in source and binary forms, with or without
1156
+ modification, are permitted provided that the following conditions are
1157
+ met:
1158
+
1159
+ * Redistributions of source code must retain the above copyright
1160
+ notice, this list of conditions and the following disclaimer.
1161
+ * Redistributions in binary form must reproduce the above
1162
+ copyright notice, this list of conditions and the following disclaimer
1163
+ in the documentation and/or other materials provided with the
1164
+ distribution.
1165
+ * Neither the name of Google LLC nor the names of its
1166
+ contributors may be used to endorse or promote products derived from
1167
+ this software without specific prior written permission.
1168
+
1169
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1170
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1171
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1172
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1173
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1174
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1175
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1176
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1177
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1178
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1179
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1180
+
1181
+
1148
1182
  ===== google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 =====
1149
1183
  Source: https://pkg.go.dev/google.golang.org/genproto/googleapis/rpc@v0.0.0-20260414002931-afd174a4e478
1150
1184
  Original source archive: https://proxy.golang.org/google.golang.org/genproto/googleapis/rpc/@v/v0.0.0-20260414002931-afd174a4e478.zip
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raykit",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Go-powered CLI for SQL queries and test database operations",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",