@nbt-dev/nbt 0.0.6 → 0.0.8
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/stdlib/registry/migrations/20260613120000_add_gsheet_sync/migration.nbt +11 -0
- package/stdlib/registry/migrations/20260613120000_add_gsheet_sync/schema_snapshot.nbt +18 -0
- package/stdlib/registry/schema.nbt +21 -0
- package/vendor/linux-x64/cartridges/registry/migrations/20260613120000_add_gsheet_sync/migration.nbt +11 -0
- package/vendor/linux-x64/cartridges/registry/migrations/20260613120000_add_gsheet_sync/schema_snapshot.nbt +18 -0
- package/vendor/linux-x64/cartridges/registry/schema.nbt +21 -0
- package/vendor/linux-x64/console +0 -0
- package/vendor/linux-x64/nbt +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
migration add_gsheet_sync {
|
|
2
|
+
add_entity GsheetSync
|
|
3
|
+
add_field GsheetSync spreadsheetId string default("")
|
|
4
|
+
add_field GsheetSync serviceAccountJson string default("")
|
|
5
|
+
add_field GsheetSync saEmail string default("")
|
|
6
|
+
add_field GsheetSync intervalSeconds u32 default(0)
|
|
7
|
+
add_field GsheetSync enabled bool default(false)
|
|
8
|
+
add_field GsheetSync lastSyncAt u64 default(0)
|
|
9
|
+
add_field GsheetSync status string default("")
|
|
10
|
+
add_field GsheetSync lastError string default("")
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
entity InstalledCartridge {
|
|
2
|
+
tier: string
|
|
3
|
+
source: string
|
|
4
|
+
schemaChecksum: string
|
|
5
|
+
installedAt: u64
|
|
6
|
+
status: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
entity GsheetSync {
|
|
10
|
+
spreadsheetId: string
|
|
11
|
+
serviceAccountJson: string
|
|
12
|
+
saEmail: string
|
|
13
|
+
intervalSeconds: u32
|
|
14
|
+
enabled: bool
|
|
15
|
+
lastSyncAt: u64
|
|
16
|
+
status: string
|
|
17
|
+
lastError: string
|
|
18
|
+
}
|
|
@@ -18,3 +18,24 @@ entity InstalledCartridge {
|
|
|
18
18
|
installedAt: u64 # ms epoch
|
|
19
19
|
status: string # "installed" | "failed"
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
# Google Sheets sync configuration — one row per cartridge the operator has
|
|
23
|
+
# wired to a spreadsheet. Replicated; the console daemon is the SINGLE WRITER
|
|
24
|
+
# (modules/console/gsheet_sync.jai). The leader's sync tick pushes each enabled
|
|
25
|
+
# cartridge's entities into one tab per entity. The row id is the cartridge name.
|
|
26
|
+
#
|
|
27
|
+
# serviceAccountJson holds the Google service-account private key — secret, never
|
|
28
|
+
# returned by the read routes (the admin API redacts it; see modules/api/gsheets.jai).
|
|
29
|
+
entity GsheetSync {
|
|
30
|
+
id: string @id # the cartridge name (slug)
|
|
31
|
+
createdAt: DateTime @default(now())
|
|
32
|
+
updatedAt: DateTime @updatedAt
|
|
33
|
+
spreadsheetId: string # parsed from the operator-provided sheet URL
|
|
34
|
+
serviceAccountJson: string # SECRET — service-account key JSON
|
|
35
|
+
saEmail: string # service-account client_email (shown in devtools)
|
|
36
|
+
intervalSeconds: u32 # poll cadence
|
|
37
|
+
enabled: bool # sync on/off
|
|
38
|
+
lastSyncAt: u64 # ms epoch of last successful push (0 = never)
|
|
39
|
+
status: string # "ok" | "error" | "" (never run)
|
|
40
|
+
lastError: string # last failure message ("" when healthy)
|
|
41
|
+
}
|
package/vendor/linux-x64/cartridges/registry/migrations/20260613120000_add_gsheet_sync/migration.nbt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
migration add_gsheet_sync {
|
|
2
|
+
add_entity GsheetSync
|
|
3
|
+
add_field GsheetSync spreadsheetId string default("")
|
|
4
|
+
add_field GsheetSync serviceAccountJson string default("")
|
|
5
|
+
add_field GsheetSync saEmail string default("")
|
|
6
|
+
add_field GsheetSync intervalSeconds u32 default(0)
|
|
7
|
+
add_field GsheetSync enabled bool default(false)
|
|
8
|
+
add_field GsheetSync lastSyncAt u64 default(0)
|
|
9
|
+
add_field GsheetSync status string default("")
|
|
10
|
+
add_field GsheetSync lastError string default("")
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
entity InstalledCartridge {
|
|
2
|
+
tier: string
|
|
3
|
+
source: string
|
|
4
|
+
schemaChecksum: string
|
|
5
|
+
installedAt: u64
|
|
6
|
+
status: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
entity GsheetSync {
|
|
10
|
+
spreadsheetId: string
|
|
11
|
+
serviceAccountJson: string
|
|
12
|
+
saEmail: string
|
|
13
|
+
intervalSeconds: u32
|
|
14
|
+
enabled: bool
|
|
15
|
+
lastSyncAt: u64
|
|
16
|
+
status: string
|
|
17
|
+
lastError: string
|
|
18
|
+
}
|
|
@@ -18,3 +18,24 @@ entity InstalledCartridge {
|
|
|
18
18
|
installedAt: u64 # ms epoch
|
|
19
19
|
status: string # "installed" | "failed"
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
# Google Sheets sync configuration — one row per cartridge the operator has
|
|
23
|
+
# wired to a spreadsheet. Replicated; the console daemon is the SINGLE WRITER
|
|
24
|
+
# (modules/console/gsheet_sync.jai). The leader's sync tick pushes each enabled
|
|
25
|
+
# cartridge's entities into one tab per entity. The row id is the cartridge name.
|
|
26
|
+
#
|
|
27
|
+
# serviceAccountJson holds the Google service-account private key — secret, never
|
|
28
|
+
# returned by the read routes (the admin API redacts it; see modules/api/gsheets.jai).
|
|
29
|
+
entity GsheetSync {
|
|
30
|
+
id: string @id # the cartridge name (slug)
|
|
31
|
+
createdAt: DateTime @default(now())
|
|
32
|
+
updatedAt: DateTime @updatedAt
|
|
33
|
+
spreadsheetId: string # parsed from the operator-provided sheet URL
|
|
34
|
+
serviceAccountJson: string # SECRET — service-account key JSON
|
|
35
|
+
saEmail: string # service-account client_email (shown in devtools)
|
|
36
|
+
intervalSeconds: u32 # poll cadence
|
|
37
|
+
enabled: bool # sync on/off
|
|
38
|
+
lastSyncAt: u64 # ms epoch of last successful push (0 = never)
|
|
39
|
+
status: string # "ok" | "error" | "" (never run)
|
|
40
|
+
lastError: string # last failure message ("" when healthy)
|
|
41
|
+
}
|
package/vendor/linux-x64/console
CHANGED
|
Binary file
|
package/vendor/linux-x64/nbt
CHANGED
|
Binary file
|