@rcpooley/concord 0.4.0 → 0.5.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.
Files changed (44) hide show
  1. package/README.md +96 -46
  2. package/bin/concord.service +0 -12
  3. package/dist/api.d.ts +130 -0
  4. package/dist/api.d.ts.map +1 -0
  5. package/dist/api.js +21 -0
  6. package/dist/api.js.map +1 -0
  7. package/dist/cli/client.d.ts +53 -0
  8. package/dist/cli/client.d.ts.map +1 -0
  9. package/dist/cli/client.js +137 -0
  10. package/dist/cli/client.js.map +1 -0
  11. package/dist/cli/main.js +100 -22
  12. package/dist/cli/main.js.map +1 -1
  13. package/dist/cli/remote.d.ts +18 -0
  14. package/dist/cli/remote.d.ts.map +1 -0
  15. package/dist/cli/remote.js +161 -0
  16. package/dist/cli/remote.js.map +1 -0
  17. package/dist/daemon.d.ts.map +1 -1
  18. package/dist/daemon.js +66 -32
  19. package/dist/daemon.js.map +1 -1
  20. package/dist/hook.d.ts +9 -5
  21. package/dist/hook.d.ts.map +1 -1
  22. package/dist/hook.js +13 -26
  23. package/dist/hook.js.map +1 -1
  24. package/dist/init.d.ts +5 -0
  25. package/dist/init.d.ts.map +1 -1
  26. package/dist/init.js +32 -8
  27. package/dist/init.js.map +1 -1
  28. package/dist/modules/apt/index.d.ts +8 -1
  29. package/dist/modules/apt/index.d.ts.map +1 -1
  30. package/dist/modules/apt/index.js +16 -5
  31. package/dist/modules/apt/index.js.map +1 -1
  32. package/dist/modules/apt/schema.js +1 -1
  33. package/dist/plans.d.ts +2 -55
  34. package/dist/plans.d.ts.map +1 -1
  35. package/dist/plans.js.map +1 -1
  36. package/dist/server.d.ts +58 -0
  37. package/dist/server.d.ts.map +1 -0
  38. package/dist/server.js +242 -0
  39. package/dist/server.js.map +1 -0
  40. package/dist-ui/assets/index-BPDholoa.css +1 -0
  41. package/dist-ui/assets/index-CGA96JMz.js +11 -0
  42. package/dist-ui/index.html +15 -0
  43. package/package.json +5 -3
  44. package/templates/starter/README.md +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rcpooley/concord",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Declarative config reconciler: edit a typed config repo, push it, and your hosts converge. Also exports the schema library config repos import.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/rcpooley/concord#readme",
@@ -37,6 +37,7 @@
37
37
  },
38
38
  "files": [
39
39
  "dist",
40
+ "dist-ui",
40
41
  "bin/concord.service",
41
42
  "templates"
42
43
  ],
@@ -45,8 +46,9 @@
45
46
  "test": "npm run build && npm --prefix kit run build && node --test 'test/*.test.mjs' 'kit/test/*.test.mjs'",
46
47
  "prepare": "npm run build",
47
48
  "concord": "node dist/cli/main.js",
48
- "prepublishOnly": "npm test",
49
- "version": "node bin/sync-kit-version.mjs && git add kit/package.json"
49
+ "prepublishOnly": "npm run build:ui && npm test",
50
+ "version": "node bin/sync-kit-version.mjs && git add kit/package.json",
51
+ "build:ui": "npm --prefix ui ci --no-audit --no-fund && npm --prefix ui run build"
50
52
  },
51
53
  "dependencies": {
52
54
  "age-encryption": "^0.3.0",
@@ -23,6 +23,9 @@ npm install && npm run typecheck # after any change
23
23
  printf '%s' 'value' | npm run secret -- set my-key # then use secrets['my-key']
24
24
  ```
25
25
 
26
- Commit and push to `main` to deploy. Keep `@rcpooley/concord` and
26
+ To deploy, push a branch, check it with `concord plan <branch>` (it shows what
27
+ merging would change), then merge to `main`. `concord status` and `concord runs`
28
+ show what the daemon is doing; on the server they need no setup, and elsewhere
29
+ `concord login <url>` first. Keep `@rcpooley/concord` and
27
30
  `@rcpooley/concord-kit` pinned to the same version as the daemon runs, and
28
31
  update them together.