@marktoflow/cli 2.0.4 → 2.0.5

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 CHANGED
@@ -9,7 +9,7 @@ Part of [marktoflow](https://github.com/marktoflow/marktoflow) — open-source A
9
9
  ## Quick Start
10
10
 
11
11
  ```bash
12
- npm install -g @marktoflow/cli
12
+ npm install -g marktoflow
13
13
 
14
14
  marktoflow init
15
15
  marktoflow run workflow.md
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@marktoflow/cli",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "CLI for running AI-powered markdown workflows with tool calling, parallel agents, and 38 integrations",
5
5
  "type": "module",
6
- "bin": {
7
- "marktoflow": "dist/index.js"
8
- },
9
6
  "main": "./dist/index.js",
10
7
  "types": "./dist/index.d.ts",
11
8
  "repository": {
@@ -27,9 +24,9 @@
27
24
  },
28
25
  "dependencies": {
29
26
  "@inquirer/prompts": "^8.2.0",
30
- "@marktoflow/core": "2.0.4",
31
- "@marktoflow/gui": "2.0.4",
32
- "@marktoflow/integrations": "2.0.4",
27
+ "@marktoflow/core": "2.0.5",
28
+ "@marktoflow/gui": "2.0.5",
29
+ "@marktoflow/integrations": "2.0.5",
33
30
  "chalk": "^5.3.0",
34
31
  "commander": "^12.1.0",
35
32
  "open": "^10.1.0",
package/dist/i18n.d.ts DELETED
@@ -1,17 +0,0 @@
1
- import i18next from 'i18next';
2
- /**
3
- * Detect locale from --locale flag, env var, or system LANG.
4
- */
5
- export declare function detectLocale(cliLocale?: string): string;
6
- /**
7
- * Initialize i18next for the CLI.
8
- * Must be called before any command parsing.
9
- */
10
- export declare function initI18n(locale?: string): Promise<typeof i18next>;
11
- /**
12
- * Shorthand for i18next.t()
13
- * Returns the key itself if i18next is not initialized yet.
14
- */
15
- export declare function t(key: string, options?: any): string;
16
- export default i18next;
17
- //# sourceMappingURL=i18n.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAY9B;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAcvD;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,OAAO,CAAC,CA6BvE;AAED;;;GAGG;AACH,wBAAgB,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,MAAM,CAOpD;AAED,eAAe,OAAO,CAAC"}
package/dist/i18n.js DELETED
@@ -1,70 +0,0 @@
1
- import i18next from 'i18next';
2
- import FsBackend from 'i18next-fs-backend';
3
- import { dirname, join } from 'path';
4
- import { fileURLToPath } from 'url';
5
- import { createRequire } from 'module';
6
- import { SUPPORTED_LANGUAGE_CODES, DEFAULT_LANGUAGE } from '@marktoflow/i18n';
7
- const __filename = fileURLToPath(import.meta.url);
8
- const __dirname = dirname(__filename);
9
- let isI18nInitialized = false;
10
- /**
11
- * Detect locale from --locale flag, env var, or system LANG.
12
- */
13
- export function detectLocale(cliLocale) {
14
- const raw = cliLocale ||
15
- process.env.MARKTOFLOW_LOCALE ||
16
- process.env.LANG ||
17
- DEFAULT_LANGUAGE;
18
- // Extract language code from locale string (e.g., "en_US.UTF-8" → "en")
19
- const code = raw.split(/[_.-]/)[0].toLowerCase();
20
- if (SUPPORTED_LANGUAGE_CODES.includes(code)) {
21
- return code;
22
- }
23
- return DEFAULT_LANGUAGE;
24
- }
25
- /**
26
- * Initialize i18next for the CLI.
27
- * Must be called before any command parsing.
28
- */
29
- export async function initI18n(locale) {
30
- const lng = detectLocale(locale);
31
- // Resolve the locales directory from @marktoflow/i18n package
32
- let localesPath;
33
- try {
34
- const require = createRequire(import.meta.url);
35
- const i18nPkgPath = dirname(require.resolve('@marktoflow/i18n/package.json'));
36
- localesPath = join(i18nPkgPath, 'locales');
37
- }
38
- catch {
39
- // Fallback: relative path from dist/
40
- localesPath = join(__dirname, '..', '..', 'i18n', 'locales');
41
- }
42
- await i18next.use(FsBackend).init({
43
- lng,
44
- fallbackLng: DEFAULT_LANGUAGE,
45
- defaultNS: 'common',
46
- ns: ['common', 'cli'],
47
- interpolation: {
48
- escapeValue: false,
49
- },
50
- backend: {
51
- loadPath: join(localesPath, '{{lng}}', '{{ns}}.json'),
52
- },
53
- });
54
- isI18nInitialized = true;
55
- return i18next;
56
- }
57
- /**
58
- * Shorthand for i18next.t()
59
- * Returns the key itself if i18next is not initialized yet.
60
- */
61
- export function t(key, options) {
62
- if (!isI18nInitialized) {
63
- // Return a placeholder before initialization
64
- // Extract the last part of the key for a reasonable fallback
65
- return key.split(':').pop()?.split('.').pop() || key;
66
- }
67
- return String(i18next.t(key, options));
68
- }
69
- export default i18next;
70
- //# sourceMappingURL=i18n.js.map
package/dist/i18n.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAE9E,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,IAAI,iBAAiB,GAAG,KAAK,CAAC;AAE9B;;GAEG;AACH,MAAM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