-
Notifications
You must be signed in to change notification settings - Fork 94
SD-2091 - Document API SDK - Agentic collab example code #2490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
mattConnHarbour
wants to merge
5
commits into
main
Choose a base branch
from
SD-2091
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,684
−0
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8077e6b
Merge branch 'main' into SD-2091
mattConnHarbour 0b54019
feat: add document API collab example
mattConnHarbour c1ffd9f
Merge branch 'main' into SD-2091
mattConnHarbour 2bde471
fix: update doc api sdk example to use latest version
mattConnHarbour 4587d02
Merge branch 'main' into SD-2091
mattConnHarbour File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| node_modules | ||
| npm-debug.log | ||
| .env | ||
| .env.local | ||
| .env.example | ||
| .git | ||
| .gitignore | ||
| README.md | ||
| *.md | ||
| .DS_Store | ||
| dist | ||
| .vite | ||
| wrangler.toml | ||
| deploy-*.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # OpenAI API key (required for agent) | ||
| OPENAI_API_KEY=sk-your-key-here | ||
|
|
||
| # Backend URL (set after Cloud Run deployment) | ||
| # Leave empty for local development (defaults to localhost:3050) | ||
| VITE_BACKEND_URL= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
|
|
||
| node_modules | ||
| dist | ||
| dist-ssr | ||
| *.local | ||
|
|
||
| # Editor directories and files | ||
| .vscode/* | ||
| !.vscode/extensions.json | ||
| .idea | ||
| .DS_Store | ||
| *.suo | ||
| *.ntvs* | ||
| *.njsproj | ||
| *.sln | ||
| *.sw? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # SuperDoc Collaboration Server + Agent | ||
| # For deployment to Google Cloud Run | ||
|
|
||
| FROM node:20-slim | ||
|
|
||
| # Cloud Run sets PORT dynamically (usually 8080) | ||
| # Default to 3050 for local testing | ||
| ENV NODE_ENV=production | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # Install dependencies (production only - no need for vite/vue devDependencies) | ||
| COPY package*.json ./ | ||
| RUN npm ci --omit=dev | ||
|
|
||
| # Copy server files only (not the Vue client source) | ||
| COPY server.ts start.ts agent.ts ./ | ||
| COPY public ./public | ||
|
|
||
| # Cloud Run sets PORT dynamically and routes traffic to it | ||
| # EXPOSE is informational only (Cloud Run ignores it) | ||
|
|
||
| # Cloud Run handles health checks via its own mechanism | ||
| # No HEALTHCHECK needed - Cloud Run uses the startup probe | ||
|
|
||
| # Run with tsx (TypeScript execution) | ||
| CMD ["npx", "tsx", "start.ts"] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked this example's tree and
package.json: the only agent implementation lives underagent/(agent/index.tsplusagent/chat.ts), while this Dockerfile copies a non-existent top-levelagent.ts. That makesdocker build/gcloud builds submitfail for the Cloud Run backend from a clean checkout, sodeploy-backend.shcannot produce a runnable image.Useful? React with 👍 / 👎.