@procedures/mark 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/manifest.json +236 -663
- package/package.json +49 -49
package/dist/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 2,
|
|
3
|
-
"fingerprint": "
|
|
4
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"fingerprint": "37d1ce684c71a63f85c2b3f0c21a3e0245fcac258e0d6309223b39fc1d0d95f0",
|
|
4
|
+
"generatedAt": "2026-10-17T20:00:09.698Z",
|
|
5
5
|
"commands": [
|
|
6
6
|
{
|
|
7
7
|
"path": [
|
|
@@ -19030,6 +19030,240 @@
|
|
|
19030
19030
|
}
|
|
19031
19031
|
]
|
|
19032
19032
|
},
|
|
19033
|
+
{
|
|
19034
|
+
"path": [
|
|
19035
|
+
"csv",
|
|
19036
|
+
"parse"
|
|
19037
|
+
],
|
|
19038
|
+
"metadata": {
|
|
19039
|
+
"description": "Parse CSV text into rows",
|
|
19040
|
+
"args": [
|
|
19041
|
+
"text"
|
|
19042
|
+
],
|
|
19043
|
+
"shorts": {
|
|
19044
|
+
"delimiter": "d",
|
|
19045
|
+
"trim": "t"
|
|
19046
|
+
},
|
|
19047
|
+
"output": "json"
|
|
19048
|
+
},
|
|
19049
|
+
"fields": [
|
|
19050
|
+
{
|
|
19051
|
+
"name": "text",
|
|
19052
|
+
"type": "string",
|
|
19053
|
+
"fieldType": {
|
|
19054
|
+
"kind": "string"
|
|
19055
|
+
},
|
|
19056
|
+
"required": true,
|
|
19057
|
+
"description": "The CSV text (RFC 4180)"
|
|
19058
|
+
},
|
|
19059
|
+
{
|
|
19060
|
+
"name": "header",
|
|
19061
|
+
"type": "boolean",
|
|
19062
|
+
"fieldType": {
|
|
19063
|
+
"kind": "boolean"
|
|
19064
|
+
},
|
|
19065
|
+
"required": false,
|
|
19066
|
+
"description": "True: the first row has the names of the columns, and each other row is an object"
|
|
19067
|
+
},
|
|
19068
|
+
{
|
|
19069
|
+
"name": "delimiter",
|
|
19070
|
+
"type": "string",
|
|
19071
|
+
"fieldType": {
|
|
19072
|
+
"kind": "string"
|
|
19073
|
+
},
|
|
19074
|
+
"required": false,
|
|
19075
|
+
"description": "The character between two fields (default: a comma)"
|
|
19076
|
+
},
|
|
19077
|
+
{
|
|
19078
|
+
"name": "trim",
|
|
19079
|
+
"type": "boolean",
|
|
19080
|
+
"fieldType": {
|
|
19081
|
+
"kind": "boolean"
|
|
19082
|
+
},
|
|
19083
|
+
"required": false,
|
|
19084
|
+
"description": "True: remove the white space at the start and at the end of each field"
|
|
19085
|
+
},
|
|
19086
|
+
{
|
|
19087
|
+
"name": "skipEmptyLines",
|
|
19088
|
+
"type": "boolean",
|
|
19089
|
+
"fieldType": {
|
|
19090
|
+
"kind": "boolean"
|
|
19091
|
+
},
|
|
19092
|
+
"required": false,
|
|
19093
|
+
"description": "False: an empty line gives a row with one empty field (default: true, skip each empty line)"
|
|
19094
|
+
}
|
|
19095
|
+
],
|
|
19096
|
+
"inputSchema": {
|
|
19097
|
+
"type": "object",
|
|
19098
|
+
"properties": {
|
|
19099
|
+
"text": {
|
|
19100
|
+
"type": "string",
|
|
19101
|
+
"description": "The CSV text (RFC 4180)"
|
|
19102
|
+
},
|
|
19103
|
+
"header": {
|
|
19104
|
+
"description": "True: the first row has the names of the columns, and each other row is an object",
|
|
19105
|
+
"type": "boolean"
|
|
19106
|
+
},
|
|
19107
|
+
"delimiter": {
|
|
19108
|
+
"description": "The character between two fields (default: a comma)",
|
|
19109
|
+
"type": "string",
|
|
19110
|
+
"minLength": 1,
|
|
19111
|
+
"maxLength": 1
|
|
19112
|
+
},
|
|
19113
|
+
"trim": {
|
|
19114
|
+
"description": "True: remove the white space at the start and at the end of each field",
|
|
19115
|
+
"type": "boolean"
|
|
19116
|
+
},
|
|
19117
|
+
"skipEmptyLines": {
|
|
19118
|
+
"description": "False: an empty line gives a row with one empty field (default: true, skip each empty line)",
|
|
19119
|
+
"type": "boolean"
|
|
19120
|
+
}
|
|
19121
|
+
},
|
|
19122
|
+
"required": [
|
|
19123
|
+
"text"
|
|
19124
|
+
]
|
|
19125
|
+
},
|
|
19126
|
+
"resultFields": [
|
|
19127
|
+
{
|
|
19128
|
+
"name": "rows",
|
|
19129
|
+
"type": "json[]",
|
|
19130
|
+
"fieldType": {
|
|
19131
|
+
"kind": "array",
|
|
19132
|
+
"item": {
|
|
19133
|
+
"kind": "any"
|
|
19134
|
+
}
|
|
19135
|
+
},
|
|
19136
|
+
"required": true,
|
|
19137
|
+
"description": "The rows, in the order of the text"
|
|
19138
|
+
}
|
|
19139
|
+
]
|
|
19140
|
+
},
|
|
19141
|
+
{
|
|
19142
|
+
"path": [
|
|
19143
|
+
"csv",
|
|
19144
|
+
"stringify"
|
|
19145
|
+
],
|
|
19146
|
+
"metadata": {
|
|
19147
|
+
"description": "Write rows as CSV text",
|
|
19148
|
+
"args": [],
|
|
19149
|
+
"shorts": {
|
|
19150
|
+
"delimiter": "d"
|
|
19151
|
+
},
|
|
19152
|
+
"output": "json"
|
|
19153
|
+
},
|
|
19154
|
+
"fields": [
|
|
19155
|
+
{
|
|
19156
|
+
"name": "rows",
|
|
19157
|
+
"type": "json[]",
|
|
19158
|
+
"fieldType": {
|
|
19159
|
+
"kind": "array",
|
|
19160
|
+
"item": {
|
|
19161
|
+
"kind": "any"
|
|
19162
|
+
}
|
|
19163
|
+
},
|
|
19164
|
+
"required": true,
|
|
19165
|
+
"description": "The rows: all arrays or all objects. A field is a string, a number, a boolean or null"
|
|
19166
|
+
},
|
|
19167
|
+
{
|
|
19168
|
+
"name": "columns",
|
|
19169
|
+
"type": "string[]",
|
|
19170
|
+
"fieldType": {
|
|
19171
|
+
"kind": "array",
|
|
19172
|
+
"item": {
|
|
19173
|
+
"kind": "string"
|
|
19174
|
+
}
|
|
19175
|
+
},
|
|
19176
|
+
"required": false,
|
|
19177
|
+
"description": "The names of the columns. For objects, they select the keys and give their order. For arrays, they are the first row"
|
|
19178
|
+
},
|
|
19179
|
+
{
|
|
19180
|
+
"name": "header",
|
|
19181
|
+
"type": "boolean",
|
|
19182
|
+
"fieldType": {
|
|
19183
|
+
"kind": "boolean"
|
|
19184
|
+
},
|
|
19185
|
+
"required": false,
|
|
19186
|
+
"description": "False: no row with the names of the columns (default: true)"
|
|
19187
|
+
},
|
|
19188
|
+
{
|
|
19189
|
+
"name": "delimiter",
|
|
19190
|
+
"type": "string",
|
|
19191
|
+
"fieldType": {
|
|
19192
|
+
"kind": "string"
|
|
19193
|
+
},
|
|
19194
|
+
"required": false,
|
|
19195
|
+
"description": "The character between two fields (default: a comma)"
|
|
19196
|
+
},
|
|
19197
|
+
{
|
|
19198
|
+
"name": "lineBreak",
|
|
19199
|
+
"type": "enum",
|
|
19200
|
+
"fieldType": {
|
|
19201
|
+
"kind": "enum",
|
|
19202
|
+
"values": [
|
|
19203
|
+
"\r\n",
|
|
19204
|
+
"\n"
|
|
19205
|
+
]
|
|
19206
|
+
},
|
|
19207
|
+
"required": false,
|
|
19208
|
+
"description": "The line break after each row (default: CRLF)",
|
|
19209
|
+
"enumValues": [
|
|
19210
|
+
"\r\n",
|
|
19211
|
+
"\n"
|
|
19212
|
+
]
|
|
19213
|
+
}
|
|
19214
|
+
],
|
|
19215
|
+
"inputSchema": {
|
|
19216
|
+
"type": "object",
|
|
19217
|
+
"properties": {
|
|
19218
|
+
"rows": {
|
|
19219
|
+
"type": "array",
|
|
19220
|
+
"items": {
|
|
19221
|
+
"description": "A row: an array of fields, or an object of fields by column name"
|
|
19222
|
+
},
|
|
19223
|
+
"description": "The rows: all arrays or all objects. A field is a string, a number, a boolean or null"
|
|
19224
|
+
},
|
|
19225
|
+
"columns": {
|
|
19226
|
+
"description": "The names of the columns. For objects, they select the keys and give their order. For arrays, they are the first row",
|
|
19227
|
+
"type": "array",
|
|
19228
|
+
"items": {
|
|
19229
|
+
"type": "string"
|
|
19230
|
+
}
|
|
19231
|
+
},
|
|
19232
|
+
"header": {
|
|
19233
|
+
"description": "False: no row with the names of the columns (default: true)",
|
|
19234
|
+
"type": "boolean"
|
|
19235
|
+
},
|
|
19236
|
+
"delimiter": {
|
|
19237
|
+
"description": "The character between two fields (default: a comma)",
|
|
19238
|
+
"type": "string",
|
|
19239
|
+
"minLength": 1,
|
|
19240
|
+
"maxLength": 1
|
|
19241
|
+
},
|
|
19242
|
+
"lineBreak": {
|
|
19243
|
+
"description": "The line break after each row (default: CRLF)",
|
|
19244
|
+
"type": "string",
|
|
19245
|
+
"enum": [
|
|
19246
|
+
"\r\n",
|
|
19247
|
+
"\n"
|
|
19248
|
+
]
|
|
19249
|
+
}
|
|
19250
|
+
},
|
|
19251
|
+
"required": [
|
|
19252
|
+
"rows"
|
|
19253
|
+
]
|
|
19254
|
+
},
|
|
19255
|
+
"resultFields": [
|
|
19256
|
+
{
|
|
19257
|
+
"name": "text",
|
|
19258
|
+
"type": "string",
|
|
19259
|
+
"fieldType": {
|
|
19260
|
+
"kind": "string"
|
|
19261
|
+
},
|
|
19262
|
+
"required": true,
|
|
19263
|
+
"description": "The CSV text"
|
|
19264
|
+
}
|
|
19265
|
+
]
|
|
19266
|
+
},
|
|
19033
19267
|
{
|
|
19034
19268
|
"path": [
|
|
19035
19269
|
"cue",
|
|
@@ -26992,667 +27226,6 @@
|
|
|
26992
27226
|
}
|
|
26993
27227
|
]
|
|
26994
27228
|
},
|
|
26995
|
-
{
|
|
26996
|
-
"path": [
|
|
26997
|
-
"db",
|
|
26998
|
-
"query"
|
|
26999
|
-
],
|
|
27000
|
-
"metadata": {
|
|
27001
|
-
"description": "Deprecated: use sqlite.query. Execute a SQL SELECT query (read only: a statement that changes data fails)"
|
|
27002
|
-
},
|
|
27003
|
-
"fields": [
|
|
27004
|
-
{
|
|
27005
|
-
"name": "sql",
|
|
27006
|
-
"type": "string",
|
|
27007
|
-
"fieldType": {
|
|
27008
|
-
"kind": "string"
|
|
27009
|
-
},
|
|
27010
|
-
"required": true,
|
|
27011
|
-
"description": "The SQL query (SELECT)"
|
|
27012
|
-
},
|
|
27013
|
-
{
|
|
27014
|
-
"name": "params",
|
|
27015
|
-
"type": "json[]",
|
|
27016
|
-
"fieldType": {
|
|
27017
|
-
"kind": "array",
|
|
27018
|
-
"item": {
|
|
27019
|
-
"kind": "any"
|
|
27020
|
-
}
|
|
27021
|
-
},
|
|
27022
|
-
"required": false,
|
|
27023
|
-
"description": "The values of the ? placeholders of the SQL, in order"
|
|
27024
|
-
},
|
|
27025
|
-
{
|
|
27026
|
-
"name": "dbPath",
|
|
27027
|
-
"type": "string",
|
|
27028
|
-
"fieldType": {
|
|
27029
|
-
"kind": "string"
|
|
27030
|
-
},
|
|
27031
|
-
"required": false,
|
|
27032
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db). A query does not make a missing file."
|
|
27033
|
-
}
|
|
27034
|
-
],
|
|
27035
|
-
"inputSchema": {
|
|
27036
|
-
"type": "object",
|
|
27037
|
-
"properties": {
|
|
27038
|
-
"sql": {
|
|
27039
|
-
"type": "string",
|
|
27040
|
-
"description": "The SQL query (SELECT)"
|
|
27041
|
-
},
|
|
27042
|
-
"params": {
|
|
27043
|
-
"description": "The values of the ? placeholders of the SQL, in order",
|
|
27044
|
-
"type": "array",
|
|
27045
|
-
"items": {}
|
|
27046
|
-
},
|
|
27047
|
-
"dbPath": {
|
|
27048
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db). A query does not make a missing file.",
|
|
27049
|
-
"type": "string"
|
|
27050
|
-
}
|
|
27051
|
-
},
|
|
27052
|
-
"required": [
|
|
27053
|
-
"sql"
|
|
27054
|
-
]
|
|
27055
|
-
},
|
|
27056
|
-
"resultFields": [
|
|
27057
|
-
{
|
|
27058
|
-
"name": "columns",
|
|
27059
|
-
"type": "string[]",
|
|
27060
|
-
"fieldType": {
|
|
27061
|
-
"kind": "array",
|
|
27062
|
-
"item": {
|
|
27063
|
-
"kind": "string"
|
|
27064
|
-
}
|
|
27065
|
-
},
|
|
27066
|
-
"required": true,
|
|
27067
|
-
"description": "The column names"
|
|
27068
|
-
},
|
|
27069
|
-
{
|
|
27070
|
-
"name": "rows",
|
|
27071
|
-
"type": "key=value[]",
|
|
27072
|
-
"fieldType": {
|
|
27073
|
-
"kind": "array",
|
|
27074
|
-
"item": {
|
|
27075
|
-
"kind": "record",
|
|
27076
|
-
"value": {
|
|
27077
|
-
"kind": "any"
|
|
27078
|
-
}
|
|
27079
|
-
}
|
|
27080
|
-
},
|
|
27081
|
-
"required": true,
|
|
27082
|
-
"description": "The rows, one object for each row"
|
|
27083
|
-
}
|
|
27084
|
-
]
|
|
27085
|
-
},
|
|
27086
|
-
{
|
|
27087
|
-
"path": [
|
|
27088
|
-
"db",
|
|
27089
|
-
"execute"
|
|
27090
|
-
],
|
|
27091
|
-
"metadata": {
|
|
27092
|
-
"description": "Deprecated: use sqlite.execute. Execute a SQL statement (INSERT, UPDATE, DELETE)"
|
|
27093
|
-
},
|
|
27094
|
-
"fields": [
|
|
27095
|
-
{
|
|
27096
|
-
"name": "sql",
|
|
27097
|
-
"type": "string",
|
|
27098
|
-
"fieldType": {
|
|
27099
|
-
"kind": "string"
|
|
27100
|
-
},
|
|
27101
|
-
"required": true,
|
|
27102
|
-
"description": "The SQL statement or script (INSERT, UPDATE, DELETE, CREATE TABLE, ...)"
|
|
27103
|
-
},
|
|
27104
|
-
{
|
|
27105
|
-
"name": "params",
|
|
27106
|
-
"type": "json[]",
|
|
27107
|
-
"fieldType": {
|
|
27108
|
-
"kind": "array",
|
|
27109
|
-
"item": {
|
|
27110
|
-
"kind": "any"
|
|
27111
|
-
}
|
|
27112
|
-
},
|
|
27113
|
-
"required": false,
|
|
27114
|
-
"description": "The values of the ? placeholders of the SQL, in order"
|
|
27115
|
-
},
|
|
27116
|
-
{
|
|
27117
|
-
"name": "dbPath",
|
|
27118
|
-
"type": "string",
|
|
27119
|
-
"fieldType": {
|
|
27120
|
-
"kind": "string"
|
|
27121
|
-
},
|
|
27122
|
-
"required": false,
|
|
27123
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db). A query does not make a missing file."
|
|
27124
|
-
}
|
|
27125
|
-
],
|
|
27126
|
-
"inputSchema": {
|
|
27127
|
-
"type": "object",
|
|
27128
|
-
"properties": {
|
|
27129
|
-
"sql": {
|
|
27130
|
-
"type": "string",
|
|
27131
|
-
"description": "The SQL statement or script (INSERT, UPDATE, DELETE, CREATE TABLE, ...)"
|
|
27132
|
-
},
|
|
27133
|
-
"params": {
|
|
27134
|
-
"description": "The values of the ? placeholders of the SQL, in order",
|
|
27135
|
-
"type": "array",
|
|
27136
|
-
"items": {}
|
|
27137
|
-
},
|
|
27138
|
-
"dbPath": {
|
|
27139
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db). A query does not make a missing file.",
|
|
27140
|
-
"type": "string"
|
|
27141
|
-
}
|
|
27142
|
-
},
|
|
27143
|
-
"required": [
|
|
27144
|
-
"sql"
|
|
27145
|
-
]
|
|
27146
|
-
},
|
|
27147
|
-
"resultFields": [
|
|
27148
|
-
{
|
|
27149
|
-
"name": "changes",
|
|
27150
|
-
"type": "number",
|
|
27151
|
-
"fieldType": {
|
|
27152
|
-
"kind": "number"
|
|
27153
|
-
},
|
|
27154
|
-
"required": true,
|
|
27155
|
-
"description": "The number of rows that the statements changed"
|
|
27156
|
-
}
|
|
27157
|
-
]
|
|
27158
|
-
},
|
|
27159
|
-
{
|
|
27160
|
-
"path": [
|
|
27161
|
-
"db",
|
|
27162
|
-
"tables"
|
|
27163
|
-
],
|
|
27164
|
-
"metadata": {
|
|
27165
|
-
"description": "Deprecated: use sqlite.tables. The tables and views of a database (read only: a missing file is an error)",
|
|
27166
|
-
"args": [],
|
|
27167
|
-
"shorts": {},
|
|
27168
|
-
"output": "json"
|
|
27169
|
-
},
|
|
27170
|
-
"fields": [
|
|
27171
|
-
{
|
|
27172
|
-
"name": "views",
|
|
27173
|
-
"type": "boolean",
|
|
27174
|
-
"fieldType": {
|
|
27175
|
-
"kind": "boolean"
|
|
27176
|
-
},
|
|
27177
|
-
"required": false,
|
|
27178
|
-
"description": "Also give the views (default true)"
|
|
27179
|
-
},
|
|
27180
|
-
{
|
|
27181
|
-
"name": "dbPath",
|
|
27182
|
-
"type": "string",
|
|
27183
|
-
"fieldType": {
|
|
27184
|
-
"kind": "string"
|
|
27185
|
-
},
|
|
27186
|
-
"required": false,
|
|
27187
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)"
|
|
27188
|
-
}
|
|
27189
|
-
],
|
|
27190
|
-
"inputSchema": {
|
|
27191
|
-
"type": "object",
|
|
27192
|
-
"properties": {
|
|
27193
|
-
"views": {
|
|
27194
|
-
"description": "Also give the views (default true)",
|
|
27195
|
-
"type": "boolean"
|
|
27196
|
-
},
|
|
27197
|
-
"dbPath": {
|
|
27198
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)",
|
|
27199
|
-
"type": "string",
|
|
27200
|
-
"minLength": 1
|
|
27201
|
-
}
|
|
27202
|
-
}
|
|
27203
|
-
},
|
|
27204
|
-
"resultFields": [
|
|
27205
|
-
{
|
|
27206
|
-
"name": "tables",
|
|
27207
|
-
"type": "json[]",
|
|
27208
|
-
"fieldType": {
|
|
27209
|
-
"kind": "array",
|
|
27210
|
-
"item": {
|
|
27211
|
-
"kind": "object"
|
|
27212
|
-
}
|
|
27213
|
-
},
|
|
27214
|
-
"required": true,
|
|
27215
|
-
"description": "The tables (and the views), in the order of their names, without the internal sqlite_ tables"
|
|
27216
|
-
}
|
|
27217
|
-
]
|
|
27218
|
-
},
|
|
27219
|
-
{
|
|
27220
|
-
"path": [
|
|
27221
|
-
"db",
|
|
27222
|
-
"schema"
|
|
27223
|
-
],
|
|
27224
|
-
"metadata": {
|
|
27225
|
-
"description": "Deprecated: use sqlite.schema. The columns, indexes and foreign keys of a table (read only)",
|
|
27226
|
-
"args": [
|
|
27227
|
-
"table"
|
|
27228
|
-
],
|
|
27229
|
-
"shorts": {},
|
|
27230
|
-
"output": "json"
|
|
27231
|
-
},
|
|
27232
|
-
"fields": [
|
|
27233
|
-
{
|
|
27234
|
-
"name": "table",
|
|
27235
|
-
"type": "string",
|
|
27236
|
-
"fieldType": {
|
|
27237
|
-
"kind": "string"
|
|
27238
|
-
},
|
|
27239
|
-
"required": true,
|
|
27240
|
-
"description": "The table or the view"
|
|
27241
|
-
},
|
|
27242
|
-
{
|
|
27243
|
-
"name": "dbPath",
|
|
27244
|
-
"type": "string",
|
|
27245
|
-
"fieldType": {
|
|
27246
|
-
"kind": "string"
|
|
27247
|
-
},
|
|
27248
|
-
"required": false,
|
|
27249
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)"
|
|
27250
|
-
}
|
|
27251
|
-
],
|
|
27252
|
-
"inputSchema": {
|
|
27253
|
-
"type": "object",
|
|
27254
|
-
"properties": {
|
|
27255
|
-
"table": {
|
|
27256
|
-
"type": "string",
|
|
27257
|
-
"minLength": 1,
|
|
27258
|
-
"description": "The table or the view"
|
|
27259
|
-
},
|
|
27260
|
-
"dbPath": {
|
|
27261
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)",
|
|
27262
|
-
"type": "string",
|
|
27263
|
-
"minLength": 1
|
|
27264
|
-
}
|
|
27265
|
-
},
|
|
27266
|
-
"required": [
|
|
27267
|
-
"table"
|
|
27268
|
-
]
|
|
27269
|
-
},
|
|
27270
|
-
"resultFields": [
|
|
27271
|
-
{
|
|
27272
|
-
"name": "table",
|
|
27273
|
-
"type": "string",
|
|
27274
|
-
"fieldType": {
|
|
27275
|
-
"kind": "string"
|
|
27276
|
-
},
|
|
27277
|
-
"required": true,
|
|
27278
|
-
"description": "The table or the view"
|
|
27279
|
-
},
|
|
27280
|
-
{
|
|
27281
|
-
"name": "type",
|
|
27282
|
-
"type": "enum",
|
|
27283
|
-
"fieldType": {
|
|
27284
|
-
"kind": "enum",
|
|
27285
|
-
"values": [
|
|
27286
|
-
"table",
|
|
27287
|
-
"view"
|
|
27288
|
-
]
|
|
27289
|
-
},
|
|
27290
|
-
"required": true,
|
|
27291
|
-
"description": "table or view",
|
|
27292
|
-
"enumValues": [
|
|
27293
|
-
"table",
|
|
27294
|
-
"view"
|
|
27295
|
-
]
|
|
27296
|
-
},
|
|
27297
|
-
{
|
|
27298
|
-
"name": "sql",
|
|
27299
|
-
"type": "string",
|
|
27300
|
-
"fieldType": {
|
|
27301
|
-
"kind": "string"
|
|
27302
|
-
},
|
|
27303
|
-
"required": true,
|
|
27304
|
-
"description": "The SQL that made the table or the view"
|
|
27305
|
-
},
|
|
27306
|
-
{
|
|
27307
|
-
"name": "columns",
|
|
27308
|
-
"type": "json[]",
|
|
27309
|
-
"fieldType": {
|
|
27310
|
-
"kind": "array",
|
|
27311
|
-
"item": {
|
|
27312
|
-
"kind": "object"
|
|
27313
|
-
}
|
|
27314
|
-
},
|
|
27315
|
-
"required": true,
|
|
27316
|
-
"description": "The columns, in their order"
|
|
27317
|
-
},
|
|
27318
|
-
{
|
|
27319
|
-
"name": "indexes",
|
|
27320
|
-
"type": "json[]",
|
|
27321
|
-
"fieldType": {
|
|
27322
|
-
"kind": "array",
|
|
27323
|
-
"item": {
|
|
27324
|
-
"kind": "object"
|
|
27325
|
-
}
|
|
27326
|
-
},
|
|
27327
|
-
"required": true,
|
|
27328
|
-
"description": "The indexes of the table"
|
|
27329
|
-
},
|
|
27330
|
-
{
|
|
27331
|
-
"name": "foreignKeys",
|
|
27332
|
-
"type": "json[]",
|
|
27333
|
-
"fieldType": {
|
|
27334
|
-
"kind": "array",
|
|
27335
|
-
"item": {
|
|
27336
|
-
"kind": "object"
|
|
27337
|
-
}
|
|
27338
|
-
},
|
|
27339
|
-
"required": true,
|
|
27340
|
-
"description": "The foreign keys of the table"
|
|
27341
|
-
}
|
|
27342
|
-
]
|
|
27343
|
-
},
|
|
27344
|
-
{
|
|
27345
|
-
"path": [
|
|
27346
|
-
"db",
|
|
27347
|
-
"transaction"
|
|
27348
|
-
],
|
|
27349
|
-
"metadata": {
|
|
27350
|
-
"description": "Deprecated: use sqlite.transaction. Run statements in one transaction: they all take effect, or none does",
|
|
27351
|
-
"args": [],
|
|
27352
|
-
"shorts": {},
|
|
27353
|
-
"output": "json"
|
|
27354
|
-
},
|
|
27355
|
-
"fields": [
|
|
27356
|
-
{
|
|
27357
|
-
"name": "statements",
|
|
27358
|
-
"type": "json[]",
|
|
27359
|
-
"fieldType": {
|
|
27360
|
-
"kind": "array",
|
|
27361
|
-
"item": {
|
|
27362
|
-
"kind": "object"
|
|
27363
|
-
}
|
|
27364
|
-
},
|
|
27365
|
-
"required": true,
|
|
27366
|
-
"description": "The statements, in order: they all take effect, or none does"
|
|
27367
|
-
},
|
|
27368
|
-
{
|
|
27369
|
-
"name": "dbPath",
|
|
27370
|
-
"type": "string",
|
|
27371
|
-
"fieldType": {
|
|
27372
|
-
"kind": "string"
|
|
27373
|
-
},
|
|
27374
|
-
"required": false,
|
|
27375
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)"
|
|
27376
|
-
}
|
|
27377
|
-
],
|
|
27378
|
-
"inputSchema": {
|
|
27379
|
-
"type": "object",
|
|
27380
|
-
"properties": {
|
|
27381
|
-
"statements": {
|
|
27382
|
-
"minItems": 1,
|
|
27383
|
-
"type": "array",
|
|
27384
|
-
"items": {
|
|
27385
|
-
"type": "object",
|
|
27386
|
-
"properties": {
|
|
27387
|
-
"sql": {
|
|
27388
|
-
"type": "string",
|
|
27389
|
-
"minLength": 1,
|
|
27390
|
-
"description": "One SQL statement, or several without params. BEGIN, COMMIT and ROLLBACK are refused."
|
|
27391
|
-
},
|
|
27392
|
-
"params": {
|
|
27393
|
-
"description": "The values of the ? placeholders, in order",
|
|
27394
|
-
"type": "array",
|
|
27395
|
-
"items": {}
|
|
27396
|
-
}
|
|
27397
|
-
},
|
|
27398
|
-
"required": [
|
|
27399
|
-
"sql"
|
|
27400
|
-
]
|
|
27401
|
-
},
|
|
27402
|
-
"description": "The statements, in order: they all take effect, or none does"
|
|
27403
|
-
},
|
|
27404
|
-
"dbPath": {
|
|
27405
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)",
|
|
27406
|
-
"type": "string",
|
|
27407
|
-
"minLength": 1
|
|
27408
|
-
}
|
|
27409
|
-
},
|
|
27410
|
-
"required": [
|
|
27411
|
-
"statements"
|
|
27412
|
-
]
|
|
27413
|
-
},
|
|
27414
|
-
"resultFields": [
|
|
27415
|
-
{
|
|
27416
|
-
"name": "results",
|
|
27417
|
-
"type": "json[]",
|
|
27418
|
-
"fieldType": {
|
|
27419
|
-
"kind": "array",
|
|
27420
|
-
"item": {
|
|
27421
|
-
"kind": "object"
|
|
27422
|
-
}
|
|
27423
|
-
},
|
|
27424
|
-
"required": true,
|
|
27425
|
-
"description": "One result for each statement of the input"
|
|
27426
|
-
},
|
|
27427
|
-
{
|
|
27428
|
-
"name": "changes",
|
|
27429
|
-
"type": "number",
|
|
27430
|
-
"fieldType": {
|
|
27431
|
-
"kind": "number"
|
|
27432
|
-
},
|
|
27433
|
-
"required": true,
|
|
27434
|
-
"description": "The rows that the transaction changed"
|
|
27435
|
-
}
|
|
27436
|
-
]
|
|
27437
|
-
},
|
|
27438
|
-
{
|
|
27439
|
-
"path": [
|
|
27440
|
-
"db",
|
|
27441
|
-
"migrate"
|
|
27442
|
-
],
|
|
27443
|
-
"metadata": {
|
|
27444
|
-
"description": "Deprecated: use sqlite.migrate. Apply the numbered migrations (a folder or a list) that a database does not have, in one transaction",
|
|
27445
|
-
"args": [],
|
|
27446
|
-
"shorts": {},
|
|
27447
|
-
"output": "json"
|
|
27448
|
-
},
|
|
27449
|
-
"fields": [
|
|
27450
|
-
{
|
|
27451
|
-
"name": "folder",
|
|
27452
|
-
"type": "string",
|
|
27453
|
-
"fieldType": {
|
|
27454
|
-
"kind": "string"
|
|
27455
|
-
},
|
|
27456
|
-
"required": false,
|
|
27457
|
-
"description": "A folder of files named <number>_<name>.sql, for example 001_create_users.sql (not with migrations)"
|
|
27458
|
-
},
|
|
27459
|
-
{
|
|
27460
|
-
"name": "migrations",
|
|
27461
|
-
"type": "json[]",
|
|
27462
|
-
"fieldType": {
|
|
27463
|
-
"kind": "array",
|
|
27464
|
-
"item": {
|
|
27465
|
-
"kind": "object"
|
|
27466
|
-
}
|
|
27467
|
-
},
|
|
27468
|
-
"required": false,
|
|
27469
|
-
"description": "The migrations (not with folder)"
|
|
27470
|
-
},
|
|
27471
|
-
{
|
|
27472
|
-
"name": "table",
|
|
27473
|
-
"type": "string",
|
|
27474
|
-
"fieldType": {
|
|
27475
|
-
"kind": "string"
|
|
27476
|
-
},
|
|
27477
|
-
"required": false,
|
|
27478
|
-
"description": "The table of the applied migrations (default schema_migrations)"
|
|
27479
|
-
},
|
|
27480
|
-
{
|
|
27481
|
-
"name": "dbPath",
|
|
27482
|
-
"type": "string",
|
|
27483
|
-
"fieldType": {
|
|
27484
|
-
"kind": "string"
|
|
27485
|
-
},
|
|
27486
|
-
"required": false,
|
|
27487
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)"
|
|
27488
|
-
}
|
|
27489
|
-
],
|
|
27490
|
-
"inputSchema": {
|
|
27491
|
-
"type": "object",
|
|
27492
|
-
"properties": {
|
|
27493
|
-
"folder": {
|
|
27494
|
-
"description": "A folder of files named <number>_<name>.sql, for example 001_create_users.sql (not with migrations)",
|
|
27495
|
-
"type": "string",
|
|
27496
|
-
"minLength": 1
|
|
27497
|
-
},
|
|
27498
|
-
"migrations": {
|
|
27499
|
-
"description": "The migrations (not with folder)",
|
|
27500
|
-
"type": "array",
|
|
27501
|
-
"items": {
|
|
27502
|
-
"type": "object",
|
|
27503
|
-
"properties": {
|
|
27504
|
-
"version": {
|
|
27505
|
-
"type": "integer",
|
|
27506
|
-
"minimum": 1,
|
|
27507
|
-
"maximum": 9007199254740991,
|
|
27508
|
-
"description": "The number of the migration: the migrations run in the order of their numbers"
|
|
27509
|
-
},
|
|
27510
|
-
"name": {
|
|
27511
|
-
"description": "A name for people",
|
|
27512
|
-
"type": "string"
|
|
27513
|
-
},
|
|
27514
|
-
"sql": {
|
|
27515
|
-
"type": "string",
|
|
27516
|
-
"minLength": 1,
|
|
27517
|
-
"description": "The SQL of the migration (several statements are allowed)"
|
|
27518
|
-
}
|
|
27519
|
-
},
|
|
27520
|
-
"required": [
|
|
27521
|
-
"version",
|
|
27522
|
-
"sql"
|
|
27523
|
-
]
|
|
27524
|
-
}
|
|
27525
|
-
},
|
|
27526
|
-
"table": {
|
|
27527
|
-
"description": "The table of the applied migrations (default schema_migrations)",
|
|
27528
|
-
"type": "string",
|
|
27529
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
|
|
27530
|
-
},
|
|
27531
|
-
"dbPath": {
|
|
27532
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)",
|
|
27533
|
-
"type": "string",
|
|
27534
|
-
"minLength": 1
|
|
27535
|
-
}
|
|
27536
|
-
}
|
|
27537
|
-
},
|
|
27538
|
-
"resultFields": [
|
|
27539
|
-
{
|
|
27540
|
-
"name": "applied",
|
|
27541
|
-
"type": "json[]",
|
|
27542
|
-
"fieldType": {
|
|
27543
|
-
"kind": "array",
|
|
27544
|
-
"item": {
|
|
27545
|
-
"kind": "object"
|
|
27546
|
-
}
|
|
27547
|
-
},
|
|
27548
|
-
"required": true,
|
|
27549
|
-
"description": "The migrations that this call applied, in order"
|
|
27550
|
-
},
|
|
27551
|
-
{
|
|
27552
|
-
"name": "skipped",
|
|
27553
|
-
"type": "number",
|
|
27554
|
-
"fieldType": {
|
|
27555
|
-
"kind": "number"
|
|
27556
|
-
},
|
|
27557
|
-
"required": true,
|
|
27558
|
-
"description": "The number of migrations that the database had already"
|
|
27559
|
-
},
|
|
27560
|
-
{
|
|
27561
|
-
"name": "version",
|
|
27562
|
-
"type": "number",
|
|
27563
|
-
"fieldType": {
|
|
27564
|
-
"kind": "number"
|
|
27565
|
-
},
|
|
27566
|
-
"required": true,
|
|
27567
|
-
"description": "The highest applied version, or 0"
|
|
27568
|
-
}
|
|
27569
|
-
]
|
|
27570
|
-
},
|
|
27571
|
-
{
|
|
27572
|
-
"path": [
|
|
27573
|
-
"db",
|
|
27574
|
-
"backup"
|
|
27575
|
-
],
|
|
27576
|
-
"metadata": {
|
|
27577
|
-
"description": "Deprecated: use sqlite.backup. Copy a database to a new file (it does not replace a file)",
|
|
27578
|
-
"args": [
|
|
27579
|
-
"to"
|
|
27580
|
-
],
|
|
27581
|
-
"shorts": {},
|
|
27582
|
-
"output": "json"
|
|
27583
|
-
},
|
|
27584
|
-
"fields": [
|
|
27585
|
-
{
|
|
27586
|
-
"name": "to",
|
|
27587
|
-
"type": "string",
|
|
27588
|
-
"fieldType": {
|
|
27589
|
-
"kind": "string"
|
|
27590
|
-
},
|
|
27591
|
-
"required": true,
|
|
27592
|
-
"description": "The new file. The procedure does not replace a file."
|
|
27593
|
-
},
|
|
27594
|
-
{
|
|
27595
|
-
"name": "vacuum",
|
|
27596
|
-
"type": "boolean",
|
|
27597
|
-
"fieldType": {
|
|
27598
|
-
"kind": "boolean"
|
|
27599
|
-
},
|
|
27600
|
-
"required": false,
|
|
27601
|
-
"description": "Also compact the copy (VACUUM): it leaves out the free pages"
|
|
27602
|
-
},
|
|
27603
|
-
{
|
|
27604
|
-
"name": "dbPath",
|
|
27605
|
-
"type": "string",
|
|
27606
|
-
"fieldType": {
|
|
27607
|
-
"kind": "string"
|
|
27608
|
-
},
|
|
27609
|
-
"required": false,
|
|
27610
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)"
|
|
27611
|
-
}
|
|
27612
|
-
],
|
|
27613
|
-
"inputSchema": {
|
|
27614
|
-
"type": "object",
|
|
27615
|
-
"properties": {
|
|
27616
|
-
"to": {
|
|
27617
|
-
"type": "string",
|
|
27618
|
-
"minLength": 1,
|
|
27619
|
-
"description": "The new file. The procedure does not replace a file."
|
|
27620
|
-
},
|
|
27621
|
-
"vacuum": {
|
|
27622
|
-
"description": "Also compact the copy (VACUUM): it leaves out the free pages",
|
|
27623
|
-
"type": "boolean"
|
|
27624
|
-
},
|
|
27625
|
-
"dbPath": {
|
|
27626
|
-
"description": "The SQLite database file (default: the CLI log database, ~/logs/cli/cli.db)",
|
|
27627
|
-
"type": "string",
|
|
27628
|
-
"minLength": 1
|
|
27629
|
-
}
|
|
27630
|
-
},
|
|
27631
|
-
"required": [
|
|
27632
|
-
"to"
|
|
27633
|
-
]
|
|
27634
|
-
},
|
|
27635
|
-
"resultFields": [
|
|
27636
|
-
{
|
|
27637
|
-
"name": "path",
|
|
27638
|
-
"type": "string",
|
|
27639
|
-
"fieldType": {
|
|
27640
|
-
"kind": "string"
|
|
27641
|
-
},
|
|
27642
|
-
"required": true,
|
|
27643
|
-
"description": "The path of the copy"
|
|
27644
|
-
},
|
|
27645
|
-
{
|
|
27646
|
-
"name": "bytes",
|
|
27647
|
-
"type": "number",
|
|
27648
|
-
"fieldType": {
|
|
27649
|
-
"kind": "number"
|
|
27650
|
-
},
|
|
27651
|
-
"required": true,
|
|
27652
|
-
"description": "The size of the copy, in bytes"
|
|
27653
|
-
}
|
|
27654
|
-
]
|
|
27655
|
-
},
|
|
27656
27229
|
{
|
|
27657
27230
|
"path": [
|
|
27658
27231
|
"vitest",
|