Skip to content

Commit 22ab4e7

Browse files
chore: auto-fix linting and formatting issues via pre-commit hooks
1 parent 2994cab commit 22ab4e7

142 files changed

Lines changed: 1536 additions & 1161 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ indent_size = 2
2020

2121
[*.md]
2222
trim_trailing_whitespace = false
23-

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ labels: bug
3131
## Additional context
3232

3333
<!-- Add any other context about the problem here. -->
34-

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ labels: enhancement
1919
## Additional context
2020

2121
<!-- Add any other context or screenshots about the feature request here. -->
22-

.github/ISSUE_TEMPLATE/question.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ labels: question
1111
## Context
1212

1313
<!-- Share any relevant context (use case, environment, versions, etc.). -->
14-

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@
2020
## Related issues
2121

2222
<!-- e.g., Fixes #123 -->
23-

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ Community leaders will follow these guidelines in determining the consequences f
5050
## Attribution
5151

5252
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.
53-

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ tidy:
3838
clean:
3939
rm -rf control-plane/bin control-plane/dist
4040
find . -type d -name "__pycache__" -exec rm -rf {} +
41-

control-plane/migrations/000_migration_runner.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- Migration Runner: DID Schema Migration Script
22
-- Description: Complete DID database schema setup for the AgentField platform
33
-- Created: 2025-01-08
4-
--
4+
--
55
-- This script creates all necessary tables for the DID (Decentralized Identity) implementation
66
-- in the AgentField platform, enabling the transition from file-based to database-backed storage.
77

@@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS schema_migrations (
1313
);
1414

1515
-- Insert migration records
16-
INSERT OR IGNORE INTO schema_migrations (version, description) VALUES
16+
INSERT OR IGNORE INTO schema_migrations (version, description) VALUES
1717
('001', 'Create DID Registry table'),
1818
('002', 'Create Agent DIDs table'),
1919
('003', 'Create Component DIDs table'),
@@ -27,28 +27,28 @@ CREATE INDEX IF NOT EXISTS idx_component_dids_type_exposure ON component_dids(co
2727
CREATE INDEX IF NOT EXISTS idx_agent_dids_org_status ON agent_dids(organization_id, status);
2828

2929
-- Create triggers for automatic timestamp updates
30-
CREATE TRIGGER IF NOT EXISTS update_agent_dids_timestamp
30+
CREATE TRIGGER IF NOT EXISTS update_agent_dids_timestamp
3131
AFTER UPDATE ON agent_dids
3232
FOR EACH ROW
3333
BEGIN
3434
UPDATE agent_dids SET updated_at = CURRENT_TIMESTAMP WHERE did = NEW.did;
3535
END;
3636

37-
CREATE TRIGGER IF NOT EXISTS update_component_dids_timestamp
37+
CREATE TRIGGER IF NOT EXISTS update_component_dids_timestamp
3838
AFTER UPDATE ON component_dids
3939
FOR EACH ROW
4040
BEGIN
4141
UPDATE component_dids SET updated_at = CURRENT_TIMESTAMP WHERE did = NEW.did;
4242
END;
4343

44-
CREATE TRIGGER IF NOT EXISTS update_execution_vcs_timestamp
44+
CREATE TRIGGER IF NOT EXISTS update_execution_vcs_timestamp
4545
AFTER UPDATE ON execution_vcs
4646
FOR EACH ROW
4747
BEGIN
4848
UPDATE execution_vcs SET updated_at = CURRENT_TIMESTAMP WHERE vc_id = NEW.vc_id;
4949
END;
5050

51-
CREATE TRIGGER IF NOT EXISTS update_workflow_vcs_timestamp
51+
CREATE TRIGGER IF NOT EXISTS update_workflow_vcs_timestamp
5252
AFTER UPDATE ON workflow_vcs
5353
FOR EACH ROW
5454
BEGIN
@@ -57,7 +57,7 @@ CREATE TRIGGER IF NOT EXISTS update_workflow_vcs_timestamp
5757

5858
-- Create helpful views for DID management
5959
CREATE VIEW IF NOT EXISTS did_hierarchy_view AS
60-
SELECT
60+
SELECT
6161
dr.organization_id,
6262
dr.root_did,
6363
ad.did as agent_did,
@@ -74,7 +74,7 @@ ORDER BY dr.organization_id, ad.agent_node_id, cd.component_type, cd.function_na
7474

7575
-- Create view for VC audit trail
7676
CREATE VIEW IF NOT EXISTS vc_audit_trail AS
77-
SELECT
77+
SELECT
7878
evc.vc_id,
7979
evc.execution_id,
8080
evc.workflow_id,
@@ -91,4 +91,4 @@ LEFT JOIN component_dids issuer ON evc.issuer_did = issuer.did
9191
LEFT JOIN component_dids target ON evc.target_did = target.did
9292
LEFT JOIN component_dids caller ON evc.caller_did = caller.did
9393
LEFT JOIN workflow_vcs wvc ON evc.workflow_id = wvc.workflow_id AND evc.session_id = wvc.session_id
94-
ORDER BY evc.created_at DESC;
94+
ORDER BY evc.created_at DESC;

control-plane/migrations/001_create_did_registry.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ CREATE TABLE IF NOT EXISTS did_registry (
1515
-- Indexes for performance
1616
CREATE INDEX IF NOT EXISTS idx_did_registry_root_did ON did_registry(root_did);
1717
CREATE INDEX IF NOT EXISTS idx_did_registry_created_at ON did_registry(created_at);
18-
CREATE INDEX IF NOT EXISTS idx_did_registry_last_key_rotation ON did_registry(last_key_rotation);
18+
CREATE INDEX IF NOT EXISTS idx_did_registry_last_key_rotation ON did_registry(last_key_rotation);

control-plane/migrations/002_create_agent_dids.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS agent_dids (
1414
registered_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
1515
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
1616
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
17-
17+
1818
-- Foreign key constraints
1919
FOREIGN KEY (organization_id) REFERENCES did_registry(organization_id) ON DELETE CASCADE
2020
);
@@ -24,4 +24,4 @@ CREATE INDEX IF NOT EXISTS idx_agent_dids_agent_node_id ON agent_dids(agent_node
2424
CREATE INDEX IF NOT EXISTS idx_agent_dids_organization_id ON agent_dids(organization_id);
2525
CREATE INDEX IF NOT EXISTS idx_agent_dids_status ON agent_dids(status);
2626
CREATE INDEX IF NOT EXISTS idx_agent_dids_registered_at ON agent_dids(registered_at);
27-
CREATE UNIQUE INDEX IF NOT EXISTS idx_agent_dids_agent_node_org ON agent_dids(agent_node_id, organization_id);
27+
CREATE UNIQUE INDEX IF NOT EXISTS idx_agent_dids_agent_node_org ON agent_dids(agent_node_id, organization_id);

0 commit comments

Comments
 (0)