Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packagedef
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Описание.Имя("httpbin")
Описание.Имя("httpbin")
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Unintended BOM character detected.

A UTF-8 Byte Order Mark (U+FEFF) appears before Описание.Имя("httpbin"). BOMs can cause parsing errors in some interpreters and are generally unnecessary in UTF-8 files.

Verify whether the oscript interpreter tolerates BOMs in packagedef files:


🏁 Script executed:

#!/bin/bash
# Check if other packagedef files in the repository contain BOMs
fd -e packagedef -x file {} \; | grep -i "bom"

# Check the actual byte sequence at the start of the file
head -c 10 packagedef | od -A x -t x1z -v

Length of output: 40


🏁 Script executed:

#!/bin/bash
# Verify BOM presence in 'packagedef' and any other files named 'packagedef' using Python
python3 - << 'EOF'
import glob, os
def has_bom(path):
    with open(path, 'rb') as f:
        return f.read(3) == b'\xef\xbb\xbf'

# Check main file
main = 'packagedef'
print(f"{main}: BOM present: {has_bom(main)}")

# Check other files named 'packagedef'
for f in glob.glob('**/packagedef', recursive=True):
    if os.path.abspath(f) != os.path.abspath(main):
        print(f"{f}: BOM present: {has_bom(f)}")
EOF

Length of output: 175


🏁 Script executed:

#!/bin/bash
# Verify BOM presence in 'packagedef' and any other files named 'packagedef' using Python
python3 - << 'EOF'
import glob, os
def has_bom(path):
    with open(path, 'rb') as f:
        return f.read(3) == b'\xef\xbb\xbf'

files = glob.glob('**/packagedef', recursive=True) + ['packagedef']
checked = set()
for path in files:
    real = os.path.abspath(path)
    if real in checked or not os.path.isfile(path):
        continue
    checked.add(real)
    print(f"{path}: BOM present: {has_bom(path)}")
EOF

Length of output: 29


Remove UTF-8 BOM from packagedef

A UTF-8 Byte Order Mark was detected at the start of packagedef. BOMs can cause parsing errors in the oscript interpreter. Remove the leading BOM so the file begins directly with Описание.Имя("httpbin").

🤖 Prompt for AI Agents
In packagedef around lines 1 to 1, the file contains a UTF-8 Byte Order Mark
(BOM) at the very start which can break the oscript interpreter; remove the BOM
so the file begins directly with Описание.Имя("httpbin") by re-saving the file
without BOM (e.g., choose UTF-8 without BOM or strip the leading 0xEF,0xBB,0xBF
bytes) and verify the first byte is the 'О' character.

.Версия("1.3.0")
.Автор("Dmitry Ivanov")
.АдресАвтора("https://github.com/Stivo182")
Expand All @@ -11,8 +11,8 @@
.ВключитьФайл("autumn-properties.json")
.ВключитьФайл("README.md")
.ВключитьФайл("LICENSE")
.ЗависитОт("winow", "0.9.4")
.ЗависитОт("autumn-cli", "1.1.0")
.ЗависитОт("winow", "0.11.0")
.ЗависитОт("autumn-cli", "1.2.0")
Comment on lines +14 to +15
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify dependency versions exist and check for breaking changes.

The dependency updates look reasonable, but ensure the specified versions exist and are compatible with this package.

Run the following script to verify the versions and check for any compatibility issues:


🏁 Script executed:

#!/bin/bash
# Check if the specified versions exist in the repositories

echo "Checking winow 0.11.0..."
curl -s "https://hub.oscript.io/api/v1/packages/winow" | jq '.versions[] | select(.version == "0.11.0")'

echo "Checking autumn-cli 1.2.0..."
curl -s "https://hub.oscript.io/api/v1/packages/autumn-cli" | jq '.versions[] | select(.version == "1.2.0")'

# Check GitHub releases
echo "Checking winow releases..."
gh api repos/oscript-library/winow/releases --jq '.[] | select(.tag_name | contains("0.11.0")) | {tag_name, published_at, body}'

echo "Checking autumn-cli releases..."
gh api repos/oscript-library/autumn-cli/releases --jq '.[] | select(.tag_name | contains("1.2.0")) | {tag_name, published_at, body}'

Length of output: 226


🏁 Script executed:

#!/bin/bash
echo "winow tags:"
curl -s https://api.github.com/repos/oscript-library/winow/tags | jq '.[].name' | grep -E 'v?0\.11\.0'
echo "autumn-cli tags:"
curl -s https://api.github.com/repos/oscript-library/autumn-cli/tags | jq '.[].name' | grep -E 'v?1\.2\.0'
echo "winow release v0.11.0 details:"
curl -s https://api.github.com/repos/oscript-library/winow/releases | jq '.[] | select(.tag_name == "v0.11.0" or .tag_name == "0.11.0") | {tag_name, published_at, body}'
echo "autumn-cli release v1.2.0 details:"
curl -s https://api.github.com/repos/oscript-library/autumn-cli/releases | jq '.[] | select(.tag_name == "v1.2.0" or .tag_name == "1.2.0") | {tag_name, published_at, body}'

Length of output: 94


packagedef: missing release tags for [email protected] and [email protected]
Neither version exists in their GitHub repositories; ensure these releases are published or update to valid published versions.

🤖 Prompt for AI Agents
In packagedef around lines 14 to 15, the dependency entries reference
non-existent release tags ([email protected] and [email protected]); either publish
those exact tags in the respective GitHub repos or update these lines to point
to valid, published release versions (or alternate semver ranges) that exist in
each repo, then re-run dependency validation to ensure the package build
resolves successfully.

.ЗависитОт("compressor")
.ЗависитОт("1connector")
.РазработкаЗависитОт("1testrunner")
Expand Down
Loading