@apso/cli 0.26.0 → 0.26.2

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.
@@ -88,12 +88,17 @@ class Link extends base_command_1.default {
88
88
  else {
89
89
  const servicesResponse = await services_1.servicesApi.list(workspace.id);
90
90
  const services = servicesResponse.data;
91
+ // "+ Create new service" first so it's always visible, not buried under a
92
+ // long list of existing services.
93
+ const serviceChoices = services.map((svc) => ({
94
+ name: `${svc.name} (${svc.slug})`,
95
+ value: svc,
96
+ }));
91
97
  const choices = [
92
- ...services.map((svc) => ({
93
- name: `${svc.name} (${svc.slug})`,
94
- value: svc,
95
- })),
96
98
  { name: "+ Create new service", value: null },
99
+ ...(serviceChoices.length > 0
100
+ ? [new inquirer_1.default.Separator(), ...serviceChoices]
101
+ : []),
97
102
  ];
98
103
  const { selectedService } = await inquirer_1.default.prompt([
99
104
  {
@@ -20,7 +20,14 @@ class Status extends base_command_1.default {
20
20
  this.log(`Service: ${service.name} (${service.slug})`);
21
21
  this.log(`Workspace: ${link.workspaceSlug}`);
22
22
  this.log(`Status: ${service.status}`);
23
- this.log(`GitHub: ${service.githubRepo || "not connected"}`);
23
+ // Distinguish the account-level GitHub connection from this service's repo:
24
+ // "GitHub: not connected" was misleading when the account WAS connected but
25
+ // the service had no repo yet (the repo is created on the first deploy).
26
+ const conn = await services_1.githubApi
27
+ .getConnection()
28
+ .catch(() => ({ connected: false }));
29
+ this.log(`GitHub account: ${conn.connected ? "connected" : "not connected (run 'apso github connect')"}`);
30
+ this.log(`Repo: ${service.githubRepo || "none yet (created on first deploy)"}`);
24
31
  if (service.endpoint) {
25
32
  this.log(`Endpoint: ${service.endpoint}`);
26
33
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@apso/cli",
3
- "version": "0.26.0",
3
+ "version": "0.26.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@apso/cli",
9
- "version": "0.26.0",
9
+ "version": "0.26.2",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@biomejs/biome": "^1.9.4",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.26.0",
2
+ "version": "0.26.2",
3
3
  "commands": {
4
4
  "config": {
5
5
  "id": "config",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apso/cli",
3
- "version": "0.26.0",
3
+ "version": "0.26.2",
4
4
  "mcpName": "io.github.apsoai/apso",
5
5
  "description": "Apso CLI",
6
6
  "author": "Apso by Mavric - @mavric",