@namzu/sdk 69.4.0 → 71.0.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/CHANGELOG.md +161 -0
- package/dist/authorization/bare-repository.d.ts +21 -0
- package/dist/authorization/bare-repository.d.ts.map +1 -0
- package/dist/authorization/bare-repository.js +62 -0
- package/dist/authorization/bare-repository.js.map +1 -0
- package/dist/authorization/command-line.d.ts.map +1 -1
- package/dist/authorization/command-line.js +10 -3
- package/dist/authorization/command-line.js.map +1 -1
- package/dist/authorization/gate.d.ts +7 -0
- package/dist/authorization/gate.d.ts.map +1 -1
- package/dist/authorization/gate.js +4 -0
- package/dist/authorization/gate.js.map +1 -1
- package/dist/authorization/protected-paths.d.ts +24 -6
- package/dist/authorization/protected-paths.d.ts.map +1 -1
- package/dist/authorization/protected-paths.js +83 -10
- package/dist/authorization/protected-paths.js.map +1 -1
- package/dist/authorization/readonly-commands.d.ts +17 -5
- package/dist/authorization/readonly-commands.d.ts.map +1 -1
- package/dist/authorization/readonly-commands.js +77 -6
- package/dist/authorization/readonly-commands.js.map +1 -1
- package/dist/authorization/readonly-flags.d.ts.map +1 -1
- package/dist/authorization/readonly-flags.js +98 -0
- package/dist/authorization/readonly-flags.js.map +1 -1
- package/dist/authorization/shell-lexer.d.ts +15 -0
- package/dist/authorization/shell-lexer.d.ts.map +1 -1
- package/dist/authorization/shell-lexer.js +370 -2
- package/dist/authorization/shell-lexer.js.map +1 -1
- package/dist/authorization/shell-paths.d.ts.map +1 -1
- package/dist/authorization/shell-paths.js +276 -0
- package/dist/authorization/shell-paths.js.map +1 -1
- package/dist/authorization/shell-session-state.d.ts +47 -0
- package/dist/authorization/shell-session-state.d.ts.map +1 -0
- package/dist/authorization/shell-session-state.js +70 -0
- package/dist/authorization/shell-session-state.js.map +1 -0
- package/dist/authorization/shell-session.d.ts +9 -0
- package/dist/authorization/shell-session.d.ts.map +1 -0
- package/dist/authorization/shell-session.js +19 -0
- package/dist/authorization/shell-session.js.map +1 -0
- package/dist/authorization/skill-grant.d.ts.map +1 -1
- package/dist/authorization/skill-grant.js +1 -0
- package/dist/authorization/skill-grant.js.map +1 -1
- package/dist/compaction/extractor.d.ts.map +1 -1
- package/dist/compaction/extractor.js +2 -0
- package/dist/compaction/extractor.js.map +1 -1
- package/dist/compaction/hooks.d.ts +16 -0
- package/dist/compaction/hooks.d.ts.map +1 -1
- package/dist/compaction/hooks.js +26 -1
- package/dist/compaction/hooks.js.map +1 -1
- package/dist/compaction/manual.d.ts.map +1 -1
- package/dist/compaction/manual.js +6 -1
- package/dist/compaction/manual.js.map +1 -1
- package/dist/compaction/restore.d.ts.map +1 -1
- package/dist/compaction/restore.js +3 -2
- package/dist/compaction/restore.js.map +1 -1
- package/dist/config/runtime.d.ts +2 -0
- package/dist/config/runtime.d.ts.map +1 -1
- package/dist/config/runtime.js +7 -0
- package/dist/config/runtime.js.map +1 -1
- package/dist/connector/mcp/client.d.ts +7 -0
- package/dist/connector/mcp/client.d.ts.map +1 -1
- package/dist/connector/mcp/client.js +54 -4
- package/dist/connector/mcp/client.js.map +1 -1
- package/dist/connector/web/guarded-fetch.d.ts +30 -0
- package/dist/connector/web/guarded-fetch.d.ts.map +1 -1
- package/dist/connector/web/guarded-fetch.js +85 -0
- package/dist/connector/web/guarded-fetch.js.map +1 -1
- package/dist/connector/web/index.d.ts +1 -1
- package/dist/connector/web/index.d.ts.map +1 -1
- package/dist/connector/web/index.js +1 -1
- package/dist/connector/web/index.js.map +1 -1
- package/dist/connector/web/types.d.ts +8 -0
- package/dist/connector/web/types.d.ts.map +1 -1
- package/dist/constants/compaction/index.d.ts.map +1 -1
- package/dist/constants/compaction/index.js +1 -1
- package/dist/constants/compaction/index.js.map +1 -1
- package/dist/execution/code-runtime/worker-program.d.ts +1 -1
- package/dist/execution/code-runtime/worker-program.d.ts.map +1 -1
- package/dist/execution/code-runtime/worker-program.js +9 -5
- package/dist/execution/code-runtime/worker-program.js.map +1 -1
- package/dist/execution/local.d.ts.map +1 -1
- package/dist/execution/local.js +6 -1
- package/dist/execution/local.js.map +1 -1
- package/dist/peers/index.d.ts +2 -2
- package/dist/peers/index.d.ts.map +1 -1
- package/dist/peers/index.js +1 -1
- package/dist/peers/index.js.map +1 -1
- package/dist/peers/record.d.ts +74 -0
- package/dist/peers/record.d.ts.map +1 -1
- package/dist/peers/record.js +41 -1
- package/dist/peers/record.js.map +1 -1
- package/dist/peers/registry.d.ts.map +1 -1
- package/dist/peers/registry.js +20 -3
- package/dist/peers/registry.js.map +1 -1
- package/dist/plugin/bin-path.d.ts +41 -0
- package/dist/plugin/bin-path.d.ts.map +1 -0
- package/dist/plugin/bin-path.js +146 -0
- package/dist/plugin/bin-path.js.map +1 -0
- package/dist/plugin/common-layout/read.js +3 -3
- package/dist/plugin/common-layout/read.js.map +1 -1
- package/dist/plugin/common-layout-names.d.ts.map +1 -1
- package/dist/plugin/common-layout-names.js +0 -1
- package/dist/plugin/common-layout-names.js.map +1 -1
- package/dist/plugin/hook-module/capabilities.d.ts +12 -0
- package/dist/plugin/hook-module/capabilities.d.ts.map +1 -1
- package/dist/plugin/hook-module/capabilities.js +82 -10
- package/dist/plugin/hook-module/capabilities.js.map +1 -1
- package/dist/plugin/hook-module/consent.d.ts +11 -0
- package/dist/plugin/hook-module/consent.d.ts.map +1 -1
- package/dist/plugin/hook-module/consent.js +31 -0
- package/dist/plugin/hook-module/consent.js.map +1 -1
- package/dist/plugin/hook-module/host.d.ts.map +1 -1
- package/dist/plugin/hook-module/host.js +69 -23
- package/dist/plugin/hook-module/host.js.map +1 -1
- package/dist/plugin/hook-module/index.d.ts +1 -1
- package/dist/plugin/hook-module/index.d.ts.map +1 -1
- package/dist/plugin/hook-module/index.js +1 -1
- package/dist/plugin/hook-module/index.js.map +1 -1
- package/dist/plugin/hook-module/scan.d.ts +16 -0
- package/dist/plugin/hook-module/scan.d.ts.map +1 -1
- package/dist/plugin/hook-module/scan.js +68 -3
- package/dist/plugin/hook-module/scan.js.map +1 -1
- package/dist/plugin/hook-module/worker-source.d.ts +5 -4
- package/dist/plugin/hook-module/worker-source.d.ts.map +1 -1
- package/dist/plugin/hook-module/worker-source.js +254 -28
- package/dist/plugin/hook-module/worker-source.js.map +1 -1
- package/dist/plugin/lifecycle.d.ts +21 -0
- package/dist/plugin/lifecycle.d.ts.map +1 -1
- package/dist/plugin/lifecycle.js +64 -0
- package/dist/plugin/lifecycle.js.map +1 -1
- package/dist/plugin/shell-hook-tool-names.d.ts.map +1 -1
- package/dist/plugin/shell-hook-tool-names.js +1 -0
- package/dist/plugin/shell-hook-tool-names.js.map +1 -1
- package/dist/plugin/shell-hook.d.ts +1 -1
- package/dist/plugin/shell-hook.d.ts.map +1 -1
- package/dist/plugin/shell-hook.js +22 -4
- package/dist/plugin/shell-hook.js.map +1 -1
- package/dist/public-runtime.d.ts +11 -9
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +11 -8
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-tools.d.ts +7 -3
- package/dist/public-tools.d.ts.map +1 -1
- package/dist/public-tools.js +7 -3
- package/dist/public-tools.js.map +1 -1
- package/dist/public-types.d.ts +2 -2
- package/dist/public-types.d.ts.map +1 -1
- package/dist/runtime/jobs/monitor-stream.d.ts +9 -1
- package/dist/runtime/jobs/monitor-stream.d.ts.map +1 -1
- package/dist/runtime/jobs/monitor-stream.js +13 -4
- package/dist/runtime/jobs/monitor-stream.js.map +1 -1
- package/dist/runtime/jobs/registry.d.ts +4 -0
- package/dist/runtime/jobs/registry.d.ts.map +1 -1
- package/dist/runtime/jobs/registry.js +12 -2
- package/dist/runtime/jobs/registry.js.map +1 -1
- package/dist/runtime/query/auto-review/git-status.d.ts.map +1 -1
- package/dist/runtime/query/auto-review/git-status.js +3 -2
- package/dist/runtime/query/auto-review/git-status.js.map +1 -1
- package/dist/runtime/query/executor.d.ts +16 -6
- package/dist/runtime/query/executor.d.ts.map +1 -1
- package/dist/runtime/query/executor.js +135 -15
- package/dist/runtime/query/executor.js.map +1 -1
- package/dist/runtime/query/index.d.ts.map +1 -1
- package/dist/runtime/query/index.js +2 -2
- package/dist/runtime/query/index.js.map +1 -1
- package/dist/runtime/query/iteration/outstanding-work.d.ts.map +1 -1
- package/dist/runtime/query/iteration/outstanding-work.js +14 -4
- package/dist/runtime/query/iteration/outstanding-work.js.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.js +11 -1
- package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
- package/dist/runtime/query/iteration/phases/tool-review.d.ts +2 -0
- package/dist/runtime/query/iteration/phases/tool-review.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/tool-review.js +19 -8
- package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
- package/dist/runtime/query/path-escalation.d.ts +6 -0
- package/dist/runtime/query/path-escalation.d.ts.map +1 -1
- package/dist/runtime/query/path-escalation.js +58 -4
- package/dist/runtime/query/path-escalation.js.map +1 -1
- package/dist/runtime/query/review-policy.d.ts +21 -3
- package/dist/runtime/query/review-policy.d.ts.map +1 -1
- package/dist/runtime/query/review-policy.js +39 -21
- package/dist/runtime/query/review-policy.js.map +1 -1
- package/dist/runtime/query/steering.d.ts +11 -2
- package/dist/runtime/query/steering.d.ts.map +1 -1
- package/dist/runtime/query/steering.js +18 -4
- package/dist/runtime/query/steering.js.map +1 -1
- package/dist/sandbox/provider/local.d.ts.map +1 -1
- package/dist/sandbox/provider/local.js +3 -1
- package/dist/sandbox/provider/local.js.map +1 -1
- package/dist/schedules/describe.d.ts.map +1 -1
- package/dist/schedules/describe.js +2 -0
- package/dist/schedules/describe.js.map +1 -1
- package/dist/schedules/evaluate.d.ts +4 -0
- package/dist/schedules/evaluate.d.ts.map +1 -1
- package/dist/schedules/evaluate.js +26 -1
- package/dist/schedules/evaluate.js.map +1 -1
- package/dist/schedules/index.d.ts +3 -1
- package/dist/schedules/index.d.ts.map +1 -1
- package/dist/schedules/index.js +2 -1
- package/dist/schedules/index.js.map +1 -1
- package/dist/schedules/next-fire.d.ts.map +1 -1
- package/dist/schedules/next-fire.js +10 -0
- package/dist/schedules/next-fire.js.map +1 -1
- package/dist/schedules/spec.d.ts +9 -0
- package/dist/schedules/spec.d.ts.map +1 -1
- package/dist/schedules/spec.js +33 -0
- package/dist/schedules/spec.js.map +1 -1
- package/dist/schedules/types.d.ts +32 -4
- package/dist/schedules/types.d.ts.map +1 -1
- package/dist/schedules/types.js +3 -2
- package/dist/schedules/types.js.map +1 -1
- package/dist/schedules/watch.d.ts +23 -0
- package/dist/schedules/watch.d.ts.map +1 -0
- package/dist/schedules/watch.js +46 -0
- package/dist/schedules/watch.js.map +1 -0
- package/dist/session/workspace/git-worktree.d.ts.map +1 -1
- package/dist/session/workspace/git-worktree.js +2 -1
- package/dist/session/workspace/git-worktree.js.map +1 -1
- package/dist/skills/arguments.d.ts +58 -0
- package/dist/skills/arguments.d.ts.map +1 -0
- package/dist/skills/arguments.js +208 -0
- package/dist/skills/arguments.js.map +1 -0
- package/dist/skills/index.d.ts +3 -1
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +1 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/inline-shell-host.d.ts +6 -0
- package/dist/skills/inline-shell-host.d.ts.map +1 -1
- package/dist/skills/inline-shell-host.js +8 -0
- package/dist/skills/inline-shell-host.js.map +1 -1
- package/dist/skills/inline-shell.d.ts +26 -1
- package/dist/skills/inline-shell.d.ts.map +1 -1
- package/dist/skills/inline-shell.js +1308 -22
- package/dist/skills/inline-shell.js.map +1 -1
- package/dist/tools/builtins/bash-cwd.d.ts.map +1 -1
- package/dist/tools/builtins/bash-cwd.js +2 -0
- package/dist/tools/builtins/bash-cwd.js.map +1 -1
- package/dist/tools/builtins/bash.d.ts.map +1 -1
- package/dist/tools/builtins/bash.js +79 -11
- package/dist/tools/builtins/bash.js.map +1 -1
- package/dist/tools/builtins/exit-semantics.d.ts +6 -0
- package/dist/tools/builtins/exit-semantics.d.ts.map +1 -1
- package/dist/tools/builtins/exit-semantics.js +10 -0
- package/dist/tools/builtins/exit-semantics.js.map +1 -1
- package/dist/tools/builtins/glob.d.ts.map +1 -1
- package/dist/tools/builtins/glob.js +68 -13
- package/dist/tools/builtins/glob.js.map +1 -1
- package/dist/tools/builtins/grep.d.ts.map +1 -1
- package/dist/tools/builtins/grep.js +37 -12
- package/dist/tools/builtins/grep.js.map +1 -1
- package/dist/tools/builtins/index.d.ts +11 -0
- package/dist/tools/builtins/index.d.ts.map +1 -1
- package/dist/tools/builtins/index.js +14 -0
- package/dist/tools/builtins/index.js.map +1 -1
- package/dist/tools/builtins/job.js +1 -1
- package/dist/tools/builtins/job.js.map +1 -1
- package/dist/tools/builtins/monitor.d.ts +1 -1
- package/dist/tools/builtins/monitor.d.ts.map +1 -1
- package/dist/tools/builtins/monitor.js +4 -2
- package/dist/tools/builtins/monitor.js.map +1 -1
- package/dist/tools/builtins/notebook-cells.d.ts +31 -0
- package/dist/tools/builtins/notebook-cells.d.ts.map +1 -0
- package/dist/tools/builtins/notebook-cells.js +160 -0
- package/dist/tools/builtins/notebook-cells.js.map +1 -0
- package/dist/tools/builtins/notebook-edit.d.ts +8 -0
- package/dist/tools/builtins/notebook-edit.d.ts.map +1 -0
- package/dist/tools/builtins/notebook-edit.js +249 -0
- package/dist/tools/builtins/notebook-edit.js.map +1 -0
- package/dist/tools/builtins/notebook-guard.d.ts.map +1 -1
- package/dist/tools/builtins/notebook-guard.js +2 -1
- package/dist/tools/builtins/notebook-guard.js.map +1 -1
- package/dist/tools/builtins/push-notification.d.ts +49 -0
- package/dist/tools/builtins/push-notification.d.ts.map +1 -0
- package/dist/tools/builtins/push-notification.js +107 -0
- package/dist/tools/builtins/push-notification.js.map +1 -0
- package/dist/tools/builtins/read-file.d.ts.map +1 -1
- package/dist/tools/builtins/read-file.js +8 -3
- package/dist/tools/builtins/read-file.js.map +1 -1
- package/dist/tools/builtins/read-media.d.ts.map +1 -1
- package/dist/tools/builtins/read-media.js +2 -1
- package/dist/tools/builtins/read-media.js.map +1 -1
- package/dist/tools/builtins/read-render.d.ts.map +1 -1
- package/dist/tools/builtins/read-render.js +5 -3
- package/dist/tools/builtins/read-render.js.map +1 -1
- package/dist/tools/builtins/search-support.d.ts +6 -4
- package/dist/tools/builtins/search-support.d.ts.map +1 -1
- package/dist/tools/builtins/search-support.js +15 -3
- package/dist/tools/builtins/search-support.js.map +1 -1
- package/dist/tools/builtins/skill.d.ts.map +1 -1
- package/dist/tools/builtins/skill.js +30 -8
- package/dist/tools/builtins/skill.js.map +1 -1
- package/dist/tools/builtins/sleep-guard.d.ts +20 -0
- package/dist/tools/builtins/sleep-guard.d.ts.map +1 -1
- package/dist/tools/builtins/sleep-guard.js +125 -1
- package/dist/tools/builtins/sleep-guard.js.map +1 -1
- package/dist/tools/builtins/wait-for-job.js +1 -1
- package/dist/tools/builtins/wait-for-job.js.map +1 -1
- package/dist/tools/builtins/web.d.ts +2 -0
- package/dist/tools/builtins/web.d.ts.map +1 -1
- package/dist/tools/builtins/web.js +97 -3
- package/dist/tools/builtins/web.js.map +1 -1
- package/dist/tools/command-shell.d.ts +50 -0
- package/dist/tools/command-shell.d.ts.map +1 -1
- package/dist/tools/command-shell.js +145 -0
- package/dist/tools/command-shell.js.map +1 -1
- package/dist/tools/env-scrub.d.ts +2 -0
- package/dist/tools/env-scrub.d.ts.map +1 -1
- package/dist/tools/env-scrub.js +15 -1
- package/dist/tools/env-scrub.js.map +1 -1
- package/dist/tools/git-config-env.d.ts +55 -0
- package/dist/tools/git-config-env.d.ts.map +1 -0
- package/dist/tools/git-config-env.js +130 -0
- package/dist/tools/git-config-env.js.map +1 -0
- package/dist/tools/schedules/schedule-tool.d.ts +7 -0
- package/dist/tools/schedules/schedule-tool.d.ts.map +1 -1
- package/dist/tools/schedules/schedule-tool.js +72 -3
- package/dist/tools/schedules/schedule-tool.js.map +1 -1
- package/dist/tools/schedules/types.d.ts +38 -2
- package/dist/tools/schedules/types.d.ts.map +1 -1
- package/dist/types/connector/mcp.d.ts +24 -0
- package/dist/types/connector/mcp.d.ts.map +1 -1
- package/dist/types/message/index.d.ts +21 -1
- package/dist/types/message/index.d.ts.map +1 -1
- package/dist/types/message/index.js +37 -2
- package/dist/types/message/index.js.map +1 -1
- package/dist/types/permission/index.d.ts +11 -2
- package/dist/types/permission/index.d.ts.map +1 -1
- package/dist/types/permission/index.js +12 -2
- package/dist/types/permission/index.js.map +1 -1
- package/dist/types/plugin/index.d.ts +10 -2
- package/dist/types/plugin/index.d.ts.map +1 -1
- package/dist/types/plugin/index.js.map +1 -1
- package/dist/types/tool/index.d.ts +13 -0
- package/dist/types/tool/index.d.ts.map +1 -1
- package/dist/types/tool/index.js.map +1 -1
- package/dist/utils/plain-terminal-text.d.ts +21 -0
- package/dist/utils/plain-terminal-text.d.ts.map +1 -0
- package/dist/utils/plain-terminal-text.js +156 -0
- package/dist/utils/plain-terminal-text.js.map +1 -0
- package/package.json +1 -1
- package/src/authorization/bare-repository.ts +70 -0
- package/src/authorization/command-line.ts +18 -4
- package/src/authorization/gate.ts +11 -0
- package/src/authorization/protected-paths.ts +89 -10
- package/src/authorization/readonly-commands.ts +75 -6
- package/src/authorization/readonly-flags.ts +103 -0
- package/src/authorization/shell-lexer.ts +367 -2
- package/src/authorization/shell-paths.ts +386 -0
- package/src/authorization/shell-session-state.ts +97 -0
- package/src/authorization/shell-session.ts +23 -0
- package/src/authorization/skill-grant.ts +1 -0
- package/src/compaction/extractor.ts +1 -0
- package/src/compaction/hooks.ts +43 -1
- package/src/compaction/manual.ts +6 -0
- package/src/compaction/restore.ts +3 -2
- package/src/config/runtime.ts +7 -0
- package/src/connector/mcp/client.ts +61 -4
- package/src/connector/web/guarded-fetch.ts +92 -0
- package/src/connector/web/index.ts +6 -1
- package/src/connector/web/types.ts +8 -0
- package/src/constants/compaction/index.ts +1 -1
- package/src/execution/code-runtime/worker-program.ts +9 -5
- package/src/execution/local.ts +6 -1
- package/src/peers/index.ts +8 -2
- package/src/peers/record.ts +45 -1
- package/src/peers/registry.ts +21 -5
- package/src/plugin/bin-path.ts +149 -0
- package/src/plugin/common-layout/read.ts +3 -3
- package/src/plugin/common-layout-names.ts +0 -1
- package/src/plugin/hook-module/capabilities.ts +94 -10
- package/src/plugin/hook-module/consent.ts +36 -0
- package/src/plugin/hook-module/host.ts +72 -21
- package/src/plugin/hook-module/index.ts +2 -0
- package/src/plugin/hook-module/scan.ts +76 -4
- package/src/plugin/hook-module/worker-source.ts +255 -28
- package/src/plugin/lifecycle.ts +67 -0
- package/src/plugin/shell-hook-tool-names.ts +1 -0
- package/src/plugin/shell-hook.ts +23 -4
- package/src/public-runtime.ts +27 -0
- package/src/public-tools.ts +36 -2
- package/src/public-types.ts +3 -1
- package/src/runtime/jobs/monitor-stream.ts +18 -4
- package/src/runtime/jobs/registry.ts +22 -2
- package/src/runtime/query/auto-review/git-status.ts +3 -2
- package/src/runtime/query/executor.ts +153 -12
- package/src/runtime/query/index.ts +5 -2
- package/src/runtime/query/iteration/outstanding-work.ts +22 -4
- package/src/runtime/query/iteration/phases/compaction.ts +14 -1
- package/src/runtime/query/iteration/phases/tool-review.ts +24 -7
- package/src/runtime/query/path-escalation.ts +52 -4
- package/src/runtime/query/review-policy.ts +47 -15
- package/src/runtime/query/steering.ts +32 -4
- package/src/sandbox/provider/local.ts +3 -1
- package/src/schedules/describe.ts +2 -0
- package/src/schedules/evaluate.ts +29 -1
- package/src/schedules/index.ts +9 -1
- package/src/schedules/next-fire.ts +9 -0
- package/src/schedules/spec.ts +42 -0
- package/src/schedules/types.ts +33 -3
- package/src/schedules/watch.ts +71 -0
- package/src/session/workspace/git-worktree.ts +3 -1
- package/src/skills/arguments.ts +250 -0
- package/src/skills/index.ts +10 -0
- package/src/skills/inline-shell-host.ts +16 -0
- package/src/skills/inline-shell.ts +1358 -22
- package/src/tools/builtins/bash-cwd.ts +2 -0
- package/src/tools/builtins/bash.ts +93 -13
- package/src/tools/builtins/exit-semantics.ts +10 -0
- package/src/tools/builtins/glob.ts +79 -15
- package/src/tools/builtins/grep.ts +37 -10
- package/src/tools/builtins/index.ts +15 -0
- package/src/tools/builtins/job.ts +1 -1
- package/src/tools/builtins/monitor.ts +4 -2
- package/src/tools/builtins/notebook-cells.ts +196 -0
- package/src/tools/builtins/notebook-edit.ts +280 -0
- package/src/tools/builtins/notebook-guard.ts +2 -1
- package/src/tools/builtins/push-notification.ts +138 -0
- package/src/tools/builtins/read-file.ts +9 -3
- package/src/tools/builtins/read-media.ts +2 -1
- package/src/tools/builtins/read-render.ts +5 -3
- package/src/tools/builtins/search-support.ts +17 -3
- package/src/tools/builtins/skill.ts +29 -7
- package/src/tools/builtins/sleep-guard.ts +128 -1
- package/src/tools/builtins/wait-for-job.ts +1 -1
- package/src/tools/builtins/web.ts +100 -3
- package/src/tools/command-shell.ts +166 -0
- package/src/tools/env-scrub.ts +13 -1
- package/src/tools/git-config-env.ts +143 -0
- package/src/tools/schedules/schedule-tool.ts +79 -3
- package/src/tools/schedules/types.ts +47 -9
- package/src/types/connector/mcp.ts +25 -0
- package/src/types/message/index.ts +53 -1
- package/src/types/permission/index.ts +20 -3
- package/src/types/plugin/index.ts +10 -2
- package/src/types/tool/index.ts +13 -0
- package/src/utils/plain-terminal-text.ts +142 -0
|
@@ -32,10 +32,27 @@ export const PROTECTED_DIRECTORIES: readonly string[] = [
|
|
|
32
32
|
'.devcontainer',
|
|
33
33
|
'.yarn',
|
|
34
34
|
'.mvn',
|
|
35
|
+
// Credential homes: a key, token or kubeconfig written here is used later
|
|
36
|
+
// by every command that signs in with it.
|
|
37
|
+
'.ssh',
|
|
38
|
+
'.aws',
|
|
39
|
+
'.azure',
|
|
40
|
+
'.gnupg',
|
|
41
|
+
'.kube',
|
|
42
|
+
'.docker',
|
|
35
43
|
]
|
|
36
44
|
|
|
37
45
|
/** Directory sequences; the segments must be adjacent. */
|
|
38
|
-
export const PROTECTED_NESTED_DIRECTORIES: readonly (readonly string[])[] = [
|
|
46
|
+
export const PROTECTED_NESTED_DIRECTORIES: readonly (readonly string[])[] = [
|
|
47
|
+
['.config', 'git'],
|
|
48
|
+
['.config', 'gh'],
|
|
49
|
+
['.config', 'glab-cli'],
|
|
50
|
+
['.config', 'gcloud'],
|
|
51
|
+
// A skill, agent or command folder is read back as instructions, and a
|
|
52
|
+
// skill's hooks run commands. `.agents/skills` is one of the folders Namzu
|
|
53
|
+
// loads skills from, at every level from the checkout root down.
|
|
54
|
+
['.agents', 'skills'],
|
|
55
|
+
]
|
|
39
56
|
|
|
40
57
|
/** File names; a path whose last segment is one of these is protected. */
|
|
41
58
|
export const PROTECTED_FILE_NAMES: readonly string[] = [
|
|
@@ -79,14 +96,29 @@ export const PROTECTED_FILE_NAMES: readonly string[] = [
|
|
|
79
96
|
'maven-wrapper.properties',
|
|
80
97
|
'.devcontainer.json',
|
|
81
98
|
'pyrightconfig.json',
|
|
99
|
+
// A skill file declares hooks (shell commands run later, outside the bash
|
|
100
|
+
// prompt) and the tools it pre-approves, wherever the folder it sits in is.
|
|
101
|
+
'SKILL.md',
|
|
82
102
|
]
|
|
83
103
|
|
|
84
104
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
|
|
105
|
+
* Names that are protected as the first segment of a path below a working
|
|
106
|
+
* root: the legacy project skills folder is `<root>/skills`, which a nested
|
|
107
|
+
* `src/skills` is not. Only a spelling relative to the root can say which, so a
|
|
108
|
+
* caller that has an absolute path passes the part below its root.
|
|
109
|
+
*/
|
|
110
|
+
export const PROTECTED_ROOT_DIRECTORIES: readonly string[] = ['skills']
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Folders under the project directory that hold what is authored on purpose
|
|
114
|
+
* (skills, agent definitions, commands). They are excused from the protection
|
|
115
|
+
* of `.namzu` only for a remote session: one whose working folder is a
|
|
116
|
+
* checkout the operator is not sitting at, where authoring through the model is
|
|
117
|
+
* the way the folder gets written. In a local session they are protected like
|
|
118
|
+
* the rest of `.namzu`, because a skill written there is loaded by a later
|
|
119
|
+
* session, which attaches its hooks and honours the tools it allows. Only the
|
|
120
|
+
* first project directory in a path can be excused: a second one deeper down,
|
|
121
|
+
* or any other protected name below, still protects the path.
|
|
90
122
|
*
|
|
91
123
|
* `worktrees` is not one of them. The checkouts of delegated work live in the
|
|
92
124
|
* Namzu home (`projects/<slug>/worktrees/`), whose writes are judged by their
|
|
@@ -100,29 +132,74 @@ export const PROJECT_DIRECTORY_AUTHORED_FOLDERS: readonly string[] = [
|
|
|
100
132
|
]
|
|
101
133
|
|
|
102
134
|
const PROJECT_DIRECTORY = '.namzu'
|
|
135
|
+
const SKILL_FILE = 'skill.md'
|
|
103
136
|
|
|
104
137
|
/** Lower case, with the two letters that fold into ASCII on some file systems. */
|
|
105
|
-
function
|
|
138
|
+
function lower(name: string): string {
|
|
106
139
|
return name.toLowerCase().replace(/ı/g, 'i').replace(/ſ/g, 's')
|
|
107
140
|
}
|
|
108
141
|
|
|
142
|
+
/** The six letters an 8.3 short name keeps of a long one: no dots, no spaces. */
|
|
143
|
+
function shortStem(name: string): string {
|
|
144
|
+
return name.replace(/[^a-z0-9]/g, '').slice(0, 6)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Protected names by the stem their NTFS short alias (`GIT~1` for `.git`) starts with.
|
|
148
|
+
const SHORT_STEMS = new Map<string, string>()
|
|
149
|
+
function rememberShortNames(names: readonly string[]): void {
|
|
150
|
+
for (const raw of names) {
|
|
151
|
+
const name = lower(raw)
|
|
152
|
+
const stem = shortStem(name)
|
|
153
|
+
if (stem !== '' && !SHORT_STEMS.has(stem)) SHORT_STEMS.set(stem, name)
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* A path segment as the file system names it: lower case, with the two letters
|
|
159
|
+
* that fold into ASCII, a stream suffix (`:$INDEX_ALLOCATION`) dropped, the
|
|
160
|
+
* trailing dots and spaces Windows ignores removed, and an 8.3 alias read as
|
|
161
|
+
* the long name it stands for.
|
|
162
|
+
*/
|
|
163
|
+
function fold(name: string): string {
|
|
164
|
+
let out = lower(name)
|
|
165
|
+
const colon = out.indexOf(':')
|
|
166
|
+
if (colon > 0) out = out.slice(0, colon)
|
|
167
|
+
const trimmed = out.replace(/[. ]+$/, '')
|
|
168
|
+
if (trimmed !== '') out = trimmed
|
|
169
|
+
const alias = /^([a-z0-9]{1,6})~\d+$/.exec(out)
|
|
170
|
+
if (alias !== null) return SHORT_STEMS.get(alias[1] as string) ?? out
|
|
171
|
+
return out
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
rememberShortNames([...PROTECTED_DIRECTORIES, ...PROTECTED_FILE_NAMES])
|
|
109
175
|
const AUTHORED = new Set(PROJECT_DIRECTORY_AUTHORED_FOLDERS.map(fold))
|
|
110
176
|
const DIRECTORIES = new Set(PROTECTED_DIRECTORIES.map(fold))
|
|
111
177
|
const FILE_NAMES = new Set(PROTECTED_FILE_NAMES.map(fold))
|
|
178
|
+
const ROOT_DIRECTORIES = new Set(PROTECTED_ROOT_DIRECTORIES.map(fold))
|
|
112
179
|
const NESTED = PROTECTED_NESTED_DIRECTORIES.map((sequence) => sequence.map(fold))
|
|
113
180
|
|
|
181
|
+
export interface ProtectedPathOptions {
|
|
182
|
+
/**
|
|
183
|
+
* The session is a remote one, so the authored folders under `.namzu` are
|
|
184
|
+
* not asked about. False (the default) for every local session.
|
|
185
|
+
*/
|
|
186
|
+
readonly remoteSession?: boolean
|
|
187
|
+
}
|
|
188
|
+
|
|
114
189
|
/**
|
|
115
190
|
* Whether a write to `path` is one of the protected kinds. Pure: it reads the
|
|
116
191
|
* spelling it is given, so a caller that wants a symlink's target covered
|
|
117
192
|
* passes the canonical path as well.
|
|
118
193
|
*/
|
|
119
|
-
export function isProtectedPath(path: string): boolean {
|
|
194
|
+
export function isProtectedPath(path: string, options: ProtectedPathOptions = {}): boolean {
|
|
120
195
|
const segments = path.split(/[\\/]+/).map(fold)
|
|
196
|
+
const first = segments[0]
|
|
197
|
+
if (first !== undefined && ROOT_DIRECTORIES.has(first) && segments.length > 1) return true
|
|
121
198
|
let excused = false
|
|
122
199
|
for (let index = 0; index < segments.length; index += 1) {
|
|
123
200
|
const segment = segments[index] as string
|
|
124
201
|
if (!DIRECTORIES.has(segment)) continue
|
|
125
|
-
if (segment === PROJECT_DIRECTORY && !excused) {
|
|
202
|
+
if (segment === PROJECT_DIRECTORY && !excused && options.remoteSession === true) {
|
|
126
203
|
const next = segments[index + 1]
|
|
127
204
|
if (next !== undefined && AUTHORED.has(next)) {
|
|
128
205
|
excused = true
|
|
@@ -137,5 +214,7 @@ export function isProtectedPath(path: string): boolean {
|
|
|
137
214
|
}
|
|
138
215
|
}
|
|
139
216
|
const last = segments[segments.length - 1]
|
|
140
|
-
|
|
217
|
+
if (last === undefined || last === '' || !FILE_NAMES.has(last)) return false
|
|
218
|
+
// A skill file inside an excused authored folder is the point of the excuse.
|
|
219
|
+
return !(excused && last === SKILL_FILE)
|
|
141
220
|
}
|
|
@@ -25,20 +25,33 @@
|
|
|
25
25
|
* No `-i`, `-e`, `-f`, no substitution, no `w`, `r`, `e`, `y` or `d`, no
|
|
26
26
|
* regular-expression address: every one of those is refused.
|
|
27
27
|
*
|
|
28
|
+
* - `gh` is read-only only as one of the named forms (`gh pr view`, `gh issue
|
|
29
|
+
* list`, `gh run view`, `gh search code`, ...) with the flags its table
|
|
30
|
+
* names. `gh api`, `--web`, `-q/--jq`, `--template`, `--hostname`, a leading
|
|
31
|
+
* `--repo`, `GH_HOST=` and `GH_REPO=` assignments, an extension or an alias
|
|
32
|
+
* are in no table, so they are refused; a repository argument naming a
|
|
33
|
+
* host, a URL or `user@host` is refused.
|
|
34
|
+
*
|
|
28
35
|
* Not ported, and so never read-only here: `ps`, `lsof`, `ss`, `date`,
|
|
29
|
-
* `man`, `xargs`, `fd`, `
|
|
30
|
-
* and the shell builtins other than `cd`.
|
|
31
|
-
*
|
|
32
|
-
*
|
|
36
|
+
* `man`, `xargs`, `fd`, `docker logs|inspect`, `printf`, `[[`, `test`
|
|
37
|
+
* and the shell builtins other than `cd`.
|
|
38
|
+
*
|
|
39
|
+
* A `git` or `gh` line is not read-only when the folder it starts in, or one
|
|
40
|
+
* above it, holds `HEAD`, `objects/` and `refs/` outside a `.git` folder: git
|
|
41
|
+
* would read it as a repository and run what its `config` names. The folder is
|
|
42
|
+
* the session's own (`withShellSession`), or `options.directory`.
|
|
33
43
|
*
|
|
34
44
|
* This decides only "does not need a prompt for being a command". The path
|
|
35
45
|
* floor still applies: a read-only command that reads outside the roots is
|
|
36
46
|
* asked about, and so is anything the protected-path and removal floors see.
|
|
37
47
|
*/
|
|
38
48
|
|
|
49
|
+
import { pluginSuppliesProgram } from '../plugin/bin-path.js'
|
|
39
50
|
import type { ShellDialect } from '../types/tool/index.js'
|
|
51
|
+
import { bareRepositoryIndicator } from './bare-repository.js'
|
|
40
52
|
import { FLAG_TABLES, type FlagTable } from './readonly-flags.js'
|
|
41
53
|
import { type ShellWord, lexShellCommandLine } from './shell-lexer.js'
|
|
54
|
+
import { currentShellDirectory } from './shell-session-state.js'
|
|
42
55
|
|
|
43
56
|
/** Lines longer than this are not analysed (the budget). */
|
|
44
57
|
const MAX_LINE_LENGTH = 20_000
|
|
@@ -418,6 +431,34 @@ function flagsAreVetted(
|
|
|
418
431
|
return true
|
|
419
432
|
}
|
|
420
433
|
|
|
434
|
+
// -- `gh` hardening --------------------------------------------------------
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Whether an argument of a vetted `gh` form names somewhere other than a
|
|
438
|
+
* repository of the current host. `gh` sends the stored token to whatever
|
|
439
|
+
* host a repository argument names, so `--repo github.example.net/o/r`, a URL,
|
|
440
|
+
* `user@host` and a `~` path are refused; `--repo owner/name` (one slash) and a
|
|
441
|
+
* number, branch or workflow file are the ordinary reads. This applies to the
|
|
442
|
+
* flag values and the operands alike.
|
|
443
|
+
*/
|
|
444
|
+
function ghValueIsDangerous(args: readonly string[]): boolean {
|
|
445
|
+
for (const arg of args) {
|
|
446
|
+
if (arg === '') continue
|
|
447
|
+
if (arg.includes('~')) return true
|
|
448
|
+
let value = arg
|
|
449
|
+
if (arg.startsWith('-')) {
|
|
450
|
+
const equals = arg.indexOf('=')
|
|
451
|
+
if (equals === -1) continue
|
|
452
|
+
value = arg.slice(equals + 1)
|
|
453
|
+
if (value === '') continue
|
|
454
|
+
}
|
|
455
|
+
if (value.includes('://') || value.includes('@') || value.includes('\\')) return true
|
|
456
|
+
if (looksLikeNetworkPath(value)) return true
|
|
457
|
+
if ((value.match(/\//g) ?? []).length >= 2) return true
|
|
458
|
+
}
|
|
459
|
+
return false
|
|
460
|
+
}
|
|
461
|
+
|
|
421
462
|
// -- `git` hardening -------------------------------------------------------
|
|
422
463
|
|
|
423
464
|
const SIGNATURE = /%[-+ ]?G|%\(\*?signature/
|
|
@@ -669,6 +710,21 @@ function dockerIsReadOnly(args: readonly string[]): boolean {
|
|
|
669
710
|
const GIT_NEUTRAL_GLOBALS: ReadonlySet<string> = new Set(['--no-optional-locks', '--no-pager'])
|
|
670
711
|
|
|
671
712
|
function commandIsReadOnly(vector: readonly string[], text: string): boolean {
|
|
713
|
+
if (!commandIsReadOnlyByList(vector, text)) return false
|
|
714
|
+
// A program an enabled plugin ships may be what this name runs. Asked only
|
|
715
|
+
// after the list approved the command, so a refusal costs no file reads.
|
|
716
|
+
return !pluginSuppliesProgram(headOf(vector))
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
function headOf(vector: readonly string[]): string {
|
|
720
|
+
let argv = vector
|
|
721
|
+
while (argv[0] === 'git' && argv[1] !== undefined && GIT_NEUTRAL_GLOBALS.has(argv[1])) {
|
|
722
|
+
argv = ['git', ...argv.slice(2)]
|
|
723
|
+
}
|
|
724
|
+
return argv[0] ?? ''
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
function commandIsReadOnlyByList(vector: readonly string[], text: string): boolean {
|
|
672
728
|
// `git --no-optional-locks status`: the option keeps git from taking the
|
|
673
729
|
// index lock for an opportunistic refresh, so it only makes a read gentler.
|
|
674
730
|
let argv = vector
|
|
@@ -741,6 +797,7 @@ function commandIsReadOnly(vector: readonly string[], text: string): boolean {
|
|
|
741
797
|
}
|
|
742
798
|
if (!flagsAreVetted(argv, words, flagTable, head)) return false
|
|
743
799
|
if ((GREP_FAMILY.has(head) || head === 'rg') && /[\n\r]/.test(text)) return false
|
|
800
|
+
if (head === 'gh' && ghValueIsDangerous(rest2)) return false
|
|
744
801
|
const check = GIT_CHECKS[key]
|
|
745
802
|
if (check?.(rest2)) return false
|
|
746
803
|
return true
|
|
@@ -786,7 +843,11 @@ function redirectionsAreHarmless(
|
|
|
786
843
|
* Whether `line` only reads: every command in it is vetted and nothing in it
|
|
787
844
|
* is decided at run time. False for anything this module cannot vouch for.
|
|
788
845
|
*/
|
|
789
|
-
export function isReadOnlyCommandLine(
|
|
846
|
+
export function isReadOnlyCommandLine(
|
|
847
|
+
line: string,
|
|
848
|
+
dialect: ShellDialect = 'bash',
|
|
849
|
+
options: { readonly directory?: string } = {},
|
|
850
|
+
): boolean {
|
|
790
851
|
if (dialect === 'cmd') return false
|
|
791
852
|
if (line.trim() === '' || line.length > MAX_LINE_LENGTH) return false
|
|
792
853
|
if (hasDynamicSyntax(line)) return false
|
|
@@ -825,9 +886,17 @@ export function isReadOnlyCommandLine(line: string, dialect: ShellDialect = 'bas
|
|
|
825
886
|
|
|
826
887
|
const argv = words.map((word) => word.value)
|
|
827
888
|
if (!commandIsReadOnly(argv, command.text)) return false
|
|
828
|
-
if (head.value === 'git') runsGit = true
|
|
889
|
+
if (head.value === 'git' || head.value === 'gh') runsGit = true
|
|
829
890
|
if (head.value === 'cd') changesDirectory = true
|
|
830
891
|
}
|
|
831
892
|
if (runsGit && changesDirectory) return false
|
|
893
|
+
// Git trusts the folder it starts in. The directory of the session carries
|
|
894
|
+
// over between calls, so `cd vendor/cache` and `git status` are two lines
|
|
895
|
+
// that are only dangerous together. A folder that looks like a bare
|
|
896
|
+
// repository, here or above, is a question for a person.
|
|
897
|
+
if (runsGit) {
|
|
898
|
+
const directory = options.directory ?? currentShellDirectory()
|
|
899
|
+
if (directory !== undefined && bareRepositoryIndicator(directory) !== undefined) return false
|
|
900
|
+
}
|
|
832
901
|
return true
|
|
833
902
|
}
|
|
@@ -192,4 +192,107 @@ export const FLAG_TABLES: Readonly<Record<string, FlagTable>> = {
|
|
|
192
192
|
'-P -I --gitfile --infofile --charset --timefmt --sort -H --hintro --houtro -T --scheme --authority',
|
|
193
193
|
number: '-L --filelimit',
|
|
194
194
|
}),
|
|
195
|
+
// `gh`: the forms that only read from GitHub. A form not named here, `gh api`,
|
|
196
|
+
// `gh pr checkout`, `gh <extension>` or an alias included, is not read-only.
|
|
197
|
+
// No form takes `--web`, `-q/--jq`, `-t/--template`, `--output`, `--hostname`
|
|
198
|
+
// or a body flag.
|
|
199
|
+
'gh pr view': table({
|
|
200
|
+
none: '--comments',
|
|
201
|
+
string: '--json --repo -R',
|
|
202
|
+
}),
|
|
203
|
+
'gh pr list': table({
|
|
204
|
+
none: '--draft',
|
|
205
|
+
string: '--state -s --author --assignee --label --base --head --search --json --app --repo -R',
|
|
206
|
+
number: '--limit -L',
|
|
207
|
+
}),
|
|
208
|
+
'gh pr diff': table({
|
|
209
|
+
none: '--name-only --patch',
|
|
210
|
+
string: '--color --repo -R',
|
|
211
|
+
}),
|
|
212
|
+
'gh pr checks': table({
|
|
213
|
+
none: '--watch --required --fail-fast',
|
|
214
|
+
string: '--json --repo -R',
|
|
215
|
+
number: '--interval',
|
|
216
|
+
}),
|
|
217
|
+
'gh issue view': table({
|
|
218
|
+
none: '--comments',
|
|
219
|
+
string: '--json --repo -R',
|
|
220
|
+
}),
|
|
221
|
+
'gh issue list': table({
|
|
222
|
+
string: '--state -s --assignee --author --label --milestone --search --json --app --repo -R',
|
|
223
|
+
number: '--limit -L',
|
|
224
|
+
}),
|
|
225
|
+
'gh repo view': table({
|
|
226
|
+
string: '--json',
|
|
227
|
+
}),
|
|
228
|
+
'gh run list': table({
|
|
229
|
+
string:
|
|
230
|
+
'--branch -b --status -s --workflow -w --json --repo -R --event -e --user -u --created --commit -c',
|
|
231
|
+
number: '--limit -L',
|
|
232
|
+
}),
|
|
233
|
+
'gh run view': table({
|
|
234
|
+
none: '--log --log-failed --exit-status --verbose -v',
|
|
235
|
+
string: '--json --repo -R --job -j',
|
|
236
|
+
number: '--attempt -a',
|
|
237
|
+
}),
|
|
238
|
+
'gh auth status': table({
|
|
239
|
+
none: '--active -a',
|
|
240
|
+
string: '--json',
|
|
241
|
+
}),
|
|
242
|
+
'gh pr status': table({
|
|
243
|
+
none: '--conflict-status -c',
|
|
244
|
+
string: '--json --repo -R',
|
|
245
|
+
}),
|
|
246
|
+
'gh issue status': table({
|
|
247
|
+
string: '--json --repo -R',
|
|
248
|
+
}),
|
|
249
|
+
'gh release list': table({
|
|
250
|
+
none: '--exclude-drafts --exclude-pre-releases',
|
|
251
|
+
string: '--json --order -O --repo -R',
|
|
252
|
+
number: '--limit -L',
|
|
253
|
+
}),
|
|
254
|
+
'gh release view': table({
|
|
255
|
+
string: '--json --repo -R',
|
|
256
|
+
}),
|
|
257
|
+
'gh workflow list': table({
|
|
258
|
+
none: '--all -a',
|
|
259
|
+
string: '--json --repo -R',
|
|
260
|
+
number: '--limit -L',
|
|
261
|
+
}),
|
|
262
|
+
'gh workflow view': table({
|
|
263
|
+
none: '--yaml -y',
|
|
264
|
+
string: '--ref -r --repo -R',
|
|
265
|
+
}),
|
|
266
|
+
'gh label list': table({
|
|
267
|
+
string: '--json --order --search -S --sort --repo -R',
|
|
268
|
+
number: '--limit -L',
|
|
269
|
+
}),
|
|
270
|
+
'gh search repos': table({
|
|
271
|
+
none: '--archived',
|
|
272
|
+
string:
|
|
273
|
+
'--created --followers --forks --good-first-issues --help-wanted-issues --include-forks --json --language --license --match --number-topics --order --owner --size --sort --stars --topic --updated --visibility',
|
|
274
|
+
number: '--limit -L',
|
|
275
|
+
}),
|
|
276
|
+
'gh search issues': table({
|
|
277
|
+
none: '--include-prs --locked --no-assignee --no-label --no-milestone --no-project',
|
|
278
|
+
string:
|
|
279
|
+
'--app --assignee --author --closed --commenter --comments --created --interactions --involves --json --label --language --match --mentions --milestone --order --owner --project --reactions --repo -R --sort --state --team-mentions --updated --visibility',
|
|
280
|
+
number: '--limit -L',
|
|
281
|
+
}),
|
|
282
|
+
'gh search prs': table({
|
|
283
|
+
none: '--draft --locked --merged --no-assignee --no-label --no-milestone --no-project',
|
|
284
|
+
string:
|
|
285
|
+
'--app --assignee --author --base -B --checks --closed --commenter --comments --created --head -H --interactions --involves --json --label --language --match --mentions --merged-at --milestone --order --owner --project --reactions --repo -R --review --review-requested --reviewed-by --sort --state --team-mentions --updated --visibility',
|
|
286
|
+
number: '--limit -L',
|
|
287
|
+
}),
|
|
288
|
+
'gh search commits': table({
|
|
289
|
+
none: '--merge',
|
|
290
|
+
string:
|
|
291
|
+
'--author --author-date --author-email --author-name --committer --committer-date --committer-email --committer-name --hash --json --order --owner --parent --repo -R --sort --tree --visibility',
|
|
292
|
+
number: '--limit -L',
|
|
293
|
+
}),
|
|
294
|
+
'gh search code': table({
|
|
295
|
+
string: '--extension --filename --json --language --match --owner --repo -R --size',
|
|
296
|
+
number: '--limit -L',
|
|
297
|
+
}),
|
|
195
298
|
}
|