pushary 1.9.99 → 1.9.101
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/CHANGELOG.md +16 -0
- package/dist/{api-UGCOLWF4.js → api-3O3GJV3V.js} +10 -10
- package/dist/bin/pushary-bell-hook.js +26 -26
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +34 -34
- package/dist/bin/pushary-codex-bridge.js +21 -21
- package/dist/bin/pushary-codex-hook.js +31 -31
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +14 -14
- package/dist/bin/pushary-connect.js +27 -27
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +39 -39
- package/dist/bin/pushary-disconnect.js +26 -26
- package/dist/bin/pushary-display-hook.js +17 -17
- package/dist/bin/pushary-doctor.js +42 -42
- package/dist/bin/pushary-elicitation-hook.js +26 -26
- package/dist/bin/pushary-gemini-bridge.js +15 -15
- package/dist/bin/pushary-gemini-hook.js +28 -28
- package/dist/bin/pushary-hook.js +30 -30
- package/dist/bin/pushary-login.js +20 -20
- package/dist/bin/pushary-logout.js +25 -25
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +25 -25
- package/dist/bin/pushary-opencode-hook.js +27 -27
- package/dist/bin/pushary-permission-denied-hook.js +30 -30
- package/dist/bin/pushary-permission-hook.js +30 -30
- package/dist/bin/pushary-post-hook.js +25 -25
- package/dist/bin/pushary-prompt-hook.js +25 -25
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +35 -35
- package/dist/bin/pushary-setup.js +48 -48
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +32 -32
- package/dist/bin/pushary-stop-hook.js +25 -25
- package/dist/bin/pushary-stopfailure-hook.js +25 -25
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +18 -18
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +40 -40
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-BSG7IIMK.js → chunk-2PR5EP7N.js} +4 -4
- package/dist/{chunk-LN53RAXQ.js → chunk-2S5J5YI2.js} +4 -4
- package/dist/{chunk-35Q2Z7HD.js → chunk-3ITURBPE.js} +3 -3
- package/dist/{chunk-PDC4UQUC.js → chunk-3K7PB5LI.js} +3 -3
- package/dist/{chunk-2CO34UJK.js → chunk-3OIUMHHO.js} +2 -2
- package/dist/{chunk-E7WAVZNC.js → chunk-3Q2X3T3U.js} +1 -1
- package/dist/{chunk-EBGUGOS3.js → chunk-4FAJQPFY.js} +59 -3
- package/dist/{chunk-P7SBX7QQ.js → chunk-4QO267OY.js} +1 -1
- package/dist/{chunk-FRAXLEC2.js → chunk-4TVLPGJV.js} +1 -1
- package/dist/{chunk-GOHFQONY.js → chunk-5PW25NHB.js} +3 -3
- package/dist/{chunk-EXDEE4KB.js → chunk-6N5DQG5F.js} +2 -2
- package/dist/{chunk-IOMU3A6E.js → chunk-7BIVBOD5.js} +3 -3
- package/dist/{chunk-5UKWIMMW.js → chunk-7OZOFTTB.js} +5 -5
- package/dist/{chunk-TBE76OH7.js → chunk-AFGMZZEB.js} +2 -2
- package/dist/{chunk-YIPSSNTL.js → chunk-AHIAB7JQ.js} +1 -1
- package/dist/{chunk-YLBUBQEL.js → chunk-AVXG5QB2.js} +5 -5
- package/dist/{chunk-54476CMC.js → chunk-AWF5WICI.js} +2 -2
- package/dist/{chunk-AWO5VRPH.js → chunk-AZSOH2SF.js} +2 -2
- package/dist/{chunk-7DJWJWRS.js → chunk-BQHZRH6S.js} +9 -3
- package/dist/{chunk-PVERXZOS.js → chunk-CQ7QE4W2.js} +1 -1
- package/dist/{chunk-PT43DN4J.js → chunk-E7WJQBK3.js} +14 -14
- package/dist/{chunk-NTAVA4LB.js → chunk-EOD3DBIN.js} +3 -3
- package/dist/{chunk-MCZF73KL.js → chunk-FF7L4B3W.js} +6 -6
- package/dist/{chunk-56MGFZDM.js → chunk-G7RMOSRX.js} +1 -1
- package/dist/{chunk-BYGU5IV4.js → chunk-HYAQIKYB.js} +4 -4
- package/dist/{chunk-HF24RY6N.js → chunk-IOQ3ZCAE.js} +1 -1
- package/dist/{chunk-GKRGH3SF.js → chunk-IUBDGISO.js} +10 -10
- package/dist/{chunk-GJ7CPXXB.js → chunk-J6SSLXSU.js} +4 -4
- package/dist/{chunk-GNW6AHGY.js → chunk-JECH4NJL.js} +3 -3
- package/dist/{chunk-LM2YX5SO.js → chunk-JKOAAIJD.js} +5 -5
- package/dist/{chunk-HVQSHNVK.js → chunk-JPKJBKZE.js} +6 -6
- package/dist/{chunk-ZP7R762D.js → chunk-JUA7MX2V.js} +4 -4
- package/dist/{chunk-73WH2KOH.js → chunk-JVE4P54I.js} +11 -4
- package/dist/{chunk-4OG7AYQN.js → chunk-KACD6W6J.js} +1 -1
- package/dist/{chunk-UMRO47H3.js → chunk-KLJ2CTT7.js} +3 -3
- package/dist/{chunk-L6Q5FZ54.js → chunk-KOUB4ZLX.js} +1 -1
- package/dist/{chunk-N4SM5GMN.js → chunk-KTM2X3XQ.js} +11 -11
- package/dist/{chunk-PED2VA34.js → chunk-LURFSDCL.js} +1 -1
- package/dist/{chunk-VWGZZSJG.js → chunk-MK2XE66G.js} +3 -3
- package/dist/{chunk-TMRJOWWU.js → chunk-MP3SEXXJ.js} +1 -1
- package/dist/{chunk-BFA36PR4.js → chunk-NZQEABRO.js} +6 -6
- package/dist/{chunk-2DKM45TQ.js → chunk-O5ZKMUTP.js} +6 -6
- package/dist/{chunk-KRQKPVHG.js → chunk-O7ITTNDD.js} +2 -2
- package/dist/{chunk-RB4E2YHR.js → chunk-PM34Z5WX.js} +6 -6
- package/dist/{chunk-3QTUISNT.js → chunk-PWGD5EP6.js} +1 -1
- package/dist/{chunk-3NS3YK5S.js → chunk-QD57EL3I.js} +1 -1
- package/dist/{chunk-T3HCMKX4.js → chunk-RVSRPDRF.js} +2 -2
- package/dist/{chunk-EXUGDNCF.js → chunk-SA4PCB6N.js} +7 -7
- package/dist/{chunk-VSKHU5XR.js → chunk-SRE6XJ3K.js} +6 -6
- package/dist/{chunk-EJ7DI2HX.js → chunk-SXAZPWL7.js} +5 -5
- package/dist/{chunk-JE6UEOMG.js → chunk-T6TQETDN.js} +4 -4
- package/dist/{chunk-NDOQN5VC.js → chunk-T7G6IIV4.js} +3 -3
- package/dist/{chunk-UKX7IMD2.js → chunk-TLERJKSE.js} +1 -1
- package/dist/{chunk-JATIKUQ5.js → chunk-UOE26LPT.js} +5 -5
- package/dist/{chunk-7C5M5NY3.js → chunk-UQWEH7CK.js} +3 -3
- package/dist/{chunk-QTFN3ND3.js → chunk-V5DV7XZN.js} +4 -4
- package/dist/{chunk-MLFZ4F2L.js → chunk-VD6CAELE.js} +4 -4
- package/dist/{chunk-AP2VXDQB.js → chunk-VJOMBYY5.js} +1 -1
- package/dist/{chunk-U4MEORPA.js → chunk-VSE4OIBT.js} +3 -3
- package/dist/{chunk-EIREGHP2.js → chunk-WPK2UWDU.js} +1 -1
- package/dist/{chunk-SYMYZNSB.js → chunk-WVAJSBI2.js} +1 -1
- package/dist/{chunk-KLLX5ZTC.js → chunk-WYJ6QM7K.js} +2 -2
- package/dist/{chunk-G24MYZIR.js → chunk-WZNLWDSL.js} +5 -5
- package/dist/{chunk-4CD75FOI.js → chunk-X3HBR57D.js} +7 -7
- package/dist/{chunk-OBIXCQPF.js → chunk-Y3SZVZF6.js} +2 -2
- package/dist/{chunk-FSQXIJYX.js → chunk-Y7KRX7U4.js} +1 -1
- package/dist/{chunk-IBHSZUXM.js → chunk-YETNUPV5.js} +3 -3
- package/dist/{chunk-OLA7MWVD.js → chunk-Z2TX7DVU.js} +10 -10
- package/dist/{chunk-3VWS2EAB.js → chunk-ZCYLCD6L.js} +5 -5
- package/dist/{chunk-T7YK7FNA.js → chunk-ZXK46QT4.js} +2 -2
- package/dist/{codex-app-cards-switch-XMHI5UNS.js → codex-app-cards-switch-D475JLP5.js} +11 -11
- package/dist/{codex-desktop-launch-QSD3X65K.js → codex-desktop-launch-WOPEZMO6.js} +1 -1
- package/dist/{codex-session-launch-TKDH5MHT.js → codex-session-launch-AWWECV2L.js} +18 -18
- package/dist/{config-R3P7U2TH.js → config-A5EC37VZ.js} +3 -3
- package/dist/{global-upgrade-SYF6JI7C.js → global-upgrade-V6FA6MUF.js} +10 -10
- package/dist/{identity-VH233LC3.js → identity-BEPQQHNR.js} +4 -4
- package/dist/{live-capabilities-THIEYKPD.js → live-capabilities-EAM2QN73.js} +5 -5
- package/dist/{paths-UA5EZQAH.js → paths-2IEEYSHM.js} +3 -3
- package/dist/{reapply-QDTONXI3.js → reapply-GTEJJ6HZ.js} +28 -28
- package/dist/src/index.js +29 -29
- package/dist/{upgrade-lock-GHMTQ3JP.js → upgrade-lock-DLGVC34L.js} +4 -4
- package/dist/{usage-E3M5YPYW.js → usage-U6H5UFS2.js} +3 -3
- package/package.json +1 -1
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -2,43 +2,43 @@
|
|
|
2
2
|
import {
|
|
3
3
|
waitResponse,
|
|
4
4
|
waitWindowResponse
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TLERJKSE.js";
|
|
6
6
|
import {
|
|
7
7
|
exitOnFailedSettingsRequest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-FF7L4B3W.js";
|
|
9
9
|
import {
|
|
10
10
|
describeWaitLadder
|
|
11
11
|
} from "../chunk-CVWG2N3Y.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-ZXK46QT4.js";
|
|
13
13
|
import {
|
|
14
14
|
APPROVAL_RULES_PATH,
|
|
15
15
|
PUSH_WINDOW_COMMAND,
|
|
16
16
|
PUSH_WINDOW_RESET_COMMAND
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-WYJ6QM7K.js";
|
|
18
18
|
import {
|
|
19
19
|
createIo
|
|
20
20
|
} from "../chunk-FO3MDD26.js";
|
|
21
21
|
import {
|
|
22
22
|
exitOnHelpFlag
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-WPK2UWDU.js";
|
|
24
24
|
import {
|
|
25
25
|
parseFlags
|
|
26
26
|
} from "../chunk-NMUI3ZWG.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-HYAQIKYB.js";
|
|
28
28
|
import {
|
|
29
29
|
absoluteUrl
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-7BIVBOD5.js";
|
|
31
31
|
import {
|
|
32
32
|
pusharyFetch
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
33
|
+
} from "../chunk-KLJ2CTT7.js";
|
|
34
|
+
import "../chunk-6N5DQG5F.js";
|
|
35
|
+
import "../chunk-AFGMZZEB.js";
|
|
36
|
+
import "../chunk-O7ITTNDD.js";
|
|
37
|
+
import "../chunk-BQHZRH6S.js";
|
|
38
38
|
import {
|
|
39
39
|
getApiKey,
|
|
40
40
|
getBaseUrl
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-KOUB4ZLX.js";
|
|
42
42
|
import {
|
|
43
43
|
UsageError,
|
|
44
44
|
exitCodeFor
|
|
@@ -46,9 +46,9 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
EXIT
|
|
48
48
|
} from "../chunk-KZERVKTD.js";
|
|
49
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-PWGD5EP6.js";
|
|
50
50
|
import "../chunk-ZVU6WMMU.js";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-4FAJQPFY.js";
|
|
52
52
|
import "../chunk-MLKGABMK.js";
|
|
53
53
|
|
|
54
54
|
// bin/pushary-wait.ts
|
package/dist/bin/pushary.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installNetworkDefaults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-KLJ2CTT7.js";
|
|
5
|
+
import "../chunk-6N5DQG5F.js";
|
|
6
|
+
import "../chunk-O7ITTNDD.js";
|
|
7
|
+
import "../chunk-BQHZRH6S.js";
|
|
8
|
+
import "../chunk-KOUB4ZLX.js";
|
|
9
9
|
import "../chunk-PPY5N2E6.js";
|
|
10
10
|
import {
|
|
11
11
|
EXIT
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
LISTED_COMMANDS,
|
|
15
15
|
renderHelp,
|
|
16
16
|
resolveCommandName
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-PWGD5EP6.js";
|
|
18
18
|
import {
|
|
19
19
|
getPackageVersion
|
|
20
20
|
} from "../chunk-ZVU6WMMU.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-4FAJQPFY.js";
|
|
22
22
|
import "../chunk-MLKGABMK.js";
|
|
23
23
|
|
|
24
24
|
// src/cli/runtime.ts
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
} from "./chunk-G66WIAST.js";
|
|
14
14
|
import {
|
|
15
15
|
keyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HYAQIKYB.js";
|
|
17
17
|
import {
|
|
18
18
|
getBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
20
20
|
import {
|
|
21
21
|
NPX_LATEST_COMMAND
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PWGD5EP6.js";
|
|
23
23
|
import {
|
|
24
24
|
isValidApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4FAJQPFY.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/login-ui.ts
|
|
28
28
|
import { hostname } from "os";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O5ZKMUTP.js";
|
|
4
4
|
import {
|
|
5
5
|
canChangeApprovalSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WYJ6QM7K.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JECH4NJL.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-KZERVKTD.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PWGD5EP6.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/closing.ts
|
|
19
19
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readJsonSafe,
|
|
3
3
|
writeJsonAtomic
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BQHZRH6S.js";
|
|
5
5
|
import {
|
|
6
6
|
configFilePath
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
8
8
|
import {
|
|
9
9
|
readSetupOutcomeProperties
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4FAJQPFY.js";
|
|
11
11
|
|
|
12
12
|
// src/diagnostics/service-runtime.ts
|
|
13
13
|
var unescapeXml = (value) => value.replaceAll(""", '"').replaceAll("'", "'").replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RVSRPDRF.js";
|
|
4
4
|
import {
|
|
5
5
|
retryAgentCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JECH4NJL.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PWGD5EP6.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/codex-trust.ts
|
|
12
12
|
var CODEX_TRUST_TELEMETRY = {
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-XMSDA5WA.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
7
7
|
import {
|
|
8
8
|
compressTranscriptRecord,
|
|
9
9
|
redactSecretsFromContent,
|
|
10
10
|
transcriptRecordPlaintext
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4FAJQPFY.js";
|
|
12
12
|
|
|
13
13
|
// src/transcript-api.ts
|
|
14
14
|
var providerRecipientSchema = external_exports.object({
|
|
@@ -4924,16 +4924,72 @@ var GIT_DESTINATION_SETTING = String.raw`(?:remote\..+\.(?:url|pushurl)|url\..+\
|
|
|
4924
4924
|
var GIT_SETTING_THAT_CHANGES_WHERE_GIT_SENDS = new RegExp(`^${GIT_DESTINATION_SETTING}$`, "i");
|
|
4925
4925
|
var GIT_ONE_COMMAND_SETTING_THAT_CHANGES_WHERE_GIT_SENDS = new RegExp(`^${GIT_DESTINATION_SETTING}=`, "i");
|
|
4926
4926
|
var GIT_REMOTE_SUBCOMMAND = "remote";
|
|
4927
|
-
var
|
|
4927
|
+
var GIT_REMOTE_ACTIONS_THAT_CHANGE_WHERE_GIT_SENDS = /* @__PURE__ */ new Set(["set-url", "add"]);
|
|
4928
4928
|
var namesAGitSettingThatChangesWhereGitSends = (name) => GIT_SETTING_THAT_CHANGES_WHERE_GIT_SENDS.test(name);
|
|
4929
4929
|
var setsWhereGitSendsForOneCommand = (args) => args.some((arg, index) => args[index - 1]?.text === GIT_ONE_COMMAND_SETTING_FLAG && GIT_ONE_COMMAND_SETTING_THAT_CHANGES_WHERE_GIT_SENDS.test(arg.text));
|
|
4930
4930
|
var changesWhereGitSends = ({ program, args }) => {
|
|
4931
4931
|
if (program === void 0 || basenameOf(program.text) !== GIT) return false;
|
|
4932
4932
|
const [subcommand, action] = subcommandWordsOf(argsAfterGitGlobalOptions(args));
|
|
4933
4933
|
if (subcommand?.text === GIT_PUSH) return setsWhereGitSendsForOneCommand(args);
|
|
4934
|
-
if (subcommand?.text === GIT_REMOTE_SUBCOMMAND) return action?.text
|
|
4934
|
+
if (subcommand?.text === GIT_REMOTE_SUBCOMMAND) return GIT_REMOTE_ACTIONS_THAT_CHANGE_WHERE_GIT_SENDS.has(action?.text ?? "");
|
|
4935
4935
|
return gitConfigWriteOf(args, namesAGitSettingThatChangesWhereGitSends) !== void 0;
|
|
4936
4936
|
};
|
|
4937
|
+
var GIT_COMMANDS_THAT_SEND_TO_THE_ADDRESS_THEY_ARE_GIVEN = /* @__PURE__ */ new Set(["send-pack", "http-push"]);
|
|
4938
|
+
var GIT_PUSH_REPOSITORY_OPTION = "--repo";
|
|
4939
|
+
var GIT_PUSH_LONG_OPTIONS_WITH_A_SEPARATE_VALUE = [
|
|
4940
|
+
GIT_PUSH_REPOSITORY_OPTION,
|
|
4941
|
+
"--recurse-submodules",
|
|
4942
|
+
"--receive-pack",
|
|
4943
|
+
"--exec",
|
|
4944
|
+
"--push-option"
|
|
4945
|
+
];
|
|
4946
|
+
var GIT_PUSH_SHORT_OPTION_WITH_A_VALUE = "o";
|
|
4947
|
+
var ANY_SHORT_OPTION_CLUSTER = /^-[^-]/;
|
|
4948
|
+
var WINDOWS_DRIVE_LETTER = /^[A-Za-z]:/;
|
|
4949
|
+
var abbreviatesTheGitPushRepositoryOption = (name) => name.length > LONG_OPTION_PREFIX3.length && GIT_PUSH_REPOSITORY_OPTION.startsWith(name);
|
|
4950
|
+
var gitPushOptionTakesTheNextWord = (text3) => ANY_SHORT_OPTION_CLUSTER.test(text3) ? text3.indexOf(GIT_PUSH_SHORT_OPTION_WITH_A_VALUE, 1) === text3.length - 1 : text3.startsWith(LONG_OPTION_PREFIX3) && !text3.includes(OPTION_VALUE_SEPARATOR) && abbreviatesALongOption(text3, GIT_PUSH_LONG_OPTIONS_WITH_A_SEPARATE_VALUE);
|
|
4951
|
+
var attachedOptionValueOf = (word, name) => word.text.length > name.length ? { ...word, text: word.text.slice(name.length + OPTION_VALUE_SEPARATOR.length) } : void 0;
|
|
4952
|
+
var wordsNamingWhereAGitPushSends = (pushArgs) => {
|
|
4953
|
+
const named = [];
|
|
4954
|
+
let repositoryRead = false;
|
|
4955
|
+
for (let index = 0; index < pushArgs.length; index += 1) {
|
|
4956
|
+
const word = pushArgs[index];
|
|
4957
|
+
if (word === void 0) break;
|
|
4958
|
+
if (word.text === END_OF_OPTIONS3) {
|
|
4959
|
+
const operand = repositoryRead ? void 0 : pushArgs[index + 1];
|
|
4960
|
+
return operand === void 0 ? named : [...named, operand];
|
|
4961
|
+
}
|
|
4962
|
+
if (!FLAG.test(word.text)) {
|
|
4963
|
+
if (!repositoryRead) named.push(word);
|
|
4964
|
+
repositoryRead = true;
|
|
4965
|
+
continue;
|
|
4966
|
+
}
|
|
4967
|
+
const name = longOptionName(word.text);
|
|
4968
|
+
if (abbreviatesTheGitPushRepositoryOption(name)) {
|
|
4969
|
+
const attachedValue = attachedOptionValueOf(word, name);
|
|
4970
|
+
const value = attachedValue ?? pushArgs[index + 1];
|
|
4971
|
+
if (value !== void 0) named.push(value);
|
|
4972
|
+
if (attachedValue === void 0) index += 1;
|
|
4973
|
+
} else if (gitPushOptionTakesTheNextWord(word.text)) {
|
|
4974
|
+
index += 1;
|
|
4975
|
+
}
|
|
4976
|
+
}
|
|
4977
|
+
return named;
|
|
4978
|
+
};
|
|
4979
|
+
var namesAGitAddress = (text3) => {
|
|
4980
|
+
const colon = text3.indexOf(":");
|
|
4981
|
+
const slash = text3.indexOf("/");
|
|
4982
|
+
return colon !== -1 && (slash === -1 || colon < slash) && !WINDOWS_DRIVE_LETTER.test(text3);
|
|
4983
|
+
};
|
|
4984
|
+
var mayNameAGitAddress = (word) => word.expands || namesAGitAddress(word.text);
|
|
4985
|
+
var gitSendsToAPlaceTheCommandNames = ({ program, args }) => {
|
|
4986
|
+
if (program === void 0 || basenameOf(program.text) !== GIT) return false;
|
|
4987
|
+
const gitArgs = argsAfterGitGlobalOptions(args);
|
|
4988
|
+
const [subcommand] = subcommandWordsOf(gitArgs);
|
|
4989
|
+
if (subcommand === void 0) return false;
|
|
4990
|
+
if (GIT_COMMANDS_THAT_SEND_TO_THE_ADDRESS_THEY_ARE_GIVEN.has(subcommand.text)) return true;
|
|
4991
|
+
return subcommand.text === GIT_PUSH && wordsNamingWhereAGitPushSends(gitArgs.slice(gitArgs.indexOf(subcommand) + 1)).some(mayNameAGitAddress);
|
|
4992
|
+
};
|
|
4937
4993
|
var writesAFileThatNeedsAPerson = ({ program, args }) => {
|
|
4938
4994
|
if (program === void 0) return false;
|
|
4939
4995
|
if (sendsAFileThatNeedsAPerson({ program, args })) return true;
|
|
@@ -5958,7 +6014,7 @@ var stopsTheMachine = ({ program, args }) => {
|
|
|
5958
6014
|
const name = program === void 0 ? void 0 : basenameOf(program.text);
|
|
5959
6015
|
return name !== void 0 && PROGRAMS_THAT_STOP_THE_MACHINE.has(name) && !args.some((arg) => ONLY_DESCRIBES_ITSELF.test(arg.text)) && !(name === SHUTDOWN && args.some((arg) => arg.text === CANCELS_A_SHUTDOWN));
|
|
5960
6016
|
};
|
|
5961
|
-
var invocationHasAConsequenceOnlyPermissionsOffAsksAbout = (toolName, invocation, normalized, reading) => releasesOrChangesACluster(toolName, invocation, normalized) || reading === "as_written" && changesAPublishedPackage(invocation) || mergesAPullRequestByAnyPath(invocation) || writesAFileThatNeedsAPerson(invocation) || changesWhereGitLooksForHooks(invocation) || setsAGitSettingThatRunsAProgram(invocation) || changesWhereGitSends(invocation) || changesSomethingHostedElsewhere(invocation) || sendsMail(invocation) || stopsTheMachine(invocation);
|
|
6017
|
+
var invocationHasAConsequenceOnlyPermissionsOffAsksAbout = (toolName, invocation, normalized, reading) => releasesOrChangesACluster(toolName, invocation, normalized) || reading === "as_written" && changesAPublishedPackage(invocation) || mergesAPullRequestByAnyPath(invocation) || writesAFileThatNeedsAPerson(invocation) || changesWhereGitLooksForHooks(invocation) || setsAGitSettingThatRunsAProgram(invocation) || changesWhereGitSends(invocation) || gitSendsToAPlaceTheCommandNames(invocation) || changesSomethingHostedElsewhere(invocation) || sendsMail(invocation) || stopsTheMachine(invocation);
|
|
5962
6018
|
var invocationHasAVisibleConsequence = (toolName, invocation, depth, line, reading = "as_written") => {
|
|
5963
6019
|
if (depth > MAX_CONSEQUENCE_DEPTH) return true;
|
|
5964
6020
|
if (invocation.program === void 0) return false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WVAJSBI2.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-NMUI3ZWG.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-PPY5N2E6.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PWGD5EP6.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_CONNECTOR_GUIDE,
|
|
15
15
|
CLAUDE_CONNECTOR_STEPS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
CLAUDE_CONNECTOR_URL,
|
|
18
18
|
COWORK_CONNECTOR_LIMIT,
|
|
19
19
|
COWORK_STANDING_INSTRUCTIONS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4FAJQPFY.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLJ2CTT7.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-PPY5N2E6.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4FAJQPFY.js";
|
|
17
17
|
|
|
18
18
|
// src/session.ts
|
|
19
19
|
var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J6SSLXSU.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NZQEABRO.js";
|
|
14
14
|
import {
|
|
15
15
|
readControlMode,
|
|
16
16
|
readKeySource
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HYAQIKYB.js";
|
|
18
18
|
import {
|
|
19
19
|
getMachineId
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6N5DQG5F.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-ZVU6WMMU.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCodeConfigDirFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PM34Z5WX.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeClaudeInstallPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LURFSDCL.js";
|
|
7
7
|
import {
|
|
8
8
|
grokHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UOE26LPT.js";
|
|
10
10
|
import {
|
|
11
11
|
claudeConfigDir,
|
|
12
12
|
clineDataDirectory,
|
|
13
13
|
codexHomeFrom
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O7ITTNDD.js";
|
|
15
15
|
import {
|
|
16
16
|
HOOK_COMPATIBLE_PROFILES
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4FAJQPFY.js";
|
|
18
18
|
|
|
19
19
|
// src/vscode-config.ts
|
|
20
20
|
import { homedir } from "os";
|
|
@@ -266,6 +266,11 @@ var npmPermissionCodeOf = (err) => {
|
|
|
266
266
|
}
|
|
267
267
|
return null;
|
|
268
268
|
};
|
|
269
|
+
var npmWasKilledBySignal = (err) => typeof err === "object" && err !== null && typeof Reflect.get(err, "signal") === "string";
|
|
270
|
+
var npmExitedOnPermissionDenied = (err, platform) => {
|
|
271
|
+
const code = npmPermissionCodeOf(err);
|
|
272
|
+
return code !== null && npmPermissionFailureKind(code, platform) === "global-prefix" && !npmWasKilledBySignal(err);
|
|
273
|
+
};
|
|
269
274
|
var npmInstallFailure = (err, platform = process.platform) => {
|
|
270
275
|
const code = npmPermissionCodeOf(err);
|
|
271
276
|
return code === null ? new NpmInstallError(npmErrorMessage(err)) : new NpmPermissionError(npmErrorMessage(err), npmPermissionFailureKind(code, platform));
|
|
@@ -471,9 +476,9 @@ var installGlobally = (options) => {
|
|
|
471
476
|
}
|
|
472
477
|
const started = (async () => {
|
|
473
478
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
474
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
475
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
476
|
-
const { autoUpdateLock } = await import("./paths-
|
|
479
|
+
const { withUpgradeLock } = await import("./global-upgrade-V6FA6MUF.js");
|
|
480
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-DLGVC34L.js");
|
|
481
|
+
const { autoUpdateLock } = await import("./paths-2IEEYSHM.js");
|
|
477
482
|
let result = "skipped";
|
|
478
483
|
const install = async () => {
|
|
479
484
|
const platform = process.platform;
|
|
@@ -547,6 +552,7 @@ export {
|
|
|
547
552
|
NpmMissingError,
|
|
548
553
|
NpmPermissionError,
|
|
549
554
|
NpmInstallError,
|
|
555
|
+
npmExitedOnPermissionDenied,
|
|
550
556
|
npmInstallFailure,
|
|
551
557
|
resolveBinary,
|
|
552
558
|
resolvePackageVersionFromBinary,
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
outcomeOfFailedAsk,
|
|
5
5
|
reportMachineDenial,
|
|
6
6
|
storedWaitDeadline
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X3HBR57D.js";
|
|
8
8
|
import {
|
|
9
9
|
isGatingMoment,
|
|
10
10
|
recordKeylessMoment
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4TVLPGJV.js";
|
|
12
12
|
import {
|
|
13
13
|
isAdmitted,
|
|
14
14
|
readAdmissionRules
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SA4PCB6N.js";
|
|
16
16
|
import {
|
|
17
17
|
isDeferAnswer,
|
|
18
18
|
oncePerSession
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CQ7QE4W2.js";
|
|
20
20
|
import {
|
|
21
21
|
activeHookSource,
|
|
22
22
|
activeIdentity,
|
|
23
23
|
namedSource
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UOE26LPT.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_SESSION,
|
|
27
27
|
approvalAwaitingRetry,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
recordBlockedActionHint,
|
|
38
38
|
reportEvent,
|
|
39
39
|
settleQuestionsForToolUse
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-Z2TX7DVU.js";
|
|
41
41
|
import {
|
|
42
42
|
UNNAMED_ACTION,
|
|
43
43
|
deriveAction,
|
|
@@ -48,11 +48,11 @@ import {
|
|
|
48
48
|
patchDeletesFiles,
|
|
49
49
|
permissionDeniedAction,
|
|
50
50
|
scopePathFor
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MP3SEXXJ.js";
|
|
52
52
|
import {
|
|
53
53
|
repoKeyFor,
|
|
54
54
|
repositoryScopeFor
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-4QO267OY.js";
|
|
56
56
|
import {
|
|
57
57
|
askUser,
|
|
58
58
|
cancelQuestion,
|
|
@@ -69,20 +69,20 @@ import {
|
|
|
69
69
|
waitForQuestion,
|
|
70
70
|
waitsForThePhone,
|
|
71
71
|
withdrawQuestion
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-ZCYLCD6L.js";
|
|
73
73
|
import {
|
|
74
74
|
getMachineId
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-6N5DQG5F.js";
|
|
76
76
|
import {
|
|
77
77
|
claudeConfigDir
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-O7ITTNDD.js";
|
|
79
79
|
import {
|
|
80
80
|
getApiKey,
|
|
81
81
|
getBaseUrl
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-KOUB4ZLX.js";
|
|
83
83
|
import {
|
|
84
84
|
NPX_LATEST_COMMAND
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-PWGD5EP6.js";
|
|
86
86
|
import {
|
|
87
87
|
AGENT_QUESTION_STRATEGY,
|
|
88
88
|
AGENT_QUESTION_TOOL,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
terminalStaysLiveForTheCall,
|
|
140
140
|
timeoutActionWithoutLocalPrompt,
|
|
141
141
|
unansweredRefusalReason
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-4FAJQPFY.js";
|
|
143
143
|
|
|
144
144
|
// src/terminal-answer-watch.ts
|
|
145
145
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O7ITTNDD.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BQHZRH6S.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_PACKAGE_NAMES,
|
|
13
13
|
POSIX_GLOBAL_ROOT_SEGMENTS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-ZVU6WMMU.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4FAJQPFY.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|