Commit Graph

1757 Commits

Author SHA1 Message Date
Sebastian Benz
a8aec773d8 add audio scribe sample (#1475)
* add audio scribe sample

* Fix wrong parameter name

* Cleanup and more robust audio scribe

* better manifest descriptions

* demo chat app clean up
2025-05-20 08:37:50 +02:00
Sebastian Benz
a42c4121cc Add new AI samples and update existing to use new API shape (#1474)
* Add new AI samples and update existing to use new API shape

* address comments
2025-05-16 20:43:25 +02:00
Zaif Senpai
0a67271feb Replaced clearbit API (deprecated) (#1453) (#1456)
* Replaced clearbit API (deprecated) with Google's favicon snatcher

* Updated UI designs for optional_permissions examples of both mv2 and mv3

Using chrome's build in favicon provider for optional_permissions examples

* Run linter

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2025-05-08 13:59:07 +01:00
Oliver Dunk
5113e3c266 Use Puppeteer LaunchOptions for loading extensions. (#1466)
This is supported in the latest release: https://github.com/puppeteer/puppeteer/releases/tag/puppeteer-core-v24.8.0
2025-05-07 11:08:10 +01:00
Oliver Dunk
9b88cf7e14 Address feedback on mole game tutorial code. (#1462) 2025-04-30 17:14:43 +01:00
Oliver Dunk
aab4aa91fd Partial fixes for sample list generator (#1464)
* Partial fixes for sample list generator

A number of fixes for the sample list generator:

- Removes a comment from one of our manifest files, as we don't
  currently support JSONC.
- Ignores the `node_modules` folder since we have recently added some AI
  samples with a build step.
- Adds the `aiOriginTrial` API to the list of recognised APIs.
- Updates `extension-apis.json` with the latest data from the
  `chrome-types` package.

Updating recognised extension APIs still requires access to a
non-existent storage bucket, so this does not fully fix the process.

* Fix linter issue
2025-04-30 17:14:32 +01:00
Thomas Steiner
8fe3174642 Update to new API shape 2025-04-22 06:52:37 -07:00
Thomas Steiner
66672f857a Update to new API shape 2025-04-22 06:48:54 -07:00
ljjlee
1cf9c53d4b Add getProfileUserInfo example to sample identity extension (#1454)
* Add getProfileUserInfo example to sample identity extension

* Clarify UI

* Run prettier

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2025-04-07 16:41:09 -07:00
ljjlee
b0f55f9d15 Disambiguate account/local folders sample bookmarks extension (#1435)
* Disambiguate account/local folders in the UI for sample bookmarks extension

* Code-review markups

* Fix lint issues
2025-04-03 11:05:22 +01:00
Oliver Dunk
6116518873 Add mole game tutorial (#1433)
LGTN
2025-04-02 18:10:45 +01:00
Oliver Dunk
8cf0e9a827 Fix linter error and run on PRs (#1447)
Fixes a linter error in the `identity` API sample, and updates the
linter to run on all PRs going forward.
2025-03-31 15:17:58 +02:00
ljjlee
40456c76c1 Don't assume existence of hard-coded bookmark Ids (#1434)
Instead, use the default location on the create() call.
2025-03-31 12:30:15 +01:00
ljjlee
db2d231476 Add sample Identity API extension (#1432)
* Initial copy of _archive/apps/samples/identity

* Modify to run be an extension rather than a Chrome App.

* Update extension to manifest v3

* Update README

* Remove references to chrome://identity-internals

* Use Promises rather than callbacks

See https://developer.chrome.com/docs/extensions/develop/migrate/api-calls#replace-callbacks

* Apply code-review markups.

* Apply more code-review markups

* Format with prettier

* Use Promise.catch instead of runtime.lastError

* Update screenshot

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2025-03-20 14:17:39 +00:00
dependabot[bot]
8f97d22fdc Bump cross-spawn in /functional-samples/tutorial.terminate-sw/puppeteer (#1399)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 21:14:15 +01:00
dependabot[bot]
50a4cadc20 Bump eslint from 9.12.0 to 9.19.0 (#1396)
Bumps [eslint](https://github.com/eslint/eslint) from 9.12.0 to 9.19.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.12.0...v9.19.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:59:37 +00:00
dependabot[bot]
882a24a6a5 Bump chrome-types from 0.1.312 to 0.1.335 (#1398)
Bumps [chrome-types](https://github.com/GoogleChrome/chrome-types) from 0.1.312 to 0.1.335.
- [Commits](https://github.com/GoogleChrome/chrome-types/commits)

---
updated-dependencies:
- dependency-name: chrome-types
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:52:21 +00:00
dependabot[bot]
9350c3a6a4 Bump globals from 15.11.0 to 15.14.0 (#1379)
Bumps [globals](https://github.com/sindresorhus/globals) from 15.11.0 to 15.14.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v15.11.0...v15.14.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:51:50 +00:00
dependabot[bot]
509a5d2df5 Bump eslint-plugin-jest from 28.8.3 to 28.11.0 (#1392)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 28.8.3 to 28.11.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v28.8.3...v28.11.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:51:20 +00:00
dependabot[bot]
f475b140a4 Bump cross-spawn in /functional-samples/tutorial.puppeteer (#1358)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:50:41 +00:00
dependabot[bot]
21b2ba2138 Bump @eslint/js from 9.12.0 to 9.19.0 (#1397)
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.12.0 to 9.19.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v9.19.0/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:50:10 +00:00
Rishi Kumar Tiwari
40e9576a29 Added README Files For Tutorials (#1371)
* tutorials redme

* update 404 URLs

* tutorials redme

* readme files

* readme

* readme

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* url change not required

* Update functional-samples/tutorial.tabs-manager/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update README.md

* Update functional-samples/tutorial.tabs-manager/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.hello-world/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.hello-world/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* Update functional-samples/tutorial.getting-started/README.md

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>

* foxed typo for tabGroups

* Fixed typo for tabGroups

---------

Co-authored-by: Oliver Dunk <oliver@oliverdunk.com>
2025-01-13 10:15:28 +00:00
minggeorgelei
692e9a990e fix: the extension page will refresh after clicking the button. We need to add preventDefault to prevent form default behavior. (#1378)
Co-authored-by: George <minggeorgelei@gmail.com>
2024-12-24 21:25:29 +00:00
Justin Lulejian
5064031481 Remove notification permission from push cookbook sample (#1365)
* Remove notification permission from push cookbook sample

As of [M132] this requirement is no longer necessary (unless the extension chooses to show a notification).

[M132]: https://chromiumdash.appspot.com/commit/ed68ac786e9a276ef2b627b7e21cf0d20cc6d798

* address review comments

* Add note about minimum Chrome version

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2024-12-24 21:08:12 +00:00
Oliver Dunk
600017fca8 Add environment variable for configuring storage bucket (#1372)
Adds the STORAGE_BUCKET environment variable which is used for
determining which bucket the prepare-chrome-types script loads type data
from.
2024-12-20 19:52:52 +00:00
Justin Lulejian
74bca08177 Run prettier on repository (#1366) 2024-12-03 10:50:45 +00:00
Oliver Dunk
74e1edfac3 Rename addSiteAccessRequest to addHostAccessRequest (#1356) 2024-11-26 14:29:59 +01:00
Oliver Dunk
6b4db6a6c0 Add permissions.addSiteAccessRequest() sample (#1322)
* Add permissions.addSiteAccessRequest() demo

Adds an example of using the permissions.addSiteAccessRequest() API to
request access to a checkout page. This matches the example used in our
upcoming blog post.

* Add banner to show that the extension has access.
2024-11-18 13:31:46 +00:00
Muhammad Mahad
4fb578eb1d Rename privacy,txt to privacy.txt (#1350) 2024-11-18 09:47:37 +00:00
Sebastian Benz
ba5b96aba0 inc manifest version (#1348) 2024-11-12 15:35:27 +01:00
Sebastian Benz
2f056ff117 Update Geminin nano samples (#1347)
* Link to latest articles
* Add systemprompt to prompt sample to provide better guidance on simple
  prompts such as 'hello'.
* Limit default topK to 3 (the default is currently set too high, this
  will change).
* Fix setup instructions in the readmes.
2024-11-12 14:02:43 +01:00
Sebastian Benz
fc7c4b34f1 Summarizer sample: Format markdown output (#1283)
* Format markdown output

* updates & fixes

* Styles and config

* Some CSS love with open props
* Make summary configurable

* Update functional-samples/ai.gemini-on-device-summarization/sidepanel/index.js

Shorter and worker-compatible

Co-authored-by: Thomas Steiner <tomac@google.com>

* Update functional-samples/ai.gemini-on-device-summarization/manifest.json

Co-authored-by: Thomas Steiner <tomac@google.com>

---------

Co-authored-by: Thomas Steiner <tomac@google.com>
2024-11-09 13:14:30 +01:00
Sebastian Benz
69f946b35e Improve prompt API sample (#1344)
* Improve prompt API sample

* Render response as markdown
* Fix initial maxK and temperature values
* Add privacy statement (for webstore submission)
* Regenerate key and trial token

* fix formatting errors

* Update functional-samples/ai.gemini-on-device/sidepanel/index.js

Update maxTemperature

Co-authored-by: Thomas Steiner <tomac@google.com>

* Update functional-samples/ai.gemini-on-device/sidepanel/index.js

Better string comparison

Co-authored-by: Thomas Steiner <tomac@google.com>

---------

Co-authored-by: Thomas Steiner <tomac@google.com>
2024-11-08 15:35:27 +01:00
patrick kettner
d2fd736ac0 Add an example that shows how to polyfill XHR in an extension (#1343)
* add an example that shows how to polyfill XHR in an extension

* updates from feedback

* update based on third party OSS requirements

* update readme links
2024-11-07 04:30:06 -05:00
Thomas Steiner
b939ca2db9 Change on-device example to use the origin trial API (#1337)
* Add scaffolding for Prompt API OT example

* Rewrite existing example to use the OT

* Add trial token and key

* Update error message, add `minimum_chrome_version`

* Fix feature detection

* Some README refinements

* Correct instructions

* OT refinement
2024-10-31 15:46:16 +01:00
dependabot[bot]
31704be55b Bump chrome-types from 0.1.309 to 0.1.312 (#1336)
Bumps [chrome-types](https://github.com/GoogleChrome/chrome-types) from 0.1.309 to 0.1.312.
- [Commits](https://github.com/GoogleChrome/chrome-types/commits)

---
updated-dependencies:
- dependency-name: chrome-types
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-28 16:00:59 +00:00
Gitesh Mahadik
e5598ed5a5 Fix ai.assistant Session Creation Issue in ai.gemini-on-device (#1330)
* Updated: Session creation

* Updated: Session creation

* Updated: Session Creation
2024-10-23 22:24:32 +02:00
dependabot[bot]
7fbd761614 Bump eslint from 9.10.0 to 9.12.0 (#1316)
Bumps [eslint](https://github.com/eslint/eslint) from 9.10.0 to 9.12.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.10.0...v9.12.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 12:29:27 +01:00
dependabot[bot]
51c16f6b7a Bump rollup in /functional-samples/ai.gemini-in-the-cloud (#1320)
Bumps [rollup](https://github.com/rollup/rollup) from 4.19.0 to 4.22.4.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.19.0...v4.22.4)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 12:26:27 +01:00
dependabot[bot]
4437511d8b Bump chrome-types from 0.1.306 to 0.1.309 (#1321)
Bumps [chrome-types](https://github.com/GoogleChrome/chrome-types) from 0.1.306 to 0.1.309.
- [Commits](https://github.com/GoogleChrome/chrome-types/commits)

---
updated-dependencies:
- dependency-name: chrome-types
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 12:25:08 +01:00
dependabot[bot]
724d5e5496 Bump globals from 15.9.0 to 15.11.0 (#1319)
Bumps [globals](https://github.com/sindresorhus/globals) from 15.9.0 to 15.11.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v15.9.0...v15.11.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 12:22:56 +01:00
dependabot[bot]
0e72d7660f Bump @eslint/js from 9.10.0 to 9.12.0 (#1315)
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.10.0 to 9.12.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v9.12.0/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 12:22:22 +01:00
dependabot[bot]
f2ab830c64 Bump rollup in /functional-samples/ai.gemini-on-device-summarization (#1292)
Bumps [rollup](https://github.com/rollup/rollup) from 4.18.1 to 4.22.4.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.18.1...v4.22.4)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-15 12:21:57 +01:00
Sebastian Benz
8dcd06dc20 Update web accessible resource samples to use dynamic URLs (#1317) 2024-10-08 15:47:52 +02:00
dependabot[bot]
edf97795a6 Bump micromatch in /functional-samples/tutorial.terminate-sw/puppeteer (#1282)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 10:35:58 +01:00
dependabot[bot]
73e7df1a9c Bump husky from 9.1.5 to 9.1.6 (#1285)
Bumps [husky](https://github.com/typicode/husky) from 9.1.5 to 9.1.6.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v9.1.5...v9.1.6)

---
updated-dependencies:
- dependency-name: husky
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 10:19:53 +01:00
dependabot[bot]
150d10fbe8 Bump chrome-types from 0.1.301 to 0.1.306 (#1286)
Bumps [chrome-types](https://github.com/GoogleChrome/chrome-types) from 0.1.301 to 0.1.306.
- [Commits](https://github.com/GoogleChrome/chrome-types/commits)

---
updated-dependencies:
- dependency-name: chrome-types
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-16 15:09:07 +01:00
Sebastian Benz
18a4801660 Add on device summary sample (#1263)
* Add on device summary sample

* small tweaks and clean up

* more clean up

* Add link to blog post

* show correct error when ai is not supported in browser

* addressed comments

* fix path
2024-09-13 17:38:40 +02:00
dependabot[bot]
0a92c15491 Bump micromatch in /functional-samples/tutorial.puppeteer (#1281)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 10:17:36 +01:00
dependabot[bot]
86e4517569 Bump eslint-plugin-jest from 28.8.0 to 28.8.3 (#1280)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 28.8.0 to 28.8.3.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v28.8.0...v28.8.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 10:17:02 +01:00