From 7fcf07021537dbff306de338b8bd7c80156eb5b9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 03:45:50 +0000 Subject: [PATCH 1/6] Initial plan From bc86258c9ba844dee170a035ad136c9a5857bd11 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 03:48:37 +0000 Subject: [PATCH 2/6] Add MIT license headers to all source files Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com> --- docs/examples/s3-storage-implementation.ts | 8 ++ examples/drivers/excel-demo/src/index.ts | 8 ++ examples/drivers/fs-demo/src/index.ts | 8 ++ examples/integrations/browser/vite.config.js | 8 ++ .../express-server/__tests__/data-api.test.ts | 8 ++ .../__tests__/metadata-api.test.ts | 8 ++ .../__tests__/metadata-loading.test.ts | 8 ++ .../express-server/jest.config.js | 8 ++ .../integrations/express-server/src/index.ts | 8 ++ examples/quickstart/hello-world/src/index.ts | 8 ++ .../enterprise-erp/__tests__/data-api.test.ts | 8 ++ .../__tests__/metadata-api.test.ts | 8 ++ .../__tests__/metadata-loading.test.ts | 8 ++ .../showcase/enterprise-erp/jest.config.js | 8 ++ .../showcase/enterprise-erp/src/core/index.ts | 8 ++ .../enterprise-erp/src/extensions/user.ts | 8 ++ examples/showcase/enterprise-erp/src/index.ts | 8 ++ .../enterprise-erp/src/modules/crm/index.ts | 8 ++ .../src/modules/finance/index.ts | 8 ++ .../enterprise-erp/src/modules/hr/index.ts | 8 ++ .../src/modules/project/index.ts | 8 ++ .../src/plugins/audit/audit.plugin.ts | 8 ++ .../enterprise-erp/src/plugins/audit/index.ts | 8 ++ .../enterprise-erp/src/shared/constants.ts | 8 ++ .../enterprise-erp/src/shared/utils.ts | 8 ++ .../enterprise-erp/src/shared/validators.ts | 8 ++ .../enterprise-erp/src/types/attachment.ts | 8 ++ .../enterprise-erp/src/types/crm_account.ts | 8 ++ .../enterprise-erp/src/types/crm_contact.ts | 8 ++ .../enterprise-erp/src/types/crm_lead.ts | 8 ++ .../src/types/crm_opportunity.ts | 8 ++ .../src/types/finance_budget.ts | 8 ++ .../src/types/finance_expense.ts | 8 ++ .../src/types/finance_invoice.ts | 8 ++ .../src/types/finance_payment.ts | 8 ++ .../enterprise-erp/src/types/hr_department.ts | 8 ++ .../enterprise-erp/src/types/hr_employee.ts | 8 ++ .../enterprise-erp/src/types/hr_position.ts | 8 ++ .../enterprise-erp/src/types/hr_timesheet.ts | 8 ++ .../enterprise-erp/src/types/index.ts | 8 ++ .../showcase/enterprise-erp/src/types/note.ts | 8 ++ .../enterprise-erp/src/types/organization.ts | 8 ++ .../src/types/project_milestone.ts | 8 ++ .../src/types/project_project.ts | 8 ++ .../enterprise-erp/src/types/project_task.ts | 8 ++ .../src/types/project_timesheet_entry.ts | 8 ++ .../showcase/enterprise-erp/src/types/user.ts | 8 ++ .../__tests__/projects-hooks-actions.test.ts | 8 ++ .../showcase/project-tracker/jest.config.js | 8 ++ .../src/modules/projects/projects.action.ts | 8 ++ .../src/modules/projects/projects.hook.ts | 8 ++ examples/showcase/project-tracker/src/seed.ts | 8 ++ .../project-tracker/src/types/index.ts | 8 ++ .../project-tracker/src/types/kitchen_sink.ts | 8 ++ .../project-tracker/src/types/projects.ts | 8 ++ .../project-tracker/src/types/tasks.ts | 8 ++ jest.config.js | 8 ++ objectql.config.ts | 8 ++ packages/drivers/excel/jest.config.js | 8 ++ packages/drivers/excel/src/index.ts | 8 ++ packages/drivers/excel/test/index.test.ts | 8 ++ packages/drivers/fs/jest.config.js | 8 ++ packages/drivers/fs/src/index.ts | 8 ++ packages/drivers/fs/test/index.test.ts | 8 ++ packages/drivers/localstorage/jest.config.js | 8 ++ packages/drivers/localstorage/src/index.ts | 8 ++ .../drivers/localstorage/test/index.test.ts | 8 ++ packages/drivers/memory/jest.config.js | 8 ++ packages/drivers/memory/src/index.ts | 8 ++ packages/drivers/memory/test/index.test.ts | 8 ++ packages/drivers/mongo/jest.config.js | 8 ++ packages/drivers/mongo/src/index.ts | 8 ++ packages/drivers/mongo/test/index.test.ts | 8 ++ .../drivers/mongo/test/integration.test.ts | 8 ++ packages/drivers/redis/jest.config.js | 8 ++ packages/drivers/redis/src/index.ts | 8 ++ packages/drivers/redis/test/index.test.ts | 8 ++ packages/drivers/sdk/jest.config.js | 8 ++ packages/drivers/sdk/src/index.ts | 8 ++ .../drivers/sdk/test/remote-driver.test.ts | 8 ++ packages/drivers/sql/jest.config.js | 8 ++ packages/drivers/sql/src/index.ts | 8 ++ packages/drivers/sql/test/advanced.test.ts | 8 ++ packages/drivers/sql/test/index.test.ts | 8 ++ .../drivers/sql/test/introspection.test.ts | 8 ++ packages/drivers/sql/test/schema.test.ts | 8 ++ packages/foundation/core/jest.config.js | 8 ++ packages/foundation/core/src/action.ts | 8 ++ packages/foundation/core/src/ai-agent.ts | 8 ++ packages/foundation/core/src/app.ts | 8 ++ .../foundation/core/src/formula-engine.ts | 8 ++ packages/foundation/core/src/hook.ts | 8 ++ packages/foundation/core/src/index.ts | 8 ++ packages/foundation/core/src/object.ts | 8 ++ packages/foundation/core/src/repository.ts | 8 ++ packages/foundation/core/src/util.ts | 8 ++ packages/foundation/core/src/validator.ts | 8 ++ packages/foundation/core/test/action.test.ts | 8 ++ packages/foundation/core/test/app.test.ts | 8 ++ .../core/test/formula-engine.test.ts | 8 ++ .../core/test/formula-integration.test.ts | 8 ++ packages/foundation/core/test/hook.test.ts | 8 ++ .../core/test/introspection.test.ts | 8 ++ packages/foundation/core/test/mock-driver.ts | 8 ++ packages/foundation/core/test/object.test.ts | 8 ++ .../core/test/repository-validation.test.ts | 8 ++ .../foundation/core/test/repository.test.ts | 8 ++ packages/foundation/core/test/util.test.ts | 8 ++ packages/foundation/core/test/utils.ts | 8 ++ .../foundation/core/test/validator.test.ts | 8 ++ .../foundation/platform-node/jest.config.js | 8 ++ .../foundation/platform-node/src/driver.ts | 8 ++ .../foundation/platform-node/src/index.ts | 8 ++ .../foundation/platform-node/src/loader.ts | 8 ++ .../foundation/platform-node/src/module.ts | 8 ++ .../foundation/platform-node/src/plugin.ts | 8 ++ .../platform-node/test/dynamic.test.ts | 8 ++ .../test/fixtures/project.action.js | 8 ++ .../platform-node/test/loader.test.ts | 8 ++ .../platform-node/test/metadata.test.ts | 8 ++ .../platform-node/test/validation.test.ts | 8 ++ packages/foundation/types/jest.config.js | 8 ++ .../types/scripts/generate-schemas.js | 8 ++ packages/foundation/types/src/action.ts | 8 ++ packages/foundation/types/src/api.ts | 8 ++ packages/foundation/types/src/app.ts | 8 ++ packages/foundation/types/src/application.ts | 8 ++ packages/foundation/types/src/config.ts | 8 ++ packages/foundation/types/src/context.ts | 8 ++ packages/foundation/types/src/driver.ts | 8 ++ packages/foundation/types/src/field.ts | 8 ++ packages/foundation/types/src/form.ts | 8 ++ packages/foundation/types/src/formula.ts | 8 ++ packages/foundation/types/src/hook.ts | 8 ++ packages/foundation/types/src/index.ts | 8 ++ packages/foundation/types/src/loader.ts | 8 ++ packages/foundation/types/src/menu.ts | 8 ++ packages/foundation/types/src/migration.ts | 8 ++ packages/foundation/types/src/object.ts | 8 ++ packages/foundation/types/src/page.ts | 8 ++ packages/foundation/types/src/permission.ts | 8 ++ packages/foundation/types/src/plugin.ts | 8 ++ packages/foundation/types/src/query.ts | 8 ++ packages/foundation/types/src/registry.ts | 8 ++ packages/foundation/types/src/report.ts | 8 ++ packages/foundation/types/src/repository.ts | 8 ++ packages/foundation/types/src/validation.ts | 8 ++ packages/foundation/types/src/view.ts | 8 ++ packages/foundation/types/src/workflow.ts | 8 ++ .../foundation/types/test/registry.test.ts | 8 ++ packages/runtime/server/jest.config.js | 8 ++ .../runtime/server/src/adapters/graphql.ts | 8 ++ packages/runtime/server/src/adapters/node.ts | 8 ++ packages/runtime/server/src/adapters/rest.ts | 8 ++ packages/runtime/server/src/file-handler.ts | 8 ++ packages/runtime/server/src/index.ts | 8 ++ packages/runtime/server/src/metadata.ts | 8 ++ packages/runtime/server/src/openapi.ts | 8 ++ packages/runtime/server/src/server.ts | 8 ++ packages/runtime/server/src/storage.ts | 8 ++ packages/runtime/server/src/templates.ts | 8 ++ packages/runtime/server/src/types.ts | 8 ++ packages/runtime/server/src/utils.ts | 8 ++ .../runtime/server/test/custom-routes.test.ts | 8 ++ .../test/file-upload-integration.example.ts | 8 ++ .../server/test/file-validation.test.ts | 8 ++ packages/runtime/server/test/graphql.test.ts | 8 ++ .../server/test/integration-example.ts | 8 ++ packages/runtime/server/test/metadata.test.ts | 8 ++ packages/runtime/server/test/node.test.ts | 8 ++ packages/runtime/server/test/openapi.test.ts | 8 ++ .../runtime/server/test/rest-advanced.test.ts | 8 ++ packages/runtime/server/test/rest.test.ts | 8 ++ packages/runtime/server/test/storage.test.ts | 8 ++ packages/tools/cli/__tests__/commands.test.ts | 8 ++ packages/tools/cli/jest.config.js | 8 ++ packages/tools/cli/src/commands/ai.ts | 8 ++ packages/tools/cli/src/commands/build.ts | 8 ++ .../tools/cli/src/commands/database-push.ts | 8 ++ packages/tools/cli/src/commands/dev.ts | 8 ++ packages/tools/cli/src/commands/doctor.ts | 8 ++ packages/tools/cli/src/commands/format.ts | 8 ++ packages/tools/cli/src/commands/generate.ts | 8 ++ packages/tools/cli/src/commands/i18n.ts | 8 ++ packages/tools/cli/src/commands/init.ts | 8 ++ packages/tools/cli/src/commands/lint.ts | 8 ++ packages/tools/cli/src/commands/migrate.ts | 8 ++ packages/tools/cli/src/commands/new.ts | 8 ++ packages/tools/cli/src/commands/repl.ts | 8 ++ packages/tools/cli/src/commands/serve.ts | 8 ++ packages/tools/cli/src/commands/start.ts | 8 ++ packages/tools/cli/src/commands/sync.ts | 8 ++ packages/tools/cli/src/commands/test.ts | 8 ++ packages/tools/cli/src/index.ts | 8 ++ packages/tools/cli/src/register/ai.ts | 8 ++ packages/tools/cli/src/register/database.ts | 8 ++ packages/tools/cli/src/register/i18n.ts | 8 ++ packages/tools/cli/src/register/lifecycle.ts | 8 ++ packages/tools/cli/src/register/scaffold.ts | 8 ++ packages/tools/cli/src/register/tools.ts | 8 ++ packages/tools/create/jest.config.js | 8 ++ .../tools/create/scripts/copy-templates.js | 8 ++ packages/tools/create/src/bin.ts | 8 ++ packages/tools/vscode-objectql/esbuild.js | 8 ++ .../tools/vscode-objectql/out/extension.d.ts | 8 ++ .../tools/vscode-objectql/out/extension.js | 8 ++ .../src/commands/createFile.ts | 8 ++ .../vscode-objectql/src/commands/validate.ts | 8 ++ .../tools/vscode-objectql/src/extension.ts | 8 ++ .../src/providers/ObjectCompletionProvider.ts | 8 ++ .../src/providers/ObjectDefinitionProvider.ts | 8 ++ .../src/services/ObjectIndex.ts | 8 ++ .../vscode-objectql/src/utils/constants.ts | 8 ++ scripts/add-license-headers.js | 132 ++++++++++++++++++ scripts/check-versions.js | 8 ++ scripts/validate-yaml.js | 8 ++ 216 files changed, 1852 insertions(+) create mode 100755 scripts/add-license-headers.js diff --git a/docs/examples/s3-storage-implementation.ts b/docs/examples/s3-storage-implementation.ts index d457a3bf..4a6f46a2 100644 --- a/docs/examples/s3-storage-implementation.ts +++ b/docs/examples/s3-storage-implementation.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IFileStorage, AttachmentData, FileStorageOptions } from '@objectql/server'; import { S3Client, PutObjectCommand, GetObjectCommand, DeleteObjectCommand } from '@aws-sdk/client-s3'; import { getSignedUrl } from '@aws-sdk/s3-request-presigner'; diff --git a/examples/drivers/excel-demo/src/index.ts b/examples/drivers/excel-demo/src/index.ts index 5da01bde..5bf59fb1 100644 --- a/examples/drivers/excel-demo/src/index.ts +++ b/examples/drivers/excel-demo/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Excel Driver Demo * diff --git a/examples/drivers/fs-demo/src/index.ts b/examples/drivers/fs-demo/src/index.ts index 879d69fc..22b5cbf0 100644 --- a/examples/drivers/fs-demo/src/index.ts +++ b/examples/drivers/fs-demo/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { FileSystemDriver } from '@objectql/driver-fs'; import * as path from 'path'; diff --git a/examples/integrations/browser/vite.config.js b/examples/integrations/browser/vite.config.js index 208ea0f8..b18d4f61 100644 --- a/examples/integrations/browser/vite.config.js +++ b/examples/integrations/browser/vite.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { defineConfig } from 'vite'; import { resolve } from 'path'; diff --git a/examples/integrations/express-server/__tests__/data-api.test.ts b/examples/integrations/express-server/__tests__/data-api.test.ts index d9aa4794..696bae09 100644 --- a/examples/integrations/express-server/__tests__/data-api.test.ts +++ b/examples/integrations/express-server/__tests__/data-api.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Data API Tests for Express API Starter * diff --git a/examples/integrations/express-server/__tests__/metadata-api.test.ts b/examples/integrations/express-server/__tests__/metadata-api.test.ts index b7aa1db1..72c5fb40 100644 --- a/examples/integrations/express-server/__tests__/metadata-api.test.ts +++ b/examples/integrations/express-server/__tests__/metadata-api.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Metadata API Tests for Express API Starter * diff --git a/examples/integrations/express-server/__tests__/metadata-loading.test.ts b/examples/integrations/express-server/__tests__/metadata-loading.test.ts index 7887b8e5..79002b0f 100644 --- a/examples/integrations/express-server/__tests__/metadata-loading.test.ts +++ b/examples/integrations/express-server/__tests__/metadata-loading.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Metadata Loading Tests for Express API Starter * diff --git a/examples/integrations/express-server/jest.config.js b/examples/integrations/express-server/jest.config.js index 05e12b60..17d87d1d 100644 --- a/examples/integrations/express-server/jest.config.js +++ b/examples/integrations/express-server/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/examples/integrations/express-server/src/index.ts b/examples/integrations/express-server/src/index.ts index e8876692..124818ad 100644 --- a/examples/integrations/express-server/src/index.ts +++ b/examples/integrations/express-server/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import express from 'express'; import { ObjectQL } from '@objectql/core'; import { SqlDriver } from '@objectql/driver-sql'; diff --git a/examples/quickstart/hello-world/src/index.ts b/examples/quickstart/hello-world/src/index.ts index 65dcedc9..698a9fb9 100644 --- a/examples/quickstart/hello-world/src/index.ts +++ b/examples/quickstart/hello-world/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { SqlDriver } from '@objectql/driver-sql'; diff --git a/examples/showcase/enterprise-erp/__tests__/data-api.test.ts b/examples/showcase/enterprise-erp/__tests__/data-api.test.ts index 44f6cb49..751701ec 100644 --- a/examples/showcase/enterprise-erp/__tests__/data-api.test.ts +++ b/examples/showcase/enterprise-erp/__tests__/data-api.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Data API Tests for Enterprise Starter * diff --git a/examples/showcase/enterprise-erp/__tests__/metadata-api.test.ts b/examples/showcase/enterprise-erp/__tests__/metadata-api.test.ts index a18ad38a..0e23b0b4 100644 --- a/examples/showcase/enterprise-erp/__tests__/metadata-api.test.ts +++ b/examples/showcase/enterprise-erp/__tests__/metadata-api.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Metadata API Tests for Enterprise Starter * diff --git a/examples/showcase/enterprise-erp/__tests__/metadata-loading.test.ts b/examples/showcase/enterprise-erp/__tests__/metadata-loading.test.ts index 7007f137..5fc3e93e 100644 --- a/examples/showcase/enterprise-erp/__tests__/metadata-loading.test.ts +++ b/examples/showcase/enterprise-erp/__tests__/metadata-loading.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Metadata Loading Tests for Enterprise Starter * diff --git a/examples/showcase/enterprise-erp/jest.config.js b/examples/showcase/enterprise-erp/jest.config.js index 05e12b60..17d87d1d 100644 --- a/examples/showcase/enterprise-erp/jest.config.js +++ b/examples/showcase/enterprise-erp/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/examples/showcase/enterprise-erp/src/core/index.ts b/examples/showcase/enterprise-erp/src/core/index.ts index 813be5d4..6733f13e 100644 --- a/examples/showcase/enterprise-erp/src/core/index.ts +++ b/examples/showcase/enterprise-erp/src/core/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Core Module - Foundation Objects * diff --git a/examples/showcase/enterprise-erp/src/extensions/user.ts b/examples/showcase/enterprise-erp/src/extensions/user.ts index 62c3a3bb..e6abc66b 100644 --- a/examples/showcase/enterprise-erp/src/extensions/user.ts +++ b/examples/showcase/enterprise-erp/src/extensions/user.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/index.ts b/examples/showcase/enterprise-erp/src/index.ts index 2a4661df..0b081088 100644 --- a/examples/showcase/enterprise-erp/src/index.ts +++ b/examples/showcase/enterprise-erp/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { SqlDriver } from '@objectql/driver-sql'; import { ObjectLoader } from '@objectql/platform-node'; diff --git a/examples/showcase/enterprise-erp/src/modules/crm/index.ts b/examples/showcase/enterprise-erp/src/modules/crm/index.ts index 191bbeb0..311fb944 100644 --- a/examples/showcase/enterprise-erp/src/modules/crm/index.ts +++ b/examples/showcase/enterprise-erp/src/modules/crm/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * CRM Module - Customer Relationship Management * diff --git a/examples/showcase/enterprise-erp/src/modules/finance/index.ts b/examples/showcase/enterprise-erp/src/modules/finance/index.ts index 30d4c304..cc94671c 100644 --- a/examples/showcase/enterprise-erp/src/modules/finance/index.ts +++ b/examples/showcase/enterprise-erp/src/modules/finance/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Finance Module - Finance & Accounting * diff --git a/examples/showcase/enterprise-erp/src/modules/hr/index.ts b/examples/showcase/enterprise-erp/src/modules/hr/index.ts index cc1da04e..c61c7887 100644 --- a/examples/showcase/enterprise-erp/src/modules/hr/index.ts +++ b/examples/showcase/enterprise-erp/src/modules/hr/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * HR Module - Human Resources Management * diff --git a/examples/showcase/enterprise-erp/src/modules/project/index.ts b/examples/showcase/enterprise-erp/src/modules/project/index.ts index ee48ad62..4bba8869 100644 --- a/examples/showcase/enterprise-erp/src/modules/project/index.ts +++ b/examples/showcase/enterprise-erp/src/modules/project/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Project Module - Project Management * diff --git a/examples/showcase/enterprise-erp/src/plugins/audit/audit.plugin.ts b/examples/showcase/enterprise-erp/src/plugins/audit/audit.plugin.ts index 5acac38a..61cf8433 100644 --- a/examples/showcase/enterprise-erp/src/plugins/audit/audit.plugin.ts +++ b/examples/showcase/enterprise-erp/src/plugins/audit/audit.plugin.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQLPlugin, IObjectQL, MutationHookContext } from '@objectql/types'; export class AuditLogPlugin implements ObjectQLPlugin { diff --git a/examples/showcase/enterprise-erp/src/plugins/audit/index.ts b/examples/showcase/enterprise-erp/src/plugins/audit/index.ts index 706a38c6..f52f98ed 100644 --- a/examples/showcase/enterprise-erp/src/plugins/audit/index.ts +++ b/examples/showcase/enterprise-erp/src/plugins/audit/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Export the plugin for external usage export * from './audit.plugin'; diff --git a/examples/showcase/enterprise-erp/src/shared/constants.ts b/examples/showcase/enterprise-erp/src/shared/constants.ts index 110c5c0a..a60c52ec 100644 --- a/examples/showcase/enterprise-erp/src/shared/constants.ts +++ b/examples/showcase/enterprise-erp/src/shared/constants.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Shared constants used across the application */ diff --git a/examples/showcase/enterprise-erp/src/shared/utils.ts b/examples/showcase/enterprise-erp/src/shared/utils.ts index 025be982..f2048bf5 100644 --- a/examples/showcase/enterprise-erp/src/shared/utils.ts +++ b/examples/showcase/enterprise-erp/src/shared/utils.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Shared utility functions */ diff --git a/examples/showcase/enterprise-erp/src/shared/validators.ts b/examples/showcase/enterprise-erp/src/shared/validators.ts index 4c2df788..3ac22c78 100644 --- a/examples/showcase/enterprise-erp/src/shared/validators.ts +++ b/examples/showcase/enterprise-erp/src/shared/validators.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Shared validation utilities */ diff --git a/examples/showcase/enterprise-erp/src/types/attachment.ts b/examples/showcase/enterprise-erp/src/types/attachment.ts index 786dc4dd..cd44e03d 100644 --- a/examples/showcase/enterprise-erp/src/types/attachment.ts +++ b/examples/showcase/enterprise-erp/src/types/attachment.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/crm_account.ts b/examples/showcase/enterprise-erp/src/types/crm_account.ts index 3d6b3b37..a843a883 100644 --- a/examples/showcase/enterprise-erp/src/types/crm_account.ts +++ b/examples/showcase/enterprise-erp/src/types/crm_account.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/crm_contact.ts b/examples/showcase/enterprise-erp/src/types/crm_contact.ts index 524860f4..8da15415 100644 --- a/examples/showcase/enterprise-erp/src/types/crm_contact.ts +++ b/examples/showcase/enterprise-erp/src/types/crm_contact.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/crm_lead.ts b/examples/showcase/enterprise-erp/src/types/crm_lead.ts index 2689d610..b573d118 100644 --- a/examples/showcase/enterprise-erp/src/types/crm_lead.ts +++ b/examples/showcase/enterprise-erp/src/types/crm_lead.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/crm_opportunity.ts b/examples/showcase/enterprise-erp/src/types/crm_opportunity.ts index 23e4702c..94565f74 100644 --- a/examples/showcase/enterprise-erp/src/types/crm_opportunity.ts +++ b/examples/showcase/enterprise-erp/src/types/crm_opportunity.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/finance_budget.ts b/examples/showcase/enterprise-erp/src/types/finance_budget.ts index b3da7b4d..6296350e 100644 --- a/examples/showcase/enterprise-erp/src/types/finance_budget.ts +++ b/examples/showcase/enterprise-erp/src/types/finance_budget.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/finance_expense.ts b/examples/showcase/enterprise-erp/src/types/finance_expense.ts index 57b945e8..5925958f 100644 --- a/examples/showcase/enterprise-erp/src/types/finance_expense.ts +++ b/examples/showcase/enterprise-erp/src/types/finance_expense.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/finance_invoice.ts b/examples/showcase/enterprise-erp/src/types/finance_invoice.ts index 8f2cbdee..610c0381 100644 --- a/examples/showcase/enterprise-erp/src/types/finance_invoice.ts +++ b/examples/showcase/enterprise-erp/src/types/finance_invoice.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/finance_payment.ts b/examples/showcase/enterprise-erp/src/types/finance_payment.ts index 402a43c9..3b47ee4a 100644 --- a/examples/showcase/enterprise-erp/src/types/finance_payment.ts +++ b/examples/showcase/enterprise-erp/src/types/finance_payment.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/hr_department.ts b/examples/showcase/enterprise-erp/src/types/hr_department.ts index 6703ecfe..603b2e4e 100644 --- a/examples/showcase/enterprise-erp/src/types/hr_department.ts +++ b/examples/showcase/enterprise-erp/src/types/hr_department.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/hr_employee.ts b/examples/showcase/enterprise-erp/src/types/hr_employee.ts index 07d8765a..cda306a0 100644 --- a/examples/showcase/enterprise-erp/src/types/hr_employee.ts +++ b/examples/showcase/enterprise-erp/src/types/hr_employee.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/hr_position.ts b/examples/showcase/enterprise-erp/src/types/hr_position.ts index 809d6d47..6a34539a 100644 --- a/examples/showcase/enterprise-erp/src/types/hr_position.ts +++ b/examples/showcase/enterprise-erp/src/types/hr_position.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/hr_timesheet.ts b/examples/showcase/enterprise-erp/src/types/hr_timesheet.ts index c5a54919..f6a44be2 100644 --- a/examples/showcase/enterprise-erp/src/types/hr_timesheet.ts +++ b/examples/showcase/enterprise-erp/src/types/hr_timesheet.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/index.ts b/examples/showcase/enterprise-erp/src/types/index.ts index b9010e87..dbe1a83c 100644 --- a/examples/showcase/enterprise-erp/src/types/index.ts +++ b/examples/showcase/enterprise-erp/src/types/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export * from './attachment'; export * from './organization'; export * from './user'; diff --git a/examples/showcase/enterprise-erp/src/types/note.ts b/examples/showcase/enterprise-erp/src/types/note.ts index fc1aa3b5..0de2768b 100644 --- a/examples/showcase/enterprise-erp/src/types/note.ts +++ b/examples/showcase/enterprise-erp/src/types/note.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/organization.ts b/examples/showcase/enterprise-erp/src/types/organization.ts index aac1ed21..ad215365 100644 --- a/examples/showcase/enterprise-erp/src/types/organization.ts +++ b/examples/showcase/enterprise-erp/src/types/organization.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/project_milestone.ts b/examples/showcase/enterprise-erp/src/types/project_milestone.ts index b02fdf52..e8354706 100644 --- a/examples/showcase/enterprise-erp/src/types/project_milestone.ts +++ b/examples/showcase/enterprise-erp/src/types/project_milestone.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/project_project.ts b/examples/showcase/enterprise-erp/src/types/project_project.ts index 3833d99e..b2160280 100644 --- a/examples/showcase/enterprise-erp/src/types/project_project.ts +++ b/examples/showcase/enterprise-erp/src/types/project_project.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/project_task.ts b/examples/showcase/enterprise-erp/src/types/project_task.ts index 28669e25..25b167f3 100644 --- a/examples/showcase/enterprise-erp/src/types/project_task.ts +++ b/examples/showcase/enterprise-erp/src/types/project_task.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/project_timesheet_entry.ts b/examples/showcase/enterprise-erp/src/types/project_timesheet_entry.ts index c74ca3ed..2fe92a11 100644 --- a/examples/showcase/enterprise-erp/src/types/project_timesheet_entry.ts +++ b/examples/showcase/enterprise-erp/src/types/project_timesheet_entry.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/user.ts b/examples/showcase/enterprise-erp/src/types/user.ts index a49276bf..869f06d9 100644 --- a/examples/showcase/enterprise-erp/src/types/user.ts +++ b/examples/showcase/enterprise-erp/src/types/user.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/project-tracker/__tests__/projects-hooks-actions.test.ts b/examples/showcase/project-tracker/__tests__/projects-hooks-actions.test.ts index c72c910a..a2e7dbd8 100644 --- a/examples/showcase/project-tracker/__tests__/projects-hooks-actions.test.ts +++ b/examples/showcase/project-tracker/__tests__/projects-hooks-actions.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Comprehensive Test Suite for Project Hooks and Actions * diff --git a/examples/showcase/project-tracker/jest.config.js b/examples/showcase/project-tracker/jest.config.js index 05e12b60..17d87d1d 100644 --- a/examples/showcase/project-tracker/jest.config.js +++ b/examples/showcase/project-tracker/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/examples/showcase/project-tracker/src/modules/projects/projects.action.ts b/examples/showcase/project-tracker/src/modules/projects/projects.action.ts index b0d31022..22827497 100644 --- a/examples/showcase/project-tracker/src/modules/projects/projects.action.ts +++ b/examples/showcase/project-tracker/src/modules/projects/projects.action.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ActionDefinition } from '@objectql/types'; import { Projects } from '../../types'; diff --git a/examples/showcase/project-tracker/src/modules/projects/projects.hook.ts b/examples/showcase/project-tracker/src/modules/projects/projects.hook.ts index 6a889c45..59e58d5e 100644 --- a/examples/showcase/project-tracker/src/modules/projects/projects.hook.ts +++ b/examples/showcase/project-tracker/src/modules/projects/projects.hook.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectHookDefinition } from '@objectql/types'; import { Projects } from '../../types'; diff --git a/examples/showcase/project-tracker/src/seed.ts b/examples/showcase/project-tracker/src/seed.ts index 19cdfb1e..6cc3a92b 100644 --- a/examples/showcase/project-tracker/src/seed.ts +++ b/examples/showcase/project-tracker/src/seed.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { SqlDriver } from '@objectql/driver-sql'; import { ObjectLoader } from '@objectql/platform-node'; diff --git a/examples/showcase/project-tracker/src/types/index.ts b/examples/showcase/project-tracker/src/types/index.ts index 9a7cb638..563d488e 100644 --- a/examples/showcase/project-tracker/src/types/index.ts +++ b/examples/showcase/project-tracker/src/types/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export * from './kitchen_sink'; export * from './projects'; export * from './tasks'; \ No newline at end of file diff --git a/examples/showcase/project-tracker/src/types/kitchen_sink.ts b/examples/showcase/project-tracker/src/types/kitchen_sink.ts index 92631f15..379437eb 100644 --- a/examples/showcase/project-tracker/src/types/kitchen_sink.ts +++ b/examples/showcase/project-tracker/src/types/kitchen_sink.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/project-tracker/src/types/projects.ts b/examples/showcase/project-tracker/src/types/projects.ts index 150ec96f..699d0a16 100644 --- a/examples/showcase/project-tracker/src/types/projects.ts +++ b/examples/showcase/project-tracker/src/types/projects.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/project-tracker/src/types/tasks.ts b/examples/showcase/project-tracker/src/types/tasks.ts index e9a66f7b..9c3a160f 100644 --- a/examples/showcase/project-tracker/src/types/tasks.ts +++ b/examples/showcase/project-tracker/src/types/tasks.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/jest.config.js b/jest.config.js index 1af6a26e..97c26b86 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { projects: [ '/packages/foundation/*', diff --git a/objectql.config.ts b/objectql.config.ts index 8389adef..bd0c56f1 100644 --- a/objectql.config.ts +++ b/objectql.config.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export default { datasource: { default: { diff --git a/packages/drivers/excel/jest.config.js b/packages/drivers/excel/jest.config.js index 8f1c3c1c..807a850d 100644 --- a/packages/drivers/excel/jest.config.js +++ b/packages/drivers/excel/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/drivers/excel/src/index.ts b/packages/drivers/excel/src/index.ts index 458ccc1f..03bc8c07 100644 --- a/packages/drivers/excel/src/index.ts +++ b/packages/drivers/excel/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Excel Driver for ObjectQL (Production-Ready) * diff --git a/packages/drivers/excel/test/index.test.ts b/packages/drivers/excel/test/index.test.ts index 69c89a46..44a3c211 100644 --- a/packages/drivers/excel/test/index.test.ts +++ b/packages/drivers/excel/test/index.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Excel Driver Tests * diff --git a/packages/drivers/fs/jest.config.js b/packages/drivers/fs/jest.config.js index 8f1c3c1c..807a850d 100644 --- a/packages/drivers/fs/jest.config.js +++ b/packages/drivers/fs/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/drivers/fs/src/index.ts b/packages/drivers/fs/src/index.ts index abcd7c0d..696ef5d5 100644 --- a/packages/drivers/fs/src/index.ts +++ b/packages/drivers/fs/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * File System Driver for ObjectQL (Production-Ready) * diff --git a/packages/drivers/fs/test/index.test.ts b/packages/drivers/fs/test/index.test.ts index c351cf9f..f1ca5bf3 100644 --- a/packages/drivers/fs/test/index.test.ts +++ b/packages/drivers/fs/test/index.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as path from 'path'; import { FileSystemDriver } from '../src/index'; diff --git a/packages/drivers/localstorage/jest.config.js b/packages/drivers/localstorage/jest.config.js index b24dab5a..b3740a4a 100644 --- a/packages/drivers/localstorage/jest.config.js +++ b/packages/drivers/localstorage/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'jsdom', diff --git a/packages/drivers/localstorage/src/index.ts b/packages/drivers/localstorage/src/index.ts index db1800fd..0470415d 100644 --- a/packages/drivers/localstorage/src/index.ts +++ b/packages/drivers/localstorage/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * LocalStorage Driver for ObjectQL (Production-Ready) * diff --git a/packages/drivers/localstorage/test/index.test.ts b/packages/drivers/localstorage/test/index.test.ts index 2d0d0aff..921a8843 100644 --- a/packages/drivers/localstorage/test/index.test.ts +++ b/packages/drivers/localstorage/test/index.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * LocalStorage Driver Tests * diff --git a/packages/drivers/memory/jest.config.js b/packages/drivers/memory/jest.config.js index 8f1c3c1c..807a850d 100644 --- a/packages/drivers/memory/jest.config.js +++ b/packages/drivers/memory/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/drivers/memory/src/index.ts b/packages/drivers/memory/src/index.ts index 2d5b955f..fdeb2662 100644 --- a/packages/drivers/memory/src/index.ts +++ b/packages/drivers/memory/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Memory Driver for ObjectQL (Production-Ready) * diff --git a/packages/drivers/memory/test/index.test.ts b/packages/drivers/memory/test/index.test.ts index c42414b7..0038e755 100644 --- a/packages/drivers/memory/test/index.test.ts +++ b/packages/drivers/memory/test/index.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Memory Driver Tests * diff --git a/packages/drivers/mongo/jest.config.js b/packages/drivers/mongo/jest.config.js index c57bd361..8d04c73a 100644 --- a/packages/drivers/mongo/jest.config.js +++ b/packages/drivers/mongo/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/drivers/mongo/src/index.ts b/packages/drivers/mongo/src/index.ts index 07b50ad1..c43e71a1 100644 --- a/packages/drivers/mongo/src/index.ts +++ b/packages/drivers/mongo/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Driver } from '@objectql/types'; import { MongoClient, Db, Filter, ObjectId, FindOptions } from 'mongodb'; diff --git a/packages/drivers/mongo/test/index.test.ts b/packages/drivers/mongo/test/index.test.ts index 0f837790..e0338d40 100644 --- a/packages/drivers/mongo/test/index.test.ts +++ b/packages/drivers/mongo/test/index.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { MongoDriver } from '../src'; import { MongoClient } from 'mongodb'; diff --git a/packages/drivers/mongo/test/integration.test.ts b/packages/drivers/mongo/test/integration.test.ts index 89b41320..ed16f665 100644 --- a/packages/drivers/mongo/test/integration.test.ts +++ b/packages/drivers/mongo/test/integration.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { MongoDriver } from '../src'; import { MongoClient } from 'mongodb'; import { MongoMemoryServer } from 'mongodb-memory-server'; diff --git a/packages/drivers/redis/jest.config.js b/packages/drivers/redis/jest.config.js index 8f1c3c1c..807a850d 100644 --- a/packages/drivers/redis/jest.config.js +++ b/packages/drivers/redis/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/drivers/redis/src/index.ts b/packages/drivers/redis/src/index.ts index 4ddbc061..d02bcc73 100644 --- a/packages/drivers/redis/src/index.ts +++ b/packages/drivers/redis/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Redis Driver for ObjectQL (Example Implementation) * diff --git a/packages/drivers/redis/test/index.test.ts b/packages/drivers/redis/test/index.test.ts index 6f858970..71388215 100644 --- a/packages/drivers/redis/test/index.test.ts +++ b/packages/drivers/redis/test/index.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Redis Driver Tests * diff --git a/packages/drivers/sdk/jest.config.js b/packages/drivers/sdk/jest.config.js index 2d447eaa..52aafce7 100644 --- a/packages/drivers/sdk/jest.config.js +++ b/packages/drivers/sdk/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/drivers/sdk/src/index.ts b/packages/drivers/sdk/src/index.ts index a2944d2a..9bd12bfa 100644 --- a/packages/drivers/sdk/src/index.ts +++ b/packages/drivers/sdk/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * @objectql/sdk - Universal HTTP Client for ObjectQL * diff --git a/packages/drivers/sdk/test/remote-driver.test.ts b/packages/drivers/sdk/test/remote-driver.test.ts index 32480620..55ba4502 100644 --- a/packages/drivers/sdk/test/remote-driver.test.ts +++ b/packages/drivers/sdk/test/remote-driver.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { RemoteDriver } from '../src/index'; // Mock fetch globally diff --git a/packages/drivers/sql/jest.config.js b/packages/drivers/sql/jest.config.js index c57bd361..8d04c73a 100644 --- a/packages/drivers/sql/jest.config.js +++ b/packages/drivers/sql/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/drivers/sql/src/index.ts b/packages/drivers/sql/src/index.ts index 728df8e2..f98f2986 100644 --- a/packages/drivers/sql/src/index.ts +++ b/packages/drivers/sql/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Driver, IntrospectedSchema, IntrospectedTable, IntrospectedColumn, IntrospectedForeignKey } from '@objectql/types'; import knex, { Knex } from 'knex'; diff --git a/packages/drivers/sql/test/advanced.test.ts b/packages/drivers/sql/test/advanced.test.ts index f245511c..2aa9238a 100644 --- a/packages/drivers/sql/test/advanced.test.ts +++ b/packages/drivers/sql/test/advanced.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { SqlDriver } from '../src'; describe('SqlDriver Advanced Operations (SQLite)', () => { diff --git a/packages/drivers/sql/test/index.test.ts b/packages/drivers/sql/test/index.test.ts index aa37ecda..83712227 100644 --- a/packages/drivers/sql/test/index.test.ts +++ b/packages/drivers/sql/test/index.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { SqlDriver } from '../src'; import { UnifiedQuery } from '@objectql/types'; diff --git a/packages/drivers/sql/test/introspection.test.ts b/packages/drivers/sql/test/introspection.test.ts index fd62a599..baca0409 100644 --- a/packages/drivers/sql/test/introspection.test.ts +++ b/packages/drivers/sql/test/introspection.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { SqlDriver } from '../src'; import { IntrospectedSchema } from '@objectql/types'; diff --git a/packages/drivers/sql/test/schema.test.ts b/packages/drivers/sql/test/schema.test.ts index ace3ab44..dbc8809f 100644 --- a/packages/drivers/sql/test/schema.test.ts +++ b/packages/drivers/sql/test/schema.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { SqlDriver } from '../src'; describe('SqlDriver Schema Sync (SQLite)', () => { diff --git a/packages/foundation/core/jest.config.js b/packages/foundation/core/jest.config.js index 0bf5d35a..7ba42471 100644 --- a/packages/foundation/core/jest.config.js +++ b/packages/foundation/core/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/foundation/core/src/action.ts b/packages/foundation/core/src/action.ts index 047d8c48..6703fb61 100644 --- a/packages/foundation/core/src/action.ts +++ b/packages/foundation/core/src/action.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ActionContext, ActionHandler, MetadataRegistry } from '@objectql/types'; export interface ActionEntry { diff --git a/packages/foundation/core/src/ai-agent.ts b/packages/foundation/core/src/ai-agent.ts index fb876829..7da1433b 100644 --- a/packages/foundation/core/src/ai-agent.ts +++ b/packages/foundation/core/src/ai-agent.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * ObjectQL AI Agent - Programmatic API for AI-powered application generation * diff --git a/packages/foundation/core/src/app.ts b/packages/foundation/core/src/app.ts index 7c588ef8..b8cecd37 100644 --- a/packages/foundation/core/src/app.ts +++ b/packages/foundation/core/src/app.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { MetadataRegistry, Driver, diff --git a/packages/foundation/core/src/formula-engine.ts b/packages/foundation/core/src/formula-engine.ts index 570cb4a7..6a128919 100644 --- a/packages/foundation/core/src/formula-engine.ts +++ b/packages/foundation/core/src/formula-engine.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Formula Engine Implementation * diff --git a/packages/foundation/core/src/hook.ts b/packages/foundation/core/src/hook.ts index 2e871b61..52ba241b 100644 --- a/packages/foundation/core/src/hook.ts +++ b/packages/foundation/core/src/hook.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { HookContext, HookHandler, HookName, MetadataRegistry } from '@objectql/types'; export interface HookEntry { diff --git a/packages/foundation/core/src/index.ts b/packages/foundation/core/src/index.ts index 3987d18e..0ba6aca3 100644 --- a/packages/foundation/core/src/index.ts +++ b/packages/foundation/core/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export * from './repository'; export * from './app'; diff --git a/packages/foundation/core/src/object.ts b/packages/foundation/core/src/object.ts index fc56010f..4926e225 100644 --- a/packages/foundation/core/src/object.ts +++ b/packages/foundation/core/src/object.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectConfig, MetadataRegistry } from '@objectql/types'; export function registerObjectHelper(metadata: MetadataRegistry, object: ObjectConfig) { diff --git a/packages/foundation/core/src/repository.ts b/packages/foundation/core/src/repository.ts index ac9f632c..a857a450 100644 --- a/packages/foundation/core/src/repository.ts +++ b/packages/foundation/core/src/repository.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQLContext, IObjectQL, ObjectConfig, Driver, UnifiedQuery, ActionContext, HookAPI, RetrievalHookContext, MutationHookContext, UpdateHookContext, ValidationContext, ValidationError, ValidationRuleResult, FormulaContext } from '@objectql/types'; import { Validator } from './validator'; import { FormulaEngine } from './formula-engine'; diff --git a/packages/foundation/core/src/util.ts b/packages/foundation/core/src/util.ts index 0cc6bccb..2060a74c 100644 --- a/packages/foundation/core/src/util.ts +++ b/packages/foundation/core/src/util.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectConfig, FieldConfig, FieldType, IntrospectedSchema, IntrospectedColumn, IntrospectedTable } from '@objectql/types'; export function toTitleCase(str: string): string { diff --git a/packages/foundation/core/src/validator.ts b/packages/foundation/core/src/validator.ts index 32a0ad98..0a70b858 100644 --- a/packages/foundation/core/src/validator.ts +++ b/packages/foundation/core/src/validator.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Validation engine for ObjectQL. * Executes validation rules based on metadata configuration. diff --git a/packages/foundation/core/test/action.test.ts b/packages/foundation/core/test/action.test.ts index 051a551c..b4af139a 100644 --- a/packages/foundation/core/test/action.test.ts +++ b/packages/foundation/core/test/action.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '../src'; import { MockDriver } from './mock-driver'; diff --git a/packages/foundation/core/test/app.test.ts b/packages/foundation/core/test/app.test.ts index 7966f20f..3f151f42 100644 --- a/packages/foundation/core/test/app.test.ts +++ b/packages/foundation/core/test/app.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '../src/app'; import { MockDriver } from './mock-driver'; import { ObjectConfig, ObjectQLPlugin, HookContext, ActionContext, Metadata } from '@objectql/types'; diff --git a/packages/foundation/core/test/formula-engine.test.ts b/packages/foundation/core/test/formula-engine.test.ts index 0eb304db..dbf92fda 100644 --- a/packages/foundation/core/test/formula-engine.test.ts +++ b/packages/foundation/core/test/formula-engine.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Formula Engine Tests * diff --git a/packages/foundation/core/test/formula-integration.test.ts b/packages/foundation/core/test/formula-integration.test.ts index 271ba39c..107f6f72 100644 --- a/packages/foundation/core/test/formula-integration.test.ts +++ b/packages/foundation/core/test/formula-integration.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Formula Integration Tests * diff --git a/packages/foundation/core/test/hook.test.ts b/packages/foundation/core/test/hook.test.ts index 4eb63753..17b2e63a 100644 --- a/packages/foundation/core/test/hook.test.ts +++ b/packages/foundation/core/test/hook.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '../src'; import { MockDriver } from './mock-driver'; diff --git a/packages/foundation/core/test/introspection.test.ts b/packages/foundation/core/test/introspection.test.ts index 6ef39f48..175aff40 100644 --- a/packages/foundation/core/test/introspection.test.ts +++ b/packages/foundation/core/test/introspection.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { convertIntrospectedSchemaToObjects } from '../src/util'; import { IntrospectedSchema, ObjectConfig } from '@objectql/types'; diff --git a/packages/foundation/core/test/mock-driver.ts b/packages/foundation/core/test/mock-driver.ts index 3402c71e..d7f5789e 100644 --- a/packages/foundation/core/test/mock-driver.ts +++ b/packages/foundation/core/test/mock-driver.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Driver } from '@objectql/types'; export class MockDriver implements Driver { diff --git a/packages/foundation/core/test/object.test.ts b/packages/foundation/core/test/object.test.ts index 39007932..e109d500 100644 --- a/packages/foundation/core/test/object.test.ts +++ b/packages/foundation/core/test/object.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { registerObjectHelper, getConfigsHelper } from '../src/object'; import { ObjectConfig, MetadataRegistry } from '@objectql/types'; diff --git a/packages/foundation/core/test/repository-validation.test.ts b/packages/foundation/core/test/repository-validation.test.ts index 0317788d..495f7a43 100644 --- a/packages/foundation/core/test/repository-validation.test.ts +++ b/packages/foundation/core/test/repository-validation.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '../src/index'; import { MockDriver } from './mock-driver'; import { ObjectConfig, ValidationError } from '@objectql/types'; diff --git a/packages/foundation/core/test/repository.test.ts b/packages/foundation/core/test/repository.test.ts index 09ca603e..09c43290 100644 --- a/packages/foundation/core/test/repository.test.ts +++ b/packages/foundation/core/test/repository.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '../src/index'; import { MockDriver } from './mock-driver'; import { ObjectConfig, HookContext, ObjectQLContext } from '@objectql/types'; diff --git a/packages/foundation/core/test/util.test.ts b/packages/foundation/core/test/util.test.ts index e182d3ba..85677ec7 100644 --- a/packages/foundation/core/test/util.test.ts +++ b/packages/foundation/core/test/util.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { toTitleCase, convertIntrospectedSchemaToObjects } from '../src/util'; import { IntrospectedSchema } from '@objectql/types'; diff --git a/packages/foundation/core/test/utils.ts b/packages/foundation/core/test/utils.ts index e0db1228..1ea58d56 100644 --- a/packages/foundation/core/test/utils.ts +++ b/packages/foundation/core/test/utils.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Driver } from '@objectql/types'; export class MockDriver implements Driver { diff --git a/packages/foundation/core/test/validator.test.ts b/packages/foundation/core/test/validator.test.ts index 1ec270a1..2da5ab2a 100644 --- a/packages/foundation/core/test/validator.test.ts +++ b/packages/foundation/core/test/validator.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Validator } from '../src/validator'; import { ValidationContext, diff --git a/packages/foundation/platform-node/jest.config.js b/packages/foundation/platform-node/jest.config.js index 0bf5d35a..7ba42471 100644 --- a/packages/foundation/platform-node/jest.config.js +++ b/packages/foundation/platform-node/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/foundation/platform-node/src/driver.ts b/packages/foundation/platform-node/src/driver.ts index 141d96e1..abbb029e 100644 --- a/packages/foundation/platform-node/src/driver.ts +++ b/packages/foundation/platform-node/src/driver.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Driver } from '@objectql/types'; export function createDriverFromConnection(connection: string): Driver { diff --git a/packages/foundation/platform-node/src/index.ts b/packages/foundation/platform-node/src/index.ts index dc17dc6f..2ada0c00 100644 --- a/packages/foundation/platform-node/src/index.ts +++ b/packages/foundation/platform-node/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export * from './loader'; export * from './plugin'; export * from './driver'; diff --git a/packages/foundation/platform-node/src/loader.ts b/packages/foundation/platform-node/src/loader.ts index e2131b0b..00c70614 100644 --- a/packages/foundation/platform-node/src/loader.ts +++ b/packages/foundation/platform-node/src/loader.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as glob from 'fast-glob'; import * as path from 'path'; diff --git a/packages/foundation/platform-node/src/module.ts b/packages/foundation/platform-node/src/module.ts index 17fe6634..0b667908 100644 --- a/packages/foundation/platform-node/src/module.ts +++ b/packages/foundation/platform-node/src/module.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectLoader } from './loader'; import * as path from 'path'; import * as fs from 'fs'; diff --git a/packages/foundation/platform-node/src/plugin.ts b/packages/foundation/platform-node/src/plugin.ts index 286025b7..1dab8487 100644 --- a/packages/foundation/platform-node/src/plugin.ts +++ b/packages/foundation/platform-node/src/plugin.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQLPlugin } from '@objectql/types'; export function loadPlugin(packageName: string): ObjectQLPlugin { diff --git a/packages/foundation/platform-node/test/dynamic.test.ts b/packages/foundation/platform-node/test/dynamic.test.ts index 71b8516c..9b1cdfaf 100644 --- a/packages/foundation/platform-node/test/dynamic.test.ts +++ b/packages/foundation/platform-node/test/dynamic.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { ObjectLoader } from '../src'; import * as path from 'path'; diff --git a/packages/foundation/platform-node/test/fixtures/project.action.js b/packages/foundation/platform-node/test/fixtures/project.action.js index 7be817cc..94437f2e 100644 --- a/packages/foundation/platform-node/test/fixtures/project.action.js +++ b/packages/foundation/platform-node/test/fixtures/project.action.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { listenTo: 'project', closeProject: { diff --git a/packages/foundation/platform-node/test/loader.test.ts b/packages/foundation/platform-node/test/loader.test.ts index 525dcb3a..fc782dc9 100644 --- a/packages/foundation/platform-node/test/loader.test.ts +++ b/packages/foundation/platform-node/test/loader.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { loadObjectConfigs } from '../src/loader'; import * as path from 'path'; diff --git a/packages/foundation/platform-node/test/metadata.test.ts b/packages/foundation/platform-node/test/metadata.test.ts index 653b22eb..33439ca6 100644 --- a/packages/foundation/platform-node/test/metadata.test.ts +++ b/packages/foundation/platform-node/test/metadata.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { ObjectConfig } from '@objectql/types'; import * as fs from 'fs'; diff --git a/packages/foundation/platform-node/test/validation.test.ts b/packages/foundation/platform-node/test/validation.test.ts index 6d449811..18395ed0 100644 --- a/packages/foundation/platform-node/test/validation.test.ts +++ b/packages/foundation/platform-node/test/validation.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Validator } from '@objectql/core'; import { ValidationContext, diff --git a/packages/foundation/types/jest.config.js b/packages/foundation/types/jest.config.js index 37b24d51..9cba46c6 100644 --- a/packages/foundation/types/jest.config.js +++ b/packages/foundation/types/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/foundation/types/scripts/generate-schemas.js b/packages/foundation/types/scripts/generate-schemas.js index f2233422..e83cc395 100644 --- a/packages/foundation/types/scripts/generate-schemas.js +++ b/packages/foundation/types/scripts/generate-schemas.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const { execSync } = require('child_process'); const path = require('path'); const fs = require('fs'); diff --git a/packages/foundation/types/src/action.ts b/packages/foundation/types/src/action.ts index 5055447f..efa908fd 100644 --- a/packages/foundation/types/src/action.ts +++ b/packages/foundation/types/src/action.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { FieldConfig } from "./field"; import { HookAPI } from "./hook"; // Reuse the restricted API interface diff --git a/packages/foundation/types/src/api.ts b/packages/foundation/types/src/api.ts index d9190786..978f036c 100644 --- a/packages/foundation/types/src/api.ts +++ b/packages/foundation/types/src/api.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * API Type Definitions for ObjectQL * diff --git a/packages/foundation/types/src/app.ts b/packages/foundation/types/src/app.ts index 4b16318b..fd258a95 100644 --- a/packages/foundation/types/src/app.ts +++ b/packages/foundation/types/src/app.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectConfig } from "./object"; import { Driver } from "./driver"; import { MetadataRegistry } from "./registry"; diff --git a/packages/foundation/types/src/application.ts b/packages/foundation/types/src/application.ts index 03e94fee..76f26747 100644 --- a/packages/foundation/types/src/application.ts +++ b/packages/foundation/types/src/application.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export interface AppConfig { /** * Unique identifier for the application diff --git a/packages/foundation/types/src/config.ts b/packages/foundation/types/src/config.ts index 92875f58..0a2fec1d 100644 --- a/packages/foundation/types/src/config.ts +++ b/packages/foundation/types/src/config.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { MetadataRegistry } from "./registry"; import { Driver } from "./driver"; import { ObjectConfig } from "./object"; diff --git a/packages/foundation/types/src/context.ts b/packages/foundation/types/src/context.ts index ed829001..b6b9632f 100644 --- a/packages/foundation/types/src/context.ts +++ b/packages/foundation/types/src/context.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IObjectRepository } from './repository'; export interface ObjectQLContext { diff --git a/packages/foundation/types/src/driver.ts b/packages/foundation/types/src/driver.ts index c6052a03..be60958d 100644 --- a/packages/foundation/types/src/driver.ts +++ b/packages/foundation/types/src/driver.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Column metadata from database introspection. */ diff --git a/packages/foundation/types/src/field.ts b/packages/foundation/types/src/field.ts index 4e5eae76..ee3f5d80 100644 --- a/packages/foundation/types/src/field.ts +++ b/packages/foundation/types/src/field.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { FieldValidation, ValidationAiContext } from './validation'; /** diff --git a/packages/foundation/types/src/form.ts b/packages/foundation/types/src/form.ts index da74919f..cc7714d2 100644 --- a/packages/foundation/types/src/form.ts +++ b/packages/foundation/types/src/form.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Form Metadata Definition * diff --git a/packages/foundation/types/src/formula.ts b/packages/foundation/types/src/formula.ts index 0372acab..c7d105c4 100644 --- a/packages/foundation/types/src/formula.ts +++ b/packages/foundation/types/src/formula.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Formula Engine Types * diff --git a/packages/foundation/types/src/hook.ts b/packages/foundation/types/src/hook.ts index eb0d9a78..10da3c6c 100644 --- a/packages/foundation/types/src/hook.ts +++ b/packages/foundation/types/src/hook.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { UnifiedQuery } from "./query"; /** diff --git a/packages/foundation/types/src/index.ts b/packages/foundation/types/src/index.ts index d18eeef9..7cb938a2 100644 --- a/packages/foundation/types/src/index.ts +++ b/packages/foundation/types/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export * from './field'; export * from './object'; export * from './driver'; diff --git a/packages/foundation/types/src/loader.ts b/packages/foundation/types/src/loader.ts index 51ef5b00..57c946e5 100644 --- a/packages/foundation/types/src/loader.ts +++ b/packages/foundation/types/src/loader.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { MetadataRegistry } from './registry'; export interface LoaderHandlerContext { diff --git a/packages/foundation/types/src/menu.ts b/packages/foundation/types/src/menu.ts index e357c18f..9b0a8d62 100644 --- a/packages/foundation/types/src/menu.ts +++ b/packages/foundation/types/src/menu.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export type MenuType = 'sidebar' | 'topnav' | 'context' | 'mobile' | 'admin'; export type MenuItemType = 'page' | 'section' | 'url' | 'folder' | 'object' | 'action'; diff --git a/packages/foundation/types/src/migration.ts b/packages/foundation/types/src/migration.ts index 8004ce17..5ea72d7b 100644 --- a/packages/foundation/types/src/migration.ts +++ b/packages/foundation/types/src/migration.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { FieldConfig } from './field'; /** diff --git a/packages/foundation/types/src/object.ts b/packages/foundation/types/src/object.ts index 5cd5e1b7..7756be42 100644 --- a/packages/foundation/types/src/object.ts +++ b/packages/foundation/types/src/object.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { FieldConfig } from './field'; import { ActionConfig } from './action'; import { AnyValidationRule } from './validation'; diff --git a/packages/foundation/types/src/page.ts b/packages/foundation/types/src/page.ts index 67997f65..56b6637a 100644 --- a/packages/foundation/types/src/page.ts +++ b/packages/foundation/types/src/page.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Page Metadata Definition * diff --git a/packages/foundation/types/src/permission.ts b/packages/foundation/types/src/permission.ts index 4ae5c58c..97d9711d 100644 --- a/packages/foundation/types/src/permission.ts +++ b/packages/foundation/types/src/permission.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Permission and Security Metadata Types * diff --git a/packages/foundation/types/src/plugin.ts b/packages/foundation/types/src/plugin.ts index 734c9354..7a07484e 100644 --- a/packages/foundation/types/src/plugin.ts +++ b/packages/foundation/types/src/plugin.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IObjectQL } from './app'; export interface ObjectQLPlugin { diff --git a/packages/foundation/types/src/query.ts b/packages/foundation/types/src/query.ts index 6efa9627..15addcd1 100644 --- a/packages/foundation/types/src/query.ts +++ b/packages/foundation/types/src/query.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export type FilterCriterion = [string, string, any]; export type FilterExpression = FilterCriterion | 'and' | 'or' | FilterExpression[]; diff --git a/packages/foundation/types/src/registry.ts b/packages/foundation/types/src/registry.ts index f46ad950..e26fd365 100644 --- a/packages/foundation/types/src/registry.ts +++ b/packages/foundation/types/src/registry.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export interface Metadata { type: string; id: string; diff --git a/packages/foundation/types/src/report.ts b/packages/foundation/types/src/report.ts index 52d2b2e1..40321284 100644 --- a/packages/foundation/types/src/report.ts +++ b/packages/foundation/types/src/report.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Report Metadata Definition * diff --git a/packages/foundation/types/src/repository.ts b/packages/foundation/types/src/repository.ts index 861f072e..98162309 100644 --- a/packages/foundation/types/src/repository.ts +++ b/packages/foundation/types/src/repository.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { UnifiedQuery } from "./query"; export interface IObjectRepository { diff --git a/packages/foundation/types/src/validation.ts b/packages/foundation/types/src/validation.ts index 75875537..5397bb18 100644 --- a/packages/foundation/types/src/validation.ts +++ b/packages/foundation/types/src/validation.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Validation system types based on the validation metadata specification. * These types define the structure for metadata-driven validation rules. diff --git a/packages/foundation/types/src/view.ts b/packages/foundation/types/src/view.ts index ec498697..8ea72165 100644 --- a/packages/foundation/types/src/view.ts +++ b/packages/foundation/types/src/view.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * View Metadata Definition * diff --git a/packages/foundation/types/src/workflow.ts b/packages/foundation/types/src/workflow.ts index 3f40c7ab..ee6d09cc 100644 --- a/packages/foundation/types/src/workflow.ts +++ b/packages/foundation/types/src/workflow.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Workflow and Automation Metadata Definition * diff --git a/packages/foundation/types/test/registry.test.ts b/packages/foundation/types/test/registry.test.ts index 184b3a16..dae41051 100644 --- a/packages/foundation/types/test/registry.test.ts +++ b/packages/foundation/types/test/registry.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { MetadataRegistry, Metadata } from '../src/registry'; describe('MetadataRegistry', () => { diff --git a/packages/runtime/server/jest.config.js b/packages/runtime/server/jest.config.js index e0abf1df..4130ab3f 100644 --- a/packages/runtime/server/jest.config.js +++ b/packages/runtime/server/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/runtime/server/src/adapters/graphql.ts b/packages/runtime/server/src/adapters/graphql.ts index f575a7c3..d79521be 100644 --- a/packages/runtime/server/src/adapters/graphql.ts +++ b/packages/runtime/server/src/adapters/graphql.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IObjectQL, ObjectConfig, FieldConfig } from '@objectql/types'; import { ObjectQLServer } from '../server'; import { ErrorCode } from '../types'; diff --git a/packages/runtime/server/src/adapters/node.ts b/packages/runtime/server/src/adapters/node.ts index 6a4930ac..3542d580 100644 --- a/packages/runtime/server/src/adapters/node.ts +++ b/packages/runtime/server/src/adapters/node.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IObjectQL, ApiRouteConfig, resolveApiRoutes } from '@objectql/types'; import { ObjectQLServer } from '../server'; import { ObjectQLRequest, ErrorCode, IFileStorage } from '../types'; diff --git a/packages/runtime/server/src/adapters/rest.ts b/packages/runtime/server/src/adapters/rest.ts index 7c4c65d6..d0396320 100644 --- a/packages/runtime/server/src/adapters/rest.ts +++ b/packages/runtime/server/src/adapters/rest.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IObjectQL, ApiRouteConfig, resolveApiRoutes } from '@objectql/types'; import { ObjectQLServer } from '../server'; import { ObjectQLRequest, ErrorCode } from '../types'; diff --git a/packages/runtime/server/src/file-handler.ts b/packages/runtime/server/src/file-handler.ts index a6f1a7c2..03846347 100644 --- a/packages/runtime/server/src/file-handler.ts +++ b/packages/runtime/server/src/file-handler.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IncomingMessage, ServerResponse } from 'http'; import { IFileStorage, AttachmentData, ErrorCode } from './types'; import { IObjectQL, FieldConfig } from '@objectql/types'; diff --git a/packages/runtime/server/src/index.ts b/packages/runtime/server/src/index.ts index de49a20d..b91676ba 100644 --- a/packages/runtime/server/src/index.ts +++ b/packages/runtime/server/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export * from './types'; export * from './utils'; export * from './openapi'; diff --git a/packages/runtime/server/src/metadata.ts b/packages/runtime/server/src/metadata.ts index f481d854..66e07834 100644 --- a/packages/runtime/server/src/metadata.ts +++ b/packages/runtime/server/src/metadata.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IObjectQL, ApiRouteConfig, resolveApiRoutes } from '@objectql/types'; import { IncomingMessage, ServerResponse } from 'http'; import { ErrorCode } from './types'; diff --git a/packages/runtime/server/src/openapi.ts b/packages/runtime/server/src/openapi.ts index 7af2f663..e122295d 100644 --- a/packages/runtime/server/src/openapi.ts +++ b/packages/runtime/server/src/openapi.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IObjectQL, ObjectConfig, FieldConfig, ApiRouteConfig, resolveApiRoutes } from '@objectql/types'; interface OpenAPISchema { diff --git a/packages/runtime/server/src/server.ts b/packages/runtime/server/src/server.ts index 57a65f43..732672df 100644 --- a/packages/runtime/server/src/server.ts +++ b/packages/runtime/server/src/server.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IObjectQL, ObjectQLContext } from '@objectql/types'; import { ObjectQLRequest, ObjectQLResponse, ErrorCode } from './types'; diff --git a/packages/runtime/server/src/storage.ts b/packages/runtime/server/src/storage.ts index dfa0498e..5f5d2bef 100644 --- a/packages/runtime/server/src/storage.ts +++ b/packages/runtime/server/src/storage.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { IFileStorage, AttachmentData, FileStorageOptions } from './types'; import * as fs from 'fs'; import * as path from 'path'; diff --git a/packages/runtime/server/src/templates.ts b/packages/runtime/server/src/templates.ts index adb50f0e..647d8b99 100644 --- a/packages/runtime/server/src/templates.ts +++ b/packages/runtime/server/src/templates.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export function getWelcomePageHtml(routes: { rpc: string; data: string; }) { return ` diff --git a/packages/runtime/server/src/types.ts b/packages/runtime/server/src/types.ts index 36c4c36f..49be18b3 100644 --- a/packages/runtime/server/src/types.ts +++ b/packages/runtime/server/src/types.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // src/types.ts /** diff --git a/packages/runtime/server/src/utils.ts b/packages/runtime/server/src/utils.ts index 9cb60281..88163a35 100644 --- a/packages/runtime/server/src/utils.ts +++ b/packages/runtime/server/src/utils.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Utility functions for server operations */ diff --git a/packages/runtime/server/test/custom-routes.test.ts b/packages/runtime/server/test/custom-routes.test.ts index 19273370..c904aa4e 100644 --- a/packages/runtime/server/test/custom-routes.test.ts +++ b/packages/runtime/server/test/custom-routes.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Tests for Custom API Route Configuration * diff --git a/packages/runtime/server/test/file-upload-integration.example.ts b/packages/runtime/server/test/file-upload-integration.example.ts index 09017c4f..f19a6c42 100644 --- a/packages/runtime/server/test/file-upload-integration.example.ts +++ b/packages/runtime/server/test/file-upload-integration.example.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Integration Test Example for File Upload/Download * diff --git a/packages/runtime/server/test/file-validation.test.ts b/packages/runtime/server/test/file-validation.test.ts index a2f78d4e..8e129cbb 100644 --- a/packages/runtime/server/test/file-validation.test.ts +++ b/packages/runtime/server/test/file-validation.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { validateFile } from '../src/file-handler'; import { FieldConfig } from '@objectql/types'; diff --git a/packages/runtime/server/test/graphql.test.ts b/packages/runtime/server/test/graphql.test.ts index 560060b3..23170233 100644 --- a/packages/runtime/server/test/graphql.test.ts +++ b/packages/runtime/server/test/graphql.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import request from 'supertest'; import { createServer } from 'http'; import { ObjectQL } from '@objectql/core'; diff --git a/packages/runtime/server/test/integration-example.ts b/packages/runtime/server/test/integration-example.ts index 1bd85c5a..f4151a6e 100644 --- a/packages/runtime/server/test/integration-example.ts +++ b/packages/runtime/server/test/integration-example.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + /** * Integration Example: Demonstrates the new standardized API response format * diff --git a/packages/runtime/server/test/metadata.test.ts b/packages/runtime/server/test/metadata.test.ts index ee653ac7..5889f348 100644 --- a/packages/runtime/server/test/metadata.test.ts +++ b/packages/runtime/server/test/metadata.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { createMetadataHandler } from '../src/metadata'; import { ObjectQL } from '@objectql/core'; import { IncomingMessage, ServerResponse } from 'http'; diff --git a/packages/runtime/server/test/node.test.ts b/packages/runtime/server/test/node.test.ts index 7d22c8f0..6201d137 100644 --- a/packages/runtime/server/test/node.test.ts +++ b/packages/runtime/server/test/node.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import request from 'supertest'; import { createServer } from 'http'; import { ObjectQL } from '@objectql/core'; diff --git a/packages/runtime/server/test/openapi.test.ts b/packages/runtime/server/test/openapi.test.ts index 09c04832..522a1cf3 100644 --- a/packages/runtime/server/test/openapi.test.ts +++ b/packages/runtime/server/test/openapi.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { generateOpenAPI } from '../src/openapi'; import { ObjectQL } from '@objectql/core'; import { ObjectConfig } from '@objectql/types'; diff --git a/packages/runtime/server/test/rest-advanced.test.ts b/packages/runtime/server/test/rest-advanced.test.ts index 2d051177..39b1df6d 100644 --- a/packages/runtime/server/test/rest-advanced.test.ts +++ b/packages/runtime/server/test/rest-advanced.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import request from 'supertest'; import { createServer } from 'http'; import { ObjectQL } from '@objectql/core'; diff --git a/packages/runtime/server/test/rest.test.ts b/packages/runtime/server/test/rest.test.ts index f682f9f0..c3afcff6 100644 --- a/packages/runtime/server/test/rest.test.ts +++ b/packages/runtime/server/test/rest.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import request from 'supertest'; import { createServer } from 'http'; import { ObjectQL } from '@objectql/core'; diff --git a/packages/runtime/server/test/storage.test.ts b/packages/runtime/server/test/storage.test.ts index 34cd80b6..30c1f5d8 100644 --- a/packages/runtime/server/test/storage.test.ts +++ b/packages/runtime/server/test/storage.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { MemoryFileStorage } from '../src/storage'; import { AttachmentData } from '../src/types'; diff --git a/packages/tools/cli/__tests__/commands.test.ts b/packages/tools/cli/__tests__/commands.test.ts index a1866dd0..61fa748f 100644 --- a/packages/tools/cli/__tests__/commands.test.ts +++ b/packages/tools/cli/__tests__/commands.test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as path from 'path'; import { newMetadata } from '../src/commands/new'; diff --git a/packages/tools/cli/jest.config.js b/packages/tools/cli/jest.config.js index f39e15c5..c08103fc 100644 --- a/packages/tools/cli/jest.config.js +++ b/packages/tools/cli/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/tools/cli/src/commands/ai.ts b/packages/tools/cli/src/commands/ai.ts index 85f4d096..7c55b58c 100644 --- a/packages/tools/cli/src/commands/ai.ts +++ b/packages/tools/cli/src/commands/ai.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as path from 'path'; import * as yaml from 'js-yaml'; diff --git a/packages/tools/cli/src/commands/build.ts b/packages/tools/cli/src/commands/build.ts index 13ae87c2..4b479d1a 100644 --- a/packages/tools/cli/src/commands/build.ts +++ b/packages/tools/cli/src/commands/build.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { ObjectLoader } from '@objectql/platform-node'; import { generateTypes } from './generate'; diff --git a/packages/tools/cli/src/commands/database-push.ts b/packages/tools/cli/src/commands/database-push.ts index fb09ed97..f9463479 100644 --- a/packages/tools/cli/src/commands/database-push.ts +++ b/packages/tools/cli/src/commands/database-push.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import chalk from 'chalk'; interface DbPushOptions { diff --git a/packages/tools/cli/src/commands/dev.ts b/packages/tools/cli/src/commands/dev.ts index d2e366df..18d75bed 100644 --- a/packages/tools/cli/src/commands/dev.ts +++ b/packages/tools/cli/src/commands/dev.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { serve } from './serve'; import { generateTypes } from './generate'; import chalk from 'chalk'; diff --git a/packages/tools/cli/src/commands/doctor.ts b/packages/tools/cli/src/commands/doctor.ts index 58d27366..9c25cfa0 100644 --- a/packages/tools/cli/src/commands/doctor.ts +++ b/packages/tools/cli/src/commands/doctor.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import chalk from 'chalk'; export async function doctorCommand() { diff --git a/packages/tools/cli/src/commands/format.ts b/packages/tools/cli/src/commands/format.ts index c14e72d2..9c4c78ec 100644 --- a/packages/tools/cli/src/commands/format.ts +++ b/packages/tools/cli/src/commands/format.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as path from 'path'; import * as fs from 'fs'; import chalk from 'chalk'; diff --git a/packages/tools/cli/src/commands/generate.ts b/packages/tools/cli/src/commands/generate.ts index 208ba704..e40d7787 100644 --- a/packages/tools/cli/src/commands/generate.ts +++ b/packages/tools/cli/src/commands/generate.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as path from 'path'; import { loadObjectConfigs } from '@objectql/platform-node'; diff --git a/packages/tools/cli/src/commands/i18n.ts b/packages/tools/cli/src/commands/i18n.ts index a8ba67b1..f07bd85f 100644 --- a/packages/tools/cli/src/commands/i18n.ts +++ b/packages/tools/cli/src/commands/i18n.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as path from 'path'; import chalk from 'chalk'; diff --git a/packages/tools/cli/src/commands/init.ts b/packages/tools/cli/src/commands/init.ts index d7264fe5..1cca3c9c 100644 --- a/packages/tools/cli/src/commands/init.ts +++ b/packages/tools/cli/src/commands/init.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as path from 'path'; import { exec } from 'child_process'; diff --git a/packages/tools/cli/src/commands/lint.ts b/packages/tools/cli/src/commands/lint.ts index 596f8869..ba8f18d8 100644 --- a/packages/tools/cli/src/commands/lint.ts +++ b/packages/tools/cli/src/commands/lint.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { ObjectLoader } from '@objectql/platform-node'; import { ObjectConfig, FieldConfig } from '@objectql/types'; diff --git a/packages/tools/cli/src/commands/migrate.ts b/packages/tools/cli/src/commands/migrate.ts index 8875ca5f..f0bfc007 100644 --- a/packages/tools/cli/src/commands/migrate.ts +++ b/packages/tools/cli/src/commands/migrate.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as path from 'path'; import chalk from 'chalk'; diff --git a/packages/tools/cli/src/commands/new.ts b/packages/tools/cli/src/commands/new.ts index 49b7ecac..6983f27a 100644 --- a/packages/tools/cli/src/commands/new.ts +++ b/packages/tools/cli/src/commands/new.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as path from 'path'; import chalk from 'chalk'; diff --git a/packages/tools/cli/src/commands/repl.ts b/packages/tools/cli/src/commands/repl.ts index 0fb35394..5e9e26b0 100644 --- a/packages/tools/cli/src/commands/repl.ts +++ b/packages/tools/cli/src/commands/repl.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as repl from 'repl'; import * as path from 'path'; import * as fs from 'fs'; diff --git a/packages/tools/cli/src/commands/serve.ts b/packages/tools/cli/src/commands/serve.ts index 9b9a9d78..0504b5c4 100644 --- a/packages/tools/cli/src/commands/serve.ts +++ b/packages/tools/cli/src/commands/serve.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { SqlDriver } from '@objectql/driver-sql'; import { ObjectLoader, loadModules } from '@objectql/platform-node'; diff --git a/packages/tools/cli/src/commands/start.ts b/packages/tools/cli/src/commands/start.ts index 8712dd7e..f1b063b9 100644 --- a/packages/tools/cli/src/commands/start.ts +++ b/packages/tools/cli/src/commands/start.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { ObjectQL } from '@objectql/core'; import { SqlDriver } from '@objectql/driver-sql'; import { ObjectLoader, loadModules } from '@objectql/platform-node'; diff --git a/packages/tools/cli/src/commands/sync.ts b/packages/tools/cli/src/commands/sync.ts index adefe3c5..0bf0de1e 100644 --- a/packages/tools/cli/src/commands/sync.ts +++ b/packages/tools/cli/src/commands/sync.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as fs from 'fs'; import * as path from 'path'; import chalk from 'chalk'; diff --git a/packages/tools/cli/src/commands/test.ts b/packages/tools/cli/src/commands/test.ts index 98e8ebf8..a28817a9 100644 --- a/packages/tools/cli/src/commands/test.ts +++ b/packages/tools/cli/src/commands/test.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as path from 'path'; import * as fs from 'fs'; import chalk from 'chalk'; diff --git a/packages/tools/cli/src/index.ts b/packages/tools/cli/src/index.ts index 306920f9..84af142c 100644 --- a/packages/tools/cli/src/index.ts +++ b/packages/tools/cli/src/index.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Command } from 'commander'; import { registerLifecycleCommands } from './register/lifecycle'; import { registerScaffoldCommands } from './register/scaffold'; diff --git a/packages/tools/cli/src/register/ai.ts b/packages/tools/cli/src/register/ai.ts index 32e3d232..4f69572e 100644 --- a/packages/tools/cli/src/register/ai.ts +++ b/packages/tools/cli/src/register/ai.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Command } from 'commander'; import { aiGenerate, aiChat } from '../commands/ai'; diff --git a/packages/tools/cli/src/register/database.ts b/packages/tools/cli/src/register/database.ts index 8a8387c6..02136394 100644 --- a/packages/tools/cli/src/register/database.ts +++ b/packages/tools/cli/src/register/database.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Command } from 'commander'; import { syncDatabase } from '../commands/sync'; import { dbPushCommand } from '../commands/database-push'; diff --git a/packages/tools/cli/src/register/i18n.ts b/packages/tools/cli/src/register/i18n.ts index c772f321..ce37e11d 100644 --- a/packages/tools/cli/src/register/i18n.ts +++ b/packages/tools/cli/src/register/i18n.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Command } from 'commander'; import { i18nExtract, i18nInit, i18nValidate } from '../commands/i18n'; diff --git a/packages/tools/cli/src/register/lifecycle.ts b/packages/tools/cli/src/register/lifecycle.ts index 7434e808..e9892e30 100644 --- a/packages/tools/cli/src/register/lifecycle.ts +++ b/packages/tools/cli/src/register/lifecycle.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Command } from 'commander'; import chalk from 'chalk'; import { dev } from '../commands/dev'; diff --git a/packages/tools/cli/src/register/scaffold.ts b/packages/tools/cli/src/register/scaffold.ts index 562120d1..472cb7e8 100644 --- a/packages/tools/cli/src/register/scaffold.ts +++ b/packages/tools/cli/src/register/scaffold.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Command } from 'commander'; import chalk from 'chalk'; import { generateTypes } from '../commands/generate'; diff --git a/packages/tools/cli/src/register/tools.ts b/packages/tools/cli/src/register/tools.ts index 0a90d710..a1e7775a 100644 --- a/packages/tools/cli/src/register/tools.ts +++ b/packages/tools/cli/src/register/tools.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { Command } from 'commander'; import { doctorCommand, validateCommand } from '../commands/doctor'; import { startRepl } from '../commands/repl'; diff --git a/packages/tools/create/jest.config.js b/packages/tools/create/jest.config.js index 967b2400..6f00ff5e 100644 --- a/packages/tools/create/jest.config.js +++ b/packages/tools/create/jest.config.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + module.exports = { preset: 'ts-jest', testEnvironment: 'node', diff --git a/packages/tools/create/scripts/copy-templates.js b/packages/tools/create/scripts/copy-templates.js index 5142d9b2..11cabc0f 100644 --- a/packages/tools/create/scripts/copy-templates.js +++ b/packages/tools/create/scripts/copy-templates.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fs = require('fs-extra'); const path = require('path'); diff --git a/packages/tools/create/src/bin.ts b/packages/tools/create/src/bin.ts index dcab8f04..f1942131 100644 --- a/packages/tools/create/src/bin.ts +++ b/packages/tools/create/src/bin.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + #!/usr/bin/env node import { Command } from 'commander'; import * as path from 'path'; diff --git a/packages/tools/vscode-objectql/esbuild.js b/packages/tools/vscode-objectql/esbuild.js index df93737d..357c5f2b 100644 --- a/packages/tools/vscode-objectql/esbuild.js +++ b/packages/tools/vscode-objectql/esbuild.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const esbuild = require("esbuild"); const production = process.argv.includes('--production'); diff --git a/packages/tools/vscode-objectql/out/extension.d.ts b/packages/tools/vscode-objectql/out/extension.d.ts index 16b935fc..f2c32ca7 100644 --- a/packages/tools/vscode-objectql/out/extension.d.ts +++ b/packages/tools/vscode-objectql/out/extension.d.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as vscode from 'vscode'; /** * Extension activation function diff --git a/packages/tools/vscode-objectql/out/extension.js b/packages/tools/vscode-objectql/out/extension.js index e07f3846..2a6c68e4 100644 --- a/packages/tools/vscode-objectql/out/extension.js +++ b/packages/tools/vscode-objectql/out/extension.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; diff --git a/packages/tools/vscode-objectql/src/commands/createFile.ts b/packages/tools/vscode-objectql/src/commands/createFile.ts index 6a3e62d2..57c4977b 100644 --- a/packages/tools/vscode-objectql/src/commands/createFile.ts +++ b/packages/tools/vscode-objectql/src/commands/createFile.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; diff --git a/packages/tools/vscode-objectql/src/commands/validate.ts b/packages/tools/vscode-objectql/src/commands/validate.ts index 3fc3dd2a..6632f8dc 100644 --- a/packages/tools/vscode-objectql/src/commands/validate.ts +++ b/packages/tools/vscode-objectql/src/commands/validate.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as vscode from 'vscode'; import * as path from 'path'; diff --git a/packages/tools/vscode-objectql/src/extension.ts b/packages/tools/vscode-objectql/src/extension.ts index d0d6352c..76be81e6 100644 --- a/packages/tools/vscode-objectql/src/extension.ts +++ b/packages/tools/vscode-objectql/src/extension.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as vscode from 'vscode'; import { createNewFile } from './commands/createFile'; import { validateCurrentFile } from './commands/validate'; diff --git a/packages/tools/vscode-objectql/src/providers/ObjectCompletionProvider.ts b/packages/tools/vscode-objectql/src/providers/ObjectCompletionProvider.ts index 86839b77..cd56f51d 100644 --- a/packages/tools/vscode-objectql/src/providers/ObjectCompletionProvider.ts +++ b/packages/tools/vscode-objectql/src/providers/ObjectCompletionProvider.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as vscode from 'vscode'; import { ObjectIndex } from '../services/ObjectIndex'; diff --git a/packages/tools/vscode-objectql/src/providers/ObjectDefinitionProvider.ts b/packages/tools/vscode-objectql/src/providers/ObjectDefinitionProvider.ts index 2f858ad9..3c71e8b9 100644 --- a/packages/tools/vscode-objectql/src/providers/ObjectDefinitionProvider.ts +++ b/packages/tools/vscode-objectql/src/providers/ObjectDefinitionProvider.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as vscode from 'vscode'; import { ObjectIndex } from '../services/ObjectIndex'; diff --git a/packages/tools/vscode-objectql/src/services/ObjectIndex.ts b/packages/tools/vscode-objectql/src/services/ObjectIndex.ts index 27a77956..89866aaf 100644 --- a/packages/tools/vscode-objectql/src/services/ObjectIndex.ts +++ b/packages/tools/vscode-objectql/src/services/ObjectIndex.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; diff --git a/packages/tools/vscode-objectql/src/utils/constants.ts b/packages/tools/vscode-objectql/src/utils/constants.ts index a9b30aec..8c572f61 100644 --- a/packages/tools/vscode-objectql/src/utils/constants.ts +++ b/packages/tools/vscode-objectql/src/utils/constants.ts @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + // Export a simple namespace or constants if needed export const SCHEMES = { FILE: 'file', diff --git a/scripts/add-license-headers.js b/scripts/add-license-headers.js new file mode 100755 index 00000000..655d92a2 --- /dev/null +++ b/scripts/add-license-headers.js @@ -0,0 +1,132 @@ +#!/usr/bin/env node + +/** + * Script to add MIT license headers to all source files in the ObjectQL project. + * + * This script: + * 1. Recursively finds all .ts, .js, .tsx, .jsx, .vue files + * 2. Excludes node_modules, dist, build, .git, coverage directories + * 3. Checks if files already have license headers (prevents duplicates) + * 4. Adds MIT license header at the top of files without it + */ + +const fs = require('fs'); +const path = require('path'); + +// License header template +const LICENSE_HEADER = `/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +`; + +// Directories to exclude from traversal +const EXCLUDED_DIRS = new Set(['node_modules', 'dist', 'build', '.git', 'coverage']); + +// File extensions to process +const TARGET_EXTENSIONS = new Set(['.ts', '.js', '.tsx', '.jsx', '.vue']); + +/** + * Check if a file already has a license header + * @param {string} content - File content + * @returns {boolean} - True if file has "Copyright" or "License" in first 10 lines + */ +function hasLicenseHeader(content) { + const lines = content.split('\n').slice(0, 10); + const firstTenLines = lines.join('\n').toLowerCase(); + return firstTenLines.includes('copyright') || firstTenLines.includes('license'); +} + +/** + * Recursively find all target files in a directory + * @param {string} dir - Directory to search + * @param {string[]} files - Array to collect file paths + */ +function findTargetFiles(dir, files = []) { + const entries = fs.readdirSync(dir, { withFileTypes: true }); + + for (const entry of entries) { + const fullPath = path.join(dir, entry.name); + + if (entry.isDirectory()) { + // Skip excluded directories + if (!EXCLUDED_DIRS.has(entry.name)) { + findTargetFiles(fullPath, files); + } + } else if (entry.isFile()) { + const ext = path.extname(entry.name); + if (TARGET_EXTENSIONS.has(ext)) { + files.push(fullPath); + } + } + } + + return files; +} + +/** + * Add license header to a file + * @param {string} filePath - Path to the file + * @returns {boolean} - True if header was added, false if skipped + */ +function addLicenseHeader(filePath) { + try { + const content = fs.readFileSync(filePath, 'utf8'); + + // Check if file already has a license header + if (hasLicenseHeader(content)) { + return false; + } + + // Add license header at the top + const newContent = LICENSE_HEADER + content; + fs.writeFileSync(filePath, newContent, 'utf8'); + return true; + } catch (error) { + console.error(`Error processing ${filePath}:`, error.message); + return false; + } +} + +/** + * Main execution function + */ +function main() { + const rootDir = path.resolve(__dirname, '..'); + + console.log('🔍 Searching for source files...'); + const files = findTargetFiles(rootDir); + console.log(`📄 Found ${files.length} source files\n`); + + let processedCount = 0; + let skippedCount = 0; + + console.log('⚙️ Processing files...\n'); + + for (const file of files) { + const relativePath = path.relative(rootDir, file); + const added = addLicenseHeader(file); + + if (added) { + console.log(`✅ Added header: ${relativePath}`); + processedCount++; + } else { + console.log(`⏭️ Skipped (has header): ${relativePath}`); + skippedCount++; + } + } + + console.log('\n' + '='.repeat(60)); + console.log(`✨ Complete!`); + console.log(` Added headers: ${processedCount}`); + console.log(` Skipped (already has header): ${skippedCount}`); + console.log(` Total files: ${files.length}`); + console.log('='.repeat(60)); +} + +// Run the script +main(); diff --git a/scripts/check-versions.js b/scripts/check-versions.js index 1eab34ae..bf8073e8 100644 --- a/scripts/check-versions.js +++ b/scripts/check-versions.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const fs = require('fs'); const path = require('path'); diff --git a/scripts/validate-yaml.js b/scripts/validate-yaml.js index f666ef84..dc42b61e 100755 --- a/scripts/validate-yaml.js +++ b/scripts/validate-yaml.js @@ -1,3 +1,11 @@ +/** + * ObjectQL + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + #!/usr/bin/env node /** * Validate YAML syntax for ObjectQL metadata files From 0dbbd1ef1b9b5bb5a84c5cefa6aecf2cba885402 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 04:18:45 +0000 Subject: [PATCH 3/6] Initial plan From 89d7d35b4d01ecc2e5e71055042a1a89fad4fff2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 04:23:24 +0000 Subject: [PATCH 4/6] Fix: Move shebang to first line in bin.ts The MIT license header was added above the shebang in bin.ts, causing TypeScript compilation errors. Shebangs must be on line 1. Fixes build error: TS18026 - '#!' can only be used at the start of a file. Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com> --- .../enterprise-erp/src/types/attachment.ts | 8 - .../enterprise-erp/src/types/crm_account.ts | 8 - .../enterprise-erp/src/types/crm_contact.ts | 8 - .../enterprise-erp/src/types/crm_lead.ts | 8 - .../src/types/crm_opportunity.ts | 8 - .../src/types/finance_budget.ts | 8 - .../src/types/finance_expense.ts | 8 - .../src/types/finance_invoice.ts | 8 - .../src/types/finance_payment.ts | 8 - .../enterprise-erp/src/types/hr_department.ts | 8 - .../enterprise-erp/src/types/hr_employee.ts | 8 - .../enterprise-erp/src/types/hr_position.ts | 8 - .../enterprise-erp/src/types/hr_timesheet.ts | 8 - .../enterprise-erp/src/types/index.ts | 8 - .../showcase/enterprise-erp/src/types/note.ts | 8 - .../enterprise-erp/src/types/organization.ts | 8 - .../src/types/project_milestone.ts | 8 - .../src/types/project_project.ts | 8 - .../enterprise-erp/src/types/project_task.ts | 8 - .../src/types/project_timesheet_entry.ts | 8 - .../showcase/enterprise-erp/src/types/user.ts | 8 - .../project-tracker/src/types/index.ts | 8 - .../project-tracker/src/types/kitchen_sink.ts | 8 - .../project-tracker/src/types/projects.ts | 8 - .../project-tracker/src/types/tasks.ts | 8 - .../foundation/types/schemas/app.schema.json | 1 + .../foundation/types/schemas/menu.schema.json | 1 + packages/tools/create/src/bin.ts | 3 +- .../tools/vscode-objectql/out/extension.d.ts | 1 - .../vscode-objectql/out/extension.d.ts.map | 2 +- .../tools/vscode-objectql/out/extension.js | 150 +++--------------- .../vscode-objectql/out/extension.js.map | 2 +- 32 files changed, 25 insertions(+), 335 deletions(-) diff --git a/examples/showcase/enterprise-erp/src/types/attachment.ts b/examples/showcase/enterprise-erp/src/types/attachment.ts index cd44e03d..786dc4dd 100644 --- a/examples/showcase/enterprise-erp/src/types/attachment.ts +++ b/examples/showcase/enterprise-erp/src/types/attachment.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/crm_account.ts b/examples/showcase/enterprise-erp/src/types/crm_account.ts index a843a883..3d6b3b37 100644 --- a/examples/showcase/enterprise-erp/src/types/crm_account.ts +++ b/examples/showcase/enterprise-erp/src/types/crm_account.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/crm_contact.ts b/examples/showcase/enterprise-erp/src/types/crm_contact.ts index 8da15415..524860f4 100644 --- a/examples/showcase/enterprise-erp/src/types/crm_contact.ts +++ b/examples/showcase/enterprise-erp/src/types/crm_contact.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/crm_lead.ts b/examples/showcase/enterprise-erp/src/types/crm_lead.ts index b573d118..2689d610 100644 --- a/examples/showcase/enterprise-erp/src/types/crm_lead.ts +++ b/examples/showcase/enterprise-erp/src/types/crm_lead.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/crm_opportunity.ts b/examples/showcase/enterprise-erp/src/types/crm_opportunity.ts index 94565f74..23e4702c 100644 --- a/examples/showcase/enterprise-erp/src/types/crm_opportunity.ts +++ b/examples/showcase/enterprise-erp/src/types/crm_opportunity.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/finance_budget.ts b/examples/showcase/enterprise-erp/src/types/finance_budget.ts index 6296350e..b3da7b4d 100644 --- a/examples/showcase/enterprise-erp/src/types/finance_budget.ts +++ b/examples/showcase/enterprise-erp/src/types/finance_budget.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/finance_expense.ts b/examples/showcase/enterprise-erp/src/types/finance_expense.ts index 5925958f..57b945e8 100644 --- a/examples/showcase/enterprise-erp/src/types/finance_expense.ts +++ b/examples/showcase/enterprise-erp/src/types/finance_expense.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/finance_invoice.ts b/examples/showcase/enterprise-erp/src/types/finance_invoice.ts index 610c0381..8f2cbdee 100644 --- a/examples/showcase/enterprise-erp/src/types/finance_invoice.ts +++ b/examples/showcase/enterprise-erp/src/types/finance_invoice.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/finance_payment.ts b/examples/showcase/enterprise-erp/src/types/finance_payment.ts index 3b47ee4a..402a43c9 100644 --- a/examples/showcase/enterprise-erp/src/types/finance_payment.ts +++ b/examples/showcase/enterprise-erp/src/types/finance_payment.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/hr_department.ts b/examples/showcase/enterprise-erp/src/types/hr_department.ts index 603b2e4e..6703ecfe 100644 --- a/examples/showcase/enterprise-erp/src/types/hr_department.ts +++ b/examples/showcase/enterprise-erp/src/types/hr_department.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/hr_employee.ts b/examples/showcase/enterprise-erp/src/types/hr_employee.ts index cda306a0..07d8765a 100644 --- a/examples/showcase/enterprise-erp/src/types/hr_employee.ts +++ b/examples/showcase/enterprise-erp/src/types/hr_employee.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/hr_position.ts b/examples/showcase/enterprise-erp/src/types/hr_position.ts index 6a34539a..809d6d47 100644 --- a/examples/showcase/enterprise-erp/src/types/hr_position.ts +++ b/examples/showcase/enterprise-erp/src/types/hr_position.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/hr_timesheet.ts b/examples/showcase/enterprise-erp/src/types/hr_timesheet.ts index f6a44be2..c5a54919 100644 --- a/examples/showcase/enterprise-erp/src/types/hr_timesheet.ts +++ b/examples/showcase/enterprise-erp/src/types/hr_timesheet.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/index.ts b/examples/showcase/enterprise-erp/src/types/index.ts index dbe1a83c..b9010e87 100644 --- a/examples/showcase/enterprise-erp/src/types/index.ts +++ b/examples/showcase/enterprise-erp/src/types/index.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - export * from './attachment'; export * from './organization'; export * from './user'; diff --git a/examples/showcase/enterprise-erp/src/types/note.ts b/examples/showcase/enterprise-erp/src/types/note.ts index 0de2768b..fc1aa3b5 100644 --- a/examples/showcase/enterprise-erp/src/types/note.ts +++ b/examples/showcase/enterprise-erp/src/types/note.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/organization.ts b/examples/showcase/enterprise-erp/src/types/organization.ts index ad215365..aac1ed21 100644 --- a/examples/showcase/enterprise-erp/src/types/organization.ts +++ b/examples/showcase/enterprise-erp/src/types/organization.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/project_milestone.ts b/examples/showcase/enterprise-erp/src/types/project_milestone.ts index e8354706..b02fdf52 100644 --- a/examples/showcase/enterprise-erp/src/types/project_milestone.ts +++ b/examples/showcase/enterprise-erp/src/types/project_milestone.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/project_project.ts b/examples/showcase/enterprise-erp/src/types/project_project.ts index b2160280..3833d99e 100644 --- a/examples/showcase/enterprise-erp/src/types/project_project.ts +++ b/examples/showcase/enterprise-erp/src/types/project_project.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/project_task.ts b/examples/showcase/enterprise-erp/src/types/project_task.ts index 25b167f3..28669e25 100644 --- a/examples/showcase/enterprise-erp/src/types/project_task.ts +++ b/examples/showcase/enterprise-erp/src/types/project_task.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/project_timesheet_entry.ts b/examples/showcase/enterprise-erp/src/types/project_timesheet_entry.ts index 2fe92a11..c74ca3ed 100644 --- a/examples/showcase/enterprise-erp/src/types/project_timesheet_entry.ts +++ b/examples/showcase/enterprise-erp/src/types/project_timesheet_entry.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/enterprise-erp/src/types/user.ts b/examples/showcase/enterprise-erp/src/types/user.ts index 869f06d9..a49276bf 100644 --- a/examples/showcase/enterprise-erp/src/types/user.ts +++ b/examples/showcase/enterprise-erp/src/types/user.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/project-tracker/src/types/index.ts b/examples/showcase/project-tracker/src/types/index.ts index 563d488e..9a7cb638 100644 --- a/examples/showcase/project-tracker/src/types/index.ts +++ b/examples/showcase/project-tracker/src/types/index.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - export * from './kitchen_sink'; export * from './projects'; export * from './tasks'; \ No newline at end of file diff --git a/examples/showcase/project-tracker/src/types/kitchen_sink.ts b/examples/showcase/project-tracker/src/types/kitchen_sink.ts index 379437eb..92631f15 100644 --- a/examples/showcase/project-tracker/src/types/kitchen_sink.ts +++ b/examples/showcase/project-tracker/src/types/kitchen_sink.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/project-tracker/src/types/projects.ts b/examples/showcase/project-tracker/src/types/projects.ts index 699d0a16..150ec96f 100644 --- a/examples/showcase/project-tracker/src/types/projects.ts +++ b/examples/showcase/project-tracker/src/types/projects.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/examples/showcase/project-tracker/src/types/tasks.ts b/examples/showcase/project-tracker/src/types/tasks.ts index 9c3a160f..e9a66f7b 100644 --- a/examples/showcase/project-tracker/src/types/tasks.ts +++ b/examples/showcase/project-tracker/src/types/tasks.ts @@ -1,11 +1,3 @@ -/** - * ObjectQL - * Copyright (c) 2026-present ObjectStack Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Auto-generated by ObjectQL. DO NOT EDIT. import { ObjectDoc } from '@objectql/types'; diff --git a/packages/foundation/types/schemas/app.schema.json b/packages/foundation/types/schemas/app.schema.json index 753c5e85..706d04e2 100644 --- a/packages/foundation/types/schemas/app.schema.json +++ b/packages/foundation/types/schemas/app.schema.json @@ -6,6 +6,7 @@ "additionalProperties": { "description": "Custom metadata/settings" }, + "description": "ObjectQL Copyright (c) 2026-present ObjectStack Inc.\n\nThis source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.", "properties": { "description": { "description": "Description of what this application does", diff --git a/packages/foundation/types/schemas/menu.schema.json b/packages/foundation/types/schemas/menu.schema.json index e1932fe2..828e9bb9 100644 --- a/packages/foundation/types/schemas/menu.schema.json +++ b/packages/foundation/types/schemas/menu.schema.json @@ -116,6 +116,7 @@ "type": "string" }, "MenuType": { + "description": "ObjectQL Copyright (c) 2026-present ObjectStack Inc.\n\nThis source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.", "enum": [ "sidebar", "topnav", diff --git a/packages/tools/create/src/bin.ts b/packages/tools/create/src/bin.ts index f1942131..3244e46b 100644 --- a/packages/tools/create/src/bin.ts +++ b/packages/tools/create/src/bin.ts @@ -1,3 +1,4 @@ +#!/usr/bin/env node /** * ObjectQL * Copyright (c) 2026-present ObjectStack Inc. @@ -5,8 +6,6 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ - -#!/usr/bin/env node import { Command } from 'commander'; import * as path from 'path'; import * as fs from 'fs-extra'; diff --git a/packages/tools/vscode-objectql/out/extension.d.ts b/packages/tools/vscode-objectql/out/extension.d.ts index f2c32ca7..3ebfae60 100644 --- a/packages/tools/vscode-objectql/out/extension.d.ts +++ b/packages/tools/vscode-objectql/out/extension.d.ts @@ -5,7 +5,6 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ - import * as vscode from 'vscode'; /** * Extension activation function diff --git a/packages/tools/vscode-objectql/out/extension.d.ts.map b/packages/tools/vscode-objectql/out/extension.d.ts.map index 99035f1c..096bcdaf 100644 --- a/packages/tools/vscode-objectql/out/extension.d.ts.map +++ b/packages/tools/vscode-objectql/out/extension.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAIjC;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,gBAAgB,QAiBxD;AAED;;GAEG;AACH,wBAAgB,UAAU,SAEzB"} \ No newline at end of file +{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAUjC;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,gBAAgB,QA+BxD;AAED;;GAEG;AACH,wBAAgB,UAAU,SAKzB"} \ No newline at end of file diff --git a/packages/tools/vscode-objectql/out/extension.js b/packages/tools/vscode-objectql/out/extension.js index 2a6c68e4..f8a4a148 100644 --- a/packages/tools/vscode-objectql/out/extension.js +++ b/packages/tools/vscode-objectql/out/extension.js @@ -1,3 +1,4 @@ +"use strict"; /** * ObjectQL * Copyright (c) 2026-present ObjectStack Inc. @@ -5,8 +6,6 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ - -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -44,16 +43,28 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.activate = activate; exports.deactivate = deactivate; const vscode = __importStar(require("vscode")); -const path = __importStar(require("path")); -const fs = __importStar(require("fs")); +const createFile_1 = require("./commands/createFile"); +const validate_1 = require("./commands/validate"); +const ObjectIndex_1 = require("./services/ObjectIndex"); +const ObjectDefinitionProvider_1 = require("./providers/ObjectDefinitionProvider"); +const ObjectCompletionProvider_1 = require("./providers/ObjectCompletionProvider"); +const constants_1 = require("./utils/constants"); +let objectIndex; /** * Extension activation function * Called when VSCode activates the extension */ function activate(context) { console.log('ObjectQL extension is now active!'); - // Register commands - context.subscriptions.push(vscode.commands.registerCommand('objectql.newObject', () => createNewFile(context, 'object')), vscode.commands.registerCommand('objectql.newValidation', () => createNewFile(context, 'validation')), vscode.commands.registerCommand('objectql.newPermission', () => createNewFile(context, 'permission')), vscode.commands.registerCommand('objectql.newApp', () => createNewFile(context, 'app')), vscode.commands.registerCommand('objectql.validateSchema', validateCurrentFile)); + // Initialize Services + objectIndex = new ObjectIndex_1.ObjectIndex(); + // Register Commands + context.subscriptions.push(vscode.commands.registerCommand('objectql.newObject', () => (0, createFile_1.createNewFile)(context, 'object')), vscode.commands.registerCommand('objectql.newValidation', () => (0, createFile_1.createNewFile)(context, 'validation')), vscode.commands.registerCommand('objectql.newPermission', () => (0, createFile_1.createNewFile)(context, 'permission')), vscode.commands.registerCommand('objectql.newWorkflow', () => (0, createFile_1.createNewFile)(context, 'workflow')), vscode.commands.registerCommand('objectql.validateSchema', validate_1.validateCurrentFile)); + // Register Providers + const selector = { language: constants_1.LANGUAGES.YAML, scheme: constants_1.SCHEMES.FILE }; + context.subscriptions.push(vscode.languages.registerDefinitionProvider(selector, new ObjectDefinitionProvider_1.ObjectDefinitionProvider(objectIndex)), vscode.languages.registerCompletionItemProvider(selector, new ObjectCompletionProvider_1.ObjectCompletionProvider(objectIndex), ' ')); + // Clean up + context.subscriptions.push(objectIndex); // Show welcome message on first activation const hasShownWelcome = context.globalState.get('objectql.hasShownWelcome', false); if (!hasShownWelcome) { @@ -64,122 +75,10 @@ function activate(context) { * Extension deactivation function */ function deactivate() { - console.log('ObjectQL extension is now deactivated'); -} -/** - * Create a new ObjectQL file from template - */ -async function createNewFile(context, fileType) { - const workspaceFolder = vscode.workspace.workspaceFolders?.[0]; - if (!workspaceFolder) { - vscode.window.showErrorMessage('Please open a workspace folder first'); - return; - } - // Prompt for filename - const fileName = await vscode.window.showInputBox({ - prompt: `Enter ${fileType} name (without extension)`, - placeHolder: `my_${fileType}`, - validateInput: (value) => { - if (!value) { - return 'Name cannot be empty'; - } - if (!/^[a-z_][a-z0-9_]*$/.test(value)) { - return 'Name must start with lowercase letter or underscore and contain only lowercase letters, numbers, and underscores'; - } - return null; - } - }); - if (!fileName) { - return; - } - // Determine file path - // Guess the location based on standard folder structure - let folder = 'src'; - if (fileType === 'object') { - folder = 'src/objects'; - } - else if (fileType === 'app') { - folder = 'src'; - } - const fullFileName = `${fileName}.${fileType}.yml`; - const defaultPath = path.join(workspaceFolder.uri.fsPath, folder, fullFileName); - // Get template content - const template = getTemplate(context, fileType, fileName); - try { - // Ensure directory exists - const dir = path.dirname(defaultPath); - if (!fs.existsSync(dir)) { - fs.mkdirSync(dir, { recursive: true }); - } - // Check if file already exists - if (fs.existsSync(defaultPath)) { - const overwrite = await vscode.window.showWarningMessage(`File ${fullFileName} already exists. Overwrite?`, 'Yes', 'No'); - if (overwrite !== 'Yes') { - return; - } - } - // Write file - fs.writeFileSync(defaultPath, template, 'utf8'); - // Open file - const document = await vscode.workspace.openTextDocument(defaultPath); - await vscode.window.showTextDocument(document); - vscode.window.showInformationMessage(`Created ${fullFileName}`); - } - catch (error) { - vscode.window.showErrorMessage(`Failed to create file: ${error}`); - } -} -/** - * Get template content for file type from template files - */ -function getTemplate(context, fileType, name) { - try { - // Check if we are running from 'out' or 'src' - // Usually extension path is the root of the package. - let templatePath = path.join(context.extensionPath, 'src', 'templates', `${fileType}.template.yml`); - // Fallback if not found (maybe flattened or in out) - if (!fs.existsSync(templatePath)) { - templatePath = path.join(context.extensionPath, 'out', 'templates', `${fileType}.template.yml`); - } - if (fs.existsSync(templatePath)) { - let content = fs.readFileSync(templatePath, 'utf8'); - content = content.replace(/{{name}}/g, name); - content = content.replace(/{{label}}/g, capitalizeWords(name)); - return content; - } - // Fallback to hardcoded string if file read fails (Safety net) - console.warn(`Template file not found at ${templatePath}, utilizing fallback.`); - return getFallbackTemplate(fileType, name); - } - catch (e) { - console.error('Error reading template:', e); - return getFallbackTemplate(fileType, name); - } -} -function getFallbackTemplate(fileType, name) { - // Minimal fallback - return `# ${capitalizeWords(name)} ${fileType}\nname: ${name}\n`; -} -/** - * Validate current file by saving (triggers schema validation) - */ -async function validateCurrentFile() { - const editor = vscode.window.activeTextEditor; - if (!editor) { - vscode.window.showWarningMessage('No active editor'); - return; - } - const document = editor.document; - const fileName = path.basename(document.fileName); - // Check if it's an ObjectQL file - const objectqlFilePattern = /\.(object|validation|permission|app)\.(yml|yaml)$/; - if (!objectqlFilePattern.test(fileName)) { - vscode.window.showWarningMessage('This is not an ObjectQL metadata file'); - return; + if (objectIndex) { + objectIndex.dispose(); } - // Trigger validation by saving - await document.save(); - vscode.window.showInformationMessage('Validation complete. Check Problems panel for issues.'); + console.log('ObjectQL extension is now deactivated'); } /** * Show welcome message @@ -195,13 +94,4 @@ function showWelcomeMessage(context) { }); context.globalState.update('objectql.hasShownWelcome', true); } -/** - * Capitalize words for display names - */ -function capitalizeWords(str) { - return str - .split('_') - .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()) - .join(' '); -} //# sourceMappingURL=extension.js.map \ No newline at end of file diff --git a/packages/tools/vscode-objectql/out/extension.js.map b/packages/tools/vscode-objectql/out/extension.js.map index 5d9f70d8..78764320 100644 --- a/packages/tools/vscode-objectql/out/extension.js.map +++ b/packages/tools/vscode-objectql/out/extension.js.map @@ -1 +1 @@ -{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"extension.js","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"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"} \ No newline at end of file From 6ee70c45ada5be2ca12b06e44429c63fb4c57cc9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 05:07:59 +0000 Subject: [PATCH 5/6] Initial plan From 79ebdeaf1e0df330c0923cca1eb3c707da37f30b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 05:10:41 +0000 Subject: [PATCH 6/6] fix: remove misplaced shebang from validate-yaml.js The shebang #!/usr/bin/env node was on line 9 instead of line 1, causing a SyntaxError when the script was executed with 'node' explicitly. Since the workflow uses 'pnpm exec node scripts/validate-yaml.js', the shebang is not needed and has been removed. Fixes workflow run: https://github.com/objectstack-ai/objectql/actions/runs/21106340992 Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com> --- scripts/validate-yaml.js | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/validate-yaml.js b/scripts/validate-yaml.js index dc42b61e..50d8d76e 100755 --- a/scripts/validate-yaml.js +++ b/scripts/validate-yaml.js @@ -6,7 +6,6 @@ * LICENSE file in the root directory of this source tree. */ -#!/usr/bin/env node /** * Validate YAML syntax for ObjectQL metadata files *