@skrr-ai/cli 0.1.165 → 0.1.166
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/dist/commands/apps/installations/compatibility.js +1 -1
- package/dist/commands/apps/installations/migrate/abort.d.ts +13 -0
- package/dist/commands/apps/installations/migrate/abort.js +45 -0
- package/dist/commands/apps/installations/migrate/cutover.d.ts +15 -0
- package/dist/commands/apps/installations/migrate/cutover.js +102 -0
- package/dist/commands/apps/installations/migrate/plan.d.ts +13 -0
- package/dist/commands/apps/installations/migrate/plan.js +51 -0
- package/dist/commands/apps/installations/migrate/rollback.d.ts +16 -0
- package/dist/commands/apps/installations/migrate/rollback.js +103 -0
- package/dist/commands/apps/installations/migrate/stage.d.ts +15 -0
- package/dist/commands/apps/installations/migrate/stage.js +96 -0
- package/dist/commands/apps/installations/migrate/status.d.ts +12 -0
- package/dist/commands/apps/installations/migrate/status.js +52 -0
- package/dist/commands/apps/installations/migrate/validate.d.ts +14 -0
- package/dist/commands/apps/installations/migrate/validate.js +58 -0
- package/dist/commands/apps/installations/show.js +5 -6
- package/dist/commands/apps/operations/check.js +1 -1
- package/dist/commands/apps/resume.js +1 -1
- package/dist/commands/apps/settings/set.js +22 -10
- package/dist/lib/api-fetch.js +32 -5
- package/dist/lib/appCompatibility.js +1 -1
- package/dist/lib/appData.d.ts +1 -1
- package/dist/lib/appData.js +6 -2
- package/dist/lib/appDataMigration.d.ts +204 -0
- package/dist/lib/appDataMigration.js +753 -0
- package/dist/lib/appDataMigrationCommand.d.ts +39 -0
- package/dist/lib/appDataMigrationCommand.js +90 -0
- package/dist/lib/appInstallations.d.ts +8 -0
- package/dist/lib/appInstallations.js +54 -1
- package/dist/lib/apps-command.js +17 -10
- package/dist/lib/node-adapter.d.ts +0 -2
- package/dist/lib/node-adapter.js +46 -42
- package/dist/lib/rate-limit-retry.d.ts +4 -5
- package/dist/lib/rate-limit-retry.js +6 -10
- package/dist/lib/refresh.d.ts +2 -0
- package/dist/lib/refresh.js +6 -0
- package/dist/lib/write-outcome.d.ts +2 -0
- package/dist/lib/write-outcome.js +14 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +10041 -9838
- package/oclif.manifest.json +599 -3
- package/package.json +5 -2
package/oclif.manifest.json
CHANGED
|
@@ -24678,7 +24678,7 @@
|
|
|
24678
24678
|
"required": true
|
|
24679
24679
|
}
|
|
24680
24680
|
},
|
|
24681
|
-
"description": "Check whether an installation’s stored data is compatible with another version of its app, before you move it: the server reads the installation’s documents and holds each to the data schema that version declares for its collection. The answer is compatible, incompatible (a document does not fit, or lives in a collection the version no longer declares; the findings name the collection, the document id, a code and where, never a value) or unknown (it could not be proven: the data changed while it was read, a schema could not be read, the installation holds more than one check reads, or the
|
|
24681
|
+
"description": "Check whether an installation’s stored data is compatible with another version of its app, before you move it: the server reads the installation’s documents and holds each to the data schema that version declares for its collection. The answer is compatible, incompatible (a document does not fit, or lives in a collection the version no longer declares; the findings name the collection, the document id, a code and where, never a value) or unknown (it could not be proven: the data changed while it was read, a schema could not be read, the installation holds more than one check reads, or the data epoch is not known to be enforced by every writer). Unknown is NOT a pass. It proves conformance to the DECLARED schemas, not that the app will work; it is a snapshot, not a guarantee; and it is separate from approval of what the app may do. It writes nothing and no move depends on it: `apps upgrade` and `apps rollback` are never blocked by it. For a person who can edit the installation (a token or an agent’s credential is refused). Exit codes: 0 compatible, 1 incompatible, 5 unknown.",
|
|
24682
24682
|
"examples": [
|
|
24683
24683
|
"<%= config.bin %> apps installations compatibility appi_abc --version appv_new",
|
|
24684
24684
|
"<%= config.bin %> apps installations compatibility appi_abc --version appv_new --json"
|
|
@@ -24999,6 +24999,602 @@
|
|
|
24999
24999
|
"list.js"
|
|
25000
25000
|
]
|
|
25001
25001
|
},
|
|
25002
|
+
"apps:installations:migrate:abort": {
|
|
25003
|
+
"aliases": [],
|
|
25004
|
+
"args": {
|
|
25005
|
+
"installation": {
|
|
25006
|
+
"description": "The installation id (appi_...)",
|
|
25007
|
+
"name": "installation",
|
|
25008
|
+
"required": true
|
|
25009
|
+
}
|
|
25010
|
+
},
|
|
25011
|
+
"description": "Close the installation’s data migration: erase its staging and lift ONLY this migration’s own freeze, so the app runs again as it did before. Nothing live had changed (no stored document, no version, no old row), so there is nothing to restore. It is the way out of every state before the cutover, including `failed` and `validated`. Once a cutover has begun (`cutting_over`) it is refused (exit 4): the documents are being replaced, so the cutover can only finish (`cutover --yes`) or be rolled back, and a cutover that has finished is undone with `rollback`. It is safe to repeat: aborting a migration that is already aborted answers `aborted` again (name it with --migration; with none open and none named, the server refuses with \"no migration open\"). A freeze a platform moderation holds is not lifted by it. Only a signed-in person who is the installation’s installer (the person whose approval it runs under) may run it: a token or an agent’s credential is refused. It is off unless the deployment has it enabled (SKRR_APP_DATA_MIGRATION), which exit 6 says. Exit codes: 0 aborted, 4 the server refused it, 5 unknown (an answer this client cannot read, or a request that may have landed: run `status`), 6 not enabled on this server.",
|
|
25012
|
+
"examples": [
|
|
25013
|
+
"<%= config.bin %> apps installations migrate abort appi_abc",
|
|
25014
|
+
"<%= config.bin %> apps installations migrate abort appi_abc --migration mig_xyz --json"
|
|
25015
|
+
],
|
|
25016
|
+
"flags": {
|
|
25017
|
+
"bare": {
|
|
25018
|
+
"description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
|
|
25019
|
+
"name": "bare",
|
|
25020
|
+
"allowNo": false,
|
|
25021
|
+
"type": "boolean"
|
|
25022
|
+
},
|
|
25023
|
+
"token": {
|
|
25024
|
+
"description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
|
|
25025
|
+
"name": "token",
|
|
25026
|
+
"hasDynamicHelp": false,
|
|
25027
|
+
"multiple": false,
|
|
25028
|
+
"type": "option"
|
|
25029
|
+
},
|
|
25030
|
+
"workspace": {
|
|
25031
|
+
"description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
|
|
25032
|
+
"name": "workspace",
|
|
25033
|
+
"hasDynamicHelp": false,
|
|
25034
|
+
"multiple": false,
|
|
25035
|
+
"type": "option"
|
|
25036
|
+
},
|
|
25037
|
+
"profile": {
|
|
25038
|
+
"description": "Which stored session to use. Each profile keeps its own credential and deployment, so signing into one does not sign you out of another. Also OVERSKY_PROFILE. List them with `profiles list`.",
|
|
25039
|
+
"name": "profile",
|
|
25040
|
+
"hasDynamicHelp": false,
|
|
25041
|
+
"multiple": false,
|
|
25042
|
+
"type": "option"
|
|
25043
|
+
},
|
|
25044
|
+
"raw": {
|
|
25045
|
+
"description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
|
|
25046
|
+
"name": "raw",
|
|
25047
|
+
"allowNo": false,
|
|
25048
|
+
"type": "boolean"
|
|
25049
|
+
},
|
|
25050
|
+
"migration": {
|
|
25051
|
+
"description": "Abort this migration (the id `status` shows); it may already be aborted. Without it, the open one",
|
|
25052
|
+
"name": "migration",
|
|
25053
|
+
"hasDynamicHelp": false,
|
|
25054
|
+
"multiple": false,
|
|
25055
|
+
"type": "option"
|
|
25056
|
+
},
|
|
25057
|
+
"json": {
|
|
25058
|
+
"description": "Output the migration as JSON",
|
|
25059
|
+
"name": "json",
|
|
25060
|
+
"allowNo": false,
|
|
25061
|
+
"type": "boolean"
|
|
25062
|
+
}
|
|
25063
|
+
},
|
|
25064
|
+
"hasDynamicHelp": false,
|
|
25065
|
+
"hiddenAliases": [],
|
|
25066
|
+
"id": "apps:installations:migrate:abort",
|
|
25067
|
+
"pluginAlias": "@skrr-ai/cli",
|
|
25068
|
+
"pluginName": "@skrr-ai/cli",
|
|
25069
|
+
"pluginType": "core",
|
|
25070
|
+
"strict": true,
|
|
25071
|
+
"isESM": false,
|
|
25072
|
+
"relativePath": [
|
|
25073
|
+
"dist",
|
|
25074
|
+
"commands",
|
|
25075
|
+
"apps",
|
|
25076
|
+
"installations",
|
|
25077
|
+
"migrate",
|
|
25078
|
+
"abort.js"
|
|
25079
|
+
]
|
|
25080
|
+
},
|
|
25081
|
+
"apps:installations:migrate:cutover": {
|
|
25082
|
+
"aliases": [],
|
|
25083
|
+
"args": {
|
|
25084
|
+
"installation": {
|
|
25085
|
+
"description": "The installation id (appi_...)",
|
|
25086
|
+
"name": "installation",
|
|
25087
|
+
"required": true
|
|
25088
|
+
}
|
|
25089
|
+
},
|
|
25090
|
+
"description": "CUT OVER a validated data migration: copy the installation’s stored documents to an ARCHIVE, replace them with the converted ones, and move the app to the target version in one last write that also lifts the freeze. THIS REPLACES THE INSTALLATION’S LIVE DOCUMENTS, so it needs --yes; without it nothing is sent and the command only says what will change and what is kept (exit 4). What is kept: the old documents stay in the archive, outside your storage quota, for 14 days after the cutover completes (the date is printed), and `migrate rollback` puts them back within that time; after it they are erased for good. The version move follows the ordinary rules: a target that asks for more than you approved lands the app waiting for your approval (`needs_reconsent`), and the migration still completes; a migration never grants anything. The call is repeated while the migration is `cutting_over` and each call moves it on (one progress line per call; --once makes one call). From the first call the cutover can only finish or be rolled back, never aborted; if this terminal is closed the platform resumes it by itself, and a cutover that cannot finish after it replaced documents undoes itself from the archive (that is exit 1: it did not happen). Only a signed-in person who is the installation’s installer (the person whose approval it runs under) may run it: a token or an agent’s credential is refused. It is off unless the deployment has it enabled (SKRR_APP_DATA_MIGRATION), which exit 6 says. Exit codes: 0 completed (or, with --once, one call answered), 1 the migration failed or the cutover undid itself, 4 the server refused it (or --yes is missing), 5 unknown (an answer this client cannot read, no progress, the call cap, or a request that may have landed: run `status`), 6 not enabled on this server.",
|
|
25091
|
+
"examples": [
|
|
25092
|
+
"<%= config.bin %> apps installations migrate cutover appi_abc --yes",
|
|
25093
|
+
"<%= config.bin %> apps installations migrate cutover appi_abc --yes --once --json"
|
|
25094
|
+
],
|
|
25095
|
+
"flags": {
|
|
25096
|
+
"bare": {
|
|
25097
|
+
"description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
|
|
25098
|
+
"name": "bare",
|
|
25099
|
+
"allowNo": false,
|
|
25100
|
+
"type": "boolean"
|
|
25101
|
+
},
|
|
25102
|
+
"token": {
|
|
25103
|
+
"description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
|
|
25104
|
+
"name": "token",
|
|
25105
|
+
"hasDynamicHelp": false,
|
|
25106
|
+
"multiple": false,
|
|
25107
|
+
"type": "option"
|
|
25108
|
+
},
|
|
25109
|
+
"workspace": {
|
|
25110
|
+
"description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
|
|
25111
|
+
"name": "workspace",
|
|
25112
|
+
"hasDynamicHelp": false,
|
|
25113
|
+
"multiple": false,
|
|
25114
|
+
"type": "option"
|
|
25115
|
+
},
|
|
25116
|
+
"profile": {
|
|
25117
|
+
"description": "Which stored session to use. Each profile keeps its own credential and deployment, so signing into one does not sign you out of another. Also OVERSKY_PROFILE. List them with `profiles list`.",
|
|
25118
|
+
"name": "profile",
|
|
25119
|
+
"hasDynamicHelp": false,
|
|
25120
|
+
"multiple": false,
|
|
25121
|
+
"type": "option"
|
|
25122
|
+
},
|
|
25123
|
+
"raw": {
|
|
25124
|
+
"description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
|
|
25125
|
+
"name": "raw",
|
|
25126
|
+
"allowNo": false,
|
|
25127
|
+
"type": "boolean"
|
|
25128
|
+
},
|
|
25129
|
+
"migration": {
|
|
25130
|
+
"description": "Only act on this migration (the id `status` shows); refused if another one is open",
|
|
25131
|
+
"name": "migration",
|
|
25132
|
+
"hasDynamicHelp": false,
|
|
25133
|
+
"multiple": false,
|
|
25134
|
+
"type": "option"
|
|
25135
|
+
},
|
|
25136
|
+
"yes": {
|
|
25137
|
+
"description": "Confirm that the cutover may REPLACE the installation’s stored documents and move the app to the new version (the old documents are archived for 14 days). Needed for every call",
|
|
25138
|
+
"name": "yes",
|
|
25139
|
+
"allowNo": false,
|
|
25140
|
+
"type": "boolean"
|
|
25141
|
+
},
|
|
25142
|
+
"once": {
|
|
25143
|
+
"description": "Make one call and stop, instead of repeating while it makes progress",
|
|
25144
|
+
"name": "once",
|
|
25145
|
+
"allowNo": false,
|
|
25146
|
+
"type": "boolean"
|
|
25147
|
+
},
|
|
25148
|
+
"json": {
|
|
25149
|
+
"description": "Output the migration as JSON",
|
|
25150
|
+
"name": "json",
|
|
25151
|
+
"allowNo": false,
|
|
25152
|
+
"type": "boolean"
|
|
25153
|
+
}
|
|
25154
|
+
},
|
|
25155
|
+
"hasDynamicHelp": false,
|
|
25156
|
+
"hiddenAliases": [],
|
|
25157
|
+
"id": "apps:installations:migrate:cutover",
|
|
25158
|
+
"pluginAlias": "@skrr-ai/cli",
|
|
25159
|
+
"pluginName": "@skrr-ai/cli",
|
|
25160
|
+
"pluginType": "core",
|
|
25161
|
+
"strict": true,
|
|
25162
|
+
"isESM": false,
|
|
25163
|
+
"relativePath": [
|
|
25164
|
+
"dist",
|
|
25165
|
+
"commands",
|
|
25166
|
+
"apps",
|
|
25167
|
+
"installations",
|
|
25168
|
+
"migrate",
|
|
25169
|
+
"cutover.js"
|
|
25170
|
+
]
|
|
25171
|
+
},
|
|
25172
|
+
"apps:installations:migrate:plan": {
|
|
25173
|
+
"aliases": [],
|
|
25174
|
+
"args": {
|
|
25175
|
+
"installation": {
|
|
25176
|
+
"description": "The installation id (appi_...)",
|
|
25177
|
+
"name": "installation",
|
|
25178
|
+
"required": true
|
|
25179
|
+
}
|
|
25180
|
+
},
|
|
25181
|
+
"description": "Plan a migration of an installation’s stored data to another version of its app, for data that `apps installations compatibility` says does not fit it. The server runs that check again, and plans only if the target version declares the steps (rename, default, drop, convert) its documents need; it records the plan and nothing else. It freezes nothing, writes no document and moves no version. A plan is the first step of plan -> stage -> validate -> cutover; `abort` drops it. Only a signed-in person who is the installation’s installer (the person whose approval it runs under) may run it: a token or an agent’s credential is refused. It is off unless the deployment has it enabled (SKRR_APP_DATA_MIGRATION), which exit 6 says. Exit codes: 0 planned, 4 the server refused it (the reason is printed in words), 5 unknown (an answer this client cannot read, or a request that may have landed: run `status`), 6 not enabled on this server.",
|
|
25182
|
+
"examples": [
|
|
25183
|
+
"<%= config.bin %> apps installations migrate plan appi_abc --version appv_new",
|
|
25184
|
+
"<%= config.bin %> apps installations migrate plan appi_abc --version appv_new --json"
|
|
25185
|
+
],
|
|
25186
|
+
"flags": {
|
|
25187
|
+
"bare": {
|
|
25188
|
+
"description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
|
|
25189
|
+
"name": "bare",
|
|
25190
|
+
"allowNo": false,
|
|
25191
|
+
"type": "boolean"
|
|
25192
|
+
},
|
|
25193
|
+
"token": {
|
|
25194
|
+
"description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
|
|
25195
|
+
"name": "token",
|
|
25196
|
+
"hasDynamicHelp": false,
|
|
25197
|
+
"multiple": false,
|
|
25198
|
+
"type": "option"
|
|
25199
|
+
},
|
|
25200
|
+
"workspace": {
|
|
25201
|
+
"description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
|
|
25202
|
+
"name": "workspace",
|
|
25203
|
+
"hasDynamicHelp": false,
|
|
25204
|
+
"multiple": false,
|
|
25205
|
+
"type": "option"
|
|
25206
|
+
},
|
|
25207
|
+
"profile": {
|
|
25208
|
+
"description": "Which stored session to use. Each profile keeps its own credential and deployment, so signing into one does not sign you out of another. Also OVERSKY_PROFILE. List them with `profiles list`.",
|
|
25209
|
+
"name": "profile",
|
|
25210
|
+
"hasDynamicHelp": false,
|
|
25211
|
+
"multiple": false,
|
|
25212
|
+
"type": "option"
|
|
25213
|
+
},
|
|
25214
|
+
"raw": {
|
|
25215
|
+
"description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
|
|
25216
|
+
"name": "raw",
|
|
25217
|
+
"allowNo": false,
|
|
25218
|
+
"type": "boolean"
|
|
25219
|
+
},
|
|
25220
|
+
"version": {
|
|
25221
|
+
"description": "The version to migrate the installation’s data to (appv_...)",
|
|
25222
|
+
"name": "version",
|
|
25223
|
+
"required": true,
|
|
25224
|
+
"hasDynamicHelp": false,
|
|
25225
|
+
"multiple": false,
|
|
25226
|
+
"type": "option"
|
|
25227
|
+
},
|
|
25228
|
+
"json": {
|
|
25229
|
+
"description": "Output the migration as JSON",
|
|
25230
|
+
"name": "json",
|
|
25231
|
+
"allowNo": false,
|
|
25232
|
+
"type": "boolean"
|
|
25233
|
+
}
|
|
25234
|
+
},
|
|
25235
|
+
"hasDynamicHelp": false,
|
|
25236
|
+
"hiddenAliases": [],
|
|
25237
|
+
"id": "apps:installations:migrate:plan",
|
|
25238
|
+
"pluginAlias": "@skrr-ai/cli",
|
|
25239
|
+
"pluginName": "@skrr-ai/cli",
|
|
25240
|
+
"pluginType": "core",
|
|
25241
|
+
"strict": true,
|
|
25242
|
+
"isESM": false,
|
|
25243
|
+
"relativePath": [
|
|
25244
|
+
"dist",
|
|
25245
|
+
"commands",
|
|
25246
|
+
"apps",
|
|
25247
|
+
"installations",
|
|
25248
|
+
"migrate",
|
|
25249
|
+
"plan.js"
|
|
25250
|
+
]
|
|
25251
|
+
},
|
|
25252
|
+
"apps:installations:migrate:rollback": {
|
|
25253
|
+
"aliases": [],
|
|
25254
|
+
"args": {
|
|
25255
|
+
"installation": {
|
|
25256
|
+
"description": "The installation id (appi_...)",
|
|
25257
|
+
"name": "installation",
|
|
25258
|
+
"required": true
|
|
25259
|
+
}
|
|
25260
|
+
},
|
|
25261
|
+
"description": "ROLL BACK a completed data migration within its 14-day archive: freeze the app again, put the archived documents back over the live ones exactly as they were, move the app back to the version it ran before and lift the freeze. THIS REPLACES THE INSTALLATION’S LIVE DOCUMENTS, so it needs --yes; without it nothing is sent and the command only says what will change (exit 4). It first COUNTS the documents written since the cutover (the app is frozen, so none is missed): if there are any it refuses, changes nothing and prints how many per collection, because restoring would discard them; add --discard-writes-since-cutover to roll back anyway and lose them for good. It is also refused when the archive is past its 14 days (the old documents are erased), when the app was moved to another version or migrated again since the cutover, and when another migration is open. The call is repeated while the migration is `rolling_back` and each call moves it on (--once makes one call); if this terminal is closed the platform resumes it by itself. Only a signed-in person who is the installation’s installer (the person whose approval it runs under) may run it: a token or an agent’s credential is refused. It is off unless the deployment has it enabled (SKRR_APP_DATA_MIGRATION), which exit 6 says. Exit codes: 0 rolled back (or, with --once, one call answered), 1 the migration failed, 4 the server refused it (or --yes is missing, or documents were written since and you did not say to discard them), 5 unknown (an answer this client cannot read, no progress, the call cap, or a request that may have landed: run `status`), 6 not enabled on this server.",
|
|
25262
|
+
"examples": [
|
|
25263
|
+
"<%= config.bin %> apps installations migrate rollback appi_abc --yes",
|
|
25264
|
+
"<%= config.bin %> apps installations migrate rollback appi_abc --yes --discard-writes-since-cutover"
|
|
25265
|
+
],
|
|
25266
|
+
"flags": {
|
|
25267
|
+
"bare": {
|
|
25268
|
+
"description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
|
|
25269
|
+
"name": "bare",
|
|
25270
|
+
"allowNo": false,
|
|
25271
|
+
"type": "boolean"
|
|
25272
|
+
},
|
|
25273
|
+
"token": {
|
|
25274
|
+
"description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
|
|
25275
|
+
"name": "token",
|
|
25276
|
+
"hasDynamicHelp": false,
|
|
25277
|
+
"multiple": false,
|
|
25278
|
+
"type": "option"
|
|
25279
|
+
},
|
|
25280
|
+
"workspace": {
|
|
25281
|
+
"description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
|
|
25282
|
+
"name": "workspace",
|
|
25283
|
+
"hasDynamicHelp": false,
|
|
25284
|
+
"multiple": false,
|
|
25285
|
+
"type": "option"
|
|
25286
|
+
},
|
|
25287
|
+
"profile": {
|
|
25288
|
+
"description": "Which stored session to use. Each profile keeps its own credential and deployment, so signing into one does not sign you out of another. Also OVERSKY_PROFILE. List them with `profiles list`.",
|
|
25289
|
+
"name": "profile",
|
|
25290
|
+
"hasDynamicHelp": false,
|
|
25291
|
+
"multiple": false,
|
|
25292
|
+
"type": "option"
|
|
25293
|
+
},
|
|
25294
|
+
"raw": {
|
|
25295
|
+
"description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
|
|
25296
|
+
"name": "raw",
|
|
25297
|
+
"allowNo": false,
|
|
25298
|
+
"type": "boolean"
|
|
25299
|
+
},
|
|
25300
|
+
"migration": {
|
|
25301
|
+
"description": "The completed migration to roll back (the id `status` shows); without it, the one `status` shows",
|
|
25302
|
+
"name": "migration",
|
|
25303
|
+
"hasDynamicHelp": false,
|
|
25304
|
+
"multiple": false,
|
|
25305
|
+
"type": "option"
|
|
25306
|
+
},
|
|
25307
|
+
"yes": {
|
|
25308
|
+
"description": "Confirm that the rollback may REPLACE the installation’s stored documents with the archived ones and move the app back. Needed for every call",
|
|
25309
|
+
"name": "yes",
|
|
25310
|
+
"allowNo": false,
|
|
25311
|
+
"type": "boolean"
|
|
25312
|
+
},
|
|
25313
|
+
"discard-writes-since-cutover": {
|
|
25314
|
+
"description": "Roll back even if documents were written since the cutover: they are discarded for good. Without it such a rollback is refused with the counts",
|
|
25315
|
+
"name": "discard-writes-since-cutover",
|
|
25316
|
+
"allowNo": false,
|
|
25317
|
+
"type": "boolean"
|
|
25318
|
+
},
|
|
25319
|
+
"once": {
|
|
25320
|
+
"description": "Make one call and stop, instead of repeating while it makes progress",
|
|
25321
|
+
"name": "once",
|
|
25322
|
+
"allowNo": false,
|
|
25323
|
+
"type": "boolean"
|
|
25324
|
+
},
|
|
25325
|
+
"json": {
|
|
25326
|
+
"description": "Output the migration as JSON",
|
|
25327
|
+
"name": "json",
|
|
25328
|
+
"allowNo": false,
|
|
25329
|
+
"type": "boolean"
|
|
25330
|
+
}
|
|
25331
|
+
},
|
|
25332
|
+
"hasDynamicHelp": false,
|
|
25333
|
+
"hiddenAliases": [],
|
|
25334
|
+
"id": "apps:installations:migrate:rollback",
|
|
25335
|
+
"pluginAlias": "@skrr-ai/cli",
|
|
25336
|
+
"pluginName": "@skrr-ai/cli",
|
|
25337
|
+
"pluginType": "core",
|
|
25338
|
+
"strict": true,
|
|
25339
|
+
"isESM": false,
|
|
25340
|
+
"relativePath": [
|
|
25341
|
+
"dist",
|
|
25342
|
+
"commands",
|
|
25343
|
+
"apps",
|
|
25344
|
+
"installations",
|
|
25345
|
+
"migrate",
|
|
25346
|
+
"rollback.js"
|
|
25347
|
+
]
|
|
25348
|
+
},
|
|
25349
|
+
"apps:installations:migrate:stage": {
|
|
25350
|
+
"aliases": [],
|
|
25351
|
+
"args": {
|
|
25352
|
+
"installation": {
|
|
25353
|
+
"description": "The installation id (appi_...)",
|
|
25354
|
+
"name": "installation",
|
|
25355
|
+
"required": true
|
|
25356
|
+
}
|
|
25357
|
+
},
|
|
25358
|
+
"description": "Freeze the installation and convert its stored documents, with the steps the target version declares, into a STAGING area, a bounded batch at a time, repeating the call while it is `frozen` or `staging` and each call moves it on (one progress line per call; --once makes one call). STAGING FREEZES THE APP: while a migration is open the app does not run and nothing can write its data, until `abort` puts it back. So the first call on a planned migration needs --yes; without it nothing is frozen and the command only says what will happen, with the three sentences every migration view carries, and exits 4. Nothing live changes: no stored document, no version, no old row is touched. It stops at `staged`, at `failed` (a finding stopped it: they are printed) or when a call moves nothing. Only a signed-in person who is the installation’s installer (the person whose approval it runs under) may run it: a token or an agent’s credential is refused. It is off unless the deployment has it enabled (SKRR_APP_DATA_MIGRATION), which exit 6 says. Exit codes: 0 staged (or, with --once, one call answered), 1 the migration failed or a finding stopped it, 4 the server refused it (or --yes is missing), 5 unknown (an answer this client cannot read, no progress, the call cap, or a request that may have landed: run `status`), 6 not enabled on this server.",
|
|
25359
|
+
"examples": [
|
|
25360
|
+
"<%= config.bin %> apps installations migrate stage appi_abc --yes",
|
|
25361
|
+
"<%= config.bin %> apps installations migrate stage appi_abc --yes --once",
|
|
25362
|
+
"<%= config.bin %> apps installations migrate stage appi_abc --migration mig_xyz --yes --json"
|
|
25363
|
+
],
|
|
25364
|
+
"flags": {
|
|
25365
|
+
"bare": {
|
|
25366
|
+
"description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
|
|
25367
|
+
"name": "bare",
|
|
25368
|
+
"allowNo": false,
|
|
25369
|
+
"type": "boolean"
|
|
25370
|
+
},
|
|
25371
|
+
"token": {
|
|
25372
|
+
"description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
|
|
25373
|
+
"name": "token",
|
|
25374
|
+
"hasDynamicHelp": false,
|
|
25375
|
+
"multiple": false,
|
|
25376
|
+
"type": "option"
|
|
25377
|
+
},
|
|
25378
|
+
"workspace": {
|
|
25379
|
+
"description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
|
|
25380
|
+
"name": "workspace",
|
|
25381
|
+
"hasDynamicHelp": false,
|
|
25382
|
+
"multiple": false,
|
|
25383
|
+
"type": "option"
|
|
25384
|
+
},
|
|
25385
|
+
"profile": {
|
|
25386
|
+
"description": "Which stored session to use. Each profile keeps its own credential and deployment, so signing into one does not sign you out of another. Also OVERSKY_PROFILE. List them with `profiles list`.",
|
|
25387
|
+
"name": "profile",
|
|
25388
|
+
"hasDynamicHelp": false,
|
|
25389
|
+
"multiple": false,
|
|
25390
|
+
"type": "option"
|
|
25391
|
+
},
|
|
25392
|
+
"raw": {
|
|
25393
|
+
"description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
|
|
25394
|
+
"name": "raw",
|
|
25395
|
+
"allowNo": false,
|
|
25396
|
+
"type": "boolean"
|
|
25397
|
+
},
|
|
25398
|
+
"migration": {
|
|
25399
|
+
"description": "Only act on this migration (the id `status` shows); refused if another one is open",
|
|
25400
|
+
"name": "migration",
|
|
25401
|
+
"hasDynamicHelp": false,
|
|
25402
|
+
"multiple": false,
|
|
25403
|
+
"type": "option"
|
|
25404
|
+
},
|
|
25405
|
+
"yes": {
|
|
25406
|
+
"description": "Confirm that staging may FREEZE the app (it stops running and nothing can write its data until the migration is aborted). Needed for the first call on a planned migration",
|
|
25407
|
+
"name": "yes",
|
|
25408
|
+
"allowNo": false,
|
|
25409
|
+
"type": "boolean"
|
|
25410
|
+
},
|
|
25411
|
+
"once": {
|
|
25412
|
+
"description": "Make one call and stop, instead of repeating while it makes progress",
|
|
25413
|
+
"name": "once",
|
|
25414
|
+
"allowNo": false,
|
|
25415
|
+
"type": "boolean"
|
|
25416
|
+
},
|
|
25417
|
+
"json": {
|
|
25418
|
+
"description": "Output the migration as JSON",
|
|
25419
|
+
"name": "json",
|
|
25420
|
+
"allowNo": false,
|
|
25421
|
+
"type": "boolean"
|
|
25422
|
+
}
|
|
25423
|
+
},
|
|
25424
|
+
"hasDynamicHelp": false,
|
|
25425
|
+
"hiddenAliases": [],
|
|
25426
|
+
"id": "apps:installations:migrate:stage",
|
|
25427
|
+
"pluginAlias": "@skrr-ai/cli",
|
|
25428
|
+
"pluginName": "@skrr-ai/cli",
|
|
25429
|
+
"pluginType": "core",
|
|
25430
|
+
"strict": true,
|
|
25431
|
+
"isESM": false,
|
|
25432
|
+
"relativePath": [
|
|
25433
|
+
"dist",
|
|
25434
|
+
"commands",
|
|
25435
|
+
"apps",
|
|
25436
|
+
"installations",
|
|
25437
|
+
"migrate",
|
|
25438
|
+
"stage.js"
|
|
25439
|
+
]
|
|
25440
|
+
},
|
|
25441
|
+
"apps:installations:migrate:status": {
|
|
25442
|
+
"aliases": [],
|
|
25443
|
+
"args": {
|
|
25444
|
+
"installation": {
|
|
25445
|
+
"description": "The installation id (appi_...)",
|
|
25446
|
+
"name": "installation",
|
|
25447
|
+
"required": true
|
|
25448
|
+
}
|
|
25449
|
+
},
|
|
25450
|
+
"description": "Show an installation’s open data migration, or say there is none: its state in words, the plan’s counts, the freeze, how many documents are staged and checked, the cutover’s or the rollback’s progress, and the bounded findings (a collection, a document id, a code and where, never a value), with the three sentences every migration view carries (before the cutover: the app is frozen, nothing live has changed, and a validated staging is a snapshot, not a guarantee; after it: what changed and what is kept). When none is open but a cutover COMPLETED inside its archive window, that migration is shown with the day its archive of the old documents is erased, so you can still roll back. It reads and writes nothing. No migration open is a normal answer (exit 0). Only a signed-in person who is the installation’s installer (the person whose approval it runs under) may run it: a token or an agent’s credential is refused. It is off unless the deployment has it enabled (SKRR_APP_DATA_MIGRATION), which exit 6 says. Exit codes: 0 a migration that is not failed, or none; 1 the migration is failed (abort it); 4 the server refused it; 5 unknown (an answer this client cannot read: that is NOT \"there is none\"); 6 not enabled on this server.",
|
|
25451
|
+
"examples": [
|
|
25452
|
+
"<%= config.bin %> apps installations migrate status appi_abc",
|
|
25453
|
+
"<%= config.bin %> apps installations migrate status appi_abc --json"
|
|
25454
|
+
],
|
|
25455
|
+
"flags": {
|
|
25456
|
+
"bare": {
|
|
25457
|
+
"description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
|
|
25458
|
+
"name": "bare",
|
|
25459
|
+
"allowNo": false,
|
|
25460
|
+
"type": "boolean"
|
|
25461
|
+
},
|
|
25462
|
+
"token": {
|
|
25463
|
+
"description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
|
|
25464
|
+
"name": "token",
|
|
25465
|
+
"hasDynamicHelp": false,
|
|
25466
|
+
"multiple": false,
|
|
25467
|
+
"type": "option"
|
|
25468
|
+
},
|
|
25469
|
+
"workspace": {
|
|
25470
|
+
"description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
|
|
25471
|
+
"name": "workspace",
|
|
25472
|
+
"hasDynamicHelp": false,
|
|
25473
|
+
"multiple": false,
|
|
25474
|
+
"type": "option"
|
|
25475
|
+
},
|
|
25476
|
+
"profile": {
|
|
25477
|
+
"description": "Which stored session to use. Each profile keeps its own credential and deployment, so signing into one does not sign you out of another. Also OVERSKY_PROFILE. List them with `profiles list`.",
|
|
25478
|
+
"name": "profile",
|
|
25479
|
+
"hasDynamicHelp": false,
|
|
25480
|
+
"multiple": false,
|
|
25481
|
+
"type": "option"
|
|
25482
|
+
},
|
|
25483
|
+
"raw": {
|
|
25484
|
+
"description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
|
|
25485
|
+
"name": "raw",
|
|
25486
|
+
"allowNo": false,
|
|
25487
|
+
"type": "boolean"
|
|
25488
|
+
},
|
|
25489
|
+
"json": {
|
|
25490
|
+
"description": "Output the migration state as JSON",
|
|
25491
|
+
"name": "json",
|
|
25492
|
+
"allowNo": false,
|
|
25493
|
+
"type": "boolean"
|
|
25494
|
+
}
|
|
25495
|
+
},
|
|
25496
|
+
"hasDynamicHelp": false,
|
|
25497
|
+
"hiddenAliases": [],
|
|
25498
|
+
"id": "apps:installations:migrate:status",
|
|
25499
|
+
"pluginAlias": "@skrr-ai/cli",
|
|
25500
|
+
"pluginName": "@skrr-ai/cli",
|
|
25501
|
+
"pluginType": "core",
|
|
25502
|
+
"strict": true,
|
|
25503
|
+
"isESM": false,
|
|
25504
|
+
"relativePath": [
|
|
25505
|
+
"dist",
|
|
25506
|
+
"commands",
|
|
25507
|
+
"apps",
|
|
25508
|
+
"installations",
|
|
25509
|
+
"migrate",
|
|
25510
|
+
"status.js"
|
|
25511
|
+
]
|
|
25512
|
+
},
|
|
25513
|
+
"apps:installations:migrate:validate": {
|
|
25514
|
+
"aliases": [],
|
|
25515
|
+
"args": {
|
|
25516
|
+
"installation": {
|
|
25517
|
+
"description": "The installation id (appi_...)",
|
|
25518
|
+
"name": "installation",
|
|
25519
|
+
"required": true
|
|
25520
|
+
}
|
|
25521
|
+
},
|
|
25522
|
+
"description": "Hold every staged document to the data schemas the target version declares, a bounded slice at a time, repeating the call while the migration is `staged` and validation is not finished (one progress line per call; --once makes one call). `validated` means every converted document fits those schemas as of the time shown: a snapshot, not a guarantee, and not a promise that the app will work with them. A document that does not fit stops it as `failed` and is printed as a finding; something it could not judge (a schema it could not read or enforce, a document too complex for its budget) leaves it `staged` and is NOT a pass. It changes no live document and no version; the app stays frozen until you `abort`. Only a signed-in person who is the installation’s installer (the person whose approval it runs under) may run it: a token or an agent’s credential is refused. It is off unless the deployment has it enabled (SKRR_APP_DATA_MIGRATION), which exit 6 says. Exit codes: 0 validated (or, with --once, one call answered), 1 the migration failed or a finding stopped it, 4 the server refused it, 5 unknown (an answer this client cannot read, no progress, the call cap, a validation that could not judge, or a request that may have landed: run `status`), 6 not enabled on this server.",
|
|
25523
|
+
"examples": [
|
|
25524
|
+
"<%= config.bin %> apps installations migrate validate appi_abc",
|
|
25525
|
+
"<%= config.bin %> apps installations migrate validate appi_abc --once --json"
|
|
25526
|
+
],
|
|
25527
|
+
"flags": {
|
|
25528
|
+
"bare": {
|
|
25529
|
+
"description": "Bare mode — ignore keychain/file credential sources. Token must come from env or --token.",
|
|
25530
|
+
"name": "bare",
|
|
25531
|
+
"allowNo": false,
|
|
25532
|
+
"type": "boolean"
|
|
25533
|
+
},
|
|
25534
|
+
"token": {
|
|
25535
|
+
"description": "Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.",
|
|
25536
|
+
"name": "token",
|
|
25537
|
+
"hasDynamicHelp": false,
|
|
25538
|
+
"multiple": false,
|
|
25539
|
+
"type": "option"
|
|
25540
|
+
},
|
|
25541
|
+
"workspace": {
|
|
25542
|
+
"description": "Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).",
|
|
25543
|
+
"name": "workspace",
|
|
25544
|
+
"hasDynamicHelp": false,
|
|
25545
|
+
"multiple": false,
|
|
25546
|
+
"type": "option"
|
|
25547
|
+
},
|
|
25548
|
+
"profile": {
|
|
25549
|
+
"description": "Which stored session to use. Each profile keeps its own credential and deployment, so signing into one does not sign you out of another. Also OVERSKY_PROFILE. List them with `profiles list`.",
|
|
25550
|
+
"name": "profile",
|
|
25551
|
+
"hasDynamicHelp": false,
|
|
25552
|
+
"multiple": false,
|
|
25553
|
+
"type": "option"
|
|
25554
|
+
},
|
|
25555
|
+
"raw": {
|
|
25556
|
+
"description": "With --json, keep the Mongo storage fields (_id next to id, __v) that the CLI otherwise strips. Also OVERSKY_CLI_RAW=1.",
|
|
25557
|
+
"name": "raw",
|
|
25558
|
+
"allowNo": false,
|
|
25559
|
+
"type": "boolean"
|
|
25560
|
+
},
|
|
25561
|
+
"migration": {
|
|
25562
|
+
"description": "Only act on this migration (the id `status` shows); refused if another one is open",
|
|
25563
|
+
"name": "migration",
|
|
25564
|
+
"hasDynamicHelp": false,
|
|
25565
|
+
"multiple": false,
|
|
25566
|
+
"type": "option"
|
|
25567
|
+
},
|
|
25568
|
+
"once": {
|
|
25569
|
+
"description": "Make one call and stop, instead of repeating while it makes progress",
|
|
25570
|
+
"name": "once",
|
|
25571
|
+
"allowNo": false,
|
|
25572
|
+
"type": "boolean"
|
|
25573
|
+
},
|
|
25574
|
+
"json": {
|
|
25575
|
+
"description": "Output the migration as JSON",
|
|
25576
|
+
"name": "json",
|
|
25577
|
+
"allowNo": false,
|
|
25578
|
+
"type": "boolean"
|
|
25579
|
+
}
|
|
25580
|
+
},
|
|
25581
|
+
"hasDynamicHelp": false,
|
|
25582
|
+
"hiddenAliases": [],
|
|
25583
|
+
"id": "apps:installations:migrate:validate",
|
|
25584
|
+
"pluginAlias": "@skrr-ai/cli",
|
|
25585
|
+
"pluginName": "@skrr-ai/cli",
|
|
25586
|
+
"pluginType": "core",
|
|
25587
|
+
"strict": true,
|
|
25588
|
+
"isESM": false,
|
|
25589
|
+
"relativePath": [
|
|
25590
|
+
"dist",
|
|
25591
|
+
"commands",
|
|
25592
|
+
"apps",
|
|
25593
|
+
"installations",
|
|
25594
|
+
"migrate",
|
|
25595
|
+
"validate.js"
|
|
25596
|
+
]
|
|
25597
|
+
},
|
|
25002
25598
|
"apps:installations:show": {
|
|
25003
25599
|
"aliases": [],
|
|
25004
25600
|
"args": {
|
|
@@ -25535,7 +26131,7 @@
|
|
|
25535
26131
|
"required": false
|
|
25536
26132
|
}
|
|
25537
26133
|
},
|
|
25538
|
-
"description": "Ask the server what became of a write to an installed app's data that you sent with an idempotency key and lost the answer to. The server answers \"completed\" (with what it applied: the collection, the document ids and revisions, for a batch every step, including the IDs it named) when it kept a receipt of that write for YOU, or \"unknown\" when it did not. \"unknown\" is NEVER \"not applied\": it only means no receipt is on record (the write may never have arrived, may have been refused, may still be running, may have run where no receipt is kept, or the receipt may have expired after 24 hours). It writes nothing. The key is sent in a header and never appears in a URL. `apps data put | patch | delete | batch` print the key when the outcome of a write is unknown; a write you sent yourself with --idempotency-key is asked about the same way. Only the
|
|
26134
|
+
"description": "Ask the server what became of a write to an installed app's data that you sent with an idempotency key and lost the answer to. The server answers \"completed\" (with what it applied: the collection, the document ids and revisions, for a batch every step, including the IDs it named) when it kept a receipt of that write for YOU, or \"unknown\" when it did not. \"unknown\" is NEVER \"not applied\": it only means no receipt is on record (the write may never have arrived, may have been refused, may still be running, may have run where no receipt is kept, or the receipt may have expired after 24 hours). It writes nothing. The key is sent in a header and never appears in a URL. `apps data put | patch | delete | batch` print the key when the outcome of a write is unknown; a write you sent yourself with --idempotency-key is asked about the same way. Only the user who made the write, with the kind of credential that made it (a person's sign-in, or an Agent's), can find its receipt.",
|
|
25539
26135
|
"examples": [
|
|
25540
26136
|
"<%= config.bin %> apps operations check appi_abc put goals main --key skrr-data:3f2b8c1e-7d44-4b1a-9a52-0c6e1d2f9a10",
|
|
25541
26137
|
"<%= config.bin %> apps operations check appi_abc batch --key my-nightly-import-2026-11-10 --json"
|
|
@@ -149238,5 +149834,5 @@
|
|
|
149238
149834
|
]
|
|
149239
149835
|
}
|
|
149240
149836
|
},
|
|
149241
|
-
"version": "0.1.
|
|
149837
|
+
"version": "0.1.166"
|
|
149242
149838
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skrr-ai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.166",
|
|
4
4
|
"description": "Command-line interface for skrr",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "skrr",
|
|
@@ -494,6 +494,9 @@
|
|
|
494
494
|
"apps:installations": {
|
|
495
495
|
"description": "See which apps are installed on an agent, whether each may run, and how far it is trusted"
|
|
496
496
|
},
|
|
497
|
+
"apps:installations:migrate": {
|
|
498
|
+
"description": "Migrate an installation's stored data to another version of its app, explicitly and recoverably: plan, stage into a staging area (which FREEZES the app), validate, abort, then cut over (replaces the live documents, with a 14-day archive) and roll back. Only cutover and rollback change live data and each needs --yes; only the installer may run it, and it is off unless the deployment enables it"
|
|
499
|
+
},
|
|
497
500
|
"apps:layout": {
|
|
498
501
|
"description": "See and set how you have arranged the apps installed on you: their order and folders (a preference; an id in it grants nothing)"
|
|
499
502
|
},
|
|
@@ -698,5 +701,5 @@
|
|
|
698
701
|
"engines": {
|
|
699
702
|
"node": ">=20.0.0"
|
|
700
703
|
},
|
|
701
|
-
"gitHead": "
|
|
704
|
+
"gitHead": "1a643b285beb45d8cc74f4c796f99026e202fcef"
|
|
702
705
|
}
|