primitive-admin 1.1.0-alpha.64 → 1.1.0-alpha.66
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/README.md +4 -4
- package/assets/skill/skills/primitive-platform/SKILL.md +83 -13
- package/dist/bin/primitive.js +6 -3
- package/dist/bin/primitive.js.map +1 -1
- package/dist/src/commands/apps.js +14 -5
- package/dist/src/commands/apps.js.map +1 -1
- package/dist/src/commands/config.js +11 -4
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/cron-triggers.js +25 -28
- package/dist/src/commands/cron-triggers.js.map +1 -1
- package/dist/src/commands/env.d.ts +12 -1
- package/dist/src/commands/env.js +96 -21
- package/dist/src/commands/env.js.map +1 -1
- package/dist/src/commands/feature-flags.d.ts +14 -0
- package/dist/src/commands/feature-flags.js +116 -0
- package/dist/src/commands/feature-flags.js.map +1 -0
- package/dist/src/commands/init.d.ts +1 -1
- package/dist/src/commands/init.js +78 -25
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/integrations.js +55 -2
- package/dist/src/commands/integrations.js.map +1 -1
- package/dist/src/commands/prompts.js +58 -3
- package/dist/src/commands/prompts.js.map +1 -1
- package/dist/src/commands/rule-sets.d.ts +1 -1
- package/dist/src/commands/rule-sets.js +1 -0
- package/dist/src/commands/rule-sets.js.map +1 -1
- package/dist/src/commands/sync-app-settings.d.ts +83 -55
- package/dist/src/commands/sync-app-settings.js +131 -200
- package/dist/src/commands/sync-app-settings.js.map +1 -1
- package/dist/src/commands/sync.d.ts +309 -40
- package/dist/src/commands/sync.js +2493 -397
- package/dist/src/commands/sync.js.map +1 -1
- package/dist/src/commands/users.js +92 -1
- package/dist/src/commands/users.js.map +1 -1
- package/dist/src/commands/webhooks.js +59 -2
- package/dist/src/commands/webhooks.js.map +1 -1
- package/dist/src/commands/workflows.js +32 -22
- package/dist/src/commands/workflows.js.map +1 -1
- package/dist/src/lib/api-client.d.ts +51 -4
- package/dist/src/lib/api-client.js +71 -7
- package/dist/src/lib/api-client.js.map +1 -1
- package/dist/src/lib/app-settings-descriptor.d.ts +143 -15
- package/dist/src/lib/app-settings-descriptor.js +315 -28
- package/dist/src/lib/app-settings-descriptor.js.map +1 -1
- package/dist/src/lib/config-object-descriptor.js +6 -14
- package/dist/src/lib/config-object-descriptor.js.map +1 -1
- package/dist/src/lib/config-payload.js +14 -3
- package/dist/src/lib/config-payload.js.map +1 -1
- package/dist/src/lib/config-surface.d.ts +38 -1
- package/dist/src/lib/config-surface.js +123 -1
- package/dist/src/lib/config-surface.js.map +1 -1
- package/dist/src/lib/env-resolver-core.d.ts +147 -0
- package/dist/src/lib/env-resolver-core.js +265 -0
- package/dist/src/lib/env-resolver-core.js.map +1 -0
- package/dist/src/lib/env-resolver.d.ts +28 -6
- package/dist/src/lib/env-resolver.js +44 -32
- package/dist/src/lib/env-resolver.js.map +1 -1
- package/dist/src/lib/generated-config-surfaces.d.ts +66 -0
- package/dist/src/lib/generated-config-surfaces.js +391 -104
- package/dist/src/lib/generated-config-surfaces.js.map +1 -1
- package/dist/src/lib/integration-request-config.d.ts +30 -0
- package/dist/src/lib/integration-request-config.js +145 -0
- package/dist/src/lib/integration-request-config.js.map +1 -0
- package/dist/src/lib/local-state.d.ts +55 -0
- package/dist/src/lib/local-state.js +167 -0
- package/dist/src/lib/local-state.js.map +1 -0
- package/dist/src/lib/log-inspection.d.ts +2 -2
- package/dist/src/lib/log-inspection.js +3 -3
- package/dist/src/lib/log-inspection.js.map +1 -1
- package/dist/src/lib/object-status-filter.d.ts +22 -0
- package/dist/src/lib/object-status-filter.js +45 -0
- package/dist/src/lib/object-status-filter.js.map +1 -0
- package/dist/src/lib/server-text-normalization.d.ts +51 -0
- package/dist/src/lib/server-text-normalization.js +90 -0
- package/dist/src/lib/server-text-normalization.js.map +1 -0
- package/dist/src/lib/swift-codegen/generator.js +2 -4
- package/dist/src/lib/swift-codegen/generator.js.map +1 -1
- package/dist/src/lib/sync-resource-types.d.ts +8 -0
- package/dist/src/lib/sync-resource-types.js +21 -2
- package/dist/src/lib/sync-resource-types.js.map +1 -1
- package/dist/src/lib/template.d.ts +27 -0
- package/dist/src/lib/template.js +46 -20
- package/dist/src/lib/template.js.map +1 -1
- package/dist/src/lib/workflow-defaults.d.ts +1 -2
- package/dist/src/lib/workflow-defaults.js +3 -3
- package/dist/src/lib/workflow-defaults.js.map +1 -1
- package/dist/src/lib/workflow-payload.js +0 -6
- package/dist/src/lib/workflow-payload.js.map +1 -1
- package/dist/src/types/index.d.ts +32 -7
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-sets.js","sourceRoot":"","sources":["../../../src/commands/rule-sets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAEL,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,MAAM,IAAI,WAAW,EACrB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,IAAI,GACL,MAAM,kBAAkB,CAAC;AAG1B,4EAA4E;AAC5E,qDAAqD;AACrD,gFAAgF;AAChF,gFAAgF;AAChF,iFAAiF;AACjF,kFAAkF;AAClF,iFAAiF;AACjF,mFAAmF;AACnF,4EAA4E;AAC5E,gFAAgF;AAChF,kEAAkE;AAClE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,UAAU;IACV,UAAU;IACV,KAAK;IACL,OAAO;IACP,YAAY;IACZ,eAAe;IACf,aAAa;IACb,WAAW;
|
|
1
|
+
{"version":3,"file":"rule-sets.js","sourceRoot":"","sources":["../../../src/commands/rule-sets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAEL,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,MAAM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C,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC5C,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;gBACxB,OAAO,CAAC,GAAG,CACT,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE;oBACxB,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;oBACvC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;oBACtE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;iBAC3E,CAAC,CACH,CAAC;YACJ,CAAC;QACH,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;AAEP,CAAC"}
|
|
@@ -11,13 +11,22 @@
|
|
|
11
11
|
* plus the one thing the file cannot answer — `renderAppSettings`, the
|
|
12
12
|
* server-effective view behind `primitive apps get` (#2759).
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
* `
|
|
16
|
-
*
|
|
14
|
+
* #2880 added the comparison the whole epic is about — `appSettingsFieldDiffs`,
|
|
15
|
+
* `hashAppSettingsForDiff` and `appSettingsNameExcluded` — and removed the last
|
|
16
|
+
* caller of the retired byte-hash/present-only rule (the `settings push`
|
|
17
|
+
* orchestrator #2645 had already unhooked). `app.toml` is now compared field by
|
|
18
|
+
* field against live state by both commands, over the full writable descriptor
|
|
19
|
+
* set, and applied as the whole truth.
|
|
20
|
+
*
|
|
21
|
+
* Google is a typed client map here (#2891): `googleClients` renders as
|
|
22
|
+
* `[auth.google.clients.<type>]`, and each entry's `clientSecret` holds a whole
|
|
23
|
+
* `{{secrets.KEY}}` reference, not the secret itself, so the map pulls, pushes,
|
|
24
|
+
* diffs and shows like any other setting. The secrets' values live only in the
|
|
17
25
|
* app secret store (`primitive secrets set`).
|
|
18
26
|
*/
|
|
19
27
|
import type { ApiClient } from "../lib/api-client.js";
|
|
20
28
|
import { type AppSettingSection } from "../lib/app-settings-descriptor.js";
|
|
29
|
+
import type { SyncState } from "../types/index.js";
|
|
21
30
|
/** The app-settings file name inside a sync directory. */
|
|
22
31
|
export declare const APP_TOML_FILENAME = "app.toml";
|
|
23
32
|
/** Absolute path to `app.toml` inside a sync directory. */
|
|
@@ -33,33 +42,19 @@ export declare function serializeAppSettings(settings: any): string;
|
|
|
33
42
|
* producer.
|
|
34
43
|
*/
|
|
35
44
|
export declare function writeAppSettingsToml(configDir: string, settings: any): string;
|
|
36
|
-
/**
|
|
37
|
-
* The pull-time warning for a `googleClientSecret` the server withheld, or
|
|
38
|
-
* `null` when the stored value is a reference (or unset).
|
|
39
|
-
*
|
|
40
|
-
* Reported by `config pull` wherever it writes `app.toml` — no pull said
|
|
41
|
-
* anything at all before (#2307). A withheld value is
|
|
42
|
-
* absent from the `app.toml` they just wrote AND absent from a push built out
|
|
43
|
-
* of that file, and a settings write that does not carry a `googleClientSecret`
|
|
44
|
-
* is exactly what the server rejects while the stored value is unmigrated
|
|
45
|
-
* (`validateGoogleClientSecretMigration`). So the pulled file is not pushable
|
|
46
|
-
* until the field is migrated, and pull is where the operator can still act on
|
|
47
|
-
* that.
|
|
48
|
-
*
|
|
49
|
-
* `subject` lets `config pull` name the file and match the indentation of its
|
|
50
|
-
* other per-entity lines.
|
|
51
|
-
*/
|
|
52
|
-
export declare function pulledGoogleClientSecretWarning(settings: any, options?: {
|
|
53
|
-
subject?: string;
|
|
54
|
-
}): string | null;
|
|
55
45
|
/**
|
|
56
46
|
* Validate a parsed `app.toml` for push and return the fatal errors (a type
|
|
57
|
-
* mismatch
|
|
58
|
-
*
|
|
59
|
-
*
|
|
47
|
+
* mismatch, an unrecognized or retired key, a missing required key). An empty
|
|
48
|
+
* array means the push may proceed. Warnings (advisory notes) are intentionally
|
|
49
|
+
* not returned here — the caller surfaces those at apply time.
|
|
50
|
+
*
|
|
51
|
+
* ONE validator, run by `config push`'s preflight AND by `config diff` (#2880
|
|
52
|
+
* criterion 1): a file diff calls Synced is a file push accepts, and a file
|
|
53
|
+
* push refuses is named by diff with the identical message.
|
|
60
54
|
*/
|
|
61
55
|
export declare function collectAppSettingsPushErrors(tomlData: Record<string, any>, options?: {
|
|
62
56
|
isCrossAppPush?: boolean;
|
|
57
|
+
excludeName?: boolean;
|
|
63
58
|
}): string[];
|
|
64
59
|
/**
|
|
65
60
|
* Render server-effective settings grouped by `app.toml` section — the view
|
|
@@ -69,15 +64,11 @@ export declare function collectAppSettingsPushErrors(tomlData: Record<string, an
|
|
|
69
64
|
* where the hand-curated block `apps get` used to print showed whichever
|
|
70
65
|
* fields somebody remembered to add.
|
|
71
66
|
*
|
|
72
|
-
* Nothing is redacted (#2256):
|
|
73
|
-
*
|
|
74
|
-
* reference
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* cannot reach the terminal or `app.toml` through this path either — the
|
|
78
|
-
* withheld value is reported as a remediation note instead, the same way
|
|
79
|
-
* `primitive webhooks get` reports a legacy `signingSecret`. Without it the
|
|
80
|
-
* operator sees a blank `googleClientSecret` and no reason for it.
|
|
67
|
+
* Nothing is redacted (#2256, #2891): the only credential-shaped settings are
|
|
68
|
+
* the per-entry `clientSecret`s inside `googleClients`, and each is a whole
|
|
69
|
+
* `{{secrets.KEY}}` reference rather than the secret itself — so printing one
|
|
70
|
+
* tells the operator which secret is in use rather than leaking one. There is
|
|
71
|
+
* no withheld state left to explain.
|
|
81
72
|
*
|
|
82
73
|
* Takes settings rather than a client, and never exits: `apps get` fetches the
|
|
83
74
|
* app and its settings together and tolerates a settings fetch it is not
|
|
@@ -85,33 +76,48 @@ export declare function collectAppSettingsPushErrors(tomlData: Record<string, an
|
|
|
85
76
|
*/
|
|
86
77
|
export declare function renderAppSettings(settings: any): void;
|
|
87
78
|
/**
|
|
88
|
-
* Write the pulled `app.toml
|
|
79
|
+
* Write the pulled `app.toml`.
|
|
89
80
|
*
|
|
90
|
-
* The
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* `--only app` — the `settings pull` that used to share it is gone.
|
|
81
|
+
* The file carries EVERY writable setting as of #2891 — the server withholds
|
|
82
|
+
* nothing, so there is no longer a class of value the pull has to warn about
|
|
83
|
+
* being absent (#2307's warning went with the withholding layer). `config pull`
|
|
84
|
+
* calls this for `app.toml`, whether the pull is whole-tree or `--only app`.
|
|
95
85
|
*/
|
|
96
86
|
export declare function writePulledAppSettings(configDir: string, settings: any, options?: {
|
|
97
|
-
subject?: string;
|
|
98
87
|
log?: (message: string) => void;
|
|
99
88
|
}): {
|
|
100
89
|
path: string;
|
|
101
90
|
contentHash: string;
|
|
102
91
|
};
|
|
103
92
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
93
|
+
* Whether `[app].name` is out of BOTH the comparison and the payload right now
|
|
94
|
+
* (#2880 DSO-001) — the cross-app rule, shared so diff and push cannot disagree.
|
|
95
|
+
*
|
|
96
|
+
* A cross-app push (the sync state belongs to a different app) applies the file
|
|
97
|
+
* to the target with `name` excluded, so it never renames the target, and it
|
|
98
|
+
* RECORDS the file's name in `entities.app.excludedName` with the baseline
|
|
99
|
+
* hashed the same way. While that record stands and the file still states that
|
|
100
|
+
* name, the field stays excluded: the target keeps its own name and no phantom
|
|
101
|
+
* difference appears.
|
|
102
|
+
*
|
|
103
|
+
* A file name that DIFFERS from the recorded one is, by construction, a local
|
|
104
|
+
* name edit — the operator changed the line — so the exclusion lifts, the name
|
|
105
|
+
* goes into the payload, and the baseline is restamped with `name` from the
|
|
106
|
+
* server's returned record. It cannot be discovered by comparison instead:
|
|
107
|
+
* `classifyPushChange` only answers `local-edited` when the remote hash equals
|
|
108
|
+
* the baseline, and a baseline stamped without `name` matches neither side once
|
|
109
|
+
* `name` re-enters, so every post-cross-app rename would report `both-changed`.
|
|
109
110
|
*/
|
|
110
|
-
export declare function
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
export declare function appSettingsNameExcluded(input: {
|
|
112
|
+
/** The sync state belongs to a different app than the one being written. */
|
|
113
|
+
isCrossAppPush: boolean;
|
|
114
|
+
/** `entities.app.excludedName` — the name a prior cross-app push left alone. */
|
|
115
|
+
recordedExcludedName?: string;
|
|
116
|
+
/** The `[app].name` the local file states right now. */
|
|
117
|
+
fileName?: unknown;
|
|
118
|
+
}): boolean;
|
|
119
|
+
/** `appSettingsNameExcluded` for a caller holding the loaded state (diff). */
|
|
120
|
+
export declare function appSettingsNameExcludedForState(state: SyncState | null, appId: string, tomlData: Record<string, any> | null | undefined): boolean;
|
|
115
121
|
export interface AppSettingsFieldDiff {
|
|
116
122
|
field: string;
|
|
117
123
|
section: AppSettingSection;
|
|
@@ -120,10 +126,32 @@ export interface AppSettingsFieldDiff {
|
|
|
120
126
|
remote: unknown;
|
|
121
127
|
}
|
|
122
128
|
/**
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
129
|
+
* The fields the local `app.toml` and the live settings disagree on (#2880).
|
|
130
|
+
*
|
|
131
|
+
* Compared over the FULL writable descriptor set, not just the keys the file
|
|
132
|
+
* carries: `app.toml` is the whole truth, so a key the file omits is not "no
|
|
133
|
+
* opinion", it is the absent-value the push will send. Both sides run through
|
|
134
|
+
* `projectAppSettingsForComparison`, which applies the same canonicalization
|
|
135
|
+
* and the same `whenSet`-empty flattening to each — so a pulled file compares
|
|
136
|
+
* equal to the server it was pulled from, and a deleted key shows as the clear
|
|
137
|
+
* push would apply.
|
|
138
|
+
*
|
|
139
|
+
* One helper, three callers: `config diff --only app`'s per-field output, the
|
|
140
|
+
* app-settings row in the full `config diff`, and the push gate.
|
|
141
|
+
*/
|
|
142
|
+
export declare function appSettingsFieldDiffs(localSettings: Record<string, any>, remoteSettings: Record<string, any> | null | undefined, options?: {
|
|
143
|
+
excludeName?: boolean;
|
|
144
|
+
}): AppSettingsFieldDiff[];
|
|
145
|
+
/**
|
|
146
|
+
* The comparator's hash of one side's app settings — the push gate's
|
|
147
|
+
* `localHash`/`remoteHash`, and the `entities.app.semanticHash` baseline
|
|
148
|
+
* stamped once the two agree (#2880 criterion 6).
|
|
149
|
+
*/
|
|
150
|
+
export declare function hashAppSettingsForDiff(settings: Record<string, any> | null | undefined, options?: {
|
|
151
|
+
excludeName?: boolean;
|
|
152
|
+
}): string;
|
|
153
|
+
/**
|
|
154
|
+
* `config diff --only app` — the per-field report, over the full writable set.
|
|
127
155
|
*/
|
|
128
156
|
export declare function diffAppSettings(client: ApiClient, appId: string, configDir: string, options?: {
|
|
129
157
|
json?: boolean;
|