@praeko/cli 0.1.0 → 0.2.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 (27) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/README.md +2 -2
  3. package/dist/chunks/{adaptadores-X3NUBMLT.mjs → adaptadores-73I3A475.mjs} +5 -5
  4. package/dist/chunks/{buffer-5TUDOBVN.mjs → buffer-7UXG3MU4.mjs} +5 -5
  5. package/dist/chunks/{chunk-QDZLRBTP.mjs → chunk-FZ2EWUHA.mjs} +133 -57
  6. package/dist/chunks/{chunk-SAHLBARV.mjs → chunk-K5RD3QB7.mjs} +12 -12
  7. package/dist/chunks/{chunk-Z325UM27.mjs → chunk-SL4UDIFM.mjs} +1 -1
  8. package/dist/chunks/{chunk-IZEX746E.mjs → chunk-SPELUAPP.mjs} +15 -15
  9. package/dist/chunks/chunk-SSYEOFS5.mjs +56 -0
  10. package/dist/chunks/{chunk-LLXYUCTT.mjs → chunk-TDQGKU7I.mjs} +9 -8
  11. package/dist/chunks/{chunk-UK3UKRPR.mjs → chunk-V3GB2IUZ.mjs} +20 -3
  12. package/dist/chunks/{instagram-GNY73ESY.mjs → instagram-3P4ROM45.mjs} +1 -1
  13. package/dist/chunks/{instagram-meta-COY6BTNX.mjs → instagram-meta-ANEWEJV7.mjs} +2 -1
  14. package/dist/chunks/{local-EUJHQ76T.mjs → local-QWOY7WI5.mjs} +3 -3
  15. package/dist/chunks/{registro-FL2CVMYM.mjs → registro-2EE55WTS.mjs} +1 -1
  16. package/dist/chunks/{remoto-OAB5Y2MS.mjs → remoto-HPELHT4F.mjs} +2 -2
  17. package/dist/chunks/{tiktok-QOUHOWDU.mjs → tiktok-DVG5JNJE.mjs} +1 -1
  18. package/dist/chunks/{tiktok-api-36DV2H43.mjs → tiktok-api-2CYJNS73.mjs} +1 -1
  19. package/dist/chunks/{youtube-RZ4XTUZW.mjs → youtube-EZL4SNMO.mjs} +4 -2
  20. package/dist/chunks/{youtube-analytics-3KIW2ZIW.mjs → youtube-analytics-74ZDYCY6.mjs} +2 -2
  21. package/dist/chunks/{youtube-api-Z2RP5D2V.mjs → youtube-api-QVEOU2L7.mjs} +3 -1
  22. package/dist/chunks/{youtube-comunidade-OAK5GGK4.mjs → youtube-comunidade-GJBG2XR7.mjs} +2 -2
  23. package/dist/praeko.mjs +851 -8
  24. package/package.json +5 -5
  25. package/dist/arauto.mjs +0 -11
  26. package/dist/chunks/chunk-6YARHJZ2.mjs +0 -56
  27. package/dist/chunks/chunk-XQO6MI7C.mjs +0 -851
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praeko/cli",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "CLI do Praeko: publica e agenda vídeos curtos no YouTube, Instagram e TikTok, e fala com a API do serviço (praeko.app).",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "homepage": "https://praeko.app/docs",
17
17
  "bugs": {
18
- "url": "https://github.com/Praeko/praeko-js/issues"
18
+ "url": "https://praeko.app/docs"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
@@ -23,8 +23,7 @@
23
23
  "directory": "packages/cli"
24
24
  },
25
25
  "bin": {
26
- "praeko": "dist/praeko.mjs",
27
- "arauto": "dist/arauto.mjs"
26
+ "praeko": "dist/praeko.mjs"
28
27
  },
29
28
  "files": [
30
29
  "dist",
@@ -38,7 +37,8 @@
38
37
  },
39
38
  "scripts": {
40
39
  "build": "node ../../scripts/build-cli.mjs",
41
- "prepack": "npm run build"
40
+ "prepack": "npm run build",
41
+ "typecheck": "tsc --noEmit -p tsconfig.json"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@praeko/core": "*",
package/dist/arauto.mjs DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
3
- import "./chunks/chunk-XQO6MI7C.mjs";
4
- import "./chunks/chunk-LLXYUCTT.mjs";
5
- import "./chunks/chunk-UK3UKRPR.mjs";
6
- import "./chunks/chunk-SAHLBARV.mjs";
7
- import "./chunks/chunk-IZEX746E.mjs";
8
- import "./chunks/chunk-6YARHJZ2.mjs";
9
- import "./chunks/chunk-QDZLRBTP.mjs";
10
- import "./chunks/chunk-Z325UM27.mjs";
11
- import "./chunks/chunk-LCFK6X55.mjs";
@@ -1,56 +0,0 @@
1
- import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
2
- import {
3
- __export,
4
- __glob
5
- } from "./chunk-LCFK6X55.mjs";
6
-
7
- // ../core/src/provedores/registro.mjs
8
- var registro_exports = {};
9
- __export(registro_exports, {
10
- NOMES: () => NOMES,
11
- carregar: () => carregar,
12
- carregarTodos: () => carregarTodos
13
- });
14
-
15
- // import("./**/*.mjs") in ../core/src/provedores/registro.mjs
16
- var globImport_mjs = __glob({
17
- "./instagram-meta.mjs": () => import("./instagram-meta-COY6BTNX.mjs"),
18
- "./instagram.mjs": () => import("./instagram-GNY73ESY.mjs"),
19
- "./registro.mjs": () => import("./registro-FL2CVMYM.mjs"),
20
- "./tiktok-api.mjs": () => import("./tiktok-api-36DV2H43.mjs"),
21
- "./tiktok.mjs": () => import("./tiktok-QOUHOWDU.mjs"),
22
- "./youtube-analytics.mjs": () => import("./youtube-analytics-3KIW2ZIW.mjs"),
23
- "./youtube-api.mjs": () => import("./youtube-api-Z2RP5D2V.mjs"),
24
- "./youtube-comunidade.mjs": () => import("./youtube-comunidade-OAK5GGK4.mjs"),
25
- "./youtube.mjs": () => import("./youtube-RZ4XTUZW.mjs")
26
- });
27
-
28
- // ../core/src/provedores/registro.mjs
29
- var NOMES = ["youtube", "instagram", "tiktok"];
30
- async function carregar(nome) {
31
- if (!NOMES.includes(nome)) throw new Error(`provedor desconhecido: ${nome}`);
32
- try {
33
- return await globImport_mjs(`./${nome}.mjs`);
34
- } catch (e) {
35
- if (e.code === "ERR_MODULE_NOT_FOUND" && String(e.message).includes(`${nome}.mjs`)) throw new Error(`provedor "${nome}" ainda n\xE3o foi escrito`);
36
- throw e;
37
- }
38
- }
39
- async function carregarTodos() {
40
- const o = {};
41
- for (const n of NOMES) {
42
- try {
43
- o[n] = await carregar(n);
44
- } catch (e) {
45
- if (!/ainda não foi escrito/.test(e.message)) throw e;
46
- }
47
- }
48
- return o;
49
- }
50
-
51
- export {
52
- NOMES,
53
- carregar,
54
- carregarTodos,
55
- registro_exports
56
- };