@open-document/core 0.14.2 → 0.15.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.
Files changed (33) hide show
  1. package/dist/{build-I0cgoERP.js → build-CBMroMqd.js} +1 -1
  2. package/dist/{check-Dys96QSL.js → check-C2kIZr3f.js} +3 -3
  3. package/dist/cli/bin.js +9 -9
  4. package/dist/{context-C-osJW5f.js → context-DGp1jwN5.js} +1 -1
  5. package/dist/{dev-CC4PrIOC.js → dev-DmzGncKf.js} +1 -1
  6. package/dist/{diff-DhutD4TJ.js → diff-CMI_PVzz.js} +2 -2
  7. package/dist/{export-KrajVJO7.js → export-BQMUBoBB.js} +3 -3
  8. package/dist/{import-Yv34za3L.js → import-CiSRqZyo.js} +3 -3
  9. package/dist/ops/index.js +2 -2
  10. package/dist/{ops-Dux5HlkH.js → ops-DQbZmYRF.js} +1 -1
  11. package/dist/{preview-7eqn9Wzf.js → preview-CERhZ_FX.js} +1 -1
  12. package/dist/{session-BSbrC5gK.js → session-DdaKKd7_.js} +1022 -10
  13. package/dist/{templates-s-VLTSRc.js → templates-CBeC-v7e.js} +3 -3
  14. package/dist/vite/index.js +1 -1
  15. package/package.json +1 -1
  16. package/src/agent/consent.ts +42 -0
  17. package/src/agent/provider.ts +24 -1
  18. package/src/agent/providers/antigravity-local.ts +193 -0
  19. package/src/agent/providers/antigravity.ts +656 -0
  20. package/src/agent/providers/index.ts +2 -1
  21. package/src/agent/runner.ts +4 -0
  22. package/src/agent/sandbox-sync.ts +178 -0
  23. package/src/agent/status.ts +33 -1
  24. package/src/agent/types.ts +21 -3
  25. package/src/app/components/agent/agent-panel.tsx +180 -42
  26. package/src/app/components/agent/connect-view.tsx +294 -26
  27. package/src/app/components/agent/provider-logo.tsx +4 -0
  28. package/src/app/lib/agent/use-agent.ts +14 -1
  29. package/src/app/lib/i18n-ja/agent-panel.ts +49 -0
  30. package/src/app/lib/i18n-ko/agent-panel.ts +48 -0
  31. package/src/app/lib/i18n-zh-cn/agent-panel.ts +46 -0
  32. package/src/app/lib/i18n-zh-tw/agent-panel.ts +46 -0
  33. package/src/app/lib/use-locale.ts +43 -0
@@ -123,6 +123,49 @@ const AGENT = {
123
123
  presenceEditing: '{provider} is editing',
124
124
  presenceThinking: 'Thinking',
125
125
  presenceWaiting: 'Waiting for you',
126
+ preview: 'Preview version',
127
+ previewHint: 'Its behavior, models and prices may change.',
128
+ keyFound: 'GEMINI_API_KEY found',
129
+ keyMissing: 'GEMINI_API_KEY not set',
130
+ keyHint:
131
+ 'Add GEMINI_API_KEY to .env in this workspace, or to the environment the dev server runs in, then check again. The key stays on this machine.',
132
+ notReadyApiKey: 'Set GEMINI_API_KEY and accept the preview terms to use {name}.',
133
+ termsReview: 'Review terms',
134
+ termsTitle: 'Before you use {name}',
135
+ termsIntro: 'Read these terms. The panel runs {name} only after you accept them.',
136
+ terms: {
137
+ preview:
138
+ 'Antigravity here is a Google preview (antigravity-preview-09-2026). Its behavior, models, prices and availability may change or stop without notice, and this integration is itself an early prototype.',
139
+ local:
140
+ "With local mode on, open-doc downloads Google's gemini-api CLI (v0.4.6, checksum-verified) into node_modules/.open-doc and runs it while the dev server runs. The agent's file tools then work directly on this project folder on your computer, with shell commands disabled.",
141
+ upload:
142
+ "Without local mode, every turn uploads the open document's folder and the workspace's .agents/skills to a Google cloud sandbox. In both modes your messages and the files the agent reads are sent to Google through the Gemini API, so do not use it on documents you may not share with Google. The Gemini API terms apply, and on the free tier Google may use the data to improve its products.",
143
+ billing:
144
+ 'Usage is billed to the key in GEMINI_API_KEY at Gemini API rates. One turn is capped at 500,000 tokens. The cost shown after a turn is an estimate; your Google bill is what counts.',
145
+ writeBack:
146
+ "In the cloud sandbox, the agent's edits are copied back into the document's folder when a turn ends; a file you changed during the turn is not overwritten, and deletions are not copied back. In local mode the agent edits your files directly. Either way, review the changes before you rely on them.",
147
+ auth: 'open-doc uses only your API key. It never uses your Antigravity or Google account sign-in, and the key is never sent to the browser.',
148
+ withdraw: 'You can withdraw your consent at any time from Manage agents.',
149
+ },
150
+ termsAgree: 'I have read and agree to these terms',
151
+ termsAccept: 'Accept',
152
+ termsAccepted: 'Terms accepted · {version}',
153
+ termsWithdraw: 'Withdraw consent',
154
+ toastTermsFailed: 'Could not save your answer',
155
+ runtimeLocal: 'Runs on this computer · edits appear live',
156
+ runtimeCloud: 'Runs in a Google cloud sandbox · edits arrive when a turn ends',
157
+ runtimeEnable: 'Run on this computer',
158
+ runtimeEnabling: 'Setting up local mode',
159
+ runtimeHint:
160
+ "Recommended. Downloads Google's gemini-api CLI into this project; no Docker or terminal needed.",
161
+ runtimeUnsupported: 'Local mode is not available on this system yet.',
162
+ toastLocalFailed: 'Could not set up local mode',
163
+ enableTitle: 'Try {name}',
164
+ enableHint:
165
+ 'Gemini edits this document right on your computer, and you watch each change land on the page.',
166
+ enable: 'Enable',
167
+ enableLater: 'Not now',
168
+ notReadyTerms: 'Accept the preview terms to use {name}.',
126
169
  };
127
170
 
128
171
  type Strings<T> = { [K in keyof T]: T[K] extends string ? string : Strings<T[K]> };