@moda-ai/cli 1.33.0 → 1.34.1
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 +38 -1
- package/dist/{cli-drabjmaj.js → cli-0h32yvwq.js} +3 -3
- package/dist/{cli-scjxgaba.js → cli-4ycvzfdg.js} +2 -2
- package/dist/{cli-0yv5y2p3.js → cli-8q7jffnj.js} +500 -193
- package/dist/{cli-brwrysxz.js → cli-cagbc7wz.js} +260 -112
- package/dist/{cli-yz99t7n8.js → cli-eggpzt87.js} +1 -1
- package/dist/cli.js +6 -6
- package/dist/{harness-5s22pv38.js → harness-1xj4f0qp.js} +2 -2
- package/dist/{harness-github-actions-zrsd11wv.js → harness-github-actions-xk7n788g.js} +2 -2
- package/dist/{index-3j1xnhxs.js → index-h6gg66n5.js} +5 -5
- package/dist/prompt-source-mcp.js +109 -96
- package/dist/{provision-d242y9qd.js → provision-c5sx3s32.js} +3 -3
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
|
@@ -3,16 +3,19 @@ import {
|
|
|
3
3
|
$stringify,
|
|
4
4
|
callControlAPI,
|
|
5
5
|
callDataAPI,
|
|
6
|
+
inventoryFiles,
|
|
6
7
|
readHarnessSyncState,
|
|
7
8
|
renderDoctorHuman,
|
|
8
9
|
renderStatusHuman,
|
|
10
|
+
require_typescript,
|
|
9
11
|
resolvePromptSource,
|
|
12
|
+
safePromptEvidencePath,
|
|
10
13
|
scanHarness
|
|
11
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-8q7jffnj.js";
|
|
12
15
|
import {
|
|
13
16
|
isAuthSessionValid,
|
|
14
17
|
loadAuthSession
|
|
15
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-eggpzt87.js";
|
|
16
19
|
import {
|
|
17
20
|
CliInputError,
|
|
18
21
|
__commonJS,
|
|
@@ -31,9 +34,9 @@ import {
|
|
|
31
34
|
resolveTenantId,
|
|
32
35
|
secretFilePathFromRef,
|
|
33
36
|
validateConfig
|
|
34
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-0h32yvwq.js";
|
|
35
38
|
|
|
36
|
-
//
|
|
39
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
37
40
|
var require_array = __commonJS((exports) => {
|
|
38
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
42
|
exports.splitWhen = exports.flatten = undefined;
|
|
@@ -57,7 +60,7 @@ var require_array = __commonJS((exports) => {
|
|
|
57
60
|
exports.splitWhen = splitWhen;
|
|
58
61
|
});
|
|
59
62
|
|
|
60
|
-
//
|
|
63
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
61
64
|
var require_errno = __commonJS((exports) => {
|
|
62
65
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
66
|
exports.isEnoentCodeError = undefined;
|
|
@@ -67,7 +70,7 @@ var require_errno = __commonJS((exports) => {
|
|
|
67
70
|
exports.isEnoentCodeError = isEnoentCodeError;
|
|
68
71
|
});
|
|
69
72
|
|
|
70
|
-
//
|
|
73
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
71
74
|
var require_fs = __commonJS((exports) => {
|
|
72
75
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73
76
|
exports.createDirentFromStats = undefined;
|
|
@@ -90,7 +93,7 @@ var require_fs = __commonJS((exports) => {
|
|
|
90
93
|
exports.createDirentFromStats = createDirentFromStats;
|
|
91
94
|
});
|
|
92
95
|
|
|
93
|
-
//
|
|
96
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
94
97
|
var require_path = __commonJS((exports) => {
|
|
95
98
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
96
99
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = undefined;
|
|
@@ -140,7 +143,7 @@ var require_path = __commonJS((exports) => {
|
|
|
140
143
|
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
141
144
|
});
|
|
142
145
|
|
|
143
|
-
//
|
|
146
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
144
147
|
var require_is_extglob = __commonJS((exports, module) => {
|
|
145
148
|
/*!
|
|
146
149
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
@@ -162,7 +165,7 @@ var require_is_extglob = __commonJS((exports, module) => {
|
|
|
162
165
|
};
|
|
163
166
|
});
|
|
164
167
|
|
|
165
|
-
//
|
|
168
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
166
169
|
var require_is_glob = __commonJS((exports, module) => {
|
|
167
170
|
/*!
|
|
168
171
|
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
@@ -297,7 +300,7 @@ var require_is_glob = __commonJS((exports, module) => {
|
|
|
297
300
|
};
|
|
298
301
|
});
|
|
299
302
|
|
|
300
|
-
//
|
|
303
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js
|
|
301
304
|
var require_glob_parent = __commonJS((exports, module) => {
|
|
302
305
|
var isGlob = require_is_glob();
|
|
303
306
|
var pathPosixDirname = __require("path").posix.dirname;
|
|
@@ -323,7 +326,7 @@ var require_glob_parent = __commonJS((exports, module) => {
|
|
|
323
326
|
};
|
|
324
327
|
});
|
|
325
328
|
|
|
326
|
-
//
|
|
329
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
327
330
|
var require_utils = __commonJS((exports) => {
|
|
328
331
|
exports.isInteger = (num) => {
|
|
329
332
|
if (typeof num === "number") {
|
|
@@ -410,7 +413,7 @@ var require_utils = __commonJS((exports) => {
|
|
|
410
413
|
};
|
|
411
414
|
});
|
|
412
415
|
|
|
413
|
-
//
|
|
416
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
414
417
|
var require_stringify = __commonJS((exports, module) => {
|
|
415
418
|
var utils = require_utils();
|
|
416
419
|
module.exports = (ast, options = {}) => {
|
|
@@ -438,7 +441,7 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
438
441
|
};
|
|
439
442
|
});
|
|
440
443
|
|
|
441
|
-
//
|
|
444
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js
|
|
442
445
|
var require_is_number = __commonJS((exports, module) => {
|
|
443
446
|
/*!
|
|
444
447
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
@@ -457,7 +460,7 @@ var require_is_number = __commonJS((exports, module) => {
|
|
|
457
460
|
};
|
|
458
461
|
});
|
|
459
462
|
|
|
460
|
-
//
|
|
463
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
461
464
|
var require_to_regex_range = __commonJS((exports, module) => {
|
|
462
465
|
/*!
|
|
463
466
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
@@ -672,7 +675,7 @@ var require_to_regex_range = __commonJS((exports, module) => {
|
|
|
672
675
|
module.exports = toRegexRange;
|
|
673
676
|
});
|
|
674
677
|
|
|
675
|
-
//
|
|
678
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
676
679
|
var require_fill_range = __commonJS((exports, module) => {
|
|
677
680
|
/*!
|
|
678
681
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
@@ -881,7 +884,7 @@ var require_fill_range = __commonJS((exports, module) => {
|
|
|
881
884
|
module.exports = fill;
|
|
882
885
|
});
|
|
883
886
|
|
|
884
|
-
//
|
|
887
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
885
888
|
var require_compile = __commonJS((exports, module) => {
|
|
886
889
|
var fill = require_fill_range();
|
|
887
890
|
var utils = require_utils();
|
|
@@ -930,7 +933,7 @@ var require_compile = __commonJS((exports, module) => {
|
|
|
930
933
|
module.exports = compile;
|
|
931
934
|
});
|
|
932
935
|
|
|
933
|
-
//
|
|
936
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
934
937
|
var require_expand = __commonJS((exports, module) => {
|
|
935
938
|
var fill = require_fill_range();
|
|
936
939
|
var stringify = require_stringify();
|
|
@@ -1024,7 +1027,7 @@ var require_expand = __commonJS((exports, module) => {
|
|
|
1024
1027
|
module.exports = expand;
|
|
1025
1028
|
});
|
|
1026
1029
|
|
|
1027
|
-
//
|
|
1030
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
1028
1031
|
var require_constants = __commonJS((exports, module) => {
|
|
1029
1032
|
module.exports = {
|
|
1030
1033
|
MAX_LENGTH: 1e4,
|
|
@@ -1076,7 +1079,7 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
1076
1079
|
};
|
|
1077
1080
|
});
|
|
1078
1081
|
|
|
1079
|
-
//
|
|
1082
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
1080
1083
|
var require_parse = __commonJS((exports, module) => {
|
|
1081
1084
|
var stringify = require_stringify();
|
|
1082
1085
|
var {
|
|
@@ -1303,7 +1306,7 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
1303
1306
|
module.exports = parse;
|
|
1304
1307
|
});
|
|
1305
1308
|
|
|
1306
|
-
//
|
|
1309
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/braces@3.0.3/node_modules/braces/index.js
|
|
1307
1310
|
var require_braces = __commonJS((exports, module) => {
|
|
1308
1311
|
var stringify = require_stringify();
|
|
1309
1312
|
var compile = require_compile();
|
|
@@ -1363,7 +1366,7 @@ var require_braces = __commonJS((exports, module) => {
|
|
|
1363
1366
|
module.exports = braces;
|
|
1364
1367
|
});
|
|
1365
1368
|
|
|
1366
|
-
//
|
|
1369
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
|
|
1367
1370
|
var require_constants2 = __commonJS((exports, module) => {
|
|
1368
1371
|
var path = __require("path");
|
|
1369
1372
|
var WIN_SLASH = "\\\\/";
|
|
@@ -1507,7 +1510,7 @@ var require_constants2 = __commonJS((exports, module) => {
|
|
|
1507
1510
|
};
|
|
1508
1511
|
});
|
|
1509
1512
|
|
|
1510
|
-
//
|
|
1513
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
|
|
1511
1514
|
var require_utils2 = __commonJS((exports) => {
|
|
1512
1515
|
var path = __require("path");
|
|
1513
1516
|
var win32 = process.platform === "win32";
|
|
@@ -1567,7 +1570,7 @@ var require_utils2 = __commonJS((exports) => {
|
|
|
1567
1570
|
};
|
|
1568
1571
|
});
|
|
1569
1572
|
|
|
1570
|
-
//
|
|
1573
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
|
|
1571
1574
|
var require_scan = __commonJS((exports, module) => {
|
|
1572
1575
|
var utils = require_utils2();
|
|
1573
1576
|
var {
|
|
@@ -1882,7 +1885,7 @@ var require_scan = __commonJS((exports, module) => {
|
|
|
1882
1885
|
module.exports = scan;
|
|
1883
1886
|
});
|
|
1884
1887
|
|
|
1885
|
-
//
|
|
1888
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
|
|
1886
1889
|
var require_parse2 = __commonJS((exports, module) => {
|
|
1887
1890
|
var constants = require_constants2();
|
|
1888
1891
|
var utils = require_utils2();
|
|
@@ -2889,7 +2892,7 @@ var require_parse2 = __commonJS((exports, module) => {
|
|
|
2889
2892
|
module.exports = parse;
|
|
2890
2893
|
});
|
|
2891
2894
|
|
|
2892
|
-
//
|
|
2895
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
|
|
2893
2896
|
var require_picomatch = __commonJS((exports, module) => {
|
|
2894
2897
|
var path = __require("path");
|
|
2895
2898
|
var scan = require_scan();
|
|
@@ -3030,7 +3033,7 @@ var require_picomatch = __commonJS((exports, module) => {
|
|
|
3030
3033
|
module.exports = picomatch;
|
|
3031
3034
|
});
|
|
3032
3035
|
|
|
3033
|
-
//
|
|
3036
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
3034
3037
|
var require_micromatch = __commonJS((exports, module) => {
|
|
3035
3038
|
var util = __require("util");
|
|
3036
3039
|
var braces = require_braces();
|
|
@@ -3194,7 +3197,7 @@ var require_micromatch = __commonJS((exports, module) => {
|
|
|
3194
3197
|
module.exports = micromatch;
|
|
3195
3198
|
});
|
|
3196
3199
|
|
|
3197
|
-
//
|
|
3200
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
3198
3201
|
var require_pattern = __commonJS((exports) => {
|
|
3199
3202
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3200
3203
|
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = undefined;
|
|
@@ -3356,7 +3359,7 @@ var require_pattern = __commonJS((exports) => {
|
|
|
3356
3359
|
exports.isAbsolute = isAbsolute;
|
|
3357
3360
|
});
|
|
3358
3361
|
|
|
3359
|
-
//
|
|
3362
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/merge2@1.4.1/node_modules/merge2/index.js
|
|
3360
3363
|
var require_merge2 = __commonJS((exports, module) => {
|
|
3361
3364
|
var Stream = __require("stream");
|
|
3362
3365
|
var PassThrough = Stream.PassThrough;
|
|
@@ -3472,7 +3475,7 @@ var require_merge2 = __commonJS((exports, module) => {
|
|
|
3472
3475
|
}
|
|
3473
3476
|
});
|
|
3474
3477
|
|
|
3475
|
-
//
|
|
3478
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
3476
3479
|
var require_stream = __commonJS((exports) => {
|
|
3477
3480
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3478
3481
|
exports.merge = undefined;
|
|
@@ -3492,7 +3495,7 @@ var require_stream = __commonJS((exports) => {
|
|
|
3492
3495
|
}
|
|
3493
3496
|
});
|
|
3494
3497
|
|
|
3495
|
-
//
|
|
3498
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
3496
3499
|
var require_string = __commonJS((exports) => {
|
|
3497
3500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3498
3501
|
exports.isEmpty = exports.isString = undefined;
|
|
@@ -3506,7 +3509,7 @@ var require_string = __commonJS((exports) => {
|
|
|
3506
3509
|
exports.isEmpty = isEmpty;
|
|
3507
3510
|
});
|
|
3508
3511
|
|
|
3509
|
-
//
|
|
3512
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
3510
3513
|
var require_utils3 = __commonJS((exports) => {
|
|
3511
3514
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3512
3515
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = undefined;
|
|
@@ -3526,7 +3529,7 @@ var require_utils3 = __commonJS((exports) => {
|
|
|
3526
3529
|
exports.string = string;
|
|
3527
3530
|
});
|
|
3528
3531
|
|
|
3529
|
-
//
|
|
3532
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
3530
3533
|
var require_tasks = __commonJS((exports) => {
|
|
3531
3534
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3532
3535
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = undefined;
|
|
@@ -3609,7 +3612,7 @@ var require_tasks = __commonJS((exports) => {
|
|
|
3609
3612
|
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
3610
3613
|
});
|
|
3611
3614
|
|
|
3612
|
-
//
|
|
3615
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
3613
3616
|
var require_async = __commonJS((exports) => {
|
|
3614
3617
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3615
3618
|
exports.read = undefined;
|
|
@@ -3648,7 +3651,7 @@ var require_async = __commonJS((exports) => {
|
|
|
3648
3651
|
}
|
|
3649
3652
|
});
|
|
3650
3653
|
|
|
3651
|
-
//
|
|
3654
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
3652
3655
|
var require_sync = __commonJS((exports) => {
|
|
3653
3656
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3654
3657
|
exports.read = undefined;
|
|
@@ -3673,7 +3676,7 @@ var require_sync = __commonJS((exports) => {
|
|
|
3673
3676
|
exports.read = read;
|
|
3674
3677
|
});
|
|
3675
3678
|
|
|
3676
|
-
//
|
|
3679
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js
|
|
3677
3680
|
var require_fs2 = __commonJS((exports) => {
|
|
3678
3681
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3679
3682
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = undefined;
|
|
@@ -3693,7 +3696,7 @@ var require_fs2 = __commonJS((exports) => {
|
|
|
3693
3696
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
3694
3697
|
});
|
|
3695
3698
|
|
|
3696
|
-
//
|
|
3699
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
|
|
3697
3700
|
var require_settings = __commonJS((exports) => {
|
|
3698
3701
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3699
3702
|
var fs = require_fs2();
|
|
@@ -3713,7 +3716,7 @@ var require_settings = __commonJS((exports) => {
|
|
|
3713
3716
|
exports.default = Settings;
|
|
3714
3717
|
});
|
|
3715
3718
|
|
|
3716
|
-
//
|
|
3719
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
|
|
3717
3720
|
var require_out = __commonJS((exports) => {
|
|
3718
3721
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3719
3722
|
exports.statSync = exports.stat = exports.Settings = undefined;
|
|
@@ -3742,7 +3745,7 @@ var require_out = __commonJS((exports) => {
|
|
|
3742
3745
|
}
|
|
3743
3746
|
});
|
|
3744
3747
|
|
|
3745
|
-
//
|
|
3748
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
3746
3749
|
var require_queue_microtask = __commonJS((exports, module) => {
|
|
3747
3750
|
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3748
3751
|
var promise;
|
|
@@ -3751,7 +3754,7 @@ var require_queue_microtask = __commonJS((exports, module) => {
|
|
|
3751
3754
|
}, 0));
|
|
3752
3755
|
});
|
|
3753
3756
|
|
|
3754
|
-
//
|
|
3757
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
3755
3758
|
var require_run_parallel = __commonJS((exports, module) => {
|
|
3756
3759
|
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3757
3760
|
module.exports = runParallel;
|
|
@@ -3803,7 +3806,7 @@ var require_run_parallel = __commonJS((exports, module) => {
|
|
|
3803
3806
|
}
|
|
3804
3807
|
});
|
|
3805
3808
|
|
|
3806
|
-
//
|
|
3809
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
3807
3810
|
var require_constants3 = __commonJS((exports) => {
|
|
3808
3811
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3809
3812
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = undefined;
|
|
@@ -3820,7 +3823,7 @@ var require_constants3 = __commonJS((exports) => {
|
|
|
3820
3823
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
|
|
3821
3824
|
});
|
|
3822
3825
|
|
|
3823
|
-
//
|
|
3826
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
3824
3827
|
var require_fs3 = __commonJS((exports) => {
|
|
3825
3828
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3826
3829
|
exports.createDirentFromStats = undefined;
|
|
@@ -3843,7 +3846,7 @@ var require_fs3 = __commonJS((exports) => {
|
|
|
3843
3846
|
exports.createDirentFromStats = createDirentFromStats;
|
|
3844
3847
|
});
|
|
3845
3848
|
|
|
3846
|
-
//
|
|
3849
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
3847
3850
|
var require_utils4 = __commonJS((exports) => {
|
|
3848
3851
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3849
3852
|
exports.fs = undefined;
|
|
@@ -3851,7 +3854,7 @@ var require_utils4 = __commonJS((exports) => {
|
|
|
3851
3854
|
exports.fs = fs;
|
|
3852
3855
|
});
|
|
3853
3856
|
|
|
3854
|
-
//
|
|
3857
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
3855
3858
|
var require_common = __commonJS((exports) => {
|
|
3856
3859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3857
3860
|
exports.joinPathSegments = undefined;
|
|
@@ -3864,7 +3867,7 @@ var require_common = __commonJS((exports) => {
|
|
|
3864
3867
|
exports.joinPathSegments = joinPathSegments;
|
|
3865
3868
|
});
|
|
3866
3869
|
|
|
3867
|
-
//
|
|
3870
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
3868
3871
|
var require_async2 = __commonJS((exports) => {
|
|
3869
3872
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3870
3873
|
exports.readdir = exports.readdirWithFileTypes = exports.read = undefined;
|
|
@@ -3971,7 +3974,7 @@ var require_async2 = __commonJS((exports) => {
|
|
|
3971
3974
|
}
|
|
3972
3975
|
});
|
|
3973
3976
|
|
|
3974
|
-
//
|
|
3977
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
|
|
3975
3978
|
var require_sync2 = __commonJS((exports) => {
|
|
3976
3979
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3977
3980
|
exports.readdir = exports.readdirWithFileTypes = exports.read = undefined;
|
|
@@ -4027,7 +4030,7 @@ var require_sync2 = __commonJS((exports) => {
|
|
|
4027
4030
|
exports.readdir = readdir;
|
|
4028
4031
|
});
|
|
4029
4032
|
|
|
4030
|
-
//
|
|
4033
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js
|
|
4031
4034
|
var require_fs4 = __commonJS((exports) => {
|
|
4032
4035
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4033
4036
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = undefined;
|
|
@@ -4049,7 +4052,7 @@ var require_fs4 = __commonJS((exports) => {
|
|
|
4049
4052
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
4050
4053
|
});
|
|
4051
4054
|
|
|
4052
|
-
//
|
|
4055
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
|
|
4053
4056
|
var require_settings2 = __commonJS((exports) => {
|
|
4054
4057
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4055
4058
|
var path = __require("path");
|
|
@@ -4077,7 +4080,7 @@ var require_settings2 = __commonJS((exports) => {
|
|
|
4077
4080
|
exports.default = Settings;
|
|
4078
4081
|
});
|
|
4079
4082
|
|
|
4080
|
-
//
|
|
4083
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
|
|
4081
4084
|
var require_out2 = __commonJS((exports) => {
|
|
4082
4085
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4083
4086
|
exports.Settings = exports.scandirSync = exports.scandir = undefined;
|
|
@@ -4106,7 +4109,7 @@ var require_out2 = __commonJS((exports) => {
|
|
|
4106
4109
|
}
|
|
4107
4110
|
});
|
|
4108
4111
|
|
|
4109
|
-
//
|
|
4112
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/reusify@1.1.0/node_modules/reusify/reusify.js
|
|
4110
4113
|
var require_reusify = __commonJS((exports, module) => {
|
|
4111
4114
|
function reusify(Constructor) {
|
|
4112
4115
|
var head = new Constructor;
|
|
@@ -4134,7 +4137,7 @@ var require_reusify = __commonJS((exports, module) => {
|
|
|
4134
4137
|
module.exports = reusify;
|
|
4135
4138
|
});
|
|
4136
4139
|
|
|
4137
|
-
//
|
|
4140
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fastq@1.20.1/node_modules/fastq/queue.js
|
|
4138
4141
|
var require_queue = __commonJS((exports, module) => {
|
|
4139
4142
|
var reusify = require_reusify();
|
|
4140
4143
|
function fastqueue(context, worker, _concurrency) {
|
|
@@ -4417,7 +4420,7 @@ var require_queue = __commonJS((exports, module) => {
|
|
|
4417
4420
|
module.exports.promise = queueAsPromised;
|
|
4418
4421
|
});
|
|
4419
4422
|
|
|
4420
|
-
//
|
|
4423
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
4421
4424
|
var require_common2 = __commonJS((exports) => {
|
|
4422
4425
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4423
4426
|
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = undefined;
|
|
@@ -4448,7 +4451,7 @@ var require_common2 = __commonJS((exports) => {
|
|
|
4448
4451
|
exports.joinPathSegments = joinPathSegments;
|
|
4449
4452
|
});
|
|
4450
4453
|
|
|
4451
|
-
//
|
|
4454
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js
|
|
4452
4455
|
var require_reader = __commonJS((exports) => {
|
|
4453
4456
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4454
4457
|
var common = require_common2();
|
|
@@ -4463,7 +4466,7 @@ var require_reader = __commonJS((exports) => {
|
|
|
4463
4466
|
exports.default = Reader;
|
|
4464
4467
|
});
|
|
4465
4468
|
|
|
4466
|
-
//
|
|
4469
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js
|
|
4467
4470
|
var require_async3 = __commonJS((exports) => {
|
|
4468
4471
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4469
4472
|
var events_1 = __require("events");
|
|
@@ -4564,7 +4567,7 @@ var require_async3 = __commonJS((exports) => {
|
|
|
4564
4567
|
exports.default = AsyncReader;
|
|
4565
4568
|
});
|
|
4566
4569
|
|
|
4567
|
-
//
|
|
4570
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js
|
|
4568
4571
|
var require_async4 = __commonJS((exports) => {
|
|
4569
4572
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4570
4573
|
var async_1 = require_async3();
|
|
@@ -4598,7 +4601,7 @@ var require_async4 = __commonJS((exports) => {
|
|
|
4598
4601
|
}
|
|
4599
4602
|
});
|
|
4600
4603
|
|
|
4601
|
-
//
|
|
4604
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js
|
|
4602
4605
|
var require_stream2 = __commonJS((exports) => {
|
|
4603
4606
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4604
4607
|
var stream_1 = __require("stream");
|
|
@@ -4636,7 +4639,7 @@ var require_stream2 = __commonJS((exports) => {
|
|
|
4636
4639
|
exports.default = StreamProvider;
|
|
4637
4640
|
});
|
|
4638
4641
|
|
|
4639
|
-
//
|
|
4642
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js
|
|
4640
4643
|
var require_sync3 = __commonJS((exports) => {
|
|
4641
4644
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4642
4645
|
var fsScandir = require_out2();
|
|
@@ -4698,7 +4701,7 @@ var require_sync3 = __commonJS((exports) => {
|
|
|
4698
4701
|
exports.default = SyncReader;
|
|
4699
4702
|
});
|
|
4700
4703
|
|
|
4701
|
-
//
|
|
4704
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js
|
|
4702
4705
|
var require_sync4 = __commonJS((exports) => {
|
|
4703
4706
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4704
4707
|
var sync_1 = require_sync3();
|
|
@@ -4716,7 +4719,7 @@ var require_sync4 = __commonJS((exports) => {
|
|
|
4716
4719
|
exports.default = SyncProvider;
|
|
4717
4720
|
});
|
|
4718
4721
|
|
|
4719
|
-
//
|
|
4722
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
|
|
4720
4723
|
var require_settings3 = __commonJS((exports) => {
|
|
4721
4724
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4722
4725
|
var path = __require("path");
|
|
@@ -4746,7 +4749,7 @@ var require_settings3 = __commonJS((exports) => {
|
|
|
4746
4749
|
exports.default = Settings;
|
|
4747
4750
|
});
|
|
4748
4751
|
|
|
4749
|
-
//
|
|
4752
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
|
|
4750
4753
|
var require_out3 = __commonJS((exports) => {
|
|
4751
4754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4752
4755
|
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = undefined;
|
|
@@ -4783,7 +4786,7 @@ var require_out3 = __commonJS((exports) => {
|
|
|
4783
4786
|
}
|
|
4784
4787
|
});
|
|
4785
4788
|
|
|
4786
|
-
//
|
|
4789
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
4787
4790
|
var require_reader2 = __commonJS((exports) => {
|
|
4788
4791
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4789
4792
|
var path = __require("path");
|
|
@@ -4820,7 +4823,7 @@ var require_reader2 = __commonJS((exports) => {
|
|
|
4820
4823
|
exports.default = Reader;
|
|
4821
4824
|
});
|
|
4822
4825
|
|
|
4823
|
-
//
|
|
4826
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js
|
|
4824
4827
|
var require_stream3 = __commonJS((exports) => {
|
|
4825
4828
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4826
4829
|
var stream_1 = __require("stream");
|
|
@@ -4875,7 +4878,7 @@ var require_stream3 = __commonJS((exports) => {
|
|
|
4875
4878
|
exports.default = ReaderStream;
|
|
4876
4879
|
});
|
|
4877
4880
|
|
|
4878
|
-
//
|
|
4881
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js
|
|
4879
4882
|
var require_async5 = __commonJS((exports) => {
|
|
4880
4883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4881
4884
|
var fsWalk = require_out3();
|
|
@@ -4912,7 +4915,7 @@ var require_async5 = __commonJS((exports) => {
|
|
|
4912
4915
|
exports.default = ReaderAsync;
|
|
4913
4916
|
});
|
|
4914
4917
|
|
|
4915
|
-
//
|
|
4918
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
4916
4919
|
var require_matcher = __commonJS((exports) => {
|
|
4917
4920
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4918
4921
|
var utils = require_utils3();
|
|
@@ -4961,7 +4964,7 @@ var require_matcher = __commonJS((exports) => {
|
|
|
4961
4964
|
exports.default = Matcher;
|
|
4962
4965
|
});
|
|
4963
4966
|
|
|
4964
|
-
//
|
|
4967
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js
|
|
4965
4968
|
var require_partial = __commonJS((exports) => {
|
|
4966
4969
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4967
4970
|
var matcher_1 = require_matcher();
|
|
@@ -4996,7 +4999,7 @@ var require_partial = __commonJS((exports) => {
|
|
|
4996
4999
|
exports.default = PartialMatcher;
|
|
4997
5000
|
});
|
|
4998
5001
|
|
|
4999
|
-
//
|
|
5002
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js
|
|
5000
5003
|
var require_deep = __commonJS((exports) => {
|
|
5001
5004
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5002
5005
|
var utils = require_utils3();
|
|
@@ -5059,7 +5062,7 @@ var require_deep = __commonJS((exports) => {
|
|
|
5059
5062
|
exports.default = DeepFilter;
|
|
5060
5063
|
});
|
|
5061
5064
|
|
|
5062
|
-
//
|
|
5065
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js
|
|
5063
5066
|
var require_entry = __commonJS((exports) => {
|
|
5064
5067
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5065
5068
|
var utils = require_utils3();
|
|
@@ -5145,7 +5148,7 @@ var require_entry = __commonJS((exports) => {
|
|
|
5145
5148
|
exports.default = EntryFilter;
|
|
5146
5149
|
});
|
|
5147
5150
|
|
|
5148
|
-
//
|
|
5151
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js
|
|
5149
5152
|
var require_error = __commonJS((exports) => {
|
|
5150
5153
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5151
5154
|
var utils = require_utils3();
|
|
@@ -5164,7 +5167,7 @@ var require_error = __commonJS((exports) => {
|
|
|
5164
5167
|
exports.default = ErrorFilter;
|
|
5165
5168
|
});
|
|
5166
5169
|
|
|
5167
|
-
//
|
|
5170
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js
|
|
5168
5171
|
var require_entry2 = __commonJS((exports) => {
|
|
5169
5172
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5170
5173
|
var utils = require_utils3();
|
|
@@ -5194,7 +5197,7 @@ var require_entry2 = __commonJS((exports) => {
|
|
|
5194
5197
|
exports.default = EntryTransformer;
|
|
5195
5198
|
});
|
|
5196
5199
|
|
|
5197
|
-
//
|
|
5200
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
5198
5201
|
var require_provider = __commonJS((exports) => {
|
|
5199
5202
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5200
5203
|
var path = __require("path");
|
|
@@ -5246,7 +5249,7 @@ var require_provider = __commonJS((exports) => {
|
|
|
5246
5249
|
exports.default = Provider;
|
|
5247
5250
|
});
|
|
5248
5251
|
|
|
5249
|
-
//
|
|
5252
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js
|
|
5250
5253
|
var require_async6 = __commonJS((exports) => {
|
|
5251
5254
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5252
5255
|
var async_1 = require_async5();
|
|
@@ -5273,7 +5276,7 @@ var require_async6 = __commonJS((exports) => {
|
|
|
5273
5276
|
exports.default = ProviderAsync;
|
|
5274
5277
|
});
|
|
5275
5278
|
|
|
5276
|
-
//
|
|
5279
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js
|
|
5277
5280
|
var require_stream4 = __commonJS((exports) => {
|
|
5278
5281
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5279
5282
|
var stream_1 = __require("stream");
|
|
@@ -5304,7 +5307,7 @@ var require_stream4 = __commonJS((exports) => {
|
|
|
5304
5307
|
exports.default = ProviderStream;
|
|
5305
5308
|
});
|
|
5306
5309
|
|
|
5307
|
-
//
|
|
5310
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js
|
|
5308
5311
|
var require_sync5 = __commonJS((exports) => {
|
|
5309
5312
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5310
5313
|
var fsStat = require_out();
|
|
@@ -5350,7 +5353,7 @@ var require_sync5 = __commonJS((exports) => {
|
|
|
5350
5353
|
exports.default = ReaderSync;
|
|
5351
5354
|
});
|
|
5352
5355
|
|
|
5353
|
-
//
|
|
5356
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js
|
|
5354
5357
|
var require_sync6 = __commonJS((exports) => {
|
|
5355
5358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5356
5359
|
var sync_1 = require_sync5();
|
|
@@ -5377,7 +5380,7 @@ var require_sync6 = __commonJS((exports) => {
|
|
|
5377
5380
|
exports.default = ProviderSync;
|
|
5378
5381
|
});
|
|
5379
5382
|
|
|
5380
|
-
//
|
|
5383
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js
|
|
5381
5384
|
var require_settings4 = __commonJS((exports) => {
|
|
5382
5385
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5383
5386
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = undefined;
|
|
@@ -5435,7 +5438,7 @@ var require_settings4 = __commonJS((exports) => {
|
|
|
5435
5438
|
exports.default = Settings;
|
|
5436
5439
|
});
|
|
5437
5440
|
|
|
5438
|
-
//
|
|
5441
|
+
// ../../../ModaObservability-prompt-sync/node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/index.js
|
|
5439
5442
|
var require_out4 = __commonJS((exports, module) => {
|
|
5440
5443
|
var taskManager = require_tasks();
|
|
5441
5444
|
var async_1 = require_async6();
|
|
@@ -5547,7 +5550,7 @@ import {
|
|
|
5547
5550
|
rmSync,
|
|
5548
5551
|
writeFileSync as writeFileSync2
|
|
5549
5552
|
} from "node:fs";
|
|
5550
|
-
import { dirname, isAbsolute as isAbsolute3, join, relative, resolve as
|
|
5553
|
+
import { dirname as dirname2, isAbsolute as isAbsolute3, join, relative, resolve as resolve4 } from "node:path";
|
|
5551
5554
|
|
|
5552
5555
|
// src/prompts-ab.ts
|
|
5553
5556
|
import { existsSync } from "node:fs";
|
|
@@ -6030,6 +6033,131 @@ function parsePositiveInt2(raw, fallback, max) {
|
|
|
6030
6033
|
return Math.min(n, max);
|
|
6031
6034
|
}
|
|
6032
6035
|
|
|
6036
|
+
// src/prompt-attribution.ts
|
|
6037
|
+
var import_typescript = __toESM(require_typescript(), 1);
|
|
6038
|
+
import { dirname, extname, resolve as resolve3 } from "node:path";
|
|
6039
|
+
function checkPromptAttribution(rootDir, keys) {
|
|
6040
|
+
const result = { references: [], coverage: "partial", issues: [] };
|
|
6041
|
+
const known = new Set(keys), lock = resolve3(rootDir, ".moda/prompts.lock.json");
|
|
6042
|
+
let files;
|
|
6043
|
+
try {
|
|
6044
|
+
files = inventoryFiles(rootDir, []);
|
|
6045
|
+
} catch (error) {
|
|
6046
|
+
result.issues.push({ path: ".", reason: `Attribution scan incomplete: ${error instanceof Error ? error.message : String(error)}` });
|
|
6047
|
+
return result;
|
|
6048
|
+
}
|
|
6049
|
+
for (const file of files) {
|
|
6050
|
+
if (![".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs"].includes(extname(file.path)) || !file.text?.includes("prompts.lock.json"))
|
|
6051
|
+
continue;
|
|
6052
|
+
if (/(^|\/)(?:tests?|__tests__|fixtures?)(\/|$)|\.(?:test|spec)\.[^.]+$/.test(file.path))
|
|
6053
|
+
continue;
|
|
6054
|
+
try {
|
|
6055
|
+
const absolute = safePromptEvidencePath(rootDir, file.path);
|
|
6056
|
+
const program = import_typescript.default.createProgram([absolute], { noResolve: true, noLib: true, types: [], allowJs: true });
|
|
6057
|
+
const sf = program.getSourceFile(absolute);
|
|
6058
|
+
if (!sf || program.getSyntacticDiagnostics(sf).length) {
|
|
6059
|
+
result.issues.push({ path: file.path, reason: "Attribution source could not be parsed" });
|
|
6060
|
+
continue;
|
|
6061
|
+
}
|
|
6062
|
+
const checker = program.getTypeChecker();
|
|
6063
|
+
const declaration = (node) => {
|
|
6064
|
+
const all = checker.getSymbolAtLocation(node)?.declarations;
|
|
6065
|
+
return all?.length === 1 ? all[0] : undefined;
|
|
6066
|
+
};
|
|
6067
|
+
const imported = (node) => {
|
|
6068
|
+
if (import_typescript.default.isImportSpecifier(node) && node.isTypeOnly)
|
|
6069
|
+
return false;
|
|
6070
|
+
let parent = node;
|
|
6071
|
+
while (parent && !import_typescript.default.isImportDeclaration(parent))
|
|
6072
|
+
parent = parent.parent;
|
|
6073
|
+
return !!parent && import_typescript.default.isImportDeclaration(parent) && !parent.importClause?.isTypeOnly && import_typescript.default.isStringLiteral(parent.moduleSpecifier) && parent.moduleSpecifier.text.startsWith(".") && resolve3(dirname(absolute), parent.moduleSpecifier.text) === lock;
|
|
6074
|
+
};
|
|
6075
|
+
const initializer = (node) => {
|
|
6076
|
+
const decl = declaration(node);
|
|
6077
|
+
return decl && import_typescript.default.isVariableDeclaration(decl) && import_typescript.default.isVariableDeclarationList(decl.parent) && !!(decl.parent.flags & import_typescript.default.NodeFlags.Const) ? decl.initializer : undefined;
|
|
6078
|
+
};
|
|
6079
|
+
const unwrap = (node) => {
|
|
6080
|
+
while (import_typescript.default.isParenthesizedExpression(node) || import_typescript.default.isAsExpression(node) || import_typescript.default.isTypeAssertionExpression(node) || import_typescript.default.isNonNullExpression(node))
|
|
6081
|
+
node = node.expression;
|
|
6082
|
+
return node;
|
|
6083
|
+
};
|
|
6084
|
+
const literal = (expression, seen = new Set) => {
|
|
6085
|
+
const node = unwrap(expression);
|
|
6086
|
+
if (seen.has(node))
|
|
6087
|
+
return;
|
|
6088
|
+
seen.add(node);
|
|
6089
|
+
if (import_typescript.default.isStringLiteral(node) || import_typescript.default.isNoSubstitutionTemplateLiteral(node))
|
|
6090
|
+
return node.text;
|
|
6091
|
+
if (import_typescript.default.isIdentifier(node)) {
|
|
6092
|
+
const init = initializer(node);
|
|
6093
|
+
return init ? literal(init, seen) : undefined;
|
|
6094
|
+
}
|
|
6095
|
+
if (import_typescript.default.isBinaryExpression(node) && node.operatorToken.kind === import_typescript.default.SyntaxKind.PlusToken) {
|
|
6096
|
+
const a = literal(node.left, new Set(seen)), b = literal(node.right, new Set(seen));
|
|
6097
|
+
return a !== undefined && b !== undefined ? a + b : undefined;
|
|
6098
|
+
}
|
|
6099
|
+
};
|
|
6100
|
+
const lockPath = (node) => import_typescript.default.isStringLiteral(node) && node.text.startsWith(".") && resolve3(dirname(absolute), node.text) === lock;
|
|
6101
|
+
const isConstBinding = (node) => import_typescript.default.isVariableDeclarationList(node.parent) && !!(node.parent.flags & import_typescript.default.NodeFlags.Const);
|
|
6102
|
+
const isLock = (expression, seen = new Set) => {
|
|
6103
|
+
const node = unwrap(expression);
|
|
6104
|
+
if (seen.has(node))
|
|
6105
|
+
return false;
|
|
6106
|
+
seen.add(node);
|
|
6107
|
+
if (import_typescript.default.isCallExpression(node) && import_typescript.default.isIdentifier(node.expression) && node.expression.text === "require" && !declaration(node.expression) && node.arguments.length === 1)
|
|
6108
|
+
return lockPath(node.arguments[0]);
|
|
6109
|
+
if (!import_typescript.default.isIdentifier(node))
|
|
6110
|
+
return false;
|
|
6111
|
+
const decl = declaration(node);
|
|
6112
|
+
if (decl && (import_typescript.default.isImportClause(decl) || import_typescript.default.isNamespaceImport(decl)))
|
|
6113
|
+
return imported(decl);
|
|
6114
|
+
const init = initializer(node);
|
|
6115
|
+
return !!init && isLock(init, seen);
|
|
6116
|
+
};
|
|
6117
|
+
const isTable = (expression, seen = new Set) => {
|
|
6118
|
+
const node = unwrap(expression);
|
|
6119
|
+
if (seen.has(node))
|
|
6120
|
+
return false;
|
|
6121
|
+
seen.add(node);
|
|
6122
|
+
if (import_typescript.default.isPropertyAccessExpression(node))
|
|
6123
|
+
return node.name.text === "prompts" && isLock(node.expression);
|
|
6124
|
+
if (import_typescript.default.isElementAccessExpression(node))
|
|
6125
|
+
return literal(node.argumentExpression) === "prompts" && isLock(node.expression);
|
|
6126
|
+
if (import_typescript.default.isIdentifier(node)) {
|
|
6127
|
+
const decl = declaration(node);
|
|
6128
|
+
if (decl && import_typescript.default.isBindingElement(decl) && import_typescript.default.isObjectBindingPattern(decl.parent) && import_typescript.default.isVariableDeclaration(decl.parent.parent)) {
|
|
6129
|
+
const owner = decl.parent.parent;
|
|
6130
|
+
const name = decl.propertyName ?? decl.name;
|
|
6131
|
+
if (!decl.dotDotDotToken && !decl.initializer && (import_typescript.default.isIdentifier(name) || import_typescript.default.isStringLiteral(name)) && name.text === "prompts" && isConstBinding(owner) && owner.initializer)
|
|
6132
|
+
return isLock(owner.initializer);
|
|
6133
|
+
}
|
|
6134
|
+
if (decl && import_typescript.default.isImportSpecifier(decl))
|
|
6135
|
+
return (decl.propertyName?.text ?? decl.name.text) === "prompts" && imported(decl);
|
|
6136
|
+
const init = initializer(node);
|
|
6137
|
+
return !!init && isTable(init, seen);
|
|
6138
|
+
}
|
|
6139
|
+
return false;
|
|
6140
|
+
};
|
|
6141
|
+
const visit = (node) => {
|
|
6142
|
+
if ((import_typescript.default.isElementAccessExpression(node) || import_typescript.default.isPropertyAccessExpression(node)) && isTable(node.expression)) {
|
|
6143
|
+
const key = import_typescript.default.isElementAccessExpression(node) ? literal(node.argumentExpression) : node.name.text;
|
|
6144
|
+
result.references.push({
|
|
6145
|
+
path: file.path,
|
|
6146
|
+
line: sf.getLineAndCharacterOfPosition(node.getStart(sf)).line + 1,
|
|
6147
|
+
key,
|
|
6148
|
+
status: key === undefined ? "unresolved" : known.has(key) ? "mapped" : "missing"
|
|
6149
|
+
});
|
|
6150
|
+
}
|
|
6151
|
+
import_typescript.default.forEachChild(node, visit);
|
|
6152
|
+
};
|
|
6153
|
+
visit(sf);
|
|
6154
|
+
} catch (error) {
|
|
6155
|
+
result.issues.push({ path: file.path, reason: error instanceof Error ? error.message : String(error) });
|
|
6156
|
+
}
|
|
6157
|
+
}
|
|
6158
|
+
return result;
|
|
6159
|
+
}
|
|
6160
|
+
|
|
6033
6161
|
// src/prompts.ts
|
|
6034
6162
|
var MODA_DIR = ".moda";
|
|
6035
6163
|
var MANIFEST_PATH = join(MODA_DIR, "prompts.yml");
|
|
@@ -6101,8 +6229,8 @@ async function runPromptsCommand(input, legacyFlags, legacyProfileOptions) {
|
|
|
6101
6229
|
}
|
|
6102
6230
|
async function initPrompts(options = {}) {
|
|
6103
6231
|
const cwd = process.cwd();
|
|
6104
|
-
const manifestPath =
|
|
6105
|
-
const lockPath =
|
|
6232
|
+
const manifestPath = resolve4(cwd, MANIFEST_PATH);
|
|
6233
|
+
const lockPath = resolve4(cwd, LOCK_PATH);
|
|
6106
6234
|
if (existsSync2(MODA_DIR) && lstatSync(MODA_DIR).isSymbolicLink())
|
|
6107
6235
|
throw new Error(".moda must not be a symlink.");
|
|
6108
6236
|
mkdirSync(MODA_DIR, { recursive: true });
|
|
@@ -6151,8 +6279,8 @@ async function syncPrompts(flags, profileOptions, context) {
|
|
|
6151
6279
|
async function runPromptSync(flags, profileOptions, options = {}) {
|
|
6152
6280
|
if (flags["dry-run"] === "true")
|
|
6153
6281
|
return runPromptSyncExclusive(flags, profileOptions, options);
|
|
6154
|
-
mkdirSync(
|
|
6155
|
-
const syncLock =
|
|
6282
|
+
mkdirSync(dirname2(MANIFEST_PATH), { recursive: true });
|
|
6283
|
+
const syncLock = resolve4(dirname2(MANIFEST_PATH), "prompts.sync.lock");
|
|
6156
6284
|
try {
|
|
6157
6285
|
mkdirSync(syncLock);
|
|
6158
6286
|
} catch (error) {
|
|
@@ -6181,7 +6309,7 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
|
|
|
6181
6309
|
const analyzedDefinitions = new Map;
|
|
6182
6310
|
if (flags["no-analyze"] !== "true") {
|
|
6183
6311
|
options.onProgress?.("Analyzing prompt sources before sync.");
|
|
6184
|
-
const { analyzeHarnessPrompts } = await import("./harness-
|
|
6312
|
+
const { analyzeHarnessPrompts } = await import("./harness-1xj4f0qp.js");
|
|
6185
6313
|
const result = await analyzeHarnessPrompts({
|
|
6186
6314
|
rootDir: process.cwd(),
|
|
6187
6315
|
existing: established.flatMap((prompt) => prompt.sourceDefinition ? [prompt.sourceDefinition.source] : []),
|
|
@@ -6190,10 +6318,10 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
|
|
|
6190
6318
|
dryRun: flags["dry-run"] === "true",
|
|
6191
6319
|
onProgress: options.onProgress
|
|
6192
6320
|
});
|
|
6193
|
-
const legacyPaths = new Set(established.filter((prompt) => !prompt.sourceDefinition).map((prompt) =>
|
|
6321
|
+
const legacyPaths = new Set(established.filter((prompt) => !prompt.sourceDefinition).map((prompt) => resolve4(prompt.sourcePath)));
|
|
6194
6322
|
const exclusions = manifest.promptPaths.filter((pattern) => pattern.startsWith("!")).map((pattern) => pattern.slice(1));
|
|
6195
|
-
const excludedPaths = new Set(exclusions.length ? import_fast_glob.default.sync(exclusions, { cwd: process.cwd(), onlyFiles: true, dot: true, followSymbolicLinks: false }).map((path) =>
|
|
6196
|
-
const found = result.sources.filter((source) => !legacyPaths.has(
|
|
6323
|
+
const excludedPaths = new Set(exclusions.length ? import_fast_glob.default.sync(exclusions, { cwd: process.cwd(), onlyFiles: true, dot: true, followSymbolicLinks: false }).map((path) => resolve4(path)) : []);
|
|
6324
|
+
const found = result.sources.filter((source) => !legacyPaths.has(resolve4(source.path)) && !excludedPaths.has(resolve4(source.path)));
|
|
6197
6325
|
for (const source of found) {
|
|
6198
6326
|
const analyzed = result.resolved.find((item) => item.key === source.key);
|
|
6199
6327
|
if (!analyzed)
|
|
@@ -6209,6 +6337,11 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
|
|
|
6209
6337
|
const mergedSources = mergePromptSources(manifest.sources, extraSources);
|
|
6210
6338
|
const manifestUpdate = stableJson(mergedSources) === stableJson(mergePromptSources(manifest.sources, [])) ? undefined : $stringify({ version: 2, prompt_paths: manifest.promptPaths, sources: mergedSources });
|
|
6211
6339
|
const prompts = discoverPrompts(extraSources);
|
|
6340
|
+
const attribution = checkPromptAttribution(process.cwd(), prompts.map((prompt) => prompt.key));
|
|
6341
|
+
const brokenAttribution = attribution.references.filter((reference) => reference.status === "missing");
|
|
6342
|
+
if (brokenAttribution.length) {
|
|
6343
|
+
throw new Error(`Prompt attribution keys are absent from this sync: ${brokenAttribution.map((reference) => `'${reference.key}' at ${reference.path}:${reference.line}`).join(", ")}. Map the referenced key to its verified source in .moda/prompts.yml, or update the runtime lookup to the intended mapped key. No prompt versions were uploaded.`);
|
|
6344
|
+
}
|
|
6212
6345
|
for (const prompt of prompts) {
|
|
6213
6346
|
const analyzed = analyzedDefinitions.get(prompt.key);
|
|
6214
6347
|
if (analyzed && analyzed !== stableJson(prompt.sourceDefinition))
|
|
@@ -6226,7 +6359,7 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
|
|
|
6226
6359
|
if (prompts.length === 0) {
|
|
6227
6360
|
if (!dryRun && flags["allow-untrack"] === "true")
|
|
6228
6361
|
writeLock([], []);
|
|
6229
|
-
return { synced: [], dryRun, discovery };
|
|
6362
|
+
return { synced: [], dryRun, discovery, attribution };
|
|
6230
6363
|
}
|
|
6231
6364
|
const signature = stableJson(prompts);
|
|
6232
6365
|
const response = await callControlAPI("/prompts/sync", {
|
|
@@ -6258,21 +6391,36 @@ async function runPromptSyncExclusive(flags, profileOptions, options) {
|
|
|
6258
6391
|
atomicWrite(MANIFEST_PATH, manifestUpdate);
|
|
6259
6392
|
writeLock(prompts, synced);
|
|
6260
6393
|
}
|
|
6261
|
-
return { synced: response.synced ?? [], dryRun, discovery };
|
|
6394
|
+
return { synced: response.synced ?? [], dryRun, discovery, attribution };
|
|
6395
|
+
}
|
|
6396
|
+
function writePromptSyncProgress(message, context, quiet = false) {
|
|
6397
|
+
if (quiet || context?.quiet)
|
|
6398
|
+
return;
|
|
6399
|
+
if (context?.outputMode === "agent-stream") {
|
|
6400
|
+
context.output.writeEvent({ event: "progress", phase: "prompt_discovery", message, elapsed_ms: Date.now() - context.startedAt });
|
|
6401
|
+
} else {
|
|
6402
|
+
process.stderr.write(`[moda prompts] ${message.replace(/[\x00-\x1f\x7f]/g, " ")}
|
|
6403
|
+
`);
|
|
6404
|
+
}
|
|
6262
6405
|
}
|
|
6263
6406
|
async function syncPromptsOnce(flags, profileOptions, context) {
|
|
6264
6407
|
const result = await runPromptSync(flags, profileOptions, {
|
|
6265
|
-
onProgress:
|
|
6408
|
+
onProgress: (message) => writePromptSyncProgress(message, context, flags.quiet === "true")
|
|
6266
6409
|
});
|
|
6267
6410
|
const payload = {
|
|
6268
6411
|
synced: result.synced,
|
|
6269
6412
|
discovery: result.discovery,
|
|
6413
|
+
attribution: result.attribution,
|
|
6270
6414
|
lockfile: result.dryRun ? undefined : LOCK_PATH
|
|
6271
6415
|
};
|
|
6272
6416
|
if (context)
|
|
6273
6417
|
context.output.writeData(payload);
|
|
6274
6418
|
else
|
|
6275
6419
|
printJson(payload);
|
|
6420
|
+
if (!result.dryRun && result.synced.length === 0 && result.discovery?.candidates?.length) {
|
|
6421
|
+
writePromptSyncProgress("No eligible prompt sources were synced. Review discovery.pending and discovery.related.", context, flags.quiet === "true");
|
|
6422
|
+
process.exitCode = 1;
|
|
6423
|
+
}
|
|
6276
6424
|
}
|
|
6277
6425
|
async function watchPromptSync(flags, profileOptions) {
|
|
6278
6426
|
await syncPromptsOnce(flags, profileOptions);
|
|
@@ -6288,7 +6436,7 @@ async function watchPromptSync(flags, profileOptions) {
|
|
|
6288
6436
|
await syncPromptsOnce({ ...flags, watch: "false", "no-analyze": "true" }, profileOptions);
|
|
6289
6437
|
}
|
|
6290
6438
|
}
|
|
6291
|
-
await new Promise((
|
|
6439
|
+
await new Promise((resolve5) => setTimeout(resolve5, intervalMs));
|
|
6292
6440
|
}
|
|
6293
6441
|
}
|
|
6294
6442
|
async function promotePrompt(positionals, flags, profileOptions, context) {
|
|
@@ -6352,7 +6500,7 @@ function discoverPrompts(extraSources = []) {
|
|
|
6352
6500
|
const positive = pattern.startsWith("!") ? pattern.slice(1) : pattern;
|
|
6353
6501
|
if (isAbsolute3(positive) || positive.split(/[\\/]/).includes(".."))
|
|
6354
6502
|
throw new Error(`Prompt pattern must stay inside the repository: ${pattern}`);
|
|
6355
|
-
if (!pattern.startsWith("!") && !import_fast_glob.default.isDynamicPattern(pattern) && !existsSync2(
|
|
6503
|
+
if (!pattern.startsWith("!") && !import_fast_glob.default.isDynamicPattern(pattern) && !existsSync2(resolve4(root, pattern))) {
|
|
6356
6504
|
throw new Error(`Configured prompt file is missing: ${pattern}`);
|
|
6357
6505
|
}
|
|
6358
6506
|
}
|
|
@@ -6367,11 +6515,11 @@ function discoverPrompts(extraSources = []) {
|
|
|
6367
6515
|
const sources = new Map(manifest.sources.map((source) => [source.key, source]));
|
|
6368
6516
|
for (const source of extraSources)
|
|
6369
6517
|
sources.set(source.key, source);
|
|
6370
|
-
const selectedPaths = new Set([...sources.values()].map((source) =>
|
|
6371
|
-
const prompts = paths.filter((path) => !selectedPaths.has(
|
|
6518
|
+
const selectedPaths = new Set([...sources.values()].map((source) => resolve4(root, source.path)));
|
|
6519
|
+
const prompts = paths.filter((path) => !selectedPaths.has(resolve4(root, path))).map((path) => {
|
|
6372
6520
|
assertContainedSource(root, path);
|
|
6373
6521
|
if (/\.prompt\.(md|json)$/i.test(path))
|
|
6374
|
-
return parsePromptFile(
|
|
6522
|
+
return parsePromptFile(resolve4(root, path));
|
|
6375
6523
|
return normalizePrompt(resolvePromptSource(root, { key: keyFromPath(path), path }));
|
|
6376
6524
|
});
|
|
6377
6525
|
for (const source of sources.values())
|
|
@@ -6385,15 +6533,15 @@ function discoverPrompts(extraSources = []) {
|
|
|
6385
6533
|
return prompts.sort((a, b) => a.key.localeCompare(b.key));
|
|
6386
6534
|
}
|
|
6387
6535
|
function assertContainedSource(root, path) {
|
|
6388
|
-
const abs =
|
|
6536
|
+
const abs = resolve4(root, path);
|
|
6389
6537
|
const rel = relative(realpathSync(root), realpathSync(abs));
|
|
6390
6538
|
if (rel === ".." || rel.startsWith(`..${process.platform === "win32" ? "\\" : "/"}`) || isAbsolute3(rel))
|
|
6391
6539
|
throw new Error(`Prompt source escapes repository: ${path}`);
|
|
6392
6540
|
let cursor = abs;
|
|
6393
|
-
while (cursor !==
|
|
6541
|
+
while (cursor !== resolve4(root)) {
|
|
6394
6542
|
if (lstatSync(cursor).isSymbolicLink())
|
|
6395
6543
|
throw new Error(`Prompt source uses a symlink: ${path}`);
|
|
6396
|
-
const next =
|
|
6544
|
+
const next = dirname2(cursor);
|
|
6397
6545
|
if (next === cursor)
|
|
6398
6546
|
throw new Error(`Prompt source escapes repository: ${path}`);
|
|
6399
6547
|
cursor = next;
|
|
@@ -6510,7 +6658,7 @@ function readManifest() {
|
|
|
6510
6658
|
function readHarnessSources(reportPath) {
|
|
6511
6659
|
const selected = reportPath === "true" ? ".moda/harness-report.json" : reportPath;
|
|
6512
6660
|
assertContainedSource(process.cwd(), selected);
|
|
6513
|
-
const report = JSON.parse(readFileSync(
|
|
6661
|
+
const report = JSON.parse(readFileSync(resolve4(selected), "utf8"));
|
|
6514
6662
|
if (!Array.isArray(report?.graph?.artifacts))
|
|
6515
6663
|
throw new Error("Expected a harness report with graph.artifacts.");
|
|
6516
6664
|
const artifacts = report.graph.artifacts.filter((artifact) => artifact.type === "prompt");
|
|
@@ -6545,8 +6693,8 @@ function mergePromptSources(existingSources, sources) {
|
|
|
6545
6693
|
return [...merged.values()].sort((a, b) => a.key.localeCompare(b.key));
|
|
6546
6694
|
}
|
|
6547
6695
|
function atomicWrite(path, content) {
|
|
6548
|
-
mkdirSync(
|
|
6549
|
-
assertContainedSource(process.cwd(),
|
|
6696
|
+
mkdirSync(dirname2(path), { recursive: true });
|
|
6697
|
+
assertContainedSource(process.cwd(), dirname2(path));
|
|
6550
6698
|
if (existsSync2(path) && lstatSync(path).isSymbolicLink())
|
|
6551
6699
|
throw new Error(`Refusing to overwrite symlink: ${path}`);
|
|
6552
6700
|
const temp = `${path}.${process.pid}.tmp`;
|
|
@@ -6587,7 +6735,7 @@ function writeLock(prompts, synced) {
|
|
|
6587
6735
|
}];
|
|
6588
6736
|
}))
|
|
6589
6737
|
};
|
|
6590
|
-
mkdirSync(
|
|
6738
|
+
mkdirSync(dirname2(LOCK_PATH), { recursive: true });
|
|
6591
6739
|
atomicWrite(LOCK_PATH, `${JSON.stringify(lock, null, 2)}
|
|
6592
6740
|
`);
|
|
6593
6741
|
}
|
|
@@ -6648,10 +6796,10 @@ import { join as join3 } from "node:path";
|
|
|
6648
6796
|
import { confirm } from "@inquirer/prompts";
|
|
6649
6797
|
|
|
6650
6798
|
// src/package-assets.ts
|
|
6651
|
-
import { dirname as
|
|
6799
|
+
import { dirname as dirname3, join as join2 } from "node:path";
|
|
6652
6800
|
import { fileURLToPath } from "node:url";
|
|
6653
6801
|
function packageAssetPath(...parts) {
|
|
6654
|
-
return join2(
|
|
6802
|
+
return join2(dirname3(fileURLToPath(import.meta.url)), "..", ...parts);
|
|
6655
6803
|
}
|
|
6656
6804
|
|
|
6657
6805
|
// src/init/rules.ts
|
|
@@ -6828,7 +6976,7 @@ import {
|
|
|
6828
6976
|
readFileSync as readFileSync5,
|
|
6829
6977
|
writeFileSync as writeFileSync6
|
|
6830
6978
|
} from "node:fs";
|
|
6831
|
-
import { basename, dirname as
|
|
6979
|
+
import { basename, dirname as dirname6, join as join7, relative as relative3 } from "node:path";
|
|
6832
6980
|
|
|
6833
6981
|
// src/skills-manifest.ts
|
|
6834
6982
|
import {
|
|
@@ -6840,7 +6988,7 @@ import {
|
|
|
6840
6988
|
unlinkSync,
|
|
6841
6989
|
writeFileSync as writeFileSync4
|
|
6842
6990
|
} from "node:fs";
|
|
6843
|
-
import { dirname as
|
|
6991
|
+
import { dirname as dirname4, isAbsolute as isAbsolute4, join as join5, normalize, relative as relative2, resolve as resolve5 } from "node:path";
|
|
6844
6992
|
var SKILLS_MANIFEST_PATH = join5(".moda", "skills.yml");
|
|
6845
6993
|
var SKILL_SOURCE_HARNESS = "moda";
|
|
6846
6994
|
var SKILL_SOURCE_INTEGRATION_BUNDLED = "integration-bundled";
|
|
@@ -6900,7 +7048,7 @@ function writeSkillsManifest(cwd, header, records) {
|
|
|
6900
7048
|
]),
|
|
6901
7049
|
""
|
|
6902
7050
|
];
|
|
6903
|
-
mkdirSync3(
|
|
7051
|
+
mkdirSync3(dirname4(manifestPath), { recursive: true });
|
|
6904
7052
|
writeFileSync4(manifestPath, lines.join(`
|
|
6905
7053
|
`));
|
|
6906
7054
|
}
|
|
@@ -6931,7 +7079,7 @@ function pruneManagedSkillPaths(cwd, managedPaths, log) {
|
|
|
6931
7079
|
function pruneEmptyClaudeSkillDir(cwd, relativePath) {
|
|
6932
7080
|
if (!relativePath.startsWith(".claude/skills/") || !relativePath.endsWith("/SKILL.md"))
|
|
6933
7081
|
return;
|
|
6934
|
-
const dir =
|
|
7082
|
+
const dir = dirname4(join5(cwd, relativePath));
|
|
6935
7083
|
try {
|
|
6936
7084
|
if (existsSync5(dir) && readdirSync(dir).length === 0) {
|
|
6937
7085
|
rmdirSync(dir);
|
|
@@ -6939,8 +7087,8 @@ function pruneEmptyClaudeSkillDir(cwd, relativePath) {
|
|
|
6939
7087
|
} catch {}
|
|
6940
7088
|
}
|
|
6941
7089
|
function absoluteManagedPath(cwd, relativePath) {
|
|
6942
|
-
const abs =
|
|
6943
|
-
const root =
|
|
7090
|
+
const abs = resolve5(cwd, relativePath);
|
|
7091
|
+
const root = resolve5(cwd);
|
|
6944
7092
|
const rel = relative2(root, abs);
|
|
6945
7093
|
if (rel.startsWith("..") || isAbsolute4(rel))
|
|
6946
7094
|
return null;
|
|
@@ -7051,7 +7199,7 @@ function yamlQuote(value) {
|
|
|
7051
7199
|
|
|
7052
7200
|
// src/agents-md.ts
|
|
7053
7201
|
import { existsSync as existsSync6, mkdirSync as mkdirSync4, readFileSync as readFileSync4, writeFileSync as writeFileSync5 } from "node:fs";
|
|
7054
|
-
import { dirname as
|
|
7202
|
+
import { dirname as dirname5, join as join6 } from "node:path";
|
|
7055
7203
|
var AGENTS_MD_FILENAME = "AGENTS.md";
|
|
7056
7204
|
var FIXES_BLOCK_BEGIN = "<!-- moda:fixes:begin -->";
|
|
7057
7205
|
var FIXES_BLOCK_END = "<!-- moda:fixes:end -->";
|
|
@@ -7097,7 +7245,7 @@ function upsertManagedBlock(existing, block) {
|
|
|
7097
7245
|
}
|
|
7098
7246
|
function writeFileIfChanged(filePath, content) {
|
|
7099
7247
|
try {
|
|
7100
|
-
mkdirSync4(
|
|
7248
|
+
mkdirSync4(dirname5(filePath), { recursive: true });
|
|
7101
7249
|
if (existsSync6(filePath)) {
|
|
7102
7250
|
const current = readFileSync4(filePath, "utf8");
|
|
7103
7251
|
if (current === content)
|
|
@@ -7253,7 +7401,7 @@ function formatRunStatusHuman(run, events) {
|
|
|
7253
7401
|
}
|
|
7254
7402
|
function writeIfChanged(filePath, content) {
|
|
7255
7403
|
try {
|
|
7256
|
-
mkdirSync5(
|
|
7404
|
+
mkdirSync5(dirname6(filePath), { recursive: true });
|
|
7257
7405
|
if (existsSync7(filePath)) {
|
|
7258
7406
|
const current = readFileSync5(filePath, "utf8");
|
|
7259
7407
|
if (current === content)
|
|
@@ -7397,7 +7545,7 @@ function discoverLocalSkills(cwd) {
|
|
|
7397
7545
|
const sourcePath = relative3(cwd, absPath).replace(/\\/g, "/");
|
|
7398
7546
|
if (managed.has(sourcePath))
|
|
7399
7547
|
continue;
|
|
7400
|
-
const key = basename(
|
|
7548
|
+
const key = basename(dirname6(absPath));
|
|
7401
7549
|
if (key === "moda-cli" || !/^[A-Za-z0-9_-]+$/.test(key))
|
|
7402
7550
|
continue;
|
|
7403
7551
|
let content;
|
|
@@ -7545,7 +7693,7 @@ function safeSkillId(skillId) {
|
|
|
7545
7693
|
}
|
|
7546
7694
|
function writeSkillProposalManifest(cwd, proposal, relativePath) {
|
|
7547
7695
|
const manifestPath = join7(cwd, SKILL_PROPOSALS_MANIFEST_PATH);
|
|
7548
|
-
mkdirSync5(
|
|
7696
|
+
mkdirSync5(dirname6(manifestPath), { recursive: true });
|
|
7549
7697
|
const existing = existsSync7(manifestPath) ? readFileSync5(manifestPath, "utf8") : `applied_proposals:
|
|
7550
7698
|
`;
|
|
7551
7699
|
const entry = [
|