@happyvertical/smrt-cli 0.57.33 → 0.57.35
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/agents/app-commands.md +7 -0
- package/agents/cookbook-apply.md +4 -0
- package/dist/{AuditLogCollection-BBbvr8Qc-C7vaibgn.js → AuditLogCollection-BBbvr8Qc-CjFr0idO.js} +1 -1
- package/dist/{OidcIdentity-MVVO3MfG-CDHPYDKP.js → OidcIdentity-MVVO3MfG-B4pDxYl1.js} +2 -2
- package/dist/{OidcIdentityCollection-s4mp3n62-ClPe-MxG.js → OidcIdentityCollection-s4mp3n62-DjEyQuRJ.js} +1 -1
- package/dist/{PasswordCredentialService-DA2Y6H2X-BkTtZgep.js → PasswordCredentialService-DA2Y6H2X-DsZpTPKo.js} +14 -14
- package/dist/{ProfileAssetCollection-BuVAdOiv-CKDGq0OO.js → ProfileAssetCollection-BuVAdOiv-BL42KBF2.js} +3 -3
- package/dist/{ProfileCollection-CMS9dFc0-B0_kJJIG.js → ProfileCollection-CMS9dFc0-Dns5xTee.js} +17 -17
- package/dist/{ProfileLinkCollection-ChK9iEBp-Beu_n0ym.js → ProfileLinkCollection-ChK9iEBp-BmmP4FbO.js} +2 -2
- package/dist/{ProfileMetadataCollection-CAgJyjze-Dn6j8TLu.js → ProfileMetadataCollection-CAgJyjze-DcZ6nrQw.js} +1 -1
- package/dist/{ProfileMetafieldCollection-19ae6Lpf-DZnRqyHn.js → ProfileMetafieldCollection-19ae6Lpf-BRLUdeVY.js} +1 -1
- package/dist/{ProfileRelationshipCollection-BFSlTQ7J-0GTVXG3H.js → ProfileRelationshipCollection-BFSlTQ7J-C35cPV5c.js} +1 -1
- package/dist/{ProfileTypeCollection-B7m698Bl-CKUBK94F.js → ProfileTypeCollection-B7m698Bl-Ce4AaaoE.js} +2 -2
- package/dist/app/cli.d.ts.map +1 -1
- package/dist/app/launchers.d.ts +1 -1
- package/dist/app/launchers.d.ts.map +1 -1
- package/dist/app.js +2 -2
- package/dist/{apply-C7kqOLl6.js → apply-D8dV3HUh.js} +22 -3
- package/dist/{cli-Cgj-996T.js → cli-CBuBU_5T.js} +6 -5
- package/dist/commands/cookbook/apply.d.ts +2 -0
- package/dist/commands/cookbook/apply.d.ts.map +1 -1
- package/dist/commands/cookbook/shared.d.ts.map +1 -1
- package/dist/{commands-CBfRFp3s.js → commands-CwBFXtgx.js} +6 -6
- package/dist/{dist-BwgLxo12.js → dist-BdEB0RqQ.js} +4 -4
- package/dist/{dist-Z6JJM0us.js → dist-BxDpuCty.js} +3 -3
- package/dist/{dist-DcVlOGxM.js → dist-CkYHSCr7.js} +2 -2
- package/dist/{dist-BecJGLYp.js → dist-SezcdZuU.js} +5 -5
- package/dist/index.js +12 -12
- package/dist/{oidcProvisioningPrimitives-Dl9qIcYS-Yu7lvx1k.js → oidcProvisioningPrimitives-Dl9qIcYS-v8sC3E8L.js} +3 -3
- package/dist/{operator-BZ56_M87.js → operator-DQwfV3MU.js} +2 -2
- package/dist/{portability-ClYZy8ut.js → portability-V05XvEu-.js} +1 -1
- package/dist/{resolveIdentity-CR5p_g7K-hJCNYtZ7.js → resolveIdentity-CR5p_g7K-ZnOfbtXX.js} +14 -14
- package/dist/{server-CVEdVgJg.js → server-DEBTDsmH.js} +1 -1
- package/package.json +10 -10
package/agents/app-commands.md
CHANGED
|
@@ -126,3 +126,10 @@ Tests: `src/app/__tests__/` (primitives, operations in-process, real CLI
|
|
|
126
126
|
process, and the template's portability-asset suite ported verbatim); lock,
|
|
127
127
|
lease, state-custody, and readiness cases (including review findings R1, R3,
|
|
128
128
|
T2) live in app-runtime's `src/operator-primitives.test.ts`.
|
|
129
|
+
|
|
130
|
+
`smrt app migrate --relax-columns` explicitly forwards constraint relaxation to
|
|
131
|
+
`db:migrate` under the same operation lock and writer-lease refusal. Without the
|
|
132
|
+
flag, live constraints remain protected. SQLite ordinary inline NOT NULL
|
|
133
|
+
relaxation uses the tracker-owned atomic rebuild; see the core schema-paths
|
|
134
|
+
contract for unsupported shapes and FK validation. Unknown migrate options fail
|
|
135
|
+
before touching local custody or starting the child command.
|
package/agents/cookbook-apply.md
CHANGED
|
@@ -42,6 +42,10 @@ object that is not in its package's manifest, or a policy field the object lacks
|
|
|
42
42
|
untracked-but-unignored files (`git ls-files -co --exclude-standard`), so git-ignored generated output
|
|
43
43
|
(e.g. a stale `src/routes/api/notes`) never reaches the project; uncommitted edits still apply, which
|
|
44
44
|
`git archive HEAD` would drop. A non-git directory is copied whole minus `.git`/`node_modules`.
|
|
45
|
+
Whatever the source, the template repository's own metadata at its root (`.agents/`, `.github/`,
|
|
46
|
+
`AGENTS.md`, `CLAUDE.md`, `renovate.json`) is not copied: it names the template's tracker, forge and CI,
|
|
47
|
+
so an agent in the new project would work against the template repository (#4239). The plan lists it
|
|
48
|
+
as `skippedTemplateFiles`.
|
|
45
49
|
`package.json` `name` becomes the slug of `cookbook.name` when set, else of the target directory's
|
|
46
50
|
basename (never the template's name: the runtime derives the app identity, hence the OS data
|
|
47
51
|
directory, from it), under the template's npm scope, else `@smrt-app` (`scopedProjectName`): SMRT
|
package/dist/{AuditLogCollection-BBbvr8Qc-C7vaibgn.js → AuditLogCollection-BBbvr8Qc-CjFr0idO.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as tenantId, r as TenantScoped } from "./dist-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-CkYHSCr7.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/AuditLogCollection-BBbvr8Qc.js
|
|
@@ -42,7 +42,7 @@ var OidcIdentity = class extends SmrtObject {
|
|
|
42
42
|
* Find identity by issuer and subject
|
|
43
43
|
*/
|
|
44
44
|
static async findBySubject(issuer, subject, options = {}) {
|
|
45
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-
|
|
45
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-DjEyQuRJ.js").then((n) => n.r).then((n) => n.r);
|
|
46
46
|
return await (await OidcIdentityCollection.create(options)).findBySubject(issuer, subject);
|
|
47
47
|
}
|
|
48
48
|
/** Build the collision-free natural key for one OIDC issuer subject. */
|
|
@@ -65,7 +65,7 @@ var OidcIdentity = class extends SmrtObject {
|
|
|
65
65
|
static async findOrCreate(profile, oidcData, options = {}) {
|
|
66
66
|
const profileId = profile.id;
|
|
67
67
|
if (typeof profileId !== "string" || !profileId) throw new Error("OidcIdentity.findOrCreate() requires a saved Profile.");
|
|
68
|
-
const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-CR5p_g7K-
|
|
68
|
+
const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-CR5p_g7K-ZnOfbtXX.js").then((n) => n.t).then((n) => n.i);
|
|
69
69
|
const profileOptions = profile.options ?? {};
|
|
70
70
|
return (await reuseExistingOidcIdentityForProfile(profileId, {
|
|
71
71
|
email: oidcData.email,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
2
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
3
|
-
import { t as OidcIdentity } from "./OidcIdentity-MVVO3MfG-
|
|
3
|
+
import { t as OidcIdentity } from "./OidcIdentity-MVVO3MfG-B4pDxYl1.js";
|
|
4
4
|
import { SmrtCollection } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/OidcIdentityCollection-s4mp3n62.js
|
|
6
6
|
var OidcIdentityCollection_s4mp3n62_exports = /* @__PURE__ */ __exportAll({
|