@workit-dev/pi 2.4.3 → 2.5.0

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/worker.js CHANGED
@@ -9172,6 +9172,17 @@ import path14 from "node:path";
9172
9172
  var REQUEST_TTL_MS = 30 * 60000;
9173
9173
  var GRANT_TTL_MS = 15 * 60000;
9174
9174
  var ASKING_HOSTS = new Set(["claude_code", "pi"]);
9175
+ var INLINE_ASK_TTL_MS = 2 * 60000;
9176
+
9177
+ // packages/workit-core/src/approvals/youtrack-ask.ts
9178
+ var TIME = "markdown file minutes text date";
9179
+ var FLAGS = {
9180
+ note: TIME,
9181
+ time: TIME,
9182
+ meeting: TIME,
9183
+ update: `${TIME} attach state command`,
9184
+ create: "project summary description file attach command"
9185
+ };
9175
9186
 
9176
9187
  // packages/workit-core/src/hooks/hosts/fields.ts
9177
9188
  var SHELLS2 = new Set(["sh", "bash", "zsh", "dash", "pwsh", "powershell", "cmd"]);
@@ -9302,7 +9313,7 @@ var CONTEXT_EVENTS = new Set([
9302
9313
  "PreToolUse",
9303
9314
  "PostToolUse"
9304
9315
  ]);
9305
- var ASKING_MODES = new Set(["default", "acceptEdits", "plan"]);
9316
+ var ASKING_MODES = new Set(["default", "acceptEdits", "plan", "auto"]);
9306
9317
 
9307
9318
  // packages/workit-core/src/hooks/hosts/codex.ts
9308
9319
  var CODEX_DESCRIPTOR = {
@@ -9697,6 +9708,7 @@ var MUTATING_GIT = new Set([
9697
9708
  ]);
9698
9709
  var DRY_N = new Set(["add", "clean", "rm", "mv"]);
9699
9710
  var MUTATING_WORKIT_GIT = new Set(["commit", "branch", "stage", "unstage"]);
9711
+ var PLACEHOLDERS = new WeakMap;
9700
9712
  var CD2 = new Set(["cd", "chdir", "set-location", "sl"]);
9701
9713
  var PUSHD2 = new Set(["pushd", "push-location"]);
9702
9714
  var POPD2 = new Set(["popd", "pop-location"]);
@@ -9768,6 +9780,60 @@ var MUTATING_REMOTE = new Set([
9768
9780
  "set-branches",
9769
9781
  "prune"
9770
9782
  ]);
9783
+ var GIT_VERBS = {
9784
+ log: "@d@l|@d @l",
9785
+ show: "@d@l|@d @l",
9786
+ diff: "@d|@d cached staged merge-base no-index",
9787
+ "diff-tree": "@drtcm|@d root stdin no-commit-id",
9788
+ "diff-index": "@dm|@d cached merge-base",
9789
+ status: "sbu?zv|short branch porcelain? long untracked-files? ignored? ignore-submodules? show-stash ahead-behind no-ahead-behind renames no-renames find-renames? column? no-column null verbose",
9790
+ "rev-parse": "q|verify short? abbrev-ref? symbolic symbolic-full-name show-toplevel show-prefix git-dir git-common-dir absolute-git-dir is-inside-work-tree is-inside-git-dir is-bare-repository show-cdup quiet all branches? tags? remotes? since= until= default= path-format= sq-quote",
9791
+ "rev-list": "@l|@l count objects? left-only right-only",
9792
+ "ls-files": "cdmoiskuvtzfx:X:|cached deleted modified others ignored stage unmerged killed directory no-empty-directory exclude-standard exclude= exclude-from= full-name abbrev? error-unmatch with-tree= eol deduplicate format= recurse-submodules sparse",
9793
+ "ls-tree": "rdtlz|long name-only name-status object-only full-name full-tree abbrev? format=",
9794
+ "cat-file": "tsepz|batch? batch-check? batch-all-objects follow-symlinks unordered buffer allow-unknown-type mailmap use-mailmap",
9795
+ blame: "L:lstfnepwbcM?C?|porcelain line-porcelain incremental root show-stats show-name show-number show-email abbrev= reverse= first-parent date= ignore-rev= ignore-revs-file= minimal contents=",
9796
+ describe: "|tags all long abbrev= contains always dirty? broken? match= exclude= first-parent exact-match candidates= debug",
9797
+ "merge-base": "a|all octopus independent is-ancestor fork-point",
9798
+ "for-each-ref": "|count= sort= format= color? shell perl python tcl points-at= merged? no-merged? contains? no-contains? ignore-case omit-empty exclude=",
9799
+ shortlog: "@lsnec|@l summary numbered email committer group= format=",
9800
+ "show-ref": "dsq|head verify heads tags branches hash? abbrev? quiet dereference exists",
9801
+ "name-rev": "|tags refs= exclude= all annotate-stdin name-only no-undefined always",
9802
+ grep: "aiIvnhHcEGFPlLzoWqwe:A:B:C:m:f:|cached untracked no-index no-exclude-standard exclude-standard recurse-submodules text ignore-case word-regexp invert-match line-number column count full-name extended-regexp basic-regexp fixed-strings perl-regexp files-with-matches name-only files-without-match null only-matching heading break show-function function-context max-depth= threads= and or not all-match quiet after-context= before-context= context= max-count= color? no-color",
9803
+ "format-patch": "@do:nNks|@d stdout output-directory= numbered no-numbered start-number= subject-prefix= root cover-letter thread? signoff attach? inline? suffix= base=",
9804
+ reflog: "@l|@l all expire= expire-unreachable= rewrite updateref stale-fix dry-run verbose",
9805
+ "count-objects": "vH|verbose human-readable",
9806
+ "check-ignore": "qvnz|quiet verbose stdin non-matching no-index",
9807
+ var: "l|",
9808
+ version: "|build-options",
9809
+ "ls-remote": "htbq|heads tags branches refs quiet exit-code get-url symref sort=",
9810
+ remote: "v|verbose",
9811
+ config: "lz|get get-all get-regexp list local name-only null type= default=",
9812
+ worktree: "fdqvzb:B:|force detach lock reason= orphan no-checkout checkout quiet track no-track guess-remote porcelain expire= verbose",
9813
+ branch: "dDmMcCfvraliu:|delete move copy force list all remotes verbose contains? merged? no-merged? points-at= show-current set-upstream-to= unset-upstream track? no-track sort= format= color? column? ignore-case create-reflog",
9814
+ tag: "lam:dfF:n?|list annotate message= file= delete force sort= format= contains? merged? no-merged? points-at= column? create-reflog ignore-case",
9815
+ init: "+qb:|quiet bare initial-branch= object-format= ref-format= shared? separate-git-dir=",
9816
+ add: "+AunNvf|all update intent-to-add force dry-run verbose ignore-errors ignore-removal no-all renormalize chmod= sparse",
9817
+ commit: "+m:aqsnF:C:ouv|message= all amend no-edit allow-empty allow-empty-message author= date= signoff no-verify quiet file= reuse-message= fixup= squash= only include dry-run no-gpg-sign untracked-files? cleanup= reset-author verbose",
9818
+ checkout: "+b:B:fqm|detach force orphan= quiet track? no-track merge ours theirs",
9819
+ switch: "+c:C:dfqm|create= force-create= detach discard-changes force orphan= quiet track? no-track merge",
9820
+ restore: "+s:SWq|source= staged worktree ours theirs merge quiet overlay no-overlay",
9821
+ reset: "+qN|soft mixed hard merge keep quiet no-refresh",
9822
+ rm: "+rfnq|cached force dry-run quiet ignore-unmatch",
9823
+ mv: "+fnkv|force dry-run verbose",
9824
+ merge: "+m:qvnX:|no-ff ff ff-only squash no-squash commit no-commit message= no-edit abort continue quit allow-unrelated-histories stat no-stat quiet verbose no-verify signoff strategy-option=",
9825
+ stash: "+m:ukqa|message= include-untracked keep-index quiet all index staged",
9826
+ apply: "+p:C:R3qv|check stat numstat summary index cached 3way reverse reject allow-empty exclude= include= verbose quiet whitespace= recount",
9827
+ am: "+skq3|signoff keep 3way quiet abort continue skip quit whitespace= reject",
9828
+ fetch: "+fqvptn|all depth= deepen= shallow-since= unshallow tags no-tags prune force quiet verbose dry-run update-shallow refmap=",
9829
+ clone: "+nqlsb:o:|bare no-checkout depth= branch= origin= single-branch no-single-branch no-tags quiet shared local no-local filter= separate-git-dir=",
9830
+ "cherry-pick": "+nm:sxX:|no-commit mainline= signoff abort continue skip quit allow-empty keep-redundant-commits ff strategy-option=",
9831
+ revert: "+nm:sX:|no-commit mainline= signoff abort continue skip quit strategy-option= no-edit",
9832
+ rebase: "+qvfnX:|onto= root abort continue skip quit keep-base no-ff force-rebase autosquash no-autosquash autostash no-autostash update-refs signoff quiet verbose stat no-stat committer-date-is-author-date reset-author-date rebase-merges? no-rebase-merges empty= strategy-option= apply merge",
9833
+ clean: "+dfnqxXe:|dry-run force quiet exclude=",
9834
+ bisect: "+|term-old= term-new= no-checkout first-parent"
9835
+ };
9836
+ var JUDGE_GIT = `a judge runs git ${Object.keys(GIT_VERBS).join(" ")} with the options each documents (no abbreviations), writing only in a scratch repo; no -c, no wrapper but timeout, nice, time, command, no env but PAGER=cat, GIT_PAGER=cat, GIT_OPTIONAL_LOCKS=0, LC_*, LANG, TZ; status outside scratch needs --no-optional-locks`;
9771
9837
  var JUDGE_VERBS = {
9772
9838
  check: true,
9773
9839
  dir: true,