mirror of
https://github.com/hanzoai/extension.git
synced 2026-10-31 21:57:06 +00:00
Mirror @hanzo/office-addin for the Google ecosystem. Apps Script + CardService add-on calling api.hanzo.ai/v1 via UrlFetchApp (non-streaming, one call per insert). Per-user hk- API key in PropertiesService. - appsscript.json: per-host homepage triggers + Gmail contextual/compose triggers, currentonly + gmail.addons scopes, urlFetchWhitelist pinned to https://api.hanzo.ai/. - hanzo.gs: API client (pure buildMessages/requestBody/extractContent/ parseModels + UrlFetchApp ask/listModels). - ui.gs: CardService sidebar (model picker, quick-action chips, settings/ onboarding, universal actions) + all trigger/action handlers. - docs/sheets/slides/gmail.gs: per-host read + insert glue. - vitest over the pure logic (loads .gs in a Node sandbox, no duplication); validate-manifest.mjs preflights scopes + every runFunction resolves. - Register packages/gworkspace in pnpm-workspace.yaml.
9 lines
159 B
TypeScript
9 lines
159 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['tests/**/*.test.mjs'],
|
|
environment: 'node',
|
|
},
|
|
});
|