Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion assets/pkl/APIServer.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// server settings such as host IP and port number, as well as route definitions. The API server
/// is designed to handle incoming requests and route them to the appropriate handlers, ensuring
/// proper management of HTTP methods and deferred processing.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/api_server" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/APIServerRequest.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/// - Functions to decode Base64 encoded request data.
/// - File management utilities like retrieving file types and paths.
/// - Filtering files by MIME type.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/api_server_request" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/APIServerResponse.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// - [success]: A flag indicating the success or failure of the API request.
/// - [file]: A URI pointing to any file returned by the server in the response.
/// - [errors]: The error block containing details of the error if the request was unsuccessful.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/api_server_response" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Data.pkl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Abstractions for Data folder
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/data" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Docker.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// resources within the KDEPS framework. It allows for the specification
/// of package management, including additional package repositories (PPAs)
/// and models to be used within Docker containers.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/docker" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Document.pkl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Common parser and document renderer functions used across all resources.
///
/// Tools for Parsing and Generating JSON, YAML and XML documents
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/document" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Exec.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// standard output and error, as well as handling environment variables and
/// exit codes. The module provides functionalities to retrieve and manage
/// executable resources based on their identifiers.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/exec" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/HTTP.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// HTTP requests, including method specifications, request data, headers,
/// and handling of responses. This module provides functionalities to
/// retrieve and manage HTTP client resources based on their identifiers.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/http" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Item.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
///
/// This module provides functions to interact with records representing iterations or elements in a for loop.
/// The module supports retrieving, navigating, and listing records without requiring a specific identifier.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/item" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Kdeps.pkl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Abstractions for Kdeps Configuration
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/kdeps" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/LLM.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// - Providing methods to retrieve various pieces of information related to the LLM interaction,
/// such as the prompt text, response text, file paths, JSON keys, and whether image generation was
/// involved.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/llm" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Memory.pkl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Abstractions for Memory records
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/memory" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Project.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// configurations related to the API server, Docker agent settings, and security settings. These
/// settings allow customization of the project's environment, such as enabling API server mode or
/// configuring Docker and security parameters.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/project" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Python.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// capturing their standard output, standard error, and handling environment
/// variables as well as exit codes. The module provides utilities for retrieving
/// and managing executable resources identified by unique resource actionIDs.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/python" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Resource.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// including actions that can be performed on these resources, validation checks,
/// and error handling mechanisms. Each resource can define its actionID, name, description,
/// category, dependencies, and how it runs.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/resource" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Session.pkl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Abstractions for Session records
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/session" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Skip.pkl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Skip condition functions used across all resources.
///
/// Tools for creating skip logic validations
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/skip" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Tool.pkl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Abstractions for Tool records
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/tool" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Utils.pkl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Tools for Kdeps Resources
///
/// This module includes tools for interacting with Kdeps
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/utils" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/WebServer.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// server binding details (host and port) and route configurations. The server
/// handles HTTP requests, routing them to appropriate handlers based on defined
/// paths and server types.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/web_server" }

Expand Down
2 changes: 1 addition & 1 deletion assets/pkl/Workflow.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
///
/// This module also ensures the proper structure of workflows using validation checks for names,
/// workflow references, action formats, and versioning patterns.
@ModuleInfo { minPklVersion = "0.29.1" }
@ModuleInfo { minPklVersion = "0.30.2" }

@go.Package { name = "github.com/kdeps/schema/gen/workflow" }

Expand Down
11 changes: 7 additions & 4 deletions assets/pkl/external/pkl-go/codegen/src/go.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ import "internal/utils.pkl"
local const isValidPackageName = (it: String) ->
let (packageNameShort = it.substring(it.lastIndexOf("/") + 1, it.length))
if (utils.keywords.contains(packageNameShort))
throw("""
throw(
"""
Package name `\(it)` is not valid because it clashes with keyword `\(packageNameShort)`.
""")
else true
"""
)
else
true

/// A name in Go; i.e., an identifier.
typealias GoName = String(!utils.keywords.contains(this) && matches(Regex(#"(?u)\p{L}[\p{L}\d]+"#)))
Expand Down Expand Up @@ -90,7 +93,7 @@ open class Field extends Annotation {
///
/// `true` is a shortcut for adding a `json` tag whose value is the name of the annotated Pkl
/// property.
json: (*JsonStructTag|Boolean)?
json: (*JsonStructTag | Boolean)?

/// Additional struct tags for the annotated Pkl property.
///
Expand Down
Loading