@miosa/cli 1.3.4 → 2.1.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/README.md +20 -835
- package/bin/miosa.js +75 -0
- package/lib/archive.js +88 -0
- package/lib/checksums.js +29 -0
- package/lib/platforms.js +31 -0
- package/lib/resolve.js +47 -0
- package/package.json +26 -41
- package/scripts/postinstall.js +68 -0
- package/CHANGELOG.md +0 -110
- package/dist/action-authority.d.ts +0 -106
- package/dist/action-authority.d.ts.map +0 -1
- package/dist/action-authority.js +0 -116
- package/dist/action-authority.js.map +0 -1
- package/dist/app-advisor.d.ts +0 -80
- package/dist/app-advisor.d.ts.map +0 -1
- package/dist/app-advisor.js +0 -486
- package/dist/app-advisor.js.map +0 -1
- package/dist/app-contract.d.ts +0 -92
- package/dist/app-contract.d.ts.map +0 -1
- package/dist/app-contract.js +0 -218
- package/dist/app-contract.js.map +0 -1
- package/dist/app-document.d.ts +0 -23
- package/dist/app-document.d.ts.map +0 -1
- package/dist/app-document.js +0 -180
- package/dist/app-document.js.map +0 -1
- package/dist/app-manifest.d.ts +0 -140
- package/dist/app-manifest.d.ts.map +0 -1
- package/dist/app-manifest.js +0 -377
- package/dist/app-manifest.js.map +0 -1
- package/dist/app-operation.d.ts +0 -23
- package/dist/app-operation.d.ts.map +0 -1
- package/dist/app-operation.js +0 -49
- package/dist/app-operation.js.map +0 -1
- package/dist/app-release.d.ts +0 -132
- package/dist/app-release.d.ts.map +0 -1
- package/dist/app-release.js +0 -294
- package/dist/app-release.js.map +0 -1
- package/dist/bin/miosa.d.ts +0 -3
- package/dist/bin/miosa.d.ts.map +0 -1
- package/dist/bin/miosa.js +0 -288
- package/dist/bin/miosa.js.map +0 -1
- package/dist/cli-env.d.ts +0 -12
- package/dist/cli-env.d.ts.map +0 -1
- package/dist/cli-env.js +0 -34
- package/dist/cli-env.js.map +0 -1
- package/dist/client.d.ts +0 -155
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -865
- package/dist/client.js.map +0 -1
- package/dist/commands/actions.d.ts +0 -3
- package/dist/commands/actions.d.ts.map +0 -1
- package/dist/commands/actions.js +0 -222
- package/dist/commands/actions.js.map +0 -1
- package/dist/commands/agent-runtime-profiles.d.ts +0 -3
- package/dist/commands/agent-runtime-profiles.d.ts.map +0 -1
- package/dist/commands/agent-runtime-profiles.js +0 -198
- package/dist/commands/agent-runtime-profiles.js.map +0 -1
- package/dist/commands/agent.d.ts +0 -18
- package/dist/commands/agent.d.ts.map +0 -1
- package/dist/commands/agent.js +0 -737
- package/dist/commands/agent.js.map +0 -1
- package/dist/commands/alerts.d.ts +0 -3
- package/dist/commands/alerts.d.ts.map +0 -1
- package/dist/commands/alerts.js +0 -41
- package/dist/commands/alerts.js.map +0 -1
- package/dist/commands/api-keys.d.ts +0 -3
- package/dist/commands/api-keys.d.ts.map +0 -1
- package/dist/commands/api-keys.js +0 -160
- package/dist/commands/api-keys.js.map +0 -1
- package/dist/commands/api-resource.d.ts +0 -20
- package/dist/commands/api-resource.d.ts.map +0 -1
- package/dist/commands/api-resource.js +0 -120
- package/dist/commands/api-resource.js.map +0 -1
- package/dist/commands/app.d.ts +0 -38
- package/dist/commands/app.d.ts.map +0 -1
- package/dist/commands/app.js +0 -1182
- package/dist/commands/app.js.map +0 -1
- package/dist/commands/apps.d.ts +0 -3
- package/dist/commands/apps.d.ts.map +0 -1
- package/dist/commands/apps.js +0 -218
- package/dist/commands/apps.js.map +0 -1
- package/dist/commands/audit.d.ts +0 -3
- package/dist/commands/audit.d.ts.map +0 -1
- package/dist/commands/audit.js +0 -25
- package/dist/commands/audit.js.map +0 -1
- package/dist/commands/auth.d.ts +0 -3
- package/dist/commands/auth.d.ts.map +0 -1
- package/dist/commands/auth.js +0 -282
- package/dist/commands/auth.js.map +0 -1
- package/dist/commands/backups.d.ts +0 -3
- package/dist/commands/backups.d.ts.map +0 -1
- package/dist/commands/backups.js +0 -23
- package/dist/commands/backups.js.map +0 -1
- package/dist/commands/billing.d.ts +0 -3
- package/dist/commands/billing.d.ts.map +0 -1
- package/dist/commands/billing.js +0 -208
- package/dist/commands/billing.js.map +0 -1
- package/dist/commands/builds.d.ts +0 -3
- package/dist/commands/builds.d.ts.map +0 -1
- package/dist/commands/builds.js +0 -198
- package/dist/commands/builds.js.map +0 -1
- package/dist/commands/capabilities.d.ts +0 -3
- package/dist/commands/capabilities.d.ts.map +0 -1
- package/dist/commands/capabilities.js +0 -1002
- package/dist/commands/capabilities.js.map +0 -1
- package/dist/commands/checkpoints.d.ts +0 -3
- package/dist/commands/checkpoints.d.ts.map +0 -1
- package/dist/commands/checkpoints.js +0 -193
- package/dist/commands/checkpoints.js.map +0 -1
- package/dist/commands/cleanup.d.ts +0 -3
- package/dist/commands/cleanup.d.ts.map +0 -1
- package/dist/commands/cleanup.js +0 -65
- package/dist/commands/cleanup.js.map +0 -1
- package/dist/commands/cloud.d.ts +0 -3
- package/dist/commands/cloud.d.ts.map +0 -1
- package/dist/commands/cloud.js +0 -192
- package/dist/commands/cloud.js.map +0 -1
- package/dist/commands/command-overview.d.ts +0 -13
- package/dist/commands/command-overview.d.ts.map +0 -1
- package/dist/commands/command-overview.js +0 -50
- package/dist/commands/command-overview.js.map +0 -1
- package/dist/commands/completion.d.ts +0 -3
- package/dist/commands/completion.d.ts.map +0 -1
- package/dist/commands/completion.js +0 -183
- package/dist/commands/completion.js.map +0 -1
- package/dist/commands/computers.d.ts +0 -3
- package/dist/commands/computers.d.ts.map +0 -1
- package/dist/commands/computers.js +0 -706
- package/dist/commands/computers.js.map +0 -1
- package/dist/commands/config.d.ts +0 -3
- package/dist/commands/config.d.ts.map +0 -1
- package/dist/commands/config.js +0 -114
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/connect.d.ts +0 -6
- package/dist/commands/connect.d.ts.map +0 -1
- package/dist/commands/connect.js +0 -127
- package/dist/commands/connect.js.map +0 -1
- package/dist/commands/connectors.d.ts +0 -3
- package/dist/commands/connectors.d.ts.map +0 -1
- package/dist/commands/connectors.js +0 -172
- package/dist/commands/connectors.js.map +0 -1
- package/dist/commands/containers.d.ts +0 -3
- package/dist/commands/containers.d.ts.map +0 -1
- package/dist/commands/containers.js +0 -20
- package/dist/commands/containers.js.map +0 -1
- package/dist/commands/context.d.ts +0 -3
- package/dist/commands/context.d.ts.map +0 -1
- package/dist/commands/context.js +0 -233
- package/dist/commands/context.js.map +0 -1
- package/dist/commands/cp.d.ts +0 -3
- package/dist/commands/cp.d.ts.map +0 -1
- package/dist/commands/cp.js +0 -319
- package/dist/commands/cp.js.map +0 -1
- package/dist/commands/cron.d.ts +0 -3
- package/dist/commands/cron.d.ts.map +0 -1
- package/dist/commands/cron.js +0 -65
- package/dist/commands/cron.js.map +0 -1
- package/dist/commands/dashboard.d.ts +0 -13
- package/dist/commands/dashboard.d.ts.map +0 -1
- package/dist/commands/dashboard.js +0 -54
- package/dist/commands/dashboard.js.map +0 -1
- package/dist/commands/databases.d.ts +0 -3
- package/dist/commands/databases.d.ts.map +0 -1
- package/dist/commands/databases.js +0 -714
- package/dist/commands/databases.js.map +0 -1
- package/dist/commands/db.d.ts +0 -3
- package/dist/commands/db.d.ts.map +0 -1
- package/dist/commands/db.js +0 -385
- package/dist/commands/db.js.map +0 -1
- package/dist/commands/deploy.d.ts +0 -3
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -1234
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/desktop.d.ts +0 -3
- package/dist/commands/desktop.d.ts.map +0 -1
- package/dist/commands/desktop.js +0 -277
- package/dist/commands/desktop.js.map +0 -1
- package/dist/commands/dev.d.ts +0 -3
- package/dist/commands/dev.d.ts.map +0 -1
- package/dist/commands/dev.js +0 -245
- package/dist/commands/dev.js.map +0 -1
- package/dist/commands/devices.d.ts +0 -3
- package/dist/commands/devices.d.ts.map +0 -1
- package/dist/commands/devices.js +0 -279
- package/dist/commands/devices.js.map +0 -1
- package/dist/commands/docker-deploy.d.ts +0 -3
- package/dist/commands/docker-deploy.d.ts.map +0 -1
- package/dist/commands/docker-deploy.js +0 -659
- package/dist/commands/docker-deploy.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -69
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -596
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/domains.d.ts +0 -3
- package/dist/commands/domains.d.ts.map +0 -1
- package/dist/commands/domains.js +0 -307
- package/dist/commands/domains.js.map +0 -1
- package/dist/commands/enterprise-util.d.ts +0 -39
- package/dist/commands/enterprise-util.d.ts.map +0 -1
- package/dist/commands/enterprise-util.js +0 -217
- package/dist/commands/enterprise-util.js.map +0 -1
- package/dist/commands/env-input.d.ts +0 -26
- package/dist/commands/env-input.d.ts.map +0 -1
- package/dist/commands/env-input.js +0 -68
- package/dist/commands/env-input.js.map +0 -1
- package/dist/commands/env.d.ts +0 -3
- package/dist/commands/env.d.ts.map +0 -1
- package/dist/commands/env.js +0 -189
- package/dist/commands/env.js.map +0 -1
- package/dist/commands/exec.d.ts +0 -3
- package/dist/commands/exec.d.ts.map +0 -1
- package/dist/commands/exec.js +0 -110
- package/dist/commands/exec.js.map +0 -1
- package/dist/commands/forge.d.ts +0 -3
- package/dist/commands/forge.d.ts.map +0 -1
- package/dist/commands/forge.js +0 -254
- package/dist/commands/forge.js.map +0 -1
- package/dist/commands/functions.d.ts +0 -3
- package/dist/commands/functions.d.ts.map +0 -1
- package/dist/commands/functions.js +0 -47
- package/dist/commands/functions.js.map +0 -1
- package/dist/commands/gha-runners.d.ts +0 -3
- package/dist/commands/gha-runners.d.ts.map +0 -1
- package/dist/commands/gha-runners.js +0 -33
- package/dist/commands/gha-runners.js.map +0 -1
- package/dist/commands/groups.d.ts +0 -3
- package/dist/commands/groups.d.ts.map +0 -1
- package/dist/commands/groups.js +0 -38
- package/dist/commands/groups.js.map +0 -1
- package/dist/commands/host.d.ts +0 -3
- package/dist/commands/host.d.ts.map +0 -1
- package/dist/commands/host.js +0 -74
- package/dist/commands/host.js.map +0 -1
- package/dist/commands/hosts.d.ts +0 -7
- package/dist/commands/hosts.d.ts.map +0 -1
- package/dist/commands/hosts.js +0 -91
- package/dist/commands/hosts.js.map +0 -1
- package/dist/commands/link.d.ts +0 -8
- package/dist/commands/link.d.ts.map +0 -1
- package/dist/commands/link.js +0 -124
- package/dist/commands/link.js.map +0 -1
- package/dist/commands/login.d.ts +0 -10
- package/dist/commands/login.d.ts.map +0 -1
- package/dist/commands/login.js +0 -263
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/logout.d.ts +0 -3
- package/dist/commands/logout.d.ts.map +0 -1
- package/dist/commands/logout.js +0 -43
- package/dist/commands/logout.js.map +0 -1
- package/dist/commands/logs.d.ts +0 -3
- package/dist/commands/logs.d.ts.map +0 -1
- package/dist/commands/logs.js +0 -401
- package/dist/commands/logs.js.map +0 -1
- package/dist/commands/ls.d.ts +0 -3
- package/dist/commands/ls.d.ts.map +0 -1
- package/dist/commands/ls.js +0 -121
- package/dist/commands/ls.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -46
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -3413
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/menu.d.ts +0 -29
- package/dist/commands/menu.d.ts.map +0 -1
- package/dist/commands/menu.js +0 -147
- package/dist/commands/menu.js.map +0 -1
- package/dist/commands/meshes.d.ts +0 -3
- package/dist/commands/meshes.d.ts.map +0 -1
- package/dist/commands/meshes.js +0 -27
- package/dist/commands/meshes.js.map +0 -1
- package/dist/commands/network-policy.d.ts +0 -3
- package/dist/commands/network-policy.d.ts.map +0 -1
- package/dist/commands/network-policy.js +0 -155
- package/dist/commands/network-policy.js.map +0 -1
- package/dist/commands/new.d.ts +0 -3
- package/dist/commands/new.d.ts.map +0 -1
- package/dist/commands/new.js +0 -296
- package/dist/commands/new.js.map +0 -1
- package/dist/commands/opencomputers.d.ts +0 -10
- package/dist/commands/opencomputers.d.ts.map +0 -1
- package/dist/commands/opencomputers.js +0 -25
- package/dist/commands/opencomputers.js.map +0 -1
- package/dist/commands/operating-contract.d.ts +0 -3
- package/dist/commands/operating-contract.d.ts.map +0 -1
- package/dist/commands/operating-contract.js +0 -651
- package/dist/commands/operating-contract.js.map +0 -1
- package/dist/commands/project.d.ts +0 -4
- package/dist/commands/project.d.ts.map +0 -1
- package/dist/commands/project.js +0 -25
- package/dist/commands/project.js.map +0 -1
- package/dist/commands/pull.d.ts +0 -14
- package/dist/commands/pull.d.ts.map +0 -1
- package/dist/commands/pull.js +0 -156
- package/dist/commands/pull.js.map +0 -1
- package/dist/commands/regions.d.ts +0 -3
- package/dist/commands/regions.d.ts.map +0 -1
- package/dist/commands/regions.js +0 -103
- package/dist/commands/regions.js.map +0 -1
- package/dist/commands/releases.d.ts +0 -3
- package/dist/commands/releases.d.ts.map +0 -1
- package/dist/commands/releases.js +0 -365
- package/dist/commands/releases.js.map +0 -1
- package/dist/commands/rm.d.ts +0 -3
- package/dist/commands/rm.d.ts.map +0 -1
- package/dist/commands/rm.js +0 -42
- package/dist/commands/rm.js.map +0 -1
- package/dist/commands/rollback.d.ts +0 -3
- package/dist/commands/rollback.d.ts.map +0 -1
- package/dist/commands/rollback.js +0 -62
- package/dist/commands/rollback.js.map +0 -1
- package/dist/commands/run-groups.d.ts +0 -3
- package/dist/commands/run-groups.d.ts.map +0 -1
- package/dist/commands/run-groups.js +0 -364
- package/dist/commands/run-groups.js.map +0 -1
- package/dist/commands/run.d.ts +0 -3
- package/dist/commands/run.d.ts.map +0 -1
- package/dist/commands/run.js +0 -130
- package/dist/commands/run.js.map +0 -1
- package/dist/commands/runs.d.ts +0 -3
- package/dist/commands/runs.d.ts.map +0 -1
- package/dist/commands/runs.js +0 -365
- package/dist/commands/runs.js.map +0 -1
- package/dist/commands/runtime-env.d.ts +0 -3
- package/dist/commands/runtime-env.d.ts.map +0 -1
- package/dist/commands/runtime-env.js +0 -114
- package/dist/commands/runtime-env.js.map +0 -1
- package/dist/commands/sandbox-delete-guard.d.ts +0 -4
- package/dist/commands/sandbox-delete-guard.d.ts.map +0 -1
- package/dist/commands/sandbox-delete-guard.js +0 -32
- package/dist/commands/sandbox-delete-guard.js.map +0 -1
- package/dist/commands/sandbox-dev.d.ts +0 -20
- package/dist/commands/sandbox-dev.d.ts.map +0 -1
- package/dist/commands/sandbox-dev.js +0 -583
- package/dist/commands/sandbox-dev.js.map +0 -1
- package/dist/commands/sandbox.d.ts +0 -36
- package/dist/commands/sandbox.d.ts.map +0 -1
- package/dist/commands/sandbox.js +0 -3796
- package/dist/commands/sandbox.js.map +0 -1
- package/dist/commands/scale.d.ts +0 -3
- package/dist/commands/scale.d.ts.map +0 -1
- package/dist/commands/scale.js +0 -61
- package/dist/commands/scale.js.map +0 -1
- package/dist/commands/schedules.d.ts +0 -3
- package/dist/commands/schedules.d.ts.map +0 -1
- package/dist/commands/schedules.js +0 -37
- package/dist/commands/schedules.js.map +0 -1
- package/dist/commands/secrets.d.ts +0 -3
- package/dist/commands/secrets.d.ts.map +0 -1
- package/dist/commands/secrets.js +0 -200
- package/dist/commands/secrets.js.map +0 -1
- package/dist/commands/services.d.ts +0 -3
- package/dist/commands/services.d.ts.map +0 -1
- package/dist/commands/services.js +0 -70
- package/dist/commands/services.js.map +0 -1
- package/dist/commands/shell.d.ts +0 -16
- package/dist/commands/shell.d.ts.map +0 -1
- package/dist/commands/shell.js +0 -555
- package/dist/commands/shell.js.map +0 -1
- package/dist/commands/snapshot.d.ts +0 -10
- package/dist/commands/snapshot.d.ts.map +0 -1
- package/dist/commands/snapshot.js +0 -181
- package/dist/commands/snapshot.js.map +0 -1
- package/dist/commands/ssh.d.ts +0 -3
- package/dist/commands/ssh.d.ts.map +0 -1
- package/dist/commands/ssh.js +0 -93
- package/dist/commands/ssh.js.map +0 -1
- package/dist/commands/status.d.ts +0 -3
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -302
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/storage.d.ts +0 -3
- package/dist/commands/storage.d.ts.map +0 -1
- package/dist/commands/storage.js +0 -456
- package/dist/commands/storage.js.map +0 -1
- package/dist/commands/teams.d.ts +0 -3
- package/dist/commands/teams.d.ts.map +0 -1
- package/dist/commands/teams.js +0 -169
- package/dist/commands/teams.js.map +0 -1
- package/dist/commands/templates.d.ts +0 -3
- package/dist/commands/templates.d.ts.map +0 -1
- package/dist/commands/templates.js +0 -690
- package/dist/commands/templates.js.map +0 -1
- package/dist/commands/tenant.d.ts +0 -3
- package/dist/commands/tenant.d.ts.map +0 -1
- package/dist/commands/tenant.js +0 -95
- package/dist/commands/tenant.js.map +0 -1
- package/dist/commands/tunnel.d.ts +0 -3
- package/dist/commands/tunnel.d.ts.map +0 -1
- package/dist/commands/tunnel.js +0 -418
- package/dist/commands/tunnel.js.map +0 -1
- package/dist/commands/up.d.ts +0 -14
- package/dist/commands/up.d.ts.map +0 -1
- package/dist/commands/up.js +0 -720
- package/dist/commands/up.js.map +0 -1
- package/dist/commands/update.d.ts +0 -3
- package/dist/commands/update.d.ts.map +0 -1
- package/dist/commands/update.js +0 -166
- package/dist/commands/update.js.map +0 -1
- package/dist/commands/util.d.ts +0 -25
- package/dist/commands/util.d.ts.map +0 -1
- package/dist/commands/util.js +0 -199
- package/dist/commands/util.js.map +0 -1
- package/dist/commands/volumes.d.ts +0 -3
- package/dist/commands/volumes.d.ts.map +0 -1
- package/dist/commands/volumes.js +0 -196
- package/dist/commands/volumes.js.map +0 -1
- package/dist/commands/watch.d.ts +0 -6
- package/dist/commands/watch.d.ts.map +0 -1
- package/dist/commands/watch.js +0 -414
- package/dist/commands/watch.js.map +0 -1
- package/dist/commands/webhooks.d.ts +0 -3
- package/dist/commands/webhooks.d.ts.map +0 -1
- package/dist/commands/webhooks.js +0 -23
- package/dist/commands/webhooks.js.map +0 -1
- package/dist/commands/whoami.d.ts +0 -3
- package/dist/commands/whoami.d.ts.map +0 -1
- package/dist/commands/whoami.js +0 -156
- package/dist/commands/whoami.js.map +0 -1
- package/dist/commands/workspaces.d.ts +0 -3
- package/dist/commands/workspaces.d.ts.map +0 -1
- package/dist/commands/workspaces.js +0 -147
- package/dist/commands/workspaces.js.map +0 -1
- package/dist/config.d.ts +0 -54
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -275
- package/dist/config.js.map +0 -1
- package/dist/errors.d.ts +0 -30
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -92
- package/dist/errors.js.map +0 -1
- package/dist/framework-detector.d.ts +0 -22
- package/dist/framework-detector.d.ts.map +0 -1
- package/dist/framework-detector.js +0 -373
- package/dist/framework-detector.js.map +0 -1
- package/dist/generated/action-capabilities.d.ts +0 -826
- package/dist/generated/action-capabilities.d.ts.map +0 -1
- package/dist/generated/action-capabilities.js +0 -1035
- package/dist/generated/action-capabilities.js.map +0 -1
- package/dist/net-diagnosis.d.ts +0 -87
- package/dist/net-diagnosis.d.ts.map +0 -1
- package/dist/net-diagnosis.js +0 -408
- package/dist/net-diagnosis.js.map +0 -1
- package/dist/pty/raw-mode.d.ts +0 -7
- package/dist/pty/raw-mode.d.ts.map +0 -1
- package/dist/pty/raw-mode.js +0 -22
- package/dist/pty/raw-mode.js.map +0 -1
- package/dist/pty/ws-pty-client.d.ts +0 -13
- package/dist/pty/ws-pty-client.d.ts.map +0 -1
- package/dist/pty/ws-pty-client.js +0 -73
- package/dist/pty/ws-pty-client.js.map +0 -1
- package/dist/tui/dashboard.d.ts +0 -35
- package/dist/tui/dashboard.d.ts.map +0 -1
- package/dist/tui/dashboard.js +0 -191
- package/dist/tui/dashboard.js.map +0 -1
- package/dist/tui/logs.d.ts +0 -26
- package/dist/tui/logs.d.ts.map +0 -1
- package/dist/tui/logs.js +0 -276
- package/dist/tui/logs.js.map +0 -1
- package/dist/types.d.ts +0 -362
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -16
- package/dist/types.js.map +0 -1
- package/dist/ui/picker.d.ts +0 -41
- package/dist/ui/picker.d.ts.map +0 -1
- package/dist/ui/picker.js +0 -77
- package/dist/ui/picker.js.map +0 -1
- package/dist/ui/progress.d.ts +0 -10
- package/dist/ui/progress.d.ts.map +0 -1
- package/dist/ui/progress.js +0 -36
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/render.d.ts +0 -91
- package/dist/ui/render.d.ts.map +0 -1
- package/dist/ui/render.js +0 -138
- package/dist/ui/render.js.map +0 -1
- package/dist/ui/spinner.d.ts +0 -4
- package/dist/ui/spinner.d.ts.map +0 -1
- package/dist/ui/spinner.js +0 -7
- package/dist/ui/spinner.js.map +0 -1
- package/dist/ui/table.d.ts +0 -8
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/table.js +0 -46
- package/dist/ui/table.js.map +0 -1
- package/dist/update-check.d.ts +0 -13
- package/dist/update-check.d.ts.map +0 -1
- package/dist/update-check.js +0 -94
- package/dist/update-check.js.map +0 -1
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -5
- package/dist/version.js.map +0 -1
package/dist/ui/render.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MIOSA CLI render vocabulary.
|
|
3
|
-
*
|
|
4
|
-
* Single source of truth for the visible look-and-feel: banner, status
|
|
5
|
-
* icons, key/value panels, hint blocks, error envelopes, and elapsed
|
|
6
|
-
* timing. Every command should compose its output from these primitives
|
|
7
|
-
* so the brand stays consistent.
|
|
8
|
-
*
|
|
9
|
-
* Design rules:
|
|
10
|
-
* - One accent color (cyan) for the brand.
|
|
11
|
-
* - Semantic colors for status (green/yellow/red/dim).
|
|
12
|
-
* - Never print colors when not a TTY (CI, pipes) — chalk handles
|
|
13
|
-
* this automatically via FORCE_COLOR=0 / NO_COLOR; we just call it.
|
|
14
|
-
* - Plain ASCII only. No unicode that breaks in cmd.exe / Putty.
|
|
15
|
-
* - Every "section" the user sees should fit inside one of these
|
|
16
|
-
* primitives; the command does NOT reach for raw `console.log` +
|
|
17
|
-
* ad-hoc chalk except for the body of a tool result.
|
|
18
|
-
*/
|
|
19
|
-
export declare const icon: {
|
|
20
|
-
ok: string;
|
|
21
|
-
fail: string;
|
|
22
|
-
warn: string;
|
|
23
|
-
info: string;
|
|
24
|
-
bullet: string;
|
|
25
|
-
arrow: string;
|
|
26
|
-
pending: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Single-line MIOSA banner used at the top of lifecycle commands
|
|
30
|
-
* (login / logout / mcp install). Compact and unobtrusive.
|
|
31
|
-
*
|
|
32
|
-
* ▮▮▮ MIOSA ▮▮▮ v1.0.4
|
|
33
|
-
*/
|
|
34
|
-
export declare function banner(opts?: {
|
|
35
|
-
version?: string;
|
|
36
|
-
subtitle?: string;
|
|
37
|
-
}): string;
|
|
38
|
-
export interface KVRow {
|
|
39
|
-
/** Left column label. Will be bolded. */
|
|
40
|
-
label: string;
|
|
41
|
-
/** Right column value. Pre-formatted; no further styling applied. */
|
|
42
|
-
value: string;
|
|
43
|
-
/** Optional leading icon (e.g. `icon.ok`). */
|
|
44
|
-
icon?: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Render a list of key/value rows with aligned columns. Used for the
|
|
48
|
-
* "✓ Authenticated ClinicIQ · Pro plan" output blocks.
|
|
49
|
-
*/
|
|
50
|
-
export declare function kvPanel(rows: KVRow[]): string;
|
|
51
|
-
/**
|
|
52
|
-
* Suggest what the user can do next. Rendered as:
|
|
53
|
-
*
|
|
54
|
-
* → Next: miosa computers list
|
|
55
|
-
* miosa mcp install
|
|
56
|
-
*/
|
|
57
|
-
export declare function hintBlock(label: string, commands: string[]): string;
|
|
58
|
-
export interface ErrorEnvelope {
|
|
59
|
-
title: string;
|
|
60
|
-
body?: string;
|
|
61
|
-
/** Suggested commands or doc URL. */
|
|
62
|
-
suggest?: string[];
|
|
63
|
-
/** Show "Run with --debug for full trace" hint. */
|
|
64
|
-
withDebugHint?: boolean;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Format an error in the brand's red envelope. Use this in the catch
|
|
68
|
-
* block of every command instead of bare `console.error`.
|
|
69
|
-
*/
|
|
70
|
-
export declare function errorEnvelope(env: ErrorEnvelope): string;
|
|
71
|
-
/**
|
|
72
|
-
* Wrap an async block and append a "Took 1.2s" line on success.
|
|
73
|
-
* On error, re-throws so the caller can format its own envelope.
|
|
74
|
-
*/
|
|
75
|
-
export declare function withElapsed<T>(fn: () => Promise<T>): Promise<{
|
|
76
|
-
result: T;
|
|
77
|
-
elapsed: string;
|
|
78
|
-
}>;
|
|
79
|
-
export declare function formatDuration(ms: number): string;
|
|
80
|
-
/** Insert a blank line. Cheap readability tool. */
|
|
81
|
-
export declare const blank: () => void;
|
|
82
|
-
/** Print the banner — convenience over `console.log(banner(...))`. */
|
|
83
|
-
export declare function printBanner(opts?: {
|
|
84
|
-
version?: string;
|
|
85
|
-
subtitle?: string;
|
|
86
|
-
}): void;
|
|
87
|
-
/** Print the elapsed line in dim text below a successful command. */
|
|
88
|
-
export declare function printElapsed(elapsed: string): void;
|
|
89
|
-
/** Print a section header (dim small-caps). */
|
|
90
|
-
export declare function sectionHeader(label: string): void;
|
|
91
|
-
//# sourceMappingURL=render.d.ts.map
|
package/dist/ui/render.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/ui/render.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAOH,eAAO,MAAM,IAAI;;;;;;;;CAQhB,CAAC;AAIF;;;;;GAKG;AACH,wBAAgB,MAAM,CACpB,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GACjD,MAAM,CAMR;AAID,MAAM,WAAW,KAAK;IACpB,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,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2
|
-
* MIOSA CLI render vocabulary.
|
|
3
|
-
*
|
|
4
|
-
* Single source of truth for the visible look-and-feel: banner, status
|
|
5
|
-
* icons, key/value panels, hint blocks, error envelopes, and elapsed
|
|
6
|
-
* timing. Every command should compose its output from these primitives
|
|
7
|
-
* so the brand stays consistent.
|
|
8
|
-
*
|
|
9
|
-
* Design rules:
|
|
10
|
-
* - One accent color (cyan) for the brand.
|
|
11
|
-
* - Semantic colors for status (green/yellow/red/dim).
|
|
12
|
-
* - Never print colors when not a TTY (CI, pipes) — chalk handles
|
|
13
|
-
* this automatically via FORCE_COLOR=0 / NO_COLOR; we just call it.
|
|
14
|
-
* - Plain ASCII only. No unicode that breaks in cmd.exe / Putty.
|
|
15
|
-
* - Every "section" the user sees should fit inside one of these
|
|
16
|
-
* primitives; the command does NOT reach for raw `console.log` +
|
|
17
|
-
* ad-hoc chalk except for the body of a tool result.
|
|
18
|
-
*/
|
|
19
|
-
import chalk from "chalk";
|
|
20
|
-
// ── Status icons ──────────────────────────────────────────────────────────
|
|
21
|
-
// Plain ASCII so they render everywhere. Colors applied via chalk.
|
|
22
|
-
export const icon = {
|
|
23
|
-
ok: chalk.green("✓"),
|
|
24
|
-
fail: chalk.red("✗"),
|
|
25
|
-
warn: chalk.yellow("⚠"),
|
|
26
|
-
info: chalk.cyan("›"),
|
|
27
|
-
bullet: chalk.dim("•"),
|
|
28
|
-
arrow: chalk.dim("→"),
|
|
29
|
-
pending: chalk.yellow("·"),
|
|
30
|
-
};
|
|
31
|
-
// ── Brand banner ──────────────────────────────────────────────────────────
|
|
32
|
-
/**
|
|
33
|
-
* Single-line MIOSA banner used at the top of lifecycle commands
|
|
34
|
-
* (login / logout / mcp install). Compact and unobtrusive.
|
|
35
|
-
*
|
|
36
|
-
* ▮▮▮ MIOSA ▮▮▮ v1.0.4
|
|
37
|
-
*/
|
|
38
|
-
export function banner(opts = {}) {
|
|
39
|
-
const bar = chalk.cyan("▮▮▮");
|
|
40
|
-
const wordmark = chalk.bold("MIOSA");
|
|
41
|
-
const version = opts.version ? chalk.dim(` v${opts.version}`) : "";
|
|
42
|
-
const subtitle = opts.subtitle ? chalk.dim(` ${opts.subtitle}`) : "";
|
|
43
|
-
return `${bar} ${wordmark} ${bar}${version}${subtitle}`;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Render a list of key/value rows with aligned columns. Used for the
|
|
47
|
-
* "✓ Authenticated ClinicIQ · Pro plan" output blocks.
|
|
48
|
-
*/
|
|
49
|
-
export function kvPanel(rows) {
|
|
50
|
-
if (rows.length === 0)
|
|
51
|
-
return "";
|
|
52
|
-
const labelWidth = Math.max(...rows.map((r) => r.label.length));
|
|
53
|
-
return rows
|
|
54
|
-
.map((r) => {
|
|
55
|
-
const lead = r.icon ? `${r.icon} ` : " ";
|
|
56
|
-
const label = chalk.bold(r.label.padEnd(labelWidth));
|
|
57
|
-
return ` ${lead}${label} ${r.value}`;
|
|
58
|
-
})
|
|
59
|
-
.join("\n");
|
|
60
|
-
}
|
|
61
|
-
// ── Hint block ────────────────────────────────────────────────────────────
|
|
62
|
-
/**
|
|
63
|
-
* Suggest what the user can do next. Rendered as:
|
|
64
|
-
*
|
|
65
|
-
* → Next: miosa computers list
|
|
66
|
-
* miosa mcp install
|
|
67
|
-
*/
|
|
68
|
-
export function hintBlock(label, commands) {
|
|
69
|
-
if (commands.length === 0)
|
|
70
|
-
return "";
|
|
71
|
-
const head = ` ${chalk.dim("→")} ${chalk.bold(label)}`;
|
|
72
|
-
const pad = " ".repeat(label.length + 5); // align with first command
|
|
73
|
-
const lines = commands.map((c, i) => i === 0 ? `${head} ${chalk.cyan(c)}` : ` ${pad}${chalk.cyan(c)}`);
|
|
74
|
-
return lines.join("\n");
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Format an error in the brand's red envelope. Use this in the catch
|
|
78
|
-
* block of every command instead of bare `console.error`.
|
|
79
|
-
*/
|
|
80
|
-
export function errorEnvelope(env) {
|
|
81
|
-
const lines = [];
|
|
82
|
-
lines.push(` ${chalk.red("✗")} ${chalk.bold.red(env.title)}`);
|
|
83
|
-
if (env.body)
|
|
84
|
-
lines.push(` ${chalk.dim(env.body)}`);
|
|
85
|
-
if (env.suggest && env.suggest.length > 0) {
|
|
86
|
-
lines.push("");
|
|
87
|
-
lines.push(` ${chalk.dim("→")} ${chalk.bold("Try")}`);
|
|
88
|
-
for (const s of env.suggest)
|
|
89
|
-
lines.push(` ${chalk.cyan(s)}`);
|
|
90
|
-
}
|
|
91
|
-
if (env.withDebugHint) {
|
|
92
|
-
lines.push("");
|
|
93
|
-
lines.push(` ${chalk.dim("Run with MIOSA_DEBUG=1 for the full stack trace.")}`);
|
|
94
|
-
}
|
|
95
|
-
return lines.join("\n");
|
|
96
|
-
}
|
|
97
|
-
// ── Elapsed timer ─────────────────────────────────────────────────────────
|
|
98
|
-
/**
|
|
99
|
-
* Wrap an async block and append a "Took 1.2s" line on success.
|
|
100
|
-
* On error, re-throws so the caller can format its own envelope.
|
|
101
|
-
*/
|
|
102
|
-
export async function withElapsed(fn) {
|
|
103
|
-
const start = Date.now();
|
|
104
|
-
const result = await fn();
|
|
105
|
-
const ms = Date.now() - start;
|
|
106
|
-
return { result, elapsed: formatDuration(ms) };
|
|
107
|
-
}
|
|
108
|
-
export function formatDuration(ms) {
|
|
109
|
-
if (ms < 1000)
|
|
110
|
-
return `${ms}ms`;
|
|
111
|
-
if (ms < 10_000)
|
|
112
|
-
return `${(ms / 1000).toFixed(1)}s`;
|
|
113
|
-
if (ms < 60_000)
|
|
114
|
-
return `${Math.round(ms / 1000)}s`;
|
|
115
|
-
const m = Math.floor(ms / 60_000);
|
|
116
|
-
const s = Math.round((ms % 60_000) / 1000);
|
|
117
|
-
return `${m}m ${s}s`;
|
|
118
|
-
}
|
|
119
|
-
// ── Composition helpers ──────────────────────────────────────────────────
|
|
120
|
-
/** Insert a blank line. Cheap readability tool. */
|
|
121
|
-
export const blank = () => console.log();
|
|
122
|
-
/** Print the banner — convenience over `console.log(banner(...))`. */
|
|
123
|
-
export function printBanner(opts = {}) {
|
|
124
|
-
console.log();
|
|
125
|
-
console.log(` ${banner(opts)}`);
|
|
126
|
-
console.log();
|
|
127
|
-
}
|
|
128
|
-
/** Print the elapsed line in dim text below a successful command. */
|
|
129
|
-
export function printElapsed(elapsed) {
|
|
130
|
-
console.log();
|
|
131
|
-
console.log(` ${chalk.dim(`Took ${elapsed}`)}`);
|
|
132
|
-
}
|
|
133
|
-
/** Print a section header (dim small-caps). */
|
|
134
|
-
export function sectionHeader(label) {
|
|
135
|
-
console.log();
|
|
136
|
-
console.log(` ${chalk.dim.bold(label.toUpperCase())}`);
|
|
137
|
-
}
|
|
138
|
-
//# sourceMappingURL=render.js.map
|
package/dist/ui/render.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../src/ui/render.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,6EAA6E;AAC7E,mEAAmE;AAEnE,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,EAAE,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC;CAC3B,CAAC;AAEF,6EAA6E;AAE7E;;;;;GAKG;AACH,MAAM,UAAU,MAAM,CACpB,OAAgD,EAAE;IAElD,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,KAA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AC,CAAC;IAClC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC3C,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;AACvB,CAAC;AAED,4EAA4E;AAE5E,mDAAmD;AACnD,MAAM,CAAC,MAAM,KAAK,GAAG,GAAS,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;AAE/C,sEAAsE;AACtE,MAAM,UAAU,WAAW,CACzB,OAAgD,EAAE;IAElD,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,OAAO,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjC,OAAO,CAAC,GAAG,EAAE,CAAC;AAChB,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,YAAY,CAAC,OAAe;IAC1C,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,QAAQ,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AACnD,CAAC;AAED,+CAA+C;AAC/C,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
package/dist/ui/spinner.d.ts
DELETED
package/dist/ui/spinner.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/ui/spinner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,GAAG,CAAC,CAEzD"}
|
package/dist/ui/spinner.js
DELETED
package/dist/ui/spinner.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../src/ui/spinner.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,KAAK,CAAC;AAErC,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,MAAM,UAAU,IAAI,CAAC,IAAY;IAC/B,OAAO,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;AAChD,CAAC"}
|
package/dist/ui/table.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface Column<T> {
|
|
2
|
-
header: string;
|
|
3
|
-
key: keyof T | ((row: T) => string);
|
|
4
|
-
width?: number;
|
|
5
|
-
color?: (val: string, row: T) => string;
|
|
6
|
-
}
|
|
7
|
-
export declare function renderTable<T extends object>(rows: T[], columns: Column<T>[]): void;
|
|
8
|
-
//# sourceMappingURL=table.d.ts.map
|
package/dist/ui/table.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/ui/table.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC;CACzC;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAC1C,IAAI,EAAE,CAAC,EAAE,EACT,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,GACnB,IAAI,CAwCN"}
|
package/dist/ui/table.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import chalk from "chalk";
|
|
2
|
-
export function renderTable(rows, columns) {
|
|
3
|
-
if (rows.length === 0) {
|
|
4
|
-
console.log(chalk.dim("(no results)"));
|
|
5
|
-
return;
|
|
6
|
-
}
|
|
7
|
-
// Compute column widths
|
|
8
|
-
const widths = columns.map((col) => {
|
|
9
|
-
const headerLen = col.header.length;
|
|
10
|
-
const maxData = rows.reduce((max, row) => {
|
|
11
|
-
const val = getCellValue(row, col);
|
|
12
|
-
return Math.max(max, val.length);
|
|
13
|
-
}, 0);
|
|
14
|
-
return col.width ?? Math.max(headerLen, maxData);
|
|
15
|
-
});
|
|
16
|
-
// Header row
|
|
17
|
-
const header = columns
|
|
18
|
-
.map((col, i) => chalk.bold(col.header.padEnd(widths[i] ?? col.header.length)))
|
|
19
|
-
.join(" ");
|
|
20
|
-
console.log(header);
|
|
21
|
-
// Separator
|
|
22
|
-
const sep = widths.map((w) => "─".repeat(w)).join(" ");
|
|
23
|
-
console.log(chalk.dim(sep));
|
|
24
|
-
// Data rows
|
|
25
|
-
for (const row of rows) {
|
|
26
|
-
const line = columns
|
|
27
|
-
.map((col, i) => {
|
|
28
|
-
const w = widths[i] ?? 0;
|
|
29
|
-
const val = getCellValue(row, col);
|
|
30
|
-
const padded = val.padEnd(w);
|
|
31
|
-
return col.color ? col.color(padded, row) : padded;
|
|
32
|
-
})
|
|
33
|
-
.join(" ");
|
|
34
|
-
console.log(line);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function getCellValue(row, col) {
|
|
38
|
-
if (typeof col.key === "function") {
|
|
39
|
-
return col.key(row);
|
|
40
|
-
}
|
|
41
|
-
const val = row[col.key];
|
|
42
|
-
if (val === null || val === undefined)
|
|
43
|
-
return chalk.dim("—");
|
|
44
|
-
return String(val);
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=table.js.map
|
package/dist/ui/table.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/ui/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,UAAU,WAAW,CACzB,IAAS,EACT,OAAoB;IAEpB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;QACvC,OAAO;IACT,CAAC;IAED,wBAAwB;IACxB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACjC,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YACvC,MAAM,GAAG,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACnC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QACnC,CAAC,EAAE,CAAC,CAAC,CAAC;QACN,OAAO,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,aAAa;IACb,MAAM,MAAM,GAAG,OAAO;SACnB,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CACd,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAC9D;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC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B,CAAC"}
|
package/dist/update-check.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auto-update checker — fires async after command completion.
|
|
3
|
-
* Checks npm registry for the latest @miosa/cli version once per 24h.
|
|
4
|
-
* Caches the result in ~/.miosa/update-check.json.
|
|
5
|
-
* Never blocks the command; errors are silently swallowed.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Schedule an async update check that prints a notice if a newer version is
|
|
9
|
-
* available. Must be called after `program.parseAsync()` so it never delays
|
|
10
|
-
* command output. Uses `setImmediate` to yield first, then fires a fetch.
|
|
11
|
-
*/
|
|
12
|
-
export declare function scheduleUpdateCheck(currentVersion: string): void;
|
|
13
|
-
//# sourceMappingURL=update-check.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-check.d.ts","sourceRoot":"","sources":["../src/update-check.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA+CH;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAwChE"}
|
package/dist/update-check.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auto-update checker — fires async after command completion.
|
|
3
|
-
* Checks npm registry for the latest @miosa/cli version once per 24h.
|
|
4
|
-
* Caches the result in ~/.miosa/update-check.json.
|
|
5
|
-
* Never blocks the command; errors are silently swallowed.
|
|
6
|
-
*/
|
|
7
|
-
import { readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
8
|
-
import { homedir } from "node:os";
|
|
9
|
-
import { join } from "node:path";
|
|
10
|
-
import chalk from "chalk";
|
|
11
|
-
import { isJsonMode, isQuietMode } from "./cli-env.js";
|
|
12
|
-
const CACHE_PATH = join(homedir(), ".miosa", "update-check.json");
|
|
13
|
-
const CACHE_TTL_MS = 24 * 60 * 60 * 1000; // 24 hours
|
|
14
|
-
const REGISTRY_URL = "https://registry.npmjs.org/@miosa/cli/latest";
|
|
15
|
-
function readCache() {
|
|
16
|
-
try {
|
|
17
|
-
const raw = readFileSync(CACHE_PATH, "utf8");
|
|
18
|
-
return JSON.parse(raw);
|
|
19
|
-
}
|
|
20
|
-
catch {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function writeCache(data) {
|
|
25
|
-
try {
|
|
26
|
-
mkdirSync(join(homedir(), ".miosa"), { recursive: true });
|
|
27
|
-
writeFileSync(CACHE_PATH, JSON.stringify(data), "utf8");
|
|
28
|
-
}
|
|
29
|
-
catch {
|
|
30
|
-
// Non-fatal — cache write failures are ignored
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function compareVersions(current, latest) {
|
|
34
|
-
const parse = (v) => {
|
|
35
|
-
const parts = v.replace(/^v/, "").split(".").map(Number);
|
|
36
|
-
return [parts[0] ?? 0, parts[1] ?? 0, parts[2] ?? 0];
|
|
37
|
-
};
|
|
38
|
-
const [cMaj, cMin, cPat] = parse(current);
|
|
39
|
-
const [lMaj, lMin, lPat] = parse(latest);
|
|
40
|
-
if (lMaj !== cMaj)
|
|
41
|
-
return lMaj > cMaj;
|
|
42
|
-
if (lMin !== cMin)
|
|
43
|
-
return lMin > cMin;
|
|
44
|
-
return lPat > cPat;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Schedule an async update check that prints a notice if a newer version is
|
|
48
|
-
* available. Must be called after `program.parseAsync()` so it never delays
|
|
49
|
-
* command output. Uses `setImmediate` to yield first, then fires a fetch.
|
|
50
|
-
*/
|
|
51
|
-
export function scheduleUpdateCheck(currentVersion) {
|
|
52
|
-
if (isJsonMode() || isQuietMode())
|
|
53
|
-
return;
|
|
54
|
-
setImmediate(() => {
|
|
55
|
-
void (async () => {
|
|
56
|
-
try {
|
|
57
|
-
const cache = readCache();
|
|
58
|
-
const now = Date.now();
|
|
59
|
-
// Use cached result if still fresh
|
|
60
|
-
if (cache && now - cache.checkedAt < CACHE_TTL_MS) {
|
|
61
|
-
if (compareVersions(currentVersion, cache.latestVersion)) {
|
|
62
|
-
printNotice(currentVersion, cache.latestVersion);
|
|
63
|
-
}
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
// Fetch latest from npm — 3 second timeout so this never hangs
|
|
67
|
-
const ac = new AbortController();
|
|
68
|
-
const timer = setTimeout(() => ac.abort(), 3_000);
|
|
69
|
-
let latestVersion;
|
|
70
|
-
try {
|
|
71
|
-
const resp = await fetch(REGISTRY_URL, { signal: ac.signal });
|
|
72
|
-
if (!resp.ok)
|
|
73
|
-
return;
|
|
74
|
-
const json = (await resp.json());
|
|
75
|
-
latestVersion = json.version;
|
|
76
|
-
}
|
|
77
|
-
finally {
|
|
78
|
-
clearTimeout(timer);
|
|
79
|
-
}
|
|
80
|
-
writeCache({ checkedAt: now, latestVersion });
|
|
81
|
-
if (compareVersions(currentVersion, latestVersion)) {
|
|
82
|
-
printNotice(currentVersion, latestVersion);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
catch {
|
|
86
|
-
// Never surface update-check errors to the user
|
|
87
|
-
}
|
|
88
|
-
})();
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function printNotice(current, latest) {
|
|
92
|
-
console.error(chalk.yellow(`Update available: ${current} → ${latest}. Run \`miosa update\` to update.`));
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=update-check.js.map
|
package/dist/update-check.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-check.js","sourceRoot":"","sources":["../src/update-check.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EA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C,IAAI,CAAC,EAAE;wBAAE,OAAO;oBACrB,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAwB,CAAC;oBACxD,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC/B,CAAC;wBAAS,CAAC;oBACT,YAAY,CAAC,KAAK,CAAC,CAAC;gBACtB,CAAC;gBAED,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC;gBAE9C,IAAI,eAAe,CAAC,cAAc,EAAE,aAAa,CAAC,EAAE,CAAC;oBACnD,WAAW,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;gBAC7C,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,gDAAgD;YAClD,CAAC;QACH,CAAC,CAAC,EAAE,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,WAAW,CAAC,OAAe,EAAE,MAAc;IAClD,OAAO,CAAC,KAAK,CACX,KAAK,CAAC,MAAM,CACV,qBAAqB,OAAO,MAAM,MAAM,mCAAmC,CAC5E,CACF,CAAC;AACJ,CAAC"}
|
package/dist/version.d.ts
DELETED
package/dist/version.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,QAAmB,CAAC;AAC5C,eAAO,MAAM,cAAc,QAA8B,CAAC"}
|
package/dist/version.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from "node:fs";
|
|
2
|
-
const manifest = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
3
|
-
export const CLI_VERSION = manifest.version;
|
|
4
|
-
export const CLI_USER_AGENT = `@miosa/cli/${CLI_VERSION}`;
|
|
5
|
-
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CACzB,YAAY,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAC3C,CAAC;AAEzB,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,WAAW,EAAE,CAAC"}
|