Skip to content
This repository was archived by the owner on May 9, 2026. It is now read-only.

Fix/encryption#8

Merged
senamakel merged 10 commits into
tinyhumansai:mainfrom
senamakel:fix/encryption
Apr 5, 2026
Merged

Fix/encryption#8
senamakel merged 10 commits into
tinyhumansai:mainfrom
senamakel:fix/encryption

Conversation

@senamakel
Copy link
Copy Markdown
Member

Skill Submission

Skill name: skill-name-here
Type: [ ] Prompt-only | [ ] Coded (skill.ts)

Description

Brief description of what this skill does and why it's useful.

Checklist

  • SKILL.md has valid YAML frontmatter (name, description)
  • Skill name matches directory name (lowercase-hyphens)
  • Instructions are clear enough for an AI agent to follow
  • Examples demonstrate expected usage
  • No hardcoded API keys, tokens, or secrets
  • No eval(), Function(), or dynamic code execution
  • No direct filesystem or network access (use ctx.readData/ctx.writeData)
  • If coded: skill.ts has name, description, version
  • If coded: all hooks complete within 10 seconds
  • If coded: tools have JSON Schema parameters and return { content: string }
  • Tested locally with npx tsx harness/runner.ts ../skills/my-skill
  • npm run validate passes in dev/

Testing

Describe how you tested this skill:

Category

  • DeFi
  • Trading
  • Research
  • Community
  • NFT
  • Security
  • Other: ___

senamakel added 10 commits April 4, 2026 20:46
- Introduced comprehensive live integration tests for the Gmail and Notion skills, covering the full encrypted OAuth flow and self-hosted authentication modes.
- Implemented new functions for handling authentication, including `authComplete` and `oauthComplete`, to facilitate the OAuth process.
- Added test cases to validate skill startup, authentication, and tool functionality, ensuring robust integration with the respective APIs.
- Enhanced the test harness to support environment variable configuration for both self-hosted and managed OAuth modes.
- Simplified the encrypted OAuth flow in the test files for Gmail and Notion by removing the separate fetch step for the client key, which is now directly returned in the OAuth callback URL.
- Updated environment variable requirements in the tests to reflect the new client key handling.
- Adjusted test cases to ensure proper injection of the client key during OAuth credential injection, enhancing clarity and maintainability of the tests.
- Updated the openhuman submodule to the latest commit, ensuring compatibility with recent changes and improvements in the core project.
- Added `ts-node` as a dependency in `package.json` for improved TypeScript execution.
- Updated `yarn.lock` to reflect new dependencies and their versions, including `@cspotcode/source-map-support`, `@tsconfig/node10`, `@tsconfig/node12`, `@tsconfig/node14`, and `@tsconfig/node16`.
- Refined the live integration test scripts for Gmail and Notion, improving authentication prompts and error handling.
- Enhanced the overall structure and readability of the test scripts, ensuring better maintainability and clarity.
- Updated test files for Gmail and Notion to automatically read environment variables from the .env file, simplifying usage.
- Removed explicit JWT_TOKEN and BACKEND_URL parameters from the usage instructions, streamlining the command execution process.
- Improved overall clarity and maintainability of the test scripts.
…nment management

- Updated .env.example to include new environment variables for Gmail and Notion integration, clarifying usage for both OAuth and self-hosted modes.
- Enhanced .gitignore to exclude the .fastembed_cache directory, ensuring cleaner project management.
- Added a new script (dev-runtime.mjs) for starting the skills runtime with environment variables loaded, streamlining development workflow.
- Updated package.json to include a new script for running the development runtime, improving ease of use for developers.
- Updated the Gmail sync logic to utilize the new `isGmailConnected` function for better connection checks.
- Enhanced the `gmailFetch` function to differentiate between direct API calls and OAuth proxy usage, improving error handling and token management.
- Refined environment variable handling in test scripts, allowing for more streamlined authentication processes.
- Improved logging for better debugging and clarity during API interactions.
- Implemented parallel processing for syncing messages and fetching metadata to improve performance and reduce timeouts.
- Updated the `gmailFetch` function to handle endpoint paths more efficiently, enhancing API interaction.
- Refined error handling in the `callToolSafe` function to provide clearer error messages and improve robustness.
- Rearranged import statements in the Gmail live test script for better organization.
- Enhanced error handling in the `callToolSafe` function to improve clarity in error responses.
- Streamlined prompts for user input in the main function, improving readability and maintainability.
- Consolidated logging statements in the `gmailFetch` function for cleaner output.
@senamakel senamakel merged commit 06e1c1d into tinyhumansai:main Apr 5, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 5, 2026

Warning

Rate limit exceeded

@senamakel has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 36 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 8 minutes and 36 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 78ff7a56-6b8b-4e5a-90bb-888b9ad73c10

📥 Commits

Reviewing files that changed from the base of the PR and between ced593e and e10be6e.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (13)
  • .env.example
  • .gitignore
  • dev/test-harness/index.ts
  • openhuman
  • package.json
  • scripts/dev-runtime.mjs
  • src/core/gmail/__tests__/test-gmail-live.ts
  • src/core/gmail/api/index.ts
  • src/core/gmail/sync.ts
  • src/core/gmail/tools/get-emails.ts
  • src/core/gmail/tools/search-emails.ts
  • src/core/notion/__tests__/test-notion-live.ts
  • src/core/server-ping/setup.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant