Skip to content

feat: added file capability [APMSP-3780]#177

Open
Aaalibaba42 wants to merge 2 commits into
mainfrom
jwiriath/file-caps
Open

feat: added file capability [APMSP-3780]#177
Aaalibaba42 wants to merge 2 commits into
mainfrom
jwiriath/file-caps

Conversation

@Aaalibaba42

@Aaalibaba42 Aaalibaba42 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

What ?

Implement js side of FileCapabilities for interacting with the FS.

Why ?

Required #166 mentioned comment, these should be done by libdatadog so that libdatadog-nodejs don't need to get those infos like this.

How ?

New capability for interacting with FS driven by Rust

@Aaalibaba42 Aaalibaba42 changed the title feat: added file capability feat: added file capability [APMSP-3780] Jul 15, 2026
@github-actions

Copy link
Copy Markdown

Overall package size

Self size: 30.16 MB
Deduped: 30.16 MB
No deduping: 30.16 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------|

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@Aaalibaba42
Aaalibaba42 marked this pull request as ready for review July 16, 2026 10:58
@Aaalibaba42
Aaalibaba42 requested review from a team as code owners July 16, 2026 10:58
# TODO: Replace this temporary libdatadog PR rev with the official release/tag
# that contains DataDog/libdatadog#2235, then regenerate Cargo.lock.
libdd-capabilities = { git = "https://github.com/DataDog/libdatadog.git", rev = "8cd68ab922fb7aade0f089ccfc91291d874673af" }
libdd-capabilities = { git = "https://github.com/DataDog/libdatadog.git", branch = "jwiriath/file-caps" }

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.

TODO: change these before merging

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9e13e690d3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread crates/pipeline/Cargo.toml
Comment thread crates/capabilities/src/file_transport.js Outdated
@@ -0,0 +1,41 @@
// Lazy `require('node:fs')` — see http_transport.js.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Very nit: Is it really transport ?

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.

mmh I mostly tried to have the same nomenclature as existing in the repository for the js side. Even sleep capability is part of the http_transport.js currently. I think it's something that could be worth refactoring at some point but idk if it's currently a big deal.

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.

2 participants