@nanobpm/urban 0.24.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { HostContext } from "./host.ts";
|
|
2
2
|
import type { AppManifest, Worker } from "@nanobpm/nano-app-schema";
|
|
3
3
|
export type { ActionDecl, AppManifest, AppUi, ChatSurface, Connection, Data, DataSource, DomainField, DomainType, LlmBinding, Models, PagesSurface, Runtime, Security, Surfaces, TaskInboxSurface, Trigger, TriggerAction, Worker, } from "@nanobpm/nano-app-schema";
|
|
4
|
-
declare module "@nanobpm/nano-app-schema" {
|
|
5
|
-
interface Models {
|
|
6
|
-
/** `{{name}}` template sources substituted into model resources at deploy time: globs, a bare
|
|
7
|
-
* directory (scanned), or literal files. A template's name is its file stem
|
|
8
|
-
* (`prompts/review-round.md` → `{{review-round}}`). See `deployModels`. */
|
|
9
|
-
templates?: string[];
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
4
|
/** The job type a worker subscribes to (schema key: `taskType`). */
|
|
13
5
|
export declare function workerJobType(w: Worker): string | undefined;
|
|
14
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/urban",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"description": "Urban: build and run code-first apps on Nano — runtime, derivation toolkit, and CLI in one. Author durable processes with @nanobpm/workflow (defineFlow), a typed datasource, forms, triggers and surfaces from a nano.app.json manifest, on Node or Deno.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"test:deno": "deno test -A --no-check src/"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@nanobpm/nano-app-schema": "^0.
|
|
65
|
+
"@nanobpm/nano-app-schema": "^0.3.0",
|
|
66
66
|
"@nanobpm/nano-sdk": "^1.2.3",
|
|
67
67
|
"@nanobpm/workflow": "^0.8.0",
|
|
68
68
|
"bpmn-auto-layout": "^2.0.0-alpha.2",
|
|
@@ -33,20 +33,6 @@ export type {
|
|
|
33
33
|
Worker,
|
|
34
34
|
} from "@nanobpm/nano-app-schema";
|
|
35
35
|
|
|
36
|
-
// The published `@nanobpm/nano-app-schema` does not declare `models.templates`; the manifest
|
|
37
|
-
// validator only enforces `additionalProperties:false` at the top level (see validate.ts), so the
|
|
38
|
-
// nested key is accepted at runtime. Augment `Models` here so the deploy path can read it typed
|
|
39
|
-
// (no cast) until it is formalized in the schema package. (The top-level `ui` block, by contrast,
|
|
40
|
-
// now ships natively in the schema as `AppUi` — re-exported above — so it needs no shim.)
|
|
41
|
-
declare module "@nanobpm/nano-app-schema" {
|
|
42
|
-
interface Models {
|
|
43
|
-
/** `{{name}}` template sources substituted into model resources at deploy time: globs, a bare
|
|
44
|
-
* directory (scanned), or literal files. A template's name is its file stem
|
|
45
|
-
* (`prompts/review-round.md` → `{{review-round}}`). See `deployModels`. */
|
|
46
|
-
templates?: string[];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
36
|
/** The job type a worker subscribes to (schema key: `taskType`). */
|
|
51
37
|
export function workerJobType(w: Worker): string | undefined {
|
|
52
38
|
return w.taskType;
|