@objectstack/platform-objects 7.2.0 → 7.2.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.
@@ -223,6 +223,13 @@ declare const SystemOverviewDashboard: {
223
223
  role?: string | undefined;
224
224
  } | undefined;
225
225
  }[];
226
+ _lock?: "full" | "none" | "no-overlay" | "no-delete" | undefined;
227
+ _lockReason?: string | undefined;
228
+ _lockSource?: "artifact" | "package" | "env-forced" | undefined;
229
+ _provenance?: "package" | "env-forced" | "org" | undefined;
230
+ _packageId?: string | undefined;
231
+ _packageVersion?: string | undefined;
232
+ _lockDocsUrl?: string | undefined;
226
233
  description?: string | undefined;
227
234
  header?: {
228
235
  showTitle: boolean;
@@ -277,6 +284,11 @@ declare const SystemOverviewDashboard: {
277
284
  pageSize?: number | undefined;
278
285
  debounceMs?: number | undefined;
279
286
  } | undefined;
287
+ protection?: {
288
+ lock: "full" | "none" | "no-overlay" | "no-delete";
289
+ reason: string;
290
+ docsUrl?: string | undefined;
291
+ } | undefined;
280
292
  };
281
293
 
282
294
  /**
@@ -223,6 +223,13 @@ declare const SystemOverviewDashboard: {
223
223
  role?: string | undefined;
224
224
  } | undefined;
225
225
  }[];
226
+ _lock?: "full" | "none" | "no-overlay" | "no-delete" | undefined;
227
+ _lockReason?: string | undefined;
228
+ _lockSource?: "artifact" | "package" | "env-forced" | undefined;
229
+ _provenance?: "package" | "env-forced" | "org" | undefined;
230
+ _packageId?: string | undefined;
231
+ _packageVersion?: string | undefined;
232
+ _lockDocsUrl?: string | undefined;
226
233
  description?: string | undefined;
227
234
  header?: {
228
235
  showTitle: boolean;
@@ -277,6 +284,11 @@ declare const SystemOverviewDashboard: {
277
284
  pageSize?: number | undefined;
278
285
  debounceMs?: number | undefined;
279
286
  } | undefined;
287
+ protection?: {
288
+ lock: "full" | "none" | "no-overlay" | "no-delete";
289
+ reason: string;
290
+ docsUrl?: string | undefined;
291
+ } | undefined;
280
292
  };
281
293
 
282
294
  /**
@@ -10,9 +10,13 @@ var SETUP_APP = {
10
10
  icon: "settings",
11
11
  active: true,
12
12
  isDefault: false,
13
- // ADR-0010 — core admin UI must not be overlay-edited or deleted.
14
- _lock: "full",
15
- _lockReason: "Core admin UI shipped by @objectstack/platform-objects \u2014 see ADR-0010.",
13
+ // ADR-0010 §3.7 author-facing protection block. Loader translates
14
+ // this into the `_lock` envelope at registration time.
15
+ protection: {
16
+ lock: "full",
17
+ reason: "Core admin UI shipped by @objectstack/platform-objects \u2014 see ADR-0010.",
18
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
19
+ },
16
20
  branding: {
17
21
  primaryColor: "#475569"
18
22
  // Slate-600 — neutral admin palette
@@ -244,6 +248,31 @@ var STUDIO_APP = {
244
248
  // Indigo-500 — distinct from Setup's slate
245
249
  },
246
250
  requiredPermissions: ["studio.access"],
251
+ contextSelectors: [
252
+ {
253
+ // Package scope — pinned to the sidebar header. Selecting a package
254
+ // injects `{active_package}` into every `metadata:resource` nav
255
+ // item below, so the whole workbench filters to that package in
256
+ // one click. Options come from the installed-packages REST surface,
257
+ // narrowed to project-scoped packages: this dropdown exists so
258
+ // third-party developers can scope to *their* custom package, so we
259
+ // deliberately hide the platform's own system/cloud kernel packages
260
+ // (auth, security, audit, queue, …) which are not user-authored.
261
+ id: "active_package",
262
+ label: "Package",
263
+ icon: "package",
264
+ optionsSource: {
265
+ endpoint: "/api/v1/packages",
266
+ valueKey: "manifest.id",
267
+ labelKey: "manifest.name",
268
+ filter: [{ key: "manifest.scope", op: "nin", value: ["system", "cloud"] }]
269
+ },
270
+ includeAll: true,
271
+ allValue: "",
272
+ persist: "query",
273
+ placement: "sidebar_header"
274
+ }
275
+ ],
247
276
  navigation: [
248
277
  {
249
278
  id: "group_overview",
@@ -274,7 +303,7 @@ var STUDIO_APP = {
274
303
  type: "component",
275
304
  label: "Objects",
276
305
  componentRef: "metadata:resource",
277
- params: { type: "object" },
306
+ params: { type: "object", package: "{active_package}" },
278
307
  icon: "box"
279
308
  },
280
309
  {
@@ -282,7 +311,7 @@ var STUDIO_APP = {
282
311
  type: "component",
283
312
  label: "Validations",
284
313
  componentRef: "metadata:resource",
285
- params: { type: "validation" },
314
+ params: { type: "validation", package: "{active_package}" },
286
315
  icon: "check-square"
287
316
  }
288
317
  ]
@@ -299,7 +328,7 @@ var STUDIO_APP = {
299
328
  type: "component",
300
329
  label: "Apps",
301
330
  componentRef: "metadata:resource",
302
- params: { type: "app" },
331
+ params: { type: "app", package: "{active_package}" },
303
332
  icon: "app-window"
304
333
  },
305
334
  {
@@ -307,7 +336,7 @@ var STUDIO_APP = {
307
336
  type: "component",
308
337
  label: "Views",
309
338
  componentRef: "metadata:resource",
310
- params: { type: "view" },
339
+ params: { type: "view", package: "{active_package}" },
311
340
  icon: "table"
312
341
  },
313
342
  {
@@ -315,7 +344,7 @@ var STUDIO_APP = {
315
344
  type: "component",
316
345
  label: "Pages",
317
346
  componentRef: "metadata:resource",
318
- params: { type: "page" },
347
+ params: { type: "page", package: "{active_package}" },
319
348
  icon: "file-text"
320
349
  },
321
350
  {
@@ -323,7 +352,7 @@ var STUDIO_APP = {
323
352
  type: "component",
324
353
  label: "Dashboards",
325
354
  componentRef: "metadata:resource",
326
- params: { type: "dashboard" },
355
+ params: { type: "dashboard", package: "{active_package}" },
327
356
  icon: "layout-dashboard"
328
357
  },
329
358
  {
@@ -331,7 +360,7 @@ var STUDIO_APP = {
331
360
  type: "component",
332
361
  label: "Reports",
333
362
  componentRef: "metadata:resource",
334
- params: { type: "report" },
363
+ params: { type: "report", package: "{active_package}" },
335
364
  icon: "bar-chart-3"
336
365
  }
337
366
  ]
@@ -348,7 +377,7 @@ var STUDIO_APP = {
348
377
  type: "component",
349
378
  label: "Actions",
350
379
  componentRef: "metadata:resource",
351
- params: { type: "action" },
380
+ params: { type: "action", package: "{active_package}" },
352
381
  icon: "mouse-pointer-click"
353
382
  },
354
383
  {
@@ -356,7 +385,7 @@ var STUDIO_APP = {
356
385
  type: "component",
357
386
  label: "Hooks",
358
387
  componentRef: "metadata:resource",
359
- params: { type: "hook" },
388
+ params: { type: "hook", package: "{active_package}" },
360
389
  icon: "webhook"
361
390
  }
362
391
  ]
@@ -373,7 +402,7 @@ var STUDIO_APP = {
373
402
  type: "component",
374
403
  label: "Flows",
375
404
  componentRef: "metadata:resource",
376
- params: { type: "flow" },
405
+ params: { type: "flow", package: "{active_package}" },
377
406
  icon: "git-branch"
378
407
  },
379
408
  {
@@ -381,7 +410,7 @@ var STUDIO_APP = {
381
410
  type: "component",
382
411
  label: "Workflow Rules",
383
412
  componentRef: "metadata:resource",
384
- params: { type: "workflow" },
413
+ params: { type: "workflow", package: "{active_package}" },
385
414
  icon: "zap"
386
415
  },
387
416
  {
@@ -389,7 +418,7 @@ var STUDIO_APP = {
389
418
  type: "component",
390
419
  label: "Approval Processes",
391
420
  componentRef: "metadata:resource",
392
- params: { type: "approval" },
421
+ params: { type: "approval", package: "{active_package}" },
393
422
  icon: "check-circle"
394
423
  }
395
424
  ]
@@ -408,7 +437,7 @@ var STUDIO_APP = {
408
437
  type: "component",
409
438
  label: "Agents",
410
439
  componentRef: "metadata:resource",
411
- params: { type: "agent" },
440
+ params: { type: "agent", package: "{active_package}" },
412
441
  icon: "bot"
413
442
  },
414
443
  {
@@ -416,7 +445,7 @@ var STUDIO_APP = {
416
445
  type: "component",
417
446
  label: "Tools",
418
447
  componentRef: "metadata:resource",
419
- params: { type: "tool" },
448
+ params: { type: "tool", package: "{active_package}" },
420
449
  icon: "wrench"
421
450
  },
422
451
  {
@@ -424,7 +453,7 @@ var STUDIO_APP = {
424
453
  type: "component",
425
454
  label: "Skills",
426
455
  componentRef: "metadata:resource",
427
- params: { type: "skill" },
456
+ params: { type: "skill", package: "{active_package}" },
428
457
  icon: "brain"
429
458
  }
430
459
  ]
@@ -477,7 +506,7 @@ var STUDIO_APP = {
477
506
  type: "component",
478
507
  label: "Email Templates",
479
508
  componentRef: "metadata:resource",
480
- params: { type: "email_template" },
509
+ params: { type: "email_template", package: "{active_package}" },
481
510
  icon: "mail"
482
511
  }
483
512
  ]