Skip to content

Conversation

nikgraf
Copy link
Collaborator

@nikgraf nikgraf commented Aug 1, 2025

created follow up issues here:

merging since we had useful changes like the effect language server

@nikgraf nikgraf mentioned this pull request Aug 4, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds development infrastructure and server tracing capabilities to support the hypergraph project. The main focus is on upgrading the Effect library to version 3.17.9 and introducing a new server implementation with comprehensive tracing support.

  • Effect library updated from 3.17.8 to 3.17.9 across all packages
  • Added Effect language server plugin for enhanced TypeScript development experience
  • New server implementation (apps/server-new) with Effect-based architecture and comprehensive API documentation

Reviewed Changes

Copilot reviewed 82 out of 85 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
tsconfig.base.json Added Effect language service plugin for better TypeScript support
package.json Added Effect language service and vitest packages to development dependencies
packages/*/package.json Updated Effect library from 3.17.8 to 3.17.9 across all packages
packages/hypergraph/src/**/types.ts Refactored error classes to use Data.TaggedError for better Effect integration
packages/hypergraph/src/space-events/apply-event.ts Updated error handling syntax for Effect library compatibility
apps/server-new/** Complete new server implementation with Effect-based architecture, services, and API documentation
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

}

// find the invitation
const result = Object.entries(invitations).find(
([, invitation]) => invitation.inviteeAccountAddress === event.author.accountAddress,
);
if (!result) {
yield* Effect.fail(new InvalidEventError());
return yield* new InvalidEventError();
Copy link
Preview

Copilot AI Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect syntax for Effect error handling. All instances should use yield* Effect.fail(new InvalidEventError()) instead of return yield* new InvalidEventError().

Suggested change
return yield* new InvalidEventError();
return yield* Effect.fail(new InvalidEventError());

Copilot uses AI. Check for mistakes.

@@ -112,11 +111,11 @@ export const applyEvent = ({
invitations = {};
} else if (event.transaction.type === 'create-invitation') {
if (members[event.transaction.inviteeAccountAddress] !== undefined) {
yield* Effect.fail(new InvalidEventError());
return yield* new InvalidEventError();
Copy link
Preview

Copilot AI Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect syntax for Effect error handling. All instances should use yield* Effect.fail(new InvalidEventError()) instead of return yield* new InvalidEventError().

Suggested change
return yield* new InvalidEventError();
return yield* Effect.fail(new InvalidEventError());

Copilot uses AI. Check for mistakes.

@nikgraf nikgraf merged commit 6bbc0a2 into main Aug 29, 2025
6 of 7 checks passed
@nikgraf nikgraf deleted the ng/server-tracing branch August 29, 2025 18:20
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.

2 participants