Skip to content

[Alpha] [Naga] To be released #833

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

Merged
merged 1 commit into from
Aug 12, 2025
Merged

[Alpha] [Naga] To be released #833

merged 1 commit into from
Aug 12, 2025

Conversation

Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Jun 12, 2025

Base Naga Branch

@Ansonhkg Ansonhkg changed the title [Naga] Alpha [Don't merge] [Naga] Alpha Jun 12, 2025
@Ansonhkg Ansonhkg changed the title [Don't merge] [Naga] Alpha [Alpha] [Naga] To be released Jul 8, 2025
@FedericoAmura FedericoAmura requested a review from Copilot August 6, 2025 18:54
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 PR introduces the "Naga" alpha release branch containing significant architectural changes to the Lit Protocol SDK. It migrates from AccsOperatorParams to OperatorAcc types, introduces new access control conditions schemas with Zod validation, adds new package structure and tooling, and implements major build system updates with dependency management.

  • Architectural migration to Zod-based schema validation for access control conditions
  • Introduction of new @lit-protocol/access-control-conditions-schemas package
  • Major build system refactoring with new dependency management and automation

Reviewed Changes

Copilot reviewed 271 out of 1511 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/access-control-conditions/src/lib/canonicalFormatter.ts Migrates from AccsOperatorParams to OperatorAcc type, adds new imports and interface definitions
packages/access-control-conditions/src/lib/canonicalFormatter.spec.ts Updates test structure with better error handling and type improvements
packages/access-control-conditions/src/lib/booleanExpressions.ts New utility for validating boolean expressions in access control conditions
packages/access-control-conditions/src/index.ts Adds new exports for boolean expressions and builder functions
packages/access-control-conditions/project.json Adds new build targets including dependency checking and publishing
packages/access-control-conditions/package.json Version bump to 8.0.0-alpha.14 with new dependencies
packages/access-control-conditions-schemas/* New package containing Zod schemas for access control condition validation
local-tests/tests/wrapped-keys/* Removes wrapped-keys test files
package.json Major build system overhaul with new scripts and dependency management
nx.json Build system configuration updates for new dependency management

Comment on lines 14 to 20
} from '@lit-protocol/types';

interface ABIParams {
name: string;
type: string;
}

Copy link
Preview

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

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

The ABIParams interface is defined locally but seems to duplicate functionality. Consider using a shared type definition or importing from a common location to avoid duplication.

Suggested change
} from '@lit-protocol/types';
interface ABIParams {
name: string;
type: string;
}
AbiParam,
} from '@lit-protocol/types';

Copilot uses AI. Check for mistakes.

Comment on lines 25 to 26
"main": "./src/index.js",
"typings": "./src/index.d.ts",
Copy link
Preview

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

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

The version indicates this is an alpha release (8.0.0-alpha.14), but the main and typings paths point to src/ instead of dist/. This suggests development setup rather than published package configuration.

Suggested change
"main": "./src/index.js",
"typings": "./src/index.d.ts",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",

Copilot uses AI. Check for mistakes.

@@ -0,0 +1,70 @@
{
"name": "access-control-conditions-schemas",
"$schema": "../../node_modules/nx/access-control-conditions-schemas/project-schema.json",
Copy link
Preview

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

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

The schema path includes the package name 'access-control-conditions-schemas' which is unusual for Nx project schemas. This should likely be the standard Nx schema path.

Suggested change
"$schema": "../../node_modules/nx/access-control-conditions-schemas/project-schema.json",
"$schema": "../../node_modules/nx/schemas/project-schema.json",

Copilot uses AI. Check for mistakes.

@Ansonhkg Ansonhkg changed the base branch from master to naga August 12, 2025 10:46
@Ansonhkg Ansonhkg merged commit 86cf2a2 into naga Aug 12, 2025
@Ansonhkg Ansonhkg deleted the feat/naga-dev-29-05-2025-v2 branch August 12, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant