Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b1708614a | ||
|
|
ec604045df | ||
|
|
7e4c51b815 | ||
|
|
5f9785d6d9 | ||
|
|
8ceff8bb3a | ||
|
|
9bbed0910e |
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"monorepoCommit": "810617559b0ee9c662c4b566e16cb3629b44fbce",
|
|
||||||
"sourcePath": "quixos-instance/packages/project-react-runtime"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"messages": {
|
|
||||||
"org.quixos.web-studio.ReactProps": {
|
|
||||||
"module": "@quixos/camino-package-runtime",
|
|
||||||
"export": "opaqueReactPropsBinding"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
# Generated by qx-scaffold-v1
|
|
||||||
package_id: "package:project-react-runtime"
|
package_id: "package:project-react-runtime"
|
||||||
package_revision_id: "package:project-react-runtime@1"
|
package_revision_id: "package:project-react-runtime@1"
|
||||||
runtime_protocol_version: "quixos-capabilities-v1"
|
runtime_protocol_version: "quixos-capabilities-v1"
|
||||||
exports: { export_id: "export:project-react-runtime:create-component" runtime_symbol: "createComponent" }
|
exports: { export_id: "export:project-react-runtime:create-component" runtime_symbol: "createComponent" }
|
||||||
exports: { export_id: "export:project-react-runtime:source-get" runtime_symbol: "sourceGet" }
|
exports: { export_id: "export:project-react-runtime:source-get" runtime_symbol: "source.get" }
|
||||||
exports: { export_id: "export:project-react-runtime:props-get" runtime_symbol: "propsGet" }
|
exports: { export_id: "export:project-react-runtime:props-get" runtime_symbol: "props.get" }
|
||||||
exports: { export_id: "export:project-react-runtime:props-watch" runtime_symbol: "propsWatch" }
|
exports: { export_id: "export:project-react-runtime:props-watch" runtime_symbol: "props.watch" }
|
||||||
exports: { export_id: "export:project-react-runtime:props-watch-stop" runtime_symbol: "propsWatchStop" }
|
exports: { export_id: "export:project-react-runtime:props-watch-stop" runtime_symbol: "props.watchStop" }
|
||||||
|
|||||||
Generated
+7
-7
@@ -37,17 +37,17 @@
|
|||||||
"quixosNixHelpers": {
|
"quixosNixHelpers": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1789364768,
|
"lastModified": 1788543053,
|
||||||
"narHash": "sha256-6tINqOSLd3TTACk/HAfhXqo07H69yjX3Q/DrrAPWzus=",
|
"narHash": "sha256-3YReATWEVxZinYVi/l3cwOz+oFoZUrwj24kUBQTmUpQ=",
|
||||||
"ref": "refs/tags/quixos-reachability/cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
"ref": "refs/tags/quixos-reachability/56bbcd22d17f8c7f120b1e0b5bd1d5a86e91a80a",
|
||||||
"rev": "cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
"rev": "56bbcd22d17f8c7f120b1e0b5bd1d5a86e91a80a",
|
||||||
"revCount": 22,
|
"revCount": 8,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git"
|
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"ref": "refs/tags/quixos-reachability/cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
"ref": "refs/tags/quixos-reachability/56bbcd22d17f8c7f120b1e0b5bd1d5a86e91a80a",
|
||||||
"rev": "cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
"rev": "56bbcd22d17f8c7f120b1e0b5bd1d5a86e91a80a",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git"
|
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
quixosNixHelpers = {
|
quixosNixHelpers = {
|
||||||
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/cf7945abb6ee2533a34dff4a7d4a956e70efe007&rev=cf7945abb6ee2533a34dff4a7d4a956e70efe007";
|
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/56bbcd22d17f8c7f120b1e0b5bd1d5a86e91a80a&rev=56bbcd22d17f8c7f120b1e0b5bd1d5a86e91a80a";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -18,8 +18,6 @@
|
|||||||
quixosHelpers.mkCaminoTsYarnNixifyFlake {
|
quixosHelpers.mkCaminoTsYarnNixifyFlake {
|
||||||
inherit inputs nixpkgs flake-utils;
|
inherit inputs nixpkgs flake-utils;
|
||||||
packageRoot = ./.;
|
packageRoot = ./.;
|
||||||
migrationEntrypoint = "dist/migrate.js";
|
|
||||||
bindingOptions = builtins.fromJSON (builtins.readFile ./bindings.json);
|
|
||||||
promptName = "project-react-runtime";
|
promptName = "project-react-runtime";
|
||||||
bundle = {
|
bundle = {
|
||||||
entry = "dist/server.js";
|
entry = "dist/server.js";
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@quixos/camino-package-runtime": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0",
|
"@quixos/camino-package-runtime": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=a998690446ecf647e3af78e369492c1a3663b66d",
|
||||||
"react": "^18.3.1"
|
"react": "^18.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"backend": "typescript",
|
|
||||||
"bindingOutput": "src/gen/qx.ts",
|
|
||||||
"options": {
|
|
||||||
"messages": {
|
|
||||||
"org.quixos.web-studio.ReactProps": {
|
|
||||||
"module": "@quixos/camino-package-runtime",
|
|
||||||
"export": "opaqueReactPropsBinding"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+5
-3
@@ -1,14 +1,16 @@
|
|||||||
quixos-lock version 1 {
|
quixos-lock version 1 {
|
||||||
quixos source {
|
quixos source {
|
||||||
repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git";
|
repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git";
|
||||||
commit "810617559b0ee9c662c4b566e16cb3629b44fbce";
|
commit "9c3ab572ecfbc83785038c3d9f174516df15d63f";
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Named source {
|
interface Named source {
|
||||||
repository "https://repos.quixos.org/quixos-templates/interface-named.git";
|
repository "https://repos.quixos.org/quixos-templates/interface-named.git";
|
||||||
commit "23632b4d803f16dfa14771fb7d91d19ed9d39602";
|
commit "14be607ed250f8c3ce1633558573fc1449f6f2a1";
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ProjectTasks source {
|
interface ProjectTasks source {
|
||||||
repository "https://repos.quixos.org/quixos-templates/interface-project-tasks.git";
|
repository "https://repos.quixos.org/quixos-templates/interface-project-tasks.git";
|
||||||
commit "e47073ebb4655800809fe624670c61cff0852eb7";
|
commit "2590966c1f95da08126f1cb830be7dcc6dc715d9";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"generatedBy": "qx-scaffold-v1",
|
|
||||||
"schemaVersion": 1,
|
|
||||||
"contracts": {},
|
|
||||||
"migrations": []
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"generatedBy": "qx-scaffold-v1",
|
|
||||||
"resources": [
|
|
||||||
{
|
|
||||||
"kind": "interface",
|
|
||||||
"repository": "https://repos.quixos.org/quixos-todo/interface-named.git",
|
|
||||||
"commit": "0000000000000000000000000000000000000010"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind": "interface",
|
|
||||||
"repository": "https://repos.quixos.org/quixos-todo/interface-project-tasks.git",
|
|
||||||
"commit": "0000000000000000000000000000000000000012"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"generatedBy": "qx-scaffold-v1",
|
|
||||||
"name": "ProjectReactRuntime",
|
|
||||||
"id": "package:project-react-runtime",
|
|
||||||
"revision": "package:project-react-runtime@1",
|
|
||||||
"exports": [
|
|
||||||
{
|
|
||||||
"name": "createComponent",
|
|
||||||
"id": "export:project-react-runtime:create-component",
|
|
||||||
"file": "src/impl/createComponent.ts"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "sourceGet",
|
|
||||||
"id": "export:project-react-runtime:source-get",
|
|
||||||
"file": "src/impl/sourceGet.ts"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "propsGet",
|
|
||||||
"id": "export:project-react-runtime:props-get",
|
|
||||||
"file": "src/impl/propsGet.ts"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "propsWatch",
|
|
||||||
"id": "export:project-react-runtime:props-watch",
|
|
||||||
"file": "src/impl/propsWatch.ts"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "propsWatchStop",
|
|
||||||
"id": "export:project-react-runtime:props-watch-stop",
|
|
||||||
"file": "src/impl/propsWatchStop.ts"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"generatedBy": "qx-scaffold-v1",
|
|
||||||
"nixifyPluginUrl": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/yarn-plugin-nixify-patched/raw/commit/4528fdd20b30d869262443b3f044549810e75fb8/dist/yarn-plugin-nixify.js"
|
|
||||||
}
|
|
||||||
-244
@@ -1,244 +0,0 @@
|
|||||||
// Generated by quixos-codegen-ts. Do not edit. Binding ABI version 1.
|
|
||||||
import { bindQxHandler, type BindingValue, type QxObjectRef, type QxWatchHandle, type QxHandler, type QxDerived, type QxContextLifecycle, type QxLiveValue, type QxHandlerSpec, type QxMessages } from "@quixos/camino-package-runtime";
|
|
||||||
import { opaqueReactPropsBinding as message0 } from "@quixos/camino-package-runtime";
|
|
||||||
export const packageRevisionId = "package:project-react-runtime@1";
|
|
||||||
export type Contexts = { "createComponent": { "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": QxObjectRef<"atom:atom:project">; "ports": { } } & QxContextLifecycle<{ "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": QxObjectRef<"atom:atom:project">; "ports": { } } & {signal?: AbortSignal}>; "propsGet": { "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": null; "ports": { "named": { "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null> }; "tasks": { "objectId": QxObjectRef<"interface:interface:project-tasks@1">; "live": { "tasks.resolve": () => Promise<QxLiveValue>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue> }; "tasks.resolve": () => Promise<Array<QxObjectRef<"atom:atom:task">>>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<null> } } } & QxContextLifecycle<{ "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": null; "ports": { "named": { "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null> }; "tasks": { "objectId": QxObjectRef<"interface:interface:project-tasks@1">; "live": { "tasks.resolve": () => Promise<QxLiveValue>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue> }; "tasks.resolve": () => Promise<Array<QxObjectRef<"atom:atom:task">>>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<null> } } } & {signal?: AbortSignal}>; "propsWatch": { "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": null; "ports": { "named": { "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null> }; "tasks": { "objectId": QxObjectRef<"interface:interface:project-tasks@1">; "live": { "tasks.resolve": () => Promise<QxLiveValue>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue> }; "tasks.resolve": () => Promise<Array<QxObjectRef<"atom:atom:task">>>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<null> } } } & QxContextLifecycle<{ "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": null; "ports": { "named": { "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null> }; "tasks": { "objectId": QxObjectRef<"interface:interface:project-tasks@1">; "live": { "tasks.resolve": () => Promise<QxLiveValue>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue> }; "tasks.resolve": () => Promise<Array<QxObjectRef<"atom:atom:task">>>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<null> } } } & {signal?: AbortSignal}>; "propsWatchStop": { "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": QxWatchHandle; "ports": { } } & QxContextLifecycle<{ "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": QxWatchHandle; "ports": { } } & {signal?: AbortSignal}>; "sourceGet": { "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": null; "ports": { } } & QxContextLifecycle<{ "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": null; "ports": { } } & {signal?: AbortSignal}> };
|
|
||||||
export type Implementation = { "createComponent": QxHandler<Contexts["createComponent"], QxObjectRef<"atom:atom:project-react-component">>; "propsGet": QxHandler<Contexts["propsGet"], BindingValue<typeof message0>> | QxDerived<Contexts["propsGet"], BindingValue<typeof message0>>; "propsWatch": QxDerived<Contexts["propsWatch"], BindingValue<typeof message0>>; "propsWatchStop": QxHandler<Contexts["propsWatchStop"], null>; "sourceGet": QxHandler<Contexts["sourceGet"], string> | QxDerived<Contexts["sourceGet"], string> };
|
|
||||||
const messages = { "org.quixos.web-studio.ReactProps": message0 } satisfies QxMessages;
|
|
||||||
const specs = {
|
|
||||||
"createComponent": {
|
|
||||||
"inputType": {
|
|
||||||
"kind": "object-ref",
|
|
||||||
"expectation": {
|
|
||||||
"kind": "atom",
|
|
||||||
"atomId": "atom:project"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "object-ref",
|
|
||||||
"expectation": {
|
|
||||||
"kind": "atom",
|
|
||||||
"atomId": "atom:project-react-component"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ports": {}
|
|
||||||
},
|
|
||||||
"propsGet": {
|
|
||||||
"inputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "message",
|
|
||||||
"descriptorId": "org.quixos.web-studio.ReactProps"
|
|
||||||
},
|
|
||||||
"ports": {
|
|
||||||
"named": {
|
|
||||||
"kind": "interface",
|
|
||||||
"id": "port:project-react:named",
|
|
||||||
"operations": {
|
|
||||||
"name.get": {
|
|
||||||
"id": "operation:named:name:get",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "scalar",
|
|
||||||
"name": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"name.set": {
|
|
||||||
"id": "operation:named:name:set",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "scalar",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tasks": {
|
|
||||||
"kind": "interface",
|
|
||||||
"id": "port:project-react:tasks",
|
|
||||||
"operations": {
|
|
||||||
"tasks.resolve": {
|
|
||||||
"id": "operation:project-tasks:tasks:resolve",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "list",
|
|
||||||
"value": {
|
|
||||||
"kind": "object-ref",
|
|
||||||
"expectation": {
|
|
||||||
"kind": "atom",
|
|
||||||
"atomId": "atom:task"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tasks.connect": {
|
|
||||||
"id": "operation:project-tasks:tasks:connect",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "object-ref",
|
|
||||||
"expectation": {
|
|
||||||
"kind": "atom",
|
|
||||||
"atomId": "atom:task"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tasks.disconnect": {
|
|
||||||
"id": "operation:project-tasks:tasks:disconnect",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "object-ref",
|
|
||||||
"expectation": {
|
|
||||||
"kind": "atom",
|
|
||||||
"atomId": "atom:task"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"propsWatch": {
|
|
||||||
"inputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "watch-handle"
|
|
||||||
},
|
|
||||||
"eventType": {
|
|
||||||
"kind": "message",
|
|
||||||
"descriptorId": "org.quixos.web-studio.ReactProps"
|
|
||||||
},
|
|
||||||
"ports": {
|
|
||||||
"named": {
|
|
||||||
"kind": "interface",
|
|
||||||
"id": "port:project-react:named",
|
|
||||||
"operations": {
|
|
||||||
"name.get": {
|
|
||||||
"id": "operation:named:name:get",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "scalar",
|
|
||||||
"name": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"name.set": {
|
|
||||||
"id": "operation:named:name:set",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "scalar",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tasks": {
|
|
||||||
"kind": "interface",
|
|
||||||
"id": "port:project-react:tasks",
|
|
||||||
"operations": {
|
|
||||||
"tasks.resolve": {
|
|
||||||
"id": "operation:project-tasks:tasks:resolve",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "list",
|
|
||||||
"value": {
|
|
||||||
"kind": "object-ref",
|
|
||||||
"expectation": {
|
|
||||||
"kind": "atom",
|
|
||||||
"atomId": "atom:task"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tasks.connect": {
|
|
||||||
"id": "operation:project-tasks:tasks:connect",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "object-ref",
|
|
||||||
"expectation": {
|
|
||||||
"kind": "atom",
|
|
||||||
"atomId": "atom:task"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tasks.disconnect": {
|
|
||||||
"id": "operation:project-tasks:tasks:disconnect",
|
|
||||||
"inputType": {
|
|
||||||
"kind": "object-ref",
|
|
||||||
"expectation": {
|
|
||||||
"kind": "atom",
|
|
||||||
"atomId": "atom:task"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"propsWatchStop": {
|
|
||||||
"inputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "watch-handle"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
},
|
|
||||||
"ports": {}
|
|
||||||
},
|
|
||||||
"sourceGet": {
|
|
||||||
"inputType": {
|
|
||||||
"kind": "builtin",
|
|
||||||
"name": "unit"
|
|
||||||
},
|
|
||||||
"outputType": {
|
|
||||||
"kind": "scalar",
|
|
||||||
"name": "string"
|
|
||||||
},
|
|
||||||
"ports": {}
|
|
||||||
}
|
|
||||||
} satisfies Record<string, QxHandlerSpec>;
|
|
||||||
export const createRuntime = (implementation: Implementation) => ({
|
|
||||||
packageRevisionId,
|
|
||||||
exports: {
|
|
||||||
"export:project-react-runtime:create-component": bindQxHandler(specs["createComponent"], implementation["createComponent"], messages),
|
|
||||||
"export:project-react-runtime:props-get": bindQxHandler(specs["propsGet"], implementation["propsGet"], messages),
|
|
||||||
"export:project-react-runtime:props-watch": bindQxHandler(specs["propsWatch"], implementation["propsWatch"], messages),
|
|
||||||
"export:project-react-runtime:props-watch-stop": bindQxHandler(specs["propsWatchStop"], implementation["propsWatchStop"], messages),
|
|
||||||
"export:project-react-runtime:source-get": bindQxHandler(specs["sourceGet"], implementation["sourceGet"], messages),
|
|
||||||
},
|
|
||||||
});
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
// This adapter keeps the implementation file hand-authored.
|
|
||||||
export {createComponent as handler} from "../project-react.impl.js";
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
// This adapter keeps the implementation file hand-authored.
|
|
||||||
export {props as handler} from "../project-react.impl.js";
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
// This adapter keeps the implementation file hand-authored.
|
|
||||||
export {props as handler} from "../project-react.impl.js";
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
// This adapter keeps the implementation file hand-authored.
|
|
||||||
export {stopWatch as handler} from "../project-react.impl.js";
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
// This adapter keeps the implementation file hand-authored.
|
|
||||||
export {source as handler} from "../project-react.impl.js";
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
// Generated by qx-scaffold-v1
|
|
||||||
import {serveMigration} from "@quixos/camino-package-runtime";
|
|
||||||
await serveMigration({});
|
|
||||||
+19
-10
@@ -1,15 +1,24 @@
|
|||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import type { Contexts } from "./gen/qx.js";
|
import { derived, type RuntimeContext } from "@quixos/camino-package-runtime";
|
||||||
|
|
||||||
|
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
const componentSourcePath = path.join(dirname, "project-component.mjs");
|
||||||
|
|
||||||
|
export const source = async () => await fs.readFile(componentSourcePath, "utf8");
|
||||||
|
|
||||||
|
export const createComponent = (context: RuntimeContext) => context.objectId;
|
||||||
|
|
||||||
|
export const props = derived(async (context: RuntimeContext) => {
|
||||||
|
const named = context.interface("port:project-react:named");
|
||||||
|
const tasks = context.interface("port:project-react:tasks");
|
||||||
|
return {
|
||||||
|
project_id: named.objectId,
|
||||||
|
component_id: context.objectId,
|
||||||
|
name: await named.live("operation:named:name:get"),
|
||||||
|
tasks: await tasks.invoke("operation:project-tasks:tasks:resolve"),
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
const componentSourcePath = path.join(path.dirname(fileURLToPath(import.meta.url)), "project-component.mjs");
|
|
||||||
export const source = () => fs.readFile(componentSourcePath, "utf8");
|
|
||||||
export const createComponent = ({ objectId }: Contexts["createComponent"]) => objectId;
|
|
||||||
export const props = { kind: "derived" as const, get: async ({ objectId, ports }: Contexts["propsGet"]): Promise<Record<string, unknown>> => ({
|
|
||||||
project_id: ports.named.objectId,
|
|
||||||
component_id: objectId,
|
|
||||||
name: await ports.named.live["name.get"](),
|
|
||||||
tasks: await ports.tasks["tasks.resolve"](),
|
|
||||||
})};
|
|
||||||
export const stopWatch = () => null;
|
export const stopWatch = () => null;
|
||||||
|
|||||||
+12
-14
@@ -1,15 +1,13 @@
|
|||||||
// Generated by qx-scaffold-v1
|
|
||||||
import { servePackageRuntime } from "@quixos/camino-package-runtime";
|
import { servePackageRuntime } from "@quixos/camino-package-runtime";
|
||||||
import {createRuntime} from "./gen/qx.js";
|
import { createComponent, props, source, stopWatch } from "./project-react.impl.js";
|
||||||
import {handler as impl0} from "./impl/createComponent.js";
|
|
||||||
import {handler as impl1} from "./impl/sourceGet.js";
|
servePackageRuntime({
|
||||||
import {handler as impl2} from "./impl/propsGet.js";
|
packageRevisionId: "package:project-react-runtime@1",
|
||||||
import {handler as impl3} from "./impl/propsWatch.js";
|
exports: {
|
||||||
import {handler as impl4} from "./impl/propsWatchStop.js";
|
"export:project-react-runtime:create-component": createComponent,
|
||||||
servePackageRuntime(createRuntime({
|
"export:project-react-runtime:source-get": source,
|
||||||
"createComponent": impl0,
|
"export:project-react-runtime:props-get": props,
|
||||||
"sourceGet": impl1,
|
"export:project-react-runtime:props-watch": props,
|
||||||
"propsGet": impl2,
|
"export:project-react-runtime:props-watch-stop": stopWatch,
|
||||||
"propsWatch": impl3,
|
},
|
||||||
"propsWatchStop": impl4,
|
});
|
||||||
}));
|
|
||||||
|
|||||||
+4
-8
@@ -9,15 +9,11 @@
|
|||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"preserveSymlinks": true,
|
"preserveSymlinks": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"types": [
|
"types": ["node"],
|
||||||
"node"
|
|
||||||
],
|
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"jsx": "react-jsx"
|
"jsx": "react",
|
||||||
|
"jsxFactory": "h"
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["src/**/*.ts", "src/**/*.tsx"]
|
||||||
"src/**/*.ts",
|
|
||||||
"src/**/*.tsx"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -161,7 +161,7 @@ cacheEntries = {
|
|||||||
"@connectrpc/connect@npm:2.1.2" = { filename = "@connectrpc-connect-npm-2.1.2-ab34825de3-4e15000890.zip"; hash = "sha512-ThUACJAjt1Lv1E+pQKWuHh+gDhvrxLoM7ScruTWSDYw7hbd0UOZErUQruMqaJ1sMFxNviWuo7/A2F4Ex2wHWFQ=="; };
|
"@connectrpc/connect@npm:2.1.2" = { filename = "@connectrpc-connect-npm-2.1.2-ab34825de3-4e15000890.zip"; hash = "sha512-ThUACJAjt1Lv1E+pQKWuHh+gDhvrxLoM7ScruTWSDYw7hbd0UOZErUQruMqaJ1sMFxNviWuo7/A2F4Ex2wHWFQ=="; };
|
||||||
"@esbuild/linux-arm64@npm:0.25.12" = { filename = "@esbuild-linux-arm64-npm-0.25.12-a5aaa0e70e-10c0.zip"; hash = "sha512-tm9zhnNR4GZv4A+Sgbt9jdCJ0iGlzvYxGCaxaScbhFH14mX7QWJRYaCvFCZB1dseApmaq6mNwbilL0wJnbB8tw=="; };
|
"@esbuild/linux-arm64@npm:0.25.12" = { filename = "@esbuild-linux-arm64-npm-0.25.12-a5aaa0e70e-10c0.zip"; hash = "sha512-tm9zhnNR4GZv4A+Sgbt9jdCJ0iGlzvYxGCaxaScbhFH14mX7QWJRYaCvFCZB1dseApmaq6mNwbilL0wJnbB8tw=="; };
|
||||||
"@esbuild/linux-x64@npm:0.25.12" = { filename = "@esbuild-linux-x64-npm-0.25.12-07c7c22cce-10c0.zip"; hash = "sha512-U2QGT8ZIZN8q2WPSFDC32+sZGKgp49gvnHzIf/vKVR4xIzjcgBbjAIKI+FqfGBmGBWu8eCpS7lR9JDXdUHOFkw=="; };
|
"@esbuild/linux-x64@npm:0.25.12" = { filename = "@esbuild-linux-x64-npm-0.25.12-07c7c22cce-10c0.zip"; hash = "sha512-U2QGT8ZIZN8q2WPSFDC32+sZGKgp49gvnHzIf/vKVR4xIzjcgBbjAIKI+FqfGBmGBWu8eCpS7lR9JDXdUHOFkw=="; };
|
||||||
"@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0" = { filename = "@quixos-camino-package-runtime-https-5a5a438f14-75b1ffcea9.zip"; hash = "sha512-dbH/zqm6gwFck1pSrJAEXNUl6wfHpOL+jj4IwdHCyf5VOMKInCLr73Yx9NYUvqn3zw3AOfdm/8bUeTz2Htxo/A=="; };
|
"@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=a998690446ecf647e3af78e369492c1a3663b66d" = { filename = "@quixos-camino-package-runtime-https-683bcbf33c-c90d5d5c53.zip"; hash = "sha512-yQ1dXFMR2k+xbkka2rrhsAcrQFZlJAZEYM0hqwGzdV5RJ+fhQEh3BEgoPiL2yxrxulU4zg/jsj8BTBFRp1feyg=="; };
|
||||||
"@types/node@npm:24.13.3" = { filename = "@types-node-npm-24.13.3-b512a0bbeb-a5bc08f49b.zip"; hash = "sha512-pbwI9JuVgdzcqQ4CzXcZejx5mECAdmSULlzVFhpVPU0q6AZPfjKUQQ10jX0Ji1wYSL5/pQwG8pxBk6sWvk5Z6w=="; };
|
"@types/node@npm:24.13.3" = { filename = "@types-node-npm-24.13.3-b512a0bbeb-a5bc08f49b.zip"; hash = "sha512-pbwI9JuVgdzcqQ4CzXcZejx5mECAdmSULlzVFhpVPU0q6AZPfjKUQQ10jX0Ji1wYSL5/pQwG8pxBk6sWvk5Z6w=="; };
|
||||||
"@types/prop-types@npm:15.7.15" = { filename = "@types-prop-types-npm-15.7.15-cefe16a1fa-b59aad1ad1.zip"; hash = "sha512-tZqtGtGb8XM89ST9TmGBlsbHaQ9I7nCjJ+tFCkKquOigY/vlnKClcBrr4tktWCKSwPuEXqV0dPahX2mUsOJgsg=="; };
|
"@types/prop-types@npm:15.7.15" = { filename = "@types-prop-types-npm-15.7.15-cefe16a1fa-b59aad1ad1.zip"; hash = "sha512-tZqtGtGb8XM89ST9TmGBlsbHaQ9I7nCjJ+tFCkKquOigY/vlnKClcBrr4tktWCKSwPuEXqV0dPahX2mUsOJgsg=="; };
|
||||||
"@types/react@npm:18.3.31" = { filename = "@types-react-npm-18.3.31-d376eb19a5-44180549dd.zip"; hash = "sha512-RBgFSd0EX1Nuzs0545qs34KOdq3BxKkLEy9FPiPMNwxGSNkQKuQBFy69j9ixl3qQGjniFOU+x3FxsnUUtYjBeQ=="; };
|
"@types/react@npm:18.3.31" = { filename = "@types-react-npm-18.3.31-d376eb19a5-44180549dd.zip"; hash = "sha512-RBgFSd0EX1Nuzs0545qs34KOdq3BxKkLEy9FPiPMNwxGSNkQKuQBFy69j9ixl3qQGjniFOU+x3FxsnUUtYjBeQ=="; };
|
||||||
|
|||||||
@@ -213,14 +213,14 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0":
|
"@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=a998690446ecf647e3af78e369492c1a3663b66d":
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
resolution: "@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0"
|
resolution: "@quixos/camino-package-runtime@https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=a998690446ecf647e3af78e369492c1a3663b66d"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@bufbuild/protobuf": "npm:^2.12.1"
|
"@bufbuild/protobuf": "npm:^2.12.1"
|
||||||
"@connectrpc/connect": "npm:^2.1.2"
|
"@connectrpc/connect": "npm:^2.1.2"
|
||||||
"@connectrpc/connect-node": "npm:^2.1.2"
|
"@connectrpc/connect-node": "npm:^2.1.2"
|
||||||
checksum: 10c0/75b1ffcea9ba83015c935a52ac90045cd525eb07c7a4e2fe8e3e08c1d1c2c9fe5538c2889c22ebef7631f4d614bea9f7cf0dc039f766ffc6d4793cf61edc68fc
|
checksum: 10c0/c90d5d5c5311da4fb16e491adabae1b0072b40566524064460cd21ab01b3755e5127e7e14048770448283e22f6cb1af1ba5538ce0fe3b23f014c1151a757deca
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@quixos/project-react-runtime@workspace:."
|
resolution: "@quixos/project-react-runtime@workspace:."
|
||||||
dependencies:
|
dependencies:
|
||||||
"@quixos/camino-package-runtime": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=110e41b268c8ac309e6757f2af3331de417ff9b0"
|
"@quixos/camino-package-runtime": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git#commit=a998690446ecf647e3af78e369492c1a3663b66d"
|
||||||
"@types/node": "npm:^24"
|
"@types/node": "npm:^24"
|
||||||
"@types/react": "npm:^18.3.12"
|
"@types/react": "npm:^18.3.12"
|
||||||
esbuild: "npm:^0.25.12"
|
esbuild: "npm:^0.25.12"
|
||||||
|
|||||||
Reference in New Issue
Block a user