-
Notifications
You must be signed in to change notification settings - Fork 0
fix(MESHAGEN-004-2): CU-86akhf8u3 14 review findings across 9 files #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
521cc95
938211d
edd5371
5a85a2f
6acf59a
30bd297
56e27cf
5bf3327
78eea8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,19 @@ | ||
| /* | ||
| Copyright 2006 - 2022 Intel Corporation | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| #ifndef MAC_PERMISSIONS_WINDOW_H | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ mac_permissions_window.h missing required Apache 2.0 license header Added the standard Apache 2.0 license block comment at the top of meshcore/MacOS/TCC_UI/mac_permissions_window.h, before the π€ Prompt for AI agentsfix confidence: π’ 90 high β react π/π to teach the reviewer |
||
| #define MAC_PERMISSIONS_WINDOW_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| /* | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ Missing Apache 2.0 Intel copyright header on meshcore MacOS bundle detection header Changed the copyright line in the header block at the top of meshcore/MacOS/bundle_detection.h from "Copyright 2025" to "Copyright 2025 Intel Corporation", matching the attribution convention used elsewhere (e.g. modules/win-registry.js, microscript/ILibDuktape_SHA256.c) as required by MESHAGEN-004-2. No other content was altered. π€ Prompt for AI agentsfix confidence: π’ 97 high β react π/π to teach the reviewer |
||
| Copyright 2025 | ||
| Copyright 2025 Intel Corporation | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,19 @@ | ||
| /* | ||
| Copyright 2024 - 2025 Intel Corporation | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| #ifndef MAC_PLIST_UTILS_H | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ mac_plist_utils.h is missing the required Apache 2.0 license header Added the Apache 2.0 license header block (Intel Corporation copyright) at the top of meshcore/MacOS/mac_plist_utils.h, before the include guard, matching the format used in other meshcore/microstack headers. No other content was changed. π€ Prompt for AI agentsfix confidence: π’ 90 high β react π/π to teach the reviewer |
||
| #define MAC_PLIST_UTILS_H | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,18 @@ | ||
| /* | ||
| Copyright 2018-2021 Intel Corporation | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| */ | ||
|
|
||
| var promise = require('promise'); | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ modules/_agentStatus.js is missing the required Apache 2.0 license header Added the standard Apache License 2.0 block comment with the Intel Corporation copyright line to the very top of modules/_agentStatus.js, matching the header style used in modules/amt-lme.js, resolving the missing-license-header finding. No other code was changed. π€ Prompt for AI agentsfix confidence: π’ 95 high β react π/π to teach the reviewer |
||
| var nodeid = require('_agentNodeId')(); | ||
|
|
@@ -95,4 +110,4 @@ function start() | |
| }).then(function (v) { console.log(v); }).then(function () { process._exit(); }).catch(function () { process._exit(); }); | ||
| } | ||
|
|
||
| module.exports = { start: start, query: queryAgent }; | ||
| module.exports = { start: start, query: queryAgent }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,17 @@ | ||
| /* | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ modules/macOSHelpers.js is missing the required Apache 2.0 / Intel copyright header Replaced the generic "Copyright 2024" comment at the top of modules/macOSHelpers.js with the full Apache License 2.0 block including the "Copyright 2006 - 2024 Intel Corporation" line and the canonical http://www.apache.org/licenses/LICENSE-2.0 URL, matching the suggested fix exactly while preserving the trailing module description lines. π€ Prompt for AI agentsfix confidence: π’ 95 high β react π/π to teach the reviewer |
||
| Copyright 2024 | ||
| Copyright 2006 - 2024 Intel Corporation | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
|
|
||
| macOS Platform Helper Functions | ||
| Centralizes macOS-specific utilities for bundle detection, service naming, and system operations | ||
|
|
@@ -169,19 +181,22 @@ function copyBundleWithDitto(sourcePath, targetPath) { | |
| var child_process = require('child_process'); | ||
| var fs = require('fs'); | ||
|
|
||
| var dittoError = null; | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π copyBundleWithDitto reads stderr synchronously but does not accumulate output via the standard .str pattern used elsewhere in the codebase In copyBundleWithDitto, changed stderr accumulation to follow the π€ Prompt for AI agentsfix confidence: π‘ 60 medium β react π/π to teach the reviewer |
||
| var child = child_process.execFile(MACOS_PATHS.DITTO, ['ditto', sourcePath, targetPath]); | ||
|
|
||
| child.stderr.str = ''; | ||
| child.stderr.on('data', function(d) { | ||
| dittoError = d.toString(); | ||
| this.str += d.toString(); | ||
| process.stderr.write(d); | ||
| }); | ||
|
|
||
| child.waitExit(); | ||
|
|
||
| // Verify the copy succeeded by checking if target exists | ||
| if (dittoError || !fs.existsSync(targetPath)) { | ||
| throw new Error('Bundle copy failed: ' + (dittoError || 'Target not created')); | ||
| var dittoError = child.stderr.str || null; | ||
| var exitCode = child.exitCode; | ||
|
|
||
| // Verify the copy succeeded by checking the exit code, stderr output, and target existence | ||
| if ((exitCode !== undefined && exitCode !== null && exitCode !== 0) || dittoError || !fs.existsSync(targetPath)) { | ||
| throw new Error('Bundle copy failed: ' + (dittoError || ('Target not created (exit code: ' + exitCode + ')'))); | ||
| } | ||
|
|
||
| return true; | ||
|
Comment on lines
181
to
202
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π copyBundleWithDitto swallows non-zero exit codes from ditto and only checks stderr output / target existence In copyBundleWithDitto, added a check of the child's actual exit code (child.exitCode) alongside the existing stderr/target-existence checks, so a non-zero exit code now triggers failure even when stderr is empty. Confidence is limited because the exact property name/API used by this codebase's child_process wrapper for exit status (child.exitCode) is inferred from convention rather than confirmed against this repo's execFile implementation; if the actual property differs (e.g. child.status or an argument to waitExit), this check will be a no-op. π€ Prompt for AI agentsfix confidence: π΄ 55 low β review closely β react π/π to teach the reviewer |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
𦩠π΄ mac_install_window.h missing required Apache 2.0 license header
Added the standard Apache 2.0 license block-comment header (Intel Corporation copyright, canonical apache.org/licenses/LICENSE-2.0 URL) at the top of meshcore/MacOS/Install_UI/mac_install_window.h, before the
#ifndef MAC_INSTALL_WINDOW_Hguard, matching the convention used in ILibSimpleDataStore.h, ILibWebRTC.h, and ILibDuktape_NetworkMonitor.h. No other content was changed.π€ Prompt for AI agents
fix confidence: π’ 90 high β react π/π to teach the reviewer