Skip to content
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

fix: SDK usage #50

Merged

Conversation

gentlementlegen
Copy link
Member

Resolves #47

Replaces `Context` with `ContextPlugin` in multiple files to utilize standardized context structure.
Copy link
Contributor

github-actions bot commented Oct 28, 2024

Unused files (1)

src/handlers/return-data-to-kernel.ts

Added ESM support in Jest and package.json, updated moduleResolution in tsconfig.
Deleted `validator.ts`, removed unused dependencies, and updated the test script in `package.json`.
Update the URL in the fetch call and modify the expected response status and `ok` flag.
Updated `stateId` in `issue-comment-post.json
Enhanced plugin setup by adding fetch handler to handle requests
@gentlementlegen
Copy link
Member Author

@whilefoo Please little help, I can't get the signature to work within the tests. What am I doing wrong?

Simplify type import for ExecutionContext from 'hono' package.
Added Hono framework version 4.6.7 to project dependencies in package.json and updated yarn.lock.
package.json Show resolved Hide resolved
Updated wrangler settings, updated to latest package versions.
Updated environment variable references and tests for consistency.
@gentlementlegen
Copy link
Member Author

Apologies I am an imbecile, remembered that we renamed UBIQUIBOT_PUBLIC_KEY to KERNEL_PUBLIC_KEY which is why it was never working.

@gentlementlegen gentlementlegen marked this pull request as ready for review October 28, 2024 16:12
@whilefoo
Copy link
Member

whilefoo commented Oct 28, 2024

Apologies I am an imbecile, remembered that we renamed UBIQUIBOT_PUBLIC_KEY to KERNEL_PUBLIC_KEY which is why it was never working.

I was looking at the code right as you changed to KERNEL_PUBLIC_KEY and I couldn't find the reason why it's not working :D

src/worker.ts Outdated Show resolved Hide resolved
src/shared/label.ts Outdated Show resolved Hide resolved
Replaces `Context` with `ContextPlugin` in multiple files to utilize standardized context structure.
Added ESM support in Jest and package.json, updated moduleResolution in tsconfig.
Deleted `validator.ts`, removed unused dependencies, and updated the test script in `package.json`.
Update the URL in the fetch call and modify the expected response status and `ok` flag.
Updated `stateId` in `issue-comment-post.json
Enhanced plugin setup by adding fetch handler to handle requests
Simplify type import for ExecutionContext from 'hono' package.
Added Hono framework version 4.6.7 to project dependencies in package.json and updated yarn.lock.
Updated wrangler settings, updated to latest package versions.
Updated environment variable references and tests for consistency.
@gentlementlegen
Copy link
Member Author

@0x4007 I will fix the merges and update, should take me ~1h more sorry.

Updated various files to replace the Context type with ContextPlugin.
# Conflicts:
#	.cspell.json
#	src/handlers/pricing-label.ts
#	src/handlers/sync-labels-to-config.ts
#	src/run.ts
#	src/shared/issue.ts
#	src/shared/label.ts
#	src/shared/pricing.ts
#	src/types/plugin-input.ts
#	src/types/typeguards.ts
#	tests/__mocks__/handlers.ts
#	tests/main.test.ts
#	yarn.lock
Deleted unused handler and cleaned up cspell settings.
@gentlementlegen gentlementlegen changed the base branch from development to main October 28, 2024 17:42
@gentlementlegen gentlementlegen changed the base branch from main to development October 28, 2024 17:42
@gentlementlegen gentlementlegen merged commit eb5b16e into ubiquity-os-marketplace:development Oct 28, 2024
2 checks passed
@gentlementlegen gentlementlegen deleted the fix/sdk branch October 28, 2024 17:42
@ubiquity-os-beta ubiquity-os-beta bot mentioned this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use SDK
3 participants