@quonfig/cli 0.0.2 → 0.0.4
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 +119 -22
- package/bin/dev.js +5 -9
- package/bin/dev.mjs +6 -0
- package/dist/codegen/zod-introspection.js +13 -4
- package/dist/commands/login.js +27 -6
- package/dist/commands/mcp.js +1 -1
- package/dist/commands/pull.d.ts +15 -0
- package/dist/commands/pull.js +176 -0
- package/dist/commands/serve.js +3 -1
- package/dist/commands/sync.d.ts +18 -0
- package/dist/commands/sync.js +142 -0
- package/dist/commands/whoami.js +4 -1
- package/dist/commands/workspace/bootstrap.d.ts +13 -0
- package/dist/commands/workspace/bootstrap.js +155 -0
- package/dist/init/init-workspace.js +4 -4
- package/dist/init/templates.js +1 -1
- package/dist/util/coerce.js +2 -1
- package/dist/util/get-client.js +6 -44
- package/dist/util/get-valid-token.d.ts +5 -0
- package/dist/util/get-valid-token.js +44 -0
- package/dist/util/git-ops.d.ts +32 -0
- package/dist/util/git-ops.js +164 -0
- package/dist/util/gitea-api.d.ts +11 -0
- package/dist/util/gitea-api.js +45 -0
- package/dist/util/gitea-token-storage.d.ts +8 -0
- package/dist/util/gitea-token-storage.js +47 -0
- package/dist/util/token-storage.d.ts +1 -0
- package/dist/util/token-storage.js +24 -10
- package/dist/verify/validate.d.ts +1 -0
- package/dist/verify/validate.js +136 -6
- package/oclif.manifest.json +223 -2
- package/package.json +2 -2
package/oclif.manifest.json
CHANGED
|
@@ -834,7 +834,7 @@
|
|
|
834
834
|
"examples": [
|
|
835
835
|
"<%= config.bin %> <%= command.id %>",
|
|
836
836
|
"<%= config.bin %> <%= command.id %> --editor cursor",
|
|
837
|
-
"<%= config.bin %> <%= command.id %> --url http://local-app.
|
|
837
|
+
"<%= config.bin %> <%= command.id %> --url http://local-app.quonfig-staging.com:3003/api/v1/mcp"
|
|
838
838
|
],
|
|
839
839
|
"flags": {
|
|
840
840
|
"json": {
|
|
@@ -1044,6 +1044,74 @@
|
|
|
1044
1044
|
"profile.js"
|
|
1045
1045
|
]
|
|
1046
1046
|
},
|
|
1047
|
+
"pull": {
|
|
1048
|
+
"aliases": [],
|
|
1049
|
+
"args": {},
|
|
1050
|
+
"description": "Clone or update a local directory from the workspace Gitea repo",
|
|
1051
|
+
"examples": [
|
|
1052
|
+
"<%= config.bin %> pull --dir ./our-config",
|
|
1053
|
+
"<%= config.bin %> pull # uses QUONFIG_DIR env var"
|
|
1054
|
+
],
|
|
1055
|
+
"flags": {
|
|
1056
|
+
"json": {
|
|
1057
|
+
"description": "Format output as json.",
|
|
1058
|
+
"helpGroup": "GLOBAL",
|
|
1059
|
+
"name": "json",
|
|
1060
|
+
"allowNo": false,
|
|
1061
|
+
"type": "boolean"
|
|
1062
|
+
},
|
|
1063
|
+
"interactive": {
|
|
1064
|
+
"description": "Force interactive mode",
|
|
1065
|
+
"helpGroup": "GLOBAL",
|
|
1066
|
+
"name": "interactive",
|
|
1067
|
+
"allowNo": true,
|
|
1068
|
+
"type": "boolean"
|
|
1069
|
+
},
|
|
1070
|
+
"no-color": {
|
|
1071
|
+
"description": "Do not colorize output",
|
|
1072
|
+
"env": "NO_COLOR",
|
|
1073
|
+
"helpGroup": "GLOBAL",
|
|
1074
|
+
"name": "no-color",
|
|
1075
|
+
"allowNo": false,
|
|
1076
|
+
"type": "boolean"
|
|
1077
|
+
},
|
|
1078
|
+
"verbose": {
|
|
1079
|
+
"description": "Verbose output",
|
|
1080
|
+
"helpGroup": "GLOBAL",
|
|
1081
|
+
"name": "verbose",
|
|
1082
|
+
"allowNo": false,
|
|
1083
|
+
"type": "boolean"
|
|
1084
|
+
},
|
|
1085
|
+
"dir": {
|
|
1086
|
+
"description": "Local directory to clone/update (defaults to QUONFIG_DIR env var)",
|
|
1087
|
+
"name": "dir",
|
|
1088
|
+
"hasDynamicHelp": false,
|
|
1089
|
+
"multiple": false,
|
|
1090
|
+
"type": "option"
|
|
1091
|
+
},
|
|
1092
|
+
"workspace": {
|
|
1093
|
+
"description": "Workspace ID (defaults to active profile)",
|
|
1094
|
+
"name": "workspace",
|
|
1095
|
+
"hasDynamicHelp": false,
|
|
1096
|
+
"multiple": false,
|
|
1097
|
+
"type": "option"
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
"hasDynamicHelp": false,
|
|
1101
|
+
"hiddenAliases": [],
|
|
1102
|
+
"id": "pull",
|
|
1103
|
+
"pluginAlias": "@quonfig/cli",
|
|
1104
|
+
"pluginName": "@quonfig/cli",
|
|
1105
|
+
"pluginType": "core",
|
|
1106
|
+
"strict": true,
|
|
1107
|
+
"enableJsonFlag": true,
|
|
1108
|
+
"isESM": true,
|
|
1109
|
+
"relativePath": [
|
|
1110
|
+
"dist",
|
|
1111
|
+
"commands",
|
|
1112
|
+
"pull.js"
|
|
1113
|
+
]
|
|
1114
|
+
},
|
|
1047
1115
|
"schema": {
|
|
1048
1116
|
"aliases": [],
|
|
1049
1117
|
"args": {
|
|
@@ -1326,6 +1394,83 @@
|
|
|
1326
1394
|
"set-default.js"
|
|
1327
1395
|
]
|
|
1328
1396
|
},
|
|
1397
|
+
"sync": {
|
|
1398
|
+
"aliases": [],
|
|
1399
|
+
"args": {},
|
|
1400
|
+
"description": "Continuously poll for workspace config updates and apply them locally",
|
|
1401
|
+
"examples": [
|
|
1402
|
+
"<%= config.bin %> sync --watch",
|
|
1403
|
+
"<%= config.bin %> sync --watch --interval 10",
|
|
1404
|
+
"<%= config.bin %> sync --watch --dir ./our-config --interval 30"
|
|
1405
|
+
],
|
|
1406
|
+
"flags": {
|
|
1407
|
+
"json": {
|
|
1408
|
+
"description": "Format output as json.",
|
|
1409
|
+
"helpGroup": "GLOBAL",
|
|
1410
|
+
"name": "json",
|
|
1411
|
+
"allowNo": false,
|
|
1412
|
+
"type": "boolean"
|
|
1413
|
+
},
|
|
1414
|
+
"interactive": {
|
|
1415
|
+
"description": "Force interactive mode",
|
|
1416
|
+
"helpGroup": "GLOBAL",
|
|
1417
|
+
"name": "interactive",
|
|
1418
|
+
"allowNo": true,
|
|
1419
|
+
"type": "boolean"
|
|
1420
|
+
},
|
|
1421
|
+
"no-color": {
|
|
1422
|
+
"description": "Do not colorize output",
|
|
1423
|
+
"env": "NO_COLOR",
|
|
1424
|
+
"helpGroup": "GLOBAL",
|
|
1425
|
+
"name": "no-color",
|
|
1426
|
+
"allowNo": false,
|
|
1427
|
+
"type": "boolean"
|
|
1428
|
+
},
|
|
1429
|
+
"verbose": {
|
|
1430
|
+
"description": "Verbose output",
|
|
1431
|
+
"helpGroup": "GLOBAL",
|
|
1432
|
+
"name": "verbose",
|
|
1433
|
+
"allowNo": false,
|
|
1434
|
+
"type": "boolean"
|
|
1435
|
+
},
|
|
1436
|
+
"dir": {
|
|
1437
|
+
"description": "Local directory to sync (defaults to QUONFIG_DIR env var)",
|
|
1438
|
+
"name": "dir",
|
|
1439
|
+
"hasDynamicHelp": false,
|
|
1440
|
+
"multiple": false,
|
|
1441
|
+
"type": "option"
|
|
1442
|
+
},
|
|
1443
|
+
"interval": {
|
|
1444
|
+
"description": "Poll interval in seconds",
|
|
1445
|
+
"name": "interval",
|
|
1446
|
+
"default": 60,
|
|
1447
|
+
"hasDynamicHelp": false,
|
|
1448
|
+
"multiple": false,
|
|
1449
|
+
"type": "option"
|
|
1450
|
+
},
|
|
1451
|
+
"watch": {
|
|
1452
|
+
"description": "Run as a continuous polling daemon (required)",
|
|
1453
|
+
"name": "watch",
|
|
1454
|
+
"required": true,
|
|
1455
|
+
"allowNo": false,
|
|
1456
|
+
"type": "boolean"
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
"hasDynamicHelp": false,
|
|
1460
|
+
"hiddenAliases": [],
|
|
1461
|
+
"id": "sync",
|
|
1462
|
+
"pluginAlias": "@quonfig/cli",
|
|
1463
|
+
"pluginName": "@quonfig/cli",
|
|
1464
|
+
"pluginType": "core",
|
|
1465
|
+
"strict": true,
|
|
1466
|
+
"enableJsonFlag": true,
|
|
1467
|
+
"isESM": true,
|
|
1468
|
+
"relativePath": [
|
|
1469
|
+
"dist",
|
|
1470
|
+
"commands",
|
|
1471
|
+
"sync.js"
|
|
1472
|
+
]
|
|
1473
|
+
},
|
|
1329
1474
|
"verify": {
|
|
1330
1475
|
"aliases": [],
|
|
1331
1476
|
"args": {
|
|
@@ -1498,7 +1643,83 @@
|
|
|
1498
1643
|
"commands",
|
|
1499
1644
|
"workspace.js"
|
|
1500
1645
|
]
|
|
1646
|
+
},
|
|
1647
|
+
"workspace:bootstrap": {
|
|
1648
|
+
"aliases": [],
|
|
1649
|
+
"args": {},
|
|
1650
|
+
"description": "Push a local git repo to Gitea as this workspace's config repository",
|
|
1651
|
+
"examples": [
|
|
1652
|
+
"<%= config.bin %> workspace bootstrap --dir ./our-config",
|
|
1653
|
+
"<%= config.bin %> workspace bootstrap --dir ./launch-migrator/output",
|
|
1654
|
+
"<%= config.bin %> workspace bootstrap --dir ./our-config --skip-validate"
|
|
1655
|
+
],
|
|
1656
|
+
"flags": {
|
|
1657
|
+
"json": {
|
|
1658
|
+
"description": "Format output as json.",
|
|
1659
|
+
"helpGroup": "GLOBAL",
|
|
1660
|
+
"name": "json",
|
|
1661
|
+
"allowNo": false,
|
|
1662
|
+
"type": "boolean"
|
|
1663
|
+
},
|
|
1664
|
+
"interactive": {
|
|
1665
|
+
"description": "Force interactive mode",
|
|
1666
|
+
"helpGroup": "GLOBAL",
|
|
1667
|
+
"name": "interactive",
|
|
1668
|
+
"allowNo": true,
|
|
1669
|
+
"type": "boolean"
|
|
1670
|
+
},
|
|
1671
|
+
"no-color": {
|
|
1672
|
+
"description": "Do not colorize output",
|
|
1673
|
+
"env": "NO_COLOR",
|
|
1674
|
+
"helpGroup": "GLOBAL",
|
|
1675
|
+
"name": "no-color",
|
|
1676
|
+
"allowNo": false,
|
|
1677
|
+
"type": "boolean"
|
|
1678
|
+
},
|
|
1679
|
+
"verbose": {
|
|
1680
|
+
"description": "Verbose output",
|
|
1681
|
+
"helpGroup": "GLOBAL",
|
|
1682
|
+
"name": "verbose",
|
|
1683
|
+
"allowNo": false,
|
|
1684
|
+
"type": "boolean"
|
|
1685
|
+
},
|
|
1686
|
+
"dir": {
|
|
1687
|
+
"description": "Local directory to push (defaults to current directory)",
|
|
1688
|
+
"name": "dir",
|
|
1689
|
+
"required": false,
|
|
1690
|
+
"hasDynamicHelp": false,
|
|
1691
|
+
"multiple": false,
|
|
1692
|
+
"type": "option"
|
|
1693
|
+
},
|
|
1694
|
+
"force": {
|
|
1695
|
+
"description": "Force push even if remote already has commits",
|
|
1696
|
+
"name": "force",
|
|
1697
|
+
"allowNo": false,
|
|
1698
|
+
"type": "boolean"
|
|
1699
|
+
},
|
|
1700
|
+
"skip-validate": {
|
|
1701
|
+
"description": "Skip config validation before pushing",
|
|
1702
|
+
"name": "skip-validate",
|
|
1703
|
+
"allowNo": false,
|
|
1704
|
+
"type": "boolean"
|
|
1705
|
+
}
|
|
1706
|
+
},
|
|
1707
|
+
"hasDynamicHelp": false,
|
|
1708
|
+
"hiddenAliases": [],
|
|
1709
|
+
"id": "workspace:bootstrap",
|
|
1710
|
+
"pluginAlias": "@quonfig/cli",
|
|
1711
|
+
"pluginName": "@quonfig/cli",
|
|
1712
|
+
"pluginType": "core",
|
|
1713
|
+
"strict": true,
|
|
1714
|
+
"enableJsonFlag": true,
|
|
1715
|
+
"isESM": true,
|
|
1716
|
+
"relativePath": [
|
|
1717
|
+
"dist",
|
|
1718
|
+
"commands",
|
|
1719
|
+
"workspace",
|
|
1720
|
+
"bootstrap.js"
|
|
1721
|
+
]
|
|
1501
1722
|
}
|
|
1502
1723
|
},
|
|
1503
|
-
"version": "0.0.
|
|
1724
|
+
"version": "0.0.4"
|
|
1504
1725
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageManager": "yarn@4.11.0+sha512.4e54aeace9141df2f0177c266b05ec50dc044638157dae128c471ba65994ac802122d7ab35bcd9e81641228b7dcf24867d28e750e0bcae8a05277d600008ad54",
|
|
3
3
|
"name": "@quonfig/cli",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/quonfig/cli/issues"
|
|
7
7
|
},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@oclif/core": "^3.18.2",
|
|
22
22
|
"@oclif/plugin-help": "^6",
|
|
23
23
|
"@oclif/plugin-plugins": "^4",
|
|
24
|
-
"@quonfig/node": "^0.0.
|
|
24
|
+
"@quonfig/node": "^0.0.2",
|
|
25
25
|
"acorn": "^8.10.0",
|
|
26
26
|
"acorn-walk": "^8.2.0",
|
|
27
27
|
"chalk": "^5.4.1",
|