firebase-tools 14.5.1 → 14.6.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/lib/commands/projects-create.js +1 -1
- package/lib/commands/use.js +4 -1
- package/lib/dataconnect/client.js +1 -0
- package/lib/deploy/functions/checkIam.js +38 -3
- package/lib/deploy/functions/prepare.js +1 -0
- package/lib/deploy/functions/services/firestore.js +23 -4
- package/lib/emulator/auth/cloudFunctions.js +14 -1
- package/lib/emulator/dataconnect/pgliteServer.js +20 -12
- package/lib/emulator/downloadableEmulatorInfo.json +18 -18
- package/lib/firestore/delete.js +6 -4
- package/lib/frameworks/constants.js +1 -1
- package/lib/frameworks/utils.js +8 -2
- package/lib/gcp/firestore.js +26 -21
- package/lib/{gif → gemini}/fdcExperience.js +14 -13
- package/lib/init/features/dataconnect/index.js +1 -1
- package/lib/init/features/project.js +13 -6
- package/lib/management/projects.js +6 -5
- package/lib/mcp/tools/core/consult_assistant.js +1 -1
- package/lib/mcp/tools/dataconnect/generate_operation.js +1 -1
- package/lib/mcp/tools/dataconnect/generate_schema.js +1 -1
- package/lib/mcp/tools/firestore/delete_document.js +17 -4
- package/lib/mcp/tools/firestore/emulator.js +16 -0
- package/lib/mcp/tools/firestore/get_documents.js +12 -2
- package/lib/mcp/tools/firestore/list_collections.js +14 -3
- package/lib/mcp/tools/firestore/query_collection.js +12 -2
- package/package.json +3 -2
- package/lib/emulator/dataconnect/pg-gateway/auth/base-auth-flow.js +0 -11
- package/lib/emulator/dataconnect/pg-gateway/auth/cert.js +0 -69
- package/lib/emulator/dataconnect/pg-gateway/auth/index.js +0 -22
- package/lib/emulator/dataconnect/pg-gateway/auth/md5.js +0 -135
- package/lib/emulator/dataconnect/pg-gateway/auth/password.js +0 -65
- package/lib/emulator/dataconnect/pg-gateway/auth/sasl/sasl-mechanism.js +0 -34
- package/lib/emulator/dataconnect/pg-gateway/auth/sasl/scram-sha-256.js +0 -298
- package/lib/emulator/dataconnect/pg-gateway/backend-error.js +0 -75
- package/lib/emulator/dataconnect/pg-gateway/buffer-reader.js +0 -55
- package/lib/emulator/dataconnect/pg-gateway/buffer-writer.js +0 -79
- package/lib/emulator/dataconnect/pg-gateway/connection.js +0 -419
- package/lib/emulator/dataconnect/pg-gateway/connection.types.js +0 -8
- package/lib/emulator/dataconnect/pg-gateway/crypto.js +0 -40
- package/lib/emulator/dataconnect/pg-gateway/duplex.js +0 -53
- package/lib/emulator/dataconnect/pg-gateway/index.js +0 -27
- package/lib/emulator/dataconnect/pg-gateway/message-buffer.js +0 -96
- package/lib/emulator/dataconnect/pg-gateway/message-codes.js +0 -54
- package/lib/emulator/dataconnect/pg-gateway/platforms/node/index.js +0 -13
- package/lib/emulator/dataconnect/pg-gateway/polyfills/readable-stream-async-iterator.js +0 -36
- package/lib/emulator/dataconnect/pg-gateway/utils.js +0 -40
- /package/lib/{emulator/dataconnect/pg-gateway/auth/trust.js → gemini/types.js} +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBackendMessageName = exports.getFrontendMessageName = exports.BackendMessageCode = exports.FrontendMessageCode = void 0;
|
|
4
|
-
exports.FrontendMessageCode = {
|
|
5
|
-
Query: 0x51,
|
|
6
|
-
Parse: 0x50,
|
|
7
|
-
Bind: 0x42,
|
|
8
|
-
Execute: 0x45,
|
|
9
|
-
FunctionCall: 0x46,
|
|
10
|
-
Flush: 0x48,
|
|
11
|
-
Close: 0x43,
|
|
12
|
-
Describe: 0x44,
|
|
13
|
-
CopyFromChunk: 0x64,
|
|
14
|
-
CopyDone: 0x63,
|
|
15
|
-
CopyData: 0x64,
|
|
16
|
-
CopyFail: 0x66,
|
|
17
|
-
Password: 0x70,
|
|
18
|
-
Sync: 0x53,
|
|
19
|
-
Terminate: 0x58,
|
|
20
|
-
};
|
|
21
|
-
exports.BackendMessageCode = {
|
|
22
|
-
DataRow: 0x44,
|
|
23
|
-
ParseComplete: 0x31,
|
|
24
|
-
BindComplete: 0x32,
|
|
25
|
-
CloseComplete: 0x33,
|
|
26
|
-
CommandComplete: 0x43,
|
|
27
|
-
ReadyForQuery: 0x5a,
|
|
28
|
-
NoData: 0x6e,
|
|
29
|
-
NotificationResponse: 0x41,
|
|
30
|
-
AuthenticationResponse: 0x52,
|
|
31
|
-
ParameterStatus: 0x53,
|
|
32
|
-
BackendKeyData: 0x4b,
|
|
33
|
-
ErrorMessage: 0x45,
|
|
34
|
-
NoticeMessage: 0x4e,
|
|
35
|
-
RowDescriptionMessage: 0x54,
|
|
36
|
-
ParameterDescriptionMessage: 0x74,
|
|
37
|
-
PortalSuspended: 0x73,
|
|
38
|
-
ReplicationStart: 0x57,
|
|
39
|
-
EmptyQuery: 0x49,
|
|
40
|
-
CopyIn: 0x47,
|
|
41
|
-
CopyOut: 0x48,
|
|
42
|
-
CopyDone: 0x63,
|
|
43
|
-
CopyData: 0x64,
|
|
44
|
-
};
|
|
45
|
-
function getFrontendMessageName(code) {
|
|
46
|
-
var _a;
|
|
47
|
-
return (_a = Object.entries(exports.FrontendMessageCode).find(([_, value]) => value === code)) === null || _a === void 0 ? void 0 : _a[0];
|
|
48
|
-
}
|
|
49
|
-
exports.getFrontendMessageName = getFrontendMessageName;
|
|
50
|
-
function getBackendMessageName(code) {
|
|
51
|
-
var _a;
|
|
52
|
-
return (_a = Object.entries(exports.BackendMessageCode).find(([_, value]) => value === code)) === null || _a === void 0 ? void 0 : _a[0];
|
|
53
|
-
}
|
|
54
|
-
exports.getBackendMessageName = getBackendMessageName;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fromNodeSocket = void 0;
|
|
4
|
-
const node_stream_1 = require("node:stream");
|
|
5
|
-
const connection_1 = require("../../connection");
|
|
6
|
-
async function fromNodeSocket(socket, options) {
|
|
7
|
-
const rs = node_stream_1.Readable.toWeb(socket);
|
|
8
|
-
const ws = node_stream_1.Writable.toWeb(socket);
|
|
9
|
-
const opts = options
|
|
10
|
-
? Object.assign({}, options) : undefined;
|
|
11
|
-
return new connection_1.default({ readable: rs, writable: ws }, opts);
|
|
12
|
-
}
|
|
13
|
-
exports.fromNodeSocket = fromNodeSocket;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a, _b;
|
|
3
|
-
var _c;
|
|
4
|
-
(_a = (_c = ReadableStream.prototype).values) !== null && _a !== void 0 ? _a : (_c.values = function ({ preventCancel = false } = {}) {
|
|
5
|
-
const reader = this.getReader();
|
|
6
|
-
return {
|
|
7
|
-
async next() {
|
|
8
|
-
try {
|
|
9
|
-
const result = await reader.read();
|
|
10
|
-
if (result.done) {
|
|
11
|
-
reader.releaseLock();
|
|
12
|
-
}
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
catch (e) {
|
|
16
|
-
reader.releaseLock();
|
|
17
|
-
throw e;
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
async return(value) {
|
|
21
|
-
if (!preventCancel) {
|
|
22
|
-
const cancelPromise = reader.cancel(value);
|
|
23
|
-
reader.releaseLock();
|
|
24
|
-
await cancelPromise;
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
reader.releaseLock();
|
|
28
|
-
}
|
|
29
|
-
return { done: true, value };
|
|
30
|
-
},
|
|
31
|
-
[Symbol.asyncIterator]() {
|
|
32
|
-
return this;
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
});
|
|
36
|
-
(_b = ReadableStream.prototype) !== null && _b !== void 0 ? _b : (ReadableStream.prototype = ReadableStream.prototype.values);
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.copy = exports.AsyncIterableWithMetadata = void 0;
|
|
4
|
-
class AsyncIterableWithMetadata {
|
|
5
|
-
constructor(iterable) {
|
|
6
|
-
this.iterable = iterable;
|
|
7
|
-
this.returnValue = undefined;
|
|
8
|
-
this.iterations = 0;
|
|
9
|
-
}
|
|
10
|
-
[Symbol.asyncIterator]() {
|
|
11
|
-
const asyncIterator = Symbol.asyncIterator in this.iterable
|
|
12
|
-
? this.iterable[Symbol.asyncIterator]()
|
|
13
|
-
: this.iterable[Symbol.iterator]();
|
|
14
|
-
this.returnValue = undefined;
|
|
15
|
-
this.iterations = 0;
|
|
16
|
-
return {
|
|
17
|
-
next: async () => {
|
|
18
|
-
const result = await asyncIterator.next();
|
|
19
|
-
if (result.done) {
|
|
20
|
-
this.returnValue = result.value;
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
this.iterations++;
|
|
24
|
-
}
|
|
25
|
-
return result;
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.AsyncIterableWithMetadata = AsyncIterableWithMetadata;
|
|
31
|
-
function copy(src, dst, offset = 0) {
|
|
32
|
-
offset = Math.max(0, Math.min(offset, dst.byteLength));
|
|
33
|
-
const dstBytesAvailable = dst.byteLength - offset;
|
|
34
|
-
if (src.byteLength > dstBytesAvailable) {
|
|
35
|
-
src = src.subarray(0, dstBytesAvailable);
|
|
36
|
-
}
|
|
37
|
-
dst.set(src, offset);
|
|
38
|
-
return src.byteLength;
|
|
39
|
-
}
|
|
40
|
-
exports.copy = copy;
|
|
File without changes
|