-
Notifications
You must be signed in to change notification settings - Fork 3
Use inbuild #24
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
Draft
sloretz
wants to merge
5
commits into
main
Choose a base branch
from
sloretz__use_inbuild
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Use inbuild #24
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
intrinsic_sdk_cmake/cmake/api/skill/intrinsic_sdk_generate_skill_bundle.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # Copyright 2025 Intrinsic Innovation LLC | ||
| # | ||
| # You are hereby granted a non-exclusive, worldwide, royalty-free license to use, | ||
| # copy, modify, and distribute this Intrinsic SDK in source code or binary form for use | ||
| # in connection with the services and APIs provided by Intrinsic Innovation LLC (“Intrinsic”). | ||
| # | ||
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
| # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
| # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
| # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| # | ||
| # If you use this Intrinsic SDK with any Intrinsic services, your use is subject to the Intrinsic | ||
| # Platform Terms of Service [https://intrinsic.ai/platform-terms]. If you create works that call | ||
| # Intrinsic APIs, you must agree to the terms of service for those APIs separately. This license | ||
| # does not grant you any special rights to use the services. | ||
| # | ||
| # This copyright notice shall be included in all copies or substantial portions of the software. | ||
|
|
||
| include_guard(GLOBAL) | ||
|
|
||
| # | ||
| # Generate a skill bundle that can be deployed to Flowstate. | ||
| # | ||
| # :param MANIFEST: the path to the manifest file | ||
| # :type MANIFEST: string | ||
| # :param PROTOS_TARGET: the cmake target for generating the skill's proto files | ||
| # :type PROTOS_TARGET: cmake target | ||
| # :param SOURCES: the list of source files for the skill target | ||
| # :type SOURCES: list of strings | ||
| # | ||
| # @public | ||
| # | ||
| function(intrinsic_sdk_generate_skill_bundle) | ||
| set(options) | ||
| set(one_value_args | ||
| TARGET | ||
| MANIFEST | ||
| PROTO_DESCRIPTOR_FILE | ||
| OCI_IMAGE | ||
| SKILL_BUNDLE_OUTPUT | ||
| ) | ||
| set(multi_value_args) | ||
|
|
||
| cmake_parse_arguments( | ||
| arg | ||
| "${options}" | ||
| "${one_value_args}" | ||
| "${multi_value_args}" | ||
| ${ARGN} | ||
| ) | ||
|
|
||
| set(OUT_DIR ${CMAKE_CURRENT_BINARY_DIR}) | ||
|
|
||
| # Generate the binary proto skill config | ||
| add_custom_command( | ||
| OUTPUT ${arg_SKILL_BUNDLE_OUTPUT} | ||
| COMMAND inbuild_import | ||
| ARGS | ||
| skill bundle | ||
| --manifest=${arg_MANIFEST} | ||
| --file_descriptor_set=${arg_PROTO_DESCRIPTOR_FILE} | ||
| --oci_image=${arg_OCI_IMAGE} | ||
| --output=${arg_SKILL_BUNDLE_OUTPUT} | ||
| COMMENT "Generating skill config for ${arg_TARGET}" | ||
| DEPENDS | ||
| ${arg_PROTO_DESCRIPTOR_FILE} | ||
| ${arg_OCI_IMAGE} | ||
| ) | ||
|
|
||
| add_custom_target(${arg_TARGET} ALL | ||
| DEPENDS | ||
| ${arg_SKILL_BUNDLE_OUTPUT} | ||
| ) | ||
| endfunction() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 0 additions & 69 deletions
69
intrinsic_sdk_cmake/cmake/api/skill/intrinsic_sdk_generate_skill_manifest_pbbin.cmake
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'd recommend building off the other two open prs. Now that it's been tested I should merge those, but they already update the sdk.