@cosmicdrift/kumiko-types 0.323.0 → 0.325.0
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.
- package/package.json +1 -1
- package/src/fields.ts +15 -0
- package/src/handlers.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.325.0",
|
|
4
4
|
"description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
package/src/fields.ts
CHANGED
|
@@ -259,6 +259,11 @@ export type TextFieldDef = {
|
|
|
259
259
|
readonly filterable?: boolean;
|
|
260
260
|
readonly encrypted?: boolean;
|
|
261
261
|
readonly sensitive?: boolean;
|
|
262
|
+
/** A later run reads this field's value as an instruction — prompt, rule,
|
|
263
|
+
* template. Every create/update whose payload writes it requires agent.risk
|
|
264
|
+
* "high" on the directly-dispatched entry handler; a revert doesn't undo a
|
|
265
|
+
* run that already read the compromised value. See irreversible-operation-gate. */
|
|
266
|
+
readonly readAsInstruction?: boolean;
|
|
262
267
|
/** "password" is a pure render hint (masked input) — no storage semantics. */
|
|
263
268
|
readonly format?: "email" | "url" | "phone" | "password";
|
|
264
269
|
readonly default?: string;
|
|
@@ -300,6 +305,11 @@ export type LongTextFieldDef = {
|
|
|
300
305
|
readonly required?: boolean;
|
|
301
306
|
readonly encrypted?: boolean;
|
|
302
307
|
readonly sensitive?: boolean;
|
|
308
|
+
/** A later run reads this field's value as an instruction — prompt, rule,
|
|
309
|
+
* template. Every create/update whose payload writes it requires agent.risk
|
|
310
|
+
* "high" on the directly-dispatched entry handler; a revert doesn't undo a
|
|
311
|
+
* run that already read the compromised value. See irreversible-operation-gate. */
|
|
312
|
+
readonly readAsInstruction?: boolean;
|
|
303
313
|
readonly default?: string;
|
|
304
314
|
readonly access?: FieldAccess;
|
|
305
315
|
readonly multiline?: boolean | { readonly rows?: number };
|
|
@@ -663,6 +673,11 @@ export type JsonbFieldDef = {
|
|
|
663
673
|
readonly type: "jsonb";
|
|
664
674
|
readonly description?: string;
|
|
665
675
|
readonly sensitive?: boolean;
|
|
676
|
+
/** A later run reads this field's value as an instruction — prompt, rule,
|
|
677
|
+
* template. Every create/update whose payload writes it requires agent.risk
|
|
678
|
+
* "high" on the directly-dispatched entry handler; a revert doesn't undo a
|
|
679
|
+
* run that already read the compromised value. See irreversible-operation-gate. */
|
|
680
|
+
readonly readAsInstruction?: boolean;
|
|
666
681
|
readonly access?: FieldAccess;
|
|
667
682
|
} & ResolvedPiiFlags;
|
|
668
683
|
|
package/src/handlers.ts
CHANGED
|
@@ -767,6 +767,9 @@ export type JobContext = SharedContextFields & {
|
|
|
767
767
|
readonly systemUser: SessionUser;
|
|
768
768
|
readonly log: Logger;
|
|
769
769
|
readonly triggeredBy: { readonly id: string; readonly tenantId: TenantId } | null;
|
|
770
|
+
// 1-based run number; finalAttempt = no retry follows if this run throws. A sequential-lock re-enqueue restarts at 1.
|
|
771
|
+
readonly attempt: number;
|
|
772
|
+
readonly finalAttempt: boolean;
|
|
770
773
|
// Only present for jobs whose owning feature declares r.systemScope().
|
|
771
774
|
// assertTenantMatch()/acknowledgeCrossTenant() return a TenantDb; a raw,
|
|
772
775
|
// tenant-unfiltered DbRunner instead comes from ctx.systemDb.unsafeRaw(reason)
|