diff --git a/src/putility/index.js b/src/putility/index.js index 82497c7df..497771669 100644 --- a/src/putility/index.js +++ b/src/putility/index.js @@ -1,21 +1,7 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + const { AdvancedBase } = require('./src/AdvancedBase'); const { Service } = require('./src/concepts/Service'); const { ServiceManager } = require('./src/system/ServiceManager'); diff --git a/src/putility/src/AdvancedBase.js b/src/putility/src/AdvancedBase.js index 59c0bdc01..c5e448bc8 100644 --- a/src/putility/src/AdvancedBase.js +++ b/src/putility/src/AdvancedBase.js @@ -1,21 +1,7 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + // This doesn't go in ./bases because it logically depends on // both ./bases and ./traits, and ./traits depends on ./bases. diff --git a/src/putility/src/PosixError.js b/src/putility/src/PosixError.js index 2e53aefe3..27e6baa5b 100644 --- a/src/putility/src/PosixError.js +++ b/src/putility/src/PosixError.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ const ErrorCodes = { diff --git a/src/putility/src/bases/BasicBase.js b/src/putility/src/bases/BasicBase.js index c64de9c90..2d6d9f603 100644 --- a/src/putility/src/bases/BasicBase.js +++ b/src/putility/src/bases/BasicBase.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ /** diff --git a/src/putility/src/bases/FeatureBase.js b/src/putility/src/bases/FeatureBase.js index 1d1dc6ba0..be38cc6a0 100644 --- a/src/putility/src/bases/FeatureBase.js +++ b/src/putility/src/bases/FeatureBase.js @@ -1,21 +1,7 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + const { BasicBase } = require("./BasicBase"); class FeatureBase extends BasicBase { diff --git a/src/putility/src/concepts/Service.js b/src/putility/src/concepts/Service.js index 5c5a42e6e..55371f1bb 100644 --- a/src/putility/src/concepts/Service.js +++ b/src/putility/src/concepts/Service.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ const { AdvancedBase } = require("../AdvancedBase"); diff --git a/src/putility/src/features/EmitterFeature.js b/src/putility/src/features/EmitterFeature.js index 45b5dcc65..1ce32c3b9 100644 --- a/src/putility/src/features/EmitterFeature.js +++ b/src/putility/src/features/EmitterFeature.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ /** diff --git a/src/putility/src/features/NariMethodsFeature.js b/src/putility/src/features/NariMethodsFeature.js index 5ddc5e8ad..c2d575d6a 100644 --- a/src/putility/src/features/NariMethodsFeature.js +++ b/src/putility/src/features/NariMethodsFeature.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ module.exports = { diff --git a/src/putility/src/features/NodeModuleDIFeature.js b/src/putility/src/features/NodeModuleDIFeature.js index b0fe5bed8..717151558 100644 --- a/src/putility/src/features/NodeModuleDIFeature.js +++ b/src/putility/src/features/NodeModuleDIFeature.js @@ -1,21 +1,7 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + /** * This trait allows dependency injection of node modules. * This is incredibly useful for passing mock implementations diff --git a/src/putility/src/features/PropertiesFeature.js b/src/putility/src/features/PropertiesFeature.js index d6299dba7..acd3f1601 100644 --- a/src/putility/src/features/PropertiesFeature.js +++ b/src/putility/src/features/PropertiesFeature.js @@ -1,21 +1,7 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + module.exports = { name: 'Properties', depends: ['Listeners'], diff --git a/src/putility/src/features/ServiceFeature.js b/src/putility/src/features/ServiceFeature.js index eb4c808a9..e831e2f09 100644 --- a/src/putility/src/features/ServiceFeature.js +++ b/src/putility/src/features/ServiceFeature.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ const { TTopics } = require("../traits/traits"); diff --git a/src/putility/src/features/TopicsFeature.js b/src/putility/src/features/TopicsFeature.js index c44a28a33..a6d28bd3d 100644 --- a/src/putility/src/features/TopicsFeature.js +++ b/src/putility/src/features/TopicsFeature.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ const { RemoveFromArrayDetachable } = require("../libs/listener"); diff --git a/src/putility/src/features/TraitsFeature.js b/src/putility/src/features/TraitsFeature.js index 3350c2eb9..e86daec24 100644 --- a/src/putility/src/features/TraitsFeature.js +++ b/src/putility/src/features/TraitsFeature.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ module.exports = { diff --git a/src/putility/src/libs/context.js b/src/putility/src/libs/context.js index 05e549911..1e5356b18 100644 --- a/src/putility/src/libs/context.js +++ b/src/putility/src/libs/context.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ /** diff --git a/src/putility/src/libs/event.js b/src/putility/src/libs/event.js index 2be1a7d8e..3009b8f79 100644 --- a/src/putility/src/libs/event.js +++ b/src/putility/src/libs/event.js @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2024-present Puter Technologies Inc. + */ + const { AdvancedBase } = require("../AdvancedBase"); const EmitterFeature = require("../features/EmitterFeature"); diff --git a/src/putility/src/libs/invoker.js b/src/putility/src/libs/invoker.js index 7f0891f74..f407af84a 100644 --- a/src/putility/src/libs/invoker.js +++ b/src/putility/src/libs/invoker.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ const { AdvancedBase } = require("../.."); diff --git a/src/putility/src/libs/listener.js b/src/putility/src/libs/listener.js index 3ac6cb26d..89ace5b40 100644 --- a/src/putility/src/libs/listener.js +++ b/src/putility/src/libs/listener.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ const { FeatureBase } = require("../bases/FeatureBase"); diff --git a/src/putility/src/libs/log.js b/src/putility/src/libs/log.js index 198f85e7a..dffaba0a9 100644 --- a/src/putility/src/libs/log.js +++ b/src/putility/src/libs/log.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ const { AdvancedBase } = require("../AdvancedBase"); diff --git a/src/putility/src/libs/promise.js b/src/putility/src/libs/promise.js index b839daa5f..b3edddbb7 100644 --- a/src/putility/src/libs/promise.js +++ b/src/putility/src/libs/promise.js @@ -1,21 +1,7 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + class TeePromise { static STATUS_PENDING = Symbol('pending'); static STATUS_RUNNING = {}; diff --git a/src/putility/src/libs/smol.js b/src/putility/src/libs/smol.js index 2e48002a6..750e61b03 100644 --- a/src/putility/src/libs/smol.js +++ b/src/putility/src/libs/smol.js @@ -1,21 +1,7 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + // All of these utilities are trivial and just make the code look nicer. class SmolUtil { // Array coercion diff --git a/src/putility/src/libs/string.js b/src/putility/src/libs/string.js index 3b2f19831..85403c759 100644 --- a/src/putility/src/libs/string.js +++ b/src/putility/src/libs/string.js @@ -1,21 +1,7 @@ // METADATA // {"def":"core.util.strutil","ai-params":{"service":"claude"},"ai-commented":{"service":"claude"}} + /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ /*eslint no-control-regex: 'off'*/ diff --git a/src/putility/src/libs/time.js b/src/putility/src/libs/time.js index 7d1b87636..4083341d3 100644 --- a/src/putility/src/libs/time.js +++ b/src/putility/src/libs/time.js @@ -1,21 +1,7 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ + class TimeUnit { static valueOf () { return this.value; diff --git a/src/putility/src/system/ServiceManager.js b/src/putility/src/system/ServiceManager.js index 8cf24b921..4597df72f 100644 --- a/src/putility/src/system/ServiceManager.js +++ b/src/putility/src/system/ServiceManager.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ const { AdvancedBase } = require('../AdvancedBase'); diff --git a/src/putility/src/traits/traits.js b/src/putility/src/traits/traits.js index e0d441155..56a8f21d9 100644 --- a/src/putility/src/traits/traits.js +++ b/src/putility/src/traits/traits.js @@ -1,20 +1,5 @@ /* * Copyright (C) 2024-present Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . */ module.exports = {