Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b328ad1cdb | ||
|
|
92508de668 |
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"monorepoCommit": "810617559b0ee9c662c4b566e16cb3629b44fbce",
|
||||
"monorepoCommit": "099bb9f5d64bce50b20b6cb51d5333f009b8d418",
|
||||
"sourcePath": "quixos-instance/packages/project-runtime"
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"messages": {
|
||||
"org.quixos.web-studio.SearchDocument": {
|
||||
"module": "../messages.js",
|
||||
"export": "searchDocumentBinding"
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+7
-7
@@ -37,17 +37,17 @@
|
||||
"quixosNixHelpers": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1789364768,
|
||||
"narHash": "sha256-6tINqOSLd3TTACk/HAfhXqo07H69yjX3Q/DrrAPWzus=",
|
||||
"ref": "refs/tags/quixos-reachability/cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
||||
"rev": "cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
||||
"revCount": 22,
|
||||
"lastModified": 1789444178,
|
||||
"narHash": "sha256-/a560j65vYLy/gcwa662cJLo09C14Kj6YjvItC+Ugfo=",
|
||||
"ref": "refs/tags/quixos-reachability/6657af7ca0501454f27032141c57dd09e7ecd79c",
|
||||
"rev": "6657af7ca0501454f27032141c57dd09e7ecd79c",
|
||||
"revCount": 27,
|
||||
"type": "git",
|
||||
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git"
|
||||
},
|
||||
"original": {
|
||||
"ref": "refs/tags/quixos-reachability/cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
||||
"rev": "cf7945abb6ee2533a34dff4a7d4a956e70efe007",
|
||||
"ref": "refs/tags/quixos-reachability/6657af7ca0501454f27032141c57dd09e7ecd79c",
|
||||
"rev": "6657af7ca0501454f27032141c57dd09e7ecd79c",
|
||||
"type": "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";
|
||||
|
||||
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/6657af7ca0501454f27032141c57dd09e7ecd79c&rev=6657af7ca0501454f27032141c57dd09e7ecd79c";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
@@ -19,7 +19,6 @@
|
||||
inherit inputs nixpkgs flake-utils;
|
||||
packageRoot = ./.;
|
||||
migrationEntrypoint = "dist/migrate.js";
|
||||
bindingOptions = builtins.fromJSON (builtins.readFile ./bindings.json);
|
||||
promptName = "project-runtime";
|
||||
bundle = {
|
||||
entry = "dist/server.js";
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"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=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24",
|
||||
|
||||
+3
-3
@@ -6,14 +6,14 @@ external atom Task id "atom:task";
|
||||
package ProjectRuntime id "package:project-runtime" revision "package:project-runtime@1" {
|
||||
constructor createProject id "export:project-runtime:create-project" constructs Project : unit;
|
||||
operation addTask id "export:project-runtime:add-task" : string -> atom-ref<Task> mode call receiver atom Project requires {
|
||||
edge tasks id "port:project-actions:tasks" : many-unique atom Task [connect];
|
||||
interface tasks id "port:project-runtime:tasks" : ProjectTasks;
|
||||
constructor task id "port:project-actions:task-constructor" : Task input string;
|
||||
};
|
||||
operation taskCountGet id "export:project-runtime:task-count-get" : unit -> uint32 mode call receiver atom Project requires {
|
||||
edge tasks id "port:project-count:tasks" : many-unique atom Task [resolve];
|
||||
interface tasks id "port:project-runtime:tasks" : ProjectTasks;
|
||||
};
|
||||
operation taskCountWatch id "export:project-runtime:task-count-watch" : unit -> watch-handle mode watch-start emits uint32 receiver atom Project requires {
|
||||
edge tasks id "port:project-count:tasks" : many-unique atom Task [resolve];
|
||||
interface tasks id "port:project-runtime:tasks" : ProjectTasks;
|
||||
};
|
||||
operation taskCountWatchStop id "export:project-runtime:task-count-watch-stop" : watch-handle -> unit mode watch-stop receiver atom Project;
|
||||
operation searchDocumentGet id "export:project-runtime:search-document-get" : unit -> message "org.quixos.web-studio.SearchDocument" mode call receiver atom Project requires {
|
||||
|
||||
+3
-3
@@ -1,14 +1,14 @@
|
||||
quixos-lock version 1 {
|
||||
quixos source {
|
||||
repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git";
|
||||
commit "810617559b0ee9c662c4b566e16cb3629b44fbce";
|
||||
commit "099bb9f5d64bce50b20b6cb51d5333f009b8d418";
|
||||
}
|
||||
interface Named source {
|
||||
repository "https://repos.quixos.org/quixos-templates/interface-named.git";
|
||||
commit "23632b4d803f16dfa14771fb7d91d19ed9d39602";
|
||||
commit "59debb4a72353ea1740fe15252a52cd1086882bd";
|
||||
}
|
||||
interface ProjectTasks source {
|
||||
repository "https://repos.quixos.org/quixos-templates/interface-project-tasks.git";
|
||||
commit "e47073ebb4655800809fe624670c61cff0852eb7";
|
||||
commit "73f0b11bf0f2b5f808b68a803b6fdd3ce4aaac91";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,48 +0,0 @@
|
||||
{
|
||||
"generatedBy": "qx-scaffold-v1",
|
||||
"name": "ProjectRuntime",
|
||||
"id": "package:project-runtime",
|
||||
"revision": "package:project-runtime@1",
|
||||
"exports": [
|
||||
{
|
||||
"name": "createProject",
|
||||
"id": "export:project-runtime:create-project",
|
||||
"file": "src/impl/createProject.ts"
|
||||
},
|
||||
{
|
||||
"name": "addTask",
|
||||
"id": "export:project-runtime:add-task",
|
||||
"file": "src/impl/addTask.ts"
|
||||
},
|
||||
{
|
||||
"name": "taskCountGet",
|
||||
"id": "export:project-runtime:task-count-get",
|
||||
"file": "src/impl/taskCountGet.ts"
|
||||
},
|
||||
{
|
||||
"name": "taskCountWatch",
|
||||
"id": "export:project-runtime:task-count-watch",
|
||||
"file": "src/impl/taskCountWatch.ts"
|
||||
},
|
||||
{
|
||||
"name": "taskCountWatchStop",
|
||||
"id": "export:project-runtime:task-count-watch-stop",
|
||||
"file": "src/impl/taskCountWatchStop.ts"
|
||||
},
|
||||
{
|
||||
"name": "searchDocumentGet",
|
||||
"id": "export:project-runtime:search-document-get",
|
||||
"file": "src/impl/searchDocumentGet.ts"
|
||||
},
|
||||
{
|
||||
"name": "searchDocumentWatch",
|
||||
"id": "export:project-runtime:search-document-watch",
|
||||
"file": "src/impl/searchDocumentWatch.ts"
|
||||
},
|
||||
{
|
||||
"name": "searchDocumentWatchStop",
|
||||
"id": "export:project-runtime:search-document-watch-stop",
|
||||
"file": "src/impl/searchDocumentWatchStop.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
+149
-17
File diff suppressed because one or more lines are too long
+2
-2
@@ -3,11 +3,11 @@ import type { Contexts } from "./gen/qx.js";
|
||||
export const createProject = ({ objectId }: Contexts["createProject"]) => objectId;
|
||||
export const addTask = async ({ input, ports }: Contexts["addTask"]) => {
|
||||
const task = await ports.task.construct(input.trim() || "Untitled task");
|
||||
await ports.tasks.connect(task);
|
||||
await ports.tasks["tasks.connect"](task);
|
||||
return task;
|
||||
};
|
||||
export const taskCount = { kind: "derived" as const, get: async ({ ports }: Contexts["taskCountGet"]) =>
|
||||
(await ports.tasks.resolve()).length,
|
||||
(await ports.tasks["tasks.resolve"]()).length,
|
||||
};
|
||||
export const searchDocument = { kind: "derived" as const, get: async ({ ports }: Contexts["searchDocumentGet"]) => {
|
||||
const [name, tasks] = await Promise.all([ports.named["name.get"](), ports.tasks["tasks.resolve"]()]);
|
||||
|
||||
+1
-1
@@ -159,7 +159,7 @@ cacheEntries = {
|
||||
"@bufbuild/protobuf@npm:2.12.1" = { filename = "@bufbuild-protobuf-npm-2.12.1-d8afb467b3-2d40cfe4ec.zip"; hash = "sha512-LUDP5Ow7sOPwarLih3HcXcVm6qywVfvok9dWIbBAfQJy1I9ApJCtR97YOe1UFRThr3G7E68CSzrjbvDFbVbdqQ=="; };
|
||||
"@connectrpc/connect-node@npm:2.1.2" = { filename = "@connectrpc-connect-node-npm-2.1.2-021434d5d5-ba8b0c9384.zip"; hash = "sha512-uosMk4TDgps3eqeoJtwM1Qpgk1J9LscBRgSRKDYzbqlgSitazqQrEEd/i+RWnknd7WbKD8d/X1sCcDXgKeE+qQ=="; };
|
||||
"@connectrpc/connect@npm:2.1.2" = { filename = "@connectrpc-connect-npm-2.1.2-ab34825de3-4e15000890.zip"; hash = "sha512-ThUACJAjt1Lv1E+pQKWuHh+gDhvrxLoM7ScruTWSDYw7hbd0UOZErUQruMqaJ1sMFxNviWuo7/A2F4Ex2wHWFQ=="; };
|
||||
"@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=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2" = { filename = "@quixos-camino-package-runtime-https-08b8790f1a-5bde059ead.zip"; hash = "sha512-W94Fnq0rn4MyBqRUUhH0ZcTzVv9MfF59dHtwpFLhg+/jK4QG5wi/uNgRR3xEVszpN8yrBWO6uiJGlkGmNnrczA=="; };
|
||||
"@types/node@npm:24.13.3" = { filename = "@types-node-npm-24.13.3-b512a0bbeb-a5bc08f49b.zip"; hash = "sha512-pbwI9JuVgdzcqQ4CzXcZejx5mECAdmSULlzVFhpVPU0q6AZPfjKUQQ10jX0Ji1wYSL5/pQwG8pxBk6sWvk5Z6w=="; };
|
||||
"@typescript/typescript-linux-arm64@npm:7.0.2" = { filename = "@typescript-typescript-linux-arm64-npm-7.0.2-9cacfc53a0-10c0.zip"; hash = "sha512-s4c7nGT/lQIw6x0IfrL0b3ECy/D0g7UoDLdiIWJoM6EGXk5N/dmXdxUdA8Cr3hV/3nO2BYKTQ6Ai8/zGhiSQ3A=="; };
|
||||
"@typescript/typescript-linux-x64@npm:7.0.2" = { filename = "@typescript-typescript-linux-x64-npm-7.0.2-8dd7ff8d24-10c0.zip"; hash = "sha512-k9EUK5CZ3OOPnyslp8SAAonHJpnpPmlaulppI/NmFyCzNs3UN/TLPUkyQia3KIxgbyTzKoXI5L5fl8Uj9bJ7Cg=="; };
|
||||
|
||||
@@ -31,14 +31,14 @@ __metadata:
|
||||
languageName: node
|
||||
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=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2":
|
||||
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=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2"
|
||||
dependencies:
|
||||
"@bufbuild/protobuf": "npm:^2.12.1"
|
||||
"@connectrpc/connect": "npm:^2.1.2"
|
||||
"@connectrpc/connect-node": "npm:^2.1.2"
|
||||
checksum: 10c0/75b1ffcea9ba83015c935a52ac90045cd525eb07c7a4e2fe8e3e08c1d1c2c9fe5538c2889c22ebef7631f4d614bea9f7cf0dc039f766ffc6d4793cf61edc68fc
|
||||
checksum: 10c0/5bde059ead2b9f833206a4545211f465c4f356ff4c7c5e7d747b70a452e183efe32b8406e708bfb8d811477c4456cce937ccab0563baba22469641a6367adccc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -46,7 +46,7 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@quixos/project-runtime@workspace:."
|
||||
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=d3d050d9cb84421fd8043ebe34fd0cae9132f6a2"
|
||||
"@types/node": "npm:^24"
|
||||
typescript: "npm:^7.0.2"
|
||||
bin:
|
||||
|
||||
Reference in New Issue
Block a user