@jujulego/jill 3.0.0-alpha.7 → 3.0.0-alpha.8

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.
@@ -1,8 +1,8 @@
1
- ;{try{(function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e4bc16ad-7cf1-4902-a368-338bb943920a",e._sentryDebugIdIdentifier="sentry-dbid-e4bc16ad-7cf1-4902-a368-338bb943920a");})();}catch(e){}};!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"3.0.0-alpha.7"};}catch(e){}}();import { _ } from '@swc/helpers/_/_apply_decs_2203_r';
1
+ ;{try{(function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="608fee20-23aa-465d-8d99-d351d62aa169",e._sentryDebugIdIdentifier="sentry-dbid-608fee20-23aa-465d-8d99-d351d62aa169");})();}catch(e){}};!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"3.0.0-alpha.8"};}catch(e){}}();import { _ } from '@swc/helpers/_/_apply_decs_2203_r';
2
2
  import { inject$, asyncScope$ } from '@kyrielle/injector';
3
3
  import { withLabel } from '@kyrielle/logger';
4
4
  import { var$ } from 'kyrielle';
5
- import { L as LOGGER, b as CWD, d as ConfigService, p as planParser, e as instrument } from './main.js';
5
+ import { L as LOGGER, C as CWD, a as ConfigService, p as planParser, i as instrument } from './main.js';
6
6
  import '@sentry/node';
7
7
  import 'node:process';
8
8
  import 'yargs/helpers';
@@ -46,13 +46,13 @@ class PlannerService {
46
46
  */ async plan(args, cwd) {
47
47
  this._logger.debug(`interpreting jill ${args.join(' ')}`);
48
48
  const argv = args.map((arg)=>arg.replace(/^["'](.+)["']$/, '$1'));
49
- const tasks = var$();
49
+ const job$ = var$(null);
50
50
  await asyncScope$(async ()=>{
51
51
  asyncScope$().set(CWD, cwd);
52
52
  asyncScope$().set(ConfigService, new ConfigService()); // <= injects an empty ConfigService, forcing config discovery
53
- await planParser(tasks).parseAsync(argv);
53
+ await planParser(job$).parseAsync(argv);
54
54
  });
55
- return tasks.defer() ?? null;
55
+ return job$.defer() ?? null;
56
56
  }
57
57
  }
58
58
 
@@ -1 +1 @@
1
- {"version":3,"file":"planner.service.js","sources":["../src/cli/services/planner.service.ts"],"sourcesContent":["import type { TaskSet } from '@jujulego/tasks';\nimport { asyncScope$, inject$ } from '@kyrielle/injector';\nimport { withLabel } from '@kyrielle/logger';\nimport { var$ } from 'kyrielle';\nimport { ConfigService } from '../../config/config.service.js';\nimport { CWD, LOGGER } from '../../tokens.js';\nimport { instrument } from '../../utils/sentry.js';\nimport { planParser } from '../parser.js';\n\nexport class PlannerService {\n // Attributes\n private readonly _logger = inject$(LOGGER).child(withLabel('planner'));\n\n // Methods\n /**\n * Returns a task set if any task should be run by given command.\n * Tasks that do not execute tasks will return `null`\n */\n @instrument('PlannerService.plan')\n async plan(args: string[], cwd: string): Promise<TaskSet | null> {\n this._logger.debug(`interpreting jill ${args.join(' ')}`);\n\n const argv = args.map(arg => arg.replace(/^[\"'](.+)[\"']$/, '$1'));\n const tasks = var$<TaskSet>();\n\n await asyncScope$(async () => {\n asyncScope$().set(CWD, cwd);\n asyncScope$().set(ConfigService, new ConfigService()); // <= injects an empty ConfigService, forcing config discovery\n\n await planParser(tasks).parseAsync(argv);\n });\n\n return tasks.defer() ?? null;\n }\n}\n"],"names":["instrument","PlannerService","plan","_logger","inject$","LOGGER","child","withLabel","args","c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CAAA,CAAA,CAAA,CAAA,CAAA,KAAA,CAAMC,UAAAA,CAAAA,CAAY,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;YAChBA,UAAAA,CAAAA,EAAAA,CAAcC,GAAG,CAACC,GAAAA,CAAAA,CAAKX,GAAAA,CAAAA,CAAAA;AACvBS,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,UAAAA,CAAAA,CAAAA,CAAAA,CAAcC,GAAG,CAACE,aAAAA,CAAAA,CAAe,GAAA,CAAIA;YAErC,KAAA,CAAMC,UAAAA,CAAWN,KAAAA,CAAAA,CAAOO,UAAU,CAACX,IAAAA,CAAAA,CAAAA;AACrC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;QAEA,OAAOI,KAAAA,CAAMQ,KAAK,CAAA,CAAA,IAAM,IAAA,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA;AACF,CAAA;;"}
1
+ {"version":3,"file":"planner.service.js","sources":["../src/cli/services/planner.service.ts"],"sourcesContent":["import type { Job$ } from '@jujulego/tasks';\nimport { asyncScope$, inject$ } from '@kyrielle/injector';\nimport { withLabel } from '@kyrielle/logger';\nimport { var$ } from 'kyrielle';\nimport { ConfigService } from '../../config/config.service.js';\nimport { CWD, LOGGER } from '../../tokens.js';\nimport { instrument } from '../../utils/sentry.js';\nimport { planParser } from '../parser.js';\n\nexport class PlannerService {\n // Attributes\n private readonly _logger = inject$(LOGGER).child(withLabel('planner'));\n\n // Methods\n /**\n * Returns a task set if any task should be run by given command.\n * Tasks that do not execute tasks will return `null`\n */\n @instrument('PlannerService.plan')\n async plan(args: string[], cwd: string): Promise<Job$ | null> {\n this._logger.debug(`interpreting jill ${args.join(' ')}`);\n\n const argv = args.map(arg => arg.replace(/^[\"'](.+)[\"']$/, '$1'));\n const job$ = var$<Job$ | null>(null);\n\n await asyncScope$(async () => {\n asyncScope$().set(CWD, cwd);\n asyncScope$().set(ConfigService, new ConfigService()); // <= injects an empty ConfigService, forcing config discovery\n\n await planParser(job$).parseAsync(argv);\n });\n\n return job$.defer() ?? null;\n }\n}\n"],"names":["instrument","PlannerService","plan","_logger","inject$","LOGGER","child","withLabel","args","cwd","debug","join","argv","map","arg","replace","job$","var$","asyncScope$","set","CWD","ConfigService","planParser","parseAsync","defer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkBGA,UAAAA,CAAW,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA,CAAA;AATP,KAAA,CAAMC,cAAAA,CAAAA,CAAAA;;;;;;AAULC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,IAAAA,CAAAA;;;;;AARWC,CAAAA,CAAAA,CAAAA,CAAAA,OAAAA,CAAAA,CAAAA,CAAAA,CAAAA,UAAAA,CAAAA,IAAAA,CAAAA,EAAUC,MAAAA,CAAAA,CAAQC,MAAAA,CAAAA,CAAQC,KAAK,CAACC,UAAU,CAAA,OAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;AAG3D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;AAGC,CAAA,CAAA,CAAA,CAAA,CAAA,CACD,MACML,IAAAA,CAAKM,IAAc,CAAA,CAAEC,GAAW,CAAA,CAAwB,CAAA;QAC5D,IAAI,CAACN,OAAO,CAACO,KAAK,CAAC,CAAC,YAAA,CAAA,IAAA,CAAkB,CAAA,CAAEF,IAAAA,CAAKG,IAAI,CAAC,GAAA,CAAA,CAAA,CAAM,CAAA,CAAA;QAExD,MAAMC,IAAAA,CAAAA,CAAAA,CAAOJ,KAAKK,GAAG,CAACC,CAAAA,GAAAA,CAAAA,CAAAA,CAAOA,GAAAA,CAAIC,OAAO,CAAC,gBAAA,CAAA,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,MAAMC,GAAAA,IAAOC,GAAAA,CAAAA,CAAkB,IAAA,CAAA,CAAA;AAE/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,KAAA,CAAMC,UAAAA,CAAAA,CAAY,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;YAChBA,UAAAA,CAAAA,EAAAA,CAAcC,GAAG,CAACC,GAAAA,CAAAA,CAAKX,GAAAA,CAAAA,CAAAA;AACvBS,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,UAAAA,CAAAA,CAAAA,CAAAA,CAAcC,GAAG,CAACE,aAAAA,CAAAA,CAAe,GAAA,CAAIA;YAErC,KAAA,CAAMC,UAAAA,CAAWN,GAAAA,CAAAA,CAAAA,CAAMO,UAAU,CAACX,IAAAA,CAAAA,CAAAA;AACpC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;QAEA,OAAOI,GAAAA,CAAAA,CAAKQ,KAAK,CAAA,CAAA,IAAM,IAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA;AACF,CAAA;;"}
package/dist/tree.ink.js CHANGED
@@ -1,4 +1,4 @@
1
- ;{try{(function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5263783d-24d8-48ec-9f10-f854a52cb47d",e._sentryDebugIdIdentifier="sentry-dbid-5263783d-24d8-48ec-9f10-f854a52cb47d");})();}catch(e){}};!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"3.0.0-alpha.7"};}catch(e){}}();import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
1
+ ;{try{(function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="eab80272-37f0-40f5-8924-f3479344cb8f",e._sentryDebugIdIdentifier="sentry-dbid-eab80272-37f0-40f5-8924-f3479344cb8f");})();}catch(e){}};!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"3.0.0-alpha.8"};}catch(e){}}();import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { var$, once$, pipe$, filter$, source$, waitFor$ } from 'kyrielle';
3
3
  import { Text, Newline } from 'ink';
4
4
  import Spinner from 'ink-spinner';