New package @hanzo/imanage: an embedded-app panel over @hanzo/ai for iManage Work (the dominant legal document management system), mirroring the packages/procore OAuth + API-proxy + pure-core shape. - OAuth2 Authorization Code against the iManage Control Center (/auth/oauth2/authorize + /token); server-side token exchange + refresh, the client secret never reaches the browser. - Work API v2 wrappers (workspaces, folder children, document profile + content, search, gated profile write-back) scoped by customer + library in the path, X-Auth-Token auth, envelope/offset-limit pagination. Pure. - Pure legal document-context assembly with text extraction (binary/OCR out of scope, reported honestly) and one truncation-honest windowing algorithm. - Four AI actions — summarize document, extract key clauses/dates/parties, search-and-synthesize a matter, compare a document set — plus freeform ask, over a single grounded ask() path. - Same-origin proxy keeps tokens + secret server-side; NEVER logs document content. Legal confidentiality posture documented in the README. - 121 vitest tests (config/oauth/api/parse/documents/hanzo/actions/panel), tsc --noEmit clean, node build.js green. Registers packages/imanage in pnpm-workspace.yaml (one line).
45 lines
1.2 KiB
JSON
45 lines
1.2 KiB
JSON
{
|
|
"name": "@hanzo/imanage",
|
|
"version": "0.1.0",
|
|
"description": "Hanzo AI for iManage Work — AI over your legal document management system: summarize a document, extract key clauses / dates / parties, search-and-synthesize a matter/workspace, and compare a document set. An embedded-app panel plus an OAuth + Work-API-proxy service, built on @hanzo/ai and @hanzo/iam over the api.hanzo.ai gateway.",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "node build.js",
|
|
"watch": "node build.js --watch",
|
|
"start": "node dist/server.js",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@hanzo/ai": "^0.2.0",
|
|
"@hanzo/iam": "^0.13.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.14.0",
|
|
"esbuild": "^0.25.8",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^3.2.6"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"keywords": [
|
|
"hanzo",
|
|
"imanage",
|
|
"legal",
|
|
"dms",
|
|
"document-management",
|
|
"contract-review",
|
|
"ai",
|
|
"oauth"
|
|
],
|
|
"author": "Hanzo AI",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/hanzoai/extension.git",
|
|
"directory": "packages/imanage"
|
|
}
|
|
}
|