omnius 1.0.937 → 1.0.939
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/index.js +2 -2
- package/dist/library.js +5 -3
- package/dist/postinstall-daemon.cjs +18 -6
- package/dist/update-worker-runtime.js +168 -53
- package/npm-shrinkwrap.json +9 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/index.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 41415265 bytes
|
|
4
|
+
sha256: d6274206376b205f75ef46d473609396437a38c9969874ebea0807dacc05a989
|
package/dist/library.js
CHANGED
|
@@ -415303,7 +415303,7 @@ ${modelVisible}` : modelVisible || result.error || displayOutput || "";
|
|
|
415303
415303
|
}
|
|
415304
415304
|
/** Select only evidence produced for this task and current workspace state. */
|
|
415305
415305
|
_selectCurrentVerification() {
|
|
415306
|
-
const selected = selectAuthoritativeVerificationEvidence(this._verificationHistory, {
|
|
415306
|
+
const selected = selectAuthoritativeVerificationEvidence(this._verificationHistory.filter((entry) => entry.quality !== "rejected_untrusted"), {
|
|
415307
415307
|
taskEpoch: this._taskEpoch,
|
|
415308
415308
|
stateEpoch: this._adversaryStateVersion
|
|
415309
415309
|
});
|
|
@@ -415345,7 +415345,9 @@ ${modelVisible}` : modelVisible || result.error || displayOutput || "";
|
|
|
415345
415345
|
this._worldFacts.lastTest = selected;
|
|
415346
415346
|
return {
|
|
415347
415347
|
selected,
|
|
415348
|
-
|
|
415348
|
+
// A rejected shape is never the selected outcome; it was not displaced
|
|
415349
|
+
// by stronger evidence unless some real verification is current.
|
|
415350
|
+
candidateSelected: candidate.quality === "rejected_untrusted" ? !selected.summary : selected.family === candidate.family && selected.claim === candidate.claim && selected.turn === candidate.turn && selected.quality === candidate.quality && selected.summary === candidate.summary
|
|
415349
415351
|
};
|
|
415350
415352
|
}
|
|
415351
415353
|
/**
|
|
@@ -415407,7 +415409,7 @@ ${modelVisible}` : modelVisible || result.error || displayOutput || "";
|
|
|
415407
415409
|
};
|
|
415408
415410
|
}
|
|
415409
415411
|
const declaredReceipt = result.executionReceipt?.declaredVerification;
|
|
415410
|
-
const candidate = Boolean(declaredCommand) || invocation.kind !== "other" || /\b(test|tests|vitest|jest|pytest|go test|cargo test|npm test|pnpm test|yarn test|typecheck|tsc|build|verify|verification|check|review)\b/i.test(command) || declaredReceipt !== void 0 || /(?:^|\n)\s*OMNIUS_VERIFICATION_RESULT\s*(?:=|:)\s*(?:PASS|FAIL)\s*(?:\n|$)/im.test(result.output || "");
|
|
415412
|
+
const candidate = Boolean(declaredCommand) || invocation.kind !== "other" || /\b(test|tests|vitest|jest|pytest|go test|cargo test|npm test|pnpm test|yarn test|typecheck|tsc|build|verify|verification|check|review)\b/i.test(stripShellQuotedSegments(command)) || declaredReceipt !== void 0 || /(?:^|\n)\s*OMNIUS_VERIFICATION_RESULT\s*(?:=|:)\s*(?:PASS|FAIL)\s*(?:\n|$)/im.test(result.output || "");
|
|
415411
415413
|
if (!candidate)
|
|
415412
415414
|
return { quality: "not_candidate", summary: "not a validation command" };
|
|
415413
415415
|
if (!commandReliablySatisfiesVerifyCommand(command, command, result.executionReceipt)) {
|
|
@@ -423,15 +423,17 @@ function resolveOmniusBinary() {
|
|
|
423
423
|
candidates.push(path.join(prefix, "bin", "omnius"));
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
// 3. PATH fallback (last resort — can resolve to npx cache or fnm shim).
|
|
427
|
-
var found = runCapture(IS_WIN ? "where omnius" : "which omnius").split(/\r?\n/)[0];
|
|
428
|
-
if (found && !/_npx|fnm_multishells/.test(found)) candidates.push(found);
|
|
429
|
-
|
|
430
426
|
for (var i = 0; i < candidates.length; i++) {
|
|
431
427
|
try {
|
|
432
428
|
if (candidates[i] && fs.existsSync(candidates[i])) return candidates[i];
|
|
433
429
|
} catch (e) {}
|
|
434
430
|
}
|
|
431
|
+
// 3. PATH fallback (last resort — can resolve to npx cache or fnm shim).
|
|
432
|
+
// Only consulted when the package-relative paths are missing.
|
|
433
|
+
var found = runCapture(IS_WIN ? "where omnius" : "which omnius").split(/\r?\n/)[0];
|
|
434
|
+
try {
|
|
435
|
+
if (found && !/_npx|fnm_multishells/.test(found) && fs.existsSync(found)) return found;
|
|
436
|
+
} catch (e) {}
|
|
435
437
|
return null;
|
|
436
438
|
}
|
|
437
439
|
|
|
@@ -729,6 +731,16 @@ function installDesktopCompanion(nodeBin, omniusScript, user) {
|
|
|
729
731
|
// EnvironmentFile= paths that were never created; systemd then refuses to
|
|
730
732
|
// start the unit. Create only the missing ones, empty and private, under the
|
|
731
733
|
// owner's Omnius directories. Existing contents are never touched.
|
|
734
|
+
// Linger is a one-time account setting. Re-requesting it on every update can
|
|
735
|
+
// raise a polkit password prompt, so ask only when it is off and never
|
|
736
|
+
// interactively; a missing grant is reported instead of prompting.
|
|
737
|
+
function ensureLinger(user, prefix) {
|
|
738
|
+
if (runCapture((prefix || "") + "loginctl show-user " + shellQuote(user) + " --property=Linger --value") === "yes") return;
|
|
739
|
+
if (!runQuiet((prefix || "") + "loginctl --no-ask-password enable-linger " + shellQuote(user))) {
|
|
740
|
+
warn("User services stop at logout until linger is enabled once: loginctl enable-linger " + user);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
732
744
|
function ensureDeclaredDaemonEnvironmentFiles(sysctl, userHome, user) {
|
|
733
745
|
try {
|
|
734
746
|
var shown = runCapture(sysctl + " show " + SERVICE_LABEL + ".service --property=EnvironmentFiles");
|
|
@@ -857,12 +869,12 @@ function installSystemd(nodeBin, omniusScript, user) {
|
|
|
857
869
|
var uid = runCapture("id -u " + user);
|
|
858
870
|
if (uid && /^\d+$/.test(uid)) {
|
|
859
871
|
// Ensure loginctl linger so user services can run without a session.
|
|
860
|
-
|
|
872
|
+
ensureLinger(user);
|
|
861
873
|
asUserPrefix = "sudo -u " + user + " XDG_RUNTIME_DIR=/run/user/" + uid + " DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/" + uid + "/bus ";
|
|
862
874
|
}
|
|
863
875
|
} else if (!IS_WIN && process.getuid && process.getuid() !== 0) {
|
|
864
876
|
// Self-install: enable-linger ourselves if we can (best-effort; needs sudo on most distros).
|
|
865
|
-
|
|
877
|
+
ensureLinger(user);
|
|
866
878
|
}
|
|
867
879
|
|
|
868
880
|
var sysctl = asUserPrefix + "systemctl --user";
|
|
@@ -17,6 +17,10 @@ var __esm = (fn, res) => function __init() {
|
|
|
17
17
|
var __commonJS = (cb, mod) => function __require2() {
|
|
18
18
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
19
|
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
20
24
|
var __copyProps = (to, from, except, desc) => {
|
|
21
25
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
26
|
for (let key of __getOwnPropNames(from))
|
|
@@ -60885,7 +60889,7 @@ var require_typescript = __commonJS({
|
|
|
60885
60889
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
60886
60890
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
60887
60891
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
60888
|
-
var
|
|
60892
|
+
var __export2 = (target, all) => {
|
|
60889
60893
|
for (var name in all)
|
|
60890
60894
|
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
60891
60895
|
};
|
|
@@ -60899,7 +60903,7 @@ var require_typescript = __commonJS({
|
|
|
60899
60903
|
};
|
|
60900
60904
|
var __toCommonJS = (mod) => (__copyProps2, mod);
|
|
60901
60905
|
var typescript_exports = {};
|
|
60902
|
-
|
|
60906
|
+
__export2(typescript_exports, {
|
|
60903
60907
|
ANONYMOUS: () => ANONYMOUS,
|
|
60904
60908
|
AccessFlags: () => AccessFlags,
|
|
60905
60909
|
AssertionLevel: () => AssertionLevel,
|
|
@@ -65990,7 +65994,7 @@ ${lanes.join("\n")}
|
|
|
65990
65994
|
}
|
|
65991
65995
|
var timestamp2 = nativePerformanceTime ? () => nativePerformanceTime.now() : Date.now;
|
|
65992
65996
|
var ts_performance_exports = {};
|
|
65993
|
-
|
|
65997
|
+
__export2(ts_performance_exports, {
|
|
65994
65998
|
clearMarks: () => clearMarks,
|
|
65995
65999
|
clearMeasures: () => clearMeasures,
|
|
65996
66000
|
createTimer: () => createTimer,
|
|
@@ -114364,7 +114368,7 @@ ${lanes.join("\n")}
|
|
|
114364
114368
|
}
|
|
114365
114369
|
}
|
|
114366
114370
|
var ts_moduleSpecifiers_exports = {};
|
|
114367
|
-
|
|
114371
|
+
__export2(ts_moduleSpecifiers_exports, {
|
|
114368
114372
|
RelativePreference: () => RelativePreference,
|
|
114369
114373
|
countPathComponents: () => countPathComponents,
|
|
114370
114374
|
forEachFileNameOfModule: () => forEachFileNameOfModule,
|
|
@@ -209775,7 +209779,7 @@ ${lanes.join("\n")}
|
|
|
209775
209779
|
}
|
|
209776
209780
|
}
|
|
209777
209781
|
var ts_JsTyping_exports = {};
|
|
209778
|
-
|
|
209782
|
+
__export2(ts_JsTyping_exports, {
|
|
209779
209783
|
NameValidationResult: () => NameValidationResult,
|
|
209780
209784
|
discoverTypings: () => discoverTypings,
|
|
209781
209785
|
isTypingUpToDate: () => isTypingUpToDate,
|
|
@@ -216819,7 +216823,7 @@ interface Symbol {
|
|
|
216819
216823
|
return options;
|
|
216820
216824
|
}
|
|
216821
216825
|
var ts_NavigateTo_exports = {};
|
|
216822
|
-
|
|
216826
|
+
__export2(ts_NavigateTo_exports, {
|
|
216823
216827
|
getNavigateToItems: () => getNavigateToItems
|
|
216824
216828
|
});
|
|
216825
216829
|
function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles, excludeLibFiles, program) {
|
|
@@ -216924,7 +216928,7 @@ interface Symbol {
|
|
|
216924
216928
|
};
|
|
216925
216929
|
}
|
|
216926
216930
|
var ts_NavigationBar_exports = {};
|
|
216927
|
-
|
|
216931
|
+
__export2(ts_NavigationBar_exports, {
|
|
216928
216932
|
getNavigationBarItems: () => getNavigationBarItems,
|
|
216929
216933
|
getNavigationTree: () => getNavigationTree
|
|
216930
216934
|
});
|
|
@@ -217712,7 +217716,7 @@ interface Symbol {
|
|
|
217712
217716
|
return text3.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g, "");
|
|
217713
217717
|
}
|
|
217714
217718
|
var ts_refactor_exports = {};
|
|
217715
|
-
|
|
217719
|
+
__export2(ts_refactor_exports, {
|
|
217716
217720
|
addExportsInOldFile: () => addExportsInOldFile,
|
|
217717
217721
|
addImportsForMovedSymbols: () => addImportsForMovedSymbols,
|
|
217718
217722
|
addNewFileToTsconfig: () => addNewFileToTsconfig,
|
|
@@ -221255,7 +221259,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
221255
221259
|
}
|
|
221256
221260
|
}
|
|
221257
221261
|
var ts_refactor_extractSymbol_exports = {};
|
|
221258
|
-
|
|
221262
|
+
__export2(ts_refactor_extractSymbol_exports, {
|
|
221259
221263
|
Messages: () => Messages,
|
|
221260
221264
|
RangeFacts: () => RangeFacts,
|
|
221261
221265
|
getRangeToExtract: () => getRangeToExtract2,
|
|
@@ -225835,7 +225839,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
225835
225839
|
return result;
|
|
225836
225840
|
}
|
|
225837
225841
|
var ts_BreakpointResolver_exports = {};
|
|
225838
|
-
|
|
225842
|
+
__export2(ts_BreakpointResolver_exports, {
|
|
225839
225843
|
spanInSourceFileAtLocation: () => spanInSourceFileAtLocation
|
|
225840
225844
|
});
|
|
225841
225845
|
function spanInSourceFileAtLocation(sourceFile, position) {
|
|
@@ -226341,7 +226345,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
226341
226345
|
}
|
|
226342
226346
|
}
|
|
226343
226347
|
var ts_CallHierarchy_exports = {};
|
|
226344
|
-
|
|
226348
|
+
__export2(ts_CallHierarchy_exports, {
|
|
226345
226349
|
createCallHierarchyItem: () => createCallHierarchyItem,
|
|
226346
226350
|
getIncomingCalls: () => getIncomingCalls,
|
|
226347
226351
|
getOutgoingCalls: () => getOutgoingCalls,
|
|
@@ -226790,11 +226794,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
226790
226794
|
return group(collectCallSites(program, declaration), getCallSiteGroupKey, (entries) => convertCallSiteGroupToOutgoingCall(program, entries));
|
|
226791
226795
|
}
|
|
226792
226796
|
var ts_classifier_exports = {};
|
|
226793
|
-
|
|
226797
|
+
__export2(ts_classifier_exports, {
|
|
226794
226798
|
v2020: () => ts_classifier_v2020_exports
|
|
226795
226799
|
});
|
|
226796
226800
|
var ts_classifier_v2020_exports = {};
|
|
226797
|
-
|
|
226801
|
+
__export2(ts_classifier_v2020_exports, {
|
|
226798
226802
|
TokenEncodingConsts: () => TokenEncodingConsts,
|
|
226799
226803
|
TokenModifier: () => TokenModifier,
|
|
226800
226804
|
TokenType: () => TokenType2,
|
|
@@ -226802,7 +226806,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
226802
226806
|
getSemanticClassifications: () => getSemanticClassifications2
|
|
226803
226807
|
});
|
|
226804
226808
|
var ts_codefix_exports = {};
|
|
226805
|
-
|
|
226809
|
+
__export2(ts_codefix_exports, {
|
|
226806
226810
|
PreserveOptionalFlags: () => PreserveOptionalFlags,
|
|
226807
226811
|
addNewNodeForMemberSymbol: () => addNewNodeForMemberSymbol,
|
|
226808
226812
|
codeFixAll: () => codeFixAll,
|
|
@@ -238731,7 +238735,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
238731
238735
|
}
|
|
238732
238736
|
}
|
|
238733
238737
|
var ts_Completions_exports = {};
|
|
238734
|
-
|
|
238738
|
+
__export2(ts_Completions_exports, {
|
|
238735
238739
|
CompletionKind: () => CompletionKind,
|
|
238736
238740
|
CompletionSource: () => CompletionSource,
|
|
238737
238741
|
SortText: () => SortText,
|
|
@@ -242996,7 +243000,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
242996
243000
|
return keyword === "abstract" || keyword === "async" || keyword === "await" || keyword === "declare" || keyword === "module" || keyword === "namespace" || keyword === "type" || keyword === "satisfies" || keyword === "as";
|
|
242997
243001
|
}
|
|
242998
243002
|
var ts_Completions_StringCompletions_exports = {};
|
|
242999
|
-
|
|
243003
|
+
__export2(ts_Completions_StringCompletions_exports, {
|
|
243000
243004
|
getStringLiteralCompletionDetails: () => getStringLiteralCompletionDetails,
|
|
243001
243005
|
getStringLiteralCompletions: () => getStringLiteralCompletions
|
|
243002
243006
|
});
|
|
@@ -244088,7 +244092,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
244088
244092
|
return isCallExpression(node.parent) && firstOrUndefined(node.parent.arguments) === node && isIdentifier(node.parent.expression) && node.parent.expression.escapedText === "require";
|
|
244089
244093
|
}
|
|
244090
244094
|
var ts_FindAllReferences_exports = {};
|
|
244091
|
-
|
|
244095
|
+
__export2(ts_FindAllReferences_exports, {
|
|
244092
244096
|
Core: () => Core,
|
|
244093
244097
|
DefinitionKind: () => DefinitionKind,
|
|
244094
244098
|
EntryKind: () => EntryKind,
|
|
@@ -246672,7 +246676,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
246672
246676
|
}
|
|
246673
246677
|
})(Core || (Core = {}));
|
|
246674
246678
|
var ts_GoToDefinition_exports = {};
|
|
246675
|
-
|
|
246679
|
+
__export2(ts_GoToDefinition_exports, {
|
|
246676
246680
|
createDefinitionInfo: () => createDefinitionInfo,
|
|
246677
246681
|
getDefinitionAndBoundSpan: () => getDefinitionAndBoundSpan,
|
|
246678
246682
|
getDefinitionAtPosition: () => getDefinitionAtPosition,
|
|
@@ -247264,7 +247268,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
247264
247268
|
}
|
|
247265
247269
|
}
|
|
247266
247270
|
var ts_InlayHints_exports = {};
|
|
247267
|
-
|
|
247271
|
+
__export2(ts_InlayHints_exports, {
|
|
247268
247272
|
provideInlayHints: () => provideInlayHints
|
|
247269
247273
|
});
|
|
247270
247274
|
var leadingParameterNameCommentRegexFactory = (name) => {
|
|
@@ -248067,7 +248071,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
248067
248071
|
}
|
|
248068
248072
|
}
|
|
248069
248073
|
var ts_JsDoc_exports = {};
|
|
248070
|
-
|
|
248074
|
+
__export2(ts_JsDoc_exports, {
|
|
248071
248075
|
getDocCommentTemplateAtPosition: () => getDocCommentTemplateAtPosition,
|
|
248072
248076
|
getJSDocParameterNameCompletionDetails: () => getJSDocParameterNameCompletionDetails,
|
|
248073
248077
|
getJSDocParameterNameCompletions: () => getJSDocParameterNameCompletions,
|
|
@@ -248504,7 +248508,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
248504
248508
|
}
|
|
248505
248509
|
}
|
|
248506
248510
|
var ts_MapCode_exports = {};
|
|
248507
|
-
|
|
248511
|
+
__export2(ts_MapCode_exports, {
|
|
248508
248512
|
mapCode: () => mapCode
|
|
248509
248513
|
});
|
|
248510
248514
|
function mapCode(sourceFile, contents, focusLocations, host, formatContext, preferences) {
|
|
@@ -248708,7 +248712,7 @@ ${content}
|
|
|
248708
248712
|
node.forEachChild(resetNodePositions);
|
|
248709
248713
|
}
|
|
248710
248714
|
var ts_OrganizeImports_exports = {};
|
|
248711
|
-
|
|
248715
|
+
__export2(ts_OrganizeImports_exports, {
|
|
248712
248716
|
compareImportsOrRequireStatements: () => compareImportsOrRequireStatements,
|
|
248713
248717
|
compareModuleSpecifiers: () => compareModuleSpecifiers2,
|
|
248714
248718
|
getImportDeclarationInsertionIndex: () => getImportDeclarationInsertionIndex,
|
|
@@ -249368,7 +249372,7 @@ ${content}
|
|
|
249368
249372
|
return compareModuleSpecifiersWorker(m1, m2, comparer);
|
|
249369
249373
|
}
|
|
249370
249374
|
var ts_OutliningElementsCollector_exports = {};
|
|
249371
|
-
|
|
249375
|
+
__export2(ts_OutliningElementsCollector_exports, {
|
|
249372
249376
|
collectElements: () => collectElements
|
|
249373
249377
|
});
|
|
249374
249378
|
function collectElements(sourceFile, cancellationToken) {
|
|
@@ -249787,7 +249791,7 @@ ${content}
|
|
|
249787
249791
|
return findChildOfKind(body, 19, sourceFile);
|
|
249788
249792
|
}
|
|
249789
249793
|
var ts_Rename_exports = {};
|
|
249790
|
-
|
|
249794
|
+
__export2(ts_Rename_exports, {
|
|
249791
249795
|
getRenameInfo: () => getRenameInfo,
|
|
249792
249796
|
nodeIsEligibleForRename: () => nodeIsEligibleForRename
|
|
249793
249797
|
});
|
|
@@ -249943,7 +249947,7 @@ ${content}
|
|
|
249943
249947
|
}
|
|
249944
249948
|
}
|
|
249945
249949
|
var ts_SignatureHelp_exports = {};
|
|
249946
|
-
|
|
249950
|
+
__export2(ts_SignatureHelp_exports, {
|
|
249947
249951
|
getArgumentInfoForCompletions: () => getArgumentInfoForCompletions,
|
|
249948
249952
|
getSignatureHelpItems: () => getSignatureHelpItems
|
|
249949
249953
|
});
|
|
@@ -250489,7 +250493,7 @@ ${content}
|
|
|
250489
250493
|
return { name: typeParameter.symbol.name, documentation: typeParameter.symbol.getDocumentationComment(checker), displayParts, isOptional: false, isRest: false };
|
|
250490
250494
|
}
|
|
250491
250495
|
var ts_SmartSelectionRange_exports = {};
|
|
250492
|
-
|
|
250496
|
+
__export2(ts_SmartSelectionRange_exports, {
|
|
250493
250497
|
getSmartSelectionRange: () => getSmartSelectionRange
|
|
250494
250498
|
});
|
|
250495
250499
|
function getSmartSelectionRange(pos, sourceFile) {
|
|
@@ -250720,7 +250724,7 @@ ${content}
|
|
|
250720
250724
|
}
|
|
250721
250725
|
}
|
|
250722
250726
|
var ts_SymbolDisplay_exports = {};
|
|
250723
|
-
|
|
250727
|
+
__export2(ts_SymbolDisplay_exports, {
|
|
250724
250728
|
getSymbolDisplayPartsDocumentationAndSymbolKind: () => getSymbolDisplayPartsDocumentationAndSymbolKind,
|
|
250725
250729
|
getSymbolKind: () => getSymbolKind,
|
|
250726
250730
|
getSymbolModifiers: () => getSymbolModifiers
|
|
@@ -251688,7 +251692,7 @@ ${content}
|
|
|
251688
251692
|
});
|
|
251689
251693
|
}
|
|
251690
251694
|
var ts_textChanges_exports = {};
|
|
251691
|
-
|
|
251695
|
+
__export2(ts_textChanges_exports, {
|
|
251692
251696
|
ChangeTracker: () => ChangeTracker,
|
|
251693
251697
|
LeadingTriviaOption: () => LeadingTriviaOption,
|
|
251694
251698
|
TrailingTriviaOption: () => TrailingTriviaOption,
|
|
@@ -253105,7 +253109,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
253105
253109
|
});
|
|
253106
253110
|
}
|
|
253107
253111
|
var ts_formatting_exports = {};
|
|
253108
|
-
|
|
253112
|
+
__export2(ts_formatting_exports, {
|
|
253109
253113
|
FormattingContext: () => FormattingContext,
|
|
253110
253114
|
FormattingRequestKind: () => FormattingRequestKind,
|
|
253111
253115
|
RuleAction: () => RuleAction,
|
|
@@ -257005,7 +257009,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
257005
257009
|
}
|
|
257006
257010
|
})(SmartIndenter || (SmartIndenter = {}));
|
|
257007
257011
|
var ts_preparePasteEdits_exports = {};
|
|
257008
|
-
|
|
257012
|
+
__export2(ts_preparePasteEdits_exports, {
|
|
257009
257013
|
preparePasteEdits: () => preparePasteEdits
|
|
257010
257014
|
});
|
|
257011
257015
|
function preparePasteEdits(sourceFile, copiedFromRange, checker) {
|
|
@@ -257043,7 +257047,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
257043
257047
|
return shouldProvidePasteEdits;
|
|
257044
257048
|
}
|
|
257045
257049
|
var ts_PasteEdits_exports = {};
|
|
257046
|
-
|
|
257050
|
+
__export2(ts_PasteEdits_exports, {
|
|
257047
257051
|
pasteEditsProvider: () => pasteEditsProvider
|
|
257048
257052
|
});
|
|
257049
257053
|
var fixId55 = "providePostPasteEdits";
|
|
@@ -257150,7 +257154,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
257150
257154
|
};
|
|
257151
257155
|
}
|
|
257152
257156
|
var ts_exports2 = {};
|
|
257153
|
-
|
|
257157
|
+
__export2(ts_exports2, {
|
|
257154
257158
|
ANONYMOUS: () => ANONYMOUS,
|
|
257155
257159
|
AccessFlags: () => AccessFlags,
|
|
257156
257160
|
AssertionLevel: () => AssertionLevel,
|
|
@@ -259505,7 +259509,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
259505
259509
|
};
|
|
259506
259510
|
}
|
|
259507
259511
|
var ts_server_exports3 = {};
|
|
259508
|
-
|
|
259512
|
+
__export2(ts_server_exports3, {
|
|
259509
259513
|
ActionInvalidate: () => ActionInvalidate,
|
|
259510
259514
|
ActionPackageInstalled: () => ActionPackageInstalled,
|
|
259511
259515
|
ActionSet: () => ActionSet,
|
|
@@ -259603,7 +259607,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
259603
259607
|
updateProjectIfDirty: () => updateProjectIfDirty
|
|
259604
259608
|
});
|
|
259605
259609
|
var ts_server_typingsInstaller_exports = {};
|
|
259606
|
-
|
|
259610
|
+
__export2(ts_server_typingsInstaller_exports, {
|
|
259607
259611
|
TypingsInstaller: () => TypingsInstaller,
|
|
259608
259612
|
getNpmCommandForInstallation: () => getNpmCommandForInstallation,
|
|
259609
259613
|
installNpmPackages: () => installNpmPackages,
|
|
@@ -260170,7 +260174,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
260170
260174
|
return base === "tsconfig.json" || base === "jsconfig.json" ? base : void 0;
|
|
260171
260175
|
}
|
|
260172
260176
|
var ts_server_protocol_exports = {};
|
|
260173
|
-
|
|
260177
|
+
__export2(ts_server_protocol_exports, {
|
|
260174
260178
|
ClassificationType: () => ClassificationType,
|
|
260175
260179
|
CommandTypes: () => CommandTypes,
|
|
260176
260180
|
CompletionTriggerKind: () => CompletionTriggerKind,
|
|
@@ -272261,7 +272265,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
272261
272265
|
_TypingsInstallerAdapter.requestDelayMillis = 100;
|
|
272262
272266
|
var TypingsInstallerAdapter = _TypingsInstallerAdapter;
|
|
272263
272267
|
var ts_server_exports4 = {};
|
|
272264
|
-
|
|
272268
|
+
__export2(ts_server_exports4, {
|
|
272265
272269
|
ActionInvalidate: () => ActionInvalidate,
|
|
272266
272270
|
ActionPackageInstalled: () => ActionPackageInstalled,
|
|
272267
272271
|
ActionSet: () => ActionSet,
|
|
@@ -304037,10 +304041,26 @@ var init_daemon_supervision = __esm({
|
|
|
304037
304041
|
}
|
|
304038
304042
|
});
|
|
304039
304043
|
|
|
304044
|
+
// packages/cli/src/daemon-tray.ts
|
|
304045
|
+
var daemon_tray_exports = {};
|
|
304046
|
+
__export(daemon_tray_exports, {
|
|
304047
|
+
installDaemonTrayCompanion: () => installDaemonTrayCompanion
|
|
304048
|
+
});
|
|
304049
|
+
import { createRequire } from "node:module";
|
|
304050
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
304051
|
+
async function installDaemonTrayCompanion(options) {
|
|
304052
|
+
const helper = createRequire(import.meta.url)(existsSync5(new URL("./omnius-tray-install.cjs", import.meta.url)) ? "./omnius-tray-install.cjs" : "../scripts/omnius-tray-install.cjs");
|
|
304053
|
+
return helper.installTrayCompanion(options);
|
|
304054
|
+
}
|
|
304055
|
+
var init_daemon_tray = __esm({
|
|
304056
|
+
"packages/cli/src/daemon-tray.ts"() {
|
|
304057
|
+
}
|
|
304058
|
+
});
|
|
304059
|
+
|
|
304040
304060
|
// packages/cli/src/daemon-service.ts
|
|
304041
304061
|
import { spawn } from "node:child_process";
|
|
304042
|
-
import { createRequire } from "node:module";
|
|
304043
|
-
import { chownSync, existsSync as
|
|
304062
|
+
import { createRequire as createRequire2 } from "node:module";
|
|
304063
|
+
import { chownSync, existsSync as existsSync6, mkdirSync as mkdirSync5, readFileSync as readFileSync5, realpathSync as realpathSync2, renameSync as renameSync3, writeFileSync as writeFileSync3 } from "node:fs";
|
|
304044
304064
|
import { homedir as homedir14, userInfo } from "node:os";
|
|
304045
304065
|
import { dirname as dirname7, isAbsolute as isAbsolute6, join as join14, resolve as resolve10 } from "node:path";
|
|
304046
304066
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
@@ -304095,11 +304115,18 @@ function daemonOwnerAwareRunner(owner, run2 = runDaemonServiceCommand) {
|
|
|
304095
304115
|
...args
|
|
304096
304116
|
], timeoutMs) : run2(command, args, timeoutMs);
|
|
304097
304117
|
}
|
|
304118
|
+
function serviceIsBusy(active) {
|
|
304119
|
+
return ["active", "activating", "reloading", "deactivating"].includes(active);
|
|
304120
|
+
}
|
|
304121
|
+
async function assertNoCompetingDaemonService(scope, owner, run2 = runDaemonServiceCommand) {
|
|
304122
|
+
const other = await discoverManagedDaemonService(daemonOwnerAwareRunner(owner, run2), scope === "system" ? "user" : "system");
|
|
304123
|
+
if (other && serviceIsBusy(other.active)) throw new Error(`The ${other.scope} daemon unit is ${other.active}; stop/disable the old ${other.scope} unit first before starting the ${scope} daemon service. No existing service was stopped.`);
|
|
304124
|
+
}
|
|
304098
304125
|
function loadDaemonEnvironmentModule() {
|
|
304099
304126
|
if (daemonEnvironmentModule) return daemonEnvironmentModule;
|
|
304100
|
-
const here = dirname7(fileURLToPath2(import.meta.url)), require2 =
|
|
304127
|
+
const here = dirname7(fileURLToPath2(import.meta.url)), require2 = createRequire2(import.meta.url);
|
|
304101
304128
|
for (const candidate of [join14(here, "daemon-environment.cjs"), join14(here, "..", "scripts", "daemon-environment.cjs")])
|
|
304102
|
-
if (
|
|
304129
|
+
if (existsSync6(candidate)) return daemonEnvironmentModule = require2(candidate);
|
|
304103
304130
|
throw new Error("The daemon environment helper is missing from this installation");
|
|
304104
304131
|
}
|
|
304105
304132
|
function daemonEnvironmentFilesFromShow(output) {
|
|
@@ -304246,6 +304273,69 @@ async function resolveDaemonServiceDefinition(options, run2 = runDaemonServiceCo
|
|
|
304246
304273
|
workingDirectory: resolve10(options.workingDirectory || homeDir)
|
|
304247
304274
|
};
|
|
304248
304275
|
}
|
|
304276
|
+
function writeAtomic(path3, text3) {
|
|
304277
|
+
mkdirSync5(dirname7(path3), { recursive: true });
|
|
304278
|
+
const temporary = `${path3}.tmp.${process.pid}.${Date.now()}`;
|
|
304279
|
+
writeFileSync3(temporary, text3, { mode: 420 });
|
|
304280
|
+
renameSync3(temporary, path3);
|
|
304281
|
+
}
|
|
304282
|
+
async function installDaemonService(options) {
|
|
304283
|
+
if (process.platform !== "linux") throw new Error("Daemon service installation currently supports Linux systemd");
|
|
304284
|
+
if (options.scope === "system" && process.getuid?.() !== 0) throw new Error("System service installation requires administrator privileges");
|
|
304285
|
+
const definition = await resolveDaemonServiceDefinition(options);
|
|
304286
|
+
if (options.start) await assertNoCompetingDaemonService(options.scope, definition);
|
|
304287
|
+
if (options.scope === "user" && (await discoverManagedDaemonService())?.scope === "system")
|
|
304288
|
+
throw new Error("A system daemon unit is installed; manage it instead of installing a competing user service");
|
|
304289
|
+
const envDir = join14(definition.homeDir, ".config", "omnius"), envPath = join14(envDir, "daemon.env");
|
|
304290
|
+
const configDir = dirname7(envDir), configExisted = existsSync6(configDir);
|
|
304291
|
+
mkdirSync5(envDir, { recursive: true });
|
|
304292
|
+
mkdirSync5(definition.dataDir, { recursive: true, mode: 448 });
|
|
304293
|
+
if (!existsSync6(envPath)) writeFileSync3(envPath, "# Optional Omnius daemon runtime overrides (KEY=value).\n", { mode: 384 });
|
|
304294
|
+
if (process.getuid?.() === 0) for (const path4 of [...!configExisted ? [configDir] : [], envDir, envPath, definition.dataDir]) chownSync(path4, definition.uid, definition.gid);
|
|
304295
|
+
const path3 = options.scope === "system" ? join14("/etc/systemd/system", DAEMON_SERVICE_UNIT) : join14(definition.homeDir, ".config/systemd/user", DAEMON_SERVICE_UNIT);
|
|
304296
|
+
writeAtomic(path3, buildDaemonSystemdUnit(definition));
|
|
304297
|
+
if (options.scope === "user" && process.getuid?.() === 0) chownSync(path3, definition.uid, definition.gid);
|
|
304298
|
+
const run2 = async (args, timeout = 2e4) => {
|
|
304299
|
+
const result = await runDaemonServiceControl(options.scope, args, timeout);
|
|
304300
|
+
if (result.code !== 0) throw new Error(`systemctl ${args[0]} failed: ${result.stderr.trim() || result.stdout.trim() || result.code}`);
|
|
304301
|
+
};
|
|
304302
|
+
await run2(["daemon-reload"]);
|
|
304303
|
+
const { installDaemonTrayCompanion: installDaemonTrayCompanion2 } = await Promise.resolve().then(() => (init_daemon_tray(), daemon_tray_exports));
|
|
304304
|
+
await installDaemonTrayCompanion2({
|
|
304305
|
+
nodePath: definition.nodePath,
|
|
304306
|
+
entrypoint: definition.entrypoint,
|
|
304307
|
+
homeDir: definition.homeDir,
|
|
304308
|
+
dataDir: definition.dataDir,
|
|
304309
|
+
userName: definition.user,
|
|
304310
|
+
uid: definition.uid,
|
|
304311
|
+
gid: definition.gid,
|
|
304312
|
+
port: definition.port
|
|
304313
|
+
});
|
|
304314
|
+
if (options.enable) await run2(["enable", DAEMON_SERVICE_UNIT]);
|
|
304315
|
+
if (options.start) await run2(["start", DAEMON_SERVICE_UNIT], 13e4);
|
|
304316
|
+
return {
|
|
304317
|
+
path: path3,
|
|
304318
|
+
scope: options.scope,
|
|
304319
|
+
user: definition.user,
|
|
304320
|
+
uid: definition.uid,
|
|
304321
|
+
dataDir: definition.dataDir,
|
|
304322
|
+
port: definition.port,
|
|
304323
|
+
enabled: options.enable === true,
|
|
304324
|
+
started: options.start === true
|
|
304325
|
+
};
|
|
304326
|
+
}
|
|
304327
|
+
async function daemonServiceAction(action, scope) {
|
|
304328
|
+
const service = await discoverManagedDaemonService(runDaemonServiceCommand, scope);
|
|
304329
|
+
if (!service && !scope) throw new Error("No Omnius daemon service is installed; run omnius daemon install");
|
|
304330
|
+
const selected = scope ?? service.scope;
|
|
304331
|
+
if (action === "start" || action === "restart") await assertNoCompetingDaemonService(selected, await serviceOwnerAccount(service?.user));
|
|
304332
|
+
if (action === "start" || action === "restart") {
|
|
304333
|
+
await ensureManagedDaemonEnvironmentFiles(service);
|
|
304334
|
+
await runDaemonServiceControl(selected, ["reset-failed", DAEMON_SERVICE_UNIT], 1e4);
|
|
304335
|
+
}
|
|
304336
|
+
const result = await runDaemonServiceControl(selected, [action, DAEMON_SERVICE_UNIT], 13e4);
|
|
304337
|
+
if (result.code !== 0) throw new Error(`Cannot ${action} ${selected} daemon service: ${result.stderr.trim() || result.stdout.trim() || result.code}`);
|
|
304338
|
+
}
|
|
304249
304339
|
var DAEMON_SERVICE_UNIT, DAEMON_SERVICE_STOP_GRACE_MS, DAEMON_SERVICE_COMMAND_TIMEOUT_MS, runDaemonServiceCommand, daemonEnvironmentModule;
|
|
304250
304340
|
var init_daemon_service = __esm({
|
|
304251
304341
|
"packages/cli/src/daemon-service.ts"() {
|
|
@@ -304286,7 +304376,7 @@ var init_daemon_service = __esm({
|
|
|
304286
304376
|
|
|
304287
304377
|
// packages/cli/src/daemon.ts
|
|
304288
304378
|
import { spawn as spawn2 } from "node:child_process";
|
|
304289
|
-
import { existsSync as
|
|
304379
|
+
import { existsSync as existsSync7, readFileSync as readFileSync6, writeFileSync as writeFileSync4, mkdirSync as mkdirSync6, unlinkSync as unlinkSync2, openSync as openSync2, closeSync as closeSync2, writeSync, statSync as statSync2, renameSync as renameSync4 } from "node:fs";
|
|
304290
304380
|
import { join as join15 } from "node:path";
|
|
304291
304381
|
import { homedir as homedir15 } from "node:os";
|
|
304292
304382
|
import { createServer as createNetServer } from "node:net";
|
|
@@ -304575,7 +304665,7 @@ async function repairManagedDaemonUnit(port, preferredEntrypoint) {
|
|
|
304575
304665
|
const unitPath = join15(unitDir, "omnius-daemon.service");
|
|
304576
304666
|
mkdirSync6(unitDir, { recursive: true });
|
|
304577
304667
|
const priorUnitPath = managed?.fragmentPath || unitPath;
|
|
304578
|
-
const unit =
|
|
304668
|
+
const unit = existsSync7(priorUnitPath) ? repairDaemonSystemdUnit(readFileSync6(priorUnitPath, "utf8"), definition) : buildDaemonSystemdUnit(definition);
|
|
304579
304669
|
const tmp = `${unitPath}.tmp.${process.pid}.${Date.now()}`;
|
|
304580
304670
|
writeFileSync4(tmp, unit, { encoding: "utf8", mode: 384 });
|
|
304581
304671
|
renameSync4(tmp, unitPath);
|
|
@@ -304763,6 +304853,7 @@ async function restartDaemon(port, expectedVersion, preferredEntrypoint) {
|
|
|
304763
304853
|
const started = await runUserSystemctl(["start", "omnius-daemon.service"]);
|
|
304764
304854
|
if (started.ok && (await waitForDaemonReady(p, expectedVersion)).ok) return true;
|
|
304765
304855
|
}
|
|
304856
|
+
if (await reinstallUserDaemonService(p, expectedVersion, preferredEntrypoint)) return true;
|
|
304766
304857
|
await runUserSystemctl(["stop", "omnius-daemon.service"]);
|
|
304767
304858
|
if (!await waitForDaemonStopped(p)) {
|
|
304768
304859
|
const reclaimed2 = await reclaimOwnedDaemonListener(p);
|
|
@@ -304810,11 +304901,35 @@ async function resolveDaemonCommand(nodeExe, preferredEntrypoint) {
|
|
|
304810
304901
|
for (const candidate of candidates) {
|
|
304811
304902
|
if (!candidate || seen.has(candidate)) continue;
|
|
304812
304903
|
seen.add(candidate);
|
|
304813
|
-
if (!
|
|
304904
|
+
if (!existsSync7(candidate)) continue;
|
|
304814
304905
|
return commandForEntrypoint(candidate, nodeExe);
|
|
304815
304906
|
}
|
|
304816
304907
|
return null;
|
|
304817
304908
|
}
|
|
304909
|
+
async function reinstallUserDaemonService(port, expectedVersion, preferredEntrypoint) {
|
|
304910
|
+
if (process.platform !== "linux" || process.getuid?.() === 0) return false;
|
|
304911
|
+
try {
|
|
304912
|
+
if ((await discoverManagedDaemonService())?.scope !== "user") return false;
|
|
304913
|
+
const command = await resolveDaemonCommand(process.execPath, preferredEntrypoint);
|
|
304914
|
+
if (!command || command.args[0] === "serve") return false;
|
|
304915
|
+
await installDaemonService({
|
|
304916
|
+
scope: "user",
|
|
304917
|
+
entrypoint: command.args[0],
|
|
304918
|
+
nodePath: command.command,
|
|
304919
|
+
port,
|
|
304920
|
+
homeDir: homedir15(),
|
|
304921
|
+
dataDir: OMNIUS_DIR,
|
|
304922
|
+
enable: true,
|
|
304923
|
+
start: false
|
|
304924
|
+
});
|
|
304925
|
+
await runUserSystemctl(["stop", "omnius-daemon.service"]);
|
|
304926
|
+
await waitForDaemonStopped(port);
|
|
304927
|
+
await daemonServiceAction("start", "user");
|
|
304928
|
+
return (await waitForDaemonReady(port, expectedVersion)).ok;
|
|
304929
|
+
} catch {
|
|
304930
|
+
return false;
|
|
304931
|
+
}
|
|
304932
|
+
}
|
|
304818
304933
|
async function startDaemon(port = getDaemonPort(), preferredEntrypoint) {
|
|
304819
304934
|
mkdirSync6(OMNIUS_DIR, { recursive: true });
|
|
304820
304935
|
const daemonPort = port;
|
|
@@ -304945,7 +305060,7 @@ import {
|
|
|
304945
305060
|
constants as constants3,
|
|
304946
305061
|
chmodSync,
|
|
304947
305062
|
closeSync as closeSync4,
|
|
304948
|
-
existsSync as
|
|
305063
|
+
existsSync as existsSync8,
|
|
304949
305064
|
fchmodSync,
|
|
304950
305065
|
fstatSync as fstatSync2,
|
|
304951
305066
|
fsyncSync as fsyncSync2,
|
|
@@ -305862,7 +305977,7 @@ function atomicPrivateJson(path3, value) {
|
|
|
305862
305977
|
}
|
|
305863
305978
|
} finally {
|
|
305864
305979
|
try {
|
|
305865
|
-
if (
|
|
305980
|
+
if (existsSync8(temp)) unlinkSync4(temp);
|
|
305866
305981
|
} catch {
|
|
305867
305982
|
}
|
|
305868
305983
|
}
|
|
@@ -305907,7 +306022,7 @@ function npmCandidates(execPath = process.execPath) {
|
|
|
305907
306022
|
return process.platform === "win32" ? [join18(nodeDir, "npm.cmd"), join18(nodeDir, "npm.exe"), "npm.cmd", "npm"] : [join18(nodeDir, "npm"), "/usr/local/bin/npm", "/usr/bin/npm", "npm"];
|
|
305908
306023
|
}
|
|
305909
306024
|
function runnableCommand(candidate) {
|
|
305910
|
-
return candidate.includes("/") || candidate.includes("\\") ?
|
|
306025
|
+
return candidate.includes("/") || candidate.includes("\\") ? existsSync8(candidate) : true;
|
|
305911
306026
|
}
|
|
305912
306027
|
function resolveNpmPath(execPath = process.execPath) {
|
|
305913
306028
|
const candidate = npmCandidates(execPath).find(runnableCommand);
|
|
@@ -306044,7 +306159,7 @@ async function inspectGlobalOmniusInstall(expectedVersion, options = {}) {
|
|
|
306044
306159
|
throw new Error(`Could not resolve npm global prefix: ${prefixResult.stderr.trim() || "npm prefix -g failed"}`);
|
|
306045
306160
|
}
|
|
306046
306161
|
const npmPrefix = prefixResult.stdout.trim();
|
|
306047
|
-
const packageJsonPath = globalPackageCandidates(npmPrefix).find(
|
|
306162
|
+
const packageJsonPath = globalPackageCandidates(npmPrefix).find(existsSync8);
|
|
306048
306163
|
if (!packageJsonPath) throw new Error(`Global omnius package.json not found under ${npmPrefix}`);
|
|
306049
306164
|
const packageJsonRaw = readFileSync8(packageJsonPath, "utf8");
|
|
306050
306165
|
const installedVersion = String(JSON.parse(packageJsonRaw)?.version ?? "");
|
|
@@ -306054,7 +306169,7 @@ async function inspectGlobalOmniusInstall(expectedVersion, options = {}) {
|
|
|
306054
306169
|
const runtime = inspectNpmRuntimeInstallation(dirname10(packageJsonPath));
|
|
306055
306170
|
if (runtime.packageHash !== createHash4("sha256").update(packageJsonRaw).digest("hex"))
|
|
306056
306171
|
throw new Error("Global Omnius manifest changed during runtime verification");
|
|
306057
|
-
const executablePath = globalExecutableCandidates(npmPrefix).find(
|
|
306172
|
+
const executablePath = globalExecutableCandidates(npmPrefix).find(existsSync8);
|
|
306058
306173
|
if (!executablePath) throw new Error(`Global Omnius executable not found under ${npmPrefix}`);
|
|
306059
306174
|
const versionResult = await runCommand(executablePath, ["--version"], { env: options.env, cwd: options.cwd, timeout: 1e4 });
|
|
306060
306175
|
const executableVersion = commandVersion(`${versionResult.stdout}
|
|
@@ -306129,11 +306244,11 @@ function restoreOmniusExecutableLink(prefix, installation) {
|
|
|
306129
306244
|
const executable = globalExecutableCandidates(prefix)[0];
|
|
306130
306245
|
const target = join18(installation.modulesRoot, "omnius", installation.binTarget);
|
|
306131
306246
|
if (process.platform === "win32") {
|
|
306132
|
-
if (!
|
|
306247
|
+
if (!existsSync8(executable)) throw new Error("The restored Omnius Windows executable shim is missing.");
|
|
306133
306248
|
return;
|
|
306134
306249
|
}
|
|
306135
306250
|
const directory = dirname10(executable);
|
|
306136
|
-
if (!
|
|
306251
|
+
if (!existsSync8(directory)) mkdirSync7(directory, { recursive: false, mode: 493 });
|
|
306137
306252
|
const metadata = lstatSync4(directory);
|
|
306138
306253
|
if (!metadata.isDirectory() || metadata.isSymbolicLink() || metadata.uid !== process.getuid?.() || (metadata.mode & 2) !== 0)
|
|
306139
306254
|
throw new Error("The Omnius executable directory is unsafe; no link was changed.");
|
|
@@ -306564,7 +306679,7 @@ import { spawn as spawn4 } from "node:child_process";
|
|
|
306564
306679
|
import {
|
|
306565
306680
|
closeSync as closeSync6,
|
|
306566
306681
|
chmodSync as chmodSync2,
|
|
306567
|
-
existsSync as
|
|
306682
|
+
existsSync as existsSync10,
|
|
306568
306683
|
mkdirSync as mkdirSync9,
|
|
306569
306684
|
openSync as openSync6,
|
|
306570
306685
|
readFileSync as readFileSync10,
|
|
@@ -307110,7 +307225,7 @@ var PROVIDER_PRESETS = [
|
|
|
307110
307225
|
];
|
|
307111
307226
|
|
|
307112
307227
|
// packages/cli/src/provider-credentials.ts
|
|
307113
|
-
import { constants as constants4, closeSync as closeSync5, existsSync as
|
|
307228
|
+
import { constants as constants4, closeSync as closeSync5, existsSync as existsSync9, fstatSync as fstatSync3, fsyncSync as fsyncSync3, lstatSync as lstatSync5, mkdirSync as mkdirSync8, openSync as openSync5, readFileSync as readFileSync9, readdirSync as readdirSync2, renameSync as renameSync6, unlinkSync as unlinkSync5, writeFileSync as writeFileSync7 } from "node:fs";
|
|
307114
307229
|
var NOFOLLOW = constants4.O_NOFOLLOW ?? 0;
|
|
307115
307230
|
|
|
307116
307231
|
// packages/cli/src/config.ts
|
|
@@ -307442,7 +307557,7 @@ async function getTrayStatus(explicitEndpoint) {
|
|
|
307442
307557
|
// requested endpoint. This previously kept resurrecting an obsolete
|
|
307443
307558
|
// custom port (for example 11535) after the daemon had returned to 11435.
|
|
307444
307559
|
endpoint: running || !explicitEndpoint ? state?.endpoint || requestedEndpoint : requestedEndpoint,
|
|
307445
|
-
registered:
|
|
307560
|
+
registered: existsSync10(paths.autostartFile),
|
|
307446
307561
|
registrationFile: paths.autostartFile,
|
|
307447
307562
|
...state?.health ? { health: state.health } : {},
|
|
307448
307563
|
supported: support.supported,
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.939",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.939",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "CC-BY-NC-4.0",
|
|
12
12
|
"dependencies": {
|
|
@@ -5287,12 +5287,12 @@
|
|
|
5287
5287
|
}
|
|
5288
5288
|
},
|
|
5289
5289
|
"node_modules/axios": {
|
|
5290
|
-
"version": "1.21.
|
|
5291
|
-
"resolved": "https://registry.npmjs.org/axios/-/axios-1.21.
|
|
5292
|
-
"integrity": "sha512-
|
|
5290
|
+
"version": "1.21.1",
|
|
5291
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.21.1.tgz",
|
|
5292
|
+
"integrity": "sha512-6eI5Q/Y4u/Um9dDlsRoq5pY2rxnUTv+L4PpLitnbk/i4jb3MxLZ5CsN5Ih3IysbeRYK4pR+P7qfMsOQl9fwwFQ==",
|
|
5293
5293
|
"license": "MIT",
|
|
5294
5294
|
"dependencies": {
|
|
5295
|
-
"follow-redirects": "^1.16.
|
|
5295
|
+
"follow-redirects": "^1.16.2",
|
|
5296
5296
|
"form-data": "^4.0.6",
|
|
5297
5297
|
"https-proxy-agent": "^5.0.1",
|
|
5298
5298
|
"proxy-from-env": "^2.1.0"
|
|
@@ -7880,9 +7880,9 @@
|
|
|
7880
7880
|
}
|
|
7881
7881
|
},
|
|
7882
7882
|
"node_modules/jose": {
|
|
7883
|
-
"version": "6.2.
|
|
7884
|
-
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.
|
|
7885
|
-
"integrity": "sha512-
|
|
7883
|
+
"version": "6.2.17",
|
|
7884
|
+
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.17.tgz",
|
|
7885
|
+
"integrity": "sha512-wOuK9V1yujQFH5S0ZWmLcDZN7+IKh9bUCC2ZPCf2HDlol3WWHy+PPyNjEI75FXRLMp3vDKQcupP59xhVU95hcg==",
|
|
7886
7886
|
"license": "MIT",
|
|
7887
7887
|
"funding": {
|
|
7888
7888
|
"url": "https://github.com/sponsors/panva"
|
package/package.json
CHANGED