@jujulego/jill 3.0.8 → 3.0.9
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/dist/flat-job-plan.js +1 -1
- package/dist/flat-job-tree.js +1 -1
- package/dist/index.js +1 -1
- package/dist/inked.js +3312 -2635
- package/dist/inked.js.map +1 -1
- package/dist/instrument.js +1 -1
- package/dist/job-command-execute.ink.js +81 -79
- package/dist/job-command-execute.ink.js.map +1 -1
- package/dist/job-plan.js +1 -1
- package/dist/job-plan.json.js +1 -1
- package/dist/list.ink.js +1 -2
- package/dist/list.ink.js.map +1 -1
- package/dist/main.js +1125 -2700
- package/dist/main.js.map +1 -1
- package/dist/planner.service.js +1 -1
- package/dist/tree.ink.js +1 -2
- package/dist/tree.ink.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +16 -16
package/dist/instrument.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"jill@3.0.
|
|
1
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"jill@3.0.9"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="69d627b0-a502-4990-affa-044c26cd58fb",e._sentryDebugIdIdentifier="sentry-dbid-69d627b0-a502-4990-affa-044c26cd58fb");}catch(e){}}();import { init } from '@sentry/node';
|
|
2
2
|
|
|
3
3
|
init({
|
|
4
4
|
dsn: 'https://53e6d10c16975ebd025175d9836d039b@o4508229080055808.ingest.de.sentry.io/4509876546895952',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"jill@3.0.
|
|
1
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"jill@3.0.9"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9d8fa87a-70e8-4b1f-a4f7-a813d8fa7042",e._sentryDebugIdIdentifier="sentry-dbid-9d8fa87a-70e8-4b1f-a4f7-a813d8fa7042");}catch(e){}}();import { r as reactExports, S as StdinContext, p as parseKeypress, n as nonAlphanumericKeys, a as reconciler, b as StdoutContext, j as jsxRuntimeExports, T as Text, B as Box, i as inked } from './inked.js';
|
|
2
2
|
import process from 'node:process';
|
|
3
3
|
import 'node:stream';
|
|
4
4
|
import { createHash } from 'node:crypto';
|
|
@@ -14,7 +14,6 @@ import 'node:tty';
|
|
|
14
14
|
import 'node:os';
|
|
15
15
|
import 'node:events';
|
|
16
16
|
import 'module';
|
|
17
|
-
import 'node:buffer';
|
|
18
17
|
import 'yargs/helpers';
|
|
19
18
|
import 'node:path';
|
|
20
19
|
import '@swc/helpers/_/_apply_decs_2203_r';
|
|
@@ -193,11 +192,13 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
193
192
|
}
|
|
194
193
|
|
|
195
194
|
/**
|
|
196
|
-
|
|
195
|
+
A React hook that returns the stdin stream and stdin-related utilities.
|
|
197
196
|
*/ const useStdin = ()=>reactExports.useContext(StdinContext);
|
|
197
|
+
const useStdinContext = ()=>reactExports.useContext(StdinContext);
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
|
-
|
|
200
|
+
A React hook that returns `void` and handles user input.
|
|
201
|
+
It's a more convenient alternative to using `StdinContext` and listening for `data` events. The callback you pass to `useInput` is called for each character when the user enters any input. However, if the user pastes text and it's more than one character, the callback will be called only once, and the whole string will be passed as `input`.
|
|
201
202
|
|
|
202
203
|
```
|
|
203
204
|
import {useInput} from 'ink';
|
|
@@ -218,7 +219,7 @@ const UserInput = () => {
|
|
|
218
219
|
```
|
|
219
220
|
*/ const useInput = (inputHandler, options = {})=>{
|
|
220
221
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
221
|
-
const {
|
|
222
|
+
const { setRawMode, internal_exitOnCtrlC, internal_eventEmitter } = useStdinContext();
|
|
222
223
|
reactExports.useEffect(()=>{
|
|
223
224
|
if (options.isActive === false) {
|
|
224
225
|
return;
|
|
@@ -231,92 +232,93 @@ const UserInput = () => {
|
|
|
231
232
|
options.isActive,
|
|
232
233
|
setRawMode
|
|
233
234
|
]);
|
|
234
|
-
reactExports.
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
// Use text-as-codepoints field for printable keys (needed when
|
|
271
|
-
// reportAllKeysAsEscapeCodes flag is enabled), suppress non-printable
|
|
272
|
-
if (keypress.isPrintable) {
|
|
273
|
-
input = keypress.text ?? keypress.name;
|
|
274
|
-
} else if (keypress.ctrl && keypress.name.length === 1) {
|
|
275
|
-
// Ctrl+letter via codepoint 1-26 form: not printable text, but
|
|
276
|
-
// the letter name must flow through so handlers (e.g. exitOnCtrlC
|
|
277
|
-
// checking `input === 'c' && key.ctrl`) still work.
|
|
278
|
-
input = keypress.name;
|
|
279
|
-
} else {
|
|
280
|
-
input = '';
|
|
281
|
-
}
|
|
282
|
-
} else if (keypress.ctrl) {
|
|
235
|
+
const handleData = reactExports.useEffectEvent((data)=>{
|
|
236
|
+
const keypress = parseKeypress(data);
|
|
237
|
+
const key = {
|
|
238
|
+
upArrow: keypress.name === 'up',
|
|
239
|
+
downArrow: keypress.name === 'down',
|
|
240
|
+
leftArrow: keypress.name === 'left',
|
|
241
|
+
rightArrow: keypress.name === 'right',
|
|
242
|
+
pageDown: keypress.name === 'pagedown',
|
|
243
|
+
pageUp: keypress.name === 'pageup',
|
|
244
|
+
home: keypress.name === 'home',
|
|
245
|
+
end: keypress.name === 'end',
|
|
246
|
+
return: keypress.name === 'return',
|
|
247
|
+
escape: keypress.name === 'escape',
|
|
248
|
+
ctrl: keypress.ctrl,
|
|
249
|
+
shift: keypress.shift,
|
|
250
|
+
tab: keypress.name === 'tab',
|
|
251
|
+
backspace: keypress.name === 'backspace',
|
|
252
|
+
delete: keypress.name === 'delete',
|
|
253
|
+
meta: keypress.meta,
|
|
254
|
+
// Kitty keyboard protocol modifiers
|
|
255
|
+
super: keypress.super ?? false,
|
|
256
|
+
hyper: keypress.hyper ?? false,
|
|
257
|
+
capsLock: keypress.capsLock ?? false,
|
|
258
|
+
numLock: keypress.numLock ?? false,
|
|
259
|
+
eventType: keypress.eventType
|
|
260
|
+
};
|
|
261
|
+
let input;
|
|
262
|
+
if (keypress.isKittyProtocol) {
|
|
263
|
+
// Use text-as-codepoints field for printable keys (needed when
|
|
264
|
+
// reportAllKeysAsEscapeCodes flag is enabled), suppress non-printable
|
|
265
|
+
if (keypress.isPrintable) {
|
|
266
|
+
input = keypress.text ?? keypress.name;
|
|
267
|
+
} else if (keypress.ctrl && keypress.name.length === 1) {
|
|
268
|
+
// Ctrl+letter via codepoint 1-26 form: not printable text, but
|
|
269
|
+
// the letter name must flow through so handlers (e.g. exitOnCtrlC
|
|
270
|
+
// checking `input === 'c' && key.ctrl`) still work.
|
|
283
271
|
input = keypress.name;
|
|
284
272
|
} else {
|
|
285
|
-
input = keypress.sequence;
|
|
286
|
-
}
|
|
287
|
-
if (!keypress.isKittyProtocol && nonAlphanumericKeys.includes(keypress.name)) {
|
|
288
273
|
input = '';
|
|
289
274
|
}
|
|
290
|
-
|
|
291
|
-
//
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}
|
|
306
|
-
|
|
275
|
+
} else if (keypress.ctrl) {
|
|
276
|
+
// Keypress.name is guaranteed non-undefined by parseKeypress,
|
|
277
|
+
// but guard defensively since a TypeError here would crash the
|
|
278
|
+
// entire Ink app (see https://github.com/vadimdemedes/ink/issues/901).
|
|
279
|
+
input = keypress.name ?? '';
|
|
280
|
+
} else {
|
|
281
|
+
input = keypress.sequence;
|
|
282
|
+
}
|
|
283
|
+
if (!keypress.isKittyProtocol && nonAlphanumericKeys.includes(keypress.name)) {
|
|
284
|
+
input = '';
|
|
285
|
+
}
|
|
286
|
+
// Strip escape prefix from broken/incomplete sequences that
|
|
287
|
+
// parseKeypress did not fully resolve (e.g. a flushed "\u001B[").
|
|
288
|
+
if (input.startsWith('\u001B')) {
|
|
289
|
+
input = input.slice(1);
|
|
290
|
+
}
|
|
291
|
+
if (input.length === 1 && /[A-Z]/.test(input)) {
|
|
292
|
+
key.shift = true;
|
|
293
|
+
}
|
|
294
|
+
// If app is supposed to exit on Ctrl+C, skip input listeners.
|
|
295
|
+
if (input === 'c' && key.ctrl && internal_exitOnCtrlC) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
// Use discreteUpdates to assign DiscreteEventPriority to state
|
|
299
|
+
// updates from keyboard input, ensuring they are processed at the
|
|
300
|
+
// highest priority in concurrent mode.
|
|
301
|
+
// @ts-expect-error Types require 5 arguments (fn, a, b, c, d) but only fn is needed at runtime.
|
|
302
|
+
reconciler.discreteUpdates(()=>{
|
|
303
|
+
inputHandler(input, key);
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
reactExports.useEffect(()=>{
|
|
307
|
+
if (options.isActive === false) {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
internal_eventEmitter.on('input', handleData);
|
|
307
311
|
return ()=>{
|
|
308
|
-
internal_eventEmitter
|
|
312
|
+
internal_eventEmitter.removeListener('input', handleData);
|
|
309
313
|
};
|
|
310
314
|
}, [
|
|
311
315
|
options.isActive,
|
|
312
|
-
|
|
313
|
-
internal_exitOnCtrlC,
|
|
314
|
-
inputHandler
|
|
316
|
+
internal_eventEmitter
|
|
315
317
|
]);
|
|
316
318
|
};
|
|
317
319
|
|
|
318
320
|
/**
|
|
319
|
-
|
|
321
|
+
A React hook that returns the stdout stream where Ink renders your app.
|
|
320
322
|
*/ const useStdout = ()=>reactExports.useContext(StdoutContext);
|
|
321
323
|
|
|
322
324
|
// Hook
|