@wxp212/gemini-cli 0.28.3-2

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.
Files changed (117) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +393 -0
  3. package/bundle/builtin/skill-creator/SKILL.md +382 -0
  4. package/bundle/builtin/skill-creator/scripts/init_skill.cjs +235 -0
  5. package/bundle/builtin/skill-creator/scripts/package_skill.cjs +102 -0
  6. package/bundle/builtin/skill-creator/scripts/validate_skill.cjs +127 -0
  7. package/bundle/docs/architecture.md +80 -0
  8. package/bundle/docs/assets/connected_devtools.png +0 -0
  9. package/bundle/docs/assets/gemini-screenshot.png +0 -0
  10. package/bundle/docs/assets/monitoring-dashboard-logs.png +0 -0
  11. package/bundle/docs/assets/monitoring-dashboard-metrics.png +0 -0
  12. package/bundle/docs/assets/monitoring-dashboard-overview.png +0 -0
  13. package/bundle/docs/assets/release_patch.png +0 -0
  14. package/bundle/docs/assets/theme-ansi-light.png +0 -0
  15. package/bundle/docs/assets/theme-ansi.png +0 -0
  16. package/bundle/docs/assets/theme-atom-one.png +0 -0
  17. package/bundle/docs/assets/theme-ayu-light.png +0 -0
  18. package/bundle/docs/assets/theme-ayu.png +0 -0
  19. package/bundle/docs/assets/theme-custom.png +0 -0
  20. package/bundle/docs/assets/theme-default-light.png +0 -0
  21. package/bundle/docs/assets/theme-default.png +0 -0
  22. package/bundle/docs/assets/theme-dracula.png +0 -0
  23. package/bundle/docs/assets/theme-github-light.png +0 -0
  24. package/bundle/docs/assets/theme-github.png +0 -0
  25. package/bundle/docs/assets/theme-google-light.png +0 -0
  26. package/bundle/docs/assets/theme-xcode-light.png +0 -0
  27. package/bundle/docs/changelogs/index.md +743 -0
  28. package/bundle/docs/changelogs/latest.md +338 -0
  29. package/bundle/docs/changelogs/preview.md +437 -0
  30. package/bundle/docs/cli/authentication.md +3 -0
  31. package/bundle/docs/cli/checkpointing.md +94 -0
  32. package/bundle/docs/cli/cli-reference.md +101 -0
  33. package/bundle/docs/cli/commands.md +430 -0
  34. package/bundle/docs/cli/creating-skills.md +80 -0
  35. package/bundle/docs/cli/custom-commands.md +315 -0
  36. package/bundle/docs/cli/enterprise.md +582 -0
  37. package/bundle/docs/cli/gemini-ignore.md +71 -0
  38. package/bundle/docs/cli/gemini-md.md +108 -0
  39. package/bundle/docs/cli/generation-settings.md +210 -0
  40. package/bundle/docs/cli/headless.md +388 -0
  41. package/bundle/docs/cli/index.md +65 -0
  42. package/bundle/docs/cli/keyboard-shortcuts.md +141 -0
  43. package/bundle/docs/cli/model-routing.md +42 -0
  44. package/bundle/docs/cli/model.md +62 -0
  45. package/bundle/docs/cli/rewind.md +51 -0
  46. package/bundle/docs/cli/sandbox.md +171 -0
  47. package/bundle/docs/cli/session-management.md +158 -0
  48. package/bundle/docs/cli/settings.md +141 -0
  49. package/bundle/docs/cli/skills.md +112 -0
  50. package/bundle/docs/cli/system-prompt.md +125 -0
  51. package/bundle/docs/cli/telemetry.md +826 -0
  52. package/bundle/docs/cli/themes.md +235 -0
  53. package/bundle/docs/cli/token-caching.md +20 -0
  54. package/bundle/docs/cli/trusted-folders.md +95 -0
  55. package/bundle/docs/cli/tutorials/skills-getting-started.md +97 -0
  56. package/bundle/docs/cli/tutorials.md +87 -0
  57. package/bundle/docs/cli/uninstall.md +65 -0
  58. package/bundle/docs/core/index.md +107 -0
  59. package/bundle/docs/core/memport.md +246 -0
  60. package/bundle/docs/core/policy-engine.md +305 -0
  61. package/bundle/docs/core/remote-agents.md +84 -0
  62. package/bundle/docs/core/subagents.md +191 -0
  63. package/bundle/docs/core/tools-api.md +131 -0
  64. package/bundle/docs/examples/proxy-script.md +83 -0
  65. package/bundle/docs/extensions/best-practices.md +139 -0
  66. package/bundle/docs/extensions/index.md +45 -0
  67. package/bundle/docs/extensions/reference.md +336 -0
  68. package/bundle/docs/extensions/releasing.md +183 -0
  69. package/bundle/docs/extensions/writing-extensions.md +281 -0
  70. package/bundle/docs/faq.md +154 -0
  71. package/bundle/docs/get-started/authentication.md +321 -0
  72. package/bundle/docs/get-started/configuration-v1.md +880 -0
  73. package/bundle/docs/get-started/configuration.md +1602 -0
  74. package/bundle/docs/get-started/examples.md +219 -0
  75. package/bundle/docs/get-started/gemini-3.md +101 -0
  76. package/bundle/docs/get-started/index.md +71 -0
  77. package/bundle/docs/get-started/installation.md +141 -0
  78. package/bundle/docs/hooks/best-practices.md +677 -0
  79. package/bundle/docs/hooks/index.md +164 -0
  80. package/bundle/docs/hooks/reference.md +322 -0
  81. package/bundle/docs/hooks/writing-hooks.md +450 -0
  82. package/bundle/docs/ide-integration/ide-companion-spec.md +267 -0
  83. package/bundle/docs/ide-integration/index.md +202 -0
  84. package/bundle/docs/index.md +123 -0
  85. package/bundle/docs/integration-tests.md +211 -0
  86. package/bundle/docs/issue-and-pr-automation.md +134 -0
  87. package/bundle/docs/local-development.md +128 -0
  88. package/bundle/docs/mermaid/context.mmd +103 -0
  89. package/bundle/docs/mermaid/render-path.mmd +64 -0
  90. package/bundle/docs/npm.md +62 -0
  91. package/bundle/docs/quota-and-pricing.md +158 -0
  92. package/bundle/docs/release-confidence.md +164 -0
  93. package/bundle/docs/releases.md +540 -0
  94. package/bundle/docs/sidebar.json +152 -0
  95. package/bundle/docs/tools/file-system.md +216 -0
  96. package/bundle/docs/tools/index.md +98 -0
  97. package/bundle/docs/tools/mcp-server.md +1068 -0
  98. package/bundle/docs/tools/memory.md +54 -0
  99. package/bundle/docs/tools/shell.md +260 -0
  100. package/bundle/docs/tools/todos.md +57 -0
  101. package/bundle/docs/tools/web-fetch.md +59 -0
  102. package/bundle/docs/tools/web-search.md +42 -0
  103. package/bundle/docs/tos-privacy.md +96 -0
  104. package/bundle/docs/troubleshooting.md +173 -0
  105. package/bundle/gemini.js +538280 -0
  106. package/bundle/policies/discovered.toml +8 -0
  107. package/bundle/policies/plan.toml +86 -0
  108. package/bundle/policies/read-only.toml +51 -0
  109. package/bundle/policies/write.toml +78 -0
  110. package/bundle/policies/yolo.toml +32 -0
  111. package/bundle/sandbox-macos-permissive-closed.sb +32 -0
  112. package/bundle/sandbox-macos-permissive-open.sb +27 -0
  113. package/bundle/sandbox-macos-permissive-proxied.sb +37 -0
  114. package/bundle/sandbox-macos-restrictive-closed.sb +93 -0
  115. package/bundle/sandbox-macos-restrictive-open.sb +96 -0
  116. package/bundle/sandbox-macos-restrictive-proxied.sb +98 -0
  117. package/package.json +154 -0
package/package.json ADDED
@@ -0,0 +1,154 @@
1
+ {
2
+ "name": "@wxp212/gemini-cli",
3
+ "version": "0.28.3-2",
4
+ "engines": {
5
+ "node": ">=20.0.0"
6
+ },
7
+ "type": "module",
8
+ "workspaces": [
9
+ "packages/*"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/google-gemini/gemini-cli.git"
14
+ },
15
+ "config": {
16
+ "sandboxImageUri": "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.28.3-2"
17
+ },
18
+ "scripts": {
19
+ "start": "cross-env NODE_ENV=development node scripts/start.js",
20
+ "start:a2a-server": "CODER_AGENT_PORT=41242 npm run start --workspace @google/gemini-cli-a2a-server",
21
+ "debug": "cross-env DEBUG=1 node --inspect-brk scripts/start.js",
22
+ "deflake": "node scripts/deflake.js",
23
+ "deflake:test:integration:sandbox:none": "npm run deflake -- --command=\"npm run test:integration:sandbox:none -- --retry=0\"",
24
+ "deflake:test:integration:sandbox:docker": "npm run deflake -- --command=\"npm run test:integration:sandbox:docker -- --retry=0\"",
25
+ "auth:npm": "npx google-artifactregistry-auth",
26
+ "auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev",
27
+ "auth": "npm run auth:npm && npm run auth:docker",
28
+ "generate": "node scripts/generate-git-commit-info.js",
29
+ "predocs:settings": "npm run build --workspace @google/gemini-cli-core",
30
+ "schema:settings": "tsx ./scripts/generate-settings-schema.ts",
31
+ "docs:settings": "tsx ./scripts/generate-settings-doc.ts",
32
+ "docs:keybindings": "tsx ./scripts/generate-keybindings-doc.ts",
33
+ "build": "node scripts/build.js",
34
+ "build-and-start": "npm run build && npm run start",
35
+ "build:vscode": "node scripts/build_vscode_companion.js",
36
+ "build:all": "npm run build && npm run build:sandbox && npm run build:vscode",
37
+ "build:packages": "npm run build --workspaces",
38
+ "build:sandbox": "node scripts/build_sandbox.js",
39
+ "bundle": "npm run generate && node esbuild.config.js && node scripts/copy_bundle_assets.js",
40
+ "test": "npm run test --workspaces --if-present",
41
+ "test:ci": "npm run test:ci --workspaces --if-present && npm run test:scripts",
42
+ "test:scripts": "vitest run --config ./scripts/tests/vitest.config.ts",
43
+ "test:always_passing_evals": "vitest run --config evals/vitest.config.ts",
44
+ "test:all_evals": "cross-env RUN_EVALS=1 vitest run --config evals/vitest.config.ts",
45
+ "test:e2e": "cross-env VERBOSE=true KEEP_OUTPUT=true npm run test:integration:sandbox:none",
46
+ "test:integration:all": "npm run test:integration:sandbox:none && npm run test:integration:sandbox:docker && npm run test:integration:sandbox:podman",
47
+ "test:integration:sandbox:none": "cross-env GEMINI_SANDBOX=false vitest run --root ./integration-tests",
48
+ "test:integration:sandbox:docker": "cross-env GEMINI_SANDBOX=docker npm run build:sandbox && cross-env GEMINI_SANDBOX=docker vitest run --root ./integration-tests",
49
+ "test:integration:sandbox:podman": "cross-env GEMINI_SANDBOX=podman vitest run --root ./integration-tests",
50
+ "lint": "eslint . --cache",
51
+ "lint:fix": "eslint . --fix --ext .ts,.tsx && eslint integration-tests --fix && eslint scripts --fix && npm run format",
52
+ "lint:ci": "npm run lint:all",
53
+ "lint:all": "node scripts/lint.js",
54
+ "format": "prettier --experimental-cli --write .",
55
+ "typecheck": "npm run typecheck --workspaces --if-present",
56
+ "preflight": "npm run clean && npm ci && npm run format && npm run build && npm run lint:ci && npm run typecheck && npm run test:ci",
57
+ "prepare": "husky && npm run bundle",
58
+ "prepare:package": "node scripts/prepare-package.js",
59
+ "release:version": "node scripts/version.js",
60
+ "telemetry": "node scripts/telemetry.js",
61
+ "check:lockfile": "node scripts/check-lockfile.js",
62
+ "clean": "node scripts/clean.js",
63
+ "pre-commit": "node scripts/pre-commit.js"
64
+ },
65
+ "overrides": {
66
+ "ink": "npm:@jrichman/ink@6.4.8",
67
+ "wrap-ansi": "9.0.2",
68
+ "cliui": {
69
+ "wrap-ansi": "7.0.0"
70
+ }
71
+ },
72
+ "bin": {
73
+ "gemini": "bundle/gemini.js"
74
+ },
75
+ "files": [
76
+ "bundle/",
77
+ "README.md",
78
+ "LICENSE"
79
+ ],
80
+ "devDependencies": {
81
+ "@agentclientprotocol/sdk": "^0.12.0",
82
+ "@octokit/rest": "^22.0.0",
83
+ "@types/marked": "^5.0.2",
84
+ "@types/mime-types": "^3.0.1",
85
+ "@types/minimatch": "^5.1.2",
86
+ "@types/mock-fs": "^4.13.4",
87
+ "@types/prompts": "^2.4.9",
88
+ "@types/proper-lockfile": "^4.1.4",
89
+ "@types/react": "^19.2.0",
90
+ "@types/react-dom": "^19.2.0",
91
+ "@types/shell-quote": "^1.7.5",
92
+ "@types/ws": "^8.18.1",
93
+ "@vitest/coverage-v8": "^3.1.1",
94
+ "@vitest/eslint-plugin": "^1.3.4",
95
+ "cross-env": "^7.0.3",
96
+ "depcheck": "^1.4.7",
97
+ "esbuild": "^0.25.0",
98
+ "esbuild-plugin-wasm": "^1.1.0",
99
+ "eslint": "^9.24.0",
100
+ "eslint-config-prettier": "^10.1.2",
101
+ "eslint-plugin-headers": "^1.3.3",
102
+ "eslint-plugin-import": "^2.31.0",
103
+ "eslint-plugin-react": "^7.37.5",
104
+ "eslint-plugin-react-hooks": "^5.2.0",
105
+ "glob": "^12.0.0",
106
+ "globals": "^16.0.0",
107
+ "google-artifactregistry-auth": "^3.4.0",
108
+ "husky": "^9.1.7",
109
+ "ink-testing-library": "^4.0.0",
110
+ "json": "^11.0.0",
111
+ "lint-staged": "^16.1.6",
112
+ "memfs": "^4.42.0",
113
+ "mnemonist": "^0.40.3",
114
+ "mock-fs": "^5.5.0",
115
+ "msw": "^2.10.4",
116
+ "npm-run-all": "^4.1.5",
117
+ "prettier": "^3.5.3",
118
+ "react-devtools-core": "^6.1.2",
119
+ "semver": "^7.7.2",
120
+ "strip-ansi": "^7.1.2",
121
+ "ts-prune": "^0.10.3",
122
+ "tsx": "^4.20.3",
123
+ "typescript-eslint": "^8.30.1",
124
+ "vitest": "^3.2.4",
125
+ "yargs": "^17.7.2"
126
+ },
127
+ "dependencies": {
128
+ "ink": "npm:@jrichman/ink@6.4.8",
129
+ "latest-version": "^9.0.0",
130
+ "simple-git": "^3.28.0"
131
+ },
132
+ "optionalDependencies": {
133
+ "@lydell/node-pty": "1.1.0",
134
+ "@lydell/node-pty-darwin-arm64": "1.1.0",
135
+ "@lydell/node-pty-darwin-x64": "1.1.0",
136
+ "@lydell/node-pty-linux-x64": "1.1.0",
137
+ "@lydell/node-pty-win32-arm64": "1.1.0",
138
+ "@lydell/node-pty-win32-x64": "1.1.0",
139
+ "keytar": "^7.9.0",
140
+ "node-pty": "^1.0.0"
141
+ },
142
+ "lint-staged": {
143
+ "*.{js,jsx,ts,tsx}": [
144
+ "prettier --write",
145
+ "eslint --fix --max-warnings 0 --no-warn-ignored"
146
+ ],
147
+ "eslint.config.js": [
148
+ "prettier --write"
149
+ ],
150
+ "*.{json,md}": [
151
+ "prettier --write"
152
+ ]
153
+ }
154
+ }