Skip to content

Preserve executable modes for skill resources#103

Merged
Aaronontheweb merged 5 commits into
netclaw-dev:devfrom
Aaronontheweb:issue-102-executable-skill-artifacts
Jul 3, 2026
Merged

Preserve executable modes for skill resources#103
Aaronontheweb merged 5 commits into
netclaw-dev:devfrom
Aaronontheweb:issue-102-executable-skill-artifacts

Conversation

@Aaronontheweb

@Aaronontheweb Aaronontheweb commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Closes #102.

Summary

This PR preserves executable permission bits for skill resources uploaded through skill-server so archive consumers can run packaged helpers without manual chmod.

Changes

  • adds nullable skill_files.unix_mode migration
  • captures Unix mode bits in the CLI publisher on Unix platforms
  • sends resourceMetadata with optional unixMode for multipart resource uploads
  • stores and returns unixMode in RFC resource entries
  • writes ZIP external attributes with regular-file type and permission bits for generated/backfilled archives
  • keeps tuple-based client upload APIs and adds mode-aware SkillResourceUpload APIs

Validation

  • dotnet build SkillServer.slnx
  • dotnet test SkillServer.slnx

Related

@Aaronontheweb Aaronontheweb left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Generally LGTM

public string Url { get; init; } = "";

[JsonPropertyName("unixMode")]
public int? UnixMode { get; init; }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Have to preserve the unix mode on uploaded files if we're including executable resources

@Aaronontheweb Aaronontheweb marked this pull request as ready for review July 2, 2026 22:31
@Aaronontheweb Aaronontheweb merged commit a7d8e84 into netclaw-dev:dev Jul 3, 2026
7 checks passed
@Aaronontheweb Aaronontheweb deleted the issue-102-executable-skill-artifacts branch July 3, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warn when executable skill resources are outside scripts/

1 participant