@joshuafolkken/kit 1.1094.0 → 1.1136.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/.claude/agents/investigator.md +17 -0
- package/.claude/settings.json +1 -0
- package/.claude/skills/workflow-commands/SKILL.md +1 -1
- package/.claude/skills/workflow-commands/background-commands.md +36 -85
- package/.claude/skills/workflow-commands/backlogrun-progress.md +31 -34
- package/.claude/skills/workflow-commands/backlogrun-steps.md +2 -2
- package/.claude/skills/workflow-commands/delegation.md +5 -1
- package/.claude/skills/workflow-commands/fullrun.md +5 -4
- package/.claude/skills/workflow-commands/halfrun.md +5 -4
- package/.claude/skills/workflow-commands/latest-gate.md +7 -15
- package/.claude/skills/workflow-commands/pre-gate-cut.md +4 -8
- package/.claude/skills/workflow-commands/split-assessment.md +4 -18
- package/.github/actions/setup-node/action.yml +33 -0
- package/.github/actions/setup-pnpm/action.yml +4 -4
- package/.github/workflows/auto-tag.yml +2 -3
- package/.github/workflows/ci.yml +7 -8
- package/.github/workflows/dependabot-auto-merge.yml +1 -0
- package/.github/workflows/pr-classification.yml +1 -3
- package/.github/workflows/production.yml +1 -0
- package/.github/workflows/publish.yml +10 -9
- package/.github/workflows/sonar-qube.yml +17 -13
- package/.pnpmfile.mjs +29 -0
- package/AGENTS.md +4 -11
- package/CLAUDE.md +24 -17
- package/GEMINI.md +4 -13
- package/README.md +8 -3
- package/SECURITY.md +2 -0
- package/cspell/index.yaml +4 -0
- package/dist/CLAUDE.basic.md +6 -6
- package/dist/CLAUDE.md +24 -17
- package/dist/CLAUDE.static.md +6 -6
- package/dist/config-merge/index.js +33 -9
- package/dist/hooks/batch-guard.js +4 -4
- package/dist/hooks/{chunk-OIZUHPJI.js → chunk-FO2I7UT7.js} +1 -1
- package/dist/hooks/{chunk-NKOG3XAV.js → chunk-GDU26K3J.js} +11 -3
- package/dist/hooks/{chunk-O4LL4HTI.js → chunk-HANSKHES.js} +2 -2
- package/dist/hooks/{chunk-3C4YCCEF.js → chunk-HBKZLITF.js} +4 -4
- package/dist/hooks/{chunk-UD24EAIL.js → chunk-JKKTVDAG.js} +1984 -146
- package/dist/hooks/{chunk-M2XDCUKD.js → chunk-KBXZLMRH.js} +89 -1803
- package/dist/hooks/{chunk-IL27YTPH.js → chunk-KOKOAV6D.js} +2 -2
- package/dist/hooks/{chunk-7ZPFAVR7.js → chunk-LJBLGHEH.js} +59 -19
- package/dist/hooks/{chunk-E54KGFEQ.js → chunk-NFZGFGOR.js} +1 -1
- package/dist/hooks/{chunk-KHWHKJOM.js → chunk-RFWWUI5F.js} +4 -4
- package/dist/hooks/codex-hook-adapter.js +12 -47
- package/dist/hooks/duplicate-read-guard.js +5 -5
- package/dist/hooks/format-edited.js +2 -2
- package/dist/hooks/inputs.json +175 -173
- package/dist/hooks/investigation-guard.js +5 -5
- package/dist/hooks/pretool-guard.js +9 -9
- package/dist/hooks/stop-guard.js +17 -12
- package/dist/josh.js +87 -31
- package/dist/version/index.js +36 -20
- package/eslint/rules/unicorn.js +3 -2
- package/package.json +23 -5
- package/pnpm-workspace.yaml +5 -7
- package/prompts/collaboration-workflow/glossary.md +17 -0
- package/prompts/collaboration-workflow/issue-template.md +1 -1
- package/prompts/collaboration-workflow/operating-rules.md +1 -1
- package/prompts/collaboration-workflow/principles.md +9 -0
- package/prompts/collaboration-workflow.md +1 -0
- package/scripts/backlog/backlog-arrival.ts +30 -10
- package/scripts/backlog/backlog-budget-cli.ts +15 -16
- package/scripts/backlog/backlog-offer-cli.ts +6 -14
- package/scripts/backlog/backlog-plan.ts +29 -18
- package/scripts/backlog/backlog-ready.ts +20 -7
- package/scripts/config-merge/parse-jsonc.ts +33 -3
- package/scripts/config-merge/patch-json-key.ts +13 -6
- package/scripts/cost-runtime/cost-cli.ts +3 -7
- package/scripts/delegation/delegation-policy.ts +9 -1
- package/scripts/delegation/investigation-guard.ts +1 -1
- package/scripts/delegation/investigation-reads.ts +105 -19
- package/scripts/doctor/doctor-consumer.ts +3 -5
- package/scripts/doctor/doctor-io.ts +9 -13
- package/scripts/document/backlogrun-parent-read-set.ts +12 -1
- package/scripts/document/capped-print.ts +74 -0
- package/scripts/document/document-byte-budget.ts +1 -0
- package/scripts/document/document-section-cli.ts +4 -3
- package/scripts/document/entry-read-budget.ts +13 -7
- package/scripts/document/entry-read-set.ts +32 -8
- package/scripts/document/lane-child-read-set.ts +7 -0
- package/scripts/document/read-set-point-of-use.ts +8 -3
- package/scripts/document/read-set-trim.ts +3 -1
- package/scripts/epic/epic-audit.ts +3 -18
- package/scripts/gate/scoped-green.ts +25 -14
- package/scripts/gh/git-gh-issue-list.ts +12 -11
- package/scripts/gh/git-gh-issue-write.ts +4 -1
- package/scripts/gh/git-gh-pr-auto-merge.ts +4 -1
- package/scripts/git/git-command.ts +6 -1
- package/scripts/git/git-spawn-sync.ts +65 -0
- package/scripts/git/git-spawn.ts +5 -4
- package/scripts/git/stash/stash-pop-args.ts +1 -6
- package/scripts/init/claude-kit-only-settings.ts +29 -0
- package/scripts/init/init-copy-content.ts +8 -2
- package/scripts/init/init-file-action.ts +54 -0
- package/scripts/init/init-logic-migrate.ts +35 -17
- package/scripts/init/init-logic-secretlint.ts +1 -1
- package/scripts/init/init-logic.ts +6 -22
- package/scripts/init/init.ts +11 -68
- package/scripts/init/initial-commit.ts +24 -0
- package/scripts/init/kit-written-paths.ts +2 -0
- package/scripts/init/project-profile.ts +3 -6
- package/scripts/init/start-exec.ts +16 -3
- package/scripts/init/start-steps.ts +10 -13
- package/scripts/issue/defect-rate-cli.ts +61 -20
- package/scripts/issue/issue-backlinks.ts +7 -14
- package/scripts/issue/issue-cite.ts +12 -6
- package/scripts/issue/issue-file.ts +5 -12
- package/scripts/issue/issue-read-cli.ts +1 -0
- package/scripts/issue/issue-report-failures.ts +6 -2
- package/scripts/issue/issue-state-cli.ts +1 -1
- package/scripts/issue/markdown-section.ts +21 -6
- package/scripts/issue/measure-rerun-cli.ts +73 -14
- package/scripts/josh/josh-commands-lane.ts +1 -1
- package/scripts/josh/josh-commands-project.ts +8 -1
- package/scripts/josh/josh-commands-workflow.ts +1 -1
- package/scripts/josh/run-github-prerequisite.ts +3 -6
- package/scripts/lane/lane-await.ts +89 -15
- package/scripts/lane/lane-cli.ts +11 -13
- package/scripts/lane/lane-close.ts +4 -1
- package/scripts/lane/lane-launch-cli.ts +10 -16
- package/scripts/lane/openai-review-broker.ts +4 -1
- package/scripts/lib/cli-flags.ts +31 -2
- package/scripts/lib/error-message.ts +12 -1
- package/scripts/lines/line-targets.ts +0 -11
- package/scripts/lines/lines-command.ts +5 -3
- package/scripts/propagate/propagate-git.ts +3 -8
- package/scripts/refactor/refactor-scan.ts +2 -1
- package/scripts/registry-migration/migrate-logic.ts +28 -19
- package/scripts/registry-migration/migrate.ts +6 -5
- package/scripts/release/github-release-cli.ts +14 -3
- package/scripts/release/github-release-environment.ts +1 -0
- package/scripts/release/github-release.ts +103 -17
- package/scripts/release/release-publish.ts +36 -2
- package/scripts/release/release-worktree.ts +97 -2
- package/scripts/review/review-checkout.ts +3 -2
- package/scripts/review/review-record-cli.ts +9 -16
- package/scripts/rules/early-heartbeat.ts +4 -3
- package/scripts/rules/lane-park.ts +9 -0
- package/scripts/rules/stop-rules.ts +7 -4
- package/scripts/run/run-carry-args.ts +8 -12
- package/scripts/run/run-carry-cli.ts +3 -1
- package/scripts/run/run-carry-conversation.ts +94 -0
- package/scripts/run/run-carry-reclaim.ts +37 -0
- package/scripts/run/run-carry.ts +21 -5
- package/scripts/run/run-cut-args.ts +1 -6
- package/scripts/run/run-ending-cli.ts +1 -5
- package/scripts/run/run-entry-cli.ts +40 -9
- package/scripts/run/run-entry-stop.ts +104 -0
- package/scripts/run/run-event-stream-emit.ts +7 -2
- package/scripts/run/run-hold.ts +4 -1
- package/scripts/run/run-liveness-cli.ts +1 -5
- package/scripts/run/run-merge-cli.ts +2 -10
- package/scripts/run/run-merge-steps.ts +4 -1
- package/scripts/run/run-parent-cut-hook.ts +4 -1
- package/scripts/run/run-prep-cli.ts +4 -1
- package/scripts/run/run-progress-args.ts +20 -4
- package/scripts/run/run-progress-cli.ts +31 -29
- package/scripts/run/run-progress-clock.ts +4 -1
- package/scripts/run/run-ship-cli.ts +8 -16
- package/scripts/run/run-ship-probe.ts +4 -1
- package/scripts/run/run-status-cli.ts +2 -15
- package/scripts/run/run-tidy-lanes.ts +4 -1
- package/scripts/run/run-wake-cli.ts +2 -10
- package/scripts/run/run-watcher-guard.ts +9 -5
- package/scripts/safe-chain/pack-hook.ts +92 -0
- package/scripts/sync/sync-ai-files.ts +4 -0
- package/scripts/test/test-declared-changed.ts +13 -16
- package/scripts/test/test-declared.ts +3 -7
- package/scripts/test/test-related.ts +1 -6
- package/scripts/test/test-unit-guard.ts +21 -7
- package/scripts/time-runtime/time-spans.ts +4 -0
- package/scripts/version/version-commands.ts +11 -1
- package/templates/CLAUDE.basic.md +6 -6
- package/templates/workflows/ci.yml +16 -82
- package/templates/workflows/dependabot-auto-merge.yml +1 -0
- package/templates/workflows/github-release.yml +14 -28
- package/tsconfig.sonar.json +4 -22
package/dist/hooks/inputs.json
CHANGED
|
@@ -1,187 +1,221 @@
|
|
|
1
1
|
{
|
|
2
|
-
"digest": "
|
|
2
|
+
"digest": "2aa705da071bf2ccebf4540d62b8b4a97e6c0f8e1d9b75074461739e307936bd",
|
|
3
3
|
"inputs": [
|
|
4
|
-
"scripts/hooks/codex-hook-adapter.ts",
|
|
5
|
-
"scripts/hooks/pretool-guard-cli.ts",
|
|
6
|
-
"scripts/hooks/stop-guard.ts",
|
|
7
|
-
"scripts/hooks/format-edited-cli.ts",
|
|
8
4
|
"scripts/josh/session-language-cli.ts",
|
|
5
|
+
"scripts/hooks/format-edited-cli.ts",
|
|
6
|
+
"scripts/hooks/codex-hook-adapter.ts",
|
|
9
7
|
"scripts/hooks/batch-guard.ts",
|
|
10
8
|
"scripts/delegation/investigation-guard.ts",
|
|
11
9
|
"scripts/delegation/duplicate-read-guard.ts",
|
|
12
|
-
"scripts/hooks/pretool-guard.ts",
|
|
13
|
-
"scripts/
|
|
10
|
+
"scripts/hooks/pretool-guard-cli.ts",
|
|
11
|
+
"scripts/hooks/stop-guard.ts",
|
|
14
12
|
"scripts/hooks/format-edited-file.ts",
|
|
15
|
-
"scripts/lib/bounded-pool.ts",
|
|
16
|
-
"scripts/time-runtime/time-density-hook.ts",
|
|
17
|
-
"scripts/time-runtime/time-hook-transcript.ts",
|
|
18
13
|
"scripts/josh/session-language.ts",
|
|
19
14
|
"scripts/josh/josh-environment-file.ts",
|
|
20
|
-
"scripts/
|
|
15
|
+
"scripts/delegation/investigation-reads.ts",
|
|
16
|
+
"scripts/josh/hook-decision.ts",
|
|
21
17
|
"scripts/lane/lane-guard-policy.ts",
|
|
22
|
-
"scripts/time-runtime/time-density.ts",
|
|
23
|
-
"scripts/josh/stamp-file.ts",
|
|
24
|
-
"scripts/hooks/format-rewrite-notice.ts",
|
|
25
|
-
"scripts/josh/josh-command-types.ts",
|
|
26
|
-
"scripts/hooks/edited-cspell.ts",
|
|
27
|
-
"scripts/build/local-bin.ts",
|
|
28
18
|
"ports/index.js",
|
|
29
|
-
"scripts/
|
|
30
|
-
"scripts/
|
|
31
|
-
"scripts/
|
|
32
|
-
"scripts/
|
|
33
|
-
"scripts/
|
|
19
|
+
"scripts/time-runtime/time-batch-guard.ts",
|
|
20
|
+
"scripts/hooks/pretool-guard.ts",
|
|
21
|
+
"scripts/lib/bounded-pool.ts",
|
|
22
|
+
"scripts/time-runtime/time-density-hook.ts",
|
|
23
|
+
"scripts/time-runtime/time-hook-transcript.ts",
|
|
24
|
+
"scripts/time-runtime/time-spans.ts",
|
|
25
|
+
"scripts/time-runtime/time-transcript-line.ts",
|
|
26
|
+
"scripts/hooks/step-zero-notice.ts",
|
|
34
27
|
"scripts/backlog/backlog-ready.ts",
|
|
35
28
|
"scripts/backlog/backlog-stalled-detect.ts",
|
|
36
29
|
"scripts/discovery/repo-party.ts",
|
|
37
30
|
"scripts/lane/lane-handoff.ts",
|
|
38
31
|
"scripts/rules/filing-cap.ts",
|
|
32
|
+
"scripts/run/run-stranded-detect.ts",
|
|
39
33
|
"scripts/rules/lane-background.ts",
|
|
40
34
|
"scripts/rules/lane-park.ts",
|
|
41
35
|
"scripts/rules/last-prompt.ts",
|
|
42
36
|
"scripts/rules/stop-rules.ts",
|
|
43
|
-
"scripts/lib/read-file.ts",
|
|
44
37
|
"scripts/run/run-carry.ts",
|
|
45
|
-
"scripts/run/run-headless.ts",
|
|
46
|
-
"scripts/run/run-hold.ts",
|
|
47
38
|
"scripts/run/run-cut.ts",
|
|
48
39
|
"scripts/run/run-halfrun-resume.ts",
|
|
49
|
-
"scripts/
|
|
50
|
-
"scripts/
|
|
51
|
-
"scripts/
|
|
40
|
+
"scripts/hooks/format-rewrite-notice.ts",
|
|
41
|
+
"scripts/lib/json-value.ts",
|
|
42
|
+
"scripts/run/run-headless.ts",
|
|
43
|
+
"scripts/run/run-hold.ts",
|
|
44
|
+
"scripts/josh/stamp-file.ts",
|
|
52
45
|
"scripts/time-runtime/time-bundle-call.ts",
|
|
46
|
+
"scripts/run/run-watcher-hook.ts",
|
|
47
|
+
"scripts/run/run-parent-cut-hook.ts",
|
|
48
|
+
"scripts/build/local-bin.ts",
|
|
53
49
|
"scripts/time-runtime/time-bundles.ts",
|
|
50
|
+
"scripts/josh/josh-command-types.ts",
|
|
54
51
|
"scripts/time-runtime/time-call-identity.ts",
|
|
55
|
-
"scripts/
|
|
56
|
-
"scripts/time-runtime/time-round-trips.ts",
|
|
52
|
+
"scripts/hooks/edited-cspell.ts",
|
|
57
53
|
"scripts/rules/delivered-rules.ts",
|
|
58
|
-
"scripts/
|
|
59
|
-
"scripts/run/run-watcher-hook.ts",
|
|
54
|
+
"scripts/delegation/delegation-policy.ts",
|
|
60
55
|
"scripts/cost-runtime/cost-blocks.ts",
|
|
61
|
-
"scripts/
|
|
62
|
-
"scripts/
|
|
63
|
-
"scripts/
|
|
64
|
-
"scripts/lane/lane-
|
|
65
|
-
"scripts/
|
|
66
|
-
"scripts/notify/telegram-notify.ts",
|
|
67
|
-
"scripts/run/run-event-stream.ts",
|
|
68
|
-
"scripts/run/run-event-stream-emit.ts",
|
|
69
|
-
"scripts/run/run-stranded.ts",
|
|
56
|
+
"scripts/cost-runtime/cost-transcript.ts",
|
|
57
|
+
"scripts/time-runtime/time-shell.ts",
|
|
58
|
+
"scripts/time-runtime/time-density.ts",
|
|
59
|
+
"scripts/lane/lane-child-marker.ts",
|
|
60
|
+
"scripts/test/test-declared-logic.ts",
|
|
70
61
|
"scripts/backlog/backlog-stalled.ts",
|
|
62
|
+
"scripts/time-runtime/time-writes.ts",
|
|
63
|
+
"scripts/run/run-event-stream-emit.ts",
|
|
64
|
+
"scripts/run/run-wake.ts",
|
|
65
|
+
"scripts/time-runtime/time-background.ts",
|
|
66
|
+
"scripts/time-runtime/time-followup-stage.ts",
|
|
67
|
+
"scripts/time-runtime/time-markers.ts",
|
|
71
68
|
"scripts/run/run-ship-detach.ts",
|
|
72
|
-
"scripts/discovery/repo-origin.ts",
|
|
73
69
|
"scripts/git/git-common-directory.ts",
|
|
74
|
-
"scripts/
|
|
75
|
-
"scripts/
|
|
76
|
-
"scripts/run/run-invocation.ts",
|
|
77
|
-
"scripts/josh/josh-run.ts",
|
|
78
|
-
"scripts/lane/lane-capacity.ts",
|
|
70
|
+
"scripts/time-runtime/time-instant.ts",
|
|
71
|
+
"scripts/gh/git-gh-command.ts",
|
|
79
72
|
"scripts/lane/lane-registry.ts",
|
|
80
|
-
"scripts/
|
|
81
|
-
"scripts/
|
|
73
|
+
"scripts/issue/issue-cite.ts",
|
|
74
|
+
"scripts/notify/telegram-notify.ts",
|
|
75
|
+
"scripts/time-runtime/time-reported-failure.ts",
|
|
76
|
+
"scripts/josh/josh-run.ts",
|
|
77
|
+
"scripts/discovery/repo-origin.ts",
|
|
78
|
+
"scripts/run/run-stranded.ts",
|
|
79
|
+
"scripts/run/run-event-stream.ts",
|
|
80
|
+
"scripts/run/run-invocation.ts",
|
|
81
|
+
"scripts/discovery/repo-discovery.ts",
|
|
82
|
+
"scripts/time-runtime/time-single-check.ts",
|
|
83
|
+
"scripts/rules/shell-segments.ts",
|
|
82
84
|
"scripts/rules/tail-commands.ts",
|
|
85
|
+
"scripts/issue/issue-labels.ts",
|
|
86
|
+
"scripts/rules/bash-triggers.ts",
|
|
83
87
|
"scripts/rules/run-tail.ts",
|
|
84
|
-
"scripts/
|
|
85
|
-
"scripts/run/run-carry-change.ts",
|
|
86
|
-
"scripts/backlog/backlog-budget.ts",
|
|
87
|
-
"scripts/git/git-command.ts",
|
|
88
|
-
"scripts/josh/process-identity.ts",
|
|
89
|
-
"scripts/time-runtime/time-reported-failure.ts",
|
|
90
|
-
"scripts/time-runtime/time-background.ts",
|
|
91
|
-
"scripts/time-runtime/time-followup-stage.ts",
|
|
92
|
-
"scripts/time-runtime/time-instant.ts",
|
|
88
|
+
"scripts/rules/reply-language.ts",
|
|
93
89
|
"scripts/run/run-cut-handoff.ts",
|
|
90
|
+
"scripts/rules/filing-offer.ts",
|
|
94
91
|
"scripts/agent/agent-role-profile.ts",
|
|
92
|
+
"scripts/backlog/backlog-budget.ts",
|
|
95
93
|
"scripts/cost-runtime/context-cut-threshold.ts",
|
|
94
|
+
"scripts/git/git-command.ts",
|
|
96
95
|
"scripts/lane/lane-child-invocation.ts",
|
|
97
|
-
"scripts/rules/shell-segments.ts",
|
|
98
|
-
"scripts/issue/issue-labels.ts",
|
|
99
|
-
"scripts/delegation/delegation-policy.ts",
|
|
100
|
-
"scripts/test/test-declared-logic.ts",
|
|
101
|
-
"scripts/rules/reply-language.ts",
|
|
102
|
-
"scripts/rules/filing-offer.ts",
|
|
103
96
|
"scripts/rules/issue-citation.ts",
|
|
104
|
-
"scripts/josh/
|
|
105
|
-
"scripts/
|
|
106
|
-
"scripts/
|
|
107
|
-
"scripts/
|
|
108
|
-
"scripts/
|
|
109
|
-
"scripts/time-runtime/time-format.ts",
|
|
110
|
-
"scripts/time-runtime/time-agent-bundles.ts",
|
|
111
|
-
"scripts/rules/implementation-cut-verdict.ts",
|
|
112
|
-
"scripts/run/run-progress-read.ts",
|
|
113
|
-
"scripts/rules/worktree-guard.ts",
|
|
97
|
+
"scripts/josh/platform-temporary.ts",
|
|
98
|
+
"scripts/lane/lane-capacity.ts",
|
|
99
|
+
"scripts/init/init-paths.ts",
|
|
100
|
+
"scripts/lane/lane-reap.ts",
|
|
101
|
+
"scripts/rules/file-body.ts",
|
|
114
102
|
"scripts/rules/direct-filing.ts",
|
|
115
103
|
"scripts/rules/early-heartbeat.ts",
|
|
116
|
-
"scripts/rules/file-body.ts",
|
|
117
|
-
"scripts/rules/gh-api.ts",
|
|
118
104
|
"scripts/rules/git-force.ts",
|
|
105
|
+
"scripts/rules/gh-api.ts",
|
|
119
106
|
"scripts/rules/implementation-cut.ts",
|
|
120
107
|
"scripts/rules/issue-fold.ts",
|
|
108
|
+
"scripts/rules/permission-guards.ts",
|
|
121
109
|
"scripts/rules/josh-git-bare.ts",
|
|
122
110
|
"scripts/rules/lane-carry-conflict.ts",
|
|
123
111
|
"scripts/rules/lane-interactive-ask.ts",
|
|
124
112
|
"scripts/rules/lane-switch-main.ts",
|
|
125
113
|
"scripts/rules/oracle-consulted.ts",
|
|
126
|
-
"scripts/rules/
|
|
114
|
+
"scripts/rules/pre-gate-cut.ts",
|
|
127
115
|
"scripts/rules/piped-verification.ts",
|
|
128
116
|
"scripts/rules/poll-loop.ts",
|
|
129
|
-
"scripts/rules/pre-gate-cut.ts",
|
|
130
|
-
"scripts/rules/prior-comment-read.ts",
|
|
131
117
|
"scripts/rules/raw-field-body.ts",
|
|
118
|
+
"scripts/rules/prior-comment-read.ts",
|
|
132
119
|
"scripts/rules/rule-body-guard.ts",
|
|
133
120
|
"scripts/rules/shell-body-trigger.ts",
|
|
134
121
|
"scripts/rules/test-declared-commit.ts",
|
|
122
|
+
"scripts/josh/process-identity.ts",
|
|
123
|
+
"scripts/run/run-carry-change.ts",
|
|
135
124
|
"scripts/rules/third-party-write.ts",
|
|
125
|
+
"scripts/run/run-carry-conversation.ts",
|
|
126
|
+
"scripts/rules/worktree-guard.ts",
|
|
127
|
+
"scripts/run/run-progress-read.ts",
|
|
128
|
+
"scripts/lib/error-message.ts",
|
|
136
129
|
"scripts/run/run-watcher-guard.ts",
|
|
137
|
-
"scripts/
|
|
130
|
+
"scripts/lib/schemas.ts",
|
|
131
|
+
"scripts/josh/josh-command-map.ts",
|
|
132
|
+
"scripts/lane/lane-paths.ts",
|
|
133
|
+
"scripts/lib/read-file.ts",
|
|
138
134
|
"scripts/cost-runtime/cost-cli.ts",
|
|
135
|
+
"scripts/time-runtime/time-round-trips.ts",
|
|
136
|
+
"scripts/rules/implementation-cut-verdict.ts",
|
|
137
|
+
"scripts/cost-runtime/cost-format.ts",
|
|
139
138
|
"scripts/cost-runtime/cost-verdict.ts",
|
|
140
|
-
"scripts/
|
|
141
|
-
"scripts/
|
|
142
|
-
"scripts/lib/timed-fetch.ts",
|
|
143
|
-
"scripts/gh/gh-spawn.ts",
|
|
144
|
-
"scripts/run/run-event-scope.ts",
|
|
139
|
+
"scripts/cost-runtime/cost-usage.ts",
|
|
140
|
+
"scripts/cost-runtime/cost-attribute.ts",
|
|
145
141
|
"scripts/run/detached-launch.ts",
|
|
146
142
|
"scripts/git/git-location-environment.ts",
|
|
147
|
-
"scripts/discovery/repo-map-logic.ts",
|
|
148
143
|
"scripts/git/constants.ts",
|
|
149
|
-
"scripts/run/run-
|
|
150
|
-
"scripts/backlog/backlog-budget-cli.ts",
|
|
151
|
-
"scripts/lane/lane-seed.ts",
|
|
144
|
+
"scripts/run/run-issue-number.ts",
|
|
152
145
|
"scripts/lane/lane-environment.ts",
|
|
146
|
+
"scripts/rules/protected-files.ts",
|
|
153
147
|
"scripts/git/git-worktree.ts",
|
|
148
|
+
"scripts/lane/lane-seed.ts",
|
|
149
|
+
"scripts/gh/git-gh-helpers.ts",
|
|
150
|
+
"scripts/lib/timed-fetch.ts",
|
|
154
151
|
"scripts/lib/status-icons.ts",
|
|
155
|
-
"scripts/
|
|
156
|
-
"scripts/
|
|
157
|
-
"scripts/git/git-push-transport.ts",
|
|
152
|
+
"scripts/backlog/backlog-budget-cli.ts",
|
|
153
|
+
"scripts/discovery/repo-map-logic.ts",
|
|
158
154
|
"scripts/cost-runtime/context-cut-payback.ts",
|
|
155
|
+
"scripts/gh/git-gh-issue.ts",
|
|
156
|
+
"scripts/gh/git-gh-pr.ts",
|
|
157
|
+
"scripts/gh/git-gh-pr-auto-merge.ts",
|
|
158
|
+
"scripts/gh/git-gh-repo.ts",
|
|
159
|
+
"scripts/rules/git-argv.ts",
|
|
160
|
+
"scripts/gh/git-pr-checks-watch.ts",
|
|
161
|
+
"scripts/gh/gh-spawn.ts",
|
|
162
|
+
"scripts/josh/josh-verdict.ts",
|
|
159
163
|
"scripts/josh/agent-session-environment.ts",
|
|
164
|
+
"scripts/run/run-progress-config.ts",
|
|
165
|
+
"scripts/run/run-progress.ts",
|
|
160
166
|
"scripts/run/run-progress-clock.ts",
|
|
161
|
-
"scripts/
|
|
162
|
-
"scripts/
|
|
163
|
-
"scripts/run/run-
|
|
164
|
-
"scripts/
|
|
165
|
-
"scripts/git/
|
|
166
|
-
"scripts/
|
|
167
|
-
"scripts/epic/epic-busy.ts",
|
|
168
|
-
"scripts/lib/timeouts.ts",
|
|
169
|
-
"scripts/agent/interactive-ask.ts",
|
|
167
|
+
"scripts/test/test-declared-changed.ts",
|
|
168
|
+
"scripts/git/git-spawn-sync.ts",
|
|
169
|
+
"scripts/run/run-ship-next.ts",
|
|
170
|
+
"scripts/git/git-execa-error.ts",
|
|
171
|
+
"scripts/git/git-push-transport.ts",
|
|
172
|
+
"scripts/git/git-spawn.ts",
|
|
170
173
|
"scripts/rules/oracle-firing.ts",
|
|
171
|
-
"scripts/
|
|
172
|
-
"scripts/
|
|
173
|
-
"scripts/
|
|
174
|
+
"scripts/rules/decision-oracle.ts",
|
|
175
|
+
"scripts/agent/interactive-ask.ts",
|
|
176
|
+
"scripts/rules/destructive-command.ts",
|
|
177
|
+
"scripts/rules/index-guard.ts",
|
|
178
|
+
"scripts/git/repository-lock.ts",
|
|
174
179
|
"scripts/git/git-ls-remote.ts",
|
|
175
|
-
"scripts/
|
|
176
|
-
"scripts/
|
|
180
|
+
"scripts/gh/git-gh-exec.ts",
|
|
181
|
+
"scripts/lib/timeouts.ts",
|
|
182
|
+
"scripts/run/run-event-scope.ts",
|
|
177
183
|
"scripts/followup/git-followup-stages.ts",
|
|
178
|
-
"scripts/
|
|
179
|
-
"scripts/
|
|
184
|
+
"scripts/epic/epic-triage.ts",
|
|
185
|
+
"scripts/lib/cli-flags.ts",
|
|
186
|
+
"scripts/run/run-carry-streak.ts",
|
|
187
|
+
"scripts/josh/path-decision.ts",
|
|
180
188
|
"scripts/cost-runtime/cost-pricing.ts",
|
|
181
|
-
"scripts/
|
|
182
|
-
"scripts/
|
|
183
|
-
"scripts/
|
|
189
|
+
"scripts/gh/git-gh-pr-rest.ts",
|
|
190
|
+
"scripts/gh/git-gh-api-path.ts",
|
|
191
|
+
"scripts/gh/git-gh-pr-read.ts",
|
|
192
|
+
"scripts/gh/git-gh-issue-write.ts",
|
|
193
|
+
"scripts/gh/git-gh-issue-list.ts",
|
|
194
|
+
"scripts/gh/git-gh-issue-read.ts",
|
|
195
|
+
"scripts/gh/git-gh-issue-rest.ts",
|
|
196
|
+
"scripts/cost-runtime/own-session.ts",
|
|
197
|
+
"scripts/cost-runtime/transcript-cwd.ts",
|
|
198
|
+
"scripts/cost-runtime/cost-corpus.ts",
|
|
199
|
+
"scripts/run/run-ship-stage.ts",
|
|
200
|
+
"scripts/time-runtime/time-command-key.ts",
|
|
201
|
+
"scripts/rules/decision-oracle-stage.ts",
|
|
202
|
+
"scripts/agent/agent-launch-environment.ts",
|
|
203
|
+
"scripts/time-runtime/time-format.ts",
|
|
204
|
+
"scripts/josh/process-owner.ts",
|
|
205
|
+
"scripts/gh/git-gh-failure.ts",
|
|
206
|
+
"scripts/git/changed-paths.ts",
|
|
207
|
+
"scripts/gate/project-checks.ts",
|
|
208
|
+
"scripts/gh/git-gh-check.ts",
|
|
209
|
+
"scripts/gh/git-gh-pr-snapshot.ts",
|
|
210
|
+
"scripts/lane/lane-report.ts",
|
|
211
|
+
"scripts/ci/pr-classification.ts",
|
|
212
|
+
"scripts/lib/poll.ts",
|
|
213
|
+
"scripts/cost-runtime/codex-usage.ts",
|
|
214
|
+
"scripts/run/run-liveness.ts",
|
|
215
|
+
"scripts/run/run-preflight.ts",
|
|
184
216
|
"scripts/josh/josh-commands-ai.ts",
|
|
217
|
+
"scripts/josh/josh-commands-workflow.ts",
|
|
218
|
+
"scripts/epic/epic-busy.ts",
|
|
185
219
|
"scripts/josh/josh-commands-clone.ts",
|
|
186
220
|
"scripts/josh/josh-commands-development.ts",
|
|
187
221
|
"scripts/josh/josh-commands-hooks.ts",
|
|
@@ -189,90 +223,58 @@
|
|
|
189
223
|
"scripts/josh/josh-commands-maintenance.ts",
|
|
190
224
|
"scripts/josh/josh-commands-project.ts",
|
|
191
225
|
"scripts/josh/josh-commands-versioning.ts",
|
|
192
|
-
"scripts/git/git-
|
|
193
|
-
"scripts/
|
|
194
|
-
"scripts/
|
|
195
|
-
"scripts/
|
|
196
|
-
"scripts/
|
|
197
|
-
"scripts/
|
|
198
|
-
"scripts/
|
|
199
|
-
"scripts/rules/index-guard.ts",
|
|
200
|
-
"scripts/gh/git-gh-failure.ts",
|
|
201
|
-
"scripts/version/kit-descriptor.ts",
|
|
226
|
+
"scripts/git/git-ssh-keepalive.ts",
|
|
227
|
+
"scripts/gh/git-pr-checks.ts",
|
|
228
|
+
"scripts/gh/git-pr-checks-eval.ts",
|
|
229
|
+
"scripts/gh/git-pr-checks-parse.ts",
|
|
230
|
+
"scripts/doctor/doctor-consumer.ts",
|
|
231
|
+
"scripts/time-runtime/time-agent-bundles.ts",
|
|
232
|
+
"scripts/time-runtime/time-phase-names.ts",
|
|
202
233
|
"scripts/lib/spawn-exit.ts",
|
|
203
|
-
"scripts/
|
|
204
|
-
"scripts/
|
|
205
|
-
"scripts/
|
|
206
|
-
"scripts/
|
|
207
|
-
"scripts/cost-runtime/own-session.ts",
|
|
234
|
+
"scripts/run/run-stage.ts",
|
|
235
|
+
"scripts/gh/git-gh-reachability.ts",
|
|
236
|
+
"scripts/gh/git-gh-rest-state.ts",
|
|
237
|
+
"scripts/git/parse-json-array.ts",
|
|
208
238
|
"scripts/git/schemas.ts",
|
|
209
|
-
"scripts/agent/
|
|
239
|
+
"scripts/agent/codex-home-source.ts",
|
|
240
|
+
"scripts/test/skip-marker.ts",
|
|
241
|
+
"scripts/gh/git-gh-pr-rollup.ts",
|
|
242
|
+
"scripts/version/kit-descriptor.ts",
|
|
210
243
|
"scripts/issue/issue-state.ts",
|
|
211
|
-
"scripts/gh/git-gh-command.ts",
|
|
212
|
-
"scripts/git/parse-json-array.ts",
|
|
213
244
|
"scripts/agent/agent-event.ts",
|
|
214
|
-
"scripts/gh/
|
|
215
|
-
"scripts/
|
|
216
|
-
"scripts/gh/git-gh-
|
|
217
|
-
"scripts/git/changed-paths.ts",
|
|
218
|
-
"scripts/josh/josh-commands-split.ts",
|
|
245
|
+
"scripts/gh/gh-cli-token.ts",
|
|
246
|
+
"scripts/init/project-profile.ts",
|
|
247
|
+
"scripts/gh/git-gh-pr-review.ts",
|
|
219
248
|
"scripts/josh/josh-commands-backlog.ts",
|
|
220
249
|
"scripts/josh/josh-commands-document.ts",
|
|
221
250
|
"scripts/josh/josh-commands-guard.ts",
|
|
222
251
|
"scripts/josh/josh-commands-issue.ts",
|
|
223
252
|
"scripts/josh/josh-commands-lane.ts",
|
|
224
|
-
"scripts/rules/decision-oracle-stage.ts",
|
|
225
253
|
"scripts/josh/josh-commands-run.ts",
|
|
226
|
-
"scripts/
|
|
227
|
-
"scripts/
|
|
228
|
-
"scripts/gh/git-gh-pr-read.ts",
|
|
229
|
-
"scripts/run/run-ship-stage.ts",
|
|
230
|
-
"scripts/gh/git-gh-helpers.ts",
|
|
231
|
-
"scripts/agent/codex-home-source.ts",
|
|
232
|
-
"scripts/gh/git-gh-issue.ts",
|
|
233
|
-
"scripts/gh/git-gh-pr.ts",
|
|
234
|
-
"scripts/gh/git-gh-pr-auto-merge.ts",
|
|
235
|
-
"scripts/gh/git-gh-repo.ts",
|
|
236
|
-
"scripts/gh/git-pr-checks-watch.ts",
|
|
237
|
-
"scripts/gh/gh-cli-token.ts",
|
|
238
|
-
"scripts/gh/git-gh-reachability.ts",
|
|
239
|
-
"scripts/gh/git-gh-issue-rest.ts",
|
|
240
|
-
"scripts/run/run-stage.ts",
|
|
241
|
-
"scripts/gh/git-gh-issue-write.ts",
|
|
242
|
-
"scripts/agent/claude-result-event.ts",
|
|
243
|
-
"scripts/gh/git-pr-checks-parse.ts",
|
|
244
|
-
"scripts/gh/git-pr-checks.ts",
|
|
245
|
-
"scripts/gh/git-pr-checks-eval.ts",
|
|
246
|
-
"scripts/gh/git-gh-pr-snapshot.ts",
|
|
247
|
-
"scripts/gh/git-gh-issue-list.ts",
|
|
248
|
-
"scripts/ci/pr-classification.ts",
|
|
249
|
-
"scripts/lib/poll.ts",
|
|
250
|
-
"scripts/gh/git-gh-pr-rest.ts",
|
|
251
|
-
"scripts/gh/git-gh-rest-state.ts",
|
|
252
|
-
"scripts/gh/git-gh-pr-rollup.ts",
|
|
253
|
-
"scripts/gh/git-gh-pr-review.ts"
|
|
254
|
+
"scripts/josh/josh-commands-split.ts",
|
|
255
|
+
"scripts/agent/claude-result-event.ts"
|
|
254
256
|
],
|
|
255
257
|
"outputs": [
|
|
256
258
|
"codex-hook-adapter.js",
|
|
257
259
|
"pretool-guard.js",
|
|
258
|
-
"chunk-
|
|
260
|
+
"chunk-KBXZLMRH.js",
|
|
259
261
|
"stop-guard.js",
|
|
260
|
-
"chunk-
|
|
262
|
+
"chunk-JKKTVDAG.js",
|
|
261
263
|
"format-edited.js",
|
|
262
|
-
"chunk-
|
|
264
|
+
"chunk-FO2I7UT7.js",
|
|
263
265
|
"chunk-3V37IID6.js",
|
|
264
266
|
"session-lang.js",
|
|
265
267
|
"chunk-6V5OPIUU.js",
|
|
266
268
|
"batch-guard.js",
|
|
267
|
-
"chunk-
|
|
269
|
+
"chunk-KOKOAV6D.js",
|
|
268
270
|
"investigation-guard.js",
|
|
269
|
-
"chunk-
|
|
271
|
+
"chunk-RFWWUI5F.js",
|
|
270
272
|
"duplicate-read-guard.js",
|
|
271
|
-
"chunk-
|
|
272
|
-
"chunk-
|
|
273
|
-
"chunk-
|
|
274
|
-
"chunk-
|
|
275
|
-
"chunk-
|
|
273
|
+
"chunk-HBKZLITF.js",
|
|
274
|
+
"chunk-LJBLGHEH.js",
|
|
275
|
+
"chunk-HANSKHES.js",
|
|
276
|
+
"chunk-NFZGFGOR.js",
|
|
277
|
+
"chunk-GDU26K3J.js",
|
|
276
278
|
"chunk-WPALEIRX.js",
|
|
277
279
|
"chunk-RKUAD3I6.js"
|
|
278
280
|
]
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
is_enabled,
|
|
11
11
|
load_environment_file,
|
|
12
12
|
refusal_path
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-RFWWUI5F.js";
|
|
14
|
+
import "./chunk-LJBLGHEH.js";
|
|
15
|
+
import "./chunk-HANSKHES.js";
|
|
16
|
+
import "./chunk-NFZGFGOR.js";
|
|
17
|
+
import "./chunk-GDU26K3J.js";
|
|
18
18
|
import "./chunk-WPALEIRX.js";
|
|
19
19
|
import "./chunk-RKUAD3I6.js";
|
|
20
20
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env tsx
|
|
2
2
|
import {
|
|
3
3
|
pretool_outcome_async
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-KBXZLMRH.js";
|
|
5
|
+
import "./chunk-JKKTVDAG.js";
|
|
6
6
|
import "./chunk-3V37IID6.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-KOKOAV6D.js";
|
|
8
|
+
import "./chunk-RFWWUI5F.js";
|
|
9
|
+
import "./chunk-HBKZLITF.js";
|
|
10
|
+
import "./chunk-LJBLGHEH.js";
|
|
11
|
+
import "./chunk-HANSKHES.js";
|
|
12
12
|
import {
|
|
13
13
|
hook_decision
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-NFZGFGOR.js";
|
|
15
|
+
import "./chunk-GDU26K3J.js";
|
|
16
16
|
import "./chunk-WPALEIRX.js";
|
|
17
17
|
import "./chunk-RKUAD3I6.js";
|
|
18
18
|
|
package/dist/hooks/stop-guard.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
backlog_budget,
|
|
8
8
|
filing_cap,
|
|
9
9
|
git_gh_api_path,
|
|
10
|
+
git_gh_command,
|
|
10
11
|
git_gh_exec,
|
|
11
12
|
has_label_name,
|
|
12
13
|
issue_cite,
|
|
@@ -24,14 +25,14 @@ import {
|
|
|
24
25
|
run_headless,
|
|
25
26
|
run_hold,
|
|
26
27
|
run_invocation
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JKKTVDAG.js";
|
|
28
29
|
import {
|
|
29
30
|
session_language
|
|
30
31
|
} from "./chunk-6V5OPIUU.js";
|
|
31
32
|
import {
|
|
32
33
|
hook_decision,
|
|
33
34
|
lane_child_marker
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NFZGFGOR.js";
|
|
35
36
|
import {
|
|
36
37
|
PROJECT_ROOT,
|
|
37
38
|
json_value,
|
|
@@ -39,7 +40,7 @@ import {
|
|
|
39
40
|
time_density_hook,
|
|
40
41
|
time_hook_transcript,
|
|
41
42
|
time_reported_failure
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-GDU26K3J.js";
|
|
43
44
|
import "./chunk-WPALEIRX.js";
|
|
44
45
|
import "./chunk-RKUAD3I6.js";
|
|
45
46
|
|
|
@@ -349,19 +350,23 @@ async function read_ready(ports = DEFAULT_PORTS) {
|
|
|
349
350
|
if (free_lanes2 <= NO_FREE) return { issues: [], free_lanes: free_lanes2 };
|
|
350
351
|
return { issues: await ports.ready_issues(), free_lanes: free_lanes2 };
|
|
351
352
|
}
|
|
352
|
-
function ready_line(reading) {
|
|
353
|
+
function ready_line(reading, slug) {
|
|
353
354
|
if (reading.issues.length === NONE2 || reading.free_lanes <= NO_FREE) return void 0;
|
|
354
|
-
const
|
|
355
|
+
const cite = issue_cite.citer(slug, /* @__PURE__ */ new Map());
|
|
356
|
+
const issues = reading.issues.map((issue) => cite(issue)).join(" ");
|
|
355
357
|
return `ready ${issues} \xB7 free lanes ${String(reading.free_lanes)}`;
|
|
356
358
|
}
|
|
357
|
-
async function parent_ready_line(ports, is_parent) {
|
|
359
|
+
async function parent_ready_line(ports, is_parent, read_repo) {
|
|
358
360
|
if (!await is_parent()) return void 0;
|
|
359
|
-
|
|
361
|
+
const reading = await read_ready(ports);
|
|
362
|
+
return reading.issues.length === NONE2 ? void 0 : ready_line(reading, await read_repo());
|
|
360
363
|
}
|
|
361
|
-
|
|
364
|
+
function print_line(line) {
|
|
365
|
+
if (line !== void 0) console.info(line);
|
|
366
|
+
}
|
|
367
|
+
async function print_ready_line(ports = DEFAULT_PORTS, is_parent = run_headless.is_backlog_parent, read_repo = git_gh_command.repo_get_name_with_owner) {
|
|
362
368
|
try {
|
|
363
|
-
|
|
364
|
-
if (line !== void 0) console.info(line);
|
|
369
|
+
print_line(await parent_ready_line(ports, is_parent, read_repo));
|
|
365
370
|
} catch {
|
|
366
371
|
}
|
|
367
372
|
}
|
|
@@ -840,8 +845,8 @@ function build_citation_reason(references) {
|
|
|
840
845
|
var FILING_OFFER_REASON = '\u26D4 filing offer: your reply offers to file an Issue instead of filing it. Filing into a first-party repository is Tier A \u2014 the trigger is the judgement that it is worth filing, not the run\'s progress (`.claude/skills/workflow-commands/SKILL.md` \u2192 \xA72i, `observation-filing.md`). Run `pnpm josh issue:file "<title>" --body-file <path> --depth <0|1|2>` \u2014 it scouts, lints, labels and runs `epic:bundle` itself \u2014 then end with the one-line citation of what was filed; do not repeat your previous reply. If it is not worth filing after all, say so in one line instead.';
|
|
841
846
|
var HEADLESS_WAIT_MARKER = "\u26D4 headless parent:";
|
|
842
847
|
var HEADLESS_REFUSAL_CAP = 3;
|
|
843
|
-
var HEADLESS_WAIT_CALLS = ['"command":"pnpm josh lane:await'
|
|
844
|
-
var HEADLESS_WAIT_BODY = ' this is a `claude -p` `backlogrun` parent (`JOSH_RUN_HEADLESS`) with lanes still in flight, and ending this turn ends the process \u2014 its background waits are killed with it and the lanes are left without a parent. Wait in the foreground instead: run `pnpm josh lane:await <N...>` for the in-flight lanes (
|
|
848
|
+
var HEADLESS_WAIT_CALLS = ['"command":"pnpm josh lane:await'];
|
|
849
|
+
var HEADLESS_WAIT_BODY = ' this is a `claude -p` `backlogrun` parent (`JOSH_RUN_HEADLESS`) with lanes still in flight, and ending this turn ends the process \u2014 its background waits are killed with it and the lanes are left without a parent. Wait in the foreground instead: run `pnpm josh lane:await <N...>` for the in-flight lanes as a foreground command within the tool timeout (with `pnpm josh run:progress --wait` in the background for the heartbeat, which streams its reports itself and lives while this turn does), act on what it reports, and continue the loop. End the turn only after `pnpm josh run:carry --cut` or `--end` (`backlogrun-progress.md` \u2192 "The parent keeps no clock of its own").';
|
|
845
850
|
var HEADLESS_WAIT_REASON = `${HEADLESS_WAIT_MARKER}${HEADLESS_WAIT_BODY}`;
|
|
846
851
|
var INDEX_COMMAND_PATTERN = /git (?:add|stage|rm --cached|restore --staged|restore -S)\b/u;
|
|
847
852
|
var PERMISSION_PATTERN = /許可|承認|permission|approve|approval|authorization/iu;
|