Compare commits

..

2 Commits

Author SHA1 Message Date
Quixos Subtree Publisher 0f2e0f6d89 Publish camino-package-runtime from 015f04412c856751c3535eb306218e8f1b9ca2c8 2026-07-15 03:31:28 +00:00
Timothy J. Aveni 415eb6b411 Update package runtime edge ordinal API 2026-07-14 20:31:28 -07:00
10 changed files with 37 additions and 35 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"version": 1, "version": 1,
"sourceRepo": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git", "sourceRepo": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git",
"sourceCommit": "268fe40efd0632e886e85f87071ed8da31b5d535", "sourceCommit": "015f04412c856751c3535eb306218e8f1b9ca2c8",
"sourcePath": "quixos-instance/packages/camino-package-runtime", "sourcePath": "quixos-instance/packages/camino-package-runtime",
"exportName": "camino-package-runtime", "exportName": "camino-package-runtime",
"mirrorRemote": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git" "mirrorRemote": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git"
+12 -4
View File
@@ -436,9 +436,13 @@ export type AddEdgeRequest = Message<"camino.AddEdgeRequest"> & {
[key: string]: Value; [key: string]: Value;
}; };
/** /**
* @generated from field: optional int32 ordinal = 5; * @generated from field: optional int32 source_ordinal = 5;
*/ */
ordinal?: number | undefined; sourceOrdinal?: number | undefined;
/**
* @generated from field: optional int32 target_ordinal = 6;
*/
targetOrdinal?: number | undefined;
}; };
/** /**
* Describes the message camino.AddEdgeRequest. * Describes the message camino.AddEdgeRequest.
@@ -676,9 +680,9 @@ export type CaminoEdge = Message<"camino.CaminoEdge"> & {
[key: string]: Value; [key: string]: Value;
}; };
/** /**
* @generated from field: optional int32 ordinal = 9; * @generated from field: optional int32 from_ordinal = 9;
*/ */
ordinal?: number | undefined; fromOrdinal?: number | undefined;
/** /**
* @generated from field: string created_at = 10; * @generated from field: string created_at = 10;
*/ */
@@ -703,6 +707,10 @@ export type CaminoEdge = Message<"camino.CaminoEdge"> & {
* @generated from field: string to_cardinality = 15; * @generated from field: string to_cardinality = 15;
*/ */
toCardinality: string; toCardinality: string;
/**
* @generated from field: optional int32 to_ordinal = 16;
*/
toOrdinal?: number | undefined;
}; };
/** /**
* Describes the message camino.CaminoEdge. * Describes the message camino.CaminoEdge.
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"schema-compiler.d.ts","sourceRoot":"","sources":["../src/schema-compiler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAeV,mBAAmB,EAGpB,MAAM,gBAAgB,CAAC;AAuyBxB,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,KACjB,OAAO,CAAC,mBAAmB,CAuE7B,CAAC"} {"version":3,"file":"schema-compiler.d.ts","sourceRoot":"","sources":["../src/schema-compiler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAeV,mBAAmB,EAGpB,MAAM,gBAAgB,CAAC;AA4xBxB,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,KACjB,OAAO,CAAC,mBAAmB,CAuE7B,CAAC"}
-5
View File
@@ -308,7 +308,6 @@ const isManyCardinality = (cardinality) => cardinality === "many" ||
cardinality === "many_unique" || cardinality === "many_unique" ||
cardinality === "many_ordered" || cardinality === "many_ordered" ||
cardinality === "many_unique_ordered"; cardinality === "many_unique_ordered";
const isOrderedCardinality = (cardinality) => cardinality === "many_ordered" || cardinality === "many_unique_ordered";
const endpointFromOption = (params) => { const endpointFromOption = (params) => {
const object = asObject(params.option); const object = asObject(params.option);
const classRef = asObject(object?.class) const classRef = asObject(object?.class)
@@ -476,10 +475,6 @@ const classSchemaFromType = (type, sourceFile, defaults, operationServices) => {
if (!isMany && field.repeated) { if (!isMany && field.repeated) {
throw new Error(`Edge field ${type.fullName}.${field.name} must not be repeated for ${fromEndpoint.cardinality}`); throw new Error(`Edge field ${type.fullName}.${field.name} must not be repeated for ${fromEndpoint.cardinality}`);
} }
if (isOrderedCardinality(fromEndpoint.cardinality) &&
isOrderedCardinality(toEndpoint.cardinality)) {
throw new Error(`Edge field ${type.fullName}.${field.name} cannot be ordered on both endpoints yet`);
}
const edgeId = symbolRefFromOption(edgeOption.id, { const edgeId = symbolRefFromOption(edgeOption.id, {
namespace: defaults.schemaNamespace, namespace: defaults.schemaNamespace,
name: `${type.name}.${field.name}`, name: `${type.name}.${field.name}`,
Generated
+5 -5
View File
@@ -74,17 +74,17 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1784040904, "lastModified": 1784086232,
"narHash": "sha256-DdKAQ7MXgotbAymZ0FESXiK7K9FXepcCJmt/f4TiE2o=", "narHash": "sha256-m/PyK8Jrf2A6hUxGk9aFCZy+JtR+ApMYwDzTykjFk8U=",
"ref": "refs/heads/exported", "ref": "refs/heads/exported",
"rev": "2ad29f8ddbd9d38dcaf06186c9f88c0b489fa723", "rev": "5dd3948784abe64d0a6314d82a02ea98666e6002",
"revCount": 16, "revCount": 18,
"type": "git", "type": "git",
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git" "url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git"
}, },
"original": { "original": {
"ref": "refs/heads/exported", "ref": "refs/heads/exported",
"rev": "2ad29f8ddbd9d38dcaf06186c9f88c0b489fa723", "rev": "5dd3948784abe64d0a6314d82a02ea98666e6002",
"type": "git", "type": "git",
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git" "url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git"
} }
+1 -1
View File
@@ -4,7 +4,7 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
quixos-protocol.url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git?ref=refs/heads/exported&rev=2ad29f8ddbd9d38dcaf06186c9f88c0b489fa723"; quixos-protocol.url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git?ref=refs/heads/exported&rev=5dd3948784abe64d0a6314d82a02ea98666e6002";
quixosNixHelpers = { quixosNixHelpers = {
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/heads/exported&rev=1f0c39b01501d646fe97dfc6e5777ccab0bde2f1"; url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/heads/exported&rev=1f0c39b01501d646fe97dfc6e5777ccab0bde2f1";
flake = false; flake = false;
+15 -5
View File
File diff suppressed because one or more lines are too long
-11
View File
@@ -426,9 +426,6 @@ const isManyCardinality = (cardinality: Cardinality) =>
cardinality === "many_ordered" || cardinality === "many_ordered" ||
cardinality === "many_unique_ordered"; cardinality === "many_unique_ordered";
const isOrderedCardinality = (cardinality: Cardinality) =>
cardinality === "many_ordered" || cardinality === "many_unique_ordered";
const endpointFromOption = (params: { const endpointFromOption = (params: {
option: unknown; option: unknown;
fallbackClass?: SymbolRef; fallbackClass?: SymbolRef;
@@ -669,14 +666,6 @@ const classSchemaFromType = (
if (!isMany && field.repeated) { if (!isMany && field.repeated) {
throw new Error(`Edge field ${type.fullName}.${field.name} must not be repeated for ${fromEndpoint.cardinality}`); throw new Error(`Edge field ${type.fullName}.${field.name} must not be repeated for ${fromEndpoint.cardinality}`);
} }
if (
isOrderedCardinality(fromEndpoint.cardinality) &&
isOrderedCardinality(toEndpoint.cardinality)
) {
throw new Error(
`Edge field ${type.fullName}.${field.name} cannot be ordered on both endpoints yet`,
);
}
const edgeId = symbolRefFromOption(edgeOption.id, { const edgeId = symbolRefFromOption(edgeOption.id, {
namespace: defaults.schemaNamespace, namespace: defaults.schemaNamespace,
name: `${type.name}.${field.name}`, name: `${type.name}.${field.name}`,